From 1bcc48e71baaf5e504879ade6ca8930bd7b10889 Mon Sep 17 00:00:00 2001 From: MaD_CaT Date: Wed, 4 Sep 2024 09:00:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B2=D0=BD=D0=B5=D1=88=D0=BD=D0=B5=D0=B3=D0=BE?= =?UTF-8?q?=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=D0=B0?= =?UTF-8?q?=20=D1=87=D1=82=D0=B5=D0=BD=D0=B8=D1=8F/=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=B8=20SRAM.=20=D0=9D=D0=B0=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B9=D0=BA=D0=B0=20=D1=88=D0=B8=D0=BD=D1=8B=20=D0=B0?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D1=81=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/Inc/main.h | 6 +- Core/Src/main.c | 31 +- Debug/yau-07b.list | 54637 ++++++++-------- .../STM32F4xx_HAL_Driver/Src/subdir.mk | 14 +- Release/makefile | 20 +- Release/objects.list | 2 + Release/yau-07b.list | 16850 +++++ yau-07b Debug.launch | 2 +- yau-07b.ioc | 5 +- 9 files changed, 44222 insertions(+), 27345 deletions(-) create mode 100644 Release/yau-07b.list diff --git a/Core/Inc/main.h b/Core/Inc/main.h index 3393e6e..09173c6 100644 --- a/Core/Inc/main.h +++ b/Core/Inc/main.h @@ -58,8 +58,8 @@ void Error_Handler(void); /* Private defines -----------------------------------------------------------*/ /* USER CODE BEGIN Private defines */ -#define ISA_BASE_RD 0x20000U -#define ISA_BASE_WR 0U +#define ISA_BASE_RD 0x60000000U +#define ISA_BASE_WR 0x60200000U /* USER CODE END Private defines */ #ifdef __cplusplus @@ -67,5 +67,3 @@ void Error_Handler(void); #endif #endif /* __MAIN_H */ - - diff --git a/Core/Src/main.c b/Core/Src/main.c index b6cb49c..5dd1f5b 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -50,7 +50,6 @@ SRAM_HandleTypeDef hsram1; void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_FMC_Init(void); - /* USER CODE BEGIN PFP */ void write_isa(uint16_t addr, uint16_t data); uint16_t read_isa(uint16_t addr); @@ -96,15 +95,21 @@ int main(void) /* USER CODE END 2 */ /* Infinite loop */ - /* USER CODE BEGIN 3 */ + /* USER CODE BEGIN WHILE */ while (1) { MX_LWIP_Process(); - write_isa(0x100, 0xaaaa); - write_isa(0x100, 0x5555); - read_isa(0x100); + //write_isa(0x100, 0x1111); + //write_isa(0x102, 0x1111); + //read_isa(0x1); + read_isa(0x1); + read_isa(0x4); + //read_isa(0x8); + //read_isa(0x10); + //read_isa(0x20); + } - /* USER CODE END 3 */ + /* USER CODE END WHILE */ } /** @@ -162,6 +167,7 @@ static void MX_FMC_Init(void) /* USER CODE END FMC_Init 0 */ FMC_NORSRAM_TimingTypeDef Timing = {0}; + FMC_NORSRAM_TimingTypeDef ExtTiming = {0}; /* USER CODE BEGIN FMC_Init 1 */ @@ -180,9 +186,9 @@ static void MX_FMC_Init(void) hsram1.Init.WaitSignalPolarity = FMC_WAIT_SIGNAL_POLARITY_LOW; hsram1.Init.WrapMode = FMC_WRAP_MODE_DISABLE; hsram1.Init.WaitSignalActive = FMC_WAIT_TIMING_BEFORE_WS; - hsram1.Init.WriteOperation = FMC_WRITE_OPERATION_DISABLE; + hsram1.Init.WriteOperation = FMC_WRITE_OPERATION_ENABLE; hsram1.Init.WaitSignal = FMC_WAIT_SIGNAL_DISABLE; - hsram1.Init.ExtendedMode = FMC_EXTENDED_MODE_DISABLE; + hsram1.Init.ExtendedMode = FMC_EXTENDED_MODE_ENABLE; hsram1.Init.AsynchronousWait = FMC_ASYNCHRONOUS_WAIT_DISABLE; hsram1.Init.WriteBurst = FMC_WRITE_BURST_DISABLE; hsram1.Init.ContinuousClock = FMC_CONTINUOUS_CLOCK_SYNC_ONLY; @@ -196,8 +202,15 @@ static void MX_FMC_Init(void) Timing.DataLatency = 17; Timing.AccessMode = FMC_ACCESS_MODE_A; /* ExtTiming */ + ExtTiming.AddressSetupTime = 15; + ExtTiming.AddressHoldTime = 15; + ExtTiming.DataSetupTime = 255; + ExtTiming.BusTurnAroundDuration = 15; + ExtTiming.CLKDivision = 16; + ExtTiming.DataLatency = 17; + ExtTiming.AccessMode = FMC_ACCESS_MODE_A; - if (HAL_SRAM_Init(&hsram1, &Timing, NULL) != HAL_OK) + if (HAL_SRAM_Init(&hsram1, &Timing, &ExtTiming) != HAL_OK) { Error_Handler( ); } diff --git a/Debug/yau-07b.list b/Debug/yau-07b.list index 46f595f..170a889 100644 --- a/Debug/yau-07b.list +++ b/Debug/yau-07b.list @@ -29,27 +29,27 @@ Idx Name Size VMA LMA File off Algn ALLOC 12 .ARM.attributes 00000030 00000000 00000000 000309e0 2**0 CONTENTS, READONLY - 13 .debug_info 0001b6de 00000000 00000000 00030a10 2**0 + 13 .debug_info 0001b6f0 00000000 00000000 00030a10 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_abbrev 00004da7 00000000 00000000 0004c0ee 2**0 + 14 .debug_abbrev 00004d9c 00000000 00000000 0004c100 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_aranges 000013a8 00000000 00000000 00050e98 2**3 + 15 .debug_aranges 000013a8 00000000 00000000 00050ea0 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_ranges 00001308 00000000 00000000 00052240 2**3 + 16 .debug_ranges 00001308 00000000 00000000 00052248 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_macro 0002ec5f 00000000 00000000 00053548 2**0 + 17 .debug_macro 0002ec5f 00000000 00000000 00053550 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_line 000202ea 00000000 00000000 000821a7 2**0 + 18 .debug_line 000202f9 00000000 00000000 000821af 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .debug_str 000ec3e9 00000000 00000000 000a2491 2**0 + 19 .debug_str 000ec3f5 00000000 00000000 000a24a8 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 20 .comment 00000050 00000000 00000000 0018e87a 2**0 + 20 .comment 00000050 00000000 00000000 0018e89d 2**0 CONTENTS, READONLY - 21 .debug_frame 00006304 00000000 00000000 0018e8cc 2**2 + 21 .debug_frame 00006304 00000000 00000000 0018e8f0 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS - 22 .stab 000000cc 00000000 00000000 00194bd0 2**2 + 22 .stab 000000cc 00000000 00000000 00194bf4 2**2 CONTENTS, READONLY, DEBUGGING - 23 .stabstr 000001b9 00000000 00000000 00194c9c 2**0 + 23 .stabstr 000001b9 00000000 00000000 00194cc0 2**0 CONTENTS, READONLY, DEBUGGING Disassembly of section .text: @@ -1227,199 +1227,207 @@ int main(void) /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 8000ed0: f000 fc02 bl 80016d8 + 8000ed0: f000 fc00 bl 80016d4 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 8000ed4: f000 f81a bl 8000f0c + 8000ed4: f000 f810 bl 8000ef8 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 8000ed8: f000 f8e6 bl 80010a8 + 8000ed8: f000 f8f6 bl 80010c8 MX_LWIP_Init(); - 8000edc: f002 fdba bl 8003a54 + 8000edc: f002 fdb8 bl 8003a50 MX_FMC_Init(); - 8000ee0: f000 f880 bl 8000fe4 + 8000ee0: f000 f876 bl 8000fd0 /* Infinite loop */ - /* USER CODE BEGIN 3 */ + /* USER CODE BEGIN WHILE */ while (1) { MX_LWIP_Process(); - 8000ee4: f002 fe24 bl 8003b30 - write_isa(0x100, 0xaaaa); - 8000ee8: f64a 21aa movw r1, #43690 ; 0xaaaa - 8000eec: f44f 7080 mov.w r0, #256 ; 0x100 - 8000ef0: f000 f973 bl 80011da - write_isa(0x100, 0x5555); - 8000ef4: f245 5155 movw r1, #21845 ; 0x5555 - 8000ef8: f44f 7080 mov.w r0, #256 ; 0x100 - 8000efc: f000 f96d bl 80011da - read_isa(0x100); - 8000f00: f44f 7080 mov.w r0, #256 ; 0x100 - 8000f04: f000 f95a bl 80011bc + 8000ee4: f002 fe22 bl 8003b2c + //write_isa(0x100, 0x1111); + //write_isa(0x102, 0x1111); + //read_isa(0x1); + read_isa(0x1); + 8000ee8: 2001 movs r0, #1 + 8000eea: f000 f977 bl 80011dc + read_isa(0x4); + 8000eee: 2004 movs r0, #4 + 8000ef0: f000 f974 bl 80011dc MX_LWIP_Process(); - 8000f08: e7ec b.n 8000ee4 + 8000ef4: e7f6 b.n 8000ee4 ... -08000f0c : +08000ef8 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 8000f0c: b580 push {r7, lr} - 8000f0e: b094 sub sp, #80 ; 0x50 - 8000f10: af00 add r7, sp, #0 + 8000ef8: b580 push {r7, lr} + 8000efa: b094 sub sp, #80 ; 0x50 + 8000efc: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 8000f12: f107 0320 add.w r3, r7, #32 - 8000f16: 2230 movs r2, #48 ; 0x30 - 8000f18: 2100 movs r1, #0 - 8000f1a: 4618 mov r0, r3 - 8000f1c: f00f fa52 bl 80103c4 + 8000efe: f107 0320 add.w r3, r7, #32 + 8000f02: 2230 movs r2, #48 ; 0x30 + 8000f04: 2100 movs r1, #0 + 8000f06: 4618 mov r0, r3 + 8000f08: f00f fa5a bl 80103c0 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 8000f20: f107 030c add.w r3, r7, #12 - 8000f24: 2200 movs r2, #0 - 8000f26: 601a str r2, [r3, #0] - 8000f28: 605a str r2, [r3, #4] - 8000f2a: 609a str r2, [r3, #8] - 8000f2c: 60da str r2, [r3, #12] - 8000f2e: 611a str r2, [r3, #16] + 8000f0c: f107 030c add.w r3, r7, #12 + 8000f10: 2200 movs r2, #0 + 8000f12: 601a str r2, [r3, #0] + 8000f14: 605a str r2, [r3, #4] + 8000f16: 609a str r2, [r3, #8] + 8000f18: 60da str r2, [r3, #12] + 8000f1a: 611a str r2, [r3, #16] /** Configure the main internal regulator output voltage */ __HAL_RCC_PWR_CLK_ENABLE(); - 8000f30: 2300 movs r3, #0 - 8000f32: 60bb str r3, [r7, #8] - 8000f34: 4b29 ldr r3, [pc, #164] ; (8000fdc ) - 8000f36: 6c1b ldr r3, [r3, #64] ; 0x40 - 8000f38: 4a28 ldr r2, [pc, #160] ; (8000fdc ) - 8000f3a: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8000f3e: 6413 str r3, [r2, #64] ; 0x40 - 8000f40: 4b26 ldr r3, [pc, #152] ; (8000fdc ) - 8000f42: 6c1b ldr r3, [r3, #64] ; 0x40 - 8000f44: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8000f48: 60bb str r3, [r7, #8] - 8000f4a: 68bb ldr r3, [r7, #8] + 8000f1c: 2300 movs r3, #0 + 8000f1e: 60bb str r3, [r7, #8] + 8000f20: 4b29 ldr r3, [pc, #164] ; (8000fc8 ) + 8000f22: 6c1b ldr r3, [r3, #64] ; 0x40 + 8000f24: 4a28 ldr r2, [pc, #160] ; (8000fc8 ) + 8000f26: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 8000f2a: 6413 str r3, [r2, #64] ; 0x40 + 8000f2c: 4b26 ldr r3, [pc, #152] ; (8000fc8 ) + 8000f2e: 6c1b ldr r3, [r3, #64] ; 0x40 + 8000f30: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8000f34: 60bb str r3, [r7, #8] + 8000f36: 68bb ldr r3, [r7, #8] __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3); - 8000f4c: 2300 movs r3, #0 - 8000f4e: 607b str r3, [r7, #4] - 8000f50: 4b23 ldr r3, [pc, #140] ; (8000fe0 ) - 8000f52: 681b ldr r3, [r3, #0] - 8000f54: f423 4340 bic.w r3, r3, #49152 ; 0xc000 - 8000f58: 4a21 ldr r2, [pc, #132] ; (8000fe0 ) - 8000f5a: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 8000f5e: 6013 str r3, [r2, #0] - 8000f60: 4b1f ldr r3, [pc, #124] ; (8000fe0 ) - 8000f62: 681b ldr r3, [r3, #0] - 8000f64: f403 4340 and.w r3, r3, #49152 ; 0xc000 - 8000f68: 607b str r3, [r7, #4] - 8000f6a: 687b ldr r3, [r7, #4] + 8000f38: 2300 movs r3, #0 + 8000f3a: 607b str r3, [r7, #4] + 8000f3c: 4b23 ldr r3, [pc, #140] ; (8000fcc ) + 8000f3e: 681b ldr r3, [r3, #0] + 8000f40: f423 4340 bic.w r3, r3, #49152 ; 0xc000 + 8000f44: 4a21 ldr r2, [pc, #132] ; (8000fcc ) + 8000f46: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 8000f4a: 6013 str r3, [r2, #0] + 8000f4c: 4b1f ldr r3, [pc, #124] ; (8000fcc ) + 8000f4e: 681b ldr r3, [r3, #0] + 8000f50: f403 4340 and.w r3, r3, #49152 ; 0xc000 + 8000f54: 607b str r3, [r7, #4] + 8000f56: 687b ldr r3, [r7, #4] /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; - 8000f6c: 2302 movs r3, #2 - 8000f6e: 623b str r3, [r7, #32] + 8000f58: 2302 movs r3, #2 + 8000f5a: 623b str r3, [r7, #32] RCC_OscInitStruct.HSIState = RCC_HSI_ON; - 8000f70: 2301 movs r3, #1 - 8000f72: 62fb str r3, [r7, #44] ; 0x2c + 8000f5c: 2301 movs r3, #1 + 8000f5e: 62fb str r3, [r7, #44] ; 0x2c RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT; - 8000f74: 2310 movs r3, #16 - 8000f76: 633b str r3, [r7, #48] ; 0x30 + 8000f60: 2310 movs r3, #16 + 8000f62: 633b str r3, [r7, #48] ; 0x30 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 8000f78: 2302 movs r3, #2 - 8000f7a: 63bb str r3, [r7, #56] ; 0x38 + 8000f64: 2302 movs r3, #2 + 8000f66: 63bb str r3, [r7, #56] ; 0x38 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; - 8000f7c: 2300 movs r3, #0 - 8000f7e: 63fb str r3, [r7, #60] ; 0x3c + 8000f68: 2300 movs r3, #0 + 8000f6a: 63fb str r3, [r7, #60] ; 0x3c RCC_OscInitStruct.PLL.PLLM = 8; - 8000f80: 2308 movs r3, #8 - 8000f82: 643b str r3, [r7, #64] ; 0x40 + 8000f6c: 2308 movs r3, #8 + 8000f6e: 643b str r3, [r7, #64] ; 0x40 RCC_OscInitStruct.PLL.PLLN = 100; - 8000f84: 2364 movs r3, #100 ; 0x64 - 8000f86: 647b str r3, [r7, #68] ; 0x44 + 8000f70: 2364 movs r3, #100 ; 0x64 + 8000f72: 647b str r3, [r7, #68] ; 0x44 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; - 8000f88: 2302 movs r3, #2 - 8000f8a: 64bb str r3, [r7, #72] ; 0x48 + 8000f74: 2302 movs r3, #2 + 8000f76: 64bb str r3, [r7, #72] ; 0x48 RCC_OscInitStruct.PLL.PLLQ = 4; - 8000f8c: 2304 movs r3, #4 - 8000f8e: 64fb str r3, [r7, #76] ; 0x4c + 8000f78: 2304 movs r3, #4 + 8000f7a: 64fb str r3, [r7, #76] ; 0x4c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 8000f90: f107 0320 add.w r3, r7, #32 - 8000f94: 4618 mov r0, r3 - 8000f96: f001 ffd7 bl 8002f48 - 8000f9a: 4603 mov r3, r0 - 8000f9c: 2b00 cmp r3, #0 - 8000f9e: d001 beq.n 8000fa4 + 8000f7c: f107 0320 add.w r3, r7, #32 + 8000f80: 4618 mov r0, r3 + 8000f82: f001 ffdf bl 8002f44 + 8000f86: 4603 mov r3, r0 + 8000f88: 2b00 cmp r3, #0 + 8000f8a: d001 beq.n 8000f90 { Error_Handler(); - 8000fa0: f000 f92d bl 80011fe + 8000f8c: f000 f935 bl 80011fa } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 8000fa4: 230f movs r3, #15 - 8000fa6: 60fb str r3, [r7, #12] + 8000f90: 230f movs r3, #15 + 8000f92: 60fb str r3, [r7, #12] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 8000fa8: 2302 movs r3, #2 - 8000faa: 613b str r3, [r7, #16] + 8000f94: 2302 movs r3, #2 + 8000f96: 613b str r3, [r7, #16] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 8000fac: 2300 movs r3, #0 - 8000fae: 617b str r3, [r7, #20] + 8000f98: 2300 movs r3, #0 + 8000f9a: 617b str r3, [r7, #20] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4; - 8000fb0: f44f 53a0 mov.w r3, #5120 ; 0x1400 - 8000fb4: 61bb str r3, [r7, #24] + 8000f9c: f44f 53a0 mov.w r3, #5120 ; 0x1400 + 8000fa0: 61bb str r3, [r7, #24] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2; - 8000fb6: f44f 5380 mov.w r3, #4096 ; 0x1000 - 8000fba: 61fb str r3, [r7, #28] + 8000fa2: f44f 5380 mov.w r3, #4096 ; 0x1000 + 8000fa6: 61fb str r3, [r7, #28] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_3) != HAL_OK) - 8000fbc: f107 030c add.w r3, r7, #12 - 8000fc0: 2103 movs r1, #3 - 8000fc2: 4618 mov r0, r3 - 8000fc4: f002 fa38 bl 8003438 - 8000fc8: 4603 mov r3, r0 - 8000fca: 2b00 cmp r3, #0 - 8000fcc: d001 beq.n 8000fd2 + 8000fa8: f107 030c add.w r3, r7, #12 + 8000fac: 2103 movs r1, #3 + 8000fae: 4618 mov r0, r3 + 8000fb0: f002 fa40 bl 8003434 + 8000fb4: 4603 mov r3, r0 + 8000fb6: 2b00 cmp r3, #0 + 8000fb8: d001 beq.n 8000fbe { Error_Handler(); - 8000fce: f000 f916 bl 80011fe + 8000fba: f000 f91e bl 80011fa } } - 8000fd2: bf00 nop - 8000fd4: 3750 adds r7, #80 ; 0x50 - 8000fd6: 46bd mov sp, r7 - 8000fd8: bd80 pop {r7, pc} - 8000fda: bf00 nop - 8000fdc: 40023800 .word 0x40023800 - 8000fe0: 40007000 .word 0x40007000 + 8000fbe: bf00 nop + 8000fc0: 3750 adds r7, #80 ; 0x50 + 8000fc2: 46bd mov sp, r7 + 8000fc4: bd80 pop {r7, pc} + 8000fc6: bf00 nop + 8000fc8: 40023800 .word 0x40023800 + 8000fcc: 40007000 .word 0x40007000 -08000fe4 : +08000fd0 : /* FMC initialization function */ static void MX_FMC_Init(void) { - 8000fe4: b580 push {r7, lr} - 8000fe6: b088 sub sp, #32 - 8000fe8: af00 add r7, sp, #0 + 8000fd0: b580 push {r7, lr} + 8000fd2: b08e sub sp, #56 ; 0x38 + 8000fd4: af00 add r7, sp, #0 /* USER CODE BEGIN FMC_Init 0 */ /* USER CODE END FMC_Init 0 */ FMC_NORSRAM_TimingTypeDef Timing = {0}; - 8000fea: 1d3b adds r3, r7, #4 + 8000fd6: f107 031c add.w r3, r7, #28 + 8000fda: 2200 movs r2, #0 + 8000fdc: 601a str r2, [r3, #0] + 8000fde: 605a str r2, [r3, #4] + 8000fe0: 609a str r2, [r3, #8] + 8000fe2: 60da str r2, [r3, #12] + 8000fe4: 611a str r2, [r3, #16] + 8000fe6: 615a str r2, [r3, #20] + 8000fe8: 619a str r2, [r3, #24] + FMC_NORSRAM_TimingTypeDef ExtTiming = {0}; + 8000fea: 463b mov r3, r7 8000fec: 2200 movs r2, #0 8000fee: 601a str r2, [r3, #0] 8000ff0: 605a str r2, [r3, #4] @@ -1434,40998 +1442,40995 @@ static void MX_FMC_Init(void) /** Perform the SRAM1 memory initialization sequence */ hsram1.Instance = FMC_NORSRAM_DEVICE; - 8000ffc: 4b28 ldr r3, [pc, #160] ; (80010a0 ) + 8000ffc: 4b30 ldr r3, [pc, #192] ; (80010c0 ) 8000ffe: f04f 4220 mov.w r2, #2684354560 ; 0xa0000000 8001002: 601a str r2, [r3, #0] hsram1.Extended = FMC_NORSRAM_EXTENDED_DEVICE; - 8001004: 4b26 ldr r3, [pc, #152] ; (80010a0 ) - 8001006: 4a27 ldr r2, [pc, #156] ; (80010a4 ) + 8001004: 4b2e ldr r3, [pc, #184] ; (80010c0 ) + 8001006: 4a2f ldr r2, [pc, #188] ; (80010c4 ) 8001008: 605a str r2, [r3, #4] /* hsram1.Init */ hsram1.Init.NSBank = FMC_NORSRAM_BANK1; - 800100a: 4b25 ldr r3, [pc, #148] ; (80010a0 ) + 800100a: 4b2d ldr r3, [pc, #180] ; (80010c0 ) 800100c: 2200 movs r2, #0 800100e: 609a str r2, [r3, #8] hsram1.Init.DataAddressMux = FMC_DATA_ADDRESS_MUX_DISABLE; - 8001010: 4b23 ldr r3, [pc, #140] ; (80010a0 ) + 8001010: 4b2b ldr r3, [pc, #172] ; (80010c0 ) 8001012: 2200 movs r2, #0 8001014: 60da str r2, [r3, #12] hsram1.Init.MemoryType = FMC_MEMORY_TYPE_SRAM; - 8001016: 4b22 ldr r3, [pc, #136] ; (80010a0 ) + 8001016: 4b2a ldr r3, [pc, #168] ; (80010c0 ) 8001018: 2200 movs r2, #0 800101a: 611a str r2, [r3, #16] hsram1.Init.MemoryDataWidth = FMC_NORSRAM_MEM_BUS_WIDTH_16; - 800101c: 4b20 ldr r3, [pc, #128] ; (80010a0 ) + 800101c: 4b28 ldr r3, [pc, #160] ; (80010c0 ) 800101e: 2210 movs r2, #16 8001020: 615a str r2, [r3, #20] hsram1.Init.BurstAccessMode = FMC_BURST_ACCESS_MODE_DISABLE; - 8001022: 4b1f ldr r3, [pc, #124] ; (80010a0 ) + 8001022: 4b27 ldr r3, [pc, #156] ; (80010c0 ) 8001024: 2200 movs r2, #0 8001026: 619a str r2, [r3, #24] hsram1.Init.WaitSignalPolarity = FMC_WAIT_SIGNAL_POLARITY_LOW; - 8001028: 4b1d ldr r3, [pc, #116] ; (80010a0 ) + 8001028: 4b25 ldr r3, [pc, #148] ; (80010c0 ) 800102a: 2200 movs r2, #0 800102c: 61da str r2, [r3, #28] hsram1.Init.WrapMode = FMC_WRAP_MODE_DISABLE; - 800102e: 4b1c ldr r3, [pc, #112] ; (80010a0 ) + 800102e: 4b24 ldr r3, [pc, #144] ; (80010c0 ) 8001030: 2200 movs r2, #0 8001032: 621a str r2, [r3, #32] hsram1.Init.WaitSignalActive = FMC_WAIT_TIMING_BEFORE_WS; - 8001034: 4b1a ldr r3, [pc, #104] ; (80010a0 ) + 8001034: 4b22 ldr r3, [pc, #136] ; (80010c0 ) 8001036: 2200 movs r2, #0 8001038: 625a str r2, [r3, #36] ; 0x24 - hsram1.Init.WriteOperation = FMC_WRITE_OPERATION_DISABLE; - 800103a: 4b19 ldr r3, [pc, #100] ; (80010a0 ) - 800103c: 2200 movs r2, #0 - 800103e: 629a str r2, [r3, #40] ; 0x28 + hsram1.Init.WriteOperation = FMC_WRITE_OPERATION_ENABLE; + 800103a: 4b21 ldr r3, [pc, #132] ; (80010c0 ) + 800103c: f44f 5280 mov.w r2, #4096 ; 0x1000 + 8001040: 629a str r2, [r3, #40] ; 0x28 hsram1.Init.WaitSignal = FMC_WAIT_SIGNAL_DISABLE; - 8001040: 4b17 ldr r3, [pc, #92] ; (80010a0 ) - 8001042: 2200 movs r2, #0 - 8001044: 62da str r2, [r3, #44] ; 0x2c - hsram1.Init.ExtendedMode = FMC_EXTENDED_MODE_DISABLE; - 8001046: 4b16 ldr r3, [pc, #88] ; (80010a0 ) - 8001048: 2200 movs r2, #0 - 800104a: 631a str r2, [r3, #48] ; 0x30 + 8001042: 4b1f ldr r3, [pc, #124] ; (80010c0 ) + 8001044: 2200 movs r2, #0 + 8001046: 62da str r2, [r3, #44] ; 0x2c + hsram1.Init.ExtendedMode = FMC_EXTENDED_MODE_ENABLE; + 8001048: 4b1d ldr r3, [pc, #116] ; (80010c0 ) + 800104a: f44f 4280 mov.w r2, #16384 ; 0x4000 + 800104e: 631a str r2, [r3, #48] ; 0x30 hsram1.Init.AsynchronousWait = FMC_ASYNCHRONOUS_WAIT_DISABLE; - 800104c: 4b14 ldr r3, [pc, #80] ; (80010a0 ) - 800104e: 2200 movs r2, #0 - 8001050: 635a str r2, [r3, #52] ; 0x34 + 8001050: 4b1b ldr r3, [pc, #108] ; (80010c0 ) + 8001052: 2200 movs r2, #0 + 8001054: 635a str r2, [r3, #52] ; 0x34 hsram1.Init.WriteBurst = FMC_WRITE_BURST_DISABLE; - 8001052: 4b13 ldr r3, [pc, #76] ; (80010a0 ) - 8001054: 2200 movs r2, #0 - 8001056: 639a str r2, [r3, #56] ; 0x38 + 8001056: 4b1a ldr r3, [pc, #104] ; (80010c0 ) + 8001058: 2200 movs r2, #0 + 800105a: 639a str r2, [r3, #56] ; 0x38 hsram1.Init.ContinuousClock = FMC_CONTINUOUS_CLOCK_SYNC_ONLY; - 8001058: 4b11 ldr r3, [pc, #68] ; (80010a0 ) - 800105a: 2200 movs r2, #0 - 800105c: 63da str r2, [r3, #60] ; 0x3c + 800105c: 4b18 ldr r3, [pc, #96] ; (80010c0 ) + 800105e: 2200 movs r2, #0 + 8001060: 63da str r2, [r3, #60] ; 0x3c hsram1.Init.PageSize = FMC_PAGE_SIZE_NONE; - 800105e: 4b10 ldr r3, [pc, #64] ; (80010a0 ) - 8001060: 2200 movs r2, #0 - 8001062: 645a str r2, [r3, #68] ; 0x44 + 8001062: 4b17 ldr r3, [pc, #92] ; (80010c0 ) + 8001064: 2200 movs r2, #0 + 8001066: 645a str r2, [r3, #68] ; 0x44 /* Timing */ Timing.AddressSetupTime = 15; - 8001064: 230f movs r3, #15 - 8001066: 607b str r3, [r7, #4] - Timing.AddressHoldTime = 15; 8001068: 230f movs r3, #15 - 800106a: 60bb str r3, [r7, #8] + 800106a: 61fb str r3, [r7, #28] + Timing.AddressHoldTime = 15; + 800106c: 230f movs r3, #15 + 800106e: 623b str r3, [r7, #32] Timing.DataSetupTime = 255; - 800106c: 23ff movs r3, #255 ; 0xff - 800106e: 60fb str r3, [r7, #12] + 8001070: 23ff movs r3, #255 ; 0xff + 8001072: 627b str r3, [r7, #36] ; 0x24 Timing.BusTurnAroundDuration = 15; - 8001070: 230f movs r3, #15 - 8001072: 613b str r3, [r7, #16] + 8001074: 230f movs r3, #15 + 8001076: 62bb str r3, [r7, #40] ; 0x28 Timing.CLKDivision = 16; - 8001074: 2310 movs r3, #16 - 8001076: 617b str r3, [r7, #20] + 8001078: 2310 movs r3, #16 + 800107a: 62fb str r3, [r7, #44] ; 0x2c Timing.DataLatency = 17; - 8001078: 2311 movs r3, #17 - 800107a: 61bb str r3, [r7, #24] + 800107c: 2311 movs r3, #17 + 800107e: 633b str r3, [r7, #48] ; 0x30 Timing.AccessMode = FMC_ACCESS_MODE_A; - 800107c: 2300 movs r3, #0 - 800107e: 61fb str r3, [r7, #28] + 8001080: 2300 movs r3, #0 + 8001082: 637b str r3, [r7, #52] ; 0x34 /* ExtTiming */ + ExtTiming.AddressSetupTime = 15; + 8001084: 230f movs r3, #15 + 8001086: 603b str r3, [r7, #0] + ExtTiming.AddressHoldTime = 15; + 8001088: 230f movs r3, #15 + 800108a: 607b str r3, [r7, #4] + ExtTiming.DataSetupTime = 255; + 800108c: 23ff movs r3, #255 ; 0xff + 800108e: 60bb str r3, [r7, #8] + ExtTiming.BusTurnAroundDuration = 15; + 8001090: 230f movs r3, #15 + 8001092: 60fb str r3, [r7, #12] + ExtTiming.CLKDivision = 16; + 8001094: 2310 movs r3, #16 + 8001096: 613b str r3, [r7, #16] + ExtTiming.DataLatency = 17; + 8001098: 2311 movs r3, #17 + 800109a: 617b str r3, [r7, #20] + ExtTiming.AccessMode = FMC_ACCESS_MODE_A; + 800109c: 2300 movs r3, #0 + 800109e: 61bb str r3, [r7, #24] - if (HAL_SRAM_Init(&hsram1, &Timing, NULL) != HAL_OK) - 8001080: 1d3b adds r3, r7, #4 - 8001082: 2200 movs r2, #0 - 8001084: 4619 mov r1, r3 - 8001086: 4806 ldr r0, [pc, #24] ; (80010a0 ) - 8001088: f002 fb8e bl 80037a8 - 800108c: 4603 mov r3, r0 - 800108e: 2b00 cmp r3, #0 - 8001090: d001 beq.n 8001096 + if (HAL_SRAM_Init(&hsram1, &Timing, &ExtTiming) != HAL_OK) + 80010a0: 463a mov r2, r7 + 80010a2: f107 031c add.w r3, r7, #28 + 80010a6: 4619 mov r1, r3 + 80010a8: 4805 ldr r0, [pc, #20] ; (80010c0 ) + 80010aa: f002 fb7b bl 80037a4 + 80010ae: 4603 mov r3, r0 + 80010b0: 2b00 cmp r3, #0 + 80010b2: d001 beq.n 80010b8 { Error_Handler( ); - 8001092: f000 f8b4 bl 80011fe + 80010b4: f000 f8a1 bl 80011fa } /* USER CODE BEGIN FMC_Init 2 */ /* USER CODE END FMC_Init 2 */ } - 8001096: bf00 nop - 8001098: 3720 adds r7, #32 - 800109a: 46bd mov sp, r7 - 800109c: bd80 pop {r7, pc} - 800109e: bf00 nop - 80010a0: 200009fc .word 0x200009fc - 80010a4: a0000104 .word 0xa0000104 + 80010b8: bf00 nop + 80010ba: 3738 adds r7, #56 ; 0x38 + 80010bc: 46bd mov sp, r7 + 80010be: bd80 pop {r7, pc} + 80010c0: 200009fc .word 0x200009fc + 80010c4: a0000104 .word 0xa0000104 -080010a8 : +080010c8 : * @brief GPIO Initialization Function * @param None * @retval None */ static void MX_GPIO_Init(void) { - 80010a8: b580 push {r7, lr} - 80010aa: b08c sub sp, #48 ; 0x30 - 80010ac: af00 add r7, sp, #0 + 80010c8: b580 push {r7, lr} + 80010ca: b08c sub sp, #48 ; 0x30 + 80010cc: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80010ae: f107 031c add.w r3, r7, #28 - 80010b2: 2200 movs r2, #0 - 80010b4: 601a str r2, [r3, #0] - 80010b6: 605a str r2, [r3, #4] - 80010b8: 609a str r2, [r3, #8] - 80010ba: 60da str r2, [r3, #12] - 80010bc: 611a str r2, [r3, #16] + 80010ce: f107 031c add.w r3, r7, #28 + 80010d2: 2200 movs r2, #0 + 80010d4: 601a str r2, [r3, #0] + 80010d6: 605a str r2, [r3, #4] + 80010d8: 609a str r2, [r3, #8] + 80010da: 60da str r2, [r3, #12] + 80010dc: 611a str r2, [r3, #16] /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOE_CLK_ENABLE(); - 80010be: 2300 movs r3, #0 - 80010c0: 61bb str r3, [r7, #24] - 80010c2: 4b3c ldr r3, [pc, #240] ; (80011b4 ) - 80010c4: 6b1b ldr r3, [r3, #48] ; 0x30 - 80010c6: 4a3b ldr r2, [pc, #236] ; (80011b4 ) - 80010c8: f043 0310 orr.w r3, r3, #16 - 80010cc: 6313 str r3, [r2, #48] ; 0x30 - 80010ce: 4b39 ldr r3, [pc, #228] ; (80011b4 ) - 80010d0: 6b1b ldr r3, [r3, #48] ; 0x30 - 80010d2: f003 0310 and.w r3, r3, #16 - 80010d6: 61bb str r3, [r7, #24] - 80010d8: 69bb ldr r3, [r7, #24] + 80010de: 2300 movs r3, #0 + 80010e0: 61bb str r3, [r7, #24] + 80010e2: 4b3c ldr r3, [pc, #240] ; (80011d4 ) + 80010e4: 6b1b ldr r3, [r3, #48] ; 0x30 + 80010e6: 4a3b ldr r2, [pc, #236] ; (80011d4 ) + 80010e8: f043 0310 orr.w r3, r3, #16 + 80010ec: 6313 str r3, [r2, #48] ; 0x30 + 80010ee: 4b39 ldr r3, [pc, #228] ; (80011d4 ) + 80010f0: 6b1b ldr r3, [r3, #48] ; 0x30 + 80010f2: f003 0310 and.w r3, r3, #16 + 80010f6: 61bb str r3, [r7, #24] + 80010f8: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOC_CLK_ENABLE(); - 80010da: 2300 movs r3, #0 - 80010dc: 617b str r3, [r7, #20] - 80010de: 4b35 ldr r3, [pc, #212] ; (80011b4 ) - 80010e0: 6b1b ldr r3, [r3, #48] ; 0x30 - 80010e2: 4a34 ldr r2, [pc, #208] ; (80011b4 ) - 80010e4: f043 0304 orr.w r3, r3, #4 - 80010e8: 6313 str r3, [r2, #48] ; 0x30 - 80010ea: 4b32 ldr r3, [pc, #200] ; (80011b4 ) - 80010ec: 6b1b ldr r3, [r3, #48] ; 0x30 - 80010ee: f003 0304 and.w r3, r3, #4 - 80010f2: 617b str r3, [r7, #20] - 80010f4: 697b ldr r3, [r7, #20] + 80010fa: 2300 movs r3, #0 + 80010fc: 617b str r3, [r7, #20] + 80010fe: 4b35 ldr r3, [pc, #212] ; (80011d4 ) + 8001100: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001102: 4a34 ldr r2, [pc, #208] ; (80011d4 ) + 8001104: f043 0304 orr.w r3, r3, #4 + 8001108: 6313 str r3, [r2, #48] ; 0x30 + 800110a: 4b32 ldr r3, [pc, #200] ; (80011d4 ) + 800110c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800110e: f003 0304 and.w r3, r3, #4 + 8001112: 617b str r3, [r7, #20] + 8001114: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOF_CLK_ENABLE(); - 80010f6: 2300 movs r3, #0 - 80010f8: 613b str r3, [r7, #16] - 80010fa: 4b2e ldr r3, [pc, #184] ; (80011b4 ) - 80010fc: 6b1b ldr r3, [r3, #48] ; 0x30 - 80010fe: 4a2d ldr r2, [pc, #180] ; (80011b4 ) - 8001100: f043 0320 orr.w r3, r3, #32 - 8001104: 6313 str r3, [r2, #48] ; 0x30 - 8001106: 4b2b ldr r3, [pc, #172] ; (80011b4 ) - 8001108: 6b1b ldr r3, [r3, #48] ; 0x30 - 800110a: f003 0320 and.w r3, r3, #32 - 800110e: 613b str r3, [r7, #16] - 8001110: 693b ldr r3, [r7, #16] + 8001116: 2300 movs r3, #0 + 8001118: 613b str r3, [r7, #16] + 800111a: 4b2e ldr r3, [pc, #184] ; (80011d4 ) + 800111c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800111e: 4a2d ldr r2, [pc, #180] ; (80011d4 ) + 8001120: f043 0320 orr.w r3, r3, #32 + 8001124: 6313 str r3, [r2, #48] ; 0x30 + 8001126: 4b2b ldr r3, [pc, #172] ; (80011d4 ) + 8001128: 6b1b ldr r3, [r3, #48] ; 0x30 + 800112a: f003 0320 and.w r3, r3, #32 + 800112e: 613b str r3, [r7, #16] + 8001130: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001112: 2300 movs r3, #0 - 8001114: 60fb str r3, [r7, #12] - 8001116: 4b27 ldr r3, [pc, #156] ; (80011b4 ) - 8001118: 6b1b ldr r3, [r3, #48] ; 0x30 - 800111a: 4a26 ldr r2, [pc, #152] ; (80011b4 ) - 800111c: f043 0301 orr.w r3, r3, #1 - 8001120: 6313 str r3, [r2, #48] ; 0x30 - 8001122: 4b24 ldr r3, [pc, #144] ; (80011b4 ) - 8001124: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001126: f003 0301 and.w r3, r3, #1 - 800112a: 60fb str r3, [r7, #12] - 800112c: 68fb ldr r3, [r7, #12] + 8001132: 2300 movs r3, #0 + 8001134: 60fb str r3, [r7, #12] + 8001136: 4b27 ldr r3, [pc, #156] ; (80011d4 ) + 8001138: 6b1b ldr r3, [r3, #48] ; 0x30 + 800113a: 4a26 ldr r2, [pc, #152] ; (80011d4 ) + 800113c: f043 0301 orr.w r3, r3, #1 + 8001140: 6313 str r3, [r2, #48] ; 0x30 + 8001142: 4b24 ldr r3, [pc, #144] ; (80011d4 ) + 8001144: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001146: f003 0301 and.w r3, r3, #1 + 800114a: 60fb str r3, [r7, #12] + 800114c: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOG_CLK_ENABLE(); - 800112e: 2300 movs r3, #0 - 8001130: 60bb str r3, [r7, #8] - 8001132: 4b20 ldr r3, [pc, #128] ; (80011b4 ) - 8001134: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001136: 4a1f ldr r2, [pc, #124] ; (80011b4 ) - 8001138: f043 0340 orr.w r3, r3, #64 ; 0x40 - 800113c: 6313 str r3, [r2, #48] ; 0x30 - 800113e: 4b1d ldr r3, [pc, #116] ; (80011b4 ) - 8001140: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001142: f003 0340 and.w r3, r3, #64 ; 0x40 - 8001146: 60bb str r3, [r7, #8] - 8001148: 68bb ldr r3, [r7, #8] + 800114e: 2300 movs r3, #0 + 8001150: 60bb str r3, [r7, #8] + 8001152: 4b20 ldr r3, [pc, #128] ; (80011d4 ) + 8001154: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001156: 4a1f ldr r2, [pc, #124] ; (80011d4 ) + 8001158: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800115c: 6313 str r3, [r2, #48] ; 0x30 + 800115e: 4b1d ldr r3, [pc, #116] ; (80011d4 ) + 8001160: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001162: f003 0340 and.w r3, r3, #64 ; 0x40 + 8001166: 60bb str r3, [r7, #8] + 8001168: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOB_CLK_ENABLE(); - 800114a: 2300 movs r3, #0 - 800114c: 607b str r3, [r7, #4] - 800114e: 4b19 ldr r3, [pc, #100] ; (80011b4 ) - 8001150: 6b1b ldr r3, [r3, #48] ; 0x30 - 8001152: 4a18 ldr r2, [pc, #96] ; (80011b4 ) - 8001154: f043 0302 orr.w r3, r3, #2 - 8001158: 6313 str r3, [r2, #48] ; 0x30 - 800115a: 4b16 ldr r3, [pc, #88] ; (80011b4 ) - 800115c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800115e: f003 0302 and.w r3, r3, #2 - 8001162: 607b str r3, [r7, #4] - 8001164: 687b ldr r3, [r7, #4] + 800116a: 2300 movs r3, #0 + 800116c: 607b str r3, [r7, #4] + 800116e: 4b19 ldr r3, [pc, #100] ; (80011d4 ) + 8001170: 6b1b ldr r3, [r3, #48] ; 0x30 + 8001172: 4a18 ldr r2, [pc, #96] ; (80011d4 ) + 8001174: f043 0302 orr.w r3, r3, #2 + 8001178: 6313 str r3, [r2, #48] ; 0x30 + 800117a: 4b16 ldr r3, [pc, #88] ; (80011d4 ) + 800117c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800117e: f003 0302 and.w r3, r3, #2 + 8001182: 607b str r3, [r7, #4] + 8001184: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOD_CLK_ENABLE(); - 8001166: 2300 movs r3, #0 - 8001168: 603b str r3, [r7, #0] - 800116a: 4b12 ldr r3, [pc, #72] ; (80011b4 ) - 800116c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800116e: 4a11 ldr r2, [pc, #68] ; (80011b4 ) - 8001170: f043 0308 orr.w r3, r3, #8 - 8001174: 6313 str r3, [r2, #48] ; 0x30 - 8001176: 4b0f ldr r3, [pc, #60] ; (80011b4 ) - 8001178: 6b1b ldr r3, [r3, #48] ; 0x30 - 800117a: f003 0308 and.w r3, r3, #8 - 800117e: 603b str r3, [r7, #0] - 8001180: 683b ldr r3, [r7, #0] + 8001186: 2300 movs r3, #0 + 8001188: 603b str r3, [r7, #0] + 800118a: 4b12 ldr r3, [pc, #72] ; (80011d4 ) + 800118c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800118e: 4a11 ldr r2, [pc, #68] ; (80011d4 ) + 8001190: f043 0308 orr.w r3, r3, #8 + 8001194: 6313 str r3, [r2, #48] ; 0x30 + 8001196: 4b0f ldr r3, [pc, #60] ; (80011d4 ) + 8001198: 6b1b ldr r3, [r3, #48] ; 0x30 + 800119a: f003 0308 and.w r3, r3, #8 + 800119e: 603b str r3, [r7, #0] + 80011a0: 683b ldr r3, [r7, #0] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOC, GPIO_PIN_14, GPIO_PIN_RESET); - 8001182: 2200 movs r2, #0 - 8001184: f44f 4180 mov.w r1, #16384 ; 0x4000 - 8001188: 480b ldr r0, [pc, #44] ; (80011b8 ) - 800118a: f001 fec3 bl 8002f14 + 80011a2: 2200 movs r2, #0 + 80011a4: f44f 4180 mov.w r1, #16384 ; 0x4000 + 80011a8: 480b ldr r0, [pc, #44] ; (80011d8 ) + 80011aa: f001 feb1 bl 8002f10 /*Configure GPIO pin : PC14 */ GPIO_InitStruct.Pin = GPIO_PIN_14; - 800118e: f44f 4380 mov.w r3, #16384 ; 0x4000 - 8001192: 61fb str r3, [r7, #28] + 80011ae: f44f 4380 mov.w r3, #16384 ; 0x4000 + 80011b2: 61fb str r3, [r7, #28] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8001194: 2301 movs r3, #1 - 8001196: 623b str r3, [r7, #32] + 80011b4: 2301 movs r3, #1 + 80011b6: 623b str r3, [r7, #32] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001198: 2300 movs r3, #0 - 800119a: 627b str r3, [r7, #36] ; 0x24 + 80011b8: 2300 movs r3, #0 + 80011ba: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 800119c: 2300 movs r3, #0 - 800119e: 62bb str r3, [r7, #40] ; 0x28 + 80011bc: 2300 movs r3, #0 + 80011be: 62bb str r3, [r7, #40] ; 0x28 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 80011a0: f107 031c add.w r3, r7, #28 - 80011a4: 4619 mov r1, r3 - 80011a6: 4804 ldr r0, [pc, #16] ; (80011b8 ) - 80011a8: f001 fd08 bl 8002bbc + 80011c0: f107 031c add.w r3, r7, #28 + 80011c4: 4619 mov r1, r3 + 80011c6: 4804 ldr r0, [pc, #16] ; (80011d8 ) + 80011c8: f001 fcf6 bl 8002bb8 } - 80011ac: bf00 nop - 80011ae: 3730 adds r7, #48 ; 0x30 - 80011b0: 46bd mov sp, r7 - 80011b2: bd80 pop {r7, pc} - 80011b4: 40023800 .word 0x40023800 - 80011b8: 40020800 .word 0x40020800 + 80011cc: bf00 nop + 80011ce: 3730 adds r7, #48 ; 0x30 + 80011d0: 46bd mov sp, r7 + 80011d2: bd80 pop {r7, pc} + 80011d4: 40023800 .word 0x40023800 + 80011d8: 40020800 .word 0x40020800 -080011bc : +080011dc : /* USER CODE BEGIN 4 */ uint16_t read_isa(uint16_t addr) { - 80011bc: b480 push {r7} - 80011be: b083 sub sp, #12 - 80011c0: af00 add r7, sp, #0 - 80011c2: 4603 mov r3, r0 - 80011c4: 80fb strh r3, [r7, #6] - return *(uint16_t*)(ISA_BASE_RD + addr); - 80011c6: 88fb ldrh r3, [r7, #6] - 80011c8: f503 3300 add.w r3, r3, #131072 ; 0x20000 - 80011cc: 881b ldrh r3, [r3, #0] -} - 80011ce: 4618 mov r0, r3 - 80011d0: 370c adds r7, #12 - 80011d2: 46bd mov sp, r7 - 80011d4: f85d 7b04 ldr.w r7, [sp], #4 - 80011d8: 4770 bx lr - -080011da : - -void write_isa(uint16_t addr, uint16_t data) -{ - 80011da: b480 push {r7} - 80011dc: b083 sub sp, #12 - 80011de: af00 add r7, sp, #0 - 80011e0: 4603 mov r3, r0 - 80011e2: 460a mov r2, r1 + 80011dc: b480 push {r7} + 80011de: b083 sub sp, #12 + 80011e0: af00 add r7, sp, #0 + 80011e2: 4603 mov r3, r0 80011e4: 80fb strh r3, [r7, #6] - 80011e6: 4613 mov r3, r2 - 80011e8: 80bb strh r3, [r7, #4] - *(uint16_t*)(ISA_BASE_WR + addr) = data; - 80011ea: 88fb ldrh r3, [r7, #6] - 80011ec: 461a mov r2, r3 - 80011ee: 88bb ldrh r3, [r7, #4] - 80011f0: 8013 strh r3, [r2, #0] + return *(uint16_t*)(ISA_BASE_RD + addr); + 80011e6: 88fb ldrh r3, [r7, #6] + 80011e8: f103 43c0 add.w r3, r3, #1610612736 ; 0x60000000 + 80011ec: 881b ldrh r3, [r3, #0] } - 80011f2: bf00 nop - 80011f4: 370c adds r7, #12 - 80011f6: 46bd mov sp, r7 - 80011f8: f85d 7b04 ldr.w r7, [sp], #4 - 80011fc: 4770 bx lr + 80011ee: 4618 mov r0, r3 + 80011f0: 370c adds r7, #12 + 80011f2: 46bd mov sp, r7 + 80011f4: f85d 7b04 ldr.w r7, [sp], #4 + 80011f8: 4770 bx lr -080011fe : +080011fa : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 80011fe: b480 push {r7} - 8001200: af00 add r7, sp, #0 + 80011fa: b480 push {r7} + 80011fc: af00 add r7, sp, #0 \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); - 8001202: b672 cpsid i + 80011fe: b672 cpsid i } - 8001204: bf00 nop + 8001200: bf00 nop /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) - 8001206: e7fe b.n 8001206 + 8001202: e7fe b.n 8001202 -08001208 : +08001204 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 8001208: b480 push {r7} - 800120a: b083 sub sp, #12 - 800120c: af00 add r7, sp, #0 + 8001204: b480 push {r7} + 8001206: b083 sub sp, #12 + 8001208: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 800120e: 2300 movs r3, #0 - 8001210: 607b str r3, [r7, #4] - 8001212: 4b10 ldr r3, [pc, #64] ; (8001254 ) - 8001214: 6c5b ldr r3, [r3, #68] ; 0x44 - 8001216: 4a0f ldr r2, [pc, #60] ; (8001254 ) - 8001218: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 800121c: 6453 str r3, [r2, #68] ; 0x44 - 800121e: 4b0d ldr r3, [pc, #52] ; (8001254 ) - 8001220: 6c5b ldr r3, [r3, #68] ; 0x44 - 8001222: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 8001226: 607b str r3, [r7, #4] - 8001228: 687b ldr r3, [r7, #4] + 800120a: 2300 movs r3, #0 + 800120c: 607b str r3, [r7, #4] + 800120e: 4b10 ldr r3, [pc, #64] ; (8001250 ) + 8001210: 6c5b ldr r3, [r3, #68] ; 0x44 + 8001212: 4a0f ldr r2, [pc, #60] ; (8001250 ) + 8001214: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 8001218: 6453 str r3, [r2, #68] ; 0x44 + 800121a: 4b0d ldr r3, [pc, #52] ; (8001250 ) + 800121c: 6c5b ldr r3, [r3, #68] ; 0x44 + 800121e: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 8001222: 607b str r3, [r7, #4] + 8001224: 687b ldr r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); - 800122a: 2300 movs r3, #0 - 800122c: 603b str r3, [r7, #0] - 800122e: 4b09 ldr r3, [pc, #36] ; (8001254 ) - 8001230: 6c1b ldr r3, [r3, #64] ; 0x40 - 8001232: 4a08 ldr r2, [pc, #32] ; (8001254 ) - 8001234: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8001238: 6413 str r3, [r2, #64] ; 0x40 - 800123a: 4b06 ldr r3, [pc, #24] ; (8001254 ) - 800123c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800123e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8001242: 603b str r3, [r7, #0] - 8001244: 683b ldr r3, [r7, #0] + 8001226: 2300 movs r3, #0 + 8001228: 603b str r3, [r7, #0] + 800122a: 4b09 ldr r3, [pc, #36] ; (8001250 ) + 800122c: 6c1b ldr r3, [r3, #64] ; 0x40 + 800122e: 4a08 ldr r2, [pc, #32] ; (8001250 ) + 8001230: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 8001234: 6413 str r3, [r2, #64] ; 0x40 + 8001236: 4b06 ldr r3, [pc, #24] ; (8001250 ) + 8001238: 6c1b ldr r3, [r3, #64] ; 0x40 + 800123a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 800123e: 603b str r3, [r7, #0] + 8001240: 683b ldr r3, [r7, #0] /* System interrupt init*/ /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 8001246: bf00 nop - 8001248: 370c adds r7, #12 - 800124a: 46bd mov sp, r7 - 800124c: f85d 7b04 ldr.w r7, [sp], #4 - 8001250: 4770 bx lr - 8001252: bf00 nop - 8001254: 40023800 .word 0x40023800 + 8001242: bf00 nop + 8001244: 370c adds r7, #12 + 8001246: 46bd mov sp, r7 + 8001248: f85d 7b04 ldr.w r7, [sp], #4 + 800124c: 4770 bx lr + 800124e: bf00 nop + 8001250: 40023800 .word 0x40023800 -08001258 : +08001254 : static uint32_t FMC_Initialized = 0; static void HAL_FMC_MspInit(void){ - 8001258: b580 push {r7, lr} - 800125a: b086 sub sp, #24 - 800125c: af00 add r7, sp, #0 + 8001254: b580 push {r7, lr} + 8001256: b086 sub sp, #24 + 8001258: af00 add r7, sp, #0 /* USER CODE BEGIN FMC_MspInit 0 */ /* USER CODE END FMC_MspInit 0 */ GPIO_InitTypeDef GPIO_InitStruct ={0}; - 800125e: 1d3b adds r3, r7, #4 - 8001260: 2200 movs r2, #0 - 8001262: 601a str r2, [r3, #0] - 8001264: 605a str r2, [r3, #4] - 8001266: 609a str r2, [r3, #8] - 8001268: 60da str r2, [r3, #12] - 800126a: 611a str r2, [r3, #16] + 800125a: 1d3b adds r3, r7, #4 + 800125c: 2200 movs r2, #0 + 800125e: 601a str r2, [r3, #0] + 8001260: 605a str r2, [r3, #4] + 8001262: 609a str r2, [r3, #8] + 8001264: 60da str r2, [r3, #12] + 8001266: 611a str r2, [r3, #16] if (FMC_Initialized) { - 800126c: 4b2c ldr r3, [pc, #176] ; (8001320 ) - 800126e: 681b ldr r3, [r3, #0] - 8001270: 2b00 cmp r3, #0 - 8001272: d150 bne.n 8001316 + 8001268: 4b2c ldr r3, [pc, #176] ; (800131c ) + 800126a: 681b ldr r3, [r3, #0] + 800126c: 2b00 cmp r3, #0 + 800126e: d150 bne.n 8001312 return; } FMC_Initialized = 1; - 8001274: 4b2a ldr r3, [pc, #168] ; (8001320 ) - 8001276: 2201 movs r2, #1 - 8001278: 601a str r2, [r3, #0] + 8001270: 4b2a ldr r3, [pc, #168] ; (800131c ) + 8001272: 2201 movs r2, #1 + 8001274: 601a str r2, [r3, #0] /* Peripheral clock enable */ __HAL_RCC_FMC_CLK_ENABLE(); - 800127a: 2300 movs r3, #0 - 800127c: 603b str r3, [r7, #0] - 800127e: 4b29 ldr r3, [pc, #164] ; (8001324 ) - 8001280: 6b9b ldr r3, [r3, #56] ; 0x38 - 8001282: 4a28 ldr r2, [pc, #160] ; (8001324 ) - 8001284: f043 0301 orr.w r3, r3, #1 - 8001288: 6393 str r3, [r2, #56] ; 0x38 - 800128a: 4b26 ldr r3, [pc, #152] ; (8001324 ) - 800128c: 6b9b ldr r3, [r3, #56] ; 0x38 - 800128e: f003 0301 and.w r3, r3, #1 - 8001292: 603b str r3, [r7, #0] - 8001294: 683b ldr r3, [r7, #0] + 8001276: 2300 movs r3, #0 + 8001278: 603b str r3, [r7, #0] + 800127a: 4b29 ldr r3, [pc, #164] ; (8001320 ) + 800127c: 6b9b ldr r3, [r3, #56] ; 0x38 + 800127e: 4a28 ldr r2, [pc, #160] ; (8001320 ) + 8001280: f043 0301 orr.w r3, r3, #1 + 8001284: 6393 str r3, [r2, #56] ; 0x38 + 8001286: 4b26 ldr r3, [pc, #152] ; (8001320 ) + 8001288: 6b9b ldr r3, [r3, #56] ; 0x38 + 800128a: f003 0301 and.w r3, r3, #1 + 800128e: 603b str r3, [r7, #0] + 8001290: 683b ldr r3, [r7, #0] PD1 ------> FMC_D3 PD4 ------> FMC_NOE PD5 ------> FMC_NWE PD7 ------> FMC_NE1 */ GPIO_InitStruct.Pin = GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6 - 8001296: f64f 73f8 movw r3, #65528 ; 0xfff8 - 800129a: 607b str r3, [r7, #4] + 8001292: f64f 73f8 movw r3, #65528 ; 0xfff8 + 8001296: 607b str r3, [r7, #4] |GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10 |GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14 |GPIO_PIN_15; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800129c: 2302 movs r3, #2 - 800129e: 60bb str r3, [r7, #8] + 8001298: 2302 movs r3, #2 + 800129a: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80012a0: 2300 movs r3, #0 - 80012a2: 60fb str r3, [r7, #12] + 800129c: 2300 movs r3, #0 + 800129e: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80012a4: 2303 movs r3, #3 - 80012a6: 613b str r3, [r7, #16] + 80012a0: 2303 movs r3, #3 + 80012a2: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 80012a8: 230c movs r3, #12 - 80012aa: 617b str r3, [r7, #20] + 80012a4: 230c movs r3, #12 + 80012a6: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 80012ac: 1d3b adds r3, r7, #4 - 80012ae: 4619 mov r1, r3 - 80012b0: 481d ldr r0, [pc, #116] ; (8001328 ) - 80012b2: f001 fc83 bl 8002bbc + 80012a8: 1d3b adds r3, r7, #4 + 80012aa: 4619 mov r1, r3 + 80012ac: 481d ldr r0, [pc, #116] ; (8001324 ) + 80012ae: f001 fc83 bl 8002bb8 GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3 - 80012b6: f24f 033f movw r3, #61503 ; 0xf03f - 80012ba: 607b str r3, [r7, #4] + 80012b2: f24f 033f movw r3, #61503 ; 0xf03f + 80012b6: 607b str r3, [r7, #4] |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_12|GPIO_PIN_13 |GPIO_PIN_14|GPIO_PIN_15; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80012bc: 2302 movs r3, #2 - 80012be: 60bb str r3, [r7, #8] + 80012b8: 2302 movs r3, #2 + 80012ba: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80012c0: 2300 movs r3, #0 - 80012c2: 60fb str r3, [r7, #12] + 80012bc: 2300 movs r3, #0 + 80012be: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80012c4: 2303 movs r3, #3 - 80012c6: 613b str r3, [r7, #16] + 80012c0: 2303 movs r3, #3 + 80012c2: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 80012c8: 230c movs r3, #12 - 80012ca: 617b str r3, [r7, #20] + 80012c4: 230c movs r3, #12 + 80012c6: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOF, &GPIO_InitStruct); - 80012cc: 1d3b adds r3, r7, #4 - 80012ce: 4619 mov r1, r3 - 80012d0: 4816 ldr r0, [pc, #88] ; (800132c ) - 80012d2: f001 fc73 bl 8002bbc + 80012c8: 1d3b adds r3, r7, #4 + 80012ca: 4619 mov r1, r3 + 80012cc: 4816 ldr r0, [pc, #88] ; (8001328 ) + 80012ce: f001 fc73 bl 8002bb8 GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3 - 80012d6: 233f movs r3, #63 ; 0x3f - 80012d8: 607b str r3, [r7, #4] + 80012d2: 233f movs r3, #63 ; 0x3f + 80012d4: 607b str r3, [r7, #4] |GPIO_PIN_4|GPIO_PIN_5; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80012da: 2302 movs r3, #2 - 80012dc: 60bb str r3, [r7, #8] + 80012d6: 2302 movs r3, #2 + 80012d8: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80012de: 2300 movs r3, #0 - 80012e0: 60fb str r3, [r7, #12] + 80012da: 2300 movs r3, #0 + 80012dc: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80012e2: 2303 movs r3, #3 - 80012e4: 613b str r3, [r7, #16] + 80012de: 2303 movs r3, #3 + 80012e0: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 80012e6: 230c movs r3, #12 - 80012e8: 617b str r3, [r7, #20] + 80012e2: 230c movs r3, #12 + 80012e4: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOG, &GPIO_InitStruct); - 80012ea: 1d3b adds r3, r7, #4 - 80012ec: 4619 mov r1, r3 - 80012ee: 4810 ldr r0, [pc, #64] ; (8001330 ) - 80012f0: f001 fc64 bl 8002bbc + 80012e6: 1d3b adds r3, r7, #4 + 80012e8: 4619 mov r1, r3 + 80012ea: 4810 ldr r0, [pc, #64] ; (800132c ) + 80012ec: f001 fc64 bl 8002bb8 GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11 - 80012f4: f64f 73b3 movw r3, #65459 ; 0xffb3 - 80012f8: 607b str r3, [r7, #4] + 80012f0: f64f 73b3 movw r3, #65459 ; 0xffb3 + 80012f4: 607b str r3, [r7, #4] |GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15 |GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_4|GPIO_PIN_5 |GPIO_PIN_7; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80012fa: 2302 movs r3, #2 - 80012fc: 60bb str r3, [r7, #8] + 80012f6: 2302 movs r3, #2 + 80012f8: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80012fe: 2300 movs r3, #0 - 8001300: 60fb str r3, [r7, #12] + 80012fa: 2300 movs r3, #0 + 80012fc: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001302: 2303 movs r3, #3 - 8001304: 613b str r3, [r7, #16] + 80012fe: 2303 movs r3, #3 + 8001300: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 8001306: 230c movs r3, #12 - 8001308: 617b str r3, [r7, #20] + 8001302: 230c movs r3, #12 + 8001304: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 800130a: 1d3b adds r3, r7, #4 - 800130c: 4619 mov r1, r3 - 800130e: 4809 ldr r0, [pc, #36] ; (8001334 ) - 8001310: f001 fc54 bl 8002bbc - 8001314: e000 b.n 8001318 + 8001306: 1d3b adds r3, r7, #4 + 8001308: 4619 mov r1, r3 + 800130a: 4809 ldr r0, [pc, #36] ; (8001330 ) + 800130c: f001 fc54 bl 8002bb8 + 8001310: e000 b.n 8001314 return; - 8001316: bf00 nop + 8001312: bf00 nop /* USER CODE BEGIN FMC_MspInit 1 */ /* USER CODE END FMC_MspInit 1 */ } - 8001318: 3718 adds r7, #24 - 800131a: 46bd mov sp, r7 - 800131c: bd80 pop {r7, pc} - 800131e: bf00 nop - 8001320: 20000a4c .word 0x20000a4c - 8001324: 40023800 .word 0x40023800 - 8001328: 40021000 .word 0x40021000 - 800132c: 40021400 .word 0x40021400 - 8001330: 40021800 .word 0x40021800 - 8001334: 40020c00 .word 0x40020c00 + 8001314: 3718 adds r7, #24 + 8001316: 46bd mov sp, r7 + 8001318: bd80 pop {r7, pc} + 800131a: bf00 nop + 800131c: 20000a4c .word 0x20000a4c + 8001320: 40023800 .word 0x40023800 + 8001324: 40021000 .word 0x40021000 + 8001328: 40021400 .word 0x40021400 + 800132c: 40021800 .word 0x40021800 + 8001330: 40020c00 .word 0x40020c00 -08001338 : +08001334 : void HAL_SRAM_MspInit(SRAM_HandleTypeDef* hsram){ - 8001338: b580 push {r7, lr} - 800133a: b082 sub sp, #8 - 800133c: af00 add r7, sp, #0 - 800133e: 6078 str r0, [r7, #4] + 8001334: b580 push {r7, lr} + 8001336: b082 sub sp, #8 + 8001338: af00 add r7, sp, #0 + 800133a: 6078 str r0, [r7, #4] /* USER CODE BEGIN SRAM_MspInit 0 */ /* USER CODE END SRAM_MspInit 0 */ HAL_FMC_MspInit(); - 8001340: f7ff ff8a bl 8001258 + 800133c: f7ff ff8a bl 8001254 /* USER CODE BEGIN SRAM_MspInit 1 */ /* USER CODE END SRAM_MspInit 1 */ } - 8001344: bf00 nop - 8001346: 3708 adds r7, #8 - 8001348: 46bd mov sp, r7 - 800134a: bd80 pop {r7, pc} + 8001340: bf00 nop + 8001342: 3708 adds r7, #8 + 8001344: 46bd mov sp, r7 + 8001346: bd80 pop {r7, pc} -0800134c : +08001348 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 800134c: b480 push {r7} - 800134e: af00 add r7, sp, #0 + 8001348: b480 push {r7} + 800134a: af00 add r7, sp, #0 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) - 8001350: e7fe b.n 8001350 + 800134c: e7fe b.n 800134c -08001352 : +0800134e : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 8001352: b480 push {r7} - 8001354: af00 add r7, sp, #0 + 800134e: b480 push {r7} + 8001350: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 8001356: e7fe b.n 8001356 + 8001352: e7fe b.n 8001352 -08001358 : +08001354 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 8001358: b480 push {r7} - 800135a: af00 add r7, sp, #0 + 8001354: b480 push {r7} + 8001356: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 800135c: e7fe b.n 800135c + 8001358: e7fe b.n 8001358 -0800135e : +0800135a : /** * @brief This function handles Pre-fetch fault, memory access fault. */ void BusFault_Handler(void) { - 800135e: b480 push {r7} - 8001360: af00 add r7, sp, #0 + 800135a: b480 push {r7} + 800135c: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 8001362: e7fe b.n 8001362 + 800135e: e7fe b.n 800135e -08001364 : +08001360 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 8001364: b480 push {r7} - 8001366: af00 add r7, sp, #0 + 8001360: b480 push {r7} + 8001362: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 8001368: e7fe b.n 8001368 + 8001364: e7fe b.n 8001364 -0800136a : +08001366 : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 800136a: b480 push {r7} - 800136c: af00 add r7, sp, #0 + 8001366: b480 push {r7} + 8001368: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 800136e: bf00 nop - 8001370: 46bd mov sp, r7 - 8001372: f85d 7b04 ldr.w r7, [sp], #4 - 8001376: 4770 bx lr + 800136a: bf00 nop + 800136c: 46bd mov sp, r7 + 800136e: f85d 7b04 ldr.w r7, [sp], #4 + 8001372: 4770 bx lr -08001378 : +08001374 : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 8001378: b480 push {r7} - 800137a: af00 add r7, sp, #0 + 8001374: b480 push {r7} + 8001376: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 800137c: bf00 nop - 800137e: 46bd mov sp, r7 - 8001380: f85d 7b04 ldr.w r7, [sp], #4 - 8001384: 4770 bx lr + 8001378: bf00 nop + 800137a: 46bd mov sp, r7 + 800137c: f85d 7b04 ldr.w r7, [sp], #4 + 8001380: 4770 bx lr -08001386 : +08001382 : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 8001386: b480 push {r7} - 8001388: af00 add r7, sp, #0 + 8001382: b480 push {r7} + 8001384: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 800138a: bf00 nop - 800138c: 46bd mov sp, r7 - 800138e: f85d 7b04 ldr.w r7, [sp], #4 - 8001392: 4770 bx lr + 8001386: bf00 nop + 8001388: 46bd mov sp, r7 + 800138a: f85d 7b04 ldr.w r7, [sp], #4 + 800138e: 4770 bx lr -08001394 : +08001390 : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 8001394: b580 push {r7, lr} - 8001396: af00 add r7, sp, #0 + 8001390: b580 push {r7, lr} + 8001392: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 8001398: f000 f9f0 bl 800177c + 8001394: f000 f9f0 bl 8001778 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 800139c: bf00 nop - 800139e: bd80 pop {r7, pc} + 8001398: bf00 nop + 800139a: bd80 pop {r7, pc} -080013a0 : +0800139c : * configuration. * @param None * @retval None */ void SystemInit(void) { - 80013a0: b480 push {r7} - 80013a2: af00 add r7, sp, #0 + 800139c: b480 push {r7} + 800139e: af00 add r7, sp, #0 /* FPU settings ------------------------------------------------------------*/ #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */ - 80013a4: 4b06 ldr r3, [pc, #24] ; (80013c0 ) - 80013a6: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 80013aa: 4a05 ldr r2, [pc, #20] ; (80013c0 ) - 80013ac: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 - 80013b0: f8c2 3088 str.w r3, [r2, #136] ; 0x88 + 80013a0: 4b06 ldr r3, [pc, #24] ; (80013bc ) + 80013a2: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 80013a6: 4a05 ldr r2, [pc, #20] ; (80013bc ) + 80013a8: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 + 80013ac: f8c2 3088 str.w r3, [r2, #136] ; 0x88 /* Configure the Vector Table location -------------------------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ #endif /* USER_VECT_TAB_ADDRESS */ } - 80013b4: bf00 nop - 80013b6: 46bd mov sp, r7 - 80013b8: f85d 7b04 ldr.w r7, [sp], #4 - 80013bc: 4770 bx lr - 80013be: bf00 nop - 80013c0: e000ed00 .word 0xe000ed00 + 80013b0: bf00 nop + 80013b2: 46bd mov sp, r7 + 80013b4: f85d 7b04 ldr.w r7, [sp], #4 + 80013b8: 4770 bx lr + 80013ba: bf00 nop + 80013bc: e000ed00 .word 0xe000ed00 -080013c4 : +080013c0 : .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: ldr r0, =_estack - 80013c4: 480d ldr r0, [pc, #52] ; (80013fc ) + 80013c0: 480d ldr r0, [pc, #52] ; (80013f8 ) mov sp, r0 /* set stack pointer */ - 80013c6: 4685 mov sp, r0 + 80013c2: 4685 mov sp, r0 /* Call the clock system initialization function.*/ bl SystemInit - 80013c8: f7ff ffea bl 80013a0 + 80013c4: f7ff ffea bl 800139c /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 80013cc: 480c ldr r0, [pc, #48] ; (8001400 ) + 80013c8: 480c ldr r0, [pc, #48] ; (80013fc ) ldr r1, =_edata - 80013ce: 490d ldr r1, [pc, #52] ; (8001404 ) + 80013ca: 490d ldr r1, [pc, #52] ; (8001400 ) ldr r2, =_sidata - 80013d0: 4a0d ldr r2, [pc, #52] ; (8001408 ) + 80013cc: 4a0d ldr r2, [pc, #52] ; (8001404 ) movs r3, #0 - 80013d2: 2300 movs r3, #0 + 80013ce: 2300 movs r3, #0 b LoopCopyDataInit - 80013d4: e002 b.n 80013dc + 80013d0: e002 b.n 80013d8 -080013d6 : +080013d2 : CopyDataInit: ldr r4, [r2, r3] - 80013d6: 58d4 ldr r4, [r2, r3] + 80013d2: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 80013d8: 50c4 str r4, [r0, r3] + 80013d4: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 80013da: 3304 adds r3, #4 + 80013d6: 3304 adds r3, #4 -080013dc : +080013d8 : LoopCopyDataInit: adds r4, r0, r3 - 80013dc: 18c4 adds r4, r0, r3 + 80013d8: 18c4 adds r4, r0, r3 cmp r4, r1 - 80013de: 428c cmp r4, r1 + 80013da: 428c cmp r4, r1 bcc CopyDataInit - 80013e0: d3f9 bcc.n 80013d6 + 80013dc: d3f9 bcc.n 80013d2 /* Zero fill the bss segment. */ ldr r2, =_sbss - 80013e2: 4a0a ldr r2, [pc, #40] ; (800140c ) + 80013de: 4a0a ldr r2, [pc, #40] ; (8001408 ) ldr r4, =_ebss - 80013e4: 4c0a ldr r4, [pc, #40] ; (8001410 ) + 80013e0: 4c0a ldr r4, [pc, #40] ; (800140c ) movs r3, #0 - 80013e6: 2300 movs r3, #0 + 80013e2: 2300 movs r3, #0 b LoopFillZerobss - 80013e8: e001 b.n 80013ee + 80013e4: e001 b.n 80013ea -080013ea : +080013e6 : FillZerobss: str r3, [r2] - 80013ea: 6013 str r3, [r2, #0] + 80013e6: 6013 str r3, [r2, #0] adds r2, r2, #4 - 80013ec: 3204 adds r2, #4 + 80013e8: 3204 adds r2, #4 -080013ee : +080013ea : LoopFillZerobss: cmp r2, r4 - 80013ee: 42a2 cmp r2, r4 + 80013ea: 42a2 cmp r2, r4 bcc FillZerobss - 80013f0: d3fb bcc.n 80013ea + 80013ec: d3fb bcc.n 80013e6 /* Call static constructors */ bl __libc_init_array - 80013f2: f00e ff8b bl 801030c <__libc_init_array> + 80013ee: f00e ff8b bl 8010308 <__libc_init_array> /* Call the application's entry point.*/ bl main - 80013f6: f7ff fd69 bl 8000ecc
+ 80013f2: f7ff fd6b bl 8000ecc
-080013fa : +080013f6 : LoopForever: b LoopForever - 80013fa: e7fe b.n 80013fa + 80013f6: e7fe b.n 80013f6 ldr r0, =_estack - 80013fc: 20030000 .word 0x20030000 + 80013f8: 20030000 .word 0x20030000 ldr r0, =_sdata - 8001400: 20000000 .word 0x20000000 + 80013fc: 20000000 .word 0x20000000 ldr r1, =_edata - 8001404: 200009e0 .word 0x200009e0 + 8001400: 200009e0 .word 0x200009e0 ldr r2, =_sidata - 8001408: 080181a0 .word 0x080181a0 + 8001404: 080181a0 .word 0x080181a0 ldr r2, =_sbss - 800140c: 200009e0 .word 0x200009e0 + 8001408: 200009e0 .word 0x200009e0 ldr r4, =_ebss - 8001410: 20008dd0 .word 0x20008dd0 + 800140c: 20008dd0 .word 0x20008dd0 -08001414 : +08001410 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8001414: e7fe b.n 8001414 + 8001410: e7fe b.n 8001410 -08001416 : +08001412 : * @param ioctx: holds device IO functions. * @retval DP83848_STATUS_OK if OK * DP83848_STATUS_ERROR if missing mandatory function */ int32_t DP83848_RegisterBusIO(dp83848_Object_t *pObj, dp83848_IOCtx_t *ioctx) { - 8001416: b480 push {r7} - 8001418: b083 sub sp, #12 - 800141a: af00 add r7, sp, #0 - 800141c: 6078 str r0, [r7, #4] - 800141e: 6039 str r1, [r7, #0] + 8001412: b480 push {r7} + 8001414: b083 sub sp, #12 + 8001416: af00 add r7, sp, #0 + 8001418: 6078 str r0, [r7, #4] + 800141a: 6039 str r1, [r7, #0] if(!pObj || !ioctx->ReadReg || !ioctx->WriteReg || !ioctx->GetTick) - 8001420: 687b ldr r3, [r7, #4] - 8001422: 2b00 cmp r3, #0 - 8001424: d00b beq.n 800143e - 8001426: 683b ldr r3, [r7, #0] - 8001428: 68db ldr r3, [r3, #12] - 800142a: 2b00 cmp r3, #0 - 800142c: d007 beq.n 800143e - 800142e: 683b ldr r3, [r7, #0] - 8001430: 689b ldr r3, [r3, #8] - 8001432: 2b00 cmp r3, #0 - 8001434: d003 beq.n 800143e - 8001436: 683b ldr r3, [r7, #0] - 8001438: 691b ldr r3, [r3, #16] - 800143a: 2b00 cmp r3, #0 - 800143c: d102 bne.n 8001444 + 800141c: 687b ldr r3, [r7, #4] + 800141e: 2b00 cmp r3, #0 + 8001420: d00b beq.n 800143a + 8001422: 683b ldr r3, [r7, #0] + 8001424: 68db ldr r3, [r3, #12] + 8001426: 2b00 cmp r3, #0 + 8001428: d007 beq.n 800143a + 800142a: 683b ldr r3, [r7, #0] + 800142c: 689b ldr r3, [r3, #8] + 800142e: 2b00 cmp r3, #0 + 8001430: d003 beq.n 800143a + 8001432: 683b ldr r3, [r7, #0] + 8001434: 691b ldr r3, [r3, #16] + 8001436: 2b00 cmp r3, #0 + 8001438: d102 bne.n 8001440 { return DP83848_STATUS_ERROR; - 800143e: f04f 33ff mov.w r3, #4294967295 - 8001442: e014 b.n 800146e + 800143a: f04f 33ff mov.w r3, #4294967295 + 800143e: e014 b.n 800146a } pObj->IO.Init = ioctx->Init; - 8001444: 683b ldr r3, [r7, #0] - 8001446: 681a ldr r2, [r3, #0] - 8001448: 687b ldr r3, [r7, #4] - 800144a: 609a str r2, [r3, #8] + 8001440: 683b ldr r3, [r7, #0] + 8001442: 681a ldr r2, [r3, #0] + 8001444: 687b ldr r3, [r7, #4] + 8001446: 609a str r2, [r3, #8] pObj->IO.DeInit = ioctx->DeInit; - 800144c: 683b ldr r3, [r7, #0] - 800144e: 685a ldr r2, [r3, #4] - 8001450: 687b ldr r3, [r7, #4] - 8001452: 60da str r2, [r3, #12] + 8001448: 683b ldr r3, [r7, #0] + 800144a: 685a ldr r2, [r3, #4] + 800144c: 687b ldr r3, [r7, #4] + 800144e: 60da str r2, [r3, #12] pObj->IO.ReadReg = ioctx->ReadReg; - 8001454: 683b ldr r3, [r7, #0] - 8001456: 68da ldr r2, [r3, #12] - 8001458: 687b ldr r3, [r7, #4] - 800145a: 615a str r2, [r3, #20] + 8001450: 683b ldr r3, [r7, #0] + 8001452: 68da ldr r2, [r3, #12] + 8001454: 687b ldr r3, [r7, #4] + 8001456: 615a str r2, [r3, #20] pObj->IO.WriteReg = ioctx->WriteReg; - 800145c: 683b ldr r3, [r7, #0] - 800145e: 689a ldr r2, [r3, #8] - 8001460: 687b ldr r3, [r7, #4] - 8001462: 611a str r2, [r3, #16] + 8001458: 683b ldr r3, [r7, #0] + 800145a: 689a ldr r2, [r3, #8] + 800145c: 687b ldr r3, [r7, #4] + 800145e: 611a str r2, [r3, #16] pObj->IO.GetTick = ioctx->GetTick; - 8001464: 683b ldr r3, [r7, #0] - 8001466: 691a ldr r2, [r3, #16] - 8001468: 687b ldr r3, [r7, #4] - 800146a: 619a str r2, [r3, #24] + 8001460: 683b ldr r3, [r7, #0] + 8001462: 691a ldr r2, [r3, #16] + 8001464: 687b ldr r3, [r7, #4] + 8001466: 619a str r2, [r3, #24] return DP83848_STATUS_OK; - 800146c: 2300 movs r3, #0 + 8001468: 2300 movs r3, #0 } - 800146e: 4618 mov r0, r3 - 8001470: 370c adds r7, #12 - 8001472: 46bd mov sp, r7 - 8001474: f85d 7b04 ldr.w r7, [sp], #4 - 8001478: 4770 bx lr + 800146a: 4618 mov r0, r3 + 800146c: 370c adds r7, #12 + 800146e: 46bd mov sp, r7 + 8001470: f85d 7b04 ldr.w r7, [sp], #4 + 8001474: 4770 bx lr -0800147a : +08001476 : * DP83848_STATUS_READ_ERROR if connot read register * DP83848_STATUS_WRITE_ERROR if connot write to register * DP83848_STATUS_RESET_TIMEOUT if cannot perform a software reset */ int32_t DP83848_Init(dp83848_Object_t *pObj) { - 800147a: b580 push {r7, lr} - 800147c: b086 sub sp, #24 - 800147e: af00 add r7, sp, #0 - 8001480: 6078 str r0, [r7, #4] + 8001476: b580 push {r7, lr} + 8001478: b086 sub sp, #24 + 800147a: af00 add r7, sp, #0 + 800147c: 6078 str r0, [r7, #4] uint32_t tickstart = 0, regvalue = 0, addr = 0; + 800147e: 2300 movs r3, #0 + 8001480: 60fb str r3, [r7, #12] 8001482: 2300 movs r3, #0 - 8001484: 60fb str r3, [r7, #12] + 8001484: 60bb str r3, [r7, #8] 8001486: 2300 movs r3, #0 - 8001488: 60bb str r3, [r7, #8] - 800148a: 2300 movs r3, #0 - 800148c: 617b str r3, [r7, #20] + 8001488: 617b str r3, [r7, #20] int32_t status = DP83848_STATUS_OK; - 800148e: 2300 movs r3, #0 - 8001490: 613b str r3, [r7, #16] + 800148a: 2300 movs r3, #0 + 800148c: 613b str r3, [r7, #16] if(pObj->Is_Initialized == 0) - 8001492: 687b ldr r3, [r7, #4] - 8001494: 685b ldr r3, [r3, #4] - 8001496: 2b00 cmp r3, #0 - 8001498: d17c bne.n 8001594 + 800148e: 687b ldr r3, [r7, #4] + 8001490: 685b ldr r3, [r3, #4] + 8001492: 2b00 cmp r3, #0 + 8001494: d17c bne.n 8001590 { if(pObj->IO.Init != 0) - 800149a: 687b ldr r3, [r7, #4] - 800149c: 689b ldr r3, [r3, #8] - 800149e: 2b00 cmp r3, #0 - 80014a0: d002 beq.n 80014a8 + 8001496: 687b ldr r3, [r7, #4] + 8001498: 689b ldr r3, [r3, #8] + 800149a: 2b00 cmp r3, #0 + 800149c: d002 beq.n 80014a4 { /* GPIO and Clocks initialization */ pObj->IO.Init(); - 80014a2: 687b ldr r3, [r7, #4] - 80014a4: 689b ldr r3, [r3, #8] - 80014a6: 4798 blx r3 + 800149e: 687b ldr r3, [r7, #4] + 80014a0: 689b ldr r3, [r3, #8] + 80014a2: 4798 blx r3 } /* for later check */ pObj->DevAddr = DP83848_MAX_DEV_ADDR + 1; - 80014a8: 687b ldr r3, [r7, #4] - 80014aa: 2220 movs r2, #32 - 80014ac: 601a str r2, [r3, #0] + 80014a4: 687b ldr r3, [r7, #4] + 80014a6: 2220 movs r2, #32 + 80014a8: 601a str r2, [r3, #0] /* Get the device address from special mode register */ for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++) - 80014ae: 2300 movs r3, #0 - 80014b0: 617b str r3, [r7, #20] - 80014b2: e01c b.n 80014ee + 80014aa: 2300 movs r3, #0 + 80014ac: 617b str r3, [r7, #20] + 80014ae: e01c b.n 80014ea { if(pObj->IO.ReadReg(addr, DP83848_SMR, ®value) < 0) - 80014b4: 687b ldr r3, [r7, #4] - 80014b6: 695b ldr r3, [r3, #20] - 80014b8: f107 0208 add.w r2, r7, #8 - 80014bc: 2119 movs r1, #25 - 80014be: 6978 ldr r0, [r7, #20] - 80014c0: 4798 blx r3 - 80014c2: 4603 mov r3, r0 - 80014c4: 2b00 cmp r3, #0 - 80014c6: da03 bge.n 80014d0 + 80014b0: 687b ldr r3, [r7, #4] + 80014b2: 695b ldr r3, [r3, #20] + 80014b4: f107 0208 add.w r2, r7, #8 + 80014b8: 2119 movs r1, #25 + 80014ba: 6978 ldr r0, [r7, #20] + 80014bc: 4798 blx r3 + 80014be: 4603 mov r3, r0 + 80014c0: 2b00 cmp r3, #0 + 80014c2: da03 bge.n 80014cc { status = DP83848_STATUS_READ_ERROR; - 80014c8: f06f 0304 mvn.w r3, #4 - 80014cc: 613b str r3, [r7, #16] + 80014c4: f06f 0304 mvn.w r3, #4 + 80014c8: 613b str r3, [r7, #16] /* Can't read from this device address continue with next address */ continue; - 80014ce: e00b b.n 80014e8 + 80014ca: e00b b.n 80014e4 } if((regvalue & DP83848_SMR_PHY_ADDR) == addr) - 80014d0: 68bb ldr r3, [r7, #8] - 80014d2: f003 031f and.w r3, r3, #31 - 80014d6: 697a ldr r2, [r7, #20] - 80014d8: 429a cmp r2, r3 - 80014da: d105 bne.n 80014e8 + 80014cc: 68bb ldr r3, [r7, #8] + 80014ce: f003 031f and.w r3, r3, #31 + 80014d2: 697a ldr r2, [r7, #20] + 80014d4: 429a cmp r2, r3 + 80014d6: d105 bne.n 80014e4 { pObj->DevAddr = addr; - 80014dc: 687b ldr r3, [r7, #4] - 80014de: 697a ldr r2, [r7, #20] - 80014e0: 601a str r2, [r3, #0] + 80014d8: 687b ldr r3, [r7, #4] + 80014da: 697a ldr r2, [r7, #20] + 80014dc: 601a str r2, [r3, #0] status = DP83848_STATUS_OK; - 80014e2: 2300 movs r3, #0 - 80014e4: 613b str r3, [r7, #16] + 80014de: 2300 movs r3, #0 + 80014e0: 613b str r3, [r7, #16] break; - 80014e6: e005 b.n 80014f4 + 80014e2: e005 b.n 80014f0 for(addr = 0; addr <= DP83848_MAX_DEV_ADDR; addr ++) - 80014e8: 697b ldr r3, [r7, #20] - 80014ea: 3301 adds r3, #1 - 80014ec: 617b str r3, [r7, #20] - 80014ee: 697b ldr r3, [r7, #20] - 80014f0: 2b1f cmp r3, #31 - 80014f2: d9df bls.n 80014b4 + 80014e4: 697b ldr r3, [r7, #20] + 80014e6: 3301 adds r3, #1 + 80014e8: 617b str r3, [r7, #20] + 80014ea: 697b ldr r3, [r7, #20] + 80014ec: 2b1f cmp r3, #31 + 80014ee: d9df bls.n 80014b0 } } if(pObj->DevAddr > DP83848_MAX_DEV_ADDR) - 80014f4: 687b ldr r3, [r7, #4] - 80014f6: 681b ldr r3, [r3, #0] - 80014f8: 2b1f cmp r3, #31 - 80014fa: d902 bls.n 8001502 + 80014f0: 687b ldr r3, [r7, #4] + 80014f2: 681b ldr r3, [r3, #0] + 80014f4: 2b1f cmp r3, #31 + 80014f6: d902 bls.n 80014fe { status = DP83848_STATUS_ADDRESS_ERROR; - 80014fc: f06f 0302 mvn.w r3, #2 - 8001500: 613b str r3, [r7, #16] + 80014f8: f06f 0302 mvn.w r3, #2 + 80014fc: 613b str r3, [r7, #16] } /* if device address is matched */ if(status == DP83848_STATUS_OK) - 8001502: 693b ldr r3, [r7, #16] - 8001504: 2b00 cmp r3, #0 - 8001506: d145 bne.n 8001594 + 80014fe: 693b ldr r3, [r7, #16] + 8001500: 2b00 cmp r3, #0 + 8001502: d145 bne.n 8001590 { /* set a software reset */ if(pObj->IO.WriteReg(pObj->DevAddr, DP83848_BCR, DP83848_BCR_SOFT_RESET) >= 0) - 8001508: 687b ldr r3, [r7, #4] - 800150a: 691b ldr r3, [r3, #16] - 800150c: 687a ldr r2, [r7, #4] - 800150e: 6810 ldr r0, [r2, #0] - 8001510: f44f 4200 mov.w r2, #32768 ; 0x8000 - 8001514: 2100 movs r1, #0 - 8001516: 4798 blx r3 - 8001518: 4603 mov r3, r0 - 800151a: 2b00 cmp r3, #0 - 800151c: db37 blt.n 800158e + 8001504: 687b ldr r3, [r7, #4] + 8001506: 691b ldr r3, [r3, #16] + 8001508: 687a ldr r2, [r7, #4] + 800150a: 6810 ldr r0, [r2, #0] + 800150c: f44f 4200 mov.w r2, #32768 ; 0x8000 + 8001510: 2100 movs r1, #0 + 8001512: 4798 blx r3 + 8001514: 4603 mov r3, r0 + 8001516: 2b00 cmp r3, #0 + 8001518: db37 blt.n 800158a { /* get software reset status */ if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BCR, ®value) >= 0) - 800151e: 687b ldr r3, [r7, #4] - 8001520: 695b ldr r3, [r3, #20] - 8001522: 687a ldr r2, [r7, #4] - 8001524: 6810 ldr r0, [r2, #0] - 8001526: f107 0208 add.w r2, r7, #8 - 800152a: 2100 movs r1, #0 - 800152c: 4798 blx r3 - 800152e: 4603 mov r3, r0 - 8001530: 2b00 cmp r3, #0 - 8001532: db28 blt.n 8001586 + 800151a: 687b ldr r3, [r7, #4] + 800151c: 695b ldr r3, [r3, #20] + 800151e: 687a ldr r2, [r7, #4] + 8001520: 6810 ldr r0, [r2, #0] + 8001522: f107 0208 add.w r2, r7, #8 + 8001526: 2100 movs r1, #0 + 8001528: 4798 blx r3 + 800152a: 4603 mov r3, r0 + 800152c: 2b00 cmp r3, #0 + 800152e: db28 blt.n 8001582 { tickstart = pObj->IO.GetTick(); - 8001534: 687b ldr r3, [r7, #4] - 8001536: 699b ldr r3, [r3, #24] - 8001538: 4798 blx r3 - 800153a: 4603 mov r3, r0 - 800153c: 60fb str r3, [r7, #12] + 8001530: 687b ldr r3, [r7, #4] + 8001532: 699b ldr r3, [r3, #24] + 8001534: 4798 blx r3 + 8001536: 4603 mov r3, r0 + 8001538: 60fb str r3, [r7, #12] /* wait until software reset is done or timeout occured */ while(regvalue & DP83848_BCR_SOFT_RESET) - 800153e: e01c b.n 800157a + 800153a: e01c b.n 8001576 { if((pObj->IO.GetTick() - tickstart) <= DP83848_SW_RESET_TO) - 8001540: 687b ldr r3, [r7, #4] - 8001542: 699b ldr r3, [r3, #24] - 8001544: 4798 blx r3 - 8001546: 4603 mov r3, r0 - 8001548: 461a mov r2, r3 - 800154a: 68fb ldr r3, [r7, #12] - 800154c: 1ad3 subs r3, r2, r3 - 800154e: f5b3 7ffa cmp.w r3, #500 ; 0x1f4 - 8001552: d80e bhi.n 8001572 + 800153c: 687b ldr r3, [r7, #4] + 800153e: 699b ldr r3, [r3, #24] + 8001540: 4798 blx r3 + 8001542: 4603 mov r3, r0 + 8001544: 461a mov r2, r3 + 8001546: 68fb ldr r3, [r7, #12] + 8001548: 1ad3 subs r3, r2, r3 + 800154a: f5b3 7ffa cmp.w r3, #500 ; 0x1f4 + 800154e: d80e bhi.n 800156e { if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BCR, ®value) < 0) - 8001554: 687b ldr r3, [r7, #4] - 8001556: 695b ldr r3, [r3, #20] - 8001558: 687a ldr r2, [r7, #4] - 800155a: 6810 ldr r0, [r2, #0] - 800155c: f107 0208 add.w r2, r7, #8 - 8001560: 2100 movs r1, #0 - 8001562: 4798 blx r3 - 8001564: 4603 mov r3, r0 - 8001566: 2b00 cmp r3, #0 - 8001568: da07 bge.n 800157a + 8001550: 687b ldr r3, [r7, #4] + 8001552: 695b ldr r3, [r3, #20] + 8001554: 687a ldr r2, [r7, #4] + 8001556: 6810 ldr r0, [r2, #0] + 8001558: f107 0208 add.w r2, r7, #8 + 800155c: 2100 movs r1, #0 + 800155e: 4798 blx r3 + 8001560: 4603 mov r3, r0 + 8001562: 2b00 cmp r3, #0 + 8001564: da07 bge.n 8001576 { status = DP83848_STATUS_READ_ERROR; - 800156a: f06f 0304 mvn.w r3, #4 - 800156e: 613b str r3, [r7, #16] + 8001566: f06f 0304 mvn.w r3, #4 + 800156a: 613b str r3, [r7, #16] break; - 8001570: e010 b.n 8001594 + 800156c: e010 b.n 8001590 } } else { status = DP83848_STATUS_RESET_TIMEOUT; - 8001572: f06f 0301 mvn.w r3, #1 - 8001576: 613b str r3, [r7, #16] + 800156e: f06f 0301 mvn.w r3, #1 + 8001572: 613b str r3, [r7, #16] break; - 8001578: e00c b.n 8001594 + 8001574: e00c b.n 8001590 while(regvalue & DP83848_BCR_SOFT_RESET) - 800157a: 68bb ldr r3, [r7, #8] - 800157c: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 8001580: 2b00 cmp r3, #0 - 8001582: d1dd bne.n 8001540 - 8001584: e006 b.n 8001594 + 8001576: 68bb ldr r3, [r7, #8] + 8001578: f403 4300 and.w r3, r3, #32768 ; 0x8000 + 800157c: 2b00 cmp r3, #0 + 800157e: d1dd bne.n 800153c + 8001580: e006 b.n 8001590 } } } else { status = DP83848_STATUS_READ_ERROR; - 8001586: f06f 0304 mvn.w r3, #4 - 800158a: 613b str r3, [r7, #16] - 800158c: e002 b.n 8001594 + 8001582: f06f 0304 mvn.w r3, #4 + 8001586: 613b str r3, [r7, #16] + 8001588: e002 b.n 8001590 } } else { status = DP83848_STATUS_WRITE_ERROR; - 800158e: f06f 0303 mvn.w r3, #3 - 8001592: 613b str r3, [r7, #16] + 800158a: f06f 0303 mvn.w r3, #3 + 800158e: 613b str r3, [r7, #16] } } } if(status == DP83848_STATUS_OK) - 8001594: 693b ldr r3, [r7, #16] - 8001596: 2b00 cmp r3, #0 - 8001598: d112 bne.n 80015c0 + 8001590: 693b ldr r3, [r7, #16] + 8001592: 2b00 cmp r3, #0 + 8001594: d112 bne.n 80015bc { tickstart = pObj->IO.GetTick(); - 800159a: 687b ldr r3, [r7, #4] - 800159c: 699b ldr r3, [r3, #24] - 800159e: 4798 blx r3 - 80015a0: 4603 mov r3, r0 - 80015a2: 60fb str r3, [r7, #12] + 8001596: 687b ldr r3, [r7, #4] + 8001598: 699b ldr r3, [r3, #24] + 800159a: 4798 blx r3 + 800159c: 4603 mov r3, r0 + 800159e: 60fb str r3, [r7, #12] /* Wait for 2s to perform initialization */ while((pObj->IO.GetTick() - tickstart) <= DP83848_INIT_TO) - 80015a4: bf00 nop - 80015a6: 687b ldr r3, [r7, #4] - 80015a8: 699b ldr r3, [r3, #24] - 80015aa: 4798 blx r3 - 80015ac: 4603 mov r3, r0 - 80015ae: 461a mov r2, r3 - 80015b0: 68fb ldr r3, [r7, #12] - 80015b2: 1ad3 subs r3, r2, r3 - 80015b4: f5b3 6ffa cmp.w r3, #2000 ; 0x7d0 - 80015b8: d9f5 bls.n 80015a6 + 80015a0: bf00 nop + 80015a2: 687b ldr r3, [r7, #4] + 80015a4: 699b ldr r3, [r3, #24] + 80015a6: 4798 blx r3 + 80015a8: 4603 mov r3, r0 + 80015aa: 461a mov r2, r3 + 80015ac: 68fb ldr r3, [r7, #12] + 80015ae: 1ad3 subs r3, r2, r3 + 80015b0: f5b3 6ffa cmp.w r3, #2000 ; 0x7d0 + 80015b4: d9f5 bls.n 80015a2 { } pObj->Is_Initialized = 1; - 80015ba: 687b ldr r3, [r7, #4] - 80015bc: 2201 movs r2, #1 - 80015be: 605a str r2, [r3, #4] + 80015b6: 687b ldr r3, [r7, #4] + 80015b8: 2201 movs r2, #1 + 80015ba: 605a str r2, [r3, #4] } return status; - 80015c0: 693b ldr r3, [r7, #16] + 80015bc: 693b ldr r3, [r7, #16] } - 80015c2: 4618 mov r0, r3 - 80015c4: 3718 adds r7, #24 - 80015c6: 46bd mov sp, r7 - 80015c8: bd80 pop {r7, pc} + 80015be: 4618 mov r0, r3 + 80015c0: 3718 adds r7, #24 + 80015c2: 46bd mov sp, r7 + 80015c4: bd80 pop {r7, pc} -080015ca : +080015c6 : * DP83848_STATUS_10MBITS_HALFDUPLEX if 10Mb/s HD * DP83848_STATUS_READ_ERROR if connot read register * DP83848_STATUS_WRITE_ERROR if connot write to register */ int32_t DP83848_GetLinkState(dp83848_Object_t *pObj) { - 80015ca: b580 push {r7, lr} - 80015cc: b084 sub sp, #16 - 80015ce: af00 add r7, sp, #0 - 80015d0: 6078 str r0, [r7, #4] + 80015c6: b580 push {r7, lr} + 80015c8: b084 sub sp, #16 + 80015ca: af00 add r7, sp, #0 + 80015cc: 6078 str r0, [r7, #4] uint32_t readval = 0; - 80015d2: 2300 movs r3, #0 - 80015d4: 60fb str r3, [r7, #12] + 80015ce: 2300 movs r3, #0 + 80015d0: 60fb str r3, [r7, #12] /* Read Status register */ if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0) - 80015d6: 687b ldr r3, [r7, #4] - 80015d8: 695b ldr r3, [r3, #20] - 80015da: 687a ldr r2, [r7, #4] - 80015dc: 6810 ldr r0, [r2, #0] - 80015de: f107 020c add.w r2, r7, #12 - 80015e2: 2101 movs r1, #1 - 80015e4: 4798 blx r3 - 80015e6: 4603 mov r3, r0 - 80015e8: 2b00 cmp r3, #0 - 80015ea: da02 bge.n 80015f2 + 80015d2: 687b ldr r3, [r7, #4] + 80015d4: 695b ldr r3, [r3, #20] + 80015d6: 687a ldr r2, [r7, #4] + 80015d8: 6810 ldr r0, [r2, #0] + 80015da: f107 020c add.w r2, r7, #12 + 80015de: 2101 movs r1, #1 + 80015e0: 4798 blx r3 + 80015e2: 4603 mov r3, r0 + 80015e4: 2b00 cmp r3, #0 + 80015e6: da02 bge.n 80015ee { return DP83848_STATUS_READ_ERROR; - 80015ec: f06f 0304 mvn.w r3, #4 - 80015f0: e06e b.n 80016d0 + 80015e8: f06f 0304 mvn.w r3, #4 + 80015ec: e06e b.n 80016cc } /* Read Status register again */ if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BSR, &readval) < 0) - 80015f2: 687b ldr r3, [r7, #4] - 80015f4: 695b ldr r3, [r3, #20] - 80015f6: 687a ldr r2, [r7, #4] - 80015f8: 6810 ldr r0, [r2, #0] - 80015fa: f107 020c add.w r2, r7, #12 - 80015fe: 2101 movs r1, #1 - 8001600: 4798 blx r3 - 8001602: 4603 mov r3, r0 - 8001604: 2b00 cmp r3, #0 - 8001606: da02 bge.n 800160e + 80015ee: 687b ldr r3, [r7, #4] + 80015f0: 695b ldr r3, [r3, #20] + 80015f2: 687a ldr r2, [r7, #4] + 80015f4: 6810 ldr r0, [r2, #0] + 80015f6: f107 020c add.w r2, r7, #12 + 80015fa: 2101 movs r1, #1 + 80015fc: 4798 blx r3 + 80015fe: 4603 mov r3, r0 + 8001600: 2b00 cmp r3, #0 + 8001602: da02 bge.n 800160a { return DP83848_STATUS_READ_ERROR; - 8001608: f06f 0304 mvn.w r3, #4 - 800160c: e060 b.n 80016d0 + 8001604: f06f 0304 mvn.w r3, #4 + 8001608: e060 b.n 80016cc } if((readval & DP83848_BSR_LINK_STATUS) == 0) - 800160e: 68fb ldr r3, [r7, #12] - 8001610: f003 0304 and.w r3, r3, #4 - 8001614: 2b00 cmp r3, #0 - 8001616: d101 bne.n 800161c + 800160a: 68fb ldr r3, [r7, #12] + 800160c: f003 0304 and.w r3, r3, #4 + 8001610: 2b00 cmp r3, #0 + 8001612: d101 bne.n 8001618 { /* Return Link Down status */ return DP83848_STATUS_LINK_DOWN; - 8001618: 2301 movs r3, #1 - 800161a: e059 b.n 80016d0 + 8001614: 2301 movs r3, #1 + 8001616: e059 b.n 80016cc } /* Check Auto negotiaition */ if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_BCR, &readval) < 0) - 800161c: 687b ldr r3, [r7, #4] - 800161e: 695b ldr r3, [r3, #20] - 8001620: 687a ldr r2, [r7, #4] - 8001622: 6810 ldr r0, [r2, #0] - 8001624: f107 020c add.w r2, r7, #12 - 8001628: 2100 movs r1, #0 - 800162a: 4798 blx r3 - 800162c: 4603 mov r3, r0 - 800162e: 2b00 cmp r3, #0 - 8001630: da02 bge.n 8001638 + 8001618: 687b ldr r3, [r7, #4] + 800161a: 695b ldr r3, [r3, #20] + 800161c: 687a ldr r2, [r7, #4] + 800161e: 6810 ldr r0, [r2, #0] + 8001620: f107 020c add.w r2, r7, #12 + 8001624: 2100 movs r1, #0 + 8001626: 4798 blx r3 + 8001628: 4603 mov r3, r0 + 800162a: 2b00 cmp r3, #0 + 800162c: da02 bge.n 8001634 { return DP83848_STATUS_READ_ERROR; - 8001632: f06f 0304 mvn.w r3, #4 - 8001636: e04b b.n 80016d0 + 800162e: f06f 0304 mvn.w r3, #4 + 8001632: e04b b.n 80016cc } if((readval & DP83848_BCR_AUTONEGO_EN) != DP83848_BCR_AUTONEGO_EN) - 8001638: 68fb ldr r3, [r7, #12] - 800163a: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 800163e: 2b00 cmp r3, #0 - 8001640: d11b bne.n 800167a + 8001634: 68fb ldr r3, [r7, #12] + 8001636: f403 5380 and.w r3, r3, #4096 ; 0x1000 + 800163a: 2b00 cmp r3, #0 + 800163c: d11b bne.n 8001676 { if(((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT) && ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE)) - 8001642: 68fb ldr r3, [r7, #12] - 8001644: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 8001648: 2b00 cmp r3, #0 - 800164a: d006 beq.n 800165a - 800164c: 68fb ldr r3, [r7, #12] - 800164e: f403 7380 and.w r3, r3, #256 ; 0x100 - 8001652: 2b00 cmp r3, #0 - 8001654: d001 beq.n 800165a + 800163e: 68fb ldr r3, [r7, #12] + 8001640: f403 5300 and.w r3, r3, #8192 ; 0x2000 + 8001644: 2b00 cmp r3, #0 + 8001646: d006 beq.n 8001656 + 8001648: 68fb ldr r3, [r7, #12] + 800164a: f403 7380 and.w r3, r3, #256 ; 0x100 + 800164e: 2b00 cmp r3, #0 + 8001650: d001 beq.n 8001656 { return DP83848_STATUS_100MBITS_FULLDUPLEX; - 8001656: 2302 movs r3, #2 - 8001658: e03a b.n 80016d0 + 8001652: 2302 movs r3, #2 + 8001654: e03a b.n 80016cc } else if ((readval & DP83848_BCR_SPEED_SELECT) == DP83848_BCR_SPEED_SELECT) - 800165a: 68fb ldr r3, [r7, #12] - 800165c: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 8001660: 2b00 cmp r3, #0 - 8001662: d001 beq.n 8001668 + 8001656: 68fb ldr r3, [r7, #12] + 8001658: f403 5300 and.w r3, r3, #8192 ; 0x2000 + 800165c: 2b00 cmp r3, #0 + 800165e: d001 beq.n 8001664 { return DP83848_STATUS_100MBITS_HALFDUPLEX; - 8001664: 2303 movs r3, #3 - 8001666: e033 b.n 80016d0 + 8001660: 2303 movs r3, #3 + 8001662: e033 b.n 80016cc } else if ((readval & DP83848_BCR_DUPLEX_MODE) == DP83848_BCR_DUPLEX_MODE) - 8001668: 68fb ldr r3, [r7, #12] - 800166a: f403 7380 and.w r3, r3, #256 ; 0x100 - 800166e: 2b00 cmp r3, #0 - 8001670: d001 beq.n 8001676 + 8001664: 68fb ldr r3, [r7, #12] + 8001666: f403 7380 and.w r3, r3, #256 ; 0x100 + 800166a: 2b00 cmp r3, #0 + 800166c: d001 beq.n 8001672 { return DP83848_STATUS_10MBITS_FULLDUPLEX; - 8001672: 2304 movs r3, #4 - 8001674: e02c b.n 80016d0 + 800166e: 2304 movs r3, #4 + 8001670: e02c b.n 80016cc } else { return DP83848_STATUS_10MBITS_HALFDUPLEX; - 8001676: 2305 movs r3, #5 - 8001678: e02a b.n 80016d0 + 8001672: 2305 movs r3, #5 + 8001674: e02a b.n 80016cc } } else /* Auto Nego enabled */ { if(pObj->IO.ReadReg(pObj->DevAddr, DP83848_PHYSCSR, &readval) < 0) - 800167a: 687b ldr r3, [r7, #4] - 800167c: 695b ldr r3, [r3, #20] - 800167e: 687a ldr r2, [r7, #4] - 8001680: 6810 ldr r0, [r2, #0] - 8001682: f107 020c add.w r2, r7, #12 - 8001686: 2110 movs r1, #16 - 8001688: 4798 blx r3 - 800168a: 4603 mov r3, r0 - 800168c: 2b00 cmp r3, #0 - 800168e: da02 bge.n 8001696 + 8001676: 687b ldr r3, [r7, #4] + 8001678: 695b ldr r3, [r3, #20] + 800167a: 687a ldr r2, [r7, #4] + 800167c: 6810 ldr r0, [r2, #0] + 800167e: f107 020c add.w r2, r7, #12 + 8001682: 2110 movs r1, #16 + 8001684: 4798 blx r3 + 8001686: 4603 mov r3, r0 + 8001688: 2b00 cmp r3, #0 + 800168a: da02 bge.n 8001692 { return DP83848_STATUS_READ_ERROR; - 8001690: f06f 0304 mvn.w r3, #4 - 8001694: e01c b.n 80016d0 + 800168c: f06f 0304 mvn.w r3, #4 + 8001690: e01c b.n 80016cc } /* Check if auto nego not done */ if((readval & DP83848_PHYSCSR_AUTONEGO_DONE) == 0) - 8001696: 68fb ldr r3, [r7, #12] - 8001698: f403 7380 and.w r3, r3, #256 ; 0x100 - 800169c: 2b00 cmp r3, #0 - 800169e: d101 bne.n 80016a4 + 8001692: 68fb ldr r3, [r7, #12] + 8001694: f403 7380 and.w r3, r3, #256 ; 0x100 + 8001698: 2b00 cmp r3, #0 + 800169a: d101 bne.n 80016a0 { return DP83848_STATUS_AUTONEGO_NOTDONE; - 80016a0: 2306 movs r3, #6 - 80016a2: e015 b.n 80016d0 + 800169c: 2306 movs r3, #6 + 800169e: e015 b.n 80016cc } if((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_FD) - 80016a4: 68fb ldr r3, [r7, #12] - 80016a6: f003 0306 and.w r3, r3, #6 - 80016aa: 2b04 cmp r3, #4 - 80016ac: d101 bne.n 80016b2 + 80016a0: 68fb ldr r3, [r7, #12] + 80016a2: f003 0306 and.w r3, r3, #6 + 80016a6: 2b04 cmp r3, #4 + 80016a8: d101 bne.n 80016ae { return DP83848_STATUS_100MBITS_FULLDUPLEX; - 80016ae: 2302 movs r3, #2 - 80016b0: e00e b.n 80016d0 + 80016aa: 2302 movs r3, #2 + 80016ac: e00e b.n 80016cc } else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_100BTX_HD) - 80016b2: 68fb ldr r3, [r7, #12] - 80016b4: f003 0306 and.w r3, r3, #6 - 80016b8: 2b00 cmp r3, #0 - 80016ba: d101 bne.n 80016c0 + 80016ae: 68fb ldr r3, [r7, #12] + 80016b0: f003 0306 and.w r3, r3, #6 + 80016b4: 2b00 cmp r3, #0 + 80016b6: d101 bne.n 80016bc { return DP83848_STATUS_100MBITS_HALFDUPLEX; - 80016bc: 2303 movs r3, #3 - 80016be: e007 b.n 80016d0 + 80016b8: 2303 movs r3, #3 + 80016ba: e007 b.n 80016cc } else if ((readval & DP83848_PHYSCSR_HCDSPEEDMASK) == DP83848_PHYSCSR_10BT_FD) - 80016c0: 68fb ldr r3, [r7, #12] - 80016c2: f003 0306 and.w r3, r3, #6 - 80016c6: 2b06 cmp r3, #6 - 80016c8: d101 bne.n 80016ce + 80016bc: 68fb ldr r3, [r7, #12] + 80016be: f003 0306 and.w r3, r3, #6 + 80016c2: 2b06 cmp r3, #6 + 80016c4: d101 bne.n 80016ca { return DP83848_STATUS_10MBITS_FULLDUPLEX; - 80016ca: 2304 movs r3, #4 - 80016cc: e000 b.n 80016d0 + 80016c6: 2304 movs r3, #4 + 80016c8: e000 b.n 80016cc } else { return DP83848_STATUS_10MBITS_HALFDUPLEX; - 80016ce: 2305 movs r3, #5 + 80016ca: 2305 movs r3, #5 } } } - 80016d0: 4618 mov r0, r3 - 80016d2: 3710 adds r7, #16 - 80016d4: 46bd mov sp, r7 - 80016d6: bd80 pop {r7, pc} + 80016cc: 4618 mov r0, r3 + 80016ce: 3710 adds r7, #16 + 80016d0: 46bd mov sp, r7 + 80016d2: bd80 pop {r7, pc} -080016d8 : +080016d4 : * need to ensure that the SysTick time base is always set to 1 millisecond * to have correct HAL operation. * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { - 80016d8: b580 push {r7, lr} - 80016da: af00 add r7, sp, #0 + 80016d4: b580 push {r7, lr} + 80016d6: af00 add r7, sp, #0 /* Configure Flash prefetch, Instruction cache, Data cache */ #if (INSTRUCTION_CACHE_ENABLE != 0U) __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); - 80016dc: 4b0e ldr r3, [pc, #56] ; (8001718 ) - 80016de: 681b ldr r3, [r3, #0] - 80016e0: 4a0d ldr r2, [pc, #52] ; (8001718 ) - 80016e2: f443 7300 orr.w r3, r3, #512 ; 0x200 - 80016e6: 6013 str r3, [r2, #0] + 80016d8: 4b0e ldr r3, [pc, #56] ; (8001714 ) + 80016da: 681b ldr r3, [r3, #0] + 80016dc: 4a0d ldr r2, [pc, #52] ; (8001714 ) + 80016de: f443 7300 orr.w r3, r3, #512 ; 0x200 + 80016e2: 6013 str r3, [r2, #0] #endif /* INSTRUCTION_CACHE_ENABLE */ #if (DATA_CACHE_ENABLE != 0U) __HAL_FLASH_DATA_CACHE_ENABLE(); - 80016e8: 4b0b ldr r3, [pc, #44] ; (8001718 ) - 80016ea: 681b ldr r3, [r3, #0] - 80016ec: 4a0a ldr r2, [pc, #40] ; (8001718 ) - 80016ee: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 80016f2: 6013 str r3, [r2, #0] + 80016e4: 4b0b ldr r3, [pc, #44] ; (8001714 ) + 80016e6: 681b ldr r3, [r3, #0] + 80016e8: 4a0a ldr r2, [pc, #40] ; (8001714 ) + 80016ea: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 80016ee: 6013 str r3, [r2, #0] #endif /* DATA_CACHE_ENABLE */ #if (PREFETCH_ENABLE != 0U) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 80016f4: 4b08 ldr r3, [pc, #32] ; (8001718 ) - 80016f6: 681b ldr r3, [r3, #0] - 80016f8: 4a07 ldr r2, [pc, #28] ; (8001718 ) - 80016fa: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80016fe: 6013 str r3, [r2, #0] + 80016f0: 4b08 ldr r3, [pc, #32] ; (8001714 ) + 80016f2: 681b ldr r3, [r3, #0] + 80016f4: 4a07 ldr r2, [pc, #28] ; (8001714 ) + 80016f6: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80016fa: 6013 str r3, [r2, #0] #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8001700: 2003 movs r0, #3 - 8001702: f000 f931 bl 8001968 + 80016fc: 2003 movs r0, #3 + 80016fe: f000 f931 bl 8001964 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8001706: 200f movs r0, #15 - 8001708: f000 f808 bl 800171c + 8001702: 200f movs r0, #15 + 8001704: f000 f808 bl 8001718 /* Init the low level hardware */ HAL_MspInit(); - 800170c: f7ff fd7c bl 8001208 + 8001708: f7ff fd7c bl 8001204 /* Return function status */ return HAL_OK; - 8001710: 2300 movs r3, #0 + 800170c: 2300 movs r3, #0 } - 8001712: 4618 mov r0, r3 - 8001714: bd80 pop {r7, pc} - 8001716: bf00 nop - 8001718: 40023c00 .word 0x40023c00 + 800170e: 4618 mov r0, r3 + 8001710: bd80 pop {r7, pc} + 8001712: bf00 nop + 8001714: 40023c00 .word 0x40023c00 -0800171c : +08001718 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 800171c: b580 push {r7, lr} - 800171e: b082 sub sp, #8 - 8001720: af00 add r7, sp, #0 - 8001722: 6078 str r0, [r7, #4] + 8001718: b580 push {r7, lr} + 800171a: b082 sub sp, #8 + 800171c: af00 add r7, sp, #0 + 800171e: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8001724: 4b12 ldr r3, [pc, #72] ; (8001770 ) - 8001726: 681a ldr r2, [r3, #0] - 8001728: 4b12 ldr r3, [pc, #72] ; (8001774 ) - 800172a: 781b ldrb r3, [r3, #0] - 800172c: 4619 mov r1, r3 - 800172e: f44f 737a mov.w r3, #1000 ; 0x3e8 - 8001732: fbb3 f3f1 udiv r3, r3, r1 - 8001736: fbb2 f3f3 udiv r3, r2, r3 - 800173a: 4618 mov r0, r3 - 800173c: f000 f93b bl 80019b6 - 8001740: 4603 mov r3, r0 - 8001742: 2b00 cmp r3, #0 - 8001744: d001 beq.n 800174a + 8001720: 4b12 ldr r3, [pc, #72] ; (800176c ) + 8001722: 681a ldr r2, [r3, #0] + 8001724: 4b12 ldr r3, [pc, #72] ; (8001770 ) + 8001726: 781b ldrb r3, [r3, #0] + 8001728: 4619 mov r1, r3 + 800172a: f44f 737a mov.w r3, #1000 ; 0x3e8 + 800172e: fbb3 f3f1 udiv r3, r3, r1 + 8001732: fbb2 f3f3 udiv r3, r2, r3 + 8001736: 4618 mov r0, r3 + 8001738: f000 f93b bl 80019b2 + 800173c: 4603 mov r3, r0 + 800173e: 2b00 cmp r3, #0 + 8001740: d001 beq.n 8001746 { return HAL_ERROR; - 8001746: 2301 movs r3, #1 - 8001748: e00e b.n 8001768 + 8001742: 2301 movs r3, #1 + 8001744: e00e b.n 8001764 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 800174a: 687b ldr r3, [r7, #4] - 800174c: 2b0f cmp r3, #15 - 800174e: d80a bhi.n 8001766 + 8001746: 687b ldr r3, [r7, #4] + 8001748: 2b0f cmp r3, #15 + 800174a: d80a bhi.n 8001762 { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8001750: 2200 movs r2, #0 - 8001752: 6879 ldr r1, [r7, #4] - 8001754: f04f 30ff mov.w r0, #4294967295 - 8001758: f000 f911 bl 800197e + 800174c: 2200 movs r2, #0 + 800174e: 6879 ldr r1, [r7, #4] + 8001750: f04f 30ff mov.w r0, #4294967295 + 8001754: f000 f911 bl 800197a uwTickPrio = TickPriority; - 800175c: 4a06 ldr r2, [pc, #24] ; (8001778 ) - 800175e: 687b ldr r3, [r7, #4] - 8001760: 6013 str r3, [r2, #0] + 8001758: 4a06 ldr r2, [pc, #24] ; (8001774 ) + 800175a: 687b ldr r3, [r7, #4] + 800175c: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 8001762: 2300 movs r3, #0 - 8001764: e000 b.n 8001768 + 800175e: 2300 movs r3, #0 + 8001760: e000 b.n 8001764 return HAL_ERROR; - 8001766: 2301 movs r3, #1 + 8001762: 2301 movs r3, #1 } - 8001768: 4618 mov r0, r3 - 800176a: 3708 adds r7, #8 - 800176c: 46bd mov sp, r7 - 800176e: bd80 pop {r7, pc} - 8001770: 20000000 .word 0x20000000 - 8001774: 20000008 .word 0x20000008 - 8001778: 20000004 .word 0x20000004 + 8001764: 4618 mov r0, r3 + 8001766: 3708 adds r7, #8 + 8001768: 46bd mov sp, r7 + 800176a: bd80 pop {r7, pc} + 800176c: 20000000 .word 0x20000000 + 8001770: 20000008 .word 0x20000008 + 8001774: 20000004 .word 0x20000004 -0800177c : +08001778 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_IncTick(void) { - 800177c: b480 push {r7} - 800177e: af00 add r7, sp, #0 + 8001778: b480 push {r7} + 800177a: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8001780: 4b06 ldr r3, [pc, #24] ; (800179c ) - 8001782: 781b ldrb r3, [r3, #0] - 8001784: 461a mov r2, r3 - 8001786: 4b06 ldr r3, [pc, #24] ; (80017a0 ) - 8001788: 681b ldr r3, [r3, #0] - 800178a: 4413 add r3, r2 - 800178c: 4a04 ldr r2, [pc, #16] ; (80017a0 ) - 800178e: 6013 str r3, [r2, #0] + 800177c: 4b06 ldr r3, [pc, #24] ; (8001798 ) + 800177e: 781b ldrb r3, [r3, #0] + 8001780: 461a mov r2, r3 + 8001782: 4b06 ldr r3, [pc, #24] ; (800179c ) + 8001784: 681b ldr r3, [r3, #0] + 8001786: 4413 add r3, r2 + 8001788: 4a04 ldr r2, [pc, #16] ; (800179c ) + 800178a: 6013 str r3, [r2, #0] } - 8001790: bf00 nop - 8001792: 46bd mov sp, r7 - 8001794: f85d 7b04 ldr.w r7, [sp], #4 - 8001798: 4770 bx lr - 800179a: bf00 nop - 800179c: 20000008 .word 0x20000008 - 80017a0: 20000a50 .word 0x20000a50 + 800178c: bf00 nop + 800178e: 46bd mov sp, r7 + 8001790: f85d 7b04 ldr.w r7, [sp], #4 + 8001794: 4770 bx lr + 8001796: bf00 nop + 8001798: 20000008 .word 0x20000008 + 800179c: 20000a50 .word 0x20000a50 -080017a4 : +080017a0 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval tick value */ __weak uint32_t HAL_GetTick(void) { - 80017a4: b480 push {r7} - 80017a6: af00 add r7, sp, #0 + 80017a0: b480 push {r7} + 80017a2: af00 add r7, sp, #0 return uwTick; - 80017a8: 4b03 ldr r3, [pc, #12] ; (80017b8 ) - 80017aa: 681b ldr r3, [r3, #0] + 80017a4: 4b03 ldr r3, [pc, #12] ; (80017b4 ) + 80017a6: 681b ldr r3, [r3, #0] } - 80017ac: 4618 mov r0, r3 - 80017ae: 46bd mov sp, r7 - 80017b0: f85d 7b04 ldr.w r7, [sp], #4 - 80017b4: 4770 bx lr - 80017b6: bf00 nop - 80017b8: 20000a50 .word 0x20000a50 + 80017a8: 4618 mov r0, r3 + 80017aa: 46bd mov sp, r7 + 80017ac: f85d 7b04 ldr.w r7, [sp], #4 + 80017b0: 4770 bx lr + 80017b2: bf00 nop + 80017b4: 20000a50 .word 0x20000a50 -080017bc : +080017b8 : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 80017bc: b580 push {r7, lr} - 80017be: b084 sub sp, #16 - 80017c0: af00 add r7, sp, #0 - 80017c2: 6078 str r0, [r7, #4] + 80017b8: b580 push {r7, lr} + 80017ba: b084 sub sp, #16 + 80017bc: af00 add r7, sp, #0 + 80017be: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 80017c4: f7ff ffee bl 80017a4 - 80017c8: 60b8 str r0, [r7, #8] + 80017c0: f7ff ffee bl 80017a0 + 80017c4: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 80017ca: 687b ldr r3, [r7, #4] - 80017cc: 60fb str r3, [r7, #12] + 80017c6: 687b ldr r3, [r7, #4] + 80017c8: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 80017ce: 68fb ldr r3, [r7, #12] - 80017d0: f1b3 3fff cmp.w r3, #4294967295 - 80017d4: d005 beq.n 80017e2 + 80017ca: 68fb ldr r3, [r7, #12] + 80017cc: f1b3 3fff cmp.w r3, #4294967295 + 80017d0: d005 beq.n 80017de { wait += (uint32_t)(uwTickFreq); - 80017d6: 4b0a ldr r3, [pc, #40] ; (8001800 ) - 80017d8: 781b ldrb r3, [r3, #0] - 80017da: 461a mov r2, r3 - 80017dc: 68fb ldr r3, [r7, #12] - 80017de: 4413 add r3, r2 - 80017e0: 60fb str r3, [r7, #12] + 80017d2: 4b0a ldr r3, [pc, #40] ; (80017fc ) + 80017d4: 781b ldrb r3, [r3, #0] + 80017d6: 461a mov r2, r3 + 80017d8: 68fb ldr r3, [r7, #12] + 80017da: 4413 add r3, r2 + 80017dc: 60fb str r3, [r7, #12] } while((HAL_GetTick() - tickstart) < wait) - 80017e2: bf00 nop - 80017e4: f7ff ffde bl 80017a4 - 80017e8: 4602 mov r2, r0 - 80017ea: 68bb ldr r3, [r7, #8] - 80017ec: 1ad3 subs r3, r2, r3 - 80017ee: 68fa ldr r2, [r7, #12] - 80017f0: 429a cmp r2, r3 - 80017f2: d8f7 bhi.n 80017e4 + 80017de: bf00 nop + 80017e0: f7ff ffde bl 80017a0 + 80017e4: 4602 mov r2, r0 + 80017e6: 68bb ldr r3, [r7, #8] + 80017e8: 1ad3 subs r3, r2, r3 + 80017ea: 68fa ldr r2, [r7, #12] + 80017ec: 429a cmp r2, r3 + 80017ee: d8f7 bhi.n 80017e0 { } } - 80017f4: bf00 nop - 80017f6: bf00 nop - 80017f8: 3710 adds r7, #16 - 80017fa: 46bd mov sp, r7 - 80017fc: bd80 pop {r7, pc} - 80017fe: bf00 nop - 8001800: 20000008 .word 0x20000008 + 80017f0: bf00 nop + 80017f2: bf00 nop + 80017f4: 3710 adds r7, #16 + 80017f6: 46bd mov sp, r7 + 80017f8: bd80 pop {r7, pc} + 80017fa: bf00 nop + 80017fc: 20000008 .word 0x20000008 -08001804 <__NVIC_SetPriorityGrouping>: +08001800 <__NVIC_SetPriorityGrouping>: In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8001804: b480 push {r7} - 8001806: b085 sub sp, #20 - 8001808: af00 add r7, sp, #0 - 800180a: 6078 str r0, [r7, #4] + 8001800: b480 push {r7} + 8001802: b085 sub sp, #20 + 8001804: af00 add r7, sp, #0 + 8001806: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 800180c: 687b ldr r3, [r7, #4] - 800180e: f003 0307 and.w r3, r3, #7 - 8001812: 60fb str r3, [r7, #12] + 8001808: 687b ldr r3, [r7, #4] + 800180a: f003 0307 and.w r3, r3, #7 + 800180e: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 8001814: 4b0c ldr r3, [pc, #48] ; (8001848 <__NVIC_SetPriorityGrouping+0x44>) - 8001816: 68db ldr r3, [r3, #12] - 8001818: 60bb str r3, [r7, #8] + 8001810: 4b0c ldr r3, [pc, #48] ; (8001844 <__NVIC_SetPriorityGrouping+0x44>) + 8001812: 68db ldr r3, [r3, #12] + 8001814: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 800181a: 68ba ldr r2, [r7, #8] - 800181c: f64f 03ff movw r3, #63743 ; 0xf8ff - 8001820: 4013 ands r3, r2 - 8001822: 60bb str r3, [r7, #8] + 8001816: 68ba ldr r2, [r7, #8] + 8001818: f64f 03ff movw r3, #63743 ; 0xf8ff + 800181c: 4013 ands r3, r2 + 800181e: 60bb str r3, [r7, #8] reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 8001824: 68fb ldr r3, [r7, #12] - 8001826: 021a lsls r2, r3, #8 + 8001820: 68fb ldr r3, [r7, #12] + 8001822: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8001828: 68bb ldr r3, [r7, #8] - 800182a: 4313 orrs r3, r2 + 8001824: 68bb ldr r3, [r7, #8] + 8001826: 4313 orrs r3, r2 reg_value = (reg_value | - 800182c: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 - 8001830: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8001834: 60bb str r3, [r7, #8] + 8001828: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 + 800182c: f443 3300 orr.w r3, r3, #131072 ; 0x20000 + 8001830: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 8001836: 4a04 ldr r2, [pc, #16] ; (8001848 <__NVIC_SetPriorityGrouping+0x44>) - 8001838: 68bb ldr r3, [r7, #8] - 800183a: 60d3 str r3, [r2, #12] + 8001832: 4a04 ldr r2, [pc, #16] ; (8001844 <__NVIC_SetPriorityGrouping+0x44>) + 8001834: 68bb ldr r3, [r7, #8] + 8001836: 60d3 str r3, [r2, #12] } - 800183c: bf00 nop - 800183e: 3714 adds r7, #20 - 8001840: 46bd mov sp, r7 - 8001842: f85d 7b04 ldr.w r7, [sp], #4 - 8001846: 4770 bx lr - 8001848: e000ed00 .word 0xe000ed00 + 8001838: bf00 nop + 800183a: 3714 adds r7, #20 + 800183c: 46bd mov sp, r7 + 800183e: f85d 7b04 ldr.w r7, [sp], #4 + 8001842: 4770 bx lr + 8001844: e000ed00 .word 0xe000ed00 -0800184c <__NVIC_GetPriorityGrouping>: +08001848 <__NVIC_GetPriorityGrouping>: \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { - 800184c: b480 push {r7} - 800184e: af00 add r7, sp, #0 + 8001848: b480 push {r7} + 800184a: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8001850: 4b04 ldr r3, [pc, #16] ; (8001864 <__NVIC_GetPriorityGrouping+0x18>) - 8001852: 68db ldr r3, [r3, #12] - 8001854: 0a1b lsrs r3, r3, #8 - 8001856: f003 0307 and.w r3, r3, #7 + 800184c: 4b04 ldr r3, [pc, #16] ; (8001860 <__NVIC_GetPriorityGrouping+0x18>) + 800184e: 68db ldr r3, [r3, #12] + 8001850: 0a1b lsrs r3, r3, #8 + 8001852: f003 0307 and.w r3, r3, #7 } - 800185a: 4618 mov r0, r3 - 800185c: 46bd mov sp, r7 - 800185e: f85d 7b04 ldr.w r7, [sp], #4 - 8001862: 4770 bx lr - 8001864: e000ed00 .word 0xe000ed00 + 8001856: 4618 mov r0, r3 + 8001858: 46bd mov sp, r7 + 800185a: f85d 7b04 ldr.w r7, [sp], #4 + 800185e: 4770 bx lr + 8001860: e000ed00 .word 0xe000ed00 -08001868 <__NVIC_SetPriority>: +08001864 <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { - 8001868: b480 push {r7} - 800186a: b083 sub sp, #12 - 800186c: af00 add r7, sp, #0 - 800186e: 4603 mov r3, r0 - 8001870: 6039 str r1, [r7, #0] - 8001872: 71fb strb r3, [r7, #7] + 8001864: b480 push {r7} + 8001866: b083 sub sp, #12 + 8001868: af00 add r7, sp, #0 + 800186a: 4603 mov r3, r0 + 800186c: 6039 str r1, [r7, #0] + 800186e: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8001874: f997 3007 ldrsb.w r3, [r7, #7] - 8001878: 2b00 cmp r3, #0 - 800187a: db0a blt.n 8001892 <__NVIC_SetPriority+0x2a> + 8001870: f997 3007 ldrsb.w r3, [r7, #7] + 8001874: 2b00 cmp r3, #0 + 8001876: db0a blt.n 800188e <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 800187c: 683b ldr r3, [r7, #0] - 800187e: b2da uxtb r2, r3 - 8001880: 490c ldr r1, [pc, #48] ; (80018b4 <__NVIC_SetPriority+0x4c>) - 8001882: f997 3007 ldrsb.w r3, [r7, #7] - 8001886: 0112 lsls r2, r2, #4 - 8001888: b2d2 uxtb r2, r2 - 800188a: 440b add r3, r1 - 800188c: f883 2300 strb.w r2, [r3, #768] ; 0x300 + 8001878: 683b ldr r3, [r7, #0] + 800187a: b2da uxtb r2, r3 + 800187c: 490c ldr r1, [pc, #48] ; (80018b0 <__NVIC_SetPriority+0x4c>) + 800187e: f997 3007 ldrsb.w r3, [r7, #7] + 8001882: 0112 lsls r2, r2, #4 + 8001884: b2d2 uxtb r2, r2 + 8001886: 440b add r3, r1 + 8001888: f883 2300 strb.w r2, [r3, #768] ; 0x300 } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } - 8001890: e00a b.n 80018a8 <__NVIC_SetPriority+0x40> + 800188c: e00a b.n 80018a4 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8001892: 683b ldr r3, [r7, #0] - 8001894: b2da uxtb r2, r3 - 8001896: 4908 ldr r1, [pc, #32] ; (80018b8 <__NVIC_SetPriority+0x50>) - 8001898: 79fb ldrb r3, [r7, #7] - 800189a: f003 030f and.w r3, r3, #15 - 800189e: 3b04 subs r3, #4 - 80018a0: 0112 lsls r2, r2, #4 - 80018a2: b2d2 uxtb r2, r2 - 80018a4: 440b add r3, r1 - 80018a6: 761a strb r2, [r3, #24] + 800188e: 683b ldr r3, [r7, #0] + 8001890: b2da uxtb r2, r3 + 8001892: 4908 ldr r1, [pc, #32] ; (80018b4 <__NVIC_SetPriority+0x50>) + 8001894: 79fb ldrb r3, [r7, #7] + 8001896: f003 030f and.w r3, r3, #15 + 800189a: 3b04 subs r3, #4 + 800189c: 0112 lsls r2, r2, #4 + 800189e: b2d2 uxtb r2, r2 + 80018a0: 440b add r3, r1 + 80018a2: 761a strb r2, [r3, #24] } - 80018a8: bf00 nop - 80018aa: 370c adds r7, #12 - 80018ac: 46bd mov sp, r7 - 80018ae: f85d 7b04 ldr.w r7, [sp], #4 - 80018b2: 4770 bx lr - 80018b4: e000e100 .word 0xe000e100 - 80018b8: e000ed00 .word 0xe000ed00 + 80018a4: bf00 nop + 80018a6: 370c adds r7, #12 + 80018a8: 46bd mov sp, r7 + 80018aa: f85d 7b04 ldr.w r7, [sp], #4 + 80018ae: 4770 bx lr + 80018b0: e000e100 .word 0xe000e100 + 80018b4: e000ed00 .word 0xe000ed00 -080018bc : +080018b8 : \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { - 80018bc: b480 push {r7} - 80018be: b089 sub sp, #36 ; 0x24 - 80018c0: af00 add r7, sp, #0 - 80018c2: 60f8 str r0, [r7, #12] - 80018c4: 60b9 str r1, [r7, #8] - 80018c6: 607a str r2, [r7, #4] + 80018b8: b480 push {r7} + 80018ba: b089 sub sp, #36 ; 0x24 + 80018bc: af00 add r7, sp, #0 + 80018be: 60f8 str r0, [r7, #12] + 80018c0: 60b9 str r1, [r7, #8] + 80018c2: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80018c8: 68fb ldr r3, [r7, #12] - 80018ca: f003 0307 and.w r3, r3, #7 - 80018ce: 61fb str r3, [r7, #28] + 80018c4: 68fb ldr r3, [r7, #12] + 80018c6: f003 0307 and.w r3, r3, #7 + 80018ca: 61fb str r3, [r7, #28] uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 80018d0: 69fb ldr r3, [r7, #28] - 80018d2: f1c3 0307 rsb r3, r3, #7 - 80018d6: 2b04 cmp r3, #4 - 80018d8: bf28 it cs - 80018da: 2304 movcs r3, #4 - 80018dc: 61bb str r3, [r7, #24] + 80018cc: 69fb ldr r3, [r7, #28] + 80018ce: f1c3 0307 rsb r3, r3, #7 + 80018d2: 2b04 cmp r3, #4 + 80018d4: bf28 it cs + 80018d6: 2304 movcs r3, #4 + 80018d8: 61bb str r3, [r7, #24] SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - 80018de: 69fb ldr r3, [r7, #28] - 80018e0: 3304 adds r3, #4 - 80018e2: 2b06 cmp r3, #6 - 80018e4: d902 bls.n 80018ec - 80018e6: 69fb ldr r3, [r7, #28] - 80018e8: 3b03 subs r3, #3 - 80018ea: e000 b.n 80018ee - 80018ec: 2300 movs r3, #0 - 80018ee: 617b str r3, [r7, #20] + 80018da: 69fb ldr r3, [r7, #28] + 80018dc: 3304 adds r3, #4 + 80018de: 2b06 cmp r3, #6 + 80018e0: d902 bls.n 80018e8 + 80018e2: 69fb ldr r3, [r7, #28] + 80018e4: 3b03 subs r3, #3 + 80018e6: e000 b.n 80018ea + 80018e8: 2300 movs r3, #0 + 80018ea: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 80018f0: f04f 32ff mov.w r2, #4294967295 - 80018f4: 69bb ldr r3, [r7, #24] - 80018f6: fa02 f303 lsl.w r3, r2, r3 - 80018fa: 43da mvns r2, r3 - 80018fc: 68bb ldr r3, [r7, #8] - 80018fe: 401a ands r2, r3 - 8001900: 697b ldr r3, [r7, #20] - 8001902: 409a lsls r2, r3 + 80018ec: f04f 32ff mov.w r2, #4294967295 + 80018f0: 69bb ldr r3, [r7, #24] + 80018f2: fa02 f303 lsl.w r3, r2, r3 + 80018f6: 43da mvns r2, r3 + 80018f8: 68bb ldr r3, [r7, #8] + 80018fa: 401a ands r2, r3 + 80018fc: 697b ldr r3, [r7, #20] + 80018fe: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8001904: f04f 31ff mov.w r1, #4294967295 - 8001908: 697b ldr r3, [r7, #20] - 800190a: fa01 f303 lsl.w r3, r1, r3 - 800190e: 43d9 mvns r1, r3 - 8001910: 687b ldr r3, [r7, #4] - 8001912: 400b ands r3, r1 + 8001900: f04f 31ff mov.w r1, #4294967295 + 8001904: 697b ldr r3, [r7, #20] + 8001906: fa01 f303 lsl.w r3, r1, r3 + 800190a: 43d9 mvns r1, r3 + 800190c: 687b ldr r3, [r7, #4] + 800190e: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8001914: 4313 orrs r3, r2 + 8001910: 4313 orrs r3, r2 ); } - 8001916: 4618 mov r0, r3 - 8001918: 3724 adds r7, #36 ; 0x24 - 800191a: 46bd mov sp, r7 - 800191c: f85d 7b04 ldr.w r7, [sp], #4 - 8001920: 4770 bx lr + 8001912: 4618 mov r0, r3 + 8001914: 3724 adds r7, #36 ; 0x24 + 8001916: 46bd mov sp, r7 + 8001918: f85d 7b04 ldr.w r7, [sp], #4 + 800191c: 4770 bx lr ... -08001924 : +08001920 : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { - 8001924: b580 push {r7, lr} - 8001926: b082 sub sp, #8 - 8001928: af00 add r7, sp, #0 - 800192a: 6078 str r0, [r7, #4] + 8001920: b580 push {r7, lr} + 8001922: b082 sub sp, #8 + 8001924: af00 add r7, sp, #0 + 8001926: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 800192c: 687b ldr r3, [r7, #4] - 800192e: 3b01 subs r3, #1 - 8001930: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 - 8001934: d301 bcc.n 800193a + 8001928: 687b ldr r3, [r7, #4] + 800192a: 3b01 subs r3, #1 + 800192c: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 + 8001930: d301 bcc.n 8001936 { return (1UL); /* Reload value impossible */ - 8001936: 2301 movs r3, #1 - 8001938: e00f b.n 800195a + 8001932: 2301 movs r3, #1 + 8001934: e00f b.n 8001956 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 800193a: 4a0a ldr r2, [pc, #40] ; (8001964 ) - 800193c: 687b ldr r3, [r7, #4] - 800193e: 3b01 subs r3, #1 - 8001940: 6053 str r3, [r2, #4] + 8001936: 4a0a ldr r2, [pc, #40] ; (8001960 ) + 8001938: 687b ldr r3, [r7, #4] + 800193a: 3b01 subs r3, #1 + 800193c: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 8001942: 210f movs r1, #15 - 8001944: f04f 30ff mov.w r0, #4294967295 - 8001948: f7ff ff8e bl 8001868 <__NVIC_SetPriority> + 800193e: 210f movs r1, #15 + 8001940: f04f 30ff mov.w r0, #4294967295 + 8001944: f7ff ff8e bl 8001864 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 800194c: 4b05 ldr r3, [pc, #20] ; (8001964 ) - 800194e: 2200 movs r2, #0 - 8001950: 609a str r2, [r3, #8] + 8001948: 4b05 ldr r3, [pc, #20] ; (8001960 ) + 800194a: 2200 movs r2, #0 + 800194c: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 8001952: 4b04 ldr r3, [pc, #16] ; (8001964 ) - 8001954: 2207 movs r2, #7 - 8001956: 601a str r2, [r3, #0] + 800194e: 4b04 ldr r3, [pc, #16] ; (8001960 ) + 8001950: 2207 movs r2, #7 + 8001952: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 8001958: 2300 movs r3, #0 + 8001954: 2300 movs r3, #0 } - 800195a: 4618 mov r0, r3 - 800195c: 3708 adds r7, #8 - 800195e: 46bd mov sp, r7 - 8001960: bd80 pop {r7, pc} - 8001962: bf00 nop - 8001964: e000e010 .word 0xe000e010 + 8001956: 4618 mov r0, r3 + 8001958: 3708 adds r7, #8 + 800195a: 46bd mov sp, r7 + 800195c: bd80 pop {r7, pc} + 800195e: bf00 nop + 8001960: e000e010 .word 0xe000e010 -08001968 : +08001964 : * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible. * The pending IRQ priority will be managed only by the subpriority. * @retval None */ void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8001968: b580 push {r7, lr} - 800196a: b082 sub sp, #8 - 800196c: af00 add r7, sp, #0 - 800196e: 6078 str r0, [r7, #4] + 8001964: b580 push {r7, lr} + 8001966: b082 sub sp, #8 + 8001968: af00 add r7, sp, #0 + 800196a: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup)); /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */ NVIC_SetPriorityGrouping(PriorityGroup); - 8001970: 6878 ldr r0, [r7, #4] - 8001972: f7ff ff47 bl 8001804 <__NVIC_SetPriorityGrouping> + 800196c: 6878 ldr r0, [r7, #4] + 800196e: f7ff ff47 bl 8001800 <__NVIC_SetPriorityGrouping> } - 8001976: bf00 nop - 8001978: 3708 adds r7, #8 - 800197a: 46bd mov sp, r7 - 800197c: bd80 pop {r7, pc} + 8001972: bf00 nop + 8001974: 3708 adds r7, #8 + 8001976: 46bd mov sp, r7 + 8001978: bd80 pop {r7, pc} -0800197e : +0800197a : * This parameter can be a value between 0 and 15 * A lower priority value indicates a higher priority. * @retval None */ void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) { - 800197e: b580 push {r7, lr} - 8001980: b086 sub sp, #24 - 8001982: af00 add r7, sp, #0 - 8001984: 4603 mov r3, r0 - 8001986: 60b9 str r1, [r7, #8] - 8001988: 607a str r2, [r7, #4] - 800198a: 73fb strb r3, [r7, #15] + 800197a: b580 push {r7, lr} + 800197c: b086 sub sp, #24 + 800197e: af00 add r7, sp, #0 + 8001980: 4603 mov r3, r0 + 8001982: 60b9 str r1, [r7, #8] + 8001984: 607a str r2, [r7, #4] + 8001986: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; - 800198c: 2300 movs r3, #0 - 800198e: 617b str r3, [r7, #20] + 8001988: 2300 movs r3, #0 + 800198a: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); prioritygroup = NVIC_GetPriorityGrouping(); - 8001990: f7ff ff5c bl 800184c <__NVIC_GetPriorityGrouping> - 8001994: 6178 str r0, [r7, #20] + 800198c: f7ff ff5c bl 8001848 <__NVIC_GetPriorityGrouping> + 8001990: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8001996: 687a ldr r2, [r7, #4] - 8001998: 68b9 ldr r1, [r7, #8] - 800199a: 6978 ldr r0, [r7, #20] - 800199c: f7ff ff8e bl 80018bc - 80019a0: 4602 mov r2, r0 - 80019a2: f997 300f ldrsb.w r3, [r7, #15] - 80019a6: 4611 mov r1, r2 - 80019a8: 4618 mov r0, r3 - 80019aa: f7ff ff5d bl 8001868 <__NVIC_SetPriority> + 8001992: 687a ldr r2, [r7, #4] + 8001994: 68b9 ldr r1, [r7, #8] + 8001996: 6978 ldr r0, [r7, #20] + 8001998: f7ff ff8e bl 80018b8 + 800199c: 4602 mov r2, r0 + 800199e: f997 300f ldrsb.w r3, [r7, #15] + 80019a2: 4611 mov r1, r2 + 80019a4: 4618 mov r0, r3 + 80019a6: f7ff ff5d bl 8001864 <__NVIC_SetPriority> } - 80019ae: bf00 nop - 80019b0: 3718 adds r7, #24 - 80019b2: 46bd mov sp, r7 - 80019b4: bd80 pop {r7, pc} + 80019aa: bf00 nop + 80019ac: 3718 adds r7, #24 + 80019ae: 46bd mov sp, r7 + 80019b0: bd80 pop {r7, pc} -080019b6 : +080019b2 : * @param TicksNumb Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { - 80019b6: b580 push {r7, lr} - 80019b8: b082 sub sp, #8 - 80019ba: af00 add r7, sp, #0 - 80019bc: 6078 str r0, [r7, #4] + 80019b2: b580 push {r7, lr} + 80019b4: b082 sub sp, #8 + 80019b6: af00 add r7, sp, #0 + 80019b8: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 80019be: 6878 ldr r0, [r7, #4] - 80019c0: f7ff ffb0 bl 8001924 - 80019c4: 4603 mov r3, r0 + 80019ba: 6878 ldr r0, [r7, #4] + 80019bc: f7ff ffb0 bl 8001920 + 80019c0: 4603 mov r3, r0 } - 80019c6: 4618 mov r0, r3 - 80019c8: 3708 adds r7, #8 - 80019ca: 46bd mov sp, r7 - 80019cc: bd80 pop {r7, pc} + 80019c2: 4618 mov r0, r3 + 80019c4: 3708 adds r7, #8 + 80019c6: 46bd mov sp, r7 + 80019c8: bd80 pop {r7, pc} ... -080019d0 : +080019cc : * @param heth: pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth) { - 80019d0: b580 push {r7, lr} - 80019d2: b084 sub sp, #16 - 80019d4: af00 add r7, sp, #0 - 80019d6: 6078 str r0, [r7, #4] + 80019cc: b580 push {r7, lr} + 80019ce: b084 sub sp, #16 + 80019d0: af00 add r7, sp, #0 + 80019d2: 6078 str r0, [r7, #4] uint32_t tickstart; if (heth == NULL) - 80019d8: 687b ldr r3, [r7, #4] - 80019da: 2b00 cmp r3, #0 - 80019dc: d101 bne.n 80019e2 + 80019d4: 687b ldr r3, [r7, #4] + 80019d6: 2b00 cmp r3, #0 + 80019d8: d101 bne.n 80019de { return HAL_ERROR; - 80019de: 2301 movs r3, #1 - 80019e0: e06c b.n 8001abc + 80019da: 2301 movs r3, #1 + 80019dc: e06c b.n 8001ab8 } if (heth->gState == HAL_ETH_STATE_RESET) - 80019e2: 687b ldr r3, [r7, #4] - 80019e4: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 80019e8: 2b00 cmp r3, #0 - 80019ea: d106 bne.n 80019fa + 80019de: 687b ldr r3, [r7, #4] + 80019e0: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 80019e4: 2b00 cmp r3, #0 + 80019e6: d106 bne.n 80019f6 { heth->gState = HAL_ETH_STATE_BUSY; - 80019ec: 687b ldr r3, [r7, #4] - 80019ee: 2223 movs r2, #35 ; 0x23 - 80019f0: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 80019e8: 687b ldr r3, [r7, #4] + 80019ea: 2223 movs r2, #35 ; 0x23 + 80019ec: f8c3 2084 str.w r2, [r3, #132] ; 0x84 /* Init the low level hardware */ heth->MspInitCallback(heth); #else /* Init the low level hardware : GPIO, CLOCK, NVIC. */ HAL_ETH_MspInit(heth); - 80019f4: 6878 ldr r0, [r7, #4] - 80019f6: f002 fa57 bl 8003ea8 + 80019f0: 6878 ldr r0, [r7, #4] + 80019f2: f002 fa57 bl 8003ea4 #endif /* (USE_HAL_ETH_REGISTER_CALLBACKS) */ } __HAL_RCC_SYSCFG_CLK_ENABLE(); - 80019fa: 2300 movs r3, #0 - 80019fc: 60bb str r3, [r7, #8] - 80019fe: 4b31 ldr r3, [pc, #196] ; (8001ac4 ) - 8001a00: 6c5b ldr r3, [r3, #68] ; 0x44 - 8001a02: 4a30 ldr r2, [pc, #192] ; (8001ac4 ) - 8001a04: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 8001a08: 6453 str r3, [r2, #68] ; 0x44 - 8001a0a: 4b2e ldr r3, [pc, #184] ; (8001ac4 ) - 8001a0c: 6c5b ldr r3, [r3, #68] ; 0x44 - 8001a0e: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 8001a12: 60bb str r3, [r7, #8] - 8001a14: 68bb ldr r3, [r7, #8] + 80019f6: 2300 movs r3, #0 + 80019f8: 60bb str r3, [r7, #8] + 80019fa: 4b31 ldr r3, [pc, #196] ; (8001ac0 ) + 80019fc: 6c5b ldr r3, [r3, #68] ; 0x44 + 80019fe: 4a30 ldr r2, [pc, #192] ; (8001ac0 ) + 8001a00: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 8001a04: 6453 str r3, [r2, #68] ; 0x44 + 8001a06: 4b2e ldr r3, [pc, #184] ; (8001ac0 ) + 8001a08: 6c5b ldr r3, [r3, #68] ; 0x44 + 8001a0a: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 8001a0e: 60bb str r3, [r7, #8] + 8001a10: 68bb ldr r3, [r7, #8] /* Select MII or RMII Mode*/ SYSCFG->PMC &= ~(SYSCFG_PMC_MII_RMII_SEL); - 8001a16: 4b2c ldr r3, [pc, #176] ; (8001ac8 ) - 8001a18: 685b ldr r3, [r3, #4] - 8001a1a: 4a2b ldr r2, [pc, #172] ; (8001ac8 ) - 8001a1c: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 - 8001a20: 6053 str r3, [r2, #4] + 8001a12: 4b2c ldr r3, [pc, #176] ; (8001ac4 ) + 8001a14: 685b ldr r3, [r3, #4] + 8001a16: 4a2b ldr r2, [pc, #172] ; (8001ac4 ) + 8001a18: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 + 8001a1c: 6053 str r3, [r2, #4] SYSCFG->PMC |= (uint32_t)heth->Init.MediaInterface; - 8001a22: 4b29 ldr r3, [pc, #164] ; (8001ac8 ) - 8001a24: 685a ldr r2, [r3, #4] - 8001a26: 687b ldr r3, [r7, #4] - 8001a28: 689b ldr r3, [r3, #8] - 8001a2a: 4927 ldr r1, [pc, #156] ; (8001ac8 ) - 8001a2c: 4313 orrs r3, r2 - 8001a2e: 604b str r3, [r1, #4] + 8001a1e: 4b29 ldr r3, [pc, #164] ; (8001ac4 ) + 8001a20: 685a ldr r2, [r3, #4] + 8001a22: 687b ldr r3, [r7, #4] + 8001a24: 689b ldr r3, [r3, #8] + 8001a26: 4927 ldr r1, [pc, #156] ; (8001ac4 ) + 8001a28: 4313 orrs r3, r2 + 8001a2a: 604b str r3, [r1, #4] /* Dummy read to sync SYSCFG with ETH */ (void)SYSCFG->PMC; - 8001a30: 4b25 ldr r3, [pc, #148] ; (8001ac8 ) - 8001a32: 685b ldr r3, [r3, #4] + 8001a2c: 4b25 ldr r3, [pc, #148] ; (8001ac4 ) + 8001a2e: 685b ldr r3, [r3, #4] /* Ethernet Software reset */ /* Set the SWR bit: resets all MAC subsystem internal registers and logic */ /* After reset all the registers holds their respective reset values */ SET_BIT(heth->Instance->DMABMR, ETH_DMABMR_SR); - 8001a34: 687b ldr r3, [r7, #4] - 8001a36: 681b ldr r3, [r3, #0] - 8001a38: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001a3c: 681b ldr r3, [r3, #0] - 8001a3e: 687a ldr r2, [r7, #4] - 8001a40: 6812 ldr r2, [r2, #0] - 8001a42: f043 0301 orr.w r3, r3, #1 - 8001a46: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8001a4a: 6013 str r3, [r2, #0] + 8001a30: 687b ldr r3, [r7, #4] + 8001a32: 681b ldr r3, [r3, #0] + 8001a34: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001a38: 681b ldr r3, [r3, #0] + 8001a3a: 687a ldr r2, [r7, #4] + 8001a3c: 6812 ldr r2, [r2, #0] + 8001a3e: f043 0301 orr.w r3, r3, #1 + 8001a42: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 8001a46: 6013 str r3, [r2, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8001a4c: f7ff feaa bl 80017a4 - 8001a50: 60f8 str r0, [r7, #12] + 8001a48: f7ff feaa bl 80017a0 + 8001a4c: 60f8 str r0, [r7, #12] /* Wait for software reset */ while (READ_BIT(heth->Instance->DMABMR, ETH_DMABMR_SR) > 0U) - 8001a52: e011 b.n 8001a78 + 8001a4e: e011 b.n 8001a74 { if (((HAL_GetTick() - tickstart) > ETH_SWRESET_TIMEOUT)) - 8001a54: f7ff fea6 bl 80017a4 - 8001a58: 4602 mov r2, r0 - 8001a5a: 68fb ldr r3, [r7, #12] - 8001a5c: 1ad3 subs r3, r2, r3 - 8001a5e: f5b3 7ffa cmp.w r3, #500 ; 0x1f4 - 8001a62: d909 bls.n 8001a78 + 8001a50: f7ff fea6 bl 80017a0 + 8001a54: 4602 mov r2, r0 + 8001a56: 68fb ldr r3, [r7, #12] + 8001a58: 1ad3 subs r3, r2, r3 + 8001a5a: f5b3 7ffa cmp.w r3, #500 ; 0x1f4 + 8001a5e: d909 bls.n 8001a74 { /* Set Error Code */ heth->ErrorCode = HAL_ETH_ERROR_TIMEOUT; - 8001a64: 687b ldr r3, [r7, #4] - 8001a66: 2204 movs r2, #4 - 8001a68: f8c3 2088 str.w r2, [r3, #136] ; 0x88 + 8001a60: 687b ldr r3, [r7, #4] + 8001a62: 2204 movs r2, #4 + 8001a64: f8c3 2088 str.w r2, [r3, #136] ; 0x88 /* Set State as Error */ heth->gState = HAL_ETH_STATE_ERROR; - 8001a6c: 687b ldr r3, [r7, #4] - 8001a6e: 22e0 movs r2, #224 ; 0xe0 - 8001a70: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 8001a68: 687b ldr r3, [r7, #4] + 8001a6a: 22e0 movs r2, #224 ; 0xe0 + 8001a6c: f8c3 2084 str.w r2, [r3, #132] ; 0x84 /* Return Error */ return HAL_ERROR; - 8001a74: 2301 movs r3, #1 - 8001a76: e021 b.n 8001abc + 8001a70: 2301 movs r3, #1 + 8001a72: e021 b.n 8001ab8 while (READ_BIT(heth->Instance->DMABMR, ETH_DMABMR_SR) > 0U) - 8001a78: 687b ldr r3, [r7, #4] - 8001a7a: 681b ldr r3, [r3, #0] - 8001a7c: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001a80: 681b ldr r3, [r3, #0] - 8001a82: f003 0301 and.w r3, r3, #1 - 8001a86: 2b00 cmp r3, #0 - 8001a88: d1e4 bne.n 8001a54 + 8001a74: 687b ldr r3, [r7, #4] + 8001a76: 681b ldr r3, [r3, #0] + 8001a78: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001a7c: 681b ldr r3, [r3, #0] + 8001a7e: f003 0301 and.w r3, r3, #1 + 8001a82: 2b00 cmp r3, #0 + 8001a84: d1e4 bne.n 8001a50 } } /*------------------ MAC, MTL and DMA default Configuration ----------------*/ ETH_MACDMAConfig(heth); - 8001a8a: 6878 ldr r0, [r7, #4] - 8001a8c: f000 fdf0 bl 8002670 + 8001a86: 6878 ldr r0, [r7, #4] + 8001a88: f000 fdf0 bl 800266c /*------------------ DMA Tx Descriptors Configuration ----------------------*/ ETH_DMATxDescListInit(heth); - 8001a90: 6878 ldr r0, [r7, #4] - 8001a92: f000 fe97 bl 80027c4 + 8001a8c: 6878 ldr r0, [r7, #4] + 8001a8e: f000 fe97 bl 80027c0 /*------------------ DMA Rx Descriptors Configuration ----------------------*/ ETH_DMARxDescListInit(heth); - 8001a96: 6878 ldr r0, [r7, #4] - 8001a98: f000 feed bl 8002876 + 8001a92: 6878 ldr r0, [r7, #4] + 8001a94: f000 feed bl 8002872 /*--------------------- ETHERNET MAC Address Configuration ------------------*/ ETH_MACAddressConfig(heth, ETH_MAC_ADDRESS0, heth->Init.MACAddr); - 8001a9c: 687b ldr r3, [r7, #4] - 8001a9e: 685b ldr r3, [r3, #4] - 8001aa0: 461a mov r2, r3 - 8001aa2: 2100 movs r1, #0 - 8001aa4: 6878 ldr r0, [r7, #4] - 8001aa6: f000 fe55 bl 8002754 + 8001a98: 687b ldr r3, [r7, #4] + 8001a9a: 685b ldr r3, [r3, #4] + 8001a9c: 461a mov r2, r3 + 8001a9e: 2100 movs r1, #0 + 8001aa0: 6878 ldr r0, [r7, #4] + 8001aa2: f000 fe55 bl 8002750 heth->ErrorCode = HAL_ETH_ERROR_NONE; - 8001aaa: 687b ldr r3, [r7, #4] - 8001aac: 2200 movs r2, #0 - 8001aae: f8c3 2088 str.w r2, [r3, #136] ; 0x88 + 8001aa6: 687b ldr r3, [r7, #4] + 8001aa8: 2200 movs r2, #0 + 8001aaa: f8c3 2088 str.w r2, [r3, #136] ; 0x88 heth->gState = HAL_ETH_STATE_READY; - 8001ab2: 687b ldr r3, [r7, #4] - 8001ab4: 2210 movs r2, #16 - 8001ab6: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 8001aae: 687b ldr r3, [r7, #4] + 8001ab0: 2210 movs r2, #16 + 8001ab2: f8c3 2084 str.w r2, [r3, #132] ; 0x84 return HAL_OK; - 8001aba: 2300 movs r3, #0 + 8001ab6: 2300 movs r3, #0 } - 8001abc: 4618 mov r0, r3 - 8001abe: 3710 adds r7, #16 - 8001ac0: 46bd mov sp, r7 - 8001ac2: bd80 pop {r7, pc} - 8001ac4: 40023800 .word 0x40023800 - 8001ac8: 40013800 .word 0x40013800 + 8001ab8: 4618 mov r0, r3 + 8001aba: 3710 adds r7, #16 + 8001abc: 46bd mov sp, r7 + 8001abe: bd80 pop {r7, pc} + 8001ac0: 40023800 .word 0x40023800 + 8001ac4: 40013800 .word 0x40013800 -08001acc : +08001ac8 : * @param heth: pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_Start(ETH_HandleTypeDef *heth) { - 8001acc: b580 push {r7, lr} - 8001ace: b084 sub sp, #16 - 8001ad0: af00 add r7, sp, #0 - 8001ad2: 6078 str r0, [r7, #4] + 8001ac8: b580 push {r7, lr} + 8001aca: b084 sub sp, #16 + 8001acc: af00 add r7, sp, #0 + 8001ace: 6078 str r0, [r7, #4] uint32_t tmpreg1; if (heth->gState == HAL_ETH_STATE_READY) - 8001ad4: 687b ldr r3, [r7, #4] - 8001ad6: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8001ada: 2b10 cmp r3, #16 - 8001adc: d150 bne.n 8001b80 + 8001ad0: 687b ldr r3, [r7, #4] + 8001ad2: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8001ad6: 2b10 cmp r3, #16 + 8001ad8: d150 bne.n 8001b7c { heth->gState = HAL_ETH_STATE_BUSY; - 8001ade: 687b ldr r3, [r7, #4] - 8001ae0: 2223 movs r2, #35 ; 0x23 - 8001ae2: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 8001ada: 687b ldr r3, [r7, #4] + 8001adc: 2223 movs r2, #35 ; 0x23 + 8001ade: f8c3 2084 str.w r2, [r3, #132] ; 0x84 /* Set nombre of descriptors to build */ heth->RxDescList.RxBuildDescCnt = ETH_RX_DESC_CNT; - 8001ae6: 687b ldr r3, [r7, #4] - 8001ae8: 2204 movs r2, #4 - 8001aea: 66da str r2, [r3, #108] ; 0x6c + 8001ae2: 687b ldr r3, [r7, #4] + 8001ae4: 2204 movs r2, #4 + 8001ae6: 66da str r2, [r3, #108] ; 0x6c /* Build all descriptors */ ETH_UpdateDescriptor(heth); - 8001aec: 6878 ldr r0, [r7, #4] - 8001aee: f000 f9fd bl 8001eec + 8001ae8: 6878 ldr r0, [r7, #4] + 8001aea: f000 f9fd bl 8001ee8 /* Enable the MAC transmission */ SET_BIT(heth->Instance->MACCR, ETH_MACCR_TE); - 8001af2: 687b ldr r3, [r7, #4] - 8001af4: 681b ldr r3, [r3, #0] - 8001af6: 681a ldr r2, [r3, #0] - 8001af8: 687b ldr r3, [r7, #4] - 8001afa: 681b ldr r3, [r3, #0] - 8001afc: f042 0208 orr.w r2, r2, #8 - 8001b00: 601a str r2, [r3, #0] + 8001aee: 687b ldr r3, [r7, #4] + 8001af0: 681b ldr r3, [r3, #0] + 8001af2: 681a ldr r2, [r3, #0] + 8001af4: 687b ldr r3, [r7, #4] + 8001af6: 681b ldr r3, [r3, #0] + 8001af8: f042 0208 orr.w r2, r2, #8 + 8001afc: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg1 = (heth->Instance)->MACCR; - 8001b02: 687b ldr r3, [r7, #4] - 8001b04: 681b ldr r3, [r3, #0] - 8001b06: 681b ldr r3, [r3, #0] - 8001b08: 60fb str r3, [r7, #12] + 8001afe: 687b ldr r3, [r7, #4] + 8001b00: 681b ldr r3, [r3, #0] + 8001b02: 681b ldr r3, [r3, #0] + 8001b04: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8001b0a: 2001 movs r0, #1 - 8001b0c: f7ff fe56 bl 80017bc + 8001b06: 2001 movs r0, #1 + 8001b08: f7ff fe56 bl 80017b8 (heth->Instance)->MACCR = tmpreg1; - 8001b10: 687b ldr r3, [r7, #4] - 8001b12: 681b ldr r3, [r3, #0] - 8001b14: 68fa ldr r2, [r7, #12] - 8001b16: 601a str r2, [r3, #0] + 8001b0c: 687b ldr r3, [r7, #4] + 8001b0e: 681b ldr r3, [r3, #0] + 8001b10: 68fa ldr r2, [r7, #12] + 8001b12: 601a str r2, [r3, #0] /* Enable the MAC reception */ SET_BIT(heth->Instance->MACCR, ETH_MACCR_RE); - 8001b18: 687b ldr r3, [r7, #4] - 8001b1a: 681b ldr r3, [r3, #0] - 8001b1c: 681a ldr r2, [r3, #0] - 8001b1e: 687b ldr r3, [r7, #4] - 8001b20: 681b ldr r3, [r3, #0] - 8001b22: f042 0204 orr.w r2, r2, #4 - 8001b26: 601a str r2, [r3, #0] + 8001b14: 687b ldr r3, [r7, #4] + 8001b16: 681b ldr r3, [r3, #0] + 8001b18: 681a ldr r2, [r3, #0] + 8001b1a: 687b ldr r3, [r7, #4] + 8001b1c: 681b ldr r3, [r3, #0] + 8001b1e: f042 0204 orr.w r2, r2, #4 + 8001b22: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg1 = (heth->Instance)->MACCR; - 8001b28: 687b ldr r3, [r7, #4] - 8001b2a: 681b ldr r3, [r3, #0] - 8001b2c: 681b ldr r3, [r3, #0] - 8001b2e: 60fb str r3, [r7, #12] + 8001b24: 687b ldr r3, [r7, #4] + 8001b26: 681b ldr r3, [r3, #0] + 8001b28: 681b ldr r3, [r3, #0] + 8001b2a: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8001b30: 2001 movs r0, #1 - 8001b32: f7ff fe43 bl 80017bc + 8001b2c: 2001 movs r0, #1 + 8001b2e: f7ff fe43 bl 80017b8 (heth->Instance)->MACCR = tmpreg1; - 8001b36: 687b ldr r3, [r7, #4] - 8001b38: 681b ldr r3, [r3, #0] - 8001b3a: 68fa ldr r2, [r7, #12] - 8001b3c: 601a str r2, [r3, #0] + 8001b32: 687b ldr r3, [r7, #4] + 8001b34: 681b ldr r3, [r3, #0] + 8001b36: 68fa ldr r2, [r7, #12] + 8001b38: 601a str r2, [r3, #0] /* Flush Transmit FIFO */ ETH_FlushTransmitFIFO(heth); - 8001b3e: 6878 ldr r0, [r7, #4] - 8001b40: f000 fc36 bl 80023b0 + 8001b3a: 6878 ldr r0, [r7, #4] + 8001b3c: f000 fc36 bl 80023ac /* Enable the DMA transmission */ SET_BIT(heth->Instance->DMAOMR, ETH_DMAOMR_ST); - 8001b44: 687b ldr r3, [r7, #4] - 8001b46: 681b ldr r3, [r3, #0] - 8001b48: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001b4c: 699b ldr r3, [r3, #24] - 8001b4e: 687a ldr r2, [r7, #4] - 8001b50: 6812 ldr r2, [r2, #0] - 8001b52: f443 5300 orr.w r3, r3, #8192 ; 0x2000 - 8001b56: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8001b5a: 6193 str r3, [r2, #24] + 8001b40: 687b ldr r3, [r7, #4] + 8001b42: 681b ldr r3, [r3, #0] + 8001b44: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001b48: 699b ldr r3, [r3, #24] + 8001b4a: 687a ldr r2, [r7, #4] + 8001b4c: 6812 ldr r2, [r2, #0] + 8001b4e: f443 5300 orr.w r3, r3, #8192 ; 0x2000 + 8001b52: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 8001b56: 6193 str r3, [r2, #24] /* Enable the DMA reception */ SET_BIT(heth->Instance->DMAOMR, ETH_DMAOMR_SR); - 8001b5c: 687b ldr r3, [r7, #4] - 8001b5e: 681b ldr r3, [r3, #0] - 8001b60: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001b64: 699b ldr r3, [r3, #24] - 8001b66: 687a ldr r2, [r7, #4] - 8001b68: 6812 ldr r2, [r2, #0] - 8001b6a: f043 0302 orr.w r3, r3, #2 - 8001b6e: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8001b72: 6193 str r3, [r2, #24] + 8001b58: 687b ldr r3, [r7, #4] + 8001b5a: 681b ldr r3, [r3, #0] + 8001b5c: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001b60: 699b ldr r3, [r3, #24] + 8001b62: 687a ldr r2, [r7, #4] + 8001b64: 6812 ldr r2, [r2, #0] + 8001b66: f043 0302 orr.w r3, r3, #2 + 8001b6a: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 8001b6e: 6193 str r3, [r2, #24] heth->gState = HAL_ETH_STATE_STARTED; - 8001b74: 687b ldr r3, [r7, #4] - 8001b76: 2223 movs r2, #35 ; 0x23 - 8001b78: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 8001b70: 687b ldr r3, [r7, #4] + 8001b72: 2223 movs r2, #35 ; 0x23 + 8001b74: f8c3 2084 str.w r2, [r3, #132] ; 0x84 return HAL_OK; - 8001b7c: 2300 movs r3, #0 - 8001b7e: e000 b.n 8001b82 + 8001b78: 2300 movs r3, #0 + 8001b7a: e000 b.n 8001b7e } else { return HAL_ERROR; - 8001b80: 2301 movs r3, #1 + 8001b7c: 2301 movs r3, #1 } } - 8001b82: 4618 mov r0, r3 - 8001b84: 3710 adds r7, #16 - 8001b86: 46bd mov sp, r7 - 8001b88: bd80 pop {r7, pc} + 8001b7e: 4618 mov r0, r3 + 8001b80: 3710 adds r7, #16 + 8001b82: 46bd mov sp, r7 + 8001b84: bd80 pop {r7, pc} -08001b8a : +08001b86 : * @param heth: pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_Stop(ETH_HandleTypeDef *heth) { - 8001b8a: b580 push {r7, lr} - 8001b8c: b084 sub sp, #16 - 8001b8e: af00 add r7, sp, #0 - 8001b90: 6078 str r0, [r7, #4] + 8001b86: b580 push {r7, lr} + 8001b88: b084 sub sp, #16 + 8001b8a: af00 add r7, sp, #0 + 8001b8c: 6078 str r0, [r7, #4] uint32_t tmpreg1; if (heth->gState == HAL_ETH_STATE_STARTED) - 8001b92: 687b ldr r3, [r7, #4] - 8001b94: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8001b98: 2b23 cmp r3, #35 ; 0x23 - 8001b9a: d14a bne.n 8001c32 + 8001b8e: 687b ldr r3, [r7, #4] + 8001b90: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8001b94: 2b23 cmp r3, #35 ; 0x23 + 8001b96: d14a bne.n 8001c2e { /* Set the ETH peripheral state to BUSY */ heth->gState = HAL_ETH_STATE_BUSY; - 8001b9c: 687b ldr r3, [r7, #4] - 8001b9e: 2223 movs r2, #35 ; 0x23 - 8001ba0: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 8001b98: 687b ldr r3, [r7, #4] + 8001b9a: 2223 movs r2, #35 ; 0x23 + 8001b9c: f8c3 2084 str.w r2, [r3, #132] ; 0x84 /* Disable the DMA transmission */ CLEAR_BIT(heth->Instance->DMAOMR, ETH_DMAOMR_ST); - 8001ba4: 687b ldr r3, [r7, #4] - 8001ba6: 681b ldr r3, [r3, #0] - 8001ba8: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001bac: 699b ldr r3, [r3, #24] - 8001bae: 687a ldr r2, [r7, #4] - 8001bb0: 6812 ldr r2, [r2, #0] - 8001bb2: f423 5300 bic.w r3, r3, #8192 ; 0x2000 - 8001bb6: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8001bba: 6193 str r3, [r2, #24] + 8001ba0: 687b ldr r3, [r7, #4] + 8001ba2: 681b ldr r3, [r3, #0] + 8001ba4: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001ba8: 699b ldr r3, [r3, #24] + 8001baa: 687a ldr r2, [r7, #4] + 8001bac: 6812 ldr r2, [r2, #0] + 8001bae: f423 5300 bic.w r3, r3, #8192 ; 0x2000 + 8001bb2: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 8001bb6: 6193 str r3, [r2, #24] /* Disable the DMA reception */ CLEAR_BIT(heth->Instance->DMAOMR, ETH_DMAOMR_SR); - 8001bbc: 687b ldr r3, [r7, #4] - 8001bbe: 681b ldr r3, [r3, #0] - 8001bc0: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001bc4: 699b ldr r3, [r3, #24] - 8001bc6: 687a ldr r2, [r7, #4] - 8001bc8: 6812 ldr r2, [r2, #0] - 8001bca: f023 0302 bic.w r3, r3, #2 - 8001bce: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8001bd2: 6193 str r3, [r2, #24] + 8001bb8: 687b ldr r3, [r7, #4] + 8001bba: 681b ldr r3, [r3, #0] + 8001bbc: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001bc0: 699b ldr r3, [r3, #24] + 8001bc2: 687a ldr r2, [r7, #4] + 8001bc4: 6812 ldr r2, [r2, #0] + 8001bc6: f023 0302 bic.w r3, r3, #2 + 8001bca: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 8001bce: 6193 str r3, [r2, #24] /* Disable the MAC reception */ CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_RE); - 8001bd4: 687b ldr r3, [r7, #4] - 8001bd6: 681b ldr r3, [r3, #0] - 8001bd8: 681a ldr r2, [r3, #0] - 8001bda: 687b ldr r3, [r7, #4] - 8001bdc: 681b ldr r3, [r3, #0] - 8001bde: f022 0204 bic.w r2, r2, #4 - 8001be2: 601a str r2, [r3, #0] + 8001bd0: 687b ldr r3, [r7, #4] + 8001bd2: 681b ldr r3, [r3, #0] + 8001bd4: 681a ldr r2, [r3, #0] + 8001bd6: 687b ldr r3, [r7, #4] + 8001bd8: 681b ldr r3, [r3, #0] + 8001bda: f022 0204 bic.w r2, r2, #4 + 8001bde: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg1 = (heth->Instance)->MACCR; - 8001be4: 687b ldr r3, [r7, #4] - 8001be6: 681b ldr r3, [r3, #0] - 8001be8: 681b ldr r3, [r3, #0] - 8001bea: 60fb str r3, [r7, #12] + 8001be0: 687b ldr r3, [r7, #4] + 8001be2: 681b ldr r3, [r3, #0] + 8001be4: 681b ldr r3, [r3, #0] + 8001be6: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8001bec: 2001 movs r0, #1 - 8001bee: f7ff fde5 bl 80017bc + 8001be8: 2001 movs r0, #1 + 8001bea: f7ff fde5 bl 80017b8 (heth->Instance)->MACCR = tmpreg1; - 8001bf2: 687b ldr r3, [r7, #4] - 8001bf4: 681b ldr r3, [r3, #0] - 8001bf6: 68fa ldr r2, [r7, #12] - 8001bf8: 601a str r2, [r3, #0] + 8001bee: 687b ldr r3, [r7, #4] + 8001bf0: 681b ldr r3, [r3, #0] + 8001bf2: 68fa ldr r2, [r7, #12] + 8001bf4: 601a str r2, [r3, #0] /* Flush Transmit FIFO */ ETH_FlushTransmitFIFO(heth); - 8001bfa: 6878 ldr r0, [r7, #4] - 8001bfc: f000 fbd8 bl 80023b0 + 8001bf6: 6878 ldr r0, [r7, #4] + 8001bf8: f000 fbd8 bl 80023ac /* Disable the MAC transmission */ CLEAR_BIT(heth->Instance->MACCR, ETH_MACCR_TE); - 8001c00: 687b ldr r3, [r7, #4] - 8001c02: 681b ldr r3, [r3, #0] - 8001c04: 681a ldr r2, [r3, #0] - 8001c06: 687b ldr r3, [r7, #4] - 8001c08: 681b ldr r3, [r3, #0] - 8001c0a: f022 0208 bic.w r2, r2, #8 - 8001c0e: 601a str r2, [r3, #0] + 8001bfc: 687b ldr r3, [r7, #4] + 8001bfe: 681b ldr r3, [r3, #0] + 8001c00: 681a ldr r2, [r3, #0] + 8001c02: 687b ldr r3, [r7, #4] + 8001c04: 681b ldr r3, [r3, #0] + 8001c06: f022 0208 bic.w r2, r2, #8 + 8001c0a: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg1 = (heth->Instance)->MACCR; - 8001c10: 687b ldr r3, [r7, #4] - 8001c12: 681b ldr r3, [r3, #0] - 8001c14: 681b ldr r3, [r3, #0] - 8001c16: 60fb str r3, [r7, #12] + 8001c0c: 687b ldr r3, [r7, #4] + 8001c0e: 681b ldr r3, [r3, #0] + 8001c10: 681b ldr r3, [r3, #0] + 8001c12: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8001c18: 2001 movs r0, #1 - 8001c1a: f7ff fdcf bl 80017bc + 8001c14: 2001 movs r0, #1 + 8001c16: f7ff fdcf bl 80017b8 (heth->Instance)->MACCR = tmpreg1; - 8001c1e: 687b ldr r3, [r7, #4] - 8001c20: 681b ldr r3, [r3, #0] - 8001c22: 68fa ldr r2, [r7, #12] - 8001c24: 601a str r2, [r3, #0] + 8001c1a: 687b ldr r3, [r7, #4] + 8001c1c: 681b ldr r3, [r3, #0] + 8001c1e: 68fa ldr r2, [r7, #12] + 8001c20: 601a str r2, [r3, #0] heth->gState = HAL_ETH_STATE_READY; - 8001c26: 687b ldr r3, [r7, #4] - 8001c28: 2210 movs r2, #16 - 8001c2a: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 8001c22: 687b ldr r3, [r7, #4] + 8001c24: 2210 movs r2, #16 + 8001c26: f8c3 2084 str.w r2, [r3, #132] ; 0x84 /* Return function status */ return HAL_OK; - 8001c2e: 2300 movs r3, #0 - 8001c30: e000 b.n 8001c34 + 8001c2a: 2300 movs r3, #0 + 8001c2c: e000 b.n 8001c30 } else { return HAL_ERROR; - 8001c32: 2301 movs r3, #1 + 8001c2e: 2301 movs r3, #1 } } - 8001c34: 4618 mov r0, r3 - 8001c36: 3710 adds r7, #16 - 8001c38: 46bd mov sp, r7 - 8001c3a: bd80 pop {r7, pc} + 8001c30: 4618 mov r0, r3 + 8001c32: 3710 adds r7, #16 + 8001c34: 46bd mov sp, r7 + 8001c36: bd80 pop {r7, pc} -08001c3c : +08001c38 : * @param pTxConfig: Hold the configuration of packet to be transmitted * @param Timeout: timeout value * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_Transmit(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig, uint32_t Timeout) { - 8001c3c: b580 push {r7, lr} - 8001c3e: b086 sub sp, #24 - 8001c40: af00 add r7, sp, #0 - 8001c42: 60f8 str r0, [r7, #12] - 8001c44: 60b9 str r1, [r7, #8] - 8001c46: 607a str r2, [r7, #4] + 8001c38: b580 push {r7, lr} + 8001c3a: b086 sub sp, #24 + 8001c3c: af00 add r7, sp, #0 + 8001c3e: 60f8 str r0, [r7, #12] + 8001c40: 60b9 str r1, [r7, #8] + 8001c42: 607a str r2, [r7, #4] uint32_t tickstart; ETH_DMADescTypeDef *dmatxdesc; if (pTxConfig == NULL) - 8001c48: 68bb ldr r3, [r7, #8] - 8001c4a: 2b00 cmp r3, #0 - 8001c4c: d109 bne.n 8001c62 + 8001c44: 68bb ldr r3, [r7, #8] + 8001c46: 2b00 cmp r3, #0 + 8001c48: d109 bne.n 8001c5e { heth->ErrorCode |= HAL_ETH_ERROR_PARAM; - 8001c4e: 68fb ldr r3, [r7, #12] - 8001c50: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8001c54: f043 0201 orr.w r2, r3, #1 - 8001c58: 68fb ldr r3, [r7, #12] - 8001c5a: f8c3 2088 str.w r2, [r3, #136] ; 0x88 + 8001c4a: 68fb ldr r3, [r7, #12] + 8001c4c: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8001c50: f043 0201 orr.w r2, r3, #1 + 8001c54: 68fb ldr r3, [r7, #12] + 8001c56: f8c3 2088 str.w r2, [r3, #136] ; 0x88 return HAL_ERROR; - 8001c5e: 2301 movs r3, #1 - 8001c60: e07c b.n 8001d5c + 8001c5a: 2301 movs r3, #1 + 8001c5c: e07c b.n 8001d58 } if (heth->gState == HAL_ETH_STATE_STARTED) - 8001c62: 68fb ldr r3, [r7, #12] - 8001c64: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8001c68: 2b23 cmp r3, #35 ; 0x23 - 8001c6a: d176 bne.n 8001d5a + 8001c5e: 68fb ldr r3, [r7, #12] + 8001c60: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8001c64: 2b23 cmp r3, #35 ; 0x23 + 8001c66: d176 bne.n 8001d56 { /* Config DMA Tx descriptor by Tx Packet info */ if (ETH_Prepare_Tx_Descriptors(heth, pTxConfig, 0) != HAL_ETH_ERROR_NONE) - 8001c6c: 2200 movs r2, #0 - 8001c6e: 68b9 ldr r1, [r7, #8] - 8001c70: 68f8 ldr r0, [r7, #12] - 8001c72: f000 fe6d bl 8002950 - 8001c76: 4603 mov r3, r0 - 8001c78: 2b00 cmp r3, #0 - 8001c7a: d009 beq.n 8001c90 + 8001c68: 2200 movs r2, #0 + 8001c6a: 68b9 ldr r1, [r7, #8] + 8001c6c: 68f8 ldr r0, [r7, #12] + 8001c6e: f000 fe6d bl 800294c + 8001c72: 4603 mov r3, r0 + 8001c74: 2b00 cmp r3, #0 + 8001c76: d009 beq.n 8001c8c { /* Set the ETH error code */ heth->ErrorCode |= HAL_ETH_ERROR_BUSY; - 8001c7c: 68fb ldr r3, [r7, #12] - 8001c7e: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8001c82: f043 0202 orr.w r2, r3, #2 - 8001c86: 68fb ldr r3, [r7, #12] - 8001c88: f8c3 2088 str.w r2, [r3, #136] ; 0x88 + 8001c78: 68fb ldr r3, [r7, #12] + 8001c7a: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8001c7e: f043 0202 orr.w r2, r3, #2 + 8001c82: 68fb ldr r3, [r7, #12] + 8001c84: f8c3 2088 str.w r2, [r3, #136] ; 0x88 return HAL_ERROR; - 8001c8c: 2301 movs r3, #1 - 8001c8e: e065 b.n 8001d5c + 8001c88: 2301 movs r3, #1 + 8001c8a: e065 b.n 8001d58 \details Acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. */ __STATIC_FORCEINLINE void __DSB(void) { __ASM volatile ("dsb 0xF":::"memory"); - 8001c90: f3bf 8f4f dsb sy + 8001c8c: f3bf 8f4f dsb sy } - 8001c94: bf00 nop + 8001c90: bf00 nop } /* Ensure completion of descriptor preparation before transmission start */ __DSB(); dmatxdesc = (ETH_DMADescTypeDef *)(&heth->TxDescList)->TxDesc[heth->TxDescList.CurTxDesc]; + 8001c92: 68fb ldr r3, [r7, #12] + 8001c94: 6a9a ldr r2, [r3, #40] ; 0x28 8001c96: 68fb ldr r3, [r7, #12] - 8001c98: 6a9a ldr r2, [r3, #40] ; 0x28 - 8001c9a: 68fb ldr r3, [r7, #12] - 8001c9c: 3206 adds r2, #6 - 8001c9e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8001ca2: 617b str r3, [r7, #20] + 8001c98: 3206 adds r2, #6 + 8001c9a: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8001c9e: 617b str r3, [r7, #20] /* Incr current tx desc index */ INCR_TX_DESC_INDEX(heth->TxDescList.CurTxDesc, 1U); - 8001ca4: 68fb ldr r3, [r7, #12] - 8001ca6: 6a9b ldr r3, [r3, #40] ; 0x28 - 8001ca8: 1c5a adds r2, r3, #1 + 8001ca0: 68fb ldr r3, [r7, #12] + 8001ca2: 6a9b ldr r3, [r3, #40] ; 0x28 + 8001ca4: 1c5a adds r2, r3, #1 + 8001ca6: 68fb ldr r3, [r7, #12] + 8001ca8: 629a str r2, [r3, #40] ; 0x28 8001caa: 68fb ldr r3, [r7, #12] - 8001cac: 629a str r2, [r3, #40] ; 0x28 - 8001cae: 68fb ldr r3, [r7, #12] - 8001cb0: 6a9b ldr r3, [r3, #40] ; 0x28 - 8001cb2: 2b03 cmp r3, #3 - 8001cb4: d904 bls.n 8001cc0 - 8001cb6: 68fb ldr r3, [r7, #12] - 8001cb8: 6a9b ldr r3, [r3, #40] ; 0x28 - 8001cba: 1f1a subs r2, r3, #4 - 8001cbc: 68fb ldr r3, [r7, #12] - 8001cbe: 629a str r2, [r3, #40] ; 0x28 + 8001cac: 6a9b ldr r3, [r3, #40] ; 0x28 + 8001cae: 2b03 cmp r3, #3 + 8001cb0: d904 bls.n 8001cbc + 8001cb2: 68fb ldr r3, [r7, #12] + 8001cb4: 6a9b ldr r3, [r3, #40] ; 0x28 + 8001cb6: 1f1a subs r2, r3, #4 + 8001cb8: 68fb ldr r3, [r7, #12] + 8001cba: 629a str r2, [r3, #40] ; 0x28 /* Start transmission */ /* issue a poll command to Tx DMA by writing address of next immediate free descriptor */ WRITE_REG(heth->Instance->DMATPDR, (uint32_t)(heth->TxDescList.TxDesc[heth->TxDescList.CurTxDesc])); + 8001cbc: 68fb ldr r3, [r7, #12] + 8001cbe: 6a99 ldr r1, [r3, #40] ; 0x28 8001cc0: 68fb ldr r3, [r7, #12] - 8001cc2: 6a99 ldr r1, [r3, #40] ; 0x28 + 8001cc2: 681a ldr r2, [r3, #0] 8001cc4: 68fb ldr r3, [r7, #12] - 8001cc6: 681a ldr r2, [r3, #0] - 8001cc8: 68fb ldr r3, [r7, #12] - 8001cca: 3106 adds r1, #6 - 8001ccc: f853 3021 ldr.w r3, [r3, r1, lsl #2] - 8001cd0: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8001cd4: 6053 str r3, [r2, #4] + 8001cc6: 3106 adds r1, #6 + 8001cc8: f853 3021 ldr.w r3, [r3, r1, lsl #2] + 8001ccc: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 8001cd0: 6053 str r3, [r2, #4] tickstart = HAL_GetTick(); - 8001cd6: f7ff fd65 bl 80017a4 - 8001cda: 6138 str r0, [r7, #16] + 8001cd2: f7ff fd65 bl 80017a0 + 8001cd6: 6138 str r0, [r7, #16] /* Wait for data to be transmitted or timeout occurred */ while ((dmatxdesc->DESC0 & ETH_DMATXDESC_OWN) != (uint32_t)RESET) - 8001cdc: e037 b.n 8001d4e + 8001cd8: e037 b.n 8001d4a { if ((heth->Instance->DMASR & ETH_DMASR_FBES) != (uint32_t)RESET) - 8001cde: 68fb ldr r3, [r7, #12] - 8001ce0: 681b ldr r3, [r3, #0] - 8001ce2: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001ce6: 695b ldr r3, [r3, #20] - 8001ce8: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 8001cec: 2b00 cmp r3, #0 - 8001cee: d011 beq.n 8001d14 + 8001cda: 68fb ldr r3, [r7, #12] + 8001cdc: 681b ldr r3, [r3, #0] + 8001cde: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001ce2: 695b ldr r3, [r3, #20] + 8001ce4: f403 5300 and.w r3, r3, #8192 ; 0x2000 + 8001ce8: 2b00 cmp r3, #0 + 8001cea: d011 beq.n 8001d10 { heth->ErrorCode |= HAL_ETH_ERROR_DMA; - 8001cf0: 68fb ldr r3, [r7, #12] - 8001cf2: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8001cf6: f043 0208 orr.w r2, r3, #8 - 8001cfa: 68fb ldr r3, [r7, #12] - 8001cfc: f8c3 2088 str.w r2, [r3, #136] ; 0x88 + 8001cec: 68fb ldr r3, [r7, #12] + 8001cee: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8001cf2: f043 0208 orr.w r2, r3, #8 + 8001cf6: 68fb ldr r3, [r7, #12] + 8001cf8: f8c3 2088 str.w r2, [r3, #136] ; 0x88 heth->DMAErrorCode = heth->Instance->DMASR; - 8001d00: 68fb ldr r3, [r7, #12] - 8001d02: 681b ldr r3, [r3, #0] - 8001d04: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001d08: 695a ldr r2, [r3, #20] - 8001d0a: 68fb ldr r3, [r7, #12] - 8001d0c: f8c3 208c str.w r2, [r3, #140] ; 0x8c + 8001cfc: 68fb ldr r3, [r7, #12] + 8001cfe: 681b ldr r3, [r3, #0] + 8001d00: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001d04: 695a ldr r2, [r3, #20] + 8001d06: 68fb ldr r3, [r7, #12] + 8001d08: f8c3 208c str.w r2, [r3, #140] ; 0x8c /* Return function status */ return HAL_ERROR; - 8001d10: 2301 movs r3, #1 - 8001d12: e023 b.n 8001d5c + 8001d0c: 2301 movs r3, #1 + 8001d0e: e023 b.n 8001d58 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 8001d14: 687b ldr r3, [r7, #4] - 8001d16: f1b3 3fff cmp.w r3, #4294967295 - 8001d1a: d018 beq.n 8001d4e + 8001d10: 687b ldr r3, [r7, #4] + 8001d12: f1b3 3fff cmp.w r3, #4294967295 + 8001d16: d018 beq.n 8001d4a { if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - 8001d1c: f7ff fd42 bl 80017a4 - 8001d20: 4602 mov r2, r0 - 8001d22: 693b ldr r3, [r7, #16] - 8001d24: 1ad3 subs r3, r2, r3 - 8001d26: 687a ldr r2, [r7, #4] - 8001d28: 429a cmp r2, r3 - 8001d2a: d302 bcc.n 8001d32 - 8001d2c: 687b ldr r3, [r7, #4] - 8001d2e: 2b00 cmp r3, #0 - 8001d30: d10d bne.n 8001d4e + 8001d18: f7ff fd42 bl 80017a0 + 8001d1c: 4602 mov r2, r0 + 8001d1e: 693b ldr r3, [r7, #16] + 8001d20: 1ad3 subs r3, r2, r3 + 8001d22: 687a ldr r2, [r7, #4] + 8001d24: 429a cmp r2, r3 + 8001d26: d302 bcc.n 8001d2e + 8001d28: 687b ldr r3, [r7, #4] + 8001d2a: 2b00 cmp r3, #0 + 8001d2c: d10d bne.n 8001d4a { heth->ErrorCode |= HAL_ETH_ERROR_TIMEOUT; - 8001d32: 68fb ldr r3, [r7, #12] - 8001d34: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8001d38: f043 0204 orr.w r2, r3, #4 - 8001d3c: 68fb ldr r3, [r7, #12] - 8001d3e: f8c3 2088 str.w r2, [r3, #136] ; 0x88 + 8001d2e: 68fb ldr r3, [r7, #12] + 8001d30: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8001d34: f043 0204 orr.w r2, r3, #4 + 8001d38: 68fb ldr r3, [r7, #12] + 8001d3a: f8c3 2088 str.w r2, [r3, #136] ; 0x88 /* Clear TX descriptor so that we can proceed */ dmatxdesc->DESC0 = (ETH_DMATXDESC_FS | ETH_DMATXDESC_LS); - 8001d42: 697b ldr r3, [r7, #20] - 8001d44: f04f 5240 mov.w r2, #805306368 ; 0x30000000 - 8001d48: 601a str r2, [r3, #0] + 8001d3e: 697b ldr r3, [r7, #20] + 8001d40: f04f 5240 mov.w r2, #805306368 ; 0x30000000 + 8001d44: 601a str r2, [r3, #0] return HAL_ERROR; - 8001d4a: 2301 movs r3, #1 - 8001d4c: e006 b.n 8001d5c + 8001d46: 2301 movs r3, #1 + 8001d48: e006 b.n 8001d58 while ((dmatxdesc->DESC0 & ETH_DMATXDESC_OWN) != (uint32_t)RESET) - 8001d4e: 697b ldr r3, [r7, #20] - 8001d50: 681b ldr r3, [r3, #0] - 8001d52: 2b00 cmp r3, #0 - 8001d54: dbc3 blt.n 8001cde + 8001d4a: 697b ldr r3, [r7, #20] + 8001d4c: 681b ldr r3, [r3, #0] + 8001d4e: 2b00 cmp r3, #0 + 8001d50: dbc3 blt.n 8001cda } } } /* Return function status */ return HAL_OK; - 8001d56: 2300 movs r3, #0 - 8001d58: e000 b.n 8001d5c + 8001d52: 2300 movs r3, #0 + 8001d54: e000 b.n 8001d58 } else { return HAL_ERROR; - 8001d5a: 2301 movs r3, #1 + 8001d56: 2301 movs r3, #1 } } - 8001d5c: 4618 mov r0, r3 - 8001d5e: 3718 adds r7, #24 - 8001d60: 46bd mov sp, r7 - 8001d62: bd80 pop {r7, pc} + 8001d58: 4618 mov r0, r3 + 8001d5a: 3718 adds r7, #24 + 8001d5c: 46bd mov sp, r7 + 8001d5e: bd80 pop {r7, pc} -08001d64 : +08001d60 : * the configuration information for ETHERNET module * @param pAppBuff: Pointer to an application buffer to receive the packet. * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_ReadData(ETH_HandleTypeDef *heth, void **pAppBuff) { - 8001d64: b580 push {r7, lr} - 8001d66: b088 sub sp, #32 - 8001d68: af00 add r7, sp, #0 - 8001d6a: 6078 str r0, [r7, #4] - 8001d6c: 6039 str r1, [r7, #0] + 8001d60: b580 push {r7, lr} + 8001d62: b088 sub sp, #32 + 8001d64: af00 add r7, sp, #0 + 8001d66: 6078 str r0, [r7, #4] + 8001d68: 6039 str r1, [r7, #0] uint32_t descidx; ETH_DMADescTypeDef *dmarxdesc; uint32_t desccnt = 0U; - 8001d6e: 2300 movs r3, #0 - 8001d70: 617b str r3, [r7, #20] + 8001d6a: 2300 movs r3, #0 + 8001d6c: 617b str r3, [r7, #20] uint32_t desccntmax; uint32_t bufflength; uint8_t rxdataready = 0U; - 8001d72: 2300 movs r3, #0 - 8001d74: 73fb strb r3, [r7, #15] + 8001d6e: 2300 movs r3, #0 + 8001d70: 73fb strb r3, [r7, #15] if (pAppBuff == NULL) - 8001d76: 683b ldr r3, [r7, #0] - 8001d78: 2b00 cmp r3, #0 - 8001d7a: d109 bne.n 8001d90 + 8001d72: 683b ldr r3, [r7, #0] + 8001d74: 2b00 cmp r3, #0 + 8001d76: d109 bne.n 8001d8c { heth->ErrorCode |= HAL_ETH_ERROR_PARAM; - 8001d7c: 687b ldr r3, [r7, #4] - 8001d7e: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8001d82: f043 0201 orr.w r2, r3, #1 - 8001d86: 687b ldr r3, [r7, #4] - 8001d88: f8c3 2088 str.w r2, [r3, #136] ; 0x88 + 8001d78: 687b ldr r3, [r7, #4] + 8001d7a: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8001d7e: f043 0201 orr.w r2, r3, #1 + 8001d82: 687b ldr r3, [r7, #4] + 8001d84: f8c3 2088 str.w r2, [r3, #136] ; 0x88 return HAL_ERROR; - 8001d8c: 2301 movs r3, #1 - 8001d8e: e0a8 b.n 8001ee2 + 8001d88: 2301 movs r3, #1 + 8001d8a: e0a8 b.n 8001ede } if (heth->gState != HAL_ETH_STATE_STARTED) - 8001d90: 687b ldr r3, [r7, #4] - 8001d92: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8001d96: 2b23 cmp r3, #35 ; 0x23 - 8001d98: d001 beq.n 8001d9e + 8001d8c: 687b ldr r3, [r7, #4] + 8001d8e: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8001d92: 2b23 cmp r3, #35 ; 0x23 + 8001d94: d001 beq.n 8001d9a { return HAL_ERROR; - 8001d9a: 2301 movs r3, #1 - 8001d9c: e0a1 b.n 8001ee2 + 8001d96: 2301 movs r3, #1 + 8001d98: e0a1 b.n 8001ede } descidx = heth->RxDescList.RxDescIdx; - 8001d9e: 687b ldr r3, [r7, #4] - 8001da0: 6ddb ldr r3, [r3, #92] ; 0x5c - 8001da2: 61fb str r3, [r7, #28] + 8001d9a: 687b ldr r3, [r7, #4] + 8001d9c: 6ddb ldr r3, [r3, #92] ; 0x5c + 8001d9e: 61fb str r3, [r7, #28] dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - 8001da4: 687b ldr r3, [r7, #4] - 8001da6: 69fa ldr r2, [r7, #28] - 8001da8: 3212 adds r2, #18 - 8001daa: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8001dae: 61bb str r3, [r7, #24] + 8001da0: 687b ldr r3, [r7, #4] + 8001da2: 69fa ldr r2, [r7, #28] + 8001da4: 3212 adds r2, #18 + 8001da6: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8001daa: 61bb str r3, [r7, #24] desccntmax = ETH_RX_DESC_CNT - heth->RxDescList.RxBuildDescCnt; - 8001db0: 687b ldr r3, [r7, #4] - 8001db2: 6edb ldr r3, [r3, #108] ; 0x6c - 8001db4: f1c3 0304 rsb r3, r3, #4 - 8001db8: 60bb str r3, [r7, #8] + 8001dac: 687b ldr r3, [r7, #4] + 8001dae: 6edb ldr r3, [r3, #108] ; 0x6c + 8001db0: f1c3 0304 rsb r3, r3, #4 + 8001db4: 60bb str r3, [r7, #8] /* Check if descriptor is not owned by DMA */ while ((READ_BIT(dmarxdesc->DESC0, ETH_DMARXDESC_OWN) == (uint32_t)RESET) && (desccnt < desccntmax) - 8001dba: e06a b.n 8001e92 + 8001db6: e06a b.n 8001e8e && (rxdataready == 0U)) { if (READ_BIT(dmarxdesc->DESC0, ETH_DMARXDESC_LS) != (uint32_t)RESET) - 8001dbc: 69bb ldr r3, [r7, #24] - 8001dbe: 681b ldr r3, [r3, #0] - 8001dc0: f403 7380 and.w r3, r3, #256 ; 0x100 - 8001dc4: 2b00 cmp r3, #0 - 8001dc6: d007 beq.n 8001dd8 + 8001db8: 69bb ldr r3, [r7, #24] + 8001dba: 681b ldr r3, [r3, #0] + 8001dbc: f403 7380 and.w r3, r3, #256 ; 0x100 + 8001dc0: 2b00 cmp r3, #0 + 8001dc2: d007 beq.n 8001dd4 { /* Get timestamp high */ heth->RxDescList.TimeStamp.TimeStampHigh = dmarxdesc->DESC6; - 8001dc8: 69bb ldr r3, [r7, #24] - 8001dca: 699a ldr r2, [r3, #24] - 8001dcc: 687b ldr r3, [r7, #4] - 8001dce: 679a str r2, [r3, #120] ; 0x78 + 8001dc4: 69bb ldr r3, [r7, #24] + 8001dc6: 699a ldr r2, [r3, #24] + 8001dc8: 687b ldr r3, [r7, #4] + 8001dca: 679a str r2, [r3, #120] ; 0x78 /* Get timestamp low */ heth->RxDescList.TimeStamp.TimeStampLow = dmarxdesc->DESC7; - 8001dd0: 69bb ldr r3, [r7, #24] - 8001dd2: 69da ldr r2, [r3, #28] - 8001dd4: 687b ldr r3, [r7, #4] - 8001dd6: 675a str r2, [r3, #116] ; 0x74 + 8001dcc: 69bb ldr r3, [r7, #24] + 8001dce: 69da ldr r2, [r3, #28] + 8001dd0: 687b ldr r3, [r7, #4] + 8001dd2: 675a str r2, [r3, #116] ; 0x74 } if ((READ_BIT(dmarxdesc->DESC0, ETH_DMARXDESC_FS) != (uint32_t)RESET) || (heth->RxDescList.pRxStart != NULL)) - 8001dd8: 69bb ldr r3, [r7, #24] - 8001dda: 681b ldr r3, [r3, #0] - 8001ddc: f403 7300 and.w r3, r3, #512 ; 0x200 - 8001de0: 2b00 cmp r3, #0 - 8001de2: d103 bne.n 8001dec - 8001de4: 687b ldr r3, [r7, #4] - 8001de6: 6fdb ldr r3, [r3, #124] ; 0x7c - 8001de8: 2b00 cmp r3, #0 - 8001dea: d040 beq.n 8001e6e + 8001dd4: 69bb ldr r3, [r7, #24] + 8001dd6: 681b ldr r3, [r3, #0] + 8001dd8: f403 7300 and.w r3, r3, #512 ; 0x200 + 8001ddc: 2b00 cmp r3, #0 + 8001dde: d103 bne.n 8001de8 + 8001de0: 687b ldr r3, [r7, #4] + 8001de2: 6fdb ldr r3, [r3, #124] ; 0x7c + 8001de4: 2b00 cmp r3, #0 + 8001de6: d040 beq.n 8001e6a { /* Check first descriptor */ if (READ_BIT(dmarxdesc->DESC0, ETH_DMARXDESC_FS) != (uint32_t)RESET) - 8001dec: 69bb ldr r3, [r7, #24] - 8001dee: 681b ldr r3, [r3, #0] - 8001df0: f403 7300 and.w r3, r3, #512 ; 0x200 - 8001df4: 2b00 cmp r3, #0 - 8001df6: d005 beq.n 8001e04 + 8001de8: 69bb ldr r3, [r7, #24] + 8001dea: 681b ldr r3, [r3, #0] + 8001dec: f403 7300 and.w r3, r3, #512 ; 0x200 + 8001df0: 2b00 cmp r3, #0 + 8001df2: d005 beq.n 8001e00 { heth->RxDescList.RxDescCnt = 0; - 8001df8: 687b ldr r3, [r7, #4] - 8001dfa: 2200 movs r2, #0 - 8001dfc: 661a str r2, [r3, #96] ; 0x60 + 8001df4: 687b ldr r3, [r7, #4] + 8001df6: 2200 movs r2, #0 + 8001df8: 661a str r2, [r3, #96] ; 0x60 heth->RxDescList.RxDataLength = 0; - 8001dfe: 687b ldr r3, [r7, #4] - 8001e00: 2200 movs r2, #0 - 8001e02: 665a str r2, [r3, #100] ; 0x64 + 8001dfa: 687b ldr r3, [r7, #4] + 8001dfc: 2200 movs r2, #0 + 8001dfe: 665a str r2, [r3, #100] ; 0x64 } /* Check if last descriptor */ bufflength = heth->Init.RxBuffLen; - 8001e04: 687b ldr r3, [r7, #4] - 8001e06: 695b ldr r3, [r3, #20] - 8001e08: 613b str r3, [r7, #16] + 8001e00: 687b ldr r3, [r7, #4] + 8001e02: 695b ldr r3, [r3, #20] + 8001e04: 613b str r3, [r7, #16] if (READ_BIT(dmarxdesc->DESC0, ETH_DMARXDESC_LS) != (uint32_t)RESET) - 8001e0a: 69bb ldr r3, [r7, #24] - 8001e0c: 681b ldr r3, [r3, #0] - 8001e0e: f403 7380 and.w r3, r3, #256 ; 0x100 - 8001e12: 2b00 cmp r3, #0 - 8001e14: d00c beq.n 8001e30 + 8001e06: 69bb ldr r3, [r7, #24] + 8001e08: 681b ldr r3, [r3, #0] + 8001e0a: f403 7380 and.w r3, r3, #256 ; 0x100 + 8001e0e: 2b00 cmp r3, #0 + 8001e10: d00c beq.n 8001e2c { /* Get the Frame Length of the received packet: substruct 4 bytes of the CRC */ bufflength = ((dmarxdesc->DESC0 & ETH_DMARXDESC_FL) >> ETH_DMARXDESC_FRAMELENGTHSHIFT) - 4U; - 8001e16: 69bb ldr r3, [r7, #24] - 8001e18: 681b ldr r3, [r3, #0] - 8001e1a: 0c1b lsrs r3, r3, #16 - 8001e1c: f3c3 030d ubfx r3, r3, #0, #14 - 8001e20: 3b04 subs r3, #4 - 8001e22: 613b str r3, [r7, #16] + 8001e12: 69bb ldr r3, [r7, #24] + 8001e14: 681b ldr r3, [r3, #0] + 8001e16: 0c1b lsrs r3, r3, #16 + 8001e18: f3c3 030d ubfx r3, r3, #0, #14 + 8001e1c: 3b04 subs r3, #4 + 8001e1e: 613b str r3, [r7, #16] /* Save Last descriptor index */ heth->RxDescList.pRxLastRxDesc = dmarxdesc->DESC0; - 8001e24: 69bb ldr r3, [r7, #24] - 8001e26: 681a ldr r2, [r3, #0] - 8001e28: 687b ldr r3, [r7, #4] - 8001e2a: 671a str r2, [r3, #112] ; 0x70 + 8001e20: 69bb ldr r3, [r7, #24] + 8001e22: 681a ldr r2, [r3, #0] + 8001e24: 687b ldr r3, [r7, #4] + 8001e26: 671a str r2, [r3, #112] ; 0x70 /* Packet ready */ rxdataready = 1; - 8001e2c: 2301 movs r3, #1 - 8001e2e: 73fb strb r3, [r7, #15] + 8001e28: 2301 movs r3, #1 + 8001e2a: 73fb strb r3, [r7, #15] } /* Link data */ WRITE_REG(dmarxdesc->BackupAddr0, dmarxdesc->DESC2); + 8001e2c: 69bb ldr r3, [r7, #24] + 8001e2e: 689a ldr r2, [r3, #8] 8001e30: 69bb ldr r3, [r7, #24] - 8001e32: 689a ldr r2, [r3, #8] - 8001e34: 69bb ldr r3, [r7, #24] - 8001e36: 621a str r2, [r3, #32] + 8001e32: 621a str r2, [r3, #32] /*Call registered Link callback*/ heth->rxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd, (uint8_t *)dmarxdesc->BackupAddr0, bufflength); #else /* Link callback */ HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd, - 8001e38: 687b ldr r3, [r7, #4] - 8001e3a: f103 007c add.w r0, r3, #124 ; 0x7c - 8001e3e: 687b ldr r3, [r7, #4] - 8001e40: f103 0180 add.w r1, r3, #128 ; 0x80 + 8001e34: 687b ldr r3, [r7, #4] + 8001e36: f103 007c add.w r0, r3, #124 ; 0x7c + 8001e3a: 687b ldr r3, [r7, #4] + 8001e3c: f103 0180 add.w r1, r3, #128 ; 0x80 (uint8_t *)dmarxdesc->BackupAddr0, (uint16_t) bufflength); - 8001e44: 69bb ldr r3, [r7, #24] - 8001e46: 6a1b ldr r3, [r3, #32] + 8001e40: 69bb ldr r3, [r7, #24] + 8001e42: 6a1b ldr r3, [r3, #32] HAL_ETH_RxLinkCallback(&heth->RxDescList.pRxStart, &heth->RxDescList.pRxEnd, - 8001e48: 461a mov r2, r3 - 8001e4a: 693b ldr r3, [r7, #16] - 8001e4c: b29b uxth r3, r3 - 8001e4e: f002 f9fb bl 8004248 + 8001e44: 461a mov r2, r3 + 8001e46: 693b ldr r3, [r7, #16] + 8001e48: b29b uxth r3, r3 + 8001e4a: f002 f9fb bl 8004244 #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ heth->RxDescList.RxDescCnt++; - 8001e52: 687b ldr r3, [r7, #4] - 8001e54: 6e1b ldr r3, [r3, #96] ; 0x60 - 8001e56: 1c5a adds r2, r3, #1 - 8001e58: 687b ldr r3, [r7, #4] - 8001e5a: 661a str r2, [r3, #96] ; 0x60 + 8001e4e: 687b ldr r3, [r7, #4] + 8001e50: 6e1b ldr r3, [r3, #96] ; 0x60 + 8001e52: 1c5a adds r2, r3, #1 + 8001e54: 687b ldr r3, [r7, #4] + 8001e56: 661a str r2, [r3, #96] ; 0x60 heth->RxDescList.RxDataLength += bufflength; - 8001e5c: 687b ldr r3, [r7, #4] - 8001e5e: 6e5a ldr r2, [r3, #100] ; 0x64 - 8001e60: 693b ldr r3, [r7, #16] - 8001e62: 441a add r2, r3 - 8001e64: 687b ldr r3, [r7, #4] - 8001e66: 665a str r2, [r3, #100] ; 0x64 + 8001e58: 687b ldr r3, [r7, #4] + 8001e5a: 6e5a ldr r2, [r3, #100] ; 0x64 + 8001e5c: 693b ldr r3, [r7, #16] + 8001e5e: 441a add r2, r3 + 8001e60: 687b ldr r3, [r7, #4] + 8001e62: 665a str r2, [r3, #100] ; 0x64 /* Clear buffer pointer */ dmarxdesc->BackupAddr0 = 0; - 8001e68: 69bb ldr r3, [r7, #24] - 8001e6a: 2200 movs r2, #0 - 8001e6c: 621a str r2, [r3, #32] + 8001e64: 69bb ldr r3, [r7, #24] + 8001e66: 2200 movs r2, #0 + 8001e68: 621a str r2, [r3, #32] } /* Increment current rx descriptor index */ INCR_RX_DESC_INDEX(descidx, 1U); - 8001e6e: 69fb ldr r3, [r7, #28] - 8001e70: 3301 adds r3, #1 - 8001e72: 61fb str r3, [r7, #28] - 8001e74: 69fb ldr r3, [r7, #28] - 8001e76: 2b03 cmp r3, #3 - 8001e78: d902 bls.n 8001e80 - 8001e7a: 69fb ldr r3, [r7, #28] - 8001e7c: 3b04 subs r3, #4 - 8001e7e: 61fb str r3, [r7, #28] + 8001e6a: 69fb ldr r3, [r7, #28] + 8001e6c: 3301 adds r3, #1 + 8001e6e: 61fb str r3, [r7, #28] + 8001e70: 69fb ldr r3, [r7, #28] + 8001e72: 2b03 cmp r3, #3 + 8001e74: d902 bls.n 8001e7c + 8001e76: 69fb ldr r3, [r7, #28] + 8001e78: 3b04 subs r3, #4 + 8001e7a: 61fb str r3, [r7, #28] /* Get current descriptor address */ dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - 8001e80: 687b ldr r3, [r7, #4] - 8001e82: 69fa ldr r2, [r7, #28] - 8001e84: 3212 adds r2, #18 - 8001e86: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8001e8a: 61bb str r3, [r7, #24] + 8001e7c: 687b ldr r3, [r7, #4] + 8001e7e: 69fa ldr r2, [r7, #28] + 8001e80: 3212 adds r2, #18 + 8001e82: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8001e86: 61bb str r3, [r7, #24] desccnt++; - 8001e8c: 697b ldr r3, [r7, #20] - 8001e8e: 3301 adds r3, #1 - 8001e90: 617b str r3, [r7, #20] + 8001e88: 697b ldr r3, [r7, #20] + 8001e8a: 3301 adds r3, #1 + 8001e8c: 617b str r3, [r7, #20] while ((READ_BIT(dmarxdesc->DESC0, ETH_DMARXDESC_OWN) == (uint32_t)RESET) && (desccnt < desccntmax) - 8001e92: 69bb ldr r3, [r7, #24] - 8001e94: 681b ldr r3, [r3, #0] - 8001e96: 2b00 cmp r3, #0 - 8001e98: db06 blt.n 8001ea8 - 8001e9a: 697a ldr r2, [r7, #20] - 8001e9c: 68bb ldr r3, [r7, #8] - 8001e9e: 429a cmp r2, r3 - 8001ea0: d202 bcs.n 8001ea8 + 8001e8e: 69bb ldr r3, [r7, #24] + 8001e90: 681b ldr r3, [r3, #0] + 8001e92: 2b00 cmp r3, #0 + 8001e94: db06 blt.n 8001ea4 + 8001e96: 697a ldr r2, [r7, #20] + 8001e98: 68bb ldr r3, [r7, #8] + 8001e9a: 429a cmp r2, r3 + 8001e9c: d202 bcs.n 8001ea4 && (rxdataready == 0U)) - 8001ea2: 7bfb ldrb r3, [r7, #15] - 8001ea4: 2b00 cmp r3, #0 - 8001ea6: d089 beq.n 8001dbc + 8001e9e: 7bfb ldrb r3, [r7, #15] + 8001ea0: 2b00 cmp r3, #0 + 8001ea2: d089 beq.n 8001db8 } heth->RxDescList.RxBuildDescCnt += desccnt; - 8001ea8: 687b ldr r3, [r7, #4] - 8001eaa: 6eda ldr r2, [r3, #108] ; 0x6c - 8001eac: 697b ldr r3, [r7, #20] - 8001eae: 441a add r2, r3 - 8001eb0: 687b ldr r3, [r7, #4] - 8001eb2: 66da str r2, [r3, #108] ; 0x6c + 8001ea4: 687b ldr r3, [r7, #4] + 8001ea6: 6eda ldr r2, [r3, #108] ; 0x6c + 8001ea8: 697b ldr r3, [r7, #20] + 8001eaa: 441a add r2, r3 + 8001eac: 687b ldr r3, [r7, #4] + 8001eae: 66da str r2, [r3, #108] ; 0x6c if ((heth->RxDescList.RxBuildDescCnt) != 0U) - 8001eb4: 687b ldr r3, [r7, #4] - 8001eb6: 6edb ldr r3, [r3, #108] ; 0x6c - 8001eb8: 2b00 cmp r3, #0 - 8001eba: d002 beq.n 8001ec2 + 8001eb0: 687b ldr r3, [r7, #4] + 8001eb2: 6edb ldr r3, [r3, #108] ; 0x6c + 8001eb4: 2b00 cmp r3, #0 + 8001eb6: d002 beq.n 8001ebe { /* Update Descriptors */ ETH_UpdateDescriptor(heth); - 8001ebc: 6878 ldr r0, [r7, #4] - 8001ebe: f000 f815 bl 8001eec + 8001eb8: 6878 ldr r0, [r7, #4] + 8001eba: f000 f815 bl 8001ee8 } heth->RxDescList.RxDescIdx = descidx; - 8001ec2: 687b ldr r3, [r7, #4] - 8001ec4: 69fa ldr r2, [r7, #28] - 8001ec6: 65da str r2, [r3, #92] ; 0x5c + 8001ebe: 687b ldr r3, [r7, #4] + 8001ec0: 69fa ldr r2, [r7, #28] + 8001ec2: 65da str r2, [r3, #92] ; 0x5c if (rxdataready == 1U) - 8001ec8: 7bfb ldrb r3, [r7, #15] - 8001eca: 2b01 cmp r3, #1 - 8001ecc: d108 bne.n 8001ee0 + 8001ec4: 7bfb ldrb r3, [r7, #15] + 8001ec6: 2b01 cmp r3, #1 + 8001ec8: d108 bne.n 8001edc { /* Return received packet */ *pAppBuff = heth->RxDescList.pRxStart; - 8001ece: 687b ldr r3, [r7, #4] - 8001ed0: 6fda ldr r2, [r3, #124] ; 0x7c - 8001ed2: 683b ldr r3, [r7, #0] - 8001ed4: 601a str r2, [r3, #0] + 8001eca: 687b ldr r3, [r7, #4] + 8001ecc: 6fda ldr r2, [r3, #124] ; 0x7c + 8001ece: 683b ldr r3, [r7, #0] + 8001ed0: 601a str r2, [r3, #0] /* Reset first element */ heth->RxDescList.pRxStart = NULL; - 8001ed6: 687b ldr r3, [r7, #4] - 8001ed8: 2200 movs r2, #0 - 8001eda: 67da str r2, [r3, #124] ; 0x7c + 8001ed2: 687b ldr r3, [r7, #4] + 8001ed4: 2200 movs r2, #0 + 8001ed6: 67da str r2, [r3, #124] ; 0x7c return HAL_OK; - 8001edc: 2300 movs r3, #0 - 8001ede: e000 b.n 8001ee2 + 8001ed8: 2300 movs r3, #0 + 8001eda: e000 b.n 8001ede } /* Packet not ready */ return HAL_ERROR; - 8001ee0: 2301 movs r3, #1 + 8001edc: 2301 movs r3, #1 } - 8001ee2: 4618 mov r0, r3 - 8001ee4: 3720 adds r7, #32 - 8001ee6: 46bd mov sp, r7 - 8001ee8: bd80 pop {r7, pc} + 8001ede: 4618 mov r0, r3 + 8001ee0: 3720 adds r7, #32 + 8001ee2: 46bd mov sp, r7 + 8001ee4: bd80 pop {r7, pc} ... -08001eec : +08001ee8 : * @param heth: pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth) { - 8001eec: b580 push {r7, lr} - 8001eee: b088 sub sp, #32 - 8001ef0: af00 add r7, sp, #0 - 8001ef2: 6078 str r0, [r7, #4] + 8001ee8: b580 push {r7, lr} + 8001eea: b088 sub sp, #32 + 8001eec: af00 add r7, sp, #0 + 8001eee: 6078 str r0, [r7, #4] uint32_t descidx; uint32_t desccount; ETH_DMADescTypeDef *dmarxdesc; uint8_t *buff = NULL; - 8001ef4: 2300 movs r3, #0 - 8001ef6: 60fb str r3, [r7, #12] + 8001ef0: 2300 movs r3, #0 + 8001ef2: 60fb str r3, [r7, #12] uint8_t allocStatus = 1U; - 8001ef8: 2301 movs r3, #1 - 8001efa: 74fb strb r3, [r7, #19] + 8001ef4: 2301 movs r3, #1 + 8001ef6: 74fb strb r3, [r7, #19] descidx = heth->RxDescList.RxBuildDescIdx; - 8001efc: 687b ldr r3, [r7, #4] - 8001efe: 6e9b ldr r3, [r3, #104] ; 0x68 - 8001f00: 61fb str r3, [r7, #28] + 8001ef8: 687b ldr r3, [r7, #4] + 8001efa: 6e9b ldr r3, [r3, #104] ; 0x68 + 8001efc: 61fb str r3, [r7, #28] dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - 8001f02: 687b ldr r3, [r7, #4] - 8001f04: 69fa ldr r2, [r7, #28] - 8001f06: 3212 adds r2, #18 - 8001f08: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8001f0c: 617b str r3, [r7, #20] + 8001efe: 687b ldr r3, [r7, #4] + 8001f00: 69fa ldr r2, [r7, #28] + 8001f02: 3212 adds r2, #18 + 8001f04: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8001f08: 617b str r3, [r7, #20] desccount = heth->RxDescList.RxBuildDescCnt; - 8001f0e: 687b ldr r3, [r7, #4] - 8001f10: 6edb ldr r3, [r3, #108] ; 0x6c - 8001f12: 61bb str r3, [r7, #24] + 8001f0a: 687b ldr r3, [r7, #4] + 8001f0c: 6edb ldr r3, [r3, #108] ; 0x6c + 8001f0e: 61bb str r3, [r7, #24] while ((desccount > 0U) && (allocStatus != 0U)) - 8001f14: e040 b.n 8001f98 + 8001f10: e040 b.n 8001f94 { /* Check if a buffer's attached the descriptor */ if (READ_REG(dmarxdesc->BackupAddr0) == 0U) - 8001f16: 697b ldr r3, [r7, #20] - 8001f18: 6a1b ldr r3, [r3, #32] - 8001f1a: 2b00 cmp r3, #0 - 8001f1c: d112 bne.n 8001f44 + 8001f12: 697b ldr r3, [r7, #20] + 8001f14: 6a1b ldr r3, [r3, #32] + 8001f16: 2b00 cmp r3, #0 + 8001f18: d112 bne.n 8001f40 #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) /*Call registered Allocate callback*/ heth->rxAllocateCallback(&buff); #else /* Allocate callback */ HAL_ETH_RxAllocateCallback(&buff); - 8001f1e: f107 030c add.w r3, r7, #12 - 8001f22: 4618 mov r0, r3 - 8001f24: f002 f960 bl 80041e8 + 8001f1a: f107 030c add.w r3, r7, #12 + 8001f1e: 4618 mov r0, r3 + 8001f20: f002 f960 bl 80041e4 #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ if (buff == NULL) - 8001f28: 68fb ldr r3, [r7, #12] - 8001f2a: 2b00 cmp r3, #0 - 8001f2c: d102 bne.n 8001f34 + 8001f24: 68fb ldr r3, [r7, #12] + 8001f26: 2b00 cmp r3, #0 + 8001f28: d102 bne.n 8001f30 { allocStatus = 0U; - 8001f2e: 2300 movs r3, #0 - 8001f30: 74fb strb r3, [r7, #19] - 8001f32: e007 b.n 8001f44 + 8001f2a: 2300 movs r3, #0 + 8001f2c: 74fb strb r3, [r7, #19] + 8001f2e: e007 b.n 8001f40 } else { WRITE_REG(dmarxdesc->BackupAddr0, (uint32_t)buff); - 8001f34: 68fb ldr r3, [r7, #12] - 8001f36: 461a mov r2, r3 - 8001f38: 697b ldr r3, [r7, #20] - 8001f3a: 621a str r2, [r3, #32] + 8001f30: 68fb ldr r3, [r7, #12] + 8001f32: 461a mov r2, r3 + 8001f34: 697b ldr r3, [r7, #20] + 8001f36: 621a str r2, [r3, #32] WRITE_REG(dmarxdesc->DESC2, (uint32_t)buff); - 8001f3c: 68fb ldr r3, [r7, #12] - 8001f3e: 461a mov r2, r3 - 8001f40: 697b ldr r3, [r7, #20] - 8001f42: 609a str r2, [r3, #8] + 8001f38: 68fb ldr r3, [r7, #12] + 8001f3a: 461a mov r2, r3 + 8001f3c: 697b ldr r3, [r7, #20] + 8001f3e: 609a str r2, [r3, #8] } } if (allocStatus != 0U) - 8001f44: 7cfb ldrb r3, [r7, #19] - 8001f46: 2b00 cmp r3, #0 - 8001f48: d026 beq.n 8001f98 + 8001f40: 7cfb ldrb r3, [r7, #19] + 8001f42: 2b00 cmp r3, #0 + 8001f44: d026 beq.n 8001f94 { if (heth->RxDescList.ItMode == 0U) - 8001f4a: 687b ldr r3, [r7, #4] - 8001f4c: 6d9b ldr r3, [r3, #88] ; 0x58 - 8001f4e: 2b00 cmp r3, #0 - 8001f50: d103 bne.n 8001f5a + 8001f46: 687b ldr r3, [r7, #4] + 8001f48: 6d9b ldr r3, [r3, #88] ; 0x58 + 8001f4a: 2b00 cmp r3, #0 + 8001f4c: d103 bne.n 8001f56 { WRITE_REG(dmarxdesc->DESC1, ETH_DMARXDESC_DIC | ETH_RX_BUF_SIZE | ETH_DMARXDESC_RCH); - 8001f52: 697b ldr r3, [r7, #20] - 8001f54: 4a1e ldr r2, [pc, #120] ; (8001fd0 ) - 8001f56: 605a str r2, [r3, #4] - 8001f58: e003 b.n 8001f62 + 8001f4e: 697b ldr r3, [r7, #20] + 8001f50: 4a1e ldr r2, [pc, #120] ; (8001fcc ) + 8001f52: 605a str r2, [r3, #4] + 8001f54: e003 b.n 8001f5e } else { WRITE_REG(dmarxdesc->DESC1, ETH_RX_BUF_SIZE | ETH_DMARXDESC_RCH); - 8001f5a: 697b ldr r3, [r7, #20] - 8001f5c: f244 52f8 movw r2, #17912 ; 0x45f8 - 8001f60: 605a str r2, [r3, #4] + 8001f56: 697b ldr r3, [r7, #20] + 8001f58: f244 52f8 movw r2, #17912 ; 0x45f8 + 8001f5c: 605a str r2, [r3, #4] \details Ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion. */ __STATIC_FORCEINLINE void __DMB(void) { __ASM volatile ("dmb 0xF":::"memory"); - 8001f62: f3bf 8f5f dmb sy + 8001f5e: f3bf 8f5f dmb sy } - 8001f66: bf00 nop + 8001f62: bf00 nop is fully performed. The __DMB() instruction is added to avoid any potential compiler optimization that may lead to abnormal behavior. */ __DMB(); SET_BIT(dmarxdesc->DESC0, ETH_DMARXDESC_OWN); - 8001f68: 697b ldr r3, [r7, #20] - 8001f6a: 681b ldr r3, [r3, #0] - 8001f6c: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 - 8001f70: 697b ldr r3, [r7, #20] - 8001f72: 601a str r2, [r3, #0] + 8001f64: 697b ldr r3, [r7, #20] + 8001f66: 681b ldr r3, [r3, #0] + 8001f68: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 + 8001f6c: 697b ldr r3, [r7, #20] + 8001f6e: 601a str r2, [r3, #0] /* Increment current rx descriptor index */ INCR_RX_DESC_INDEX(descidx, 1U); - 8001f74: 69fb ldr r3, [r7, #28] - 8001f76: 3301 adds r3, #1 - 8001f78: 61fb str r3, [r7, #28] - 8001f7a: 69fb ldr r3, [r7, #28] - 8001f7c: 2b03 cmp r3, #3 - 8001f7e: d902 bls.n 8001f86 - 8001f80: 69fb ldr r3, [r7, #28] - 8001f82: 3b04 subs r3, #4 - 8001f84: 61fb str r3, [r7, #28] + 8001f70: 69fb ldr r3, [r7, #28] + 8001f72: 3301 adds r3, #1 + 8001f74: 61fb str r3, [r7, #28] + 8001f76: 69fb ldr r3, [r7, #28] + 8001f78: 2b03 cmp r3, #3 + 8001f7a: d902 bls.n 8001f82 + 8001f7c: 69fb ldr r3, [r7, #28] + 8001f7e: 3b04 subs r3, #4 + 8001f80: 61fb str r3, [r7, #28] /* Get current descriptor address */ dmarxdesc = (ETH_DMADescTypeDef *)heth->RxDescList.RxDesc[descidx]; - 8001f86: 687b ldr r3, [r7, #4] - 8001f88: 69fa ldr r2, [r7, #28] - 8001f8a: 3212 adds r2, #18 - 8001f8c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8001f90: 617b str r3, [r7, #20] + 8001f82: 687b ldr r3, [r7, #4] + 8001f84: 69fa ldr r2, [r7, #28] + 8001f86: 3212 adds r2, #18 + 8001f88: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8001f8c: 617b str r3, [r7, #20] desccount--; - 8001f92: 69bb ldr r3, [r7, #24] - 8001f94: 3b01 subs r3, #1 - 8001f96: 61bb str r3, [r7, #24] + 8001f8e: 69bb ldr r3, [r7, #24] + 8001f90: 3b01 subs r3, #1 + 8001f92: 61bb str r3, [r7, #24] while ((desccount > 0U) && (allocStatus != 0U)) - 8001f98: 69bb ldr r3, [r7, #24] - 8001f9a: 2b00 cmp r3, #0 - 8001f9c: d002 beq.n 8001fa4 - 8001f9e: 7cfb ldrb r3, [r7, #19] - 8001fa0: 2b00 cmp r3, #0 - 8001fa2: d1b8 bne.n 8001f16 + 8001f94: 69bb ldr r3, [r7, #24] + 8001f96: 2b00 cmp r3, #0 + 8001f98: d002 beq.n 8001fa0 + 8001f9a: 7cfb ldrb r3, [r7, #19] + 8001f9c: 2b00 cmp r3, #0 + 8001f9e: d1b8 bne.n 8001f12 } } if (heth->RxDescList.RxBuildDescCnt != desccount) - 8001fa4: 687b ldr r3, [r7, #4] - 8001fa6: 6edb ldr r3, [r3, #108] ; 0x6c - 8001fa8: 69ba ldr r2, [r7, #24] - 8001faa: 429a cmp r2, r3 - 8001fac: d00c beq.n 8001fc8 + 8001fa0: 687b ldr r3, [r7, #4] + 8001fa2: 6edb ldr r3, [r3, #108] ; 0x6c + 8001fa4: 69ba ldr r2, [r7, #24] + 8001fa6: 429a cmp r2, r3 + 8001fa8: d00c beq.n 8001fc4 { /* Set the Tail pointer address */ WRITE_REG(heth->Instance->DMARPDR, 0); - 8001fae: 687b ldr r3, [r7, #4] - 8001fb0: 681b ldr r3, [r3, #0] - 8001fb2: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8001fb6: 461a mov r2, r3 - 8001fb8: 2300 movs r3, #0 - 8001fba: 6093 str r3, [r2, #8] + 8001faa: 687b ldr r3, [r7, #4] + 8001fac: 681b ldr r3, [r3, #0] + 8001fae: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001fb2: 461a mov r2, r3 + 8001fb4: 2300 movs r3, #0 + 8001fb6: 6093 str r3, [r2, #8] heth->RxDescList.RxBuildDescIdx = descidx; - 8001fbc: 687b ldr r3, [r7, #4] - 8001fbe: 69fa ldr r2, [r7, #28] - 8001fc0: 669a str r2, [r3, #104] ; 0x68 + 8001fb8: 687b ldr r3, [r7, #4] + 8001fba: 69fa ldr r2, [r7, #28] + 8001fbc: 669a str r2, [r3, #104] ; 0x68 heth->RxDescList.RxBuildDescCnt = desccount; - 8001fc2: 687b ldr r3, [r7, #4] - 8001fc4: 69ba ldr r2, [r7, #24] - 8001fc6: 66da str r2, [r3, #108] ; 0x6c + 8001fbe: 687b ldr r3, [r7, #4] + 8001fc0: 69ba ldr r2, [r7, #24] + 8001fc2: 66da str r2, [r3, #108] ; 0x6c } } - 8001fc8: bf00 nop - 8001fca: 3720 adds r7, #32 - 8001fcc: 46bd mov sp, r7 - 8001fce: bd80 pop {r7, pc} - 8001fd0: 800045f8 .word 0x800045f8 + 8001fc4: bf00 nop + 8001fc6: 3720 adds r7, #32 + 8001fc8: 46bd mov sp, r7 + 8001fca: bd80 pop {r7, pc} + 8001fcc: 800045f8 .word 0x800045f8 -08001fd4 : +08001fd0 : * @param pRegValue: parameter to hold read value * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg, uint32_t *pRegValue) { - 8001fd4: b580 push {r7, lr} - 8001fd6: b086 sub sp, #24 - 8001fd8: af00 add r7, sp, #0 - 8001fda: 60f8 str r0, [r7, #12] - 8001fdc: 60b9 str r1, [r7, #8] - 8001fde: 607a str r2, [r7, #4] - 8001fe0: 603b str r3, [r7, #0] + 8001fd0: b580 push {r7, lr} + 8001fd2: b086 sub sp, #24 + 8001fd4: af00 add r7, sp, #0 + 8001fd6: 60f8 str r0, [r7, #12] + 8001fd8: 60b9 str r1, [r7, #8] + 8001fda: 607a str r2, [r7, #4] + 8001fdc: 603b str r3, [r7, #0] uint32_t tmpreg1; uint32_t tickstart; /* Get the ETHERNET MACMIIAR value */ tmpreg1 = heth->Instance->MACMIIAR; - 8001fe2: 68fb ldr r3, [r7, #12] - 8001fe4: 681b ldr r3, [r3, #0] - 8001fe6: 691b ldr r3, [r3, #16] - 8001fe8: 617b str r3, [r7, #20] + 8001fde: 68fb ldr r3, [r7, #12] + 8001fe0: 681b ldr r3, [r3, #0] + 8001fe2: 691b ldr r3, [r3, #16] + 8001fe4: 617b str r3, [r7, #20] /* Keep only the CSR Clock Range CR[2:0] bits value */ tmpreg1 &= ~ETH_MACMIIAR_CR_MASK; - 8001fea: 697b ldr r3, [r7, #20] - 8001fec: f003 031c and.w r3, r3, #28 - 8001ff0: 617b str r3, [r7, #20] + 8001fe6: 697b ldr r3, [r7, #20] + 8001fe8: f003 031c and.w r3, r3, #28 + 8001fec: 617b str r3, [r7, #20] /* Prepare the MII address register value */ tmpreg1 |= ((PHYAddr << 11U) & ETH_MACMIIAR_PA); /* Set the PHY device address */ - 8001ff2: 68bb ldr r3, [r7, #8] - 8001ff4: 02db lsls r3, r3, #11 - 8001ff6: b29b uxth r3, r3 - 8001ff8: 697a ldr r2, [r7, #20] - 8001ffa: 4313 orrs r3, r2 - 8001ffc: 617b str r3, [r7, #20] + 8001fee: 68bb ldr r3, [r7, #8] + 8001ff0: 02db lsls r3, r3, #11 + 8001ff2: b29b uxth r3, r3 + 8001ff4: 697a ldr r2, [r7, #20] + 8001ff6: 4313 orrs r3, r2 + 8001ff8: 617b str r3, [r7, #20] tmpreg1 |= (((uint32_t)PHYReg << 6U) & ETH_MACMIIAR_MR); /* Set the PHY register address */ - 8001ffe: 687b ldr r3, [r7, #4] - 8002000: 019b lsls r3, r3, #6 - 8002002: f403 63f8 and.w r3, r3, #1984 ; 0x7c0 - 8002006: 697a ldr r2, [r7, #20] - 8002008: 4313 orrs r3, r2 - 800200a: 617b str r3, [r7, #20] + 8001ffa: 687b ldr r3, [r7, #4] + 8001ffc: 019b lsls r3, r3, #6 + 8001ffe: f403 63f8 and.w r3, r3, #1984 ; 0x7c0 + 8002002: 697a ldr r2, [r7, #20] + 8002004: 4313 orrs r3, r2 + 8002006: 617b str r3, [r7, #20] tmpreg1 &= ~ETH_MACMIIAR_MW; /* Set the read mode */ - 800200c: 697b ldr r3, [r7, #20] - 800200e: f023 0302 bic.w r3, r3, #2 - 8002012: 617b str r3, [r7, #20] + 8002008: 697b ldr r3, [r7, #20] + 800200a: f023 0302 bic.w r3, r3, #2 + 800200e: 617b str r3, [r7, #20] tmpreg1 |= ETH_MACMIIAR_MB; /* Set the MII Busy bit */ - 8002014: 697b ldr r3, [r7, #20] - 8002016: f043 0301 orr.w r3, r3, #1 - 800201a: 617b str r3, [r7, #20] + 8002010: 697b ldr r3, [r7, #20] + 8002012: f043 0301 orr.w r3, r3, #1 + 8002016: 617b str r3, [r7, #20] /* Write the result value into the MII Address register */ heth->Instance->MACMIIAR = tmpreg1; - 800201c: 68fb ldr r3, [r7, #12] - 800201e: 681b ldr r3, [r3, #0] - 8002020: 697a ldr r2, [r7, #20] - 8002022: 611a str r2, [r3, #16] + 8002018: 68fb ldr r3, [r7, #12] + 800201a: 681b ldr r3, [r3, #0] + 800201c: 697a ldr r2, [r7, #20] + 800201e: 611a str r2, [r3, #16] tickstart = HAL_GetTick(); - 8002024: f7ff fbbe bl 80017a4 - 8002028: 6138 str r0, [r7, #16] + 8002020: f7ff fbbe bl 80017a0 + 8002024: 6138 str r0, [r7, #16] /* Check for the Busy flag */ while ((tmpreg1 & ETH_MACMIIAR_MB) == ETH_MACMIIAR_MB) - 800202a: e00d b.n 8002048 + 8002026: e00d b.n 8002044 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > PHY_READ_TO) - 800202c: f7ff fbba bl 80017a4 - 8002030: 4602 mov r2, r0 - 8002032: 693b ldr r3, [r7, #16] - 8002034: 1ad3 subs r3, r2, r3 - 8002036: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800203a: d301 bcc.n 8002040 + 8002028: f7ff fbba bl 80017a0 + 800202c: 4602 mov r2, r0 + 800202e: 693b ldr r3, [r7, #16] + 8002030: 1ad3 subs r3, r2, r3 + 8002032: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8002036: d301 bcc.n 800203c { return HAL_ERROR; - 800203c: 2301 movs r3, #1 - 800203e: e010 b.n 8002062 + 8002038: 2301 movs r3, #1 + 800203a: e010 b.n 800205e } tmpreg1 = heth->Instance->MACMIIAR; - 8002040: 68fb ldr r3, [r7, #12] - 8002042: 681b ldr r3, [r3, #0] - 8002044: 691b ldr r3, [r3, #16] - 8002046: 617b str r3, [r7, #20] + 800203c: 68fb ldr r3, [r7, #12] + 800203e: 681b ldr r3, [r3, #0] + 8002040: 691b ldr r3, [r3, #16] + 8002042: 617b str r3, [r7, #20] while ((tmpreg1 & ETH_MACMIIAR_MB) == ETH_MACMIIAR_MB) - 8002048: 697b ldr r3, [r7, #20] - 800204a: f003 0301 and.w r3, r3, #1 - 800204e: 2b00 cmp r3, #0 - 8002050: d1ec bne.n 800202c + 8002044: 697b ldr r3, [r7, #20] + 8002046: f003 0301 and.w r3, r3, #1 + 800204a: 2b00 cmp r3, #0 + 800204c: d1ec bne.n 8002028 } /* Get MACMIIDR value */ *pRegValue = (uint16_t)(heth->Instance->MACMIIDR); - 8002052: 68fb ldr r3, [r7, #12] - 8002054: 681b ldr r3, [r3, #0] - 8002056: 695b ldr r3, [r3, #20] - 8002058: b29b uxth r3, r3 - 800205a: 461a mov r2, r3 - 800205c: 683b ldr r3, [r7, #0] - 800205e: 601a str r2, [r3, #0] + 800204e: 68fb ldr r3, [r7, #12] + 8002050: 681b ldr r3, [r3, #0] + 8002052: 695b ldr r3, [r3, #20] + 8002054: b29b uxth r3, r3 + 8002056: 461a mov r2, r3 + 8002058: 683b ldr r3, [r7, #0] + 800205a: 601a str r2, [r3, #0] return HAL_OK; - 8002060: 2300 movs r3, #0 + 800205c: 2300 movs r3, #0 } - 8002062: 4618 mov r0, r3 - 8002064: 3718 adds r7, #24 - 8002066: 46bd mov sp, r7 - 8002068: bd80 pop {r7, pc} + 800205e: 4618 mov r0, r3 + 8002060: 3718 adds r7, #24 + 8002062: 46bd mov sp, r7 + 8002064: bd80 pop {r7, pc} -0800206a : +08002066 : * @param RegValue: the value to write * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_WritePHYRegister(ETH_HandleTypeDef *heth, uint32_t PHYAddr, uint32_t PHYReg, uint32_t RegValue) { - 800206a: b580 push {r7, lr} - 800206c: b086 sub sp, #24 - 800206e: af00 add r7, sp, #0 - 8002070: 60f8 str r0, [r7, #12] - 8002072: 60b9 str r1, [r7, #8] - 8002074: 607a str r2, [r7, #4] - 8002076: 603b str r3, [r7, #0] + 8002066: b580 push {r7, lr} + 8002068: b086 sub sp, #24 + 800206a: af00 add r7, sp, #0 + 800206c: 60f8 str r0, [r7, #12] + 800206e: 60b9 str r1, [r7, #8] + 8002070: 607a str r2, [r7, #4] + 8002072: 603b str r3, [r7, #0] uint32_t tmpreg1; uint32_t tickstart; /* Get the ETHERNET MACMIIAR value */ tmpreg1 = heth->Instance->MACMIIAR; - 8002078: 68fb ldr r3, [r7, #12] - 800207a: 681b ldr r3, [r3, #0] - 800207c: 691b ldr r3, [r3, #16] - 800207e: 617b str r3, [r7, #20] + 8002074: 68fb ldr r3, [r7, #12] + 8002076: 681b ldr r3, [r3, #0] + 8002078: 691b ldr r3, [r3, #16] + 800207a: 617b str r3, [r7, #20] /* Keep only the CSR Clock Range CR[2:0] bits value */ tmpreg1 &= ~ETH_MACMIIAR_CR_MASK; - 8002080: 697b ldr r3, [r7, #20] - 8002082: f003 031c and.w r3, r3, #28 - 8002086: 617b str r3, [r7, #20] + 800207c: 697b ldr r3, [r7, #20] + 800207e: f003 031c and.w r3, r3, #28 + 8002082: 617b str r3, [r7, #20] /* Prepare the MII register address value */ tmpreg1 |= ((PHYAddr << 11U) & ETH_MACMIIAR_PA); /* Set the PHY device address */ - 8002088: 68bb ldr r3, [r7, #8] - 800208a: 02db lsls r3, r3, #11 - 800208c: b29b uxth r3, r3 - 800208e: 697a ldr r2, [r7, #20] - 8002090: 4313 orrs r3, r2 - 8002092: 617b str r3, [r7, #20] + 8002084: 68bb ldr r3, [r7, #8] + 8002086: 02db lsls r3, r3, #11 + 8002088: b29b uxth r3, r3 + 800208a: 697a ldr r2, [r7, #20] + 800208c: 4313 orrs r3, r2 + 800208e: 617b str r3, [r7, #20] tmpreg1 |= (((uint32_t)PHYReg << 6U) & ETH_MACMIIAR_MR); /* Set the PHY register address */ - 8002094: 687b ldr r3, [r7, #4] - 8002096: 019b lsls r3, r3, #6 - 8002098: f403 63f8 and.w r3, r3, #1984 ; 0x7c0 - 800209c: 697a ldr r2, [r7, #20] - 800209e: 4313 orrs r3, r2 - 80020a0: 617b str r3, [r7, #20] + 8002090: 687b ldr r3, [r7, #4] + 8002092: 019b lsls r3, r3, #6 + 8002094: f403 63f8 and.w r3, r3, #1984 ; 0x7c0 + 8002098: 697a ldr r2, [r7, #20] + 800209a: 4313 orrs r3, r2 + 800209c: 617b str r3, [r7, #20] tmpreg1 |= ETH_MACMIIAR_MW; /* Set the write mode */ - 80020a2: 697b ldr r3, [r7, #20] - 80020a4: f043 0302 orr.w r3, r3, #2 - 80020a8: 617b str r3, [r7, #20] + 800209e: 697b ldr r3, [r7, #20] + 80020a0: f043 0302 orr.w r3, r3, #2 + 80020a4: 617b str r3, [r7, #20] tmpreg1 |= ETH_MACMIIAR_MB; /* Set the MII Busy bit */ - 80020aa: 697b ldr r3, [r7, #20] - 80020ac: f043 0301 orr.w r3, r3, #1 - 80020b0: 617b str r3, [r7, #20] + 80020a6: 697b ldr r3, [r7, #20] + 80020a8: f043 0301 orr.w r3, r3, #1 + 80020ac: 617b str r3, [r7, #20] /* Give the value to the MII data register */ heth->Instance->MACMIIDR = (uint16_t)RegValue; - 80020b2: 683b ldr r3, [r7, #0] - 80020b4: b29a uxth r2, r3 - 80020b6: 68fb ldr r3, [r7, #12] - 80020b8: 681b ldr r3, [r3, #0] - 80020ba: 615a str r2, [r3, #20] + 80020ae: 683b ldr r3, [r7, #0] + 80020b0: b29a uxth r2, r3 + 80020b2: 68fb ldr r3, [r7, #12] + 80020b4: 681b ldr r3, [r3, #0] + 80020b6: 615a str r2, [r3, #20] /* Write the result value into the MII Address register */ heth->Instance->MACMIIAR = tmpreg1; - 80020bc: 68fb ldr r3, [r7, #12] - 80020be: 681b ldr r3, [r3, #0] - 80020c0: 697a ldr r2, [r7, #20] - 80020c2: 611a str r2, [r3, #16] + 80020b8: 68fb ldr r3, [r7, #12] + 80020ba: 681b ldr r3, [r3, #0] + 80020bc: 697a ldr r2, [r7, #20] + 80020be: 611a str r2, [r3, #16] /* Get tick */ tickstart = HAL_GetTick(); - 80020c4: f7ff fb6e bl 80017a4 - 80020c8: 6138 str r0, [r7, #16] + 80020c0: f7ff fb6e bl 80017a0 + 80020c4: 6138 str r0, [r7, #16] /* Check for the Busy flag */ while ((tmpreg1 & ETH_MACMIIAR_MB) == ETH_MACMIIAR_MB) - 80020ca: e00d b.n 80020e8 + 80020c6: e00d b.n 80020e4 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > PHY_WRITE_TO) - 80020cc: f7ff fb6a bl 80017a4 - 80020d0: 4602 mov r2, r0 - 80020d2: 693b ldr r3, [r7, #16] - 80020d4: 1ad3 subs r3, r2, r3 - 80020d6: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80020da: d301 bcc.n 80020e0 + 80020c8: f7ff fb6a bl 80017a0 + 80020cc: 4602 mov r2, r0 + 80020ce: 693b ldr r3, [r7, #16] + 80020d0: 1ad3 subs r3, r2, r3 + 80020d2: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 80020d6: d301 bcc.n 80020dc { return HAL_ERROR; - 80020dc: 2301 movs r3, #1 - 80020de: e009 b.n 80020f4 + 80020d8: 2301 movs r3, #1 + 80020da: e009 b.n 80020f0 } tmpreg1 = heth->Instance->MACMIIAR; - 80020e0: 68fb ldr r3, [r7, #12] - 80020e2: 681b ldr r3, [r3, #0] - 80020e4: 691b ldr r3, [r3, #16] - 80020e6: 617b str r3, [r7, #20] + 80020dc: 68fb ldr r3, [r7, #12] + 80020de: 681b ldr r3, [r3, #0] + 80020e0: 691b ldr r3, [r3, #16] + 80020e2: 617b str r3, [r7, #20] while ((tmpreg1 & ETH_MACMIIAR_MB) == ETH_MACMIIAR_MB) - 80020e8: 697b ldr r3, [r7, #20] - 80020ea: f003 0301 and.w r3, r3, #1 - 80020ee: 2b00 cmp r3, #0 - 80020f0: d1ec bne.n 80020cc + 80020e4: 697b ldr r3, [r7, #20] + 80020e6: f003 0301 and.w r3, r3, #1 + 80020ea: 2b00 cmp r3, #0 + 80020ec: d1ec bne.n 80020c8 } return HAL_OK; - 80020f2: 2300 movs r3, #0 + 80020ee: 2300 movs r3, #0 } - 80020f4: 4618 mov r0, r3 - 80020f6: 3718 adds r7, #24 - 80020f8: 46bd mov sp, r7 - 80020fa: bd80 pop {r7, pc} + 80020f0: 4618 mov r0, r3 + 80020f2: 3718 adds r7, #24 + 80020f4: 46bd mov sp, r7 + 80020f6: bd80 pop {r7, pc} -080020fc : +080020f8 : * @param macconf: pointer to a ETH_MACConfigTypeDef structure that will hold * the configuration of the MAC. * @retval HAL Status */ HAL_StatusTypeDef HAL_ETH_GetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) { - 80020fc: b480 push {r7} - 80020fe: b083 sub sp, #12 - 8002100: af00 add r7, sp, #0 - 8002102: 6078 str r0, [r7, #4] - 8002104: 6039 str r1, [r7, #0] + 80020f8: b480 push {r7} + 80020fa: b083 sub sp, #12 + 80020fc: af00 add r7, sp, #0 + 80020fe: 6078 str r0, [r7, #4] + 8002100: 6039 str r1, [r7, #0] if (macconf == NULL) - 8002106: 683b ldr r3, [r7, #0] - 8002108: 2b00 cmp r3, #0 - 800210a: d101 bne.n 8002110 + 8002102: 683b ldr r3, [r7, #0] + 8002104: 2b00 cmp r3, #0 + 8002106: d101 bne.n 800210c { return HAL_ERROR; - 800210c: 2301 movs r3, #1 - 800210e: e0d9 b.n 80022c4 + 8002108: 2301 movs r3, #1 + 800210a: e0d9 b.n 80022c0 } /* Get MAC parameters */ macconf->DeferralCheck = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_DC) >> 4) > 0U) ? ENABLE : DISABLE; - 8002110: 687b ldr r3, [r7, #4] - 8002112: 681b ldr r3, [r3, #0] - 8002114: 681b ldr r3, [r3, #0] - 8002116: f003 0310 and.w r3, r3, #16 - 800211a: 2b00 cmp r3, #0 - 800211c: bf14 ite ne - 800211e: 2301 movne r3, #1 - 8002120: 2300 moveq r3, #0 - 8002122: b2db uxtb r3, r3 - 8002124: 461a mov r2, r3 - 8002126: 683b ldr r3, [r7, #0] - 8002128: f883 2028 strb.w r2, [r3, #40] ; 0x28 + 800210c: 687b ldr r3, [r7, #4] + 800210e: 681b ldr r3, [r3, #0] + 8002110: 681b ldr r3, [r3, #0] + 8002112: f003 0310 and.w r3, r3, #16 + 8002116: 2b00 cmp r3, #0 + 8002118: bf14 ite ne + 800211a: 2301 movne r3, #1 + 800211c: 2300 moveq r3, #0 + 800211e: b2db uxtb r3, r3 + 8002120: 461a mov r2, r3 + 8002122: 683b ldr r3, [r7, #0] + 8002124: f883 2028 strb.w r2, [r3, #40] ; 0x28 macconf->BackOffLimit = READ_BIT(heth->Instance->MACCR, ETH_MACCR_BL); - 800212c: 687b ldr r3, [r7, #4] - 800212e: 681b ldr r3, [r3, #0] - 8002130: 681b ldr r3, [r3, #0] - 8002132: f003 0260 and.w r2, r3, #96 ; 0x60 - 8002136: 683b ldr r3, [r7, #0] - 8002138: 625a str r2, [r3, #36] ; 0x24 + 8002128: 687b ldr r3, [r7, #4] + 800212a: 681b ldr r3, [r3, #0] + 800212c: 681b ldr r3, [r3, #0] + 800212e: f003 0260 and.w r2, r3, #96 ; 0x60 + 8002132: 683b ldr r3, [r7, #0] + 8002134: 625a str r2, [r3, #36] ; 0x24 macconf->RetryTransmission = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_RD) >> 9) == 0U) ? ENABLE : DISABLE; - 800213a: 687b ldr r3, [r7, #4] - 800213c: 681b ldr r3, [r3, #0] - 800213e: 681b ldr r3, [r3, #0] - 8002140: f403 7300 and.w r3, r3, #512 ; 0x200 - 8002144: 2b00 cmp r3, #0 - 8002146: bf0c ite eq - 8002148: 2301 moveq r3, #1 - 800214a: 2300 movne r3, #0 - 800214c: b2db uxtb r3, r3 - 800214e: 461a mov r2, r3 - 8002150: 683b ldr r3, [r7, #0] - 8002152: f883 2020 strb.w r2, [r3, #32] + 8002136: 687b ldr r3, [r7, #4] + 8002138: 681b ldr r3, [r3, #0] + 800213a: 681b ldr r3, [r3, #0] + 800213c: f403 7300 and.w r3, r3, #512 ; 0x200 + 8002140: 2b00 cmp r3, #0 + 8002142: bf0c ite eq + 8002144: 2301 moveq r3, #1 + 8002146: 2300 movne r3, #0 + 8002148: b2db uxtb r3, r3 + 800214a: 461a mov r2, r3 + 800214c: 683b ldr r3, [r7, #0] + 800214e: f883 2020 strb.w r2, [r3, #32] macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_CSD) >> 16) > 0U) - 8002156: 687b ldr r3, [r7, #4] - 8002158: 681b ldr r3, [r3, #0] - 800215a: 681b ldr r3, [r3, #0] - 800215c: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8002152: 687b ldr r3, [r7, #4] + 8002154: 681b ldr r3, [r3, #0] + 8002156: 681b ldr r3, [r3, #0] + 8002158: f403 3380 and.w r3, r3, #65536 ; 0x10000 ? ENABLE : DISABLE; - 8002160: 2b00 cmp r3, #0 - 8002162: bf14 ite ne - 8002164: 2301 movne r3, #1 - 8002166: 2300 moveq r3, #0 - 8002168: b2db uxtb r3, r3 - 800216a: 461a mov r2, r3 + 800215c: 2b00 cmp r3, #0 + 800215e: bf14 ite ne + 8002160: 2301 movne r3, #1 + 8002162: 2300 moveq r3, #0 + 8002164: b2db uxtb r3, r3 + 8002166: 461a mov r2, r3 macconf->CarrierSenseDuringTransmit = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_CSD) >> 16) > 0U) - 800216c: 683b ldr r3, [r7, #0] - 800216e: 77da strb r2, [r3, #31] + 8002168: 683b ldr r3, [r7, #0] + 800216a: 77da strb r2, [r3, #31] macconf->ReceiveOwn = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_ROD) >> 13) == 0U) ? ENABLE : DISABLE; - 8002170: 687b ldr r3, [r7, #4] - 8002172: 681b ldr r3, [r3, #0] - 8002174: 681b ldr r3, [r3, #0] - 8002176: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 800217a: 2b00 cmp r3, #0 - 800217c: bf0c ite eq - 800217e: 2301 moveq r3, #1 - 8002180: 2300 movne r3, #0 - 8002182: b2db uxtb r3, r3 - 8002184: 461a mov r2, r3 - 8002186: 683b ldr r3, [r7, #0] - 8002188: 779a strb r2, [r3, #30] + 800216c: 687b ldr r3, [r7, #4] + 800216e: 681b ldr r3, [r3, #0] + 8002170: 681b ldr r3, [r3, #0] + 8002172: f403 5300 and.w r3, r3, #8192 ; 0x2000 + 8002176: 2b00 cmp r3, #0 + 8002178: bf0c ite eq + 800217a: 2301 moveq r3, #1 + 800217c: 2300 movne r3, #0 + 800217e: b2db uxtb r3, r3 + 8002180: 461a mov r2, r3 + 8002182: 683b ldr r3, [r7, #0] + 8002184: 779a strb r2, [r3, #30] macconf->LoopbackMode = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_LM) >> 12) > 0U) ? ENABLE : DISABLE; - 800218a: 687b ldr r3, [r7, #4] - 800218c: 681b ldr r3, [r3, #0] - 800218e: 681b ldr r3, [r3, #0] - 8002190: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 8002194: 2b00 cmp r3, #0 - 8002196: bf14 ite ne - 8002198: 2301 movne r3, #1 - 800219a: 2300 moveq r3, #0 - 800219c: b2db uxtb r3, r3 - 800219e: 461a mov r2, r3 - 80021a0: 683b ldr r3, [r7, #0] - 80021a2: 771a strb r2, [r3, #28] + 8002186: 687b ldr r3, [r7, #4] + 8002188: 681b ldr r3, [r3, #0] + 800218a: 681b ldr r3, [r3, #0] + 800218c: f403 5380 and.w r3, r3, #4096 ; 0x1000 + 8002190: 2b00 cmp r3, #0 + 8002192: bf14 ite ne + 8002194: 2301 movne r3, #1 + 8002196: 2300 moveq r3, #0 + 8002198: b2db uxtb r3, r3 + 800219a: 461a mov r2, r3 + 800219c: 683b ldr r3, [r7, #0] + 800219e: 771a strb r2, [r3, #28] macconf->DuplexMode = READ_BIT(heth->Instance->MACCR, ETH_MACCR_DM); - 80021a4: 687b ldr r3, [r7, #4] - 80021a6: 681b ldr r3, [r3, #0] - 80021a8: 681b ldr r3, [r3, #0] - 80021aa: f403 6200 and.w r2, r3, #2048 ; 0x800 - 80021ae: 683b ldr r3, [r7, #0] - 80021b0: 619a str r2, [r3, #24] + 80021a0: 687b ldr r3, [r7, #4] + 80021a2: 681b ldr r3, [r3, #0] + 80021a4: 681b ldr r3, [r3, #0] + 80021a6: f403 6200 and.w r2, r3, #2048 ; 0x800 + 80021aa: 683b ldr r3, [r7, #0] + 80021ac: 619a str r2, [r3, #24] macconf->Speed = READ_BIT(heth->Instance->MACCR, ETH_MACCR_FES); - 80021b2: 687b ldr r3, [r7, #4] - 80021b4: 681b ldr r3, [r3, #0] - 80021b6: 681b ldr r3, [r3, #0] - 80021b8: f403 4280 and.w r2, r3, #16384 ; 0x4000 - 80021bc: 683b ldr r3, [r7, #0] - 80021be: 615a str r2, [r3, #20] + 80021ae: 687b ldr r3, [r7, #4] + 80021b0: 681b ldr r3, [r3, #0] + 80021b2: 681b ldr r3, [r3, #0] + 80021b4: f403 4280 and.w r2, r3, #16384 ; 0x4000 + 80021b8: 683b ldr r3, [r7, #0] + 80021ba: 615a str r2, [r3, #20] macconf->Jabber = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_JD) >> 22) == 0U) ? ENABLE : DISABLE; - 80021c0: 687b ldr r3, [r7, #4] - 80021c2: 681b ldr r3, [r3, #0] - 80021c4: 681b ldr r3, [r3, #0] - 80021c6: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 80021ca: 2b00 cmp r3, #0 - 80021cc: bf0c ite eq - 80021ce: 2301 moveq r3, #1 - 80021d0: 2300 movne r3, #0 - 80021d2: b2db uxtb r3, r3 - 80021d4: 461a mov r2, r3 - 80021d6: 683b ldr r3, [r7, #0] - 80021d8: 745a strb r2, [r3, #17] + 80021bc: 687b ldr r3, [r7, #4] + 80021be: 681b ldr r3, [r3, #0] + 80021c0: 681b ldr r3, [r3, #0] + 80021c2: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 80021c6: 2b00 cmp r3, #0 + 80021c8: bf0c ite eq + 80021ca: 2301 moveq r3, #1 + 80021cc: 2300 movne r3, #0 + 80021ce: b2db uxtb r3, r3 + 80021d0: 461a mov r2, r3 + 80021d2: 683b ldr r3, [r7, #0] + 80021d4: 745a strb r2, [r3, #17] macconf->Watchdog = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_WD) >> 23) == 0U) ? ENABLE : DISABLE; - 80021da: 687b ldr r3, [r7, #4] - 80021dc: 681b ldr r3, [r3, #0] - 80021de: 681b ldr r3, [r3, #0] - 80021e0: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 80021e4: 2b00 cmp r3, #0 - 80021e6: bf0c ite eq - 80021e8: 2301 moveq r3, #1 - 80021ea: 2300 movne r3, #0 - 80021ec: b2db uxtb r3, r3 - 80021ee: 461a mov r2, r3 - 80021f0: 683b ldr r3, [r7, #0] - 80021f2: 741a strb r2, [r3, #16] + 80021d6: 687b ldr r3, [r7, #4] + 80021d8: 681b ldr r3, [r3, #0] + 80021da: 681b ldr r3, [r3, #0] + 80021dc: f403 0300 and.w r3, r3, #8388608 ; 0x800000 + 80021e0: 2b00 cmp r3, #0 + 80021e2: bf0c ite eq + 80021e4: 2301 moveq r3, #1 + 80021e6: 2300 movne r3, #0 + 80021e8: b2db uxtb r3, r3 + 80021ea: 461a mov r2, r3 + 80021ec: 683b ldr r3, [r7, #0] + 80021ee: 741a strb r2, [r3, #16] macconf->AutomaticPadCRCStrip = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_APCS) >> 7) > 0U) ? ENABLE : DISABLE; - 80021f4: 687b ldr r3, [r7, #4] - 80021f6: 681b ldr r3, [r3, #0] - 80021f8: 681b ldr r3, [r3, #0] - 80021fa: f003 0380 and.w r3, r3, #128 ; 0x80 - 80021fe: 2b00 cmp r3, #0 - 8002200: bf14 ite ne - 8002202: 2301 movne r3, #1 - 8002204: 2300 moveq r3, #0 - 8002206: b2db uxtb r3, r3 - 8002208: 461a mov r2, r3 - 800220a: 683b ldr r3, [r7, #0] - 800220c: 73da strb r2, [r3, #15] + 80021f0: 687b ldr r3, [r7, #4] + 80021f2: 681b ldr r3, [r3, #0] + 80021f4: 681b ldr r3, [r3, #0] + 80021f6: f003 0380 and.w r3, r3, #128 ; 0x80 + 80021fa: 2b00 cmp r3, #0 + 80021fc: bf14 ite ne + 80021fe: 2301 movne r3, #1 + 8002200: 2300 moveq r3, #0 + 8002202: b2db uxtb r3, r3 + 8002204: 461a mov r2, r3 + 8002206: 683b ldr r3, [r7, #0] + 8002208: 73da strb r2, [r3, #15] macconf->InterPacketGapVal = READ_BIT(heth->Instance->MACCR, ETH_MACCR_IFG); - 800220e: 687b ldr r3, [r7, #4] - 8002210: 681b ldr r3, [r3, #0] - 8002212: 681b ldr r3, [r3, #0] - 8002214: f403 2260 and.w r2, r3, #917504 ; 0xe0000 - 8002218: 683b ldr r3, [r7, #0] - 800221a: 609a str r2, [r3, #8] + 800220a: 687b ldr r3, [r7, #4] + 800220c: 681b ldr r3, [r3, #0] + 800220e: 681b ldr r3, [r3, #0] + 8002210: f403 2260 and.w r2, r3, #917504 ; 0xe0000 + 8002214: 683b ldr r3, [r7, #0] + 8002216: 609a str r2, [r3, #8] macconf->ChecksumOffload = ((READ_BIT(heth->Instance->MACCR, ETH_MACCR_IPCO) >> 10U) > 0U) ? ENABLE : DISABLE; - 800221c: 687b ldr r3, [r7, #4] - 800221e: 681b ldr r3, [r3, #0] - 8002220: 681b ldr r3, [r3, #0] - 8002222: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8002226: 2b00 cmp r3, #0 - 8002228: bf14 ite ne - 800222a: 2301 movne r3, #1 - 800222c: 2300 moveq r3, #0 - 800222e: b2db uxtb r3, r3 - 8002230: 461a mov r2, r3 - 8002232: 683b ldr r3, [r7, #0] - 8002234: 711a strb r2, [r3, #4] + 8002218: 687b ldr r3, [r7, #4] + 800221a: 681b ldr r3, [r3, #0] + 800221c: 681b ldr r3, [r3, #0] + 800221e: f403 6380 and.w r3, r3, #1024 ; 0x400 + 8002222: 2b00 cmp r3, #0 + 8002224: bf14 ite ne + 8002226: 2301 movne r3, #1 + 8002228: 2300 moveq r3, #0 + 800222a: b2db uxtb r3, r3 + 800222c: 461a mov r2, r3 + 800222e: 683b ldr r3, [r7, #0] + 8002230: 711a strb r2, [r3, #4] macconf->TransmitFlowControl = ((READ_BIT(heth->Instance->MACFCR, ETH_MACFCR_TFCE) >> 1) > 0U) ? ENABLE : DISABLE; - 8002236: 687b ldr r3, [r7, #4] - 8002238: 681b ldr r3, [r3, #0] - 800223a: 699b ldr r3, [r3, #24] - 800223c: f003 0302 and.w r3, r3, #2 - 8002240: 2b00 cmp r3, #0 - 8002242: bf14 ite ne - 8002244: 2301 movne r3, #1 - 8002246: 2300 moveq r3, #0 - 8002248: b2db uxtb r3, r3 - 800224a: 461a mov r2, r3 - 800224c: 683b ldr r3, [r7, #0] - 800224e: f883 2054 strb.w r2, [r3, #84] ; 0x54 + 8002232: 687b ldr r3, [r7, #4] + 8002234: 681b ldr r3, [r3, #0] + 8002236: 699b ldr r3, [r3, #24] + 8002238: f003 0302 and.w r3, r3, #2 + 800223c: 2b00 cmp r3, #0 + 800223e: bf14 ite ne + 8002240: 2301 movne r3, #1 + 8002242: 2300 moveq r3, #0 + 8002244: b2db uxtb r3, r3 + 8002246: 461a mov r2, r3 + 8002248: 683b ldr r3, [r7, #0] + 800224a: f883 2054 strb.w r2, [r3, #84] ; 0x54 macconf->ZeroQuantaPause = ((READ_BIT(heth->Instance->MACFCR, ETH_MACFCR_ZQPD) >> 7) == 0U) ? ENABLE : DISABLE; - 8002252: 687b ldr r3, [r7, #4] - 8002254: 681b ldr r3, [r3, #0] - 8002256: 699b ldr r3, [r3, #24] - 8002258: f003 0380 and.w r3, r3, #128 ; 0x80 - 800225c: 2b00 cmp r3, #0 - 800225e: bf0c ite eq - 8002260: 2301 moveq r3, #1 - 8002262: 2300 movne r3, #0 - 8002264: b2db uxtb r3, r3 - 8002266: 461a mov r2, r3 - 8002268: 683b ldr r3, [r7, #0] - 800226a: f883 204c strb.w r2, [r3, #76] ; 0x4c + 800224e: 687b ldr r3, [r7, #4] + 8002250: 681b ldr r3, [r3, #0] + 8002252: 699b ldr r3, [r3, #24] + 8002254: f003 0380 and.w r3, r3, #128 ; 0x80 + 8002258: 2b00 cmp r3, #0 + 800225a: bf0c ite eq + 800225c: 2301 moveq r3, #1 + 800225e: 2300 movne r3, #0 + 8002260: b2db uxtb r3, r3 + 8002262: 461a mov r2, r3 + 8002264: 683b ldr r3, [r7, #0] + 8002266: f883 204c strb.w r2, [r3, #76] ; 0x4c macconf->PauseLowThreshold = READ_BIT(heth->Instance->MACFCR, ETH_MACFCR_PLT); - 800226e: 687b ldr r3, [r7, #4] - 8002270: 681b ldr r3, [r3, #0] - 8002272: 699b ldr r3, [r3, #24] - 8002274: f003 0230 and.w r2, r3, #48 ; 0x30 - 8002278: 683b ldr r3, [r7, #0] - 800227a: 651a str r2, [r3, #80] ; 0x50 + 800226a: 687b ldr r3, [r7, #4] + 800226c: 681b ldr r3, [r3, #0] + 800226e: 699b ldr r3, [r3, #24] + 8002270: f003 0230 and.w r2, r3, #48 ; 0x30 + 8002274: 683b ldr r3, [r7, #0] + 8002276: 651a str r2, [r3, #80] ; 0x50 macconf->PauseTime = (READ_BIT(heth->Instance->MACFCR, ETH_MACFCR_PT) >> 16); - 800227c: 687b ldr r3, [r7, #4] - 800227e: 681b ldr r3, [r3, #0] - 8002280: 699b ldr r3, [r3, #24] - 8002282: 0c1b lsrs r3, r3, #16 - 8002284: b29a uxth r2, r3 - 8002286: 683b ldr r3, [r7, #0] - 8002288: 649a str r2, [r3, #72] ; 0x48 + 8002278: 687b ldr r3, [r7, #4] + 800227a: 681b ldr r3, [r3, #0] + 800227c: 699b ldr r3, [r3, #24] + 800227e: 0c1b lsrs r3, r3, #16 + 8002280: b29a uxth r2, r3 + 8002282: 683b ldr r3, [r7, #0] + 8002284: 649a str r2, [r3, #72] ; 0x48 macconf->ReceiveFlowControl = ((READ_BIT(heth->Instance->MACFCR, ETH_MACFCR_RFCE) >> 2U) > 0U) ? ENABLE : DISABLE; - 800228a: 687b ldr r3, [r7, #4] - 800228c: 681b ldr r3, [r3, #0] - 800228e: 699b ldr r3, [r3, #24] - 8002290: f003 0304 and.w r3, r3, #4 - 8002294: 2b00 cmp r3, #0 - 8002296: bf14 ite ne - 8002298: 2301 movne r3, #1 - 800229a: 2300 moveq r3, #0 - 800229c: b2db uxtb r3, r3 - 800229e: 461a mov r2, r3 - 80022a0: 683b ldr r3, [r7, #0] - 80022a2: f883 2056 strb.w r2, [r3, #86] ; 0x56 + 8002286: 687b ldr r3, [r7, #4] + 8002288: 681b ldr r3, [r3, #0] + 800228a: 699b ldr r3, [r3, #24] + 800228c: f003 0304 and.w r3, r3, #4 + 8002290: 2b00 cmp r3, #0 + 8002292: bf14 ite ne + 8002294: 2301 movne r3, #1 + 8002296: 2300 moveq r3, #0 + 8002298: b2db uxtb r3, r3 + 800229a: 461a mov r2, r3 + 800229c: 683b ldr r3, [r7, #0] + 800229e: f883 2056 strb.w r2, [r3, #86] ; 0x56 macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACFCR, ETH_MACFCR_UPFD) >> 3U) > 0U) - 80022a6: 687b ldr r3, [r7, #4] - 80022a8: 681b ldr r3, [r3, #0] - 80022aa: 699b ldr r3, [r3, #24] - 80022ac: f003 0308 and.w r3, r3, #8 + 80022a2: 687b ldr r3, [r7, #4] + 80022a4: 681b ldr r3, [r3, #0] + 80022a6: 699b ldr r3, [r3, #24] + 80022a8: f003 0308 and.w r3, r3, #8 ? ENABLE : DISABLE; - 80022b0: 2b00 cmp r3, #0 - 80022b2: bf14 ite ne - 80022b4: 2301 movne r3, #1 - 80022b6: 2300 moveq r3, #0 - 80022b8: b2db uxtb r3, r3 - 80022ba: 461a mov r2, r3 + 80022ac: 2b00 cmp r3, #0 + 80022ae: bf14 ite ne + 80022b0: 2301 movne r3, #1 + 80022b2: 2300 moveq r3, #0 + 80022b4: b2db uxtb r3, r3 + 80022b6: 461a mov r2, r3 macconf->UnicastPausePacketDetect = ((READ_BIT(heth->Instance->MACFCR, ETH_MACFCR_UPFD) >> 3U) > 0U) - 80022bc: 683b ldr r3, [r7, #0] - 80022be: f883 2055 strb.w r2, [r3, #85] ; 0x55 + 80022b8: 683b ldr r3, [r7, #0] + 80022ba: f883 2055 strb.w r2, [r3, #85] ; 0x55 return HAL_OK; - 80022c2: 2300 movs r3, #0 + 80022be: 2300 movs r3, #0 } - 80022c4: 4618 mov r0, r3 - 80022c6: 370c adds r7, #12 - 80022c8: 46bd mov sp, r7 - 80022ca: f85d 7b04 ldr.w r7, [sp], #4 - 80022ce: 4770 bx lr + 80022c0: 4618 mov r0, r3 + 80022c2: 370c adds r7, #12 + 80022c4: 46bd mov sp, r7 + 80022c6: f85d 7b04 ldr.w r7, [sp], #4 + 80022ca: 4770 bx lr -080022d0 : +080022cc : * @param macconf: pointer to a ETH_MACConfigTypeDef structure that contains * the configuration of the MAC. * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) { - 80022d0: b580 push {r7, lr} - 80022d2: b082 sub sp, #8 - 80022d4: af00 add r7, sp, #0 - 80022d6: 6078 str r0, [r7, #4] - 80022d8: 6039 str r1, [r7, #0] + 80022cc: b580 push {r7, lr} + 80022ce: b082 sub sp, #8 + 80022d0: af00 add r7, sp, #0 + 80022d2: 6078 str r0, [r7, #4] + 80022d4: 6039 str r1, [r7, #0] if (macconf == NULL) - 80022da: 683b ldr r3, [r7, #0] - 80022dc: 2b00 cmp r3, #0 - 80022de: d101 bne.n 80022e4 + 80022d6: 683b ldr r3, [r7, #0] + 80022d8: 2b00 cmp r3, #0 + 80022da: d101 bne.n 80022e0 { return HAL_ERROR; - 80022e0: 2301 movs r3, #1 - 80022e2: e00b b.n 80022fc + 80022dc: 2301 movs r3, #1 + 80022de: e00b b.n 80022f8 } if (heth->gState == HAL_ETH_STATE_READY) - 80022e4: 687b ldr r3, [r7, #4] - 80022e6: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 80022ea: 2b10 cmp r3, #16 - 80022ec: d105 bne.n 80022fa + 80022e0: 687b ldr r3, [r7, #4] + 80022e2: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 80022e6: 2b10 cmp r3, #16 + 80022e8: d105 bne.n 80022f6 { ETH_SetMACConfig(heth, macconf); - 80022ee: 6839 ldr r1, [r7, #0] - 80022f0: 6878 ldr r0, [r7, #4] - 80022f2: f000 f883 bl 80023fc + 80022ea: 6839 ldr r1, [r7, #0] + 80022ec: 6878 ldr r0, [r7, #4] + 80022ee: f000 f883 bl 80023f8 return HAL_OK; - 80022f6: 2300 movs r3, #0 - 80022f8: e000 b.n 80022fc + 80022f2: 2300 movs r3, #0 + 80022f4: e000 b.n 80022f8 } else { return HAL_ERROR; - 80022fa: 2301 movs r3, #1 + 80022f6: 2301 movs r3, #1 } } - 80022fc: 4618 mov r0, r3 - 80022fe: 3708 adds r7, #8 - 8002300: 46bd mov sp, r7 - 8002302: bd80 pop {r7, pc} + 80022f8: 4618 mov r0, r3 + 80022fa: 3708 adds r7, #8 + 80022fc: 46bd mov sp, r7 + 80022fe: bd80 pop {r7, pc} -08002304 : +08002300 : * @param heth: pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ void HAL_ETH_SetMDIOClockRange(ETH_HandleTypeDef *heth) { - 8002304: b580 push {r7, lr} - 8002306: b084 sub sp, #16 - 8002308: af00 add r7, sp, #0 - 800230a: 6078 str r0, [r7, #4] + 8002300: b580 push {r7, lr} + 8002302: b084 sub sp, #16 + 8002304: af00 add r7, sp, #0 + 8002306: 6078 str r0, [r7, #4] uint32_t hclk; uint32_t tmpreg; /* Get the ETHERNET MACMIIAR value */ tmpreg = (heth->Instance)->MACMIIAR; - 800230c: 687b ldr r3, [r7, #4] - 800230e: 681b ldr r3, [r3, #0] - 8002310: 691b ldr r3, [r3, #16] - 8002312: 60fb str r3, [r7, #12] + 8002308: 687b ldr r3, [r7, #4] + 800230a: 681b ldr r3, [r3, #0] + 800230c: 691b ldr r3, [r3, #16] + 800230e: 60fb str r3, [r7, #12] /* Clear CSR Clock Range CR[2:0] bits */ tmpreg &= ETH_MACMIIAR_CR_MASK; - 8002314: 68fb ldr r3, [r7, #12] - 8002316: f023 031c bic.w r3, r3, #28 - 800231a: 60fb str r3, [r7, #12] + 8002310: 68fb ldr r3, [r7, #12] + 8002312: f023 031c bic.w r3, r3, #28 + 8002316: 60fb str r3, [r7, #12] /* Get hclk frequency value */ hclk = HAL_RCC_GetHCLKFreq(); - 800231c: f001 fa38 bl 8003790 - 8002320: 60b8 str r0, [r7, #8] + 8002318: f001 fa38 bl 800378c + 800231c: 60b8 str r0, [r7, #8] /* Set CR bits depending on hclk value */ if ((hclk >= 20000000U) && (hclk < 35000000U)) - 8002322: 68bb ldr r3, [r7, #8] - 8002324: 4a1d ldr r2, [pc, #116] ; (800239c ) - 8002326: 4293 cmp r3, r2 - 8002328: d908 bls.n 800233c - 800232a: 68bb ldr r3, [r7, #8] - 800232c: 4a1c ldr r2, [pc, #112] ; (80023a0 ) - 800232e: 4293 cmp r3, r2 - 8002330: d804 bhi.n 800233c + 800231e: 68bb ldr r3, [r7, #8] + 8002320: 4a1d ldr r2, [pc, #116] ; (8002398 ) + 8002322: 4293 cmp r3, r2 + 8002324: d908 bls.n 8002338 + 8002326: 68bb ldr r3, [r7, #8] + 8002328: 4a1c ldr r2, [pc, #112] ; (800239c ) + 800232a: 4293 cmp r3, r2 + 800232c: d804 bhi.n 8002338 { /* CSR Clock Range between 20-35 MHz */ tmpreg |= (uint32_t)ETH_MACMIIAR_CR_Div16; - 8002332: 68fb ldr r3, [r7, #12] - 8002334: f043 0308 orr.w r3, r3, #8 - 8002338: 60fb str r3, [r7, #12] - 800233a: e027 b.n 800238c + 800232e: 68fb ldr r3, [r7, #12] + 8002330: f043 0308 orr.w r3, r3, #8 + 8002334: 60fb str r3, [r7, #12] + 8002336: e027 b.n 8002388 } else if ((hclk >= 35000000U) && (hclk < 60000000U)) - 800233c: 68bb ldr r3, [r7, #8] - 800233e: 4a18 ldr r2, [pc, #96] ; (80023a0 ) - 8002340: 4293 cmp r3, r2 - 8002342: d908 bls.n 8002356 - 8002344: 68bb ldr r3, [r7, #8] - 8002346: 4a17 ldr r2, [pc, #92] ; (80023a4 ) - 8002348: 4293 cmp r3, r2 - 800234a: d204 bcs.n 8002356 + 8002338: 68bb ldr r3, [r7, #8] + 800233a: 4a18 ldr r2, [pc, #96] ; (800239c ) + 800233c: 4293 cmp r3, r2 + 800233e: d908 bls.n 8002352 + 8002340: 68bb ldr r3, [r7, #8] + 8002342: 4a17 ldr r2, [pc, #92] ; (80023a0 ) + 8002344: 4293 cmp r3, r2 + 8002346: d204 bcs.n 8002352 { /* CSR Clock Range between 35-60 MHz */ tmpreg |= (uint32_t)ETH_MACMIIAR_CR_Div26; - 800234c: 68fb ldr r3, [r7, #12] - 800234e: f043 030c orr.w r3, r3, #12 - 8002352: 60fb str r3, [r7, #12] - 8002354: e01a b.n 800238c + 8002348: 68fb ldr r3, [r7, #12] + 800234a: f043 030c orr.w r3, r3, #12 + 800234e: 60fb str r3, [r7, #12] + 8002350: e01a b.n 8002388 } else if ((hclk >= 60000000U) && (hclk < 100000000U)) - 8002356: 68bb ldr r3, [r7, #8] - 8002358: 4a12 ldr r2, [pc, #72] ; (80023a4 ) - 800235a: 4293 cmp r3, r2 - 800235c: d303 bcc.n 8002366 - 800235e: 68bb ldr r3, [r7, #8] - 8002360: 4a11 ldr r2, [pc, #68] ; (80023a8 ) - 8002362: 4293 cmp r3, r2 - 8002364: d911 bls.n 800238a + 8002352: 68bb ldr r3, [r7, #8] + 8002354: 4a12 ldr r2, [pc, #72] ; (80023a0 ) + 8002356: 4293 cmp r3, r2 + 8002358: d303 bcc.n 8002362 + 800235a: 68bb ldr r3, [r7, #8] + 800235c: 4a11 ldr r2, [pc, #68] ; (80023a4 ) + 800235e: 4293 cmp r3, r2 + 8002360: d911 bls.n 8002386 { /* CSR Clock Range between 60-100 MHz */ tmpreg |= (uint32_t)ETH_MACMIIAR_CR_Div42; } else if ((hclk >= 100000000U) && (hclk < 150000000U)) - 8002366: 68bb ldr r3, [r7, #8] - 8002368: 4a0f ldr r2, [pc, #60] ; (80023a8 ) - 800236a: 4293 cmp r3, r2 - 800236c: d908 bls.n 8002380 - 800236e: 68bb ldr r3, [r7, #8] - 8002370: 4a0e ldr r2, [pc, #56] ; (80023ac ) - 8002372: 4293 cmp r3, r2 - 8002374: d804 bhi.n 8002380 + 8002362: 68bb ldr r3, [r7, #8] + 8002364: 4a0f ldr r2, [pc, #60] ; (80023a4 ) + 8002366: 4293 cmp r3, r2 + 8002368: d908 bls.n 800237c + 800236a: 68bb ldr r3, [r7, #8] + 800236c: 4a0e ldr r2, [pc, #56] ; (80023a8 ) + 800236e: 4293 cmp r3, r2 + 8002370: d804 bhi.n 800237c { /* CSR Clock Range between 100-150 MHz */ tmpreg |= (uint32_t)ETH_MACMIIAR_CR_Div62; - 8002376: 68fb ldr r3, [r7, #12] - 8002378: f043 0304 orr.w r3, r3, #4 - 800237c: 60fb str r3, [r7, #12] - 800237e: e005 b.n 800238c + 8002372: 68fb ldr r3, [r7, #12] + 8002374: f043 0304 orr.w r3, r3, #4 + 8002378: 60fb str r3, [r7, #12] + 800237a: e005 b.n 8002388 } else /* ((hclk >= 150000000)&&(hclk <= 183000000))*/ { /* CSR Clock Range between 150-183 MHz */ tmpreg |= (uint32_t)ETH_MACMIIAR_CR_Div102; - 8002380: 68fb ldr r3, [r7, #12] - 8002382: f043 0310 orr.w r3, r3, #16 - 8002386: 60fb str r3, [r7, #12] - 8002388: e000 b.n 800238c + 800237c: 68fb ldr r3, [r7, #12] + 800237e: f043 0310 orr.w r3, r3, #16 + 8002382: 60fb str r3, [r7, #12] + 8002384: e000 b.n 8002388 tmpreg |= (uint32_t)ETH_MACMIIAR_CR_Div42; - 800238a: bf00 nop + 8002386: bf00 nop } /* Write to ETHERNET MAC MIIAR: Configure the ETHERNET CSR Clock Range */ (heth->Instance)->MACMIIAR = (uint32_t)tmpreg; - 800238c: 687b ldr r3, [r7, #4] - 800238e: 681b ldr r3, [r3, #0] - 8002390: 68fa ldr r2, [r7, #12] - 8002392: 611a str r2, [r3, #16] + 8002388: 687b ldr r3, [r7, #4] + 800238a: 681b ldr r3, [r3, #0] + 800238c: 68fa ldr r2, [r7, #12] + 800238e: 611a str r2, [r3, #16] } - 8002394: bf00 nop - 8002396: 3710 adds r7, #16 - 8002398: 46bd mov sp, r7 - 800239a: bd80 pop {r7, pc} - 800239c: 01312cff .word 0x01312cff - 80023a0: 02160ebf .word 0x02160ebf - 80023a4: 03938700 .word 0x03938700 - 80023a8: 05f5e0ff .word 0x05f5e0ff - 80023ac: 08f0d17f .word 0x08f0d17f + 8002390: bf00 nop + 8002392: 3710 adds r7, #16 + 8002394: 46bd mov sp, r7 + 8002396: bd80 pop {r7, pc} + 8002398: 01312cff .word 0x01312cff + 800239c: 02160ebf .word 0x02160ebf + 80023a0: 03938700 .word 0x03938700 + 80023a4: 05f5e0ff .word 0x05f5e0ff + 80023a8: 08f0d17f .word 0x08f0d17f -080023b0 : +080023ac : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_FlushTransmitFIFO(ETH_HandleTypeDef *heth) { - 80023b0: b580 push {r7, lr} - 80023b2: b084 sub sp, #16 - 80023b4: af00 add r7, sp, #0 - 80023b6: 6078 str r0, [r7, #4] + 80023ac: b580 push {r7, lr} + 80023ae: b084 sub sp, #16 + 80023b0: af00 add r7, sp, #0 + 80023b2: 6078 str r0, [r7, #4] __IO uint32_t tmpreg = 0; - 80023b8: 2300 movs r3, #0 - 80023ba: 60fb str r3, [r7, #12] + 80023b4: 2300 movs r3, #0 + 80023b6: 60fb str r3, [r7, #12] /* Set the Flush Transmit FIFO bit */ (heth->Instance)->DMAOMR |= ETH_DMAOMR_FTF; - 80023bc: 687b ldr r3, [r7, #4] - 80023be: 681b ldr r3, [r3, #0] - 80023c0: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80023c4: 699b ldr r3, [r3, #24] - 80023c6: 687a ldr r2, [r7, #4] - 80023c8: 6812 ldr r2, [r2, #0] - 80023ca: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 - 80023ce: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 80023d2: 6193 str r3, [r2, #24] + 80023b8: 687b ldr r3, [r7, #4] + 80023ba: 681b ldr r3, [r3, #0] + 80023bc: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80023c0: 699b ldr r3, [r3, #24] + 80023c2: 687a ldr r2, [r7, #4] + 80023c4: 6812 ldr r2, [r2, #0] + 80023c6: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 + 80023ca: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 80023ce: 6193 str r3, [r2, #24] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->DMAOMR; - 80023d4: 687b ldr r3, [r7, #4] - 80023d6: 681b ldr r3, [r3, #0] - 80023d8: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80023dc: 699b ldr r3, [r3, #24] - 80023de: 60fb str r3, [r7, #12] + 80023d0: 687b ldr r3, [r7, #4] + 80023d2: 681b ldr r3, [r3, #0] + 80023d4: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80023d8: 699b ldr r3, [r3, #24] + 80023da: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 80023e0: 2001 movs r0, #1 - 80023e2: f7ff f9eb bl 80017bc + 80023dc: 2001 movs r0, #1 + 80023de: f7ff f9eb bl 80017b8 (heth->Instance)->DMAOMR = tmpreg; - 80023e6: 687b ldr r3, [r7, #4] - 80023e8: 681a ldr r2, [r3, #0] - 80023ea: 68fb ldr r3, [r7, #12] - 80023ec: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 80023f0: 6193 str r3, [r2, #24] + 80023e2: 687b ldr r3, [r7, #4] + 80023e4: 681a ldr r2, [r3, #0] + 80023e6: 68fb ldr r3, [r7, #12] + 80023e8: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 80023ec: 6193 str r3, [r2, #24] } - 80023f2: bf00 nop - 80023f4: 3710 adds r7, #16 - 80023f6: 46bd mov sp, r7 - 80023f8: bd80 pop {r7, pc} + 80023ee: bf00 nop + 80023f0: 3710 adds r7, #16 + 80023f2: 46bd mov sp, r7 + 80023f4: bd80 pop {r7, pc} ... -080023fc : +080023f8 : static void ETH_SetMACConfig(ETH_HandleTypeDef *heth, ETH_MACConfigTypeDef *macconf) { - 80023fc: b580 push {r7, lr} - 80023fe: b084 sub sp, #16 - 8002400: af00 add r7, sp, #0 - 8002402: 6078 str r0, [r7, #4] - 8002404: 6039 str r1, [r7, #0] + 80023f8: b580 push {r7, lr} + 80023fa: b084 sub sp, #16 + 80023fc: af00 add r7, sp, #0 + 80023fe: 6078 str r0, [r7, #4] + 8002400: 6039 str r1, [r7, #0] uint32_t tmpreg1; /*------------------------ ETHERNET MACCR Configuration --------------------*/ /* Get the ETHERNET MACCR value */ tmpreg1 = (heth->Instance)->MACCR; - 8002406: 687b ldr r3, [r7, #4] - 8002408: 681b ldr r3, [r3, #0] - 800240a: 681b ldr r3, [r3, #0] - 800240c: 60fb str r3, [r7, #12] + 8002402: 687b ldr r3, [r7, #4] + 8002404: 681b ldr r3, [r3, #0] + 8002406: 681b ldr r3, [r3, #0] + 8002408: 60fb str r3, [r7, #12] /* Clear WD, PCE, PS, TE and RE bits */ tmpreg1 &= ETH_MACCR_CLEAR_MASK; - 800240e: 68fa ldr r2, [r7, #12] - 8002410: 4b51 ldr r3, [pc, #324] ; (8002558 ) - 8002412: 4013 ands r3, r2 - 8002414: 60fb str r3, [r7, #12] + 800240a: 68fa ldr r2, [r7, #12] + 800240c: 4b51 ldr r3, [pc, #324] ; (8002554 ) + 800240e: 4013 ands r3, r2 + 8002410: 60fb str r3, [r7, #12] tmpreg1 |= (uint32_t)(((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 23U) | - 8002416: 683b ldr r3, [r7, #0] - 8002418: 7c1b ldrb r3, [r3, #16] - 800241a: 2b00 cmp r3, #0 - 800241c: d102 bne.n 8002424 - 800241e: f44f 0200 mov.w r2, #8388608 ; 0x800000 - 8002422: e000 b.n 8002426 - 8002424: 2200 movs r2, #0 + 8002412: 683b ldr r3, [r7, #0] + 8002414: 7c1b ldrb r3, [r3, #16] + 8002416: 2b00 cmp r3, #0 + 8002418: d102 bne.n 8002420 + 800241a: f44f 0200 mov.w r2, #8388608 ; 0x800000 + 800241e: e000 b.n 8002422 + 8002420: 2200 movs r2, #0 ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 22U) | - 8002426: 683b ldr r3, [r7, #0] - 8002428: 7c5b ldrb r3, [r3, #17] - 800242a: 2b00 cmp r3, #0 - 800242c: d102 bne.n 8002434 - 800242e: f44f 0380 mov.w r3, #4194304 ; 0x400000 - 8002432: e000 b.n 8002436 - 8002434: 2300 movs r3, #0 + 8002422: 683b ldr r3, [r7, #0] + 8002424: 7c5b ldrb r3, [r3, #17] + 8002426: 2b00 cmp r3, #0 + 8002428: d102 bne.n 8002430 + 800242a: f44f 0380 mov.w r3, #4194304 ; 0x400000 + 800242e: e000 b.n 8002432 + 8002430: 2300 movs r3, #0 tmpreg1 |= (uint32_t)(((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 23U) | - 8002436: 431a orrs r2, r3 + 8002432: 431a orrs r2, r3 (uint32_t)macconf->InterPacketGapVal | - 8002438: 683b ldr r3, [r7, #0] - 800243a: 689b ldr r3, [r3, #8] + 8002434: 683b ldr r3, [r7, #0] + 8002436: 689b ldr r3, [r3, #8] ((uint32_t)((macconf->Jabber == DISABLE) ? 1U : 0U) << 22U) | - 800243c: 431a orrs r2, r3 + 8002438: 431a orrs r2, r3 ((uint32_t)macconf->CarrierSenseDuringTransmit << 16U) | - 800243e: 683b ldr r3, [r7, #0] - 8002440: 7fdb ldrb r3, [r3, #31] - 8002442: 041b lsls r3, r3, #16 + 800243a: 683b ldr r3, [r7, #0] + 800243c: 7fdb ldrb r3, [r3, #31] + 800243e: 041b lsls r3, r3, #16 (uint32_t)macconf->InterPacketGapVal | - 8002444: 431a orrs r2, r3 + 8002440: 431a orrs r2, r3 macconf->Speed | - 8002446: 683b ldr r3, [r7, #0] - 8002448: 695b ldr r3, [r3, #20] + 8002442: 683b ldr r3, [r7, #0] + 8002444: 695b ldr r3, [r3, #20] ((uint32_t)macconf->CarrierSenseDuringTransmit << 16U) | - 800244a: 4313 orrs r3, r2 + 8002446: 4313 orrs r3, r2 ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 13U) | - 800244c: 683a ldr r2, [r7, #0] - 800244e: 7f92 ldrb r2, [r2, #30] - 8002450: 2a00 cmp r2, #0 - 8002452: d102 bne.n 800245a - 8002454: f44f 5200 mov.w r2, #8192 ; 0x2000 - 8002458: e000 b.n 800245c - 800245a: 2200 movs r2, #0 + 8002448: 683a ldr r2, [r7, #0] + 800244a: 7f92 ldrb r2, [r2, #30] + 800244c: 2a00 cmp r2, #0 + 800244e: d102 bne.n 8002456 + 8002450: f44f 5200 mov.w r2, #8192 ; 0x2000 + 8002454: e000 b.n 8002458 + 8002456: 2200 movs r2, #0 macconf->Speed | - 800245c: 431a orrs r2, r3 + 8002458: 431a orrs r2, r3 ((uint32_t)macconf->LoopbackMode << 12U) | - 800245e: 683b ldr r3, [r7, #0] - 8002460: 7f1b ldrb r3, [r3, #28] - 8002462: 031b lsls r3, r3, #12 + 800245a: 683b ldr r3, [r7, #0] + 800245c: 7f1b ldrb r3, [r3, #28] + 800245e: 031b lsls r3, r3, #12 ((uint32_t)((macconf->ReceiveOwn == DISABLE) ? 1U : 0U) << 13U) | - 8002464: 431a orrs r2, r3 + 8002460: 431a orrs r2, r3 macconf->DuplexMode | - 8002466: 683b ldr r3, [r7, #0] - 8002468: 699b ldr r3, [r3, #24] + 8002462: 683b ldr r3, [r7, #0] + 8002464: 699b ldr r3, [r3, #24] ((uint32_t)macconf->LoopbackMode << 12U) | - 800246a: 431a orrs r2, r3 + 8002466: 431a orrs r2, r3 ((uint32_t)macconf->ChecksumOffload << 10U) | - 800246c: 683b ldr r3, [r7, #0] - 800246e: 791b ldrb r3, [r3, #4] - 8002470: 029b lsls r3, r3, #10 + 8002468: 683b ldr r3, [r7, #0] + 800246a: 791b ldrb r3, [r3, #4] + 800246c: 029b lsls r3, r3, #10 macconf->DuplexMode | - 8002472: 4313 orrs r3, r2 + 800246e: 4313 orrs r3, r2 ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 9U) | - 8002474: 683a ldr r2, [r7, #0] - 8002476: f892 2020 ldrb.w r2, [r2, #32] - 800247a: 2a00 cmp r2, #0 - 800247c: d102 bne.n 8002484 - 800247e: f44f 7200 mov.w r2, #512 ; 0x200 - 8002482: e000 b.n 8002486 - 8002484: 2200 movs r2, #0 + 8002470: 683a ldr r2, [r7, #0] + 8002472: f892 2020 ldrb.w r2, [r2, #32] + 8002476: 2a00 cmp r2, #0 + 8002478: d102 bne.n 8002480 + 800247a: f44f 7200 mov.w r2, #512 ; 0x200 + 800247e: e000 b.n 8002482 + 8002480: 2200 movs r2, #0 ((uint32_t)macconf->ChecksumOffload << 10U) | - 8002486: 431a orrs r2, r3 + 8002482: 431a orrs r2, r3 ((uint32_t)macconf->AutomaticPadCRCStrip << 7U) | - 8002488: 683b ldr r3, [r7, #0] - 800248a: 7bdb ldrb r3, [r3, #15] - 800248c: 01db lsls r3, r3, #7 + 8002484: 683b ldr r3, [r7, #0] + 8002486: 7bdb ldrb r3, [r3, #15] + 8002488: 01db lsls r3, r3, #7 ((uint32_t)((macconf->RetryTransmission == DISABLE) ? 1U : 0U) << 9U) | - 800248e: 431a orrs r2, r3 + 800248a: 431a orrs r2, r3 macconf->BackOffLimit | - 8002490: 683b ldr r3, [r7, #0] - 8002492: 6a5b ldr r3, [r3, #36] ; 0x24 + 800248c: 683b ldr r3, [r7, #0] + 800248e: 6a5b ldr r3, [r3, #36] ; 0x24 ((uint32_t)macconf->AutomaticPadCRCStrip << 7U) | - 8002494: 431a orrs r2, r3 + 8002490: 431a orrs r2, r3 ((uint32_t)macconf->DeferralCheck << 4U)); - 8002496: 683b ldr r3, [r7, #0] - 8002498: f893 3028 ldrb.w r3, [r3, #40] ; 0x28 - 800249c: 011b lsls r3, r3, #4 + 8002492: 683b ldr r3, [r7, #0] + 8002494: f893 3028 ldrb.w r3, [r3, #40] ; 0x28 + 8002498: 011b lsls r3, r3, #4 tmpreg1 |= (uint32_t)(((uint32_t)((macconf->Watchdog == DISABLE) ? 1U : 0U) << 23U) | + 800249a: 4313 orrs r3, r2 + 800249c: 68fa ldr r2, [r7, #12] 800249e: 4313 orrs r3, r2 - 80024a0: 68fa ldr r2, [r7, #12] - 80024a2: 4313 orrs r3, r2 - 80024a4: 60fb str r3, [r7, #12] + 80024a0: 60fb str r3, [r7, #12] /* Write to ETHERNET MACCR */ (heth->Instance)->MACCR = (uint32_t)tmpreg1; - 80024a6: 687b ldr r3, [r7, #4] - 80024a8: 681b ldr r3, [r3, #0] - 80024aa: 68fa ldr r2, [r7, #12] - 80024ac: 601a str r2, [r3, #0] + 80024a2: 687b ldr r3, [r7, #4] + 80024a4: 681b ldr r3, [r3, #0] + 80024a6: 68fa ldr r2, [r7, #12] + 80024a8: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg1 = (heth->Instance)->MACCR; - 80024ae: 687b ldr r3, [r7, #4] - 80024b0: 681b ldr r3, [r3, #0] - 80024b2: 681b ldr r3, [r3, #0] - 80024b4: 60fb str r3, [r7, #12] + 80024aa: 687b ldr r3, [r7, #4] + 80024ac: 681b ldr r3, [r3, #0] + 80024ae: 681b ldr r3, [r3, #0] + 80024b0: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 80024b6: 2001 movs r0, #1 - 80024b8: f7ff f980 bl 80017bc + 80024b2: 2001 movs r0, #1 + 80024b4: f7ff f980 bl 80017b8 (heth->Instance)->MACCR = tmpreg1; - 80024bc: 687b ldr r3, [r7, #4] - 80024be: 681b ldr r3, [r3, #0] - 80024c0: 68fa ldr r2, [r7, #12] - 80024c2: 601a str r2, [r3, #0] + 80024b8: 687b ldr r3, [r7, #4] + 80024ba: 681b ldr r3, [r3, #0] + 80024bc: 68fa ldr r2, [r7, #12] + 80024be: 601a str r2, [r3, #0] /*----------------------- ETHERNET MACFCR Configuration --------------------*/ /* Get the ETHERNET MACFCR value */ tmpreg1 = (heth->Instance)->MACFCR; - 80024c4: 687b ldr r3, [r7, #4] - 80024c6: 681b ldr r3, [r3, #0] - 80024c8: 699b ldr r3, [r3, #24] - 80024ca: 60fb str r3, [r7, #12] + 80024c0: 687b ldr r3, [r7, #4] + 80024c2: 681b ldr r3, [r3, #0] + 80024c4: 699b ldr r3, [r3, #24] + 80024c6: 60fb str r3, [r7, #12] /* Clear xx bits */ tmpreg1 &= ETH_MACFCR_CLEAR_MASK; - 80024cc: 68fa ldr r2, [r7, #12] - 80024ce: f64f 7341 movw r3, #65345 ; 0xff41 - 80024d2: 4013 ands r3, r2 - 80024d4: 60fb str r3, [r7, #12] + 80024c8: 68fa ldr r2, [r7, #12] + 80024ca: f64f 7341 movw r3, #65345 ; 0xff41 + 80024ce: 4013 ands r3, r2 + 80024d0: 60fb str r3, [r7, #12] tmpreg1 |= (uint32_t)((macconf->PauseTime << 16U) | - 80024d6: 683b ldr r3, [r7, #0] - 80024d8: 6c9b ldr r3, [r3, #72] ; 0x48 - 80024da: 041b lsls r3, r3, #16 + 80024d2: 683b ldr r3, [r7, #0] + 80024d4: 6c9b ldr r3, [r3, #72] ; 0x48 + 80024d6: 041b lsls r3, r3, #16 ((uint32_t)((macconf->ZeroQuantaPause == DISABLE) ? 1U : 0U) << 7U) | - 80024dc: 683a ldr r2, [r7, #0] - 80024de: f892 204c ldrb.w r2, [r2, #76] ; 0x4c - 80024e2: 2a00 cmp r2, #0 - 80024e4: d101 bne.n 80024ea - 80024e6: 2280 movs r2, #128 ; 0x80 - 80024e8: e000 b.n 80024ec - 80024ea: 2200 movs r2, #0 + 80024d8: 683a ldr r2, [r7, #0] + 80024da: f892 204c ldrb.w r2, [r2, #76] ; 0x4c + 80024de: 2a00 cmp r2, #0 + 80024e0: d101 bne.n 80024e6 + 80024e2: 2280 movs r2, #128 ; 0x80 + 80024e4: e000 b.n 80024e8 + 80024e6: 2200 movs r2, #0 tmpreg1 |= (uint32_t)((macconf->PauseTime << 16U) | - 80024ec: 431a orrs r2, r3 + 80024e8: 431a orrs r2, r3 macconf->PauseLowThreshold | - 80024ee: 683b ldr r3, [r7, #0] - 80024f0: 6d1b ldr r3, [r3, #80] ; 0x50 + 80024ea: 683b ldr r3, [r7, #0] + 80024ec: 6d1b ldr r3, [r3, #80] ; 0x50 ((uint32_t)((macconf->ZeroQuantaPause == DISABLE) ? 1U : 0U) << 7U) | - 80024f2: 4313 orrs r3, r2 + 80024ee: 4313 orrs r3, r2 ((uint32_t)((macconf->UnicastPausePacketDetect == ENABLE) ? 1U : 0U) << 3U) | - 80024f4: 683a ldr r2, [r7, #0] - 80024f6: f892 2055 ldrb.w r2, [r2, #85] ; 0x55 - 80024fa: 2a01 cmp r2, #1 - 80024fc: d101 bne.n 8002502 - 80024fe: 2208 movs r2, #8 - 8002500: e000 b.n 8002504 - 8002502: 2200 movs r2, #0 + 80024f0: 683a ldr r2, [r7, #0] + 80024f2: f892 2055 ldrb.w r2, [r2, #85] ; 0x55 + 80024f6: 2a01 cmp r2, #1 + 80024f8: d101 bne.n 80024fe + 80024fa: 2208 movs r2, #8 + 80024fc: e000 b.n 8002500 + 80024fe: 2200 movs r2, #0 macconf->PauseLowThreshold | - 8002504: 4313 orrs r3, r2 + 8002500: 4313 orrs r3, r2 ((uint32_t)((macconf->ReceiveFlowControl == ENABLE) ? 1U : 0U) << 2U) | - 8002506: 683a ldr r2, [r7, #0] - 8002508: f892 2056 ldrb.w r2, [r2, #86] ; 0x56 - 800250c: 2a01 cmp r2, #1 - 800250e: d101 bne.n 8002514 - 8002510: 2204 movs r2, #4 - 8002512: e000 b.n 8002516 - 8002514: 2200 movs r2, #0 + 8002502: 683a ldr r2, [r7, #0] + 8002504: f892 2056 ldrb.w r2, [r2, #86] ; 0x56 + 8002508: 2a01 cmp r2, #1 + 800250a: d101 bne.n 8002510 + 800250c: 2204 movs r2, #4 + 800250e: e000 b.n 8002512 + 8002510: 2200 movs r2, #0 ((uint32_t)((macconf->UnicastPausePacketDetect == ENABLE) ? 1U : 0U) << 3U) | - 8002516: 4313 orrs r3, r2 + 8002512: 4313 orrs r3, r2 ((uint32_t)((macconf->TransmitFlowControl == ENABLE) ? 1U : 0U) << 1U)); - 8002518: 683a ldr r2, [r7, #0] - 800251a: f892 2054 ldrb.w r2, [r2, #84] ; 0x54 - 800251e: 2a01 cmp r2, #1 - 8002520: d101 bne.n 8002526 - 8002522: 2202 movs r2, #2 - 8002524: e000 b.n 8002528 - 8002526: 2200 movs r2, #0 + 8002514: 683a ldr r2, [r7, #0] + 8002516: f892 2054 ldrb.w r2, [r2, #84] ; 0x54 + 800251a: 2a01 cmp r2, #1 + 800251c: d101 bne.n 8002522 + 800251e: 2202 movs r2, #2 + 8002520: e000 b.n 8002524 + 8002522: 2200 movs r2, #0 tmpreg1 |= (uint32_t)((macconf->PauseTime << 16U) | + 8002524: 4313 orrs r3, r2 + 8002526: 68fa ldr r2, [r7, #12] 8002528: 4313 orrs r3, r2 - 800252a: 68fa ldr r2, [r7, #12] - 800252c: 4313 orrs r3, r2 - 800252e: 60fb str r3, [r7, #12] + 800252a: 60fb str r3, [r7, #12] /* Write to ETHERNET MACFCR */ (heth->Instance)->MACFCR = (uint32_t)tmpreg1; - 8002530: 687b ldr r3, [r7, #4] - 8002532: 681b ldr r3, [r3, #0] - 8002534: 68fa ldr r2, [r7, #12] - 8002536: 619a str r2, [r3, #24] + 800252c: 687b ldr r3, [r7, #4] + 800252e: 681b ldr r3, [r3, #0] + 8002530: 68fa ldr r2, [r7, #12] + 8002532: 619a str r2, [r3, #24] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg1 = (heth->Instance)->MACFCR; - 8002538: 687b ldr r3, [r7, #4] - 800253a: 681b ldr r3, [r3, #0] - 800253c: 699b ldr r3, [r3, #24] - 800253e: 60fb str r3, [r7, #12] + 8002534: 687b ldr r3, [r7, #4] + 8002536: 681b ldr r3, [r3, #0] + 8002538: 699b ldr r3, [r3, #24] + 800253a: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8002540: 2001 movs r0, #1 - 8002542: f7ff f93b bl 80017bc + 800253c: 2001 movs r0, #1 + 800253e: f7ff f93b bl 80017b8 (heth->Instance)->MACFCR = tmpreg1; - 8002546: 687b ldr r3, [r7, #4] - 8002548: 681b ldr r3, [r3, #0] - 800254a: 68fa ldr r2, [r7, #12] - 800254c: 619a str r2, [r3, #24] + 8002542: 687b ldr r3, [r7, #4] + 8002544: 681b ldr r3, [r3, #0] + 8002546: 68fa ldr r2, [r7, #12] + 8002548: 619a str r2, [r3, #24] } - 800254e: bf00 nop - 8002550: 3710 adds r7, #16 - 8002552: 46bd mov sp, r7 - 8002554: bd80 pop {r7, pc} - 8002556: bf00 nop - 8002558: ff20810f .word 0xff20810f + 800254a: bf00 nop + 800254c: 3710 adds r7, #16 + 800254e: 46bd mov sp, r7 + 8002550: bd80 pop {r7, pc} + 8002552: bf00 nop + 8002554: ff20810f .word 0xff20810f -0800255c : +08002558 : static void ETH_SetDMAConfig(ETH_HandleTypeDef *heth, ETH_DMAConfigTypeDef *dmaconf) { - 800255c: b580 push {r7, lr} - 800255e: b084 sub sp, #16 - 8002560: af00 add r7, sp, #0 - 8002562: 6078 str r0, [r7, #4] - 8002564: 6039 str r1, [r7, #0] + 8002558: b580 push {r7, lr} + 800255a: b084 sub sp, #16 + 800255c: af00 add r7, sp, #0 + 800255e: 6078 str r0, [r7, #4] + 8002560: 6039 str r1, [r7, #0] uint32_t tmpreg1; /*----------------------- ETHERNET DMAOMR Configuration --------------------*/ /* Get the ETHERNET DMAOMR value */ tmpreg1 = (heth->Instance)->DMAOMR; - 8002566: 687b ldr r3, [r7, #4] - 8002568: 681b ldr r3, [r3, #0] - 800256a: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800256e: 699b ldr r3, [r3, #24] - 8002570: 60fb str r3, [r7, #12] + 8002562: 687b ldr r3, [r7, #4] + 8002564: 681b ldr r3, [r3, #0] + 8002566: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 800256a: 699b ldr r3, [r3, #24] + 800256c: 60fb str r3, [r7, #12] /* Clear xx bits */ tmpreg1 &= ETH_DMAOMR_CLEAR_MASK; - 8002572: 68fa ldr r2, [r7, #12] - 8002574: 4b3d ldr r3, [pc, #244] ; (800266c ) - 8002576: 4013 ands r3, r2 - 8002578: 60fb str r3, [r7, #12] + 800256e: 68fa ldr r2, [r7, #12] + 8002570: 4b3d ldr r3, [pc, #244] ; (8002668 ) + 8002572: 4013 ands r3, r2 + 8002574: 60fb str r3, [r7, #12] tmpreg1 |= (uint32_t)(((uint32_t)((dmaconf->DropTCPIPChecksumErrorFrame == DISABLE) ? 1U : 0U) << 26U) | - 800257a: 683b ldr r3, [r7, #0] - 800257c: 7b1b ldrb r3, [r3, #12] - 800257e: 2b00 cmp r3, #0 - 8002580: d102 bne.n 8002588 - 8002582: f04f 6280 mov.w r2, #67108864 ; 0x4000000 - 8002586: e000 b.n 800258a - 8002588: 2200 movs r2, #0 + 8002576: 683b ldr r3, [r7, #0] + 8002578: 7b1b ldrb r3, [r3, #12] + 800257a: 2b00 cmp r3, #0 + 800257c: d102 bne.n 8002584 + 800257e: f04f 6280 mov.w r2, #67108864 ; 0x4000000 + 8002582: e000 b.n 8002586 + 8002584: 2200 movs r2, #0 ((uint32_t)dmaconf->ReceiveStoreForward << 25U) | - 800258a: 683b ldr r3, [r7, #0] - 800258c: 7b5b ldrb r3, [r3, #13] - 800258e: 065b lsls r3, r3, #25 + 8002586: 683b ldr r3, [r7, #0] + 8002588: 7b5b ldrb r3, [r3, #13] + 800258a: 065b lsls r3, r3, #25 tmpreg1 |= (uint32_t)(((uint32_t)((dmaconf->DropTCPIPChecksumErrorFrame == DISABLE) ? 1U : 0U) << 26U) | - 8002590: 4313 orrs r3, r2 + 800258c: 4313 orrs r3, r2 ((uint32_t)((dmaconf->FlushRxPacket == DISABLE) ? 1U : 0U) << 20U) | - 8002592: 683a ldr r2, [r7, #0] - 8002594: 7f52 ldrb r2, [r2, #29] - 8002596: 2a00 cmp r2, #0 - 8002598: d102 bne.n 80025a0 - 800259a: f44f 1280 mov.w r2, #1048576 ; 0x100000 - 800259e: e000 b.n 80025a2 - 80025a0: 2200 movs r2, #0 + 800258e: 683a ldr r2, [r7, #0] + 8002590: 7f52 ldrb r2, [r2, #29] + 8002592: 2a00 cmp r2, #0 + 8002594: d102 bne.n 800259c + 8002596: f44f 1280 mov.w r2, #1048576 ; 0x100000 + 800259a: e000 b.n 800259e + 800259c: 2200 movs r2, #0 ((uint32_t)dmaconf->ReceiveStoreForward << 25U) | - 80025a2: 431a orrs r2, r3 + 800259e: 431a orrs r2, r3 ((uint32_t)dmaconf->TransmitStoreForward << 21U) | - 80025a4: 683b ldr r3, [r7, #0] - 80025a6: 7b9b ldrb r3, [r3, #14] - 80025a8: 055b lsls r3, r3, #21 + 80025a0: 683b ldr r3, [r7, #0] + 80025a2: 7b9b ldrb r3, [r3, #14] + 80025a4: 055b lsls r3, r3, #21 ((uint32_t)((dmaconf->FlushRxPacket == DISABLE) ? 1U : 0U) << 20U) | - 80025aa: 431a orrs r2, r3 + 80025a6: 431a orrs r2, r3 dmaconf->TransmitThresholdControl | - 80025ac: 683b ldr r3, [r7, #0] - 80025ae: 695b ldr r3, [r3, #20] + 80025a8: 683b ldr r3, [r7, #0] + 80025aa: 695b ldr r3, [r3, #20] ((uint32_t)dmaconf->TransmitStoreForward << 21U) | - 80025b0: 431a orrs r2, r3 + 80025ac: 431a orrs r2, r3 ((uint32_t)dmaconf->ForwardErrorFrames << 7U) | - 80025b2: 683b ldr r3, [r7, #0] - 80025b4: 7f1b ldrb r3, [r3, #28] - 80025b6: 01db lsls r3, r3, #7 + 80025ae: 683b ldr r3, [r7, #0] + 80025b0: 7f1b ldrb r3, [r3, #28] + 80025b2: 01db lsls r3, r3, #7 dmaconf->TransmitThresholdControl | - 80025b8: 431a orrs r2, r3 + 80025b4: 431a orrs r2, r3 ((uint32_t)dmaconf->ForwardUndersizedGoodFrames << 6U) | - 80025ba: 683b ldr r3, [r7, #0] - 80025bc: 7f9b ldrb r3, [r3, #30] - 80025be: 019b lsls r3, r3, #6 + 80025b6: 683b ldr r3, [r7, #0] + 80025b8: 7f9b ldrb r3, [r3, #30] + 80025ba: 019b lsls r3, r3, #6 ((uint32_t)dmaconf->ForwardErrorFrames << 7U) | - 80025c0: 431a orrs r2, r3 + 80025bc: 431a orrs r2, r3 dmaconf->ReceiveThresholdControl | - 80025c2: 683b ldr r3, [r7, #0] - 80025c4: 6a1b ldr r3, [r3, #32] + 80025be: 683b ldr r3, [r7, #0] + 80025c0: 6a1b ldr r3, [r3, #32] ((uint32_t)dmaconf->ForwardUndersizedGoodFrames << 6U) | - 80025c6: 431a orrs r2, r3 + 80025c2: 431a orrs r2, r3 ((uint32_t)dmaconf->SecondFrameOperate << 2U)); - 80025c8: 683b ldr r3, [r7, #0] - 80025ca: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 80025ce: 009b lsls r3, r3, #2 + 80025c4: 683b ldr r3, [r7, #0] + 80025c6: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 + 80025ca: 009b lsls r3, r3, #2 tmpreg1 |= (uint32_t)(((uint32_t)((dmaconf->DropTCPIPChecksumErrorFrame == DISABLE) ? 1U : 0U) << 26U) | + 80025cc: 4313 orrs r3, r2 + 80025ce: 68fa ldr r2, [r7, #12] 80025d0: 4313 orrs r3, r2 - 80025d2: 68fa ldr r2, [r7, #12] - 80025d4: 4313 orrs r3, r2 - 80025d6: 60fb str r3, [r7, #12] + 80025d2: 60fb str r3, [r7, #12] /* Write to ETHERNET DMAOMR */ (heth->Instance)->DMAOMR = (uint32_t)tmpreg1; - 80025d8: 687b ldr r3, [r7, #4] - 80025da: 681b ldr r3, [r3, #0] - 80025dc: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80025e0: 461a mov r2, r3 - 80025e2: 68fb ldr r3, [r7, #12] - 80025e4: 6193 str r3, [r2, #24] + 80025d4: 687b ldr r3, [r7, #4] + 80025d6: 681b ldr r3, [r3, #0] + 80025d8: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80025dc: 461a mov r2, r3 + 80025de: 68fb ldr r3, [r7, #12] + 80025e0: 6193 str r3, [r2, #24] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg1 = (heth->Instance)->DMAOMR; - 80025e6: 687b ldr r3, [r7, #4] - 80025e8: 681b ldr r3, [r3, #0] - 80025ea: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80025ee: 699b ldr r3, [r3, #24] - 80025f0: 60fb str r3, [r7, #12] + 80025e2: 687b ldr r3, [r7, #4] + 80025e4: 681b ldr r3, [r3, #0] + 80025e6: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80025ea: 699b ldr r3, [r3, #24] + 80025ec: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 80025f2: 2001 movs r0, #1 - 80025f4: f7ff f8e2 bl 80017bc + 80025ee: 2001 movs r0, #1 + 80025f0: f7ff f8e2 bl 80017b8 (heth->Instance)->DMAOMR = tmpreg1; - 80025f8: 687b ldr r3, [r7, #4] - 80025fa: 681b ldr r3, [r3, #0] - 80025fc: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8002600: 461a mov r2, r3 - 8002602: 68fb ldr r3, [r7, #12] - 8002604: 6193 str r3, [r2, #24] + 80025f4: 687b ldr r3, [r7, #4] + 80025f6: 681b ldr r3, [r3, #0] + 80025f8: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80025fc: 461a mov r2, r3 + 80025fe: 68fb ldr r3, [r7, #12] + 8002600: 6193 str r3, [r2, #24] /*----------------------- ETHERNET DMABMR Configuration --------------------*/ (heth->Instance)->DMABMR = (uint32_t)(((uint32_t)dmaconf->AddressAlignedBeats << 25U) | - 8002606: 683b ldr r3, [r7, #0] - 8002608: 791b ldrb r3, [r3, #4] - 800260a: 065a lsls r2, r3, #25 + 8002602: 683b ldr r3, [r7, #0] + 8002604: 791b ldrb r3, [r3, #4] + 8002606: 065a lsls r2, r3, #25 dmaconf->BurstMode | - 800260c: 683b ldr r3, [r7, #0] - 800260e: 689b ldr r3, [r3, #8] + 8002608: 683b ldr r3, [r7, #0] + 800260a: 689b ldr r3, [r3, #8] (heth->Instance)->DMABMR = (uint32_t)(((uint32_t)dmaconf->AddressAlignedBeats << 25U) | - 8002610: 431a orrs r2, r3 + 800260c: 431a orrs r2, r3 dmaconf->RxDMABurstLength | /* !! if 4xPBL is selected for Tx or - 8002612: 683b ldr r3, [r7, #0] - 8002614: 699b ldr r3, [r3, #24] + 800260e: 683b ldr r3, [r7, #0] + 8002610: 699b ldr r3, [r3, #24] dmaconf->BurstMode | - 8002616: 431a orrs r2, r3 + 8002612: 431a orrs r2, r3 Rx it is applied for the other */ dmaconf->TxDMABurstLength | - 8002618: 683b ldr r3, [r7, #0] - 800261a: 691b ldr r3, [r3, #16] + 8002614: 683b ldr r3, [r7, #0] + 8002616: 691b ldr r3, [r3, #16] dmaconf->RxDMABurstLength | /* !! if 4xPBL is selected for Tx or - 800261c: 431a orrs r2, r3 + 8002618: 431a orrs r2, r3 ((uint32_t)dmaconf->EnhancedDescriptorFormat << 7U) | - 800261e: 683b ldr r3, [r7, #0] - 8002620: f893 3025 ldrb.w r3, [r3, #37] ; 0x25 - 8002624: 01db lsls r3, r3, #7 + 800261a: 683b ldr r3, [r7, #0] + 800261c: f893 3025 ldrb.w r3, [r3, #37] ; 0x25 + 8002620: 01db lsls r3, r3, #7 dmaconf->TxDMABurstLength | - 8002626: 431a orrs r2, r3 + 8002622: 431a orrs r2, r3 (dmaconf->DescriptorSkipLength << 2U) | - 8002628: 683b ldr r3, [r7, #0] - 800262a: 6a9b ldr r3, [r3, #40] ; 0x28 - 800262c: 009b lsls r3, r3, #2 + 8002624: 683b ldr r3, [r7, #0] + 8002626: 6a9b ldr r3, [r3, #40] ; 0x28 + 8002628: 009b lsls r3, r3, #2 ((uint32_t)dmaconf->EnhancedDescriptorFormat << 7U) | - 800262e: 431a orrs r2, r3 + 800262a: 431a orrs r2, r3 dmaconf->DMAArbitration | - 8002630: 683b ldr r3, [r7, #0] - 8002632: 681b ldr r3, [r3, #0] + 800262c: 683b ldr r3, [r7, #0] + 800262e: 681b ldr r3, [r3, #0] (dmaconf->DescriptorSkipLength << 2U) | - 8002634: 4313 orrs r3, r2 + 8002630: 4313 orrs r3, r2 (heth->Instance)->DMABMR = (uint32_t)(((uint32_t)dmaconf->AddressAlignedBeats << 25U) | - 8002636: 687a ldr r2, [r7, #4] - 8002638: 6812 ldr r2, [r2, #0] - 800263a: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 - 800263e: f502 5280 add.w r2, r2, #4096 ; 0x1000 - 8002642: 6013 str r3, [r2, #0] + 8002632: 687a ldr r2, [r7, #4] + 8002634: 6812 ldr r2, [r2, #0] + 8002636: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 + 800263a: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 800263e: 6013 str r3, [r2, #0] ETH_DMABMR_USP); /* Enable use of separate PBL for Rx and Tx */ /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg1 = (heth->Instance)->DMABMR; - 8002644: 687b ldr r3, [r7, #4] - 8002646: 681b ldr r3, [r3, #0] - 8002648: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800264c: 681b ldr r3, [r3, #0] - 800264e: 60fb str r3, [r7, #12] + 8002640: 687b ldr r3, [r7, #4] + 8002642: 681b ldr r3, [r3, #0] + 8002644: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8002648: 681b ldr r3, [r3, #0] + 800264a: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8002650: 2001 movs r0, #1 - 8002652: f7ff f8b3 bl 80017bc + 800264c: 2001 movs r0, #1 + 800264e: f7ff f8b3 bl 80017b8 (heth->Instance)->DMABMR = tmpreg1; - 8002656: 687b ldr r3, [r7, #4] - 8002658: 681b ldr r3, [r3, #0] - 800265a: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800265e: 461a mov r2, r3 - 8002660: 68fb ldr r3, [r7, #12] - 8002662: 6013 str r3, [r2, #0] + 8002652: 687b ldr r3, [r7, #4] + 8002654: 681b ldr r3, [r3, #0] + 8002656: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 800265a: 461a mov r2, r3 + 800265c: 68fb ldr r3, [r7, #12] + 800265e: 6013 str r3, [r2, #0] } - 8002664: bf00 nop - 8002666: 3710 adds r7, #16 - 8002668: 46bd mov sp, r7 - 800266a: bd80 pop {r7, pc} - 800266c: f8de3f23 .word 0xf8de3f23 + 8002660: bf00 nop + 8002662: 3710 adds r7, #16 + 8002664: 46bd mov sp, r7 + 8002666: bd80 pop {r7, pc} + 8002668: f8de3f23 .word 0xf8de3f23 -08002670 : +0800266c : * @param heth: pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth) { - 8002670: b580 push {r7, lr} - 8002672: b0a6 sub sp, #152 ; 0x98 - 8002674: af00 add r7, sp, #0 - 8002676: 6078 str r0, [r7, #4] + 800266c: b580 push {r7, lr} + 800266e: b0a6 sub sp, #152 ; 0x98 + 8002670: af00 add r7, sp, #0 + 8002672: 6078 str r0, [r7, #4] ETH_MACConfigTypeDef macDefaultConf; ETH_DMAConfigTypeDef dmaDefaultConf; /*--------------- ETHERNET MAC registers default Configuration --------------*/ macDefaultConf.Watchdog = ENABLE; - 8002678: 2301 movs r3, #1 - 800267a: f887 3044 strb.w r3, [r7, #68] ; 0x44 + 8002674: 2301 movs r3, #1 + 8002676: f887 3044 strb.w r3, [r7, #68] ; 0x44 macDefaultConf.Jabber = ENABLE; - 800267e: 2301 movs r3, #1 - 8002680: f887 3045 strb.w r3, [r7, #69] ; 0x45 + 800267a: 2301 movs r3, #1 + 800267c: f887 3045 strb.w r3, [r7, #69] ; 0x45 macDefaultConf.InterPacketGapVal = ETH_INTERFRAMEGAP_96BIT; - 8002684: 2300 movs r3, #0 - 8002686: 63fb str r3, [r7, #60] ; 0x3c + 8002680: 2300 movs r3, #0 + 8002682: 63fb str r3, [r7, #60] ; 0x3c macDefaultConf.CarrierSenseDuringTransmit = DISABLE; - 8002688: 2300 movs r3, #0 - 800268a: f887 3053 strb.w r3, [r7, #83] ; 0x53 + 8002684: 2300 movs r3, #0 + 8002686: f887 3053 strb.w r3, [r7, #83] ; 0x53 macDefaultConf.ReceiveOwn = ENABLE; - 800268e: 2301 movs r3, #1 - 8002690: f887 3052 strb.w r3, [r7, #82] ; 0x52 + 800268a: 2301 movs r3, #1 + 800268c: f887 3052 strb.w r3, [r7, #82] ; 0x52 macDefaultConf.LoopbackMode = DISABLE; - 8002694: 2300 movs r3, #0 - 8002696: f887 3050 strb.w r3, [r7, #80] ; 0x50 + 8002690: 2300 movs r3, #0 + 8002692: f887 3050 strb.w r3, [r7, #80] ; 0x50 macDefaultConf.ChecksumOffload = ENABLE; - 800269a: 2301 movs r3, #1 - 800269c: f887 3038 strb.w r3, [r7, #56] ; 0x38 + 8002696: 2301 movs r3, #1 + 8002698: f887 3038 strb.w r3, [r7, #56] ; 0x38 macDefaultConf.RetryTransmission = DISABLE; - 80026a0: 2300 movs r3, #0 - 80026a2: f887 3054 strb.w r3, [r7, #84] ; 0x54 + 800269c: 2300 movs r3, #0 + 800269e: f887 3054 strb.w r3, [r7, #84] ; 0x54 macDefaultConf.AutomaticPadCRCStrip = DISABLE; - 80026a6: 2300 movs r3, #0 - 80026a8: f887 3043 strb.w r3, [r7, #67] ; 0x43 + 80026a2: 2300 movs r3, #0 + 80026a4: f887 3043 strb.w r3, [r7, #67] ; 0x43 macDefaultConf.BackOffLimit = ETH_BACKOFFLIMIT_10; - 80026ac: 2300 movs r3, #0 - 80026ae: 65bb str r3, [r7, #88] ; 0x58 + 80026a8: 2300 movs r3, #0 + 80026aa: 65bb str r3, [r7, #88] ; 0x58 macDefaultConf.DeferralCheck = DISABLE; - 80026b0: 2300 movs r3, #0 - 80026b2: f887 305c strb.w r3, [r7, #92] ; 0x5c + 80026ac: 2300 movs r3, #0 + 80026ae: f887 305c strb.w r3, [r7, #92] ; 0x5c macDefaultConf.PauseTime = 0x0U; - 80026b6: 2300 movs r3, #0 - 80026b8: 67fb str r3, [r7, #124] ; 0x7c + 80026b2: 2300 movs r3, #0 + 80026b4: 67fb str r3, [r7, #124] ; 0x7c macDefaultConf.ZeroQuantaPause = DISABLE; - 80026ba: 2300 movs r3, #0 - 80026bc: f887 3080 strb.w r3, [r7, #128] ; 0x80 + 80026b6: 2300 movs r3, #0 + 80026b8: f887 3080 strb.w r3, [r7, #128] ; 0x80 macDefaultConf.PauseLowThreshold = ETH_PAUSELOWTHRESHOLD_MINUS4; - 80026c0: 2300 movs r3, #0 - 80026c2: f8c7 3084 str.w r3, [r7, #132] ; 0x84 + 80026bc: 2300 movs r3, #0 + 80026be: f8c7 3084 str.w r3, [r7, #132] ; 0x84 macDefaultConf.ReceiveFlowControl = DISABLE; - 80026c6: 2300 movs r3, #0 - 80026c8: f887 308a strb.w r3, [r7, #138] ; 0x8a + 80026c2: 2300 movs r3, #0 + 80026c4: f887 308a strb.w r3, [r7, #138] ; 0x8a macDefaultConf.TransmitFlowControl = DISABLE; - 80026cc: 2300 movs r3, #0 - 80026ce: f887 3088 strb.w r3, [r7, #136] ; 0x88 + 80026c8: 2300 movs r3, #0 + 80026ca: f887 3088 strb.w r3, [r7, #136] ; 0x88 macDefaultConf.Speed = ETH_SPEED_100M; - 80026d2: f44f 4380 mov.w r3, #16384 ; 0x4000 - 80026d6: 64bb str r3, [r7, #72] ; 0x48 + 80026ce: f44f 4380 mov.w r3, #16384 ; 0x4000 + 80026d2: 64bb str r3, [r7, #72] ; 0x48 macDefaultConf.DuplexMode = ETH_FULLDUPLEX_MODE; - 80026d8: f44f 6300 mov.w r3, #2048 ; 0x800 - 80026dc: 64fb str r3, [r7, #76] ; 0x4c + 80026d4: f44f 6300 mov.w r3, #2048 ; 0x800 + 80026d8: 64fb str r3, [r7, #76] ; 0x4c macDefaultConf.UnicastPausePacketDetect = DISABLE; - 80026de: 2300 movs r3, #0 - 80026e0: f887 3089 strb.w r3, [r7, #137] ; 0x89 + 80026da: 2300 movs r3, #0 + 80026dc: f887 3089 strb.w r3, [r7, #137] ; 0x89 /* MAC default configuration */ ETH_SetMACConfig(heth, &macDefaultConf); - 80026e4: f107 0334 add.w r3, r7, #52 ; 0x34 - 80026e8: 4619 mov r1, r3 - 80026ea: 6878 ldr r0, [r7, #4] - 80026ec: f7ff fe86 bl 80023fc + 80026e0: f107 0334 add.w r3, r7, #52 ; 0x34 + 80026e4: 4619 mov r1, r3 + 80026e6: 6878 ldr r0, [r7, #4] + 80026e8: f7ff fe86 bl 80023f8 /*--------------- ETHERNET DMA registers default Configuration --------------*/ dmaDefaultConf.DropTCPIPChecksumErrorFrame = ENABLE; - 80026f0: 2301 movs r3, #1 - 80026f2: 753b strb r3, [r7, #20] + 80026ec: 2301 movs r3, #1 + 80026ee: 753b strb r3, [r7, #20] dmaDefaultConf.ReceiveStoreForward = ENABLE; - 80026f4: 2301 movs r3, #1 - 80026f6: 757b strb r3, [r7, #21] + 80026f0: 2301 movs r3, #1 + 80026f2: 757b strb r3, [r7, #21] dmaDefaultConf.FlushRxPacket = ENABLE; - 80026f8: 2301 movs r3, #1 - 80026fa: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 80026f4: 2301 movs r3, #1 + 80026f6: f887 3025 strb.w r3, [r7, #37] ; 0x25 dmaDefaultConf.TransmitStoreForward = ENABLE; - 80026fe: 2301 movs r3, #1 - 8002700: 75bb strb r3, [r7, #22] + 80026fa: 2301 movs r3, #1 + 80026fc: 75bb strb r3, [r7, #22] dmaDefaultConf.TransmitThresholdControl = ETH_TRANSMITTHRESHOLDCONTROL_64BYTES; - 8002702: 2300 movs r3, #0 - 8002704: 61fb str r3, [r7, #28] + 80026fe: 2300 movs r3, #0 + 8002700: 61fb str r3, [r7, #28] dmaDefaultConf.ForwardErrorFrames = DISABLE; - 8002706: 2300 movs r3, #0 - 8002708: f887 3024 strb.w r3, [r7, #36] ; 0x24 + 8002702: 2300 movs r3, #0 + 8002704: f887 3024 strb.w r3, [r7, #36] ; 0x24 dmaDefaultConf.ForwardUndersizedGoodFrames = DISABLE; - 800270c: 2300 movs r3, #0 - 800270e: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 8002708: 2300 movs r3, #0 + 800270a: f887 3026 strb.w r3, [r7, #38] ; 0x26 dmaDefaultConf.ReceiveThresholdControl = ETH_RECEIVEDTHRESHOLDCONTROL_64BYTES; - 8002712: 2300 movs r3, #0 - 8002714: 62bb str r3, [r7, #40] ; 0x28 + 800270e: 2300 movs r3, #0 + 8002710: 62bb str r3, [r7, #40] ; 0x28 dmaDefaultConf.SecondFrameOperate = ENABLE; - 8002716: 2301 movs r3, #1 - 8002718: f887 302c strb.w r3, [r7, #44] ; 0x2c + 8002712: 2301 movs r3, #1 + 8002714: f887 302c strb.w r3, [r7, #44] ; 0x2c dmaDefaultConf.AddressAlignedBeats = ENABLE; - 800271c: 2301 movs r3, #1 - 800271e: 733b strb r3, [r7, #12] + 8002718: 2301 movs r3, #1 + 800271a: 733b strb r3, [r7, #12] dmaDefaultConf.BurstMode = ETH_BURSTLENGTH_FIXED; - 8002720: f44f 3380 mov.w r3, #65536 ; 0x10000 - 8002724: 613b str r3, [r7, #16] + 800271c: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8002720: 613b str r3, [r7, #16] dmaDefaultConf.RxDMABurstLength = ETH_RXDMABURSTLENGTH_32BEAT; - 8002726: f44f 0380 mov.w r3, #4194304 ; 0x400000 - 800272a: 623b str r3, [r7, #32] + 8002722: f44f 0380 mov.w r3, #4194304 ; 0x400000 + 8002726: 623b str r3, [r7, #32] dmaDefaultConf.TxDMABurstLength = ETH_TXDMABURSTLENGTH_32BEAT; - 800272c: f44f 5300 mov.w r3, #8192 ; 0x2000 - 8002730: 61bb str r3, [r7, #24] + 8002728: f44f 5300 mov.w r3, #8192 ; 0x2000 + 800272c: 61bb str r3, [r7, #24] dmaDefaultConf.EnhancedDescriptorFormat = ENABLE; - 8002732: 2301 movs r3, #1 - 8002734: f887 302d strb.w r3, [r7, #45] ; 0x2d + 800272e: 2301 movs r3, #1 + 8002730: f887 302d strb.w r3, [r7, #45] ; 0x2d dmaDefaultConf.DescriptorSkipLength = 0x0U; - 8002738: 2300 movs r3, #0 - 800273a: 633b str r3, [r7, #48] ; 0x30 + 8002734: 2300 movs r3, #0 + 8002736: 633b str r3, [r7, #48] ; 0x30 dmaDefaultConf.DMAArbitration = ETH_DMAARBITRATION_ROUNDROBIN_RXTX_1_1; - 800273c: 2300 movs r3, #0 - 800273e: 60bb str r3, [r7, #8] + 8002738: 2300 movs r3, #0 + 800273a: 60bb str r3, [r7, #8] /* DMA default configuration */ ETH_SetDMAConfig(heth, &dmaDefaultConf); - 8002740: f107 0308 add.w r3, r7, #8 - 8002744: 4619 mov r1, r3 - 8002746: 6878 ldr r0, [r7, #4] - 8002748: f7ff ff08 bl 800255c + 800273c: f107 0308 add.w r3, r7, #8 + 8002740: 4619 mov r1, r3 + 8002742: 6878 ldr r0, [r7, #4] + 8002744: f7ff ff08 bl 8002558 } - 800274c: bf00 nop - 800274e: 3798 adds r7, #152 ; 0x98 - 8002750: 46bd mov sp, r7 - 8002752: bd80 pop {r7, pc} + 8002748: bf00 nop + 800274a: 3798 adds r7, #152 ; 0x98 + 800274c: 46bd mov sp, r7 + 800274e: bd80 pop {r7, pc} -08002754 : +08002750 : * @arg ETH_MAC_Address3: MAC Address3 * @param Addr Pointer to MAC address buffer data (6 bytes) * @retval HAL status */ static void ETH_MACAddressConfig(ETH_HandleTypeDef *heth, uint32_t MacAddr, uint8_t *Addr) { - 8002754: b480 push {r7} - 8002756: b087 sub sp, #28 - 8002758: af00 add r7, sp, #0 - 800275a: 60f8 str r0, [r7, #12] - 800275c: 60b9 str r1, [r7, #8] - 800275e: 607a str r2, [r7, #4] + 8002750: b480 push {r7} + 8002752: b087 sub sp, #28 + 8002754: af00 add r7, sp, #0 + 8002756: 60f8 str r0, [r7, #12] + 8002758: 60b9 str r1, [r7, #8] + 800275a: 607a str r2, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(heth); /* Calculate the selected MAC address high register */ tmpreg1 = ((uint32_t)Addr[5U] << 8U) | (uint32_t)Addr[4U]; - 8002760: 687b ldr r3, [r7, #4] - 8002762: 3305 adds r3, #5 - 8002764: 781b ldrb r3, [r3, #0] - 8002766: 021b lsls r3, r3, #8 - 8002768: 687a ldr r2, [r7, #4] - 800276a: 3204 adds r2, #4 - 800276c: 7812 ldrb r2, [r2, #0] - 800276e: 4313 orrs r3, r2 - 8002770: 617b str r3, [r7, #20] + 800275c: 687b ldr r3, [r7, #4] + 800275e: 3305 adds r3, #5 + 8002760: 781b ldrb r3, [r3, #0] + 8002762: 021b lsls r3, r3, #8 + 8002764: 687a ldr r2, [r7, #4] + 8002766: 3204 adds r2, #4 + 8002768: 7812 ldrb r2, [r2, #0] + 800276a: 4313 orrs r3, r2 + 800276c: 617b str r3, [r7, #20] /* Load the selected MAC address high register */ (*(__IO uint32_t *)((uint32_t)(ETH_MAC_ADDR_HBASE + MacAddr))) = tmpreg1; - 8002772: 68ba ldr r2, [r7, #8] - 8002774: 4b11 ldr r3, [pc, #68] ; (80027bc ) - 8002776: 4413 add r3, r2 - 8002778: 461a mov r2, r3 - 800277a: 697b ldr r3, [r7, #20] - 800277c: 6013 str r3, [r2, #0] + 800276e: 68ba ldr r2, [r7, #8] + 8002770: 4b11 ldr r3, [pc, #68] ; (80027b8 ) + 8002772: 4413 add r3, r2 + 8002774: 461a mov r2, r3 + 8002776: 697b ldr r3, [r7, #20] + 8002778: 6013 str r3, [r2, #0] /* Calculate the selected MAC address low register */ tmpreg1 = ((uint32_t)Addr[3U] << 24U) | ((uint32_t)Addr[2U] << 16U) | ((uint32_t)Addr[1U] << 8U) | Addr[0U]; - 800277e: 687b ldr r3, [r7, #4] - 8002780: 3303 adds r3, #3 - 8002782: 781b ldrb r3, [r3, #0] - 8002784: 061a lsls r2, r3, #24 - 8002786: 687b ldr r3, [r7, #4] - 8002788: 3302 adds r3, #2 - 800278a: 781b ldrb r3, [r3, #0] - 800278c: 041b lsls r3, r3, #16 - 800278e: 431a orrs r2, r3 - 8002790: 687b ldr r3, [r7, #4] - 8002792: 3301 adds r3, #1 - 8002794: 781b ldrb r3, [r3, #0] - 8002796: 021b lsls r3, r3, #8 - 8002798: 4313 orrs r3, r2 - 800279a: 687a ldr r2, [r7, #4] - 800279c: 7812 ldrb r2, [r2, #0] - 800279e: 4313 orrs r3, r2 - 80027a0: 617b str r3, [r7, #20] + 800277a: 687b ldr r3, [r7, #4] + 800277c: 3303 adds r3, #3 + 800277e: 781b ldrb r3, [r3, #0] + 8002780: 061a lsls r2, r3, #24 + 8002782: 687b ldr r3, [r7, #4] + 8002784: 3302 adds r3, #2 + 8002786: 781b ldrb r3, [r3, #0] + 8002788: 041b lsls r3, r3, #16 + 800278a: 431a orrs r2, r3 + 800278c: 687b ldr r3, [r7, #4] + 800278e: 3301 adds r3, #1 + 8002790: 781b ldrb r3, [r3, #0] + 8002792: 021b lsls r3, r3, #8 + 8002794: 4313 orrs r3, r2 + 8002796: 687a ldr r2, [r7, #4] + 8002798: 7812 ldrb r2, [r2, #0] + 800279a: 4313 orrs r3, r2 + 800279c: 617b str r3, [r7, #20] /* Load the selected MAC address low register */ (*(__IO uint32_t *)((uint32_t)(ETH_MAC_ADDR_LBASE + MacAddr))) = tmpreg1; - 80027a2: 68ba ldr r2, [r7, #8] - 80027a4: 4b06 ldr r3, [pc, #24] ; (80027c0 ) - 80027a6: 4413 add r3, r2 - 80027a8: 461a mov r2, r3 - 80027aa: 697b ldr r3, [r7, #20] - 80027ac: 6013 str r3, [r2, #0] + 800279e: 68ba ldr r2, [r7, #8] + 80027a0: 4b06 ldr r3, [pc, #24] ; (80027bc ) + 80027a2: 4413 add r3, r2 + 80027a4: 461a mov r2, r3 + 80027a6: 697b ldr r3, [r7, #20] + 80027a8: 6013 str r3, [r2, #0] } - 80027ae: bf00 nop - 80027b0: 371c adds r7, #28 - 80027b2: 46bd mov sp, r7 - 80027b4: f85d 7b04 ldr.w r7, [sp], #4 - 80027b8: 4770 bx lr - 80027ba: bf00 nop - 80027bc: 40028040 .word 0x40028040 - 80027c0: 40028044 .word 0x40028044 + 80027aa: bf00 nop + 80027ac: 371c adds r7, #28 + 80027ae: 46bd mov sp, r7 + 80027b0: f85d 7b04 ldr.w r7, [sp], #4 + 80027b4: 4770 bx lr + 80027b6: bf00 nop + 80027b8: 40028040 .word 0x40028040 + 80027bc: 40028044 .word 0x40028044 -080027c4 : +080027c0 : * @param heth: pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_DMATxDescListInit(ETH_HandleTypeDef *heth) { - 80027c4: b480 push {r7} - 80027c6: b085 sub sp, #20 - 80027c8: af00 add r7, sp, #0 - 80027ca: 6078 str r0, [r7, #4] + 80027c0: b480 push {r7} + 80027c2: b085 sub sp, #20 + 80027c4: af00 add r7, sp, #0 + 80027c6: 6078 str r0, [r7, #4] ETH_DMADescTypeDef *dmatxdesc; uint32_t i; /* Fill each DMATxDesc descriptor with the right values */ for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++) - 80027cc: 2300 movs r3, #0 - 80027ce: 60fb str r3, [r7, #12] - 80027d0: e03e b.n 8002850 + 80027c8: 2300 movs r3, #0 + 80027ca: 60fb str r3, [r7, #12] + 80027cc: e03e b.n 800284c { dmatxdesc = heth->Init.TxDesc + i; - 80027d2: 687b ldr r3, [r7, #4] - 80027d4: 68d9 ldr r1, [r3, #12] - 80027d6: 68fa ldr r2, [r7, #12] - 80027d8: 4613 mov r3, r2 - 80027da: 009b lsls r3, r3, #2 - 80027dc: 4413 add r3, r2 - 80027de: 00db lsls r3, r3, #3 - 80027e0: 440b add r3, r1 - 80027e2: 60bb str r3, [r7, #8] + 80027ce: 687b ldr r3, [r7, #4] + 80027d0: 68d9 ldr r1, [r3, #12] + 80027d2: 68fa ldr r2, [r7, #12] + 80027d4: 4613 mov r3, r2 + 80027d6: 009b lsls r3, r3, #2 + 80027d8: 4413 add r3, r2 + 80027da: 00db lsls r3, r3, #3 + 80027dc: 440b add r3, r1 + 80027de: 60bb str r3, [r7, #8] WRITE_REG(dmatxdesc->DESC0, 0x0); - 80027e4: 68bb ldr r3, [r7, #8] - 80027e6: 2200 movs r2, #0 - 80027e8: 601a str r2, [r3, #0] + 80027e0: 68bb ldr r3, [r7, #8] + 80027e2: 2200 movs r2, #0 + 80027e4: 601a str r2, [r3, #0] WRITE_REG(dmatxdesc->DESC1, 0x0); - 80027ea: 68bb ldr r3, [r7, #8] - 80027ec: 2200 movs r2, #0 - 80027ee: 605a str r2, [r3, #4] + 80027e6: 68bb ldr r3, [r7, #8] + 80027e8: 2200 movs r2, #0 + 80027ea: 605a str r2, [r3, #4] WRITE_REG(dmatxdesc->DESC2, 0x0); - 80027f0: 68bb ldr r3, [r7, #8] - 80027f2: 2200 movs r2, #0 - 80027f4: 609a str r2, [r3, #8] + 80027ec: 68bb ldr r3, [r7, #8] + 80027ee: 2200 movs r2, #0 + 80027f0: 609a str r2, [r3, #8] WRITE_REG(dmatxdesc->DESC3, 0x0); - 80027f6: 68bb ldr r3, [r7, #8] - 80027f8: 2200 movs r2, #0 - 80027fa: 60da str r2, [r3, #12] + 80027f2: 68bb ldr r3, [r7, #8] + 80027f4: 2200 movs r2, #0 + 80027f6: 60da str r2, [r3, #12] WRITE_REG(heth->TxDescList.TxDesc[i], (uint32_t)dmatxdesc); - 80027fc: 68b9 ldr r1, [r7, #8] - 80027fe: 687b ldr r3, [r7, #4] - 8002800: 68fa ldr r2, [r7, #12] - 8002802: 3206 adds r2, #6 - 8002804: f843 1022 str.w r1, [r3, r2, lsl #2] + 80027f8: 68b9 ldr r1, [r7, #8] + 80027fa: 687b ldr r3, [r7, #4] + 80027fc: 68fa ldr r2, [r7, #12] + 80027fe: 3206 adds r2, #6 + 8002800: f843 1022 str.w r1, [r3, r2, lsl #2] /* Set Second Address Chained bit */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_TCH); - 8002808: 68bb ldr r3, [r7, #8] - 800280a: 681b ldr r3, [r3, #0] - 800280c: f443 1280 orr.w r2, r3, #1048576 ; 0x100000 - 8002810: 68bb ldr r3, [r7, #8] - 8002812: 601a str r2, [r3, #0] + 8002804: 68bb ldr r3, [r7, #8] + 8002806: 681b ldr r3, [r3, #0] + 8002808: f443 1280 orr.w r2, r3, #1048576 ; 0x100000 + 800280c: 68bb ldr r3, [r7, #8] + 800280e: 601a str r2, [r3, #0] if (i < ((uint32_t)ETH_TX_DESC_CNT - 1U)) - 8002814: 68fb ldr r3, [r7, #12] - 8002816: 2b02 cmp r3, #2 - 8002818: d80c bhi.n 8002834 + 8002810: 68fb ldr r3, [r7, #12] + 8002812: 2b02 cmp r3, #2 + 8002814: d80c bhi.n 8002830 { WRITE_REG(dmatxdesc->DESC3, (uint32_t)(heth->Init.TxDesc + i + 1U)); - 800281a: 687b ldr r3, [r7, #4] - 800281c: 68d9 ldr r1, [r3, #12] - 800281e: 68fb ldr r3, [r7, #12] - 8002820: 1c5a adds r2, r3, #1 - 8002822: 4613 mov r3, r2 - 8002824: 009b lsls r3, r3, #2 - 8002826: 4413 add r3, r2 - 8002828: 00db lsls r3, r3, #3 - 800282a: 440b add r3, r1 - 800282c: 461a mov r2, r3 - 800282e: 68bb ldr r3, [r7, #8] - 8002830: 60da str r2, [r3, #12] - 8002832: e004 b.n 800283e + 8002816: 687b ldr r3, [r7, #4] + 8002818: 68d9 ldr r1, [r3, #12] + 800281a: 68fb ldr r3, [r7, #12] + 800281c: 1c5a adds r2, r3, #1 + 800281e: 4613 mov r3, r2 + 8002820: 009b lsls r3, r3, #2 + 8002822: 4413 add r3, r2 + 8002824: 00db lsls r3, r3, #3 + 8002826: 440b add r3, r1 + 8002828: 461a mov r2, r3 + 800282a: 68bb ldr r3, [r7, #8] + 800282c: 60da str r2, [r3, #12] + 800282e: e004 b.n 800283a } else { WRITE_REG(dmatxdesc->DESC3, (uint32_t)(heth->Init.TxDesc)); - 8002834: 687b ldr r3, [r7, #4] - 8002836: 68db ldr r3, [r3, #12] - 8002838: 461a mov r2, r3 - 800283a: 68bb ldr r3, [r7, #8] - 800283c: 60da str r2, [r3, #12] + 8002830: 687b ldr r3, [r7, #4] + 8002832: 68db ldr r3, [r3, #12] + 8002834: 461a mov r2, r3 + 8002836: 68bb ldr r3, [r7, #8] + 8002838: 60da str r2, [r3, #12] } /* Set the DMA Tx descriptors checksum insertion */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_CHECKSUMTCPUDPICMPFULL); - 800283e: 68bb ldr r3, [r7, #8] - 8002840: 681b ldr r3, [r3, #0] - 8002842: f443 0240 orr.w r2, r3, #12582912 ; 0xc00000 - 8002846: 68bb ldr r3, [r7, #8] - 8002848: 601a str r2, [r3, #0] + 800283a: 68bb ldr r3, [r7, #8] + 800283c: 681b ldr r3, [r3, #0] + 800283e: f443 0240 orr.w r2, r3, #12582912 ; 0xc00000 + 8002842: 68bb ldr r3, [r7, #8] + 8002844: 601a str r2, [r3, #0] for (i = 0; i < (uint32_t)ETH_TX_DESC_CNT; i++) - 800284a: 68fb ldr r3, [r7, #12] - 800284c: 3301 adds r3, #1 - 800284e: 60fb str r3, [r7, #12] - 8002850: 68fb ldr r3, [r7, #12] - 8002852: 2b03 cmp r3, #3 - 8002854: d9bd bls.n 80027d2 + 8002846: 68fb ldr r3, [r7, #12] + 8002848: 3301 adds r3, #1 + 800284a: 60fb str r3, [r7, #12] + 800284c: 68fb ldr r3, [r7, #12] + 800284e: 2b03 cmp r3, #3 + 8002850: d9bd bls.n 80027ce } heth->TxDescList.CurTxDesc = 0; - 8002856: 687b ldr r3, [r7, #4] - 8002858: 2200 movs r2, #0 - 800285a: 629a str r2, [r3, #40] ; 0x28 + 8002852: 687b ldr r3, [r7, #4] + 8002854: 2200 movs r2, #0 + 8002856: 629a str r2, [r3, #40] ; 0x28 /* Set Transmit Descriptor List Address */ WRITE_REG(heth->Instance->DMATDLAR, (uint32_t) heth->Init.TxDesc); + 8002858: 687b ldr r3, [r7, #4] + 800285a: 68da ldr r2, [r3, #12] 800285c: 687b ldr r3, [r7, #4] - 800285e: 68da ldr r2, [r3, #12] - 8002860: 687b ldr r3, [r7, #4] - 8002862: 681b ldr r3, [r3, #0] - 8002864: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8002868: 611a str r2, [r3, #16] + 800285e: 681b ldr r3, [r3, #0] + 8002860: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8002864: 611a str r2, [r3, #16] } - 800286a: bf00 nop - 800286c: 3714 adds r7, #20 - 800286e: 46bd mov sp, r7 - 8002870: f85d 7b04 ldr.w r7, [sp], #4 - 8002874: 4770 bx lr + 8002866: bf00 nop + 8002868: 3714 adds r7, #20 + 800286a: 46bd mov sp, r7 + 800286c: f85d 7b04 ldr.w r7, [sp], #4 + 8002870: 4770 bx lr -08002876 : +08002872 : * @param heth: pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_DMARxDescListInit(ETH_HandleTypeDef *heth) { - 8002876: b480 push {r7} - 8002878: b085 sub sp, #20 - 800287a: af00 add r7, sp, #0 - 800287c: 6078 str r0, [r7, #4] + 8002872: b480 push {r7} + 8002874: b085 sub sp, #20 + 8002876: af00 add r7, sp, #0 + 8002878: 6078 str r0, [r7, #4] ETH_DMADescTypeDef *dmarxdesc; uint32_t i; for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++) - 800287e: 2300 movs r3, #0 - 8002880: 60fb str r3, [r7, #12] - 8002882: e046 b.n 8002912 + 800287a: 2300 movs r3, #0 + 800287c: 60fb str r3, [r7, #12] + 800287e: e046 b.n 800290e { dmarxdesc = heth->Init.RxDesc + i; - 8002884: 687b ldr r3, [r7, #4] - 8002886: 6919 ldr r1, [r3, #16] - 8002888: 68fa ldr r2, [r7, #12] - 800288a: 4613 mov r3, r2 - 800288c: 009b lsls r3, r3, #2 - 800288e: 4413 add r3, r2 - 8002890: 00db lsls r3, r3, #3 - 8002892: 440b add r3, r1 - 8002894: 60bb str r3, [r7, #8] + 8002880: 687b ldr r3, [r7, #4] + 8002882: 6919 ldr r1, [r3, #16] + 8002884: 68fa ldr r2, [r7, #12] + 8002886: 4613 mov r3, r2 + 8002888: 009b lsls r3, r3, #2 + 800288a: 4413 add r3, r2 + 800288c: 00db lsls r3, r3, #3 + 800288e: 440b add r3, r1 + 8002890: 60bb str r3, [r7, #8] WRITE_REG(dmarxdesc->DESC0, 0x0); - 8002896: 68bb ldr r3, [r7, #8] - 8002898: 2200 movs r2, #0 - 800289a: 601a str r2, [r3, #0] + 8002892: 68bb ldr r3, [r7, #8] + 8002894: 2200 movs r2, #0 + 8002896: 601a str r2, [r3, #0] WRITE_REG(dmarxdesc->DESC1, 0x0); - 800289c: 68bb ldr r3, [r7, #8] - 800289e: 2200 movs r2, #0 - 80028a0: 605a str r2, [r3, #4] + 8002898: 68bb ldr r3, [r7, #8] + 800289a: 2200 movs r2, #0 + 800289c: 605a str r2, [r3, #4] WRITE_REG(dmarxdesc->DESC2, 0x0); - 80028a2: 68bb ldr r3, [r7, #8] - 80028a4: 2200 movs r2, #0 - 80028a6: 609a str r2, [r3, #8] + 800289e: 68bb ldr r3, [r7, #8] + 80028a0: 2200 movs r2, #0 + 80028a2: 609a str r2, [r3, #8] WRITE_REG(dmarxdesc->DESC3, 0x0); - 80028a8: 68bb ldr r3, [r7, #8] - 80028aa: 2200 movs r2, #0 - 80028ac: 60da str r2, [r3, #12] + 80028a4: 68bb ldr r3, [r7, #8] + 80028a6: 2200 movs r2, #0 + 80028a8: 60da str r2, [r3, #12] WRITE_REG(dmarxdesc->BackupAddr0, 0x0); - 80028ae: 68bb ldr r3, [r7, #8] - 80028b0: 2200 movs r2, #0 - 80028b2: 621a str r2, [r3, #32] + 80028aa: 68bb ldr r3, [r7, #8] + 80028ac: 2200 movs r2, #0 + 80028ae: 621a str r2, [r3, #32] WRITE_REG(dmarxdesc->BackupAddr1, 0x0); - 80028b4: 68bb ldr r3, [r7, #8] - 80028b6: 2200 movs r2, #0 - 80028b8: 625a str r2, [r3, #36] ; 0x24 + 80028b0: 68bb ldr r3, [r7, #8] + 80028b2: 2200 movs r2, #0 + 80028b4: 625a str r2, [r3, #36] ; 0x24 /* Set Own bit of the Rx descriptor Status */ dmarxdesc->DESC0 = ETH_DMARXDESC_OWN; - 80028ba: 68bb ldr r3, [r7, #8] - 80028bc: f04f 4200 mov.w r2, #2147483648 ; 0x80000000 - 80028c0: 601a str r2, [r3, #0] + 80028b6: 68bb ldr r3, [r7, #8] + 80028b8: f04f 4200 mov.w r2, #2147483648 ; 0x80000000 + 80028bc: 601a str r2, [r3, #0] /* Set Buffer1 size and Second Address Chained bit */ dmarxdesc->DESC1 = ETH_DMARXDESC_RCH | ETH_RX_BUF_SIZE; - 80028c2: 68bb ldr r3, [r7, #8] - 80028c4: f244 52f8 movw r2, #17912 ; 0x45f8 - 80028c8: 605a str r2, [r3, #4] + 80028be: 68bb ldr r3, [r7, #8] + 80028c0: f244 52f8 movw r2, #17912 ; 0x45f8 + 80028c4: 605a str r2, [r3, #4] /* Enable Ethernet DMA Rx Descriptor interrupt */ dmarxdesc->DESC1 &= ~ETH_DMARXDESC_DIC; - 80028ca: 68bb ldr r3, [r7, #8] - 80028cc: 685b ldr r3, [r3, #4] - 80028ce: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 - 80028d2: 68bb ldr r3, [r7, #8] - 80028d4: 605a str r2, [r3, #4] + 80028c6: 68bb ldr r3, [r7, #8] + 80028c8: 685b ldr r3, [r3, #4] + 80028ca: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 + 80028ce: 68bb ldr r3, [r7, #8] + 80028d0: 605a str r2, [r3, #4] /* Set Rx descritors addresses */ WRITE_REG(heth->RxDescList.RxDesc[i], (uint32_t)dmarxdesc); - 80028d6: 68b9 ldr r1, [r7, #8] - 80028d8: 687b ldr r3, [r7, #4] - 80028da: 68fa ldr r2, [r7, #12] - 80028dc: 3212 adds r2, #18 - 80028de: f843 1022 str.w r1, [r3, r2, lsl #2] + 80028d2: 68b9 ldr r1, [r7, #8] + 80028d4: 687b ldr r3, [r7, #4] + 80028d6: 68fa ldr r2, [r7, #12] + 80028d8: 3212 adds r2, #18 + 80028da: f843 1022 str.w r1, [r3, r2, lsl #2] if (i < ((uint32_t)ETH_RX_DESC_CNT - 1U)) - 80028e2: 68fb ldr r3, [r7, #12] - 80028e4: 2b02 cmp r3, #2 - 80028e6: d80c bhi.n 8002902 + 80028de: 68fb ldr r3, [r7, #12] + 80028e0: 2b02 cmp r3, #2 + 80028e2: d80c bhi.n 80028fe { WRITE_REG(dmarxdesc->DESC3, (uint32_t)(heth->Init.RxDesc + i + 1U)); - 80028e8: 687b ldr r3, [r7, #4] - 80028ea: 6919 ldr r1, [r3, #16] - 80028ec: 68fb ldr r3, [r7, #12] - 80028ee: 1c5a adds r2, r3, #1 - 80028f0: 4613 mov r3, r2 - 80028f2: 009b lsls r3, r3, #2 - 80028f4: 4413 add r3, r2 - 80028f6: 00db lsls r3, r3, #3 - 80028f8: 440b add r3, r1 - 80028fa: 461a mov r2, r3 - 80028fc: 68bb ldr r3, [r7, #8] - 80028fe: 60da str r2, [r3, #12] - 8002900: e004 b.n 800290c + 80028e4: 687b ldr r3, [r7, #4] + 80028e6: 6919 ldr r1, [r3, #16] + 80028e8: 68fb ldr r3, [r7, #12] + 80028ea: 1c5a adds r2, r3, #1 + 80028ec: 4613 mov r3, r2 + 80028ee: 009b lsls r3, r3, #2 + 80028f0: 4413 add r3, r2 + 80028f2: 00db lsls r3, r3, #3 + 80028f4: 440b add r3, r1 + 80028f6: 461a mov r2, r3 + 80028f8: 68bb ldr r3, [r7, #8] + 80028fa: 60da str r2, [r3, #12] + 80028fc: e004 b.n 8002908 } else { WRITE_REG(dmarxdesc->DESC3, (uint32_t)(heth->Init.RxDesc)); - 8002902: 687b ldr r3, [r7, #4] - 8002904: 691b ldr r3, [r3, #16] - 8002906: 461a mov r2, r3 - 8002908: 68bb ldr r3, [r7, #8] - 800290a: 60da str r2, [r3, #12] + 80028fe: 687b ldr r3, [r7, #4] + 8002900: 691b ldr r3, [r3, #16] + 8002902: 461a mov r2, r3 + 8002904: 68bb ldr r3, [r7, #8] + 8002906: 60da str r2, [r3, #12] for (i = 0; i < (uint32_t)ETH_RX_DESC_CNT; i++) - 800290c: 68fb ldr r3, [r7, #12] - 800290e: 3301 adds r3, #1 - 8002910: 60fb str r3, [r7, #12] - 8002912: 68fb ldr r3, [r7, #12] - 8002914: 2b03 cmp r3, #3 - 8002916: d9b5 bls.n 8002884 + 8002908: 68fb ldr r3, [r7, #12] + 800290a: 3301 adds r3, #1 + 800290c: 60fb str r3, [r7, #12] + 800290e: 68fb ldr r3, [r7, #12] + 8002910: 2b03 cmp r3, #3 + 8002912: d9b5 bls.n 8002880 } } WRITE_REG(heth->RxDescList.RxDescIdx, 0); - 8002918: 687b ldr r3, [r7, #4] - 800291a: 2200 movs r2, #0 - 800291c: 65da str r2, [r3, #92] ; 0x5c + 8002914: 687b ldr r3, [r7, #4] + 8002916: 2200 movs r2, #0 + 8002918: 65da str r2, [r3, #92] ; 0x5c WRITE_REG(heth->RxDescList.RxDescCnt, 0); - 800291e: 687b ldr r3, [r7, #4] - 8002920: 2200 movs r2, #0 - 8002922: 661a str r2, [r3, #96] ; 0x60 + 800291a: 687b ldr r3, [r7, #4] + 800291c: 2200 movs r2, #0 + 800291e: 661a str r2, [r3, #96] ; 0x60 WRITE_REG(heth->RxDescList.RxBuildDescIdx, 0); - 8002924: 687b ldr r3, [r7, #4] - 8002926: 2200 movs r2, #0 - 8002928: 669a str r2, [r3, #104] ; 0x68 + 8002920: 687b ldr r3, [r7, #4] + 8002922: 2200 movs r2, #0 + 8002924: 669a str r2, [r3, #104] ; 0x68 WRITE_REG(heth->RxDescList.RxBuildDescCnt, 0); - 800292a: 687b ldr r3, [r7, #4] - 800292c: 2200 movs r2, #0 - 800292e: 66da str r2, [r3, #108] ; 0x6c + 8002926: 687b ldr r3, [r7, #4] + 8002928: 2200 movs r2, #0 + 800292a: 66da str r2, [r3, #108] ; 0x6c WRITE_REG(heth->RxDescList.ItMode, 0); - 8002930: 687b ldr r3, [r7, #4] - 8002932: 2200 movs r2, #0 - 8002934: 659a str r2, [r3, #88] ; 0x58 + 800292c: 687b ldr r3, [r7, #4] + 800292e: 2200 movs r2, #0 + 8002930: 659a str r2, [r3, #88] ; 0x58 /* Set Receive Descriptor List Address */ WRITE_REG(heth->Instance->DMARDLAR, (uint32_t) heth->Init.RxDesc); + 8002932: 687b ldr r3, [r7, #4] + 8002934: 691a ldr r2, [r3, #16] 8002936: 687b ldr r3, [r7, #4] - 8002938: 691a ldr r2, [r3, #16] - 800293a: 687b ldr r3, [r7, #4] - 800293c: 681b ldr r3, [r3, #0] - 800293e: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 8002942: 60da str r2, [r3, #12] + 8002938: 681b ldr r3, [r3, #0] + 800293a: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 800293e: 60da str r2, [r3, #12] } - 8002944: bf00 nop - 8002946: 3714 adds r7, #20 - 8002948: 46bd mov sp, r7 - 800294a: f85d 7b04 ldr.w r7, [sp], #4 - 800294e: 4770 bx lr + 8002940: bf00 nop + 8002942: 3714 adds r7, #20 + 8002944: 46bd mov sp, r7 + 8002946: f85d 7b04 ldr.w r7, [sp], #4 + 800294a: 4770 bx lr -08002950 : +0800294c : * @param pTxConfig: Tx packet configuration * @param ItMode: Enable or disable Tx EOT interrept * @retval Status */ static uint32_t ETH_Prepare_Tx_Descriptors(ETH_HandleTypeDef *heth, ETH_TxPacketConfig *pTxConfig, uint32_t ItMode) { - 8002950: b480 push {r7} - 8002952: b08d sub sp, #52 ; 0x34 - 8002954: af00 add r7, sp, #0 - 8002956: 60f8 str r0, [r7, #12] - 8002958: 60b9 str r1, [r7, #8] - 800295a: 607a str r2, [r7, #4] + 800294c: b480 push {r7} + 800294e: b08d sub sp, #52 ; 0x34 + 8002950: af00 add r7, sp, #0 + 8002952: 60f8 str r0, [r7, #12] + 8002954: 60b9 str r1, [r7, #8] + 8002956: 607a str r2, [r7, #4] ETH_TxDescListTypeDef *dmatxdesclist = &heth->TxDescList; - 800295c: 68fb ldr r3, [r7, #12] - 800295e: 3318 adds r3, #24 - 8002960: 617b str r3, [r7, #20] + 8002958: 68fb ldr r3, [r7, #12] + 800295a: 3318 adds r3, #24 + 800295c: 617b str r3, [r7, #20] uint32_t descidx = dmatxdesclist->CurTxDesc; - 8002962: 697b ldr r3, [r7, #20] - 8002964: 691b ldr r3, [r3, #16] - 8002966: 62fb str r3, [r7, #44] ; 0x2c + 800295e: 697b ldr r3, [r7, #20] + 8002960: 691b ldr r3, [r3, #16] + 8002962: 62fb str r3, [r7, #44] ; 0x2c uint32_t firstdescidx = dmatxdesclist->CurTxDesc; - 8002968: 697b ldr r3, [r7, #20] - 800296a: 691b ldr r3, [r3, #16] - 800296c: 613b str r3, [r7, #16] + 8002964: 697b ldr r3, [r7, #20] + 8002966: 691b ldr r3, [r3, #16] + 8002968: 613b str r3, [r7, #16] uint32_t idx; uint32_t descnbr = 0; - 800296e: 2300 movs r3, #0 - 8002970: 627b str r3, [r7, #36] ; 0x24 + 800296a: 2300 movs r3, #0 + 800296c: 627b str r3, [r7, #36] ; 0x24 ETH_DMADescTypeDef *dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 8002972: 697b ldr r3, [r7, #20] - 8002974: 6afa ldr r2, [r7, #44] ; 0x2c - 8002976: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800297a: 623b str r3, [r7, #32] + 800296e: 697b ldr r3, [r7, #20] + 8002970: 6afa ldr r2, [r7, #44] ; 0x2c + 8002972: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002976: 623b str r3, [r7, #32] ETH_BufferTypeDef *txbuffer = pTxConfig->TxBuffer; - 800297c: 68bb ldr r3, [r7, #8] - 800297e: 689b ldr r3, [r3, #8] - 8002980: 61fb str r3, [r7, #28] + 8002978: 68bb ldr r3, [r7, #8] + 800297a: 689b ldr r3, [r3, #8] + 800297c: 61fb str r3, [r7, #28] uint32_t bd_count = 0; - 8002982: 2300 movs r3, #0 - 8002984: 61bb str r3, [r7, #24] + 800297e: 2300 movs r3, #0 + 8002980: 61bb str r3, [r7, #24] /* Current Tx Descriptor Owned by DMA: cannot be used by the application */ if ((READ_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_OWN) == ETH_DMATXDESC_OWN) - 8002986: 6a3b ldr r3, [r7, #32] - 8002988: 681b ldr r3, [r3, #0] - 800298a: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000 - 800298e: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 8002992: d007 beq.n 80029a4 + 8002982: 6a3b ldr r3, [r7, #32] + 8002984: 681b ldr r3, [r3, #0] + 8002986: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000 + 800298a: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 + 800298e: d007 beq.n 80029a0 || (dmatxdesclist->PacketAddress[descidx] != NULL)) - 8002994: 697a ldr r2, [r7, #20] - 8002996: 6afb ldr r3, [r7, #44] ; 0x2c - 8002998: 3304 adds r3, #4 - 800299a: 009b lsls r3, r3, #2 - 800299c: 4413 add r3, r2 - 800299e: 685b ldr r3, [r3, #4] - 80029a0: 2b00 cmp r3, #0 - 80029a2: d001 beq.n 80029a8 + 8002990: 697a ldr r2, [r7, #20] + 8002992: 6afb ldr r3, [r7, #44] ; 0x2c + 8002994: 3304 adds r3, #4 + 8002996: 009b lsls r3, r3, #2 + 8002998: 4413 add r3, r2 + 800299a: 685b ldr r3, [r3, #4] + 800299c: 2b00 cmp r3, #0 + 800299e: d001 beq.n 80029a4 { return HAL_ETH_ERROR_BUSY; - 80029a4: 2302 movs r3, #2 - 80029a6: e103 b.n 8002bb0 + 80029a0: 2302 movs r3, #2 + 80029a2: e103 b.n 8002bac } descnbr += 1U; - 80029a8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80029aa: 3301 adds r3, #1 - 80029ac: 627b str r3, [r7, #36] ; 0x24 + 80029a4: 6a7b ldr r3, [r7, #36] ; 0x24 + 80029a6: 3301 adds r3, #1 + 80029a8: 627b str r3, [r7, #36] ; 0x24 /* Set header or buffer 1 address */ WRITE_REG(dmatxdesc->DESC2, (uint32_t)txbuffer->buffer); - 80029ae: 69fb ldr r3, [r7, #28] - 80029b0: 681b ldr r3, [r3, #0] - 80029b2: 461a mov r2, r3 - 80029b4: 6a3b ldr r3, [r7, #32] - 80029b6: 609a str r2, [r3, #8] + 80029aa: 69fb ldr r3, [r7, #28] + 80029ac: 681b ldr r3, [r3, #0] + 80029ae: 461a mov r2, r3 + 80029b0: 6a3b ldr r3, [r7, #32] + 80029b2: 609a str r2, [r3, #8] /* Set header or buffer 1 Length */ MODIFY_REG(dmatxdesc->DESC1, ETH_DMATXDESC_TBS1, txbuffer->len); - 80029b8: 6a3b ldr r3, [r7, #32] - 80029ba: 685b ldr r3, [r3, #4] - 80029bc: f423 53ff bic.w r3, r3, #8160 ; 0x1fe0 - 80029c0: f023 031f bic.w r3, r3, #31 - 80029c4: 69fa ldr r2, [r7, #28] - 80029c6: 6852 ldr r2, [r2, #4] - 80029c8: 431a orrs r2, r3 - 80029ca: 6a3b ldr r3, [r7, #32] - 80029cc: 605a str r2, [r3, #4] + 80029b4: 6a3b ldr r3, [r7, #32] + 80029b6: 685b ldr r3, [r3, #4] + 80029b8: f423 53ff bic.w r3, r3, #8160 ; 0x1fe0 + 80029bc: f023 031f bic.w r3, r3, #31 + 80029c0: 69fa ldr r2, [r7, #28] + 80029c2: 6852 ldr r2, [r2, #4] + 80029c4: 431a orrs r2, r3 + 80029c6: 6a3b ldr r3, [r7, #32] + 80029c8: 605a str r2, [r3, #4] if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CSUM) != 0U) - 80029ce: 68bb ldr r3, [r7, #8] - 80029d0: 681b ldr r3, [r3, #0] - 80029d2: f003 0301 and.w r3, r3, #1 - 80029d6: 2b00 cmp r3, #0 - 80029d8: d008 beq.n 80029ec + 80029ca: 68bb ldr r3, [r7, #8] + 80029cc: 681b ldr r3, [r3, #0] + 80029ce: f003 0301 and.w r3, r3, #1 + 80029d2: 2b00 cmp r3, #0 + 80029d4: d008 beq.n 80029e8 { MODIFY_REG(dmatxdesc->DESC0, ETH_DMATXDESC_CIC, pTxConfig->ChecksumCtrl); - 80029da: 6a3b ldr r3, [r7, #32] - 80029dc: 681b ldr r3, [r3, #0] - 80029de: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000 - 80029e2: 68bb ldr r3, [r7, #8] - 80029e4: 695b ldr r3, [r3, #20] - 80029e6: 431a orrs r2, r3 - 80029e8: 6a3b ldr r3, [r7, #32] - 80029ea: 601a str r2, [r3, #0] + 80029d6: 6a3b ldr r3, [r7, #32] + 80029d8: 681b ldr r3, [r3, #0] + 80029da: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000 + 80029de: 68bb ldr r3, [r7, #8] + 80029e0: 695b ldr r3, [r3, #20] + 80029e2: 431a orrs r2, r3 + 80029e4: 6a3b ldr r3, [r7, #32] + 80029e6: 601a str r2, [r3, #0] } if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_CRCPAD) != 0U) - 80029ec: 68bb ldr r3, [r7, #8] - 80029ee: 681b ldr r3, [r3, #0] - 80029f0: f003 0320 and.w r3, r3, #32 - 80029f4: 2b00 cmp r3, #0 - 80029f6: d008 beq.n 8002a0a + 80029e8: 68bb ldr r3, [r7, #8] + 80029ea: 681b ldr r3, [r3, #0] + 80029ec: f003 0320 and.w r3, r3, #32 + 80029f0: 2b00 cmp r3, #0 + 80029f2: d008 beq.n 8002a06 { MODIFY_REG(dmatxdesc->DESC0, ETH_CRC_PAD_DISABLE, pTxConfig->CRCPadCtrl); - 80029f8: 6a3b ldr r3, [r7, #32] - 80029fa: 681b ldr r3, [r3, #0] - 80029fc: f023 6240 bic.w r2, r3, #201326592 ; 0xc000000 - 8002a00: 68bb ldr r3, [r7, #8] - 8002a02: 691b ldr r3, [r3, #16] - 8002a04: 431a orrs r2, r3 - 8002a06: 6a3b ldr r3, [r7, #32] - 8002a08: 601a str r2, [r3, #0] + 80029f4: 6a3b ldr r3, [r7, #32] + 80029f6: 681b ldr r3, [r3, #0] + 80029f8: f023 6240 bic.w r2, r3, #201326592 ; 0xc000000 + 80029fc: 68bb ldr r3, [r7, #8] + 80029fe: 691b ldr r3, [r3, #16] + 8002a00: 431a orrs r2, r3 + 8002a02: 6a3b ldr r3, [r7, #32] + 8002a04: 601a str r2, [r3, #0] } if (READ_BIT(pTxConfig->Attributes, ETH_TX_PACKETS_FEATURES_VLANTAG) != 0U) - 8002a0a: 68bb ldr r3, [r7, #8] - 8002a0c: 681b ldr r3, [r3, #0] - 8002a0e: f003 0304 and.w r3, r3, #4 - 8002a12: 2b00 cmp r3, #0 - 8002a14: d005 beq.n 8002a22 + 8002a06: 68bb ldr r3, [r7, #8] + 8002a08: 681b ldr r3, [r3, #0] + 8002a0a: f003 0304 and.w r3, r3, #4 + 8002a0e: 2b00 cmp r3, #0 + 8002a10: d005 beq.n 8002a1e { /* Set Vlan Type */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_VF); - 8002a16: 6a3b ldr r3, [r7, #32] - 8002a18: 681b ldr r3, [r3, #0] - 8002a1a: f043 0280 orr.w r2, r3, #128 ; 0x80 - 8002a1e: 6a3b ldr r3, [r7, #32] - 8002a20: 601a str r2, [r3, #0] + 8002a12: 6a3b ldr r3, [r7, #32] + 8002a14: 681b ldr r3, [r3, #0] + 8002a16: f043 0280 orr.w r2, r3, #128 ; 0x80 + 8002a1a: 6a3b ldr r3, [r7, #32] + 8002a1c: 601a str r2, [r3, #0] } /* Mark it as First Descriptor */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_FS); - 8002a22: 6a3b ldr r3, [r7, #32] - 8002a24: 681b ldr r3, [r3, #0] - 8002a26: f043 5280 orr.w r2, r3, #268435456 ; 0x10000000 - 8002a2a: 6a3b ldr r3, [r7, #32] - 8002a2c: 601a str r2, [r3, #0] + 8002a1e: 6a3b ldr r3, [r7, #32] + 8002a20: 681b ldr r3, [r3, #0] + 8002a22: f043 5280 orr.w r2, r3, #268435456 ; 0x10000000 + 8002a26: 6a3b ldr r3, [r7, #32] + 8002a28: 601a str r2, [r3, #0] __ASM volatile ("dmb 0xF":::"memory"); - 8002a2e: f3bf 8f5f dmb sy + 8002a2a: f3bf 8f5f dmb sy } - 8002a32: bf00 nop + 8002a2e: bf00 nop /* Ensure rest of descriptor is written to RAM before the OWN bit */ __DMB(); /* set OWN bit of FIRST descriptor */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_OWN); - 8002a34: 6a3b ldr r3, [r7, #32] - 8002a36: 681b ldr r3, [r3, #0] - 8002a38: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 - 8002a3c: 6a3b ldr r3, [r7, #32] - 8002a3e: 601a str r2, [r3, #0] + 8002a30: 6a3b ldr r3, [r7, #32] + 8002a32: 681b ldr r3, [r3, #0] + 8002a34: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 + 8002a38: 6a3b ldr r3, [r7, #32] + 8002a3a: 601a str r2, [r3, #0] /* only if the packet is split into more than one descriptors > 1 */ while (txbuffer->next != NULL) - 8002a40: e084 b.n 8002b4c + 8002a3c: e084 b.n 8002b48 { /* Clear the LD bit of previous descriptor */ CLEAR_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_LS); - 8002a42: 6a3b ldr r3, [r7, #32] - 8002a44: 681b ldr r3, [r3, #0] - 8002a46: f023 5200 bic.w r2, r3, #536870912 ; 0x20000000 - 8002a4a: 6a3b ldr r3, [r7, #32] - 8002a4c: 601a str r2, [r3, #0] + 8002a3e: 6a3b ldr r3, [r7, #32] + 8002a40: 681b ldr r3, [r3, #0] + 8002a42: f023 5200 bic.w r2, r3, #536870912 ; 0x20000000 + 8002a46: 6a3b ldr r3, [r7, #32] + 8002a48: 601a str r2, [r3, #0] if (ItMode != ((uint32_t)RESET)) - 8002a4e: 687b ldr r3, [r7, #4] - 8002a50: 2b00 cmp r3, #0 - 8002a52: d006 beq.n 8002a62 + 8002a4a: 687b ldr r3, [r7, #4] + 8002a4c: 2b00 cmp r3, #0 + 8002a4e: d006 beq.n 8002a5e { /* Set Interrupt on completion bit */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_IC); - 8002a54: 6a3b ldr r3, [r7, #32] - 8002a56: 681b ldr r3, [r3, #0] - 8002a58: f043 4280 orr.w r2, r3, #1073741824 ; 0x40000000 - 8002a5c: 6a3b ldr r3, [r7, #32] - 8002a5e: 601a str r2, [r3, #0] - 8002a60: e005 b.n 8002a6e + 8002a50: 6a3b ldr r3, [r7, #32] + 8002a52: 681b ldr r3, [r3, #0] + 8002a54: f043 4280 orr.w r2, r3, #1073741824 ; 0x40000000 + 8002a58: 6a3b ldr r3, [r7, #32] + 8002a5a: 601a str r2, [r3, #0] + 8002a5c: e005 b.n 8002a6a } else { /* Clear Interrupt on completion bit */ CLEAR_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_IC); - 8002a62: 6a3b ldr r3, [r7, #32] - 8002a64: 681b ldr r3, [r3, #0] - 8002a66: f023 4280 bic.w r2, r3, #1073741824 ; 0x40000000 - 8002a6a: 6a3b ldr r3, [r7, #32] - 8002a6c: 601a str r2, [r3, #0] + 8002a5e: 6a3b ldr r3, [r7, #32] + 8002a60: 681b ldr r3, [r3, #0] + 8002a62: f023 4280 bic.w r2, r3, #1073741824 ; 0x40000000 + 8002a66: 6a3b ldr r3, [r7, #32] + 8002a68: 601a str r2, [r3, #0] } /* Increment current tx descriptor index */ INCR_TX_DESC_INDEX(descidx, 1U); - 8002a6e: 6afb ldr r3, [r7, #44] ; 0x2c - 8002a70: 3301 adds r3, #1 - 8002a72: 62fb str r3, [r7, #44] ; 0x2c - 8002a74: 6afb ldr r3, [r7, #44] ; 0x2c - 8002a76: 2b03 cmp r3, #3 - 8002a78: d902 bls.n 8002a80 - 8002a7a: 6afb ldr r3, [r7, #44] ; 0x2c - 8002a7c: 3b04 subs r3, #4 - 8002a7e: 62fb str r3, [r7, #44] ; 0x2c + 8002a6a: 6afb ldr r3, [r7, #44] ; 0x2c + 8002a6c: 3301 adds r3, #1 + 8002a6e: 62fb str r3, [r7, #44] ; 0x2c + 8002a70: 6afb ldr r3, [r7, #44] ; 0x2c + 8002a72: 2b03 cmp r3, #3 + 8002a74: d902 bls.n 8002a7c + 8002a76: 6afb ldr r3, [r7, #44] ; 0x2c + 8002a78: 3b04 subs r3, #4 + 8002a7a: 62fb str r3, [r7, #44] ; 0x2c /* Get current descriptor address */ dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 8002a80: 697b ldr r3, [r7, #20] - 8002a82: 6afa ldr r2, [r7, #44] ; 0x2c - 8002a84: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8002a88: 623b str r3, [r7, #32] + 8002a7c: 697b ldr r3, [r7, #20] + 8002a7e: 6afa ldr r2, [r7, #44] ; 0x2c + 8002a80: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002a84: 623b str r3, [r7, #32] /* Clear the FD bit of new Descriptor */ CLEAR_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_FS); - 8002a8a: 6a3b ldr r3, [r7, #32] - 8002a8c: 681b ldr r3, [r3, #0] - 8002a8e: f023 5280 bic.w r2, r3, #268435456 ; 0x10000000 - 8002a92: 6a3b ldr r3, [r7, #32] - 8002a94: 601a str r2, [r3, #0] + 8002a86: 6a3b ldr r3, [r7, #32] + 8002a88: 681b ldr r3, [r3, #0] + 8002a8a: f023 5280 bic.w r2, r3, #268435456 ; 0x10000000 + 8002a8e: 6a3b ldr r3, [r7, #32] + 8002a90: 601a str r2, [r3, #0] /* Current Tx Descriptor Owned by DMA: cannot be used by the application */ if ((READ_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_OWN) == ETH_DMATXDESC_OWN) - 8002a96: 6a3b ldr r3, [r7, #32] - 8002a98: 681b ldr r3, [r3, #0] - 8002a9a: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000 - 8002a9e: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 8002aa2: d007 beq.n 8002ab4 + 8002a92: 6a3b ldr r3, [r7, #32] + 8002a94: 681b ldr r3, [r3, #0] + 8002a96: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000 + 8002a9a: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 + 8002a9e: d007 beq.n 8002ab0 || (dmatxdesclist->PacketAddress[descidx] != NULL)) - 8002aa4: 697a ldr r2, [r7, #20] - 8002aa6: 6afb ldr r3, [r7, #44] ; 0x2c - 8002aa8: 3304 adds r3, #4 - 8002aaa: 009b lsls r3, r3, #2 - 8002aac: 4413 add r3, r2 - 8002aae: 685b ldr r3, [r3, #4] - 8002ab0: 2b00 cmp r3, #0 - 8002ab2: d029 beq.n 8002b08 + 8002aa0: 697a ldr r2, [r7, #20] + 8002aa2: 6afb ldr r3, [r7, #44] ; 0x2c + 8002aa4: 3304 adds r3, #4 + 8002aa6: 009b lsls r3, r3, #2 + 8002aa8: 4413 add r3, r2 + 8002aaa: 685b ldr r3, [r3, #4] + 8002aac: 2b00 cmp r3, #0 + 8002aae: d029 beq.n 8002b04 { descidx = firstdescidx; - 8002ab4: 693b ldr r3, [r7, #16] - 8002ab6: 62fb str r3, [r7, #44] ; 0x2c + 8002ab0: 693b ldr r3, [r7, #16] + 8002ab2: 62fb str r3, [r7, #44] ; 0x2c dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 8002ab8: 697b ldr r3, [r7, #20] - 8002aba: 6afa ldr r2, [r7, #44] ; 0x2c - 8002abc: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8002ac0: 623b str r3, [r7, #32] + 8002ab4: 697b ldr r3, [r7, #20] + 8002ab6: 6afa ldr r2, [r7, #44] ; 0x2c + 8002ab8: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002abc: 623b str r3, [r7, #32] /* clear previous desc own bit */ for (idx = 0; idx < descnbr; idx ++) - 8002ac2: 2300 movs r3, #0 - 8002ac4: 62bb str r3, [r7, #40] ; 0x28 - 8002ac6: e019 b.n 8002afc + 8002abe: 2300 movs r3, #0 + 8002ac0: 62bb str r3, [r7, #40] ; 0x28 + 8002ac2: e019 b.n 8002af8 __ASM volatile ("dmb 0xF":::"memory"); - 8002ac8: f3bf 8f5f dmb sy + 8002ac4: f3bf 8f5f dmb sy } - 8002acc: bf00 nop + 8002ac8: bf00 nop { /* Ensure rest of descriptor is written to RAM before the OWN bit */ __DMB(); CLEAR_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_OWN); - 8002ace: 6a3b ldr r3, [r7, #32] - 8002ad0: 681b ldr r3, [r3, #0] - 8002ad2: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 - 8002ad6: 6a3b ldr r3, [r7, #32] - 8002ad8: 601a str r2, [r3, #0] + 8002aca: 6a3b ldr r3, [r7, #32] + 8002acc: 681b ldr r3, [r3, #0] + 8002ace: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 + 8002ad2: 6a3b ldr r3, [r7, #32] + 8002ad4: 601a str r2, [r3, #0] /* Increment current tx descriptor index */ INCR_TX_DESC_INDEX(descidx, 1U); - 8002ada: 6afb ldr r3, [r7, #44] ; 0x2c - 8002adc: 3301 adds r3, #1 - 8002ade: 62fb str r3, [r7, #44] ; 0x2c - 8002ae0: 6afb ldr r3, [r7, #44] ; 0x2c - 8002ae2: 2b03 cmp r3, #3 - 8002ae4: d902 bls.n 8002aec - 8002ae6: 6afb ldr r3, [r7, #44] ; 0x2c - 8002ae8: 3b04 subs r3, #4 - 8002aea: 62fb str r3, [r7, #44] ; 0x2c + 8002ad6: 6afb ldr r3, [r7, #44] ; 0x2c + 8002ad8: 3301 adds r3, #1 + 8002ada: 62fb str r3, [r7, #44] ; 0x2c + 8002adc: 6afb ldr r3, [r7, #44] ; 0x2c + 8002ade: 2b03 cmp r3, #3 + 8002ae0: d902 bls.n 8002ae8 + 8002ae2: 6afb ldr r3, [r7, #44] ; 0x2c + 8002ae4: 3b04 subs r3, #4 + 8002ae6: 62fb str r3, [r7, #44] ; 0x2c /* Get current descriptor address */ dmatxdesc = (ETH_DMADescTypeDef *)dmatxdesclist->TxDesc[descidx]; - 8002aec: 697b ldr r3, [r7, #20] - 8002aee: 6afa ldr r2, [r7, #44] ; 0x2c - 8002af0: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8002af4: 623b str r3, [r7, #32] + 8002ae8: 697b ldr r3, [r7, #20] + 8002aea: 6afa ldr r2, [r7, #44] ; 0x2c + 8002aec: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002af0: 623b str r3, [r7, #32] for (idx = 0; idx < descnbr; idx ++) - 8002af6: 6abb ldr r3, [r7, #40] ; 0x28 - 8002af8: 3301 adds r3, #1 - 8002afa: 62bb str r3, [r7, #40] ; 0x28 - 8002afc: 6aba ldr r2, [r7, #40] ; 0x28 - 8002afe: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002b00: 429a cmp r2, r3 - 8002b02: d3e1 bcc.n 8002ac8 + 8002af2: 6abb ldr r3, [r7, #40] ; 0x28 + 8002af4: 3301 adds r3, #1 + 8002af6: 62bb str r3, [r7, #40] ; 0x28 + 8002af8: 6aba ldr r2, [r7, #40] ; 0x28 + 8002afa: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002afc: 429a cmp r2, r3 + 8002afe: d3e1 bcc.n 8002ac4 } return HAL_ETH_ERROR_BUSY; - 8002b04: 2302 movs r3, #2 - 8002b06: e053 b.n 8002bb0 + 8002b00: 2302 movs r3, #2 + 8002b02: e053 b.n 8002bac } descnbr += 1U; - 8002b08: 6a7b ldr r3, [r7, #36] ; 0x24 - 8002b0a: 3301 adds r3, #1 - 8002b0c: 627b str r3, [r7, #36] ; 0x24 + 8002b04: 6a7b ldr r3, [r7, #36] ; 0x24 + 8002b06: 3301 adds r3, #1 + 8002b08: 627b str r3, [r7, #36] ; 0x24 /* Get the next Tx buffer in the list */ txbuffer = txbuffer->next; - 8002b0e: 69fb ldr r3, [r7, #28] - 8002b10: 689b ldr r3, [r3, #8] - 8002b12: 61fb str r3, [r7, #28] + 8002b0a: 69fb ldr r3, [r7, #28] + 8002b0c: 689b ldr r3, [r3, #8] + 8002b0e: 61fb str r3, [r7, #28] /* Set header or buffer 1 address */ WRITE_REG(dmatxdesc->DESC2, (uint32_t)txbuffer->buffer); - 8002b14: 69fb ldr r3, [r7, #28] - 8002b16: 681b ldr r3, [r3, #0] - 8002b18: 461a mov r2, r3 - 8002b1a: 6a3b ldr r3, [r7, #32] - 8002b1c: 609a str r2, [r3, #8] + 8002b10: 69fb ldr r3, [r7, #28] + 8002b12: 681b ldr r3, [r3, #0] + 8002b14: 461a mov r2, r3 + 8002b16: 6a3b ldr r3, [r7, #32] + 8002b18: 609a str r2, [r3, #8] /* Set header or buffer 1 Length */ MODIFY_REG(dmatxdesc->DESC1, ETH_DMATXDESC_TBS1, txbuffer->len); - 8002b1e: 6a3b ldr r3, [r7, #32] - 8002b20: 685b ldr r3, [r3, #4] - 8002b22: f423 53ff bic.w r3, r3, #8160 ; 0x1fe0 - 8002b26: f023 031f bic.w r3, r3, #31 - 8002b2a: 69fa ldr r2, [r7, #28] - 8002b2c: 6852 ldr r2, [r2, #4] - 8002b2e: 431a orrs r2, r3 - 8002b30: 6a3b ldr r3, [r7, #32] - 8002b32: 605a str r2, [r3, #4] + 8002b1a: 6a3b ldr r3, [r7, #32] + 8002b1c: 685b ldr r3, [r3, #4] + 8002b1e: f423 53ff bic.w r3, r3, #8160 ; 0x1fe0 + 8002b22: f023 031f bic.w r3, r3, #31 + 8002b26: 69fa ldr r2, [r7, #28] + 8002b28: 6852 ldr r2, [r2, #4] + 8002b2a: 431a orrs r2, r3 + 8002b2c: 6a3b ldr r3, [r7, #32] + 8002b2e: 605a str r2, [r3, #4] bd_count += 1U; - 8002b34: 69bb ldr r3, [r7, #24] - 8002b36: 3301 adds r3, #1 - 8002b38: 61bb str r3, [r7, #24] + 8002b30: 69bb ldr r3, [r7, #24] + 8002b32: 3301 adds r3, #1 + 8002b34: 61bb str r3, [r7, #24] __ASM volatile ("dmb 0xF":::"memory"); - 8002b3a: f3bf 8f5f dmb sy + 8002b36: f3bf 8f5f dmb sy } - 8002b3e: bf00 nop + 8002b3a: bf00 nop /* Ensure rest of descriptor is written to RAM before the OWN bit */ __DMB(); /* Set Own bit */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_OWN); - 8002b40: 6a3b ldr r3, [r7, #32] - 8002b42: 681b ldr r3, [r3, #0] - 8002b44: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 - 8002b48: 6a3b ldr r3, [r7, #32] - 8002b4a: 601a str r2, [r3, #0] + 8002b3c: 6a3b ldr r3, [r7, #32] + 8002b3e: 681b ldr r3, [r3, #0] + 8002b40: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 + 8002b44: 6a3b ldr r3, [r7, #32] + 8002b46: 601a str r2, [r3, #0] while (txbuffer->next != NULL) - 8002b4c: 69fb ldr r3, [r7, #28] - 8002b4e: 689b ldr r3, [r3, #8] - 8002b50: 2b00 cmp r3, #0 - 8002b52: f47f af76 bne.w 8002a42 + 8002b48: 69fb ldr r3, [r7, #28] + 8002b4a: 689b ldr r3, [r3, #8] + 8002b4c: 2b00 cmp r3, #0 + 8002b4e: f47f af76 bne.w 8002a3e } if (ItMode != ((uint32_t)RESET)) - 8002b56: 687b ldr r3, [r7, #4] - 8002b58: 2b00 cmp r3, #0 - 8002b5a: d006 beq.n 8002b6a + 8002b52: 687b ldr r3, [r7, #4] + 8002b54: 2b00 cmp r3, #0 + 8002b56: d006 beq.n 8002b66 { /* Set Interrupt on completion bit */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_IC); - 8002b5c: 6a3b ldr r3, [r7, #32] - 8002b5e: 681b ldr r3, [r3, #0] - 8002b60: f043 4280 orr.w r2, r3, #1073741824 ; 0x40000000 - 8002b64: 6a3b ldr r3, [r7, #32] - 8002b66: 601a str r2, [r3, #0] - 8002b68: e005 b.n 8002b76 + 8002b58: 6a3b ldr r3, [r7, #32] + 8002b5a: 681b ldr r3, [r3, #0] + 8002b5c: f043 4280 orr.w r2, r3, #1073741824 ; 0x40000000 + 8002b60: 6a3b ldr r3, [r7, #32] + 8002b62: 601a str r2, [r3, #0] + 8002b64: e005 b.n 8002b72 } else { /* Clear Interrupt on completion bit */ CLEAR_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_IC); - 8002b6a: 6a3b ldr r3, [r7, #32] - 8002b6c: 681b ldr r3, [r3, #0] - 8002b6e: f023 4280 bic.w r2, r3, #1073741824 ; 0x40000000 - 8002b72: 6a3b ldr r3, [r7, #32] - 8002b74: 601a str r2, [r3, #0] + 8002b66: 6a3b ldr r3, [r7, #32] + 8002b68: 681b ldr r3, [r3, #0] + 8002b6a: f023 4280 bic.w r2, r3, #1073741824 ; 0x40000000 + 8002b6e: 6a3b ldr r3, [r7, #32] + 8002b70: 601a str r2, [r3, #0] } /* Mark it as LAST descriptor */ SET_BIT(dmatxdesc->DESC0, ETH_DMATXDESC_LS); - 8002b76: 6a3b ldr r3, [r7, #32] - 8002b78: 681b ldr r3, [r3, #0] - 8002b7a: f043 5200 orr.w r2, r3, #536870912 ; 0x20000000 - 8002b7e: 6a3b ldr r3, [r7, #32] - 8002b80: 601a str r2, [r3, #0] + 8002b72: 6a3b ldr r3, [r7, #32] + 8002b74: 681b ldr r3, [r3, #0] + 8002b76: f043 5200 orr.w r2, r3, #536870912 ; 0x20000000 + 8002b7a: 6a3b ldr r3, [r7, #32] + 8002b7c: 601a str r2, [r3, #0] /* Save the current packet address to expose it to the application */ dmatxdesclist->PacketAddress[descidx] = dmatxdesclist->CurrentPacketAddress; - 8002b82: 697b ldr r3, [r7, #20] - 8002b84: 6a5a ldr r2, [r3, #36] ; 0x24 - 8002b86: 6979 ldr r1, [r7, #20] - 8002b88: 6afb ldr r3, [r7, #44] ; 0x2c - 8002b8a: 3304 adds r3, #4 - 8002b8c: 009b lsls r3, r3, #2 - 8002b8e: 440b add r3, r1 - 8002b90: 605a str r2, [r3, #4] + 8002b7e: 697b ldr r3, [r7, #20] + 8002b80: 6a5a ldr r2, [r3, #36] ; 0x24 + 8002b82: 6979 ldr r1, [r7, #20] + 8002b84: 6afb ldr r3, [r7, #44] ; 0x2c + 8002b86: 3304 adds r3, #4 + 8002b88: 009b lsls r3, r3, #2 + 8002b8a: 440b add r3, r1 + 8002b8c: 605a str r2, [r3, #4] dmatxdesclist->CurTxDesc = descidx; - 8002b92: 697b ldr r3, [r7, #20] - 8002b94: 6afa ldr r2, [r7, #44] ; 0x2c - 8002b96: 611a str r2, [r3, #16] + 8002b8e: 697b ldr r3, [r7, #20] + 8002b90: 6afa ldr r2, [r7, #44] ; 0x2c + 8002b92: 611a str r2, [r3, #16] __ASM volatile ("cpsid i" : : : "memory"); - 8002b98: b672 cpsid i + 8002b94: b672 cpsid i } - 8002b9a: bf00 nop + 8002b96: bf00 nop /* disable the interrupt */ __disable_irq(); dmatxdesclist->BuffersInUse += bd_count + 1U; - 8002b9c: 697b ldr r3, [r7, #20] - 8002b9e: 6a9a ldr r2, [r3, #40] ; 0x28 - 8002ba0: 69bb ldr r3, [r7, #24] - 8002ba2: 4413 add r3, r2 - 8002ba4: 1c5a adds r2, r3, #1 - 8002ba6: 697b ldr r3, [r7, #20] - 8002ba8: 629a str r2, [r3, #40] ; 0x28 + 8002b98: 697b ldr r3, [r7, #20] + 8002b9a: 6a9a ldr r2, [r3, #40] ; 0x28 + 8002b9c: 69bb ldr r3, [r7, #24] + 8002b9e: 4413 add r3, r2 + 8002ba0: 1c5a adds r2, r3, #1 + 8002ba2: 697b ldr r3, [r7, #20] + 8002ba4: 629a str r2, [r3, #40] ; 0x28 __ASM volatile ("cpsie i" : : : "memory"); - 8002baa: b662 cpsie i + 8002ba6: b662 cpsie i } - 8002bac: bf00 nop + 8002ba8: bf00 nop /* Enable interrupts back */ __enable_irq(); /* Return function status */ return HAL_ETH_ERROR_NONE; - 8002bae: 2300 movs r3, #0 + 8002baa: 2300 movs r3, #0 } - 8002bb0: 4618 mov r0, r3 - 8002bb2: 3734 adds r7, #52 ; 0x34 - 8002bb4: 46bd mov sp, r7 - 8002bb6: f85d 7b04 ldr.w r7, [sp], #4 - 8002bba: 4770 bx lr + 8002bac: 4618 mov r0, r3 + 8002bae: 3734 adds r7, #52 ; 0x34 + 8002bb0: 46bd mov sp, r7 + 8002bb2: f85d 7b04 ldr.w r7, [sp], #4 + 8002bb6: 4770 bx lr -08002bbc : +08002bb8 : * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains * the configuration information for the specified GPIO peripheral. * @retval None */ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) { - 8002bbc: b480 push {r7} - 8002bbe: b089 sub sp, #36 ; 0x24 - 8002bc0: af00 add r7, sp, #0 - 8002bc2: 6078 str r0, [r7, #4] - 8002bc4: 6039 str r1, [r7, #0] + 8002bb8: b480 push {r7} + 8002bba: b089 sub sp, #36 ; 0x24 + 8002bbc: af00 add r7, sp, #0 + 8002bbe: 6078 str r0, [r7, #4] + 8002bc0: 6039 str r1, [r7, #0] uint32_t position; uint32_t ioposition = 0x00U; - 8002bc6: 2300 movs r3, #0 - 8002bc8: 617b str r3, [r7, #20] + 8002bc2: 2300 movs r3, #0 + 8002bc4: 617b str r3, [r7, #20] uint32_t iocurrent = 0x00U; - 8002bca: 2300 movs r3, #0 - 8002bcc: 613b str r3, [r7, #16] + 8002bc6: 2300 movs r3, #0 + 8002bc8: 613b str r3, [r7, #16] uint32_t temp = 0x00U; - 8002bce: 2300 movs r3, #0 - 8002bd0: 61bb str r3, [r7, #24] + 8002bca: 2300 movs r3, #0 + 8002bcc: 61bb str r3, [r7, #24] assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); /* Configure the port pins */ for(position = 0U; position < GPIO_NUMBER; position++) - 8002bd2: 2300 movs r3, #0 - 8002bd4: 61fb str r3, [r7, #28] - 8002bd6: e177 b.n 8002ec8 + 8002bce: 2300 movs r3, #0 + 8002bd0: 61fb str r3, [r7, #28] + 8002bd2: e177 b.n 8002ec4 { /* Get the IO position */ ioposition = 0x01U << position; - 8002bd8: 2201 movs r2, #1 - 8002bda: 69fb ldr r3, [r7, #28] - 8002bdc: fa02 f303 lsl.w r3, r2, r3 - 8002be0: 617b str r3, [r7, #20] + 8002bd4: 2201 movs r2, #1 + 8002bd6: 69fb ldr r3, [r7, #28] + 8002bd8: fa02 f303 lsl.w r3, r2, r3 + 8002bdc: 617b str r3, [r7, #20] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 8002be2: 683b ldr r3, [r7, #0] - 8002be4: 681b ldr r3, [r3, #0] - 8002be6: 697a ldr r2, [r7, #20] - 8002be8: 4013 ands r3, r2 - 8002bea: 613b str r3, [r7, #16] + 8002bde: 683b ldr r3, [r7, #0] + 8002be0: 681b ldr r3, [r3, #0] + 8002be2: 697a ldr r2, [r7, #20] + 8002be4: 4013 ands r3, r2 + 8002be6: 613b str r3, [r7, #16] if(iocurrent == ioposition) - 8002bec: 693a ldr r2, [r7, #16] - 8002bee: 697b ldr r3, [r7, #20] - 8002bf0: 429a cmp r2, r3 - 8002bf2: f040 8166 bne.w 8002ec2 + 8002be8: 693a ldr r2, [r7, #16] + 8002bea: 697b ldr r3, [r7, #20] + 8002bec: 429a cmp r2, r3 + 8002bee: f040 8166 bne.w 8002ebe { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 8002bf6: 683b ldr r3, [r7, #0] - 8002bf8: 685b ldr r3, [r3, #4] - 8002bfa: f003 0303 and.w r3, r3, #3 - 8002bfe: 2b01 cmp r3, #1 - 8002c00: d005 beq.n 8002c0e + 8002bf2: 683b ldr r3, [r7, #0] + 8002bf4: 685b ldr r3, [r3, #4] + 8002bf6: f003 0303 and.w r3, r3, #3 + 8002bfa: 2b01 cmp r3, #1 + 8002bfc: d005 beq.n 8002c0a (GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8002c02: 683b ldr r3, [r7, #0] - 8002c04: 685b ldr r3, [r3, #4] - 8002c06: f003 0303 and.w r3, r3, #3 + 8002bfe: 683b ldr r3, [r7, #0] + 8002c00: 685b ldr r3, [r3, #4] + 8002c02: f003 0303 and.w r3, r3, #3 if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 8002c0a: 2b02 cmp r3, #2 - 8002c0c: d130 bne.n 8002c70 + 8002c06: 2b02 cmp r3, #2 + 8002c08: d130 bne.n 8002c6c { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; - 8002c0e: 687b ldr r3, [r7, #4] - 8002c10: 689b ldr r3, [r3, #8] - 8002c12: 61bb str r3, [r7, #24] + 8002c0a: 687b ldr r3, [r7, #4] + 8002c0c: 689b ldr r3, [r3, #8] + 8002c0e: 61bb str r3, [r7, #24] temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); - 8002c14: 69fb ldr r3, [r7, #28] - 8002c16: 005b lsls r3, r3, #1 - 8002c18: 2203 movs r2, #3 - 8002c1a: fa02 f303 lsl.w r3, r2, r3 - 8002c1e: 43db mvns r3, r3 - 8002c20: 69ba ldr r2, [r7, #24] - 8002c22: 4013 ands r3, r2 - 8002c24: 61bb str r3, [r7, #24] + 8002c10: 69fb ldr r3, [r7, #28] + 8002c12: 005b lsls r3, r3, #1 + 8002c14: 2203 movs r2, #3 + 8002c16: fa02 f303 lsl.w r3, r2, r3 + 8002c1a: 43db mvns r3, r3 + 8002c1c: 69ba ldr r2, [r7, #24] + 8002c1e: 4013 ands r3, r2 + 8002c20: 61bb str r3, [r7, #24] temp |= (GPIO_Init->Speed << (position * 2U)); - 8002c26: 683b ldr r3, [r7, #0] - 8002c28: 68da ldr r2, [r3, #12] - 8002c2a: 69fb ldr r3, [r7, #28] - 8002c2c: 005b lsls r3, r3, #1 - 8002c2e: fa02 f303 lsl.w r3, r2, r3 - 8002c32: 69ba ldr r2, [r7, #24] - 8002c34: 4313 orrs r3, r2 - 8002c36: 61bb str r3, [r7, #24] + 8002c22: 683b ldr r3, [r7, #0] + 8002c24: 68da ldr r2, [r3, #12] + 8002c26: 69fb ldr r3, [r7, #28] + 8002c28: 005b lsls r3, r3, #1 + 8002c2a: fa02 f303 lsl.w r3, r2, r3 + 8002c2e: 69ba ldr r2, [r7, #24] + 8002c30: 4313 orrs r3, r2 + 8002c32: 61bb str r3, [r7, #24] GPIOx->OSPEEDR = temp; - 8002c38: 687b ldr r3, [r7, #4] - 8002c3a: 69ba ldr r2, [r7, #24] - 8002c3c: 609a str r2, [r3, #8] + 8002c34: 687b ldr r3, [r7, #4] + 8002c36: 69ba ldr r2, [r7, #24] + 8002c38: 609a str r2, [r3, #8] /* Configure the IO Output Type */ temp = GPIOx->OTYPER; - 8002c3e: 687b ldr r3, [r7, #4] - 8002c40: 685b ldr r3, [r3, #4] - 8002c42: 61bb str r3, [r7, #24] + 8002c3a: 687b ldr r3, [r7, #4] + 8002c3c: 685b ldr r3, [r3, #4] + 8002c3e: 61bb str r3, [r7, #24] temp &= ~(GPIO_OTYPER_OT_0 << position) ; - 8002c44: 2201 movs r2, #1 - 8002c46: 69fb ldr r3, [r7, #28] - 8002c48: fa02 f303 lsl.w r3, r2, r3 - 8002c4c: 43db mvns r3, r3 - 8002c4e: 69ba ldr r2, [r7, #24] - 8002c50: 4013 ands r3, r2 - 8002c52: 61bb str r3, [r7, #24] + 8002c40: 2201 movs r2, #1 + 8002c42: 69fb ldr r3, [r7, #28] + 8002c44: fa02 f303 lsl.w r3, r2, r3 + 8002c48: 43db mvns r3, r3 + 8002c4a: 69ba ldr r2, [r7, #24] + 8002c4c: 4013 ands r3, r2 + 8002c4e: 61bb str r3, [r7, #24] temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - 8002c54: 683b ldr r3, [r7, #0] - 8002c56: 685b ldr r3, [r3, #4] - 8002c58: 091b lsrs r3, r3, #4 - 8002c5a: f003 0201 and.w r2, r3, #1 - 8002c5e: 69fb ldr r3, [r7, #28] - 8002c60: fa02 f303 lsl.w r3, r2, r3 - 8002c64: 69ba ldr r2, [r7, #24] - 8002c66: 4313 orrs r3, r2 - 8002c68: 61bb str r3, [r7, #24] + 8002c50: 683b ldr r3, [r7, #0] + 8002c52: 685b ldr r3, [r3, #4] + 8002c54: 091b lsrs r3, r3, #4 + 8002c56: f003 0201 and.w r2, r3, #1 + 8002c5a: 69fb ldr r3, [r7, #28] + 8002c5c: fa02 f303 lsl.w r3, r2, r3 + 8002c60: 69ba ldr r2, [r7, #24] + 8002c62: 4313 orrs r3, r2 + 8002c64: 61bb str r3, [r7, #24] GPIOx->OTYPER = temp; - 8002c6a: 687b ldr r3, [r7, #4] - 8002c6c: 69ba ldr r2, [r7, #24] - 8002c6e: 605a str r2, [r3, #4] + 8002c66: 687b ldr r3, [r7, #4] + 8002c68: 69ba ldr r2, [r7, #24] + 8002c6a: 605a str r2, [r3, #4] } if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - 8002c70: 683b ldr r3, [r7, #0] - 8002c72: 685b ldr r3, [r3, #4] - 8002c74: f003 0303 and.w r3, r3, #3 - 8002c78: 2b03 cmp r3, #3 - 8002c7a: d017 beq.n 8002cac + 8002c6c: 683b ldr r3, [r7, #0] + 8002c6e: 685b ldr r3, [r3, #4] + 8002c70: f003 0303 and.w r3, r3, #3 + 8002c74: 2b03 cmp r3, #3 + 8002c76: d017 beq.n 8002ca8 { /* Check the parameters */ assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); /* Activate the Pull-up or Pull down resistor for the current IO */ temp = GPIOx->PUPDR; - 8002c7c: 687b ldr r3, [r7, #4] - 8002c7e: 68db ldr r3, [r3, #12] - 8002c80: 61bb str r3, [r7, #24] + 8002c78: 687b ldr r3, [r7, #4] + 8002c7a: 68db ldr r3, [r3, #12] + 8002c7c: 61bb str r3, [r7, #24] temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); - 8002c82: 69fb ldr r3, [r7, #28] - 8002c84: 005b lsls r3, r3, #1 - 8002c86: 2203 movs r2, #3 - 8002c88: fa02 f303 lsl.w r3, r2, r3 - 8002c8c: 43db mvns r3, r3 - 8002c8e: 69ba ldr r2, [r7, #24] - 8002c90: 4013 ands r3, r2 - 8002c92: 61bb str r3, [r7, #24] + 8002c7e: 69fb ldr r3, [r7, #28] + 8002c80: 005b lsls r3, r3, #1 + 8002c82: 2203 movs r2, #3 + 8002c84: fa02 f303 lsl.w r3, r2, r3 + 8002c88: 43db mvns r3, r3 + 8002c8a: 69ba ldr r2, [r7, #24] + 8002c8c: 4013 ands r3, r2 + 8002c8e: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Pull) << (position * 2U)); - 8002c94: 683b ldr r3, [r7, #0] - 8002c96: 689a ldr r2, [r3, #8] - 8002c98: 69fb ldr r3, [r7, #28] - 8002c9a: 005b lsls r3, r3, #1 - 8002c9c: fa02 f303 lsl.w r3, r2, r3 - 8002ca0: 69ba ldr r2, [r7, #24] - 8002ca2: 4313 orrs r3, r2 - 8002ca4: 61bb str r3, [r7, #24] + 8002c90: 683b ldr r3, [r7, #0] + 8002c92: 689a ldr r2, [r3, #8] + 8002c94: 69fb ldr r3, [r7, #28] + 8002c96: 005b lsls r3, r3, #1 + 8002c98: fa02 f303 lsl.w r3, r2, r3 + 8002c9c: 69ba ldr r2, [r7, #24] + 8002c9e: 4313 orrs r3, r2 + 8002ca0: 61bb str r3, [r7, #24] GPIOx->PUPDR = temp; - 8002ca6: 687b ldr r3, [r7, #4] - 8002ca8: 69ba ldr r2, [r7, #24] - 8002caa: 60da str r2, [r3, #12] + 8002ca2: 687b ldr r3, [r7, #4] + 8002ca4: 69ba ldr r2, [r7, #24] + 8002ca6: 60da str r2, [r3, #12] } /* In case of Alternate function mode selection */ if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8002cac: 683b ldr r3, [r7, #0] - 8002cae: 685b ldr r3, [r3, #4] - 8002cb0: f003 0303 and.w r3, r3, #3 - 8002cb4: 2b02 cmp r3, #2 - 8002cb6: d123 bne.n 8002d00 + 8002ca8: 683b ldr r3, [r7, #0] + 8002caa: 685b ldr r3, [r3, #4] + 8002cac: f003 0303 and.w r3, r3, #3 + 8002cb0: 2b02 cmp r3, #2 + 8002cb2: d123 bne.n 8002cfc { /* Check the Alternate function parameter */ assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); /* Configure Alternate function mapped with the current IO */ temp = GPIOx->AFR[position >> 3U]; - 8002cb8: 69fb ldr r3, [r7, #28] - 8002cba: 08da lsrs r2, r3, #3 - 8002cbc: 687b ldr r3, [r7, #4] - 8002cbe: 3208 adds r2, #8 - 8002cc0: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8002cc4: 61bb str r3, [r7, #24] + 8002cb4: 69fb ldr r3, [r7, #28] + 8002cb6: 08da lsrs r2, r3, #3 + 8002cb8: 687b ldr r3, [r7, #4] + 8002cba: 3208 adds r2, #8 + 8002cbc: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002cc0: 61bb str r3, [r7, #24] temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; - 8002cc6: 69fb ldr r3, [r7, #28] - 8002cc8: f003 0307 and.w r3, r3, #7 - 8002ccc: 009b lsls r3, r3, #2 - 8002cce: 220f movs r2, #15 - 8002cd0: fa02 f303 lsl.w r3, r2, r3 - 8002cd4: 43db mvns r3, r3 - 8002cd6: 69ba ldr r2, [r7, #24] - 8002cd8: 4013 ands r3, r2 - 8002cda: 61bb str r3, [r7, #24] + 8002cc2: 69fb ldr r3, [r7, #28] + 8002cc4: f003 0307 and.w r3, r3, #7 + 8002cc8: 009b lsls r3, r3, #2 + 8002cca: 220f movs r2, #15 + 8002ccc: fa02 f303 lsl.w r3, r2, r3 + 8002cd0: 43db mvns r3, r3 + 8002cd2: 69ba ldr r2, [r7, #24] + 8002cd4: 4013 ands r3, r2 + 8002cd6: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); - 8002cdc: 683b ldr r3, [r7, #0] - 8002cde: 691a ldr r2, [r3, #16] - 8002ce0: 69fb ldr r3, [r7, #28] - 8002ce2: f003 0307 and.w r3, r3, #7 - 8002ce6: 009b lsls r3, r3, #2 - 8002ce8: fa02 f303 lsl.w r3, r2, r3 - 8002cec: 69ba ldr r2, [r7, #24] - 8002cee: 4313 orrs r3, r2 - 8002cf0: 61bb str r3, [r7, #24] + 8002cd8: 683b ldr r3, [r7, #0] + 8002cda: 691a ldr r2, [r3, #16] + 8002cdc: 69fb ldr r3, [r7, #28] + 8002cde: f003 0307 and.w r3, r3, #7 + 8002ce2: 009b lsls r3, r3, #2 + 8002ce4: fa02 f303 lsl.w r3, r2, r3 + 8002ce8: 69ba ldr r2, [r7, #24] + 8002cea: 4313 orrs r3, r2 + 8002cec: 61bb str r3, [r7, #24] GPIOx->AFR[position >> 3U] = temp; - 8002cf2: 69fb ldr r3, [r7, #28] - 8002cf4: 08da lsrs r2, r3, #3 - 8002cf6: 687b ldr r3, [r7, #4] - 8002cf8: 3208 adds r2, #8 - 8002cfa: 69b9 ldr r1, [r7, #24] - 8002cfc: f843 1022 str.w r1, [r3, r2, lsl #2] + 8002cee: 69fb ldr r3, [r7, #28] + 8002cf0: 08da lsrs r2, r3, #3 + 8002cf2: 687b ldr r3, [r7, #4] + 8002cf4: 3208 adds r2, #8 + 8002cf6: 69b9 ldr r1, [r7, #24] + 8002cf8: f843 1022 str.w r1, [r3, r2, lsl #2] } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; - 8002d00: 687b ldr r3, [r7, #4] - 8002d02: 681b ldr r3, [r3, #0] - 8002d04: 61bb str r3, [r7, #24] + 8002cfc: 687b ldr r3, [r7, #4] + 8002cfe: 681b ldr r3, [r3, #0] + 8002d00: 61bb str r3, [r7, #24] temp &= ~(GPIO_MODER_MODER0 << (position * 2U)); - 8002d06: 69fb ldr r3, [r7, #28] - 8002d08: 005b lsls r3, r3, #1 - 8002d0a: 2203 movs r2, #3 - 8002d0c: fa02 f303 lsl.w r3, r2, r3 - 8002d10: 43db mvns r3, r3 - 8002d12: 69ba ldr r2, [r7, #24] - 8002d14: 4013 ands r3, r2 - 8002d16: 61bb str r3, [r7, #24] + 8002d02: 69fb ldr r3, [r7, #28] + 8002d04: 005b lsls r3, r3, #1 + 8002d06: 2203 movs r2, #3 + 8002d08: fa02 f303 lsl.w r3, r2, r3 + 8002d0c: 43db mvns r3, r3 + 8002d0e: 69ba ldr r2, [r7, #24] + 8002d10: 4013 ands r3, r2 + 8002d12: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 8002d18: 683b ldr r3, [r7, #0] - 8002d1a: 685b ldr r3, [r3, #4] - 8002d1c: f003 0203 and.w r2, r3, #3 - 8002d20: 69fb ldr r3, [r7, #28] - 8002d22: 005b lsls r3, r3, #1 - 8002d24: fa02 f303 lsl.w r3, r2, r3 - 8002d28: 69ba ldr r2, [r7, #24] - 8002d2a: 4313 orrs r3, r2 - 8002d2c: 61bb str r3, [r7, #24] + 8002d14: 683b ldr r3, [r7, #0] + 8002d16: 685b ldr r3, [r3, #4] + 8002d18: f003 0203 and.w r2, r3, #3 + 8002d1c: 69fb ldr r3, [r7, #28] + 8002d1e: 005b lsls r3, r3, #1 + 8002d20: fa02 f303 lsl.w r3, r2, r3 + 8002d24: 69ba ldr r2, [r7, #24] + 8002d26: 4313 orrs r3, r2 + 8002d28: 61bb str r3, [r7, #24] GPIOx->MODER = temp; - 8002d2e: 687b ldr r3, [r7, #4] - 8002d30: 69ba ldr r2, [r7, #24] - 8002d32: 601a str r2, [r3, #0] + 8002d2a: 687b ldr r3, [r7, #4] + 8002d2c: 69ba ldr r2, [r7, #24] + 8002d2e: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if((GPIO_Init->Mode & EXTI_MODE) != 0x00U) - 8002d34: 683b ldr r3, [r7, #0] - 8002d36: 685b ldr r3, [r3, #4] - 8002d38: f403 3340 and.w r3, r3, #196608 ; 0x30000 - 8002d3c: 2b00 cmp r3, #0 - 8002d3e: f000 80c0 beq.w 8002ec2 + 8002d30: 683b ldr r3, [r7, #0] + 8002d32: 685b ldr r3, [r3, #4] + 8002d34: f403 3340 and.w r3, r3, #196608 ; 0x30000 + 8002d38: 2b00 cmp r3, #0 + 8002d3a: f000 80c0 beq.w 8002ebe { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8002d42: 2300 movs r3, #0 - 8002d44: 60fb str r3, [r7, #12] - 8002d46: 4b66 ldr r3, [pc, #408] ; (8002ee0 ) - 8002d48: 6c5b ldr r3, [r3, #68] ; 0x44 - 8002d4a: 4a65 ldr r2, [pc, #404] ; (8002ee0 ) - 8002d4c: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 8002d50: 6453 str r3, [r2, #68] ; 0x44 - 8002d52: 4b63 ldr r3, [pc, #396] ; (8002ee0 ) - 8002d54: 6c5b ldr r3, [r3, #68] ; 0x44 - 8002d56: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 8002d5a: 60fb str r3, [r7, #12] - 8002d5c: 68fb ldr r3, [r7, #12] + 8002d3e: 2300 movs r3, #0 + 8002d40: 60fb str r3, [r7, #12] + 8002d42: 4b66 ldr r3, [pc, #408] ; (8002edc ) + 8002d44: 6c5b ldr r3, [r3, #68] ; 0x44 + 8002d46: 4a65 ldr r2, [pc, #404] ; (8002edc ) + 8002d48: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 8002d4c: 6453 str r3, [r2, #68] ; 0x44 + 8002d4e: 4b63 ldr r3, [pc, #396] ; (8002edc ) + 8002d50: 6c5b ldr r3, [r3, #68] ; 0x44 + 8002d52: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 8002d56: 60fb str r3, [r7, #12] + 8002d58: 68fb ldr r3, [r7, #12] temp = SYSCFG->EXTICR[position >> 2U]; - 8002d5e: 4a61 ldr r2, [pc, #388] ; (8002ee4 ) - 8002d60: 69fb ldr r3, [r7, #28] - 8002d62: 089b lsrs r3, r3, #2 - 8002d64: 3302 adds r3, #2 - 8002d66: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8002d6a: 61bb str r3, [r7, #24] + 8002d5a: 4a61 ldr r2, [pc, #388] ; (8002ee0 ) + 8002d5c: 69fb ldr r3, [r7, #28] + 8002d5e: 089b lsrs r3, r3, #2 + 8002d60: 3302 adds r3, #2 + 8002d62: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8002d66: 61bb str r3, [r7, #24] temp &= ~(0x0FU << (4U * (position & 0x03U))); - 8002d6c: 69fb ldr r3, [r7, #28] - 8002d6e: f003 0303 and.w r3, r3, #3 - 8002d72: 009b lsls r3, r3, #2 - 8002d74: 220f movs r2, #15 - 8002d76: fa02 f303 lsl.w r3, r2, r3 - 8002d7a: 43db mvns r3, r3 - 8002d7c: 69ba ldr r2, [r7, #24] - 8002d7e: 4013 ands r3, r2 - 8002d80: 61bb str r3, [r7, #24] + 8002d68: 69fb ldr r3, [r7, #28] + 8002d6a: f003 0303 and.w r3, r3, #3 + 8002d6e: 009b lsls r3, r3, #2 + 8002d70: 220f movs r2, #15 + 8002d72: fa02 f303 lsl.w r3, r2, r3 + 8002d76: 43db mvns r3, r3 + 8002d78: 69ba ldr r2, [r7, #24] + 8002d7a: 4013 ands r3, r2 + 8002d7c: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); - 8002d82: 687b ldr r3, [r7, #4] - 8002d84: 4a58 ldr r2, [pc, #352] ; (8002ee8 ) - 8002d86: 4293 cmp r3, r2 - 8002d88: d037 beq.n 8002dfa - 8002d8a: 687b ldr r3, [r7, #4] - 8002d8c: 4a57 ldr r2, [pc, #348] ; (8002eec ) - 8002d8e: 4293 cmp r3, r2 - 8002d90: d031 beq.n 8002df6 - 8002d92: 687b ldr r3, [r7, #4] - 8002d94: 4a56 ldr r2, [pc, #344] ; (8002ef0 ) - 8002d96: 4293 cmp r3, r2 - 8002d98: d02b beq.n 8002df2 - 8002d9a: 687b ldr r3, [r7, #4] - 8002d9c: 4a55 ldr r2, [pc, #340] ; (8002ef4 ) - 8002d9e: 4293 cmp r3, r2 - 8002da0: d025 beq.n 8002dee - 8002da2: 687b ldr r3, [r7, #4] - 8002da4: 4a54 ldr r2, [pc, #336] ; (8002ef8 ) - 8002da6: 4293 cmp r3, r2 - 8002da8: d01f beq.n 8002dea - 8002daa: 687b ldr r3, [r7, #4] - 8002dac: 4a53 ldr r2, [pc, #332] ; (8002efc ) - 8002dae: 4293 cmp r3, r2 - 8002db0: d019 beq.n 8002de6 - 8002db2: 687b ldr r3, [r7, #4] - 8002db4: 4a52 ldr r2, [pc, #328] ; (8002f00 ) - 8002db6: 4293 cmp r3, r2 - 8002db8: d013 beq.n 8002de2 - 8002dba: 687b ldr r3, [r7, #4] - 8002dbc: 4a51 ldr r2, [pc, #324] ; (8002f04 ) - 8002dbe: 4293 cmp r3, r2 - 8002dc0: d00d beq.n 8002dde - 8002dc2: 687b ldr r3, [r7, #4] - 8002dc4: 4a50 ldr r2, [pc, #320] ; (8002f08 ) - 8002dc6: 4293 cmp r3, r2 - 8002dc8: d007 beq.n 8002dda - 8002dca: 687b ldr r3, [r7, #4] - 8002dcc: 4a4f ldr r2, [pc, #316] ; (8002f0c ) - 8002dce: 4293 cmp r3, r2 - 8002dd0: d101 bne.n 8002dd6 - 8002dd2: 2309 movs r3, #9 - 8002dd4: e012 b.n 8002dfc - 8002dd6: 230a movs r3, #10 - 8002dd8: e010 b.n 8002dfc - 8002dda: 2308 movs r3, #8 - 8002ddc: e00e b.n 8002dfc - 8002dde: 2307 movs r3, #7 - 8002de0: e00c b.n 8002dfc - 8002de2: 2306 movs r3, #6 - 8002de4: e00a b.n 8002dfc - 8002de6: 2305 movs r3, #5 - 8002de8: e008 b.n 8002dfc - 8002dea: 2304 movs r3, #4 - 8002dec: e006 b.n 8002dfc - 8002dee: 2303 movs r3, #3 - 8002df0: e004 b.n 8002dfc - 8002df2: 2302 movs r3, #2 - 8002df4: e002 b.n 8002dfc - 8002df6: 2301 movs r3, #1 - 8002df8: e000 b.n 8002dfc - 8002dfa: 2300 movs r3, #0 - 8002dfc: 69fa ldr r2, [r7, #28] - 8002dfe: f002 0203 and.w r2, r2, #3 - 8002e02: 0092 lsls r2, r2, #2 - 8002e04: 4093 lsls r3, r2 - 8002e06: 69ba ldr r2, [r7, #24] - 8002e08: 4313 orrs r3, r2 - 8002e0a: 61bb str r3, [r7, #24] + 8002d7e: 687b ldr r3, [r7, #4] + 8002d80: 4a58 ldr r2, [pc, #352] ; (8002ee4 ) + 8002d82: 4293 cmp r3, r2 + 8002d84: d037 beq.n 8002df6 + 8002d86: 687b ldr r3, [r7, #4] + 8002d88: 4a57 ldr r2, [pc, #348] ; (8002ee8 ) + 8002d8a: 4293 cmp r3, r2 + 8002d8c: d031 beq.n 8002df2 + 8002d8e: 687b ldr r3, [r7, #4] + 8002d90: 4a56 ldr r2, [pc, #344] ; (8002eec ) + 8002d92: 4293 cmp r3, r2 + 8002d94: d02b beq.n 8002dee + 8002d96: 687b ldr r3, [r7, #4] + 8002d98: 4a55 ldr r2, [pc, #340] ; (8002ef0 ) + 8002d9a: 4293 cmp r3, r2 + 8002d9c: d025 beq.n 8002dea + 8002d9e: 687b ldr r3, [r7, #4] + 8002da0: 4a54 ldr r2, [pc, #336] ; (8002ef4 ) + 8002da2: 4293 cmp r3, r2 + 8002da4: d01f beq.n 8002de6 + 8002da6: 687b ldr r3, [r7, #4] + 8002da8: 4a53 ldr r2, [pc, #332] ; (8002ef8 ) + 8002daa: 4293 cmp r3, r2 + 8002dac: d019 beq.n 8002de2 + 8002dae: 687b ldr r3, [r7, #4] + 8002db0: 4a52 ldr r2, [pc, #328] ; (8002efc ) + 8002db2: 4293 cmp r3, r2 + 8002db4: d013 beq.n 8002dde + 8002db6: 687b ldr r3, [r7, #4] + 8002db8: 4a51 ldr r2, [pc, #324] ; (8002f00 ) + 8002dba: 4293 cmp r3, r2 + 8002dbc: d00d beq.n 8002dda + 8002dbe: 687b ldr r3, [r7, #4] + 8002dc0: 4a50 ldr r2, [pc, #320] ; (8002f04 ) + 8002dc2: 4293 cmp r3, r2 + 8002dc4: d007 beq.n 8002dd6 + 8002dc6: 687b ldr r3, [r7, #4] + 8002dc8: 4a4f ldr r2, [pc, #316] ; (8002f08 ) + 8002dca: 4293 cmp r3, r2 + 8002dcc: d101 bne.n 8002dd2 + 8002dce: 2309 movs r3, #9 + 8002dd0: e012 b.n 8002df8 + 8002dd2: 230a movs r3, #10 + 8002dd4: e010 b.n 8002df8 + 8002dd6: 2308 movs r3, #8 + 8002dd8: e00e b.n 8002df8 + 8002dda: 2307 movs r3, #7 + 8002ddc: e00c b.n 8002df8 + 8002dde: 2306 movs r3, #6 + 8002de0: e00a b.n 8002df8 + 8002de2: 2305 movs r3, #5 + 8002de4: e008 b.n 8002df8 + 8002de6: 2304 movs r3, #4 + 8002de8: e006 b.n 8002df8 + 8002dea: 2303 movs r3, #3 + 8002dec: e004 b.n 8002df8 + 8002dee: 2302 movs r3, #2 + 8002df0: e002 b.n 8002df8 + 8002df2: 2301 movs r3, #1 + 8002df4: e000 b.n 8002df8 + 8002df6: 2300 movs r3, #0 + 8002df8: 69fa ldr r2, [r7, #28] + 8002dfa: f002 0203 and.w r2, r2, #3 + 8002dfe: 0092 lsls r2, r2, #2 + 8002e00: 4093 lsls r3, r2 + 8002e02: 69ba ldr r2, [r7, #24] + 8002e04: 4313 orrs r3, r2 + 8002e06: 61bb str r3, [r7, #24] SYSCFG->EXTICR[position >> 2U] = temp; - 8002e0c: 4935 ldr r1, [pc, #212] ; (8002ee4 ) - 8002e0e: 69fb ldr r3, [r7, #28] - 8002e10: 089b lsrs r3, r3, #2 - 8002e12: 3302 adds r3, #2 - 8002e14: 69ba ldr r2, [r7, #24] - 8002e16: f841 2023 str.w r2, [r1, r3, lsl #2] + 8002e08: 4935 ldr r1, [pc, #212] ; (8002ee0 ) + 8002e0a: 69fb ldr r3, [r7, #28] + 8002e0c: 089b lsrs r3, r3, #2 + 8002e0e: 3302 adds r3, #2 + 8002e10: 69ba ldr r2, [r7, #24] + 8002e12: f841 2023 str.w r2, [r1, r3, lsl #2] /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR; - 8002e1a: 4b3d ldr r3, [pc, #244] ; (8002f10 ) - 8002e1c: 689b ldr r3, [r3, #8] - 8002e1e: 61bb str r3, [r7, #24] + 8002e16: 4b3d ldr r3, [pc, #244] ; (8002f0c ) + 8002e18: 689b ldr r3, [r3, #8] + 8002e1a: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8002e20: 693b ldr r3, [r7, #16] - 8002e22: 43db mvns r3, r3 - 8002e24: 69ba ldr r2, [r7, #24] - 8002e26: 4013 ands r3, r2 - 8002e28: 61bb str r3, [r7, #24] + 8002e1c: 693b ldr r3, [r7, #16] + 8002e1e: 43db mvns r3, r3 + 8002e20: 69ba ldr r2, [r7, #24] + 8002e22: 4013 ands r3, r2 + 8002e24: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) - 8002e2a: 683b ldr r3, [r7, #0] - 8002e2c: 685b ldr r3, [r3, #4] - 8002e2e: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 8002e32: 2b00 cmp r3, #0 - 8002e34: d003 beq.n 8002e3e + 8002e26: 683b ldr r3, [r7, #0] + 8002e28: 685b ldr r3, [r3, #4] + 8002e2a: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 8002e2e: 2b00 cmp r3, #0 + 8002e30: d003 beq.n 8002e3a { temp |= iocurrent; - 8002e36: 69ba ldr r2, [r7, #24] - 8002e38: 693b ldr r3, [r7, #16] - 8002e3a: 4313 orrs r3, r2 - 8002e3c: 61bb str r3, [r7, #24] + 8002e32: 69ba ldr r2, [r7, #24] + 8002e34: 693b ldr r3, [r7, #16] + 8002e36: 4313 orrs r3, r2 + 8002e38: 61bb str r3, [r7, #24] } EXTI->RTSR = temp; - 8002e3e: 4a34 ldr r2, [pc, #208] ; (8002f10 ) - 8002e40: 69bb ldr r3, [r7, #24] - 8002e42: 6093 str r3, [r2, #8] + 8002e3a: 4a34 ldr r2, [pc, #208] ; (8002f0c ) + 8002e3c: 69bb ldr r3, [r7, #24] + 8002e3e: 6093 str r3, [r2, #8] temp = EXTI->FTSR; - 8002e44: 4b32 ldr r3, [pc, #200] ; (8002f10 ) - 8002e46: 68db ldr r3, [r3, #12] - 8002e48: 61bb str r3, [r7, #24] + 8002e40: 4b32 ldr r3, [pc, #200] ; (8002f0c ) + 8002e42: 68db ldr r3, [r3, #12] + 8002e44: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8002e4a: 693b ldr r3, [r7, #16] - 8002e4c: 43db mvns r3, r3 - 8002e4e: 69ba ldr r2, [r7, #24] - 8002e50: 4013 ands r3, r2 - 8002e52: 61bb str r3, [r7, #24] + 8002e46: 693b ldr r3, [r7, #16] + 8002e48: 43db mvns r3, r3 + 8002e4a: 69ba ldr r2, [r7, #24] + 8002e4c: 4013 ands r3, r2 + 8002e4e: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) - 8002e54: 683b ldr r3, [r7, #0] - 8002e56: 685b ldr r3, [r3, #4] - 8002e58: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8002e5c: 2b00 cmp r3, #0 - 8002e5e: d003 beq.n 8002e68 + 8002e50: 683b ldr r3, [r7, #0] + 8002e52: 685b ldr r3, [r3, #4] + 8002e54: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8002e58: 2b00 cmp r3, #0 + 8002e5a: d003 beq.n 8002e64 { temp |= iocurrent; - 8002e60: 69ba ldr r2, [r7, #24] - 8002e62: 693b ldr r3, [r7, #16] - 8002e64: 4313 orrs r3, r2 - 8002e66: 61bb str r3, [r7, #24] + 8002e5c: 69ba ldr r2, [r7, #24] + 8002e5e: 693b ldr r3, [r7, #16] + 8002e60: 4313 orrs r3, r2 + 8002e62: 61bb str r3, [r7, #24] } EXTI->FTSR = temp; - 8002e68: 4a29 ldr r2, [pc, #164] ; (8002f10 ) - 8002e6a: 69bb ldr r3, [r7, #24] - 8002e6c: 60d3 str r3, [r2, #12] + 8002e64: 4a29 ldr r2, [pc, #164] ; (8002f0c ) + 8002e66: 69bb ldr r3, [r7, #24] + 8002e68: 60d3 str r3, [r2, #12] temp = EXTI->EMR; - 8002e6e: 4b28 ldr r3, [pc, #160] ; (8002f10 ) - 8002e70: 685b ldr r3, [r3, #4] - 8002e72: 61bb str r3, [r7, #24] + 8002e6a: 4b28 ldr r3, [pc, #160] ; (8002f0c ) + 8002e6c: 685b ldr r3, [r3, #4] + 8002e6e: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8002e74: 693b ldr r3, [r7, #16] - 8002e76: 43db mvns r3, r3 - 8002e78: 69ba ldr r2, [r7, #24] - 8002e7a: 4013 ands r3, r2 - 8002e7c: 61bb str r3, [r7, #24] + 8002e70: 693b ldr r3, [r7, #16] + 8002e72: 43db mvns r3, r3 + 8002e74: 69ba ldr r2, [r7, #24] + 8002e76: 4013 ands r3, r2 + 8002e78: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & EXTI_EVT) != 0x00U) - 8002e7e: 683b ldr r3, [r7, #0] - 8002e80: 685b ldr r3, [r3, #4] - 8002e82: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8002e86: 2b00 cmp r3, #0 - 8002e88: d003 beq.n 8002e92 + 8002e7a: 683b ldr r3, [r7, #0] + 8002e7c: 685b ldr r3, [r3, #4] + 8002e7e: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8002e82: 2b00 cmp r3, #0 + 8002e84: d003 beq.n 8002e8e { temp |= iocurrent; - 8002e8a: 69ba ldr r2, [r7, #24] - 8002e8c: 693b ldr r3, [r7, #16] - 8002e8e: 4313 orrs r3, r2 - 8002e90: 61bb str r3, [r7, #24] + 8002e86: 69ba ldr r2, [r7, #24] + 8002e88: 693b ldr r3, [r7, #16] + 8002e8a: 4313 orrs r3, r2 + 8002e8c: 61bb str r3, [r7, #24] } EXTI->EMR = temp; - 8002e92: 4a1f ldr r2, [pc, #124] ; (8002f10 ) - 8002e94: 69bb ldr r3, [r7, #24] - 8002e96: 6053 str r3, [r2, #4] + 8002e8e: 4a1f ldr r2, [pc, #124] ; (8002f0c ) + 8002e90: 69bb ldr r3, [r7, #24] + 8002e92: 6053 str r3, [r2, #4] /* Clear EXTI line configuration */ temp = EXTI->IMR; - 8002e98: 4b1d ldr r3, [pc, #116] ; (8002f10 ) - 8002e9a: 681b ldr r3, [r3, #0] - 8002e9c: 61bb str r3, [r7, #24] + 8002e94: 4b1d ldr r3, [pc, #116] ; (8002f0c ) + 8002e96: 681b ldr r3, [r3, #0] + 8002e98: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8002e9e: 693b ldr r3, [r7, #16] - 8002ea0: 43db mvns r3, r3 - 8002ea2: 69ba ldr r2, [r7, #24] - 8002ea4: 4013 ands r3, r2 - 8002ea6: 61bb str r3, [r7, #24] + 8002e9a: 693b ldr r3, [r7, #16] + 8002e9c: 43db mvns r3, r3 + 8002e9e: 69ba ldr r2, [r7, #24] + 8002ea0: 4013 ands r3, r2 + 8002ea2: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & EXTI_IT) != 0x00U) - 8002ea8: 683b ldr r3, [r7, #0] - 8002eaa: 685b ldr r3, [r3, #4] - 8002eac: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8002eb0: 2b00 cmp r3, #0 - 8002eb2: d003 beq.n 8002ebc + 8002ea4: 683b ldr r3, [r7, #0] + 8002ea6: 685b ldr r3, [r3, #4] + 8002ea8: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8002eac: 2b00 cmp r3, #0 + 8002eae: d003 beq.n 8002eb8 { temp |= iocurrent; - 8002eb4: 69ba ldr r2, [r7, #24] - 8002eb6: 693b ldr r3, [r7, #16] - 8002eb8: 4313 orrs r3, r2 - 8002eba: 61bb str r3, [r7, #24] + 8002eb0: 69ba ldr r2, [r7, #24] + 8002eb2: 693b ldr r3, [r7, #16] + 8002eb4: 4313 orrs r3, r2 + 8002eb6: 61bb str r3, [r7, #24] } EXTI->IMR = temp; - 8002ebc: 4a14 ldr r2, [pc, #80] ; (8002f10 ) - 8002ebe: 69bb ldr r3, [r7, #24] - 8002ec0: 6013 str r3, [r2, #0] + 8002eb8: 4a14 ldr r2, [pc, #80] ; (8002f0c ) + 8002eba: 69bb ldr r3, [r7, #24] + 8002ebc: 6013 str r3, [r2, #0] for(position = 0U; position < GPIO_NUMBER; position++) - 8002ec2: 69fb ldr r3, [r7, #28] - 8002ec4: 3301 adds r3, #1 - 8002ec6: 61fb str r3, [r7, #28] - 8002ec8: 69fb ldr r3, [r7, #28] - 8002eca: 2b0f cmp r3, #15 - 8002ecc: f67f ae84 bls.w 8002bd8 + 8002ebe: 69fb ldr r3, [r7, #28] + 8002ec0: 3301 adds r3, #1 + 8002ec2: 61fb str r3, [r7, #28] + 8002ec4: 69fb ldr r3, [r7, #28] + 8002ec6: 2b0f cmp r3, #15 + 8002ec8: f67f ae84 bls.w 8002bd4 } } } } - 8002ed0: bf00 nop - 8002ed2: bf00 nop - 8002ed4: 3724 adds r7, #36 ; 0x24 - 8002ed6: 46bd mov sp, r7 - 8002ed8: f85d 7b04 ldr.w r7, [sp], #4 - 8002edc: 4770 bx lr - 8002ede: bf00 nop - 8002ee0: 40023800 .word 0x40023800 - 8002ee4: 40013800 .word 0x40013800 - 8002ee8: 40020000 .word 0x40020000 - 8002eec: 40020400 .word 0x40020400 - 8002ef0: 40020800 .word 0x40020800 - 8002ef4: 40020c00 .word 0x40020c00 - 8002ef8: 40021000 .word 0x40021000 - 8002efc: 40021400 .word 0x40021400 - 8002f00: 40021800 .word 0x40021800 - 8002f04: 40021c00 .word 0x40021c00 - 8002f08: 40022000 .word 0x40022000 - 8002f0c: 40022400 .word 0x40022400 - 8002f10: 40013c00 .word 0x40013c00 + 8002ecc: bf00 nop + 8002ece: bf00 nop + 8002ed0: 3724 adds r7, #36 ; 0x24 + 8002ed2: 46bd mov sp, r7 + 8002ed4: f85d 7b04 ldr.w r7, [sp], #4 + 8002ed8: 4770 bx lr + 8002eda: bf00 nop + 8002edc: 40023800 .word 0x40023800 + 8002ee0: 40013800 .word 0x40013800 + 8002ee4: 40020000 .word 0x40020000 + 8002ee8: 40020400 .word 0x40020400 + 8002eec: 40020800 .word 0x40020800 + 8002ef0: 40020c00 .word 0x40020c00 + 8002ef4: 40021000 .word 0x40021000 + 8002ef8: 40021400 .word 0x40021400 + 8002efc: 40021800 .word 0x40021800 + 8002f00: 40021c00 .word 0x40021c00 + 8002f04: 40022000 .word 0x40022000 + 8002f08: 40022400 .word 0x40022400 + 8002f0c: 40013c00 .word 0x40013c00 -08002f14 : +08002f10 : * @arg GPIO_PIN_RESET: to clear the port pin * @arg GPIO_PIN_SET: to set the port pin * @retval None */ void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) { - 8002f14: b480 push {r7} - 8002f16: b083 sub sp, #12 - 8002f18: af00 add r7, sp, #0 - 8002f1a: 6078 str r0, [r7, #4] - 8002f1c: 460b mov r3, r1 - 8002f1e: 807b strh r3, [r7, #2] - 8002f20: 4613 mov r3, r2 - 8002f22: 707b strb r3, [r7, #1] + 8002f10: b480 push {r7} + 8002f12: b083 sub sp, #12 + 8002f14: af00 add r7, sp, #0 + 8002f16: 6078 str r0, [r7, #4] + 8002f18: 460b mov r3, r1 + 8002f1a: 807b strh r3, [r7, #2] + 8002f1c: 4613 mov r3, r2 + 8002f1e: 707b strb r3, [r7, #1] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if(PinState != GPIO_PIN_RESET) - 8002f24: 787b ldrb r3, [r7, #1] - 8002f26: 2b00 cmp r3, #0 - 8002f28: d003 beq.n 8002f32 + 8002f20: 787b ldrb r3, [r7, #1] + 8002f22: 2b00 cmp r3, #0 + 8002f24: d003 beq.n 8002f2e { GPIOx->BSRR = GPIO_Pin; - 8002f2a: 887a ldrh r2, [r7, #2] - 8002f2c: 687b ldr r3, [r7, #4] - 8002f2e: 619a str r2, [r3, #24] + 8002f26: 887a ldrh r2, [r7, #2] + 8002f28: 687b ldr r3, [r7, #4] + 8002f2a: 619a str r2, [r3, #24] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; } } - 8002f30: e003 b.n 8002f3a + 8002f2c: e003 b.n 8002f36 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; - 8002f32: 887b ldrh r3, [r7, #2] - 8002f34: 041a lsls r2, r3, #16 - 8002f36: 687b ldr r3, [r7, #4] - 8002f38: 619a str r2, [r3, #24] + 8002f2e: 887b ldrh r3, [r7, #2] + 8002f30: 041a lsls r2, r3, #16 + 8002f32: 687b ldr r3, [r7, #4] + 8002f34: 619a str r2, [r3, #24] } - 8002f3a: bf00 nop - 8002f3c: 370c adds r7, #12 - 8002f3e: 46bd mov sp, r7 - 8002f40: f85d 7b04 ldr.w r7, [sp], #4 - 8002f44: 4770 bx lr + 8002f36: bf00 nop + 8002f38: 370c adds r7, #12 + 8002f3a: 46bd mov sp, r7 + 8002f3c: f85d 7b04 ldr.w r7, [sp], #4 + 8002f40: 4770 bx lr ... -08002f48 : +08002f44 : * supported by this API. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 8002f48: b580 push {r7, lr} - 8002f4a: b086 sub sp, #24 - 8002f4c: af00 add r7, sp, #0 - 8002f4e: 6078 str r0, [r7, #4] + 8002f44: b580 push {r7, lr} + 8002f46: b086 sub sp, #24 + 8002f48: af00 add r7, sp, #0 + 8002f4a: 6078 str r0, [r7, #4] uint32_t tickstart, pll_config; /* Check Null pointer */ if(RCC_OscInitStruct == NULL) - 8002f50: 687b ldr r3, [r7, #4] - 8002f52: 2b00 cmp r3, #0 - 8002f54: d101 bne.n 8002f5a + 8002f4c: 687b ldr r3, [r7, #4] + 8002f4e: 2b00 cmp r3, #0 + 8002f50: d101 bne.n 8002f56 { return HAL_ERROR; - 8002f56: 2301 movs r3, #1 - 8002f58: e267 b.n 800342a + 8002f52: 2301 movs r3, #1 + 8002f54: e267 b.n 8003426 } /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8002f5a: 687b ldr r3, [r7, #4] - 8002f5c: 681b ldr r3, [r3, #0] - 8002f5e: f003 0301 and.w r3, r3, #1 - 8002f62: 2b00 cmp r3, #0 - 8002f64: d075 beq.n 8003052 + 8002f56: 687b ldr r3, [r7, #4] + 8002f58: 681b ldr r3, [r3, #0] + 8002f5a: f003 0301 and.w r3, r3, #1 + 8002f5e: 2b00 cmp r3, #0 + 8002f60: d075 beq.n 800304e { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\ - 8002f66: 4b88 ldr r3, [pc, #544] ; (8003188 ) - 8002f68: 689b ldr r3, [r3, #8] - 8002f6a: f003 030c and.w r3, r3, #12 - 8002f6e: 2b04 cmp r3, #4 - 8002f70: d00c beq.n 8002f8c + 8002f62: 4b88 ldr r3, [pc, #544] ; (8003184 ) + 8002f64: 689b ldr r3, [r3, #8] + 8002f66: f003 030c and.w r3, r3, #12 + 8002f6a: 2b04 cmp r3, #4 + 8002f6c: d00c beq.n 8002f88 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 8002f72: 4b85 ldr r3, [pc, #532] ; (8003188 ) - 8002f74: 689b ldr r3, [r3, #8] - 8002f76: f003 030c and.w r3, r3, #12 + 8002f6e: 4b85 ldr r3, [pc, #532] ; (8003184 ) + 8002f70: 689b ldr r3, [r3, #8] + 8002f72: f003 030c and.w r3, r3, #12 if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\ - 8002f7a: 2b08 cmp r3, #8 - 8002f7c: d112 bne.n 8002fa4 + 8002f76: 2b08 cmp r3, #8 + 8002f78: d112 bne.n 8002fa0 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 8002f7e: 4b82 ldr r3, [pc, #520] ; (8003188 ) - 8002f80: 685b ldr r3, [r3, #4] - 8002f82: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 8002f86: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 8002f8a: d10b bne.n 8002fa4 + 8002f7a: 4b82 ldr r3, [pc, #520] ; (8003184 ) + 8002f7c: 685b ldr r3, [r3, #4] + 8002f7e: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 8002f82: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 + 8002f86: d10b bne.n 8002fa0 { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8002f8c: 4b7e ldr r3, [pc, #504] ; (8003188 ) - 8002f8e: 681b ldr r3, [r3, #0] - 8002f90: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8002f94: 2b00 cmp r3, #0 - 8002f96: d05b beq.n 8003050 - 8002f98: 687b ldr r3, [r7, #4] - 8002f9a: 685b ldr r3, [r3, #4] - 8002f9c: 2b00 cmp r3, #0 - 8002f9e: d157 bne.n 8003050 + 8002f88: 4b7e ldr r3, [pc, #504] ; (8003184 ) + 8002f8a: 681b ldr r3, [r3, #0] + 8002f8c: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8002f90: 2b00 cmp r3, #0 + 8002f92: d05b beq.n 800304c + 8002f94: 687b ldr r3, [r7, #4] + 8002f96: 685b ldr r3, [r3, #4] + 8002f98: 2b00 cmp r3, #0 + 8002f9a: d157 bne.n 800304c { return HAL_ERROR; - 8002fa0: 2301 movs r3, #1 - 8002fa2: e242 b.n 800342a + 8002f9c: 2301 movs r3, #1 + 8002f9e: e242 b.n 8003426 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8002fa4: 687b ldr r3, [r7, #4] - 8002fa6: 685b ldr r3, [r3, #4] - 8002fa8: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8002fac: d106 bne.n 8002fbc - 8002fae: 4b76 ldr r3, [pc, #472] ; (8003188 ) - 8002fb0: 681b ldr r3, [r3, #0] - 8002fb2: 4a75 ldr r2, [pc, #468] ; (8003188 ) - 8002fb4: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8002fb8: 6013 str r3, [r2, #0] - 8002fba: e01d b.n 8002ff8 - 8002fbc: 687b ldr r3, [r7, #4] - 8002fbe: 685b ldr r3, [r3, #4] - 8002fc0: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 8002fc4: d10c bne.n 8002fe0 - 8002fc6: 4b70 ldr r3, [pc, #448] ; (8003188 ) - 8002fc8: 681b ldr r3, [r3, #0] - 8002fca: 4a6f ldr r2, [pc, #444] ; (8003188 ) - 8002fcc: f443 2380 orr.w r3, r3, #262144 ; 0x40000 - 8002fd0: 6013 str r3, [r2, #0] - 8002fd2: 4b6d ldr r3, [pc, #436] ; (8003188 ) - 8002fd4: 681b ldr r3, [r3, #0] - 8002fd6: 4a6c ldr r2, [pc, #432] ; (8003188 ) - 8002fd8: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8002fdc: 6013 str r3, [r2, #0] - 8002fde: e00b b.n 8002ff8 - 8002fe0: 4b69 ldr r3, [pc, #420] ; (8003188 ) - 8002fe2: 681b ldr r3, [r3, #0] - 8002fe4: 4a68 ldr r2, [pc, #416] ; (8003188 ) - 8002fe6: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8002fea: 6013 str r3, [r2, #0] - 8002fec: 4b66 ldr r3, [pc, #408] ; (8003188 ) - 8002fee: 681b ldr r3, [r3, #0] - 8002ff0: 4a65 ldr r2, [pc, #404] ; (8003188 ) - 8002ff2: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8002ff6: 6013 str r3, [r2, #0] + 8002fa0: 687b ldr r3, [r7, #4] + 8002fa2: 685b ldr r3, [r3, #4] + 8002fa4: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8002fa8: d106 bne.n 8002fb8 + 8002faa: 4b76 ldr r3, [pc, #472] ; (8003184 ) + 8002fac: 681b ldr r3, [r3, #0] + 8002fae: 4a75 ldr r2, [pc, #468] ; (8003184 ) + 8002fb0: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8002fb4: 6013 str r3, [r2, #0] + 8002fb6: e01d b.n 8002ff4 + 8002fb8: 687b ldr r3, [r7, #4] + 8002fba: 685b ldr r3, [r3, #4] + 8002fbc: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 + 8002fc0: d10c bne.n 8002fdc + 8002fc2: 4b70 ldr r3, [pc, #448] ; (8003184 ) + 8002fc4: 681b ldr r3, [r3, #0] + 8002fc6: 4a6f ldr r2, [pc, #444] ; (8003184 ) + 8002fc8: f443 2380 orr.w r3, r3, #262144 ; 0x40000 + 8002fcc: 6013 str r3, [r2, #0] + 8002fce: 4b6d ldr r3, [pc, #436] ; (8003184 ) + 8002fd0: 681b ldr r3, [r3, #0] + 8002fd2: 4a6c ldr r2, [pc, #432] ; (8003184 ) + 8002fd4: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8002fd8: 6013 str r3, [r2, #0] + 8002fda: e00b b.n 8002ff4 + 8002fdc: 4b69 ldr r3, [pc, #420] ; (8003184 ) + 8002fde: 681b ldr r3, [r3, #0] + 8002fe0: 4a68 ldr r2, [pc, #416] ; (8003184 ) + 8002fe2: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8002fe6: 6013 str r3, [r2, #0] + 8002fe8: 4b66 ldr r3, [pc, #408] ; (8003184 ) + 8002fea: 681b ldr r3, [r3, #0] + 8002fec: 4a65 ldr r2, [pc, #404] ; (8003184 ) + 8002fee: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 8002ff2: 6013 str r3, [r2, #0] /* Check the HSE State */ if((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) - 8002ff8: 687b ldr r3, [r7, #4] - 8002ffa: 685b ldr r3, [r3, #4] - 8002ffc: 2b00 cmp r3, #0 - 8002ffe: d013 beq.n 8003028 + 8002ff4: 687b ldr r3, [r7, #4] + 8002ff6: 685b ldr r3, [r3, #4] + 8002ff8: 2b00 cmp r3, #0 + 8002ffa: d013 beq.n 8003024 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003000: f7fe fbd0 bl 80017a4 - 8003004: 6138 str r0, [r7, #16] + 8002ffc: f7fe fbd0 bl 80017a0 + 8003000: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8003006: e008 b.n 800301a + 8003002: e008 b.n 8003016 { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 8003008: f7fe fbcc bl 80017a4 - 800300c: 4602 mov r2, r0 - 800300e: 693b ldr r3, [r7, #16] - 8003010: 1ad3 subs r3, r2, r3 - 8003012: 2b64 cmp r3, #100 ; 0x64 - 8003014: d901 bls.n 800301a + 8003004: f7fe fbcc bl 80017a0 + 8003008: 4602 mov r2, r0 + 800300a: 693b ldr r3, [r7, #16] + 800300c: 1ad3 subs r3, r2, r3 + 800300e: 2b64 cmp r3, #100 ; 0x64 + 8003010: d901 bls.n 8003016 { return HAL_TIMEOUT; - 8003016: 2303 movs r3, #3 - 8003018: e207 b.n 800342a + 8003012: 2303 movs r3, #3 + 8003014: e207 b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800301a: 4b5b ldr r3, [pc, #364] ; (8003188 ) - 800301c: 681b ldr r3, [r3, #0] - 800301e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8003022: 2b00 cmp r3, #0 - 8003024: d0f0 beq.n 8003008 - 8003026: e014 b.n 8003052 + 8003016: 4b5b ldr r3, [pc, #364] ; (8003184 ) + 8003018: 681b ldr r3, [r3, #0] + 800301a: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 800301e: 2b00 cmp r3, #0 + 8003020: d0f0 beq.n 8003004 + 8003022: e014 b.n 800304e } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003028: f7fe fbbc bl 80017a4 - 800302c: 6138 str r0, [r7, #16] + 8003024: f7fe fbbc bl 80017a0 + 8003028: 6138 str r0, [r7, #16] /* Wait till HSE is bypassed or disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 800302e: e008 b.n 8003042 + 800302a: e008 b.n 800303e { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 8003030: f7fe fbb8 bl 80017a4 - 8003034: 4602 mov r2, r0 - 8003036: 693b ldr r3, [r7, #16] - 8003038: 1ad3 subs r3, r2, r3 - 800303a: 2b64 cmp r3, #100 ; 0x64 - 800303c: d901 bls.n 8003042 + 800302c: f7fe fbb8 bl 80017a0 + 8003030: 4602 mov r2, r0 + 8003032: 693b ldr r3, [r7, #16] + 8003034: 1ad3 subs r3, r2, r3 + 8003036: 2b64 cmp r3, #100 ; 0x64 + 8003038: d901 bls.n 800303e { return HAL_TIMEOUT; - 800303e: 2303 movs r3, #3 - 8003040: e1f3 b.n 800342a + 800303a: 2303 movs r3, #3 + 800303c: e1f3 b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8003042: 4b51 ldr r3, [pc, #324] ; (8003188 ) - 8003044: 681b ldr r3, [r3, #0] - 8003046: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 800304a: 2b00 cmp r3, #0 - 800304c: d1f0 bne.n 8003030 - 800304e: e000 b.n 8003052 + 800303e: 4b51 ldr r3, [pc, #324] ; (8003184 ) + 8003040: 681b ldr r3, [r3, #0] + 8003042: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8003046: 2b00 cmp r3, #0 + 8003048: d1f0 bne.n 800302c + 800304a: e000 b.n 800304e if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8003050: bf00 nop + 800304c: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 8003052: 687b ldr r3, [r7, #4] - 8003054: 681b ldr r3, [r3, #0] - 8003056: f003 0302 and.w r3, r3, #2 - 800305a: 2b00 cmp r3, #0 - 800305c: d063 beq.n 8003126 + 800304e: 687b ldr r3, [r7, #4] + 8003050: 681b ldr r3, [r3, #0] + 8003052: f003 0302 and.w r3, r3, #2 + 8003056: 2b00 cmp r3, #0 + 8003058: d063 beq.n 8003122 /* Check the parameters */ assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\ - 800305e: 4b4a ldr r3, [pc, #296] ; (8003188 ) - 8003060: 689b ldr r3, [r3, #8] - 8003062: f003 030c and.w r3, r3, #12 - 8003066: 2b00 cmp r3, #0 - 8003068: d00b beq.n 8003082 + 800305a: 4b4a ldr r3, [pc, #296] ; (8003184 ) + 800305c: 689b ldr r3, [r3, #8] + 800305e: f003 030c and.w r3, r3, #12 + 8003062: 2b00 cmp r3, #0 + 8003064: d00b beq.n 800307e ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 800306a: 4b47 ldr r3, [pc, #284] ; (8003188 ) - 800306c: 689b ldr r3, [r3, #8] - 800306e: f003 030c and.w r3, r3, #12 + 8003066: 4b47 ldr r3, [pc, #284] ; (8003184 ) + 8003068: 689b ldr r3, [r3, #8] + 800306a: f003 030c and.w r3, r3, #12 if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\ - 8003072: 2b08 cmp r3, #8 - 8003074: d11c bne.n 80030b0 + 800306e: 2b08 cmp r3, #8 + 8003070: d11c bne.n 80030ac ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 8003076: 4b44 ldr r3, [pc, #272] ; (8003188 ) - 8003078: 685b ldr r3, [r3, #4] - 800307a: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 800307e: 2b00 cmp r3, #0 - 8003080: d116 bne.n 80030b0 + 8003072: 4b44 ldr r3, [pc, #272] ; (8003184 ) + 8003074: 685b ldr r3, [r3, #4] + 8003076: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 800307a: 2b00 cmp r3, #0 + 800307c: d116 bne.n 80030ac { /* When HSI is used as system clock it will not disabled */ if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8003082: 4b41 ldr r3, [pc, #260] ; (8003188 ) - 8003084: 681b ldr r3, [r3, #0] - 8003086: f003 0302 and.w r3, r3, #2 - 800308a: 2b00 cmp r3, #0 - 800308c: d005 beq.n 800309a - 800308e: 687b ldr r3, [r7, #4] - 8003090: 68db ldr r3, [r3, #12] - 8003092: 2b01 cmp r3, #1 - 8003094: d001 beq.n 800309a + 800307e: 4b41 ldr r3, [pc, #260] ; (8003184 ) + 8003080: 681b ldr r3, [r3, #0] + 8003082: f003 0302 and.w r3, r3, #2 + 8003086: 2b00 cmp r3, #0 + 8003088: d005 beq.n 8003096 + 800308a: 687b ldr r3, [r7, #4] + 800308c: 68db ldr r3, [r3, #12] + 800308e: 2b01 cmp r3, #1 + 8003090: d001 beq.n 8003096 { return HAL_ERROR; - 8003096: 2301 movs r3, #1 - 8003098: e1c7 b.n 800342a + 8003092: 2301 movs r3, #1 + 8003094: e1c7 b.n 8003426 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 800309a: 4b3b ldr r3, [pc, #236] ; (8003188 ) - 800309c: 681b ldr r3, [r3, #0] - 800309e: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 80030a2: 687b ldr r3, [r7, #4] - 80030a4: 691b ldr r3, [r3, #16] - 80030a6: 00db lsls r3, r3, #3 - 80030a8: 4937 ldr r1, [pc, #220] ; (8003188 ) - 80030aa: 4313 orrs r3, r2 - 80030ac: 600b str r3, [r1, #0] + 8003096: 4b3b ldr r3, [pc, #236] ; (8003184 ) + 8003098: 681b ldr r3, [r3, #0] + 800309a: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 800309e: 687b ldr r3, [r7, #4] + 80030a0: 691b ldr r3, [r3, #16] + 80030a2: 00db lsls r3, r3, #3 + 80030a4: 4937 ldr r1, [pc, #220] ; (8003184 ) + 80030a6: 4313 orrs r3, r2 + 80030a8: 600b str r3, [r1, #0] if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 80030ae: e03a b.n 8003126 + 80030aa: e03a b.n 8003122 } } else { /* Check the HSI State */ if((RCC_OscInitStruct->HSIState)!= RCC_HSI_OFF) - 80030b0: 687b ldr r3, [r7, #4] - 80030b2: 68db ldr r3, [r3, #12] - 80030b4: 2b00 cmp r3, #0 - 80030b6: d020 beq.n 80030fa + 80030ac: 687b ldr r3, [r7, #4] + 80030ae: 68db ldr r3, [r3, #12] + 80030b0: 2b00 cmp r3, #0 + 80030b2: d020 beq.n 80030f6 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 80030b8: 4b34 ldr r3, [pc, #208] ; (800318c ) - 80030ba: 2201 movs r2, #1 - 80030bc: 601a str r2, [r3, #0] + 80030b4: 4b34 ldr r3, [pc, #208] ; (8003188 ) + 80030b6: 2201 movs r2, #1 + 80030b8: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80030be: f7fe fb71 bl 80017a4 - 80030c2: 6138 str r0, [r7, #16] + 80030ba: f7fe fb71 bl 80017a0 + 80030be: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 80030c4: e008 b.n 80030d8 + 80030c0: e008 b.n 80030d4 { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 80030c6: f7fe fb6d bl 80017a4 - 80030ca: 4602 mov r2, r0 - 80030cc: 693b ldr r3, [r7, #16] - 80030ce: 1ad3 subs r3, r2, r3 - 80030d0: 2b02 cmp r3, #2 - 80030d2: d901 bls.n 80030d8 + 80030c2: f7fe fb6d bl 80017a0 + 80030c6: 4602 mov r2, r0 + 80030c8: 693b ldr r3, [r7, #16] + 80030ca: 1ad3 subs r3, r2, r3 + 80030cc: 2b02 cmp r3, #2 + 80030ce: d901 bls.n 80030d4 { return HAL_TIMEOUT; - 80030d4: 2303 movs r3, #3 - 80030d6: e1a8 b.n 800342a + 80030d0: 2303 movs r3, #3 + 80030d2: e1a8 b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 80030d8: 4b2b ldr r3, [pc, #172] ; (8003188 ) - 80030da: 681b ldr r3, [r3, #0] - 80030dc: f003 0302 and.w r3, r3, #2 - 80030e0: 2b00 cmp r3, #0 - 80030e2: d0f0 beq.n 80030c6 + 80030d4: 4b2b ldr r3, [pc, #172] ; (8003184 ) + 80030d6: 681b ldr r3, [r3, #0] + 80030d8: f003 0302 and.w r3, r3, #2 + 80030dc: 2b00 cmp r3, #0 + 80030de: d0f0 beq.n 80030c2 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value. */ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 80030e4: 4b28 ldr r3, [pc, #160] ; (8003188 ) - 80030e6: 681b ldr r3, [r3, #0] - 80030e8: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 80030ec: 687b ldr r3, [r7, #4] - 80030ee: 691b ldr r3, [r3, #16] - 80030f0: 00db lsls r3, r3, #3 - 80030f2: 4925 ldr r1, [pc, #148] ; (8003188 ) - 80030f4: 4313 orrs r3, r2 - 80030f6: 600b str r3, [r1, #0] - 80030f8: e015 b.n 8003126 + 80030e0: 4b28 ldr r3, [pc, #160] ; (8003184 ) + 80030e2: 681b ldr r3, [r3, #0] + 80030e4: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 80030e8: 687b ldr r3, [r7, #4] + 80030ea: 691b ldr r3, [r3, #16] + 80030ec: 00db lsls r3, r3, #3 + 80030ee: 4925 ldr r1, [pc, #148] ; (8003184 ) + 80030f0: 4313 orrs r3, r2 + 80030f2: 600b str r3, [r1, #0] + 80030f4: e015 b.n 8003122 } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 80030fa: 4b24 ldr r3, [pc, #144] ; (800318c ) - 80030fc: 2200 movs r2, #0 - 80030fe: 601a str r2, [r3, #0] + 80030f6: 4b24 ldr r3, [pc, #144] ; (8003188 ) + 80030f8: 2200 movs r2, #0 + 80030fa: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003100: f7fe fb50 bl 80017a4 - 8003104: 6138 str r0, [r7, #16] + 80030fc: f7fe fb50 bl 80017a0 + 8003100: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8003106: e008 b.n 800311a + 8003102: e008 b.n 8003116 { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 8003108: f7fe fb4c bl 80017a4 - 800310c: 4602 mov r2, r0 - 800310e: 693b ldr r3, [r7, #16] - 8003110: 1ad3 subs r3, r2, r3 - 8003112: 2b02 cmp r3, #2 - 8003114: d901 bls.n 800311a + 8003104: f7fe fb4c bl 80017a0 + 8003108: 4602 mov r2, r0 + 800310a: 693b ldr r3, [r7, #16] + 800310c: 1ad3 subs r3, r2, r3 + 800310e: 2b02 cmp r3, #2 + 8003110: d901 bls.n 8003116 { return HAL_TIMEOUT; - 8003116: 2303 movs r3, #3 - 8003118: e187 b.n 800342a + 8003112: 2303 movs r3, #3 + 8003114: e187 b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 800311a: 4b1b ldr r3, [pc, #108] ; (8003188 ) - 800311c: 681b ldr r3, [r3, #0] - 800311e: f003 0302 and.w r3, r3, #2 - 8003122: 2b00 cmp r3, #0 - 8003124: d1f0 bne.n 8003108 + 8003116: 4b1b ldr r3, [pc, #108] ; (8003184 ) + 8003118: 681b ldr r3, [r3, #0] + 800311a: f003 0302 and.w r3, r3, #2 + 800311e: 2b00 cmp r3, #0 + 8003120: d1f0 bne.n 8003104 } } } } /*------------------------------ LSI Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8003126: 687b ldr r3, [r7, #4] - 8003128: 681b ldr r3, [r3, #0] - 800312a: f003 0308 and.w r3, r3, #8 - 800312e: 2b00 cmp r3, #0 - 8003130: d036 beq.n 80031a0 + 8003122: 687b ldr r3, [r7, #4] + 8003124: 681b ldr r3, [r3, #0] + 8003126: f003 0308 and.w r3, r3, #8 + 800312a: 2b00 cmp r3, #0 + 800312c: d036 beq.n 800319c { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if((RCC_OscInitStruct->LSIState)!= RCC_LSI_OFF) - 8003132: 687b ldr r3, [r7, #4] - 8003134: 695b ldr r3, [r3, #20] - 8003136: 2b00 cmp r3, #0 - 8003138: d016 beq.n 8003168 + 800312e: 687b ldr r3, [r7, #4] + 8003130: 695b ldr r3, [r3, #20] + 8003132: 2b00 cmp r3, #0 + 8003134: d016 beq.n 8003164 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 800313a: 4b15 ldr r3, [pc, #84] ; (8003190 ) - 800313c: 2201 movs r2, #1 - 800313e: 601a str r2, [r3, #0] + 8003136: 4b15 ldr r3, [pc, #84] ; (800318c ) + 8003138: 2201 movs r2, #1 + 800313a: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003140: f7fe fb30 bl 80017a4 - 8003144: 6138 str r0, [r7, #16] + 800313c: f7fe fb30 bl 80017a0 + 8003140: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8003146: e008 b.n 800315a + 8003142: e008 b.n 8003156 { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 8003148: f7fe fb2c bl 80017a4 - 800314c: 4602 mov r2, r0 - 800314e: 693b ldr r3, [r7, #16] - 8003150: 1ad3 subs r3, r2, r3 - 8003152: 2b02 cmp r3, #2 - 8003154: d901 bls.n 800315a + 8003144: f7fe fb2c bl 80017a0 + 8003148: 4602 mov r2, r0 + 800314a: 693b ldr r3, [r7, #16] + 800314c: 1ad3 subs r3, r2, r3 + 800314e: 2b02 cmp r3, #2 + 8003150: d901 bls.n 8003156 { return HAL_TIMEOUT; - 8003156: 2303 movs r3, #3 - 8003158: e167 b.n 800342a + 8003152: 2303 movs r3, #3 + 8003154: e167 b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 800315a: 4b0b ldr r3, [pc, #44] ; (8003188 ) - 800315c: 6f5b ldr r3, [r3, #116] ; 0x74 - 800315e: f003 0302 and.w r3, r3, #2 - 8003162: 2b00 cmp r3, #0 - 8003164: d0f0 beq.n 8003148 - 8003166: e01b b.n 80031a0 + 8003156: 4b0b ldr r3, [pc, #44] ; (8003184 ) + 8003158: 6f5b ldr r3, [r3, #116] ; 0x74 + 800315a: f003 0302 and.w r3, r3, #2 + 800315e: 2b00 cmp r3, #0 + 8003160: d0f0 beq.n 8003144 + 8003162: e01b b.n 800319c } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 8003168: 4b09 ldr r3, [pc, #36] ; (8003190 ) - 800316a: 2200 movs r2, #0 - 800316c: 601a str r2, [r3, #0] + 8003164: 4b09 ldr r3, [pc, #36] ; (800318c ) + 8003166: 2200 movs r2, #0 + 8003168: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800316e: f7fe fb19 bl 80017a4 - 8003172: 6138 str r0, [r7, #16] + 800316a: f7fe fb19 bl 80017a0 + 800316e: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8003174: e00e b.n 8003194 + 8003170: e00e b.n 8003190 { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 8003176: f7fe fb15 bl 80017a4 - 800317a: 4602 mov r2, r0 - 800317c: 693b ldr r3, [r7, #16] - 800317e: 1ad3 subs r3, r2, r3 - 8003180: 2b02 cmp r3, #2 - 8003182: d907 bls.n 8003194 + 8003172: f7fe fb15 bl 80017a0 + 8003176: 4602 mov r2, r0 + 8003178: 693b ldr r3, [r7, #16] + 800317a: 1ad3 subs r3, r2, r3 + 800317c: 2b02 cmp r3, #2 + 800317e: d907 bls.n 8003190 { return HAL_TIMEOUT; - 8003184: 2303 movs r3, #3 - 8003186: e150 b.n 800342a - 8003188: 40023800 .word 0x40023800 - 800318c: 42470000 .word 0x42470000 - 8003190: 42470e80 .word 0x42470e80 + 8003180: 2303 movs r3, #3 + 8003182: e150 b.n 8003426 + 8003184: 40023800 .word 0x40023800 + 8003188: 42470000 .word 0x42470000 + 800318c: 42470e80 .word 0x42470e80 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8003194: 4b88 ldr r3, [pc, #544] ; (80033b8 ) - 8003196: 6f5b ldr r3, [r3, #116] ; 0x74 - 8003198: f003 0302 and.w r3, r3, #2 - 800319c: 2b00 cmp r3, #0 - 800319e: d1ea bne.n 8003176 + 8003190: 4b88 ldr r3, [pc, #544] ; (80033b4 ) + 8003192: 6f5b ldr r3, [r3, #116] ; 0x74 + 8003194: f003 0302 and.w r3, r3, #2 + 8003198: 2b00 cmp r3, #0 + 800319a: d1ea bne.n 8003172 } } } } /*------------------------------ LSE Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 80031a0: 687b ldr r3, [r7, #4] - 80031a2: 681b ldr r3, [r3, #0] - 80031a4: f003 0304 and.w r3, r3, #4 - 80031a8: 2b00 cmp r3, #0 - 80031aa: f000 8097 beq.w 80032dc + 800319c: 687b ldr r3, [r7, #4] + 800319e: 681b ldr r3, [r3, #0] + 80031a0: f003 0304 and.w r3, r3, #4 + 80031a4: 2b00 cmp r3, #0 + 80031a6: f000 8097 beq.w 80032d8 { FlagStatus pwrclkchanged = RESET; - 80031ae: 2300 movs r3, #0 - 80031b0: 75fb strb r3, [r7, #23] + 80031aa: 2300 movs r3, #0 + 80031ac: 75fb strb r3, [r7, #23] /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain of necessary */ if(__HAL_RCC_PWR_IS_CLK_DISABLED()) - 80031b2: 4b81 ldr r3, [pc, #516] ; (80033b8 ) - 80031b4: 6c1b ldr r3, [r3, #64] ; 0x40 - 80031b6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 80031ba: 2b00 cmp r3, #0 - 80031bc: d10f bne.n 80031de + 80031ae: 4b81 ldr r3, [pc, #516] ; (80033b4 ) + 80031b0: 6c1b ldr r3, [r3, #64] ; 0x40 + 80031b2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80031b6: 2b00 cmp r3, #0 + 80031b8: d10f bne.n 80031da { __HAL_RCC_PWR_CLK_ENABLE(); - 80031be: 2300 movs r3, #0 - 80031c0: 60bb str r3, [r7, #8] - 80031c2: 4b7d ldr r3, [pc, #500] ; (80033b8 ) - 80031c4: 6c1b ldr r3, [r3, #64] ; 0x40 - 80031c6: 4a7c ldr r2, [pc, #496] ; (80033b8 ) - 80031c8: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 80031cc: 6413 str r3, [r2, #64] ; 0x40 - 80031ce: 4b7a ldr r3, [pc, #488] ; (80033b8 ) - 80031d0: 6c1b ldr r3, [r3, #64] ; 0x40 - 80031d2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 80031d6: 60bb str r3, [r7, #8] - 80031d8: 68bb ldr r3, [r7, #8] + 80031ba: 2300 movs r3, #0 + 80031bc: 60bb str r3, [r7, #8] + 80031be: 4b7d ldr r3, [pc, #500] ; (80033b4 ) + 80031c0: 6c1b ldr r3, [r3, #64] ; 0x40 + 80031c2: 4a7c ldr r2, [pc, #496] ; (80033b4 ) + 80031c4: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 80031c8: 6413 str r3, [r2, #64] ; 0x40 + 80031ca: 4b7a ldr r3, [pc, #488] ; (80033b4 ) + 80031cc: 6c1b ldr r3, [r3, #64] ; 0x40 + 80031ce: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80031d2: 60bb str r3, [r7, #8] + 80031d4: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 80031da: 2301 movs r3, #1 - 80031dc: 75fb strb r3, [r7, #23] + 80031d6: 2301 movs r3, #1 + 80031d8: 75fb strb r3, [r7, #23] } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80031de: 4b77 ldr r3, [pc, #476] ; (80033bc ) - 80031e0: 681b ldr r3, [r3, #0] - 80031e2: f403 7380 and.w r3, r3, #256 ; 0x100 - 80031e6: 2b00 cmp r3, #0 - 80031e8: d118 bne.n 800321c + 80031da: 4b77 ldr r3, [pc, #476] ; (80033b8 ) + 80031dc: 681b ldr r3, [r3, #0] + 80031de: f403 7380 and.w r3, r3, #256 ; 0x100 + 80031e2: 2b00 cmp r3, #0 + 80031e4: d118 bne.n 8003218 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 80031ea: 4b74 ldr r3, [pc, #464] ; (80033bc ) - 80031ec: 681b ldr r3, [r3, #0] - 80031ee: 4a73 ldr r2, [pc, #460] ; (80033bc ) - 80031f0: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80031f4: 6013 str r3, [r2, #0] + 80031e6: 4b74 ldr r3, [pc, #464] ; (80033b8 ) + 80031e8: 681b ldr r3, [r3, #0] + 80031ea: 4a73 ldr r2, [pc, #460] ; (80033b8 ) + 80031ec: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80031f0: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 80031f6: f7fe fad5 bl 80017a4 - 80031fa: 6138 str r0, [r7, #16] + 80031f2: f7fe fad5 bl 80017a0 + 80031f6: 6138 str r0, [r7, #16] while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80031fc: e008 b.n 8003210 + 80031f8: e008 b.n 800320c { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80031fe: f7fe fad1 bl 80017a4 - 8003202: 4602 mov r2, r0 - 8003204: 693b ldr r3, [r7, #16] - 8003206: 1ad3 subs r3, r2, r3 - 8003208: 2b02 cmp r3, #2 - 800320a: d901 bls.n 8003210 + 80031fa: f7fe fad1 bl 80017a0 + 80031fe: 4602 mov r2, r0 + 8003200: 693b ldr r3, [r7, #16] + 8003202: 1ad3 subs r3, r2, r3 + 8003204: 2b02 cmp r3, #2 + 8003206: d901 bls.n 800320c { return HAL_TIMEOUT; - 800320c: 2303 movs r3, #3 - 800320e: e10c b.n 800342a + 8003208: 2303 movs r3, #3 + 800320a: e10c b.n 8003426 while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8003210: 4b6a ldr r3, [pc, #424] ; (80033bc ) - 8003212: 681b ldr r3, [r3, #0] - 8003214: f403 7380 and.w r3, r3, #256 ; 0x100 - 8003218: 2b00 cmp r3, #0 - 800321a: d0f0 beq.n 80031fe + 800320c: 4b6a ldr r3, [pc, #424] ; (80033b8 ) + 800320e: 681b ldr r3, [r3, #0] + 8003210: f403 7380 and.w r3, r3, #256 ; 0x100 + 8003214: 2b00 cmp r3, #0 + 8003216: d0f0 beq.n 80031fa } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 800321c: 687b ldr r3, [r7, #4] - 800321e: 689b ldr r3, [r3, #8] - 8003220: 2b01 cmp r3, #1 - 8003222: d106 bne.n 8003232 - 8003224: 4b64 ldr r3, [pc, #400] ; (80033b8 ) - 8003226: 6f1b ldr r3, [r3, #112] ; 0x70 - 8003228: 4a63 ldr r2, [pc, #396] ; (80033b8 ) - 800322a: f043 0301 orr.w r3, r3, #1 - 800322e: 6713 str r3, [r2, #112] ; 0x70 - 8003230: e01c b.n 800326c - 8003232: 687b ldr r3, [r7, #4] - 8003234: 689b ldr r3, [r3, #8] - 8003236: 2b05 cmp r3, #5 - 8003238: d10c bne.n 8003254 - 800323a: 4b5f ldr r3, [pc, #380] ; (80033b8 ) - 800323c: 6f1b ldr r3, [r3, #112] ; 0x70 - 800323e: 4a5e ldr r2, [pc, #376] ; (80033b8 ) - 8003240: f043 0304 orr.w r3, r3, #4 - 8003244: 6713 str r3, [r2, #112] ; 0x70 - 8003246: 4b5c ldr r3, [pc, #368] ; (80033b8 ) - 8003248: 6f1b ldr r3, [r3, #112] ; 0x70 - 800324a: 4a5b ldr r2, [pc, #364] ; (80033b8 ) - 800324c: f043 0301 orr.w r3, r3, #1 - 8003250: 6713 str r3, [r2, #112] ; 0x70 - 8003252: e00b b.n 800326c - 8003254: 4b58 ldr r3, [pc, #352] ; (80033b8 ) - 8003256: 6f1b ldr r3, [r3, #112] ; 0x70 - 8003258: 4a57 ldr r2, [pc, #348] ; (80033b8 ) - 800325a: f023 0301 bic.w r3, r3, #1 - 800325e: 6713 str r3, [r2, #112] ; 0x70 - 8003260: 4b55 ldr r3, [pc, #340] ; (80033b8 ) - 8003262: 6f1b ldr r3, [r3, #112] ; 0x70 - 8003264: 4a54 ldr r2, [pc, #336] ; (80033b8 ) - 8003266: f023 0304 bic.w r3, r3, #4 - 800326a: 6713 str r3, [r2, #112] ; 0x70 + 8003218: 687b ldr r3, [r7, #4] + 800321a: 689b ldr r3, [r3, #8] + 800321c: 2b01 cmp r3, #1 + 800321e: d106 bne.n 800322e + 8003220: 4b64 ldr r3, [pc, #400] ; (80033b4 ) + 8003222: 6f1b ldr r3, [r3, #112] ; 0x70 + 8003224: 4a63 ldr r2, [pc, #396] ; (80033b4 ) + 8003226: f043 0301 orr.w r3, r3, #1 + 800322a: 6713 str r3, [r2, #112] ; 0x70 + 800322c: e01c b.n 8003268 + 800322e: 687b ldr r3, [r7, #4] + 8003230: 689b ldr r3, [r3, #8] + 8003232: 2b05 cmp r3, #5 + 8003234: d10c bne.n 8003250 + 8003236: 4b5f ldr r3, [pc, #380] ; (80033b4 ) + 8003238: 6f1b ldr r3, [r3, #112] ; 0x70 + 800323a: 4a5e ldr r2, [pc, #376] ; (80033b4 ) + 800323c: f043 0304 orr.w r3, r3, #4 + 8003240: 6713 str r3, [r2, #112] ; 0x70 + 8003242: 4b5c ldr r3, [pc, #368] ; (80033b4 ) + 8003244: 6f1b ldr r3, [r3, #112] ; 0x70 + 8003246: 4a5b ldr r2, [pc, #364] ; (80033b4 ) + 8003248: f043 0301 orr.w r3, r3, #1 + 800324c: 6713 str r3, [r2, #112] ; 0x70 + 800324e: e00b b.n 8003268 + 8003250: 4b58 ldr r3, [pc, #352] ; (80033b4 ) + 8003252: 6f1b ldr r3, [r3, #112] ; 0x70 + 8003254: 4a57 ldr r2, [pc, #348] ; (80033b4 ) + 8003256: f023 0301 bic.w r3, r3, #1 + 800325a: 6713 str r3, [r2, #112] ; 0x70 + 800325c: 4b55 ldr r3, [pc, #340] ; (80033b4 ) + 800325e: 6f1b ldr r3, [r3, #112] ; 0x70 + 8003260: 4a54 ldr r2, [pc, #336] ; (80033b4 ) + 8003262: f023 0304 bic.w r3, r3, #4 + 8003266: 6713 str r3, [r2, #112] ; 0x70 /* Check the LSE State */ if((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) - 800326c: 687b ldr r3, [r7, #4] - 800326e: 689b ldr r3, [r3, #8] - 8003270: 2b00 cmp r3, #0 - 8003272: d015 beq.n 80032a0 + 8003268: 687b ldr r3, [r7, #4] + 800326a: 689b ldr r3, [r3, #8] + 800326c: 2b00 cmp r3, #0 + 800326e: d015 beq.n 800329c { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8003274: f7fe fa96 bl 80017a4 - 8003278: 6138 str r0, [r7, #16] + 8003270: f7fe fa96 bl 80017a0 + 8003274: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 800327a: e00a b.n 8003292 + 8003276: e00a b.n 800328e { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 800327c: f7fe fa92 bl 80017a4 - 8003280: 4602 mov r2, r0 - 8003282: 693b ldr r3, [r7, #16] - 8003284: 1ad3 subs r3, r2, r3 - 8003286: f241 3288 movw r2, #5000 ; 0x1388 - 800328a: 4293 cmp r3, r2 - 800328c: d901 bls.n 8003292 + 8003278: f7fe fa92 bl 80017a0 + 800327c: 4602 mov r2, r0 + 800327e: 693b ldr r3, [r7, #16] + 8003280: 1ad3 subs r3, r2, r3 + 8003282: f241 3288 movw r2, #5000 ; 0x1388 + 8003286: 4293 cmp r3, r2 + 8003288: d901 bls.n 800328e { return HAL_TIMEOUT; - 800328e: 2303 movs r3, #3 - 8003290: e0cb b.n 800342a + 800328a: 2303 movs r3, #3 + 800328c: e0cb b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8003292: 4b49 ldr r3, [pc, #292] ; (80033b8 ) - 8003294: 6f1b ldr r3, [r3, #112] ; 0x70 - 8003296: f003 0302 and.w r3, r3, #2 - 800329a: 2b00 cmp r3, #0 - 800329c: d0ee beq.n 800327c - 800329e: e014 b.n 80032ca + 800328e: 4b49 ldr r3, [pc, #292] ; (80033b4 ) + 8003290: 6f1b ldr r3, [r3, #112] ; 0x70 + 8003292: f003 0302 and.w r3, r3, #2 + 8003296: 2b00 cmp r3, #0 + 8003298: d0ee beq.n 8003278 + 800329a: e014 b.n 80032c6 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80032a0: f7fe fa80 bl 80017a4 - 80032a4: 6138 str r0, [r7, #16] + 800329c: f7fe fa80 bl 80017a0 + 80032a0: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 80032a6: e00a b.n 80032be + 80032a2: e00a b.n 80032ba { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 80032a8: f7fe fa7c bl 80017a4 - 80032ac: 4602 mov r2, r0 - 80032ae: 693b ldr r3, [r7, #16] - 80032b0: 1ad3 subs r3, r2, r3 - 80032b2: f241 3288 movw r2, #5000 ; 0x1388 - 80032b6: 4293 cmp r3, r2 - 80032b8: d901 bls.n 80032be + 80032a4: f7fe fa7c bl 80017a0 + 80032a8: 4602 mov r2, r0 + 80032aa: 693b ldr r3, [r7, #16] + 80032ac: 1ad3 subs r3, r2, r3 + 80032ae: f241 3288 movw r2, #5000 ; 0x1388 + 80032b2: 4293 cmp r3, r2 + 80032b4: d901 bls.n 80032ba { return HAL_TIMEOUT; - 80032ba: 2303 movs r3, #3 - 80032bc: e0b5 b.n 800342a + 80032b6: 2303 movs r3, #3 + 80032b8: e0b5 b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 80032be: 4b3e ldr r3, [pc, #248] ; (80033b8 ) - 80032c0: 6f1b ldr r3, [r3, #112] ; 0x70 - 80032c2: f003 0302 and.w r3, r3, #2 - 80032c6: 2b00 cmp r3, #0 - 80032c8: d1ee bne.n 80032a8 + 80032ba: 4b3e ldr r3, [pc, #248] ; (80033b4 ) + 80032bc: 6f1b ldr r3, [r3, #112] ; 0x70 + 80032be: f003 0302 and.w r3, r3, #2 + 80032c2: 2b00 cmp r3, #0 + 80032c4: d1ee bne.n 80032a4 } } } /* Restore clock configuration if changed */ if(pwrclkchanged == SET) - 80032ca: 7dfb ldrb r3, [r7, #23] - 80032cc: 2b01 cmp r3, #1 - 80032ce: d105 bne.n 80032dc + 80032c6: 7dfb ldrb r3, [r7, #23] + 80032c8: 2b01 cmp r3, #1 + 80032ca: d105 bne.n 80032d8 { __HAL_RCC_PWR_CLK_DISABLE(); - 80032d0: 4b39 ldr r3, [pc, #228] ; (80033b8 ) - 80032d2: 6c1b ldr r3, [r3, #64] ; 0x40 - 80032d4: 4a38 ldr r2, [pc, #224] ; (80033b8 ) - 80032d6: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 80032da: 6413 str r3, [r2, #64] ; 0x40 + 80032cc: 4b39 ldr r3, [pc, #228] ; (80033b4 ) + 80032ce: 6c1b ldr r3, [r3, #64] ; 0x40 + 80032d0: 4a38 ldr r2, [pc, #224] ; (80033b4 ) + 80032d2: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 80032d6: 6413 str r3, [r2, #64] ; 0x40 } } /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 80032dc: 687b ldr r3, [r7, #4] - 80032de: 699b ldr r3, [r3, #24] - 80032e0: 2b00 cmp r3, #0 - 80032e2: f000 80a1 beq.w 8003428 + 80032d8: 687b ldr r3, [r7, #4] + 80032da: 699b ldr r3, [r3, #24] + 80032dc: 2b00 cmp r3, #0 + 80032de: f000 80a1 beq.w 8003424 { /* Check if the PLL is used as system clock or not */ if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) - 80032e6: 4b34 ldr r3, [pc, #208] ; (80033b8 ) - 80032e8: 689b ldr r3, [r3, #8] - 80032ea: f003 030c and.w r3, r3, #12 - 80032ee: 2b08 cmp r3, #8 - 80032f0: d05c beq.n 80033ac + 80032e2: 4b34 ldr r3, [pc, #208] ; (80033b4 ) + 80032e4: 689b ldr r3, [r3, #8] + 80032e6: f003 030c and.w r3, r3, #12 + 80032ea: 2b08 cmp r3, #8 + 80032ec: d05c beq.n 80033a8 { if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 80032f2: 687b ldr r3, [r7, #4] - 80032f4: 699b ldr r3, [r3, #24] - 80032f6: 2b02 cmp r3, #2 - 80032f8: d141 bne.n 800337e + 80032ee: 687b ldr r3, [r7, #4] + 80032f0: 699b ldr r3, [r3, #24] + 80032f2: 2b02 cmp r3, #2 + 80032f4: d141 bne.n 800337a assert_param(IS_RCC_PLLN_VALUE(RCC_OscInitStruct->PLL.PLLN)); assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP)); assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 80032fa: 4b31 ldr r3, [pc, #196] ; (80033c0 ) - 80032fc: 2200 movs r2, #0 - 80032fe: 601a str r2, [r3, #0] + 80032f6: 4b31 ldr r3, [pc, #196] ; (80033bc ) + 80032f8: 2200 movs r2, #0 + 80032fa: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003300: f7fe fa50 bl 80017a4 - 8003304: 6138 str r0, [r7, #16] + 80032fc: f7fe fa50 bl 80017a0 + 8003300: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8003306: e008 b.n 800331a + 8003302: e008 b.n 8003316 { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8003308: f7fe fa4c bl 80017a4 - 800330c: 4602 mov r2, r0 - 800330e: 693b ldr r3, [r7, #16] - 8003310: 1ad3 subs r3, r2, r3 - 8003312: 2b02 cmp r3, #2 - 8003314: d901 bls.n 800331a + 8003304: f7fe fa4c bl 80017a0 + 8003308: 4602 mov r2, r0 + 800330a: 693b ldr r3, [r7, #16] + 800330c: 1ad3 subs r3, r2, r3 + 800330e: 2b02 cmp r3, #2 + 8003310: d901 bls.n 8003316 { return HAL_TIMEOUT; - 8003316: 2303 movs r3, #3 - 8003318: e087 b.n 800342a + 8003312: 2303 movs r3, #3 + 8003314: e087 b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800331a: 4b27 ldr r3, [pc, #156] ; (80033b8 ) - 800331c: 681b ldr r3, [r3, #0] - 800331e: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8003322: 2b00 cmp r3, #0 - 8003324: d1f0 bne.n 8003308 + 8003316: 4b27 ldr r3, [pc, #156] ; (80033b4 ) + 8003318: 681b ldr r3, [r3, #0] + 800331a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 800331e: 2b00 cmp r3, #0 + 8003320: d1f0 bne.n 8003304 } } /* Configure the main PLL clock source, multiplication and division factors. */ WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \ + 8003322: 687b ldr r3, [r7, #4] + 8003324: 69da ldr r2, [r3, #28] 8003326: 687b ldr r3, [r7, #4] - 8003328: 69da ldr r2, [r3, #28] - 800332a: 687b ldr r3, [r7, #4] - 800332c: 6a1b ldr r3, [r3, #32] - 800332e: 431a orrs r2, r3 - 8003330: 687b ldr r3, [r7, #4] - 8003332: 6a5b ldr r3, [r3, #36] ; 0x24 - 8003334: 019b lsls r3, r3, #6 - 8003336: 431a orrs r2, r3 - 8003338: 687b ldr r3, [r7, #4] - 800333a: 6a9b ldr r3, [r3, #40] ; 0x28 - 800333c: 085b lsrs r3, r3, #1 - 800333e: 3b01 subs r3, #1 - 8003340: 041b lsls r3, r3, #16 - 8003342: 431a orrs r2, r3 - 8003344: 687b ldr r3, [r7, #4] - 8003346: 6adb ldr r3, [r3, #44] ; 0x2c - 8003348: 061b lsls r3, r3, #24 - 800334a: 491b ldr r1, [pc, #108] ; (80033b8 ) - 800334c: 4313 orrs r3, r2 - 800334e: 604b str r3, [r1, #4] + 8003328: 6a1b ldr r3, [r3, #32] + 800332a: 431a orrs r2, r3 + 800332c: 687b ldr r3, [r7, #4] + 800332e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8003330: 019b lsls r3, r3, #6 + 8003332: 431a orrs r2, r3 + 8003334: 687b ldr r3, [r7, #4] + 8003336: 6a9b ldr r3, [r3, #40] ; 0x28 + 8003338: 085b lsrs r3, r3, #1 + 800333a: 3b01 subs r3, #1 + 800333c: 041b lsls r3, r3, #16 + 800333e: 431a orrs r2, r3 + 8003340: 687b ldr r3, [r7, #4] + 8003342: 6adb ldr r3, [r3, #44] ; 0x2c + 8003344: 061b lsls r3, r3, #24 + 8003346: 491b ldr r1, [pc, #108] ; (80033b4 ) + 8003348: 4313 orrs r3, r2 + 800334a: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLM | \ (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos) | \ (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos) | \ (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos))); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 8003350: 4b1b ldr r3, [pc, #108] ; (80033c0 ) - 8003352: 2201 movs r2, #1 - 8003354: 601a str r2, [r3, #0] + 800334c: 4b1b ldr r3, [pc, #108] ; (80033bc ) + 800334e: 2201 movs r2, #1 + 8003350: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003356: f7fe fa25 bl 80017a4 - 800335a: 6138 str r0, [r7, #16] + 8003352: f7fe fa25 bl 80017a0 + 8003356: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800335c: e008 b.n 8003370 + 8003358: e008 b.n 800336c { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 800335e: f7fe fa21 bl 80017a4 - 8003362: 4602 mov r2, r0 - 8003364: 693b ldr r3, [r7, #16] - 8003366: 1ad3 subs r3, r2, r3 - 8003368: 2b02 cmp r3, #2 - 800336a: d901 bls.n 8003370 + 800335a: f7fe fa21 bl 80017a0 + 800335e: 4602 mov r2, r0 + 8003360: 693b ldr r3, [r7, #16] + 8003362: 1ad3 subs r3, r2, r3 + 8003364: 2b02 cmp r3, #2 + 8003366: d901 bls.n 800336c { return HAL_TIMEOUT; - 800336c: 2303 movs r3, #3 - 800336e: e05c b.n 800342a + 8003368: 2303 movs r3, #3 + 800336a: e05c b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8003370: 4b11 ldr r3, [pc, #68] ; (80033b8 ) - 8003372: 681b ldr r3, [r3, #0] - 8003374: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8003378: 2b00 cmp r3, #0 - 800337a: d0f0 beq.n 800335e - 800337c: e054 b.n 8003428 + 800336c: 4b11 ldr r3, [pc, #68] ; (80033b4 ) + 800336e: 681b ldr r3, [r3, #0] + 8003370: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8003374: 2b00 cmp r3, #0 + 8003376: d0f0 beq.n 800335a + 8003378: e054 b.n 8003424 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 800337e: 4b10 ldr r3, [pc, #64] ; (80033c0 ) - 8003380: 2200 movs r2, #0 - 8003382: 601a str r2, [r3, #0] + 800337a: 4b10 ldr r3, [pc, #64] ; (80033bc ) + 800337c: 2200 movs r2, #0 + 800337e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003384: f7fe fa0e bl 80017a4 - 8003388: 6138 str r0, [r7, #16] + 8003380: f7fe fa0e bl 80017a0 + 8003384: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800338a: e008 b.n 800339e + 8003386: e008 b.n 800339a { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 800338c: f7fe fa0a bl 80017a4 - 8003390: 4602 mov r2, r0 - 8003392: 693b ldr r3, [r7, #16] - 8003394: 1ad3 subs r3, r2, r3 - 8003396: 2b02 cmp r3, #2 - 8003398: d901 bls.n 800339e + 8003388: f7fe fa0a bl 80017a0 + 800338c: 4602 mov r2, r0 + 800338e: 693b ldr r3, [r7, #16] + 8003390: 1ad3 subs r3, r2, r3 + 8003392: 2b02 cmp r3, #2 + 8003394: d901 bls.n 800339a { return HAL_TIMEOUT; - 800339a: 2303 movs r3, #3 - 800339c: e045 b.n 800342a + 8003396: 2303 movs r3, #3 + 8003398: e045 b.n 8003426 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800339e: 4b06 ldr r3, [pc, #24] ; (80033b8 ) - 80033a0: 681b ldr r3, [r3, #0] - 80033a2: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80033a6: 2b00 cmp r3, #0 - 80033a8: d1f0 bne.n 800338c - 80033aa: e03d b.n 8003428 + 800339a: 4b06 ldr r3, [pc, #24] ; (80033b4 ) + 800339c: 681b ldr r3, [r3, #0] + 800339e: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80033a2: 2b00 cmp r3, #0 + 80033a4: d1f0 bne.n 8003388 + 80033a6: e03d b.n 8003424 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 80033ac: 687b ldr r3, [r7, #4] - 80033ae: 699b ldr r3, [r3, #24] - 80033b0: 2b01 cmp r3, #1 - 80033b2: d107 bne.n 80033c4 + 80033a8: 687b ldr r3, [r7, #4] + 80033aa: 699b ldr r3, [r3, #24] + 80033ac: 2b01 cmp r3, #1 + 80033ae: d107 bne.n 80033c0 { return HAL_ERROR; - 80033b4: 2301 movs r3, #1 - 80033b6: e038 b.n 800342a - 80033b8: 40023800 .word 0x40023800 - 80033bc: 40007000 .word 0x40007000 - 80033c0: 42470060 .word 0x42470060 + 80033b0: 2301 movs r3, #1 + 80033b2: e038 b.n 8003426 + 80033b4: 40023800 .word 0x40023800 + 80033b8: 40007000 .word 0x40007000 + 80033bc: 42470060 .word 0x42470060 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->PLLCFGR; - 80033c4: 4b1b ldr r3, [pc, #108] ; (8003434 ) - 80033c6: 685b ldr r3, [r3, #4] - 80033c8: 60fb str r3, [r7, #12] + 80033c0: 4b1b ldr r3, [pc, #108] ; (8003430 ) + 80033c2: 685b ldr r3, [r3, #4] + 80033c4: 60fb str r3, [r7, #12] (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) #else if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 80033ca: 687b ldr r3, [r7, #4] - 80033cc: 699b ldr r3, [r3, #24] - 80033ce: 2b01 cmp r3, #1 - 80033d0: d028 beq.n 8003424 + 80033c6: 687b ldr r3, [r7, #4] + 80033c8: 699b ldr r3, [r3, #24] + 80033ca: 2b01 cmp r3, #1 + 80033cc: d028 beq.n 8003420 (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 80033d2: 68fb ldr r3, [r7, #12] - 80033d4: f403 0280 and.w r2, r3, #4194304 ; 0x400000 - 80033d8: 687b ldr r3, [r7, #4] - 80033da: 69db ldr r3, [r3, #28] + 80033ce: 68fb ldr r3, [r7, #12] + 80033d0: f403 0280 and.w r2, r3, #4194304 ; 0x400000 + 80033d4: 687b ldr r3, [r7, #4] + 80033d6: 69db ldr r3, [r3, #28] if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 80033dc: 429a cmp r2, r3 - 80033de: d121 bne.n 8003424 + 80033d8: 429a cmp r2, r3 + 80033da: d121 bne.n 8003420 (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 80033e0: 68fb ldr r3, [r7, #12] - 80033e2: f003 023f and.w r2, r3, #63 ; 0x3f - 80033e6: 687b ldr r3, [r7, #4] - 80033e8: 6a1b ldr r3, [r3, #32] + 80033dc: 68fb ldr r3, [r7, #12] + 80033de: f003 023f and.w r2, r3, #63 ; 0x3f + 80033e2: 687b ldr r3, [r7, #4] + 80033e4: 6a1b ldr r3, [r3, #32] (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 80033ea: 429a cmp r2, r3 - 80033ec: d11a bne.n 8003424 + 80033e6: 429a cmp r2, r3 + 80033e8: d11a bne.n 8003420 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 80033ee: 68fa ldr r2, [r7, #12] - 80033f0: f647 73c0 movw r3, #32704 ; 0x7fc0 - 80033f4: 4013 ands r3, r2 - 80033f6: 687a ldr r2, [r7, #4] - 80033f8: 6a52 ldr r2, [r2, #36] ; 0x24 - 80033fa: 0192 lsls r2, r2, #6 + 80033ea: 68fa ldr r2, [r7, #12] + 80033ec: f647 73c0 movw r3, #32704 ; 0x7fc0 + 80033f0: 4013 ands r3, r2 + 80033f2: 687a ldr r2, [r7, #4] + 80033f4: 6a52 ldr r2, [r2, #36] ; 0x24 + 80033f6: 0192 lsls r2, r2, #6 (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 80033fc: 4293 cmp r3, r2 - 80033fe: d111 bne.n 8003424 + 80033f8: 4293 cmp r3, r2 + 80033fa: d111 bne.n 8003420 (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 8003400: 68fb ldr r3, [r7, #12] - 8003402: f403 3240 and.w r2, r3, #196608 ; 0x30000 - 8003406: 687b ldr r3, [r7, #4] - 8003408: 6a9b ldr r3, [r3, #40] ; 0x28 - 800340a: 085b lsrs r3, r3, #1 - 800340c: 3b01 subs r3, #1 - 800340e: 041b lsls r3, r3, #16 + 80033fc: 68fb ldr r3, [r7, #12] + 80033fe: f403 3240 and.w r2, r3, #196608 ; 0x30000 + 8003402: 687b ldr r3, [r7, #4] + 8003404: 6a9b ldr r3, [r3, #40] ; 0x28 + 8003406: 085b lsrs r3, r3, #1 + 8003408: 3b01 subs r3, #1 + 800340a: 041b lsls r3, r3, #16 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 8003410: 429a cmp r2, r3 - 8003412: d107 bne.n 8003424 + 800340c: 429a cmp r2, r3 + 800340e: d107 bne.n 8003420 (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos))) - 8003414: 68fb ldr r3, [r7, #12] - 8003416: f003 6270 and.w r2, r3, #251658240 ; 0xf000000 - 800341a: 687b ldr r3, [r7, #4] - 800341c: 6adb ldr r3, [r3, #44] ; 0x2c - 800341e: 061b lsls r3, r3, #24 + 8003410: 68fb ldr r3, [r7, #12] + 8003412: f003 6270 and.w r2, r3, #251658240 ; 0xf000000 + 8003416: 687b ldr r3, [r7, #4] + 8003418: 6adb ldr r3, [r3, #44] ; 0x2c + 800341a: 061b lsls r3, r3, #24 (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 8003420: 429a cmp r2, r3 - 8003422: d001 beq.n 8003428 + 800341c: 429a cmp r2, r3 + 800341e: d001 beq.n 8003424 #endif { return HAL_ERROR; - 8003424: 2301 movs r3, #1 - 8003426: e000 b.n 800342a + 8003420: 2301 movs r3, #1 + 8003422: e000 b.n 8003426 } } } } return HAL_OK; - 8003428: 2300 movs r3, #0 + 8003424: 2300 movs r3, #0 } - 800342a: 4618 mov r0, r3 - 800342c: 3718 adds r7, #24 - 800342e: 46bd mov sp, r7 - 8003430: bd80 pop {r7, pc} - 8003432: bf00 nop - 8003434: 40023800 .word 0x40023800 + 8003426: 4618 mov r0, r3 + 8003428: 3718 adds r7, #24 + 800342a: 46bd mov sp, r7 + 800342c: bd80 pop {r7, pc} + 800342e: bf00 nop + 8003430: 40023800 .word 0x40023800 -08003438 : +08003434 : * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency * (for more details refer to section above "Initialization/de-initialization functions") * @retval None */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 8003438: b580 push {r7, lr} - 800343a: b084 sub sp, #16 - 800343c: af00 add r7, sp, #0 - 800343e: 6078 str r0, [r7, #4] - 8003440: 6039 str r1, [r7, #0] + 8003434: b580 push {r7, lr} + 8003436: b084 sub sp, #16 + 8003438: af00 add r7, sp, #0 + 800343a: 6078 str r0, [r7, #4] + 800343c: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if(RCC_ClkInitStruct == NULL) - 8003442: 687b ldr r3, [r7, #4] - 8003444: 2b00 cmp r3, #0 - 8003446: d101 bne.n 800344c + 800343e: 687b ldr r3, [r7, #4] + 8003440: 2b00 cmp r3, #0 + 8003442: d101 bne.n 8003448 { return HAL_ERROR; - 8003448: 2301 movs r3, #1 - 800344a: e0cc b.n 80035e6 + 8003444: 2301 movs r3, #1 + 8003446: e0cc b.n 80035e2 /* To correctly read data from FLASH memory, the number of wait states (LATENCY) must be correctly programmed according to the frequency of the CPU clock (HCLK) and the supply voltage of the device. */ /* Increasing the number of wait states because of higher CPU frequency */ if(FLatency > __HAL_FLASH_GET_LATENCY()) - 800344c: 4b68 ldr r3, [pc, #416] ; (80035f0 ) - 800344e: 681b ldr r3, [r3, #0] - 8003450: f003 030f and.w r3, r3, #15 - 8003454: 683a ldr r2, [r7, #0] - 8003456: 429a cmp r2, r3 - 8003458: d90c bls.n 8003474 + 8003448: 4b68 ldr r3, [pc, #416] ; (80035ec ) + 800344a: 681b ldr r3, [r3, #0] + 800344c: f003 030f and.w r3, r3, #15 + 8003450: 683a ldr r2, [r7, #0] + 8003452: 429a cmp r2, r3 + 8003454: d90c bls.n 8003470 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 800345a: 4b65 ldr r3, [pc, #404] ; (80035f0 ) - 800345c: 683a ldr r2, [r7, #0] - 800345e: b2d2 uxtb r2, r2 - 8003460: 701a strb r2, [r3, #0] + 8003456: 4b65 ldr r3, [pc, #404] ; (80035ec ) + 8003458: 683a ldr r2, [r7, #0] + 800345a: b2d2 uxtb r2, r2 + 800345c: 701a strb r2, [r3, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if(__HAL_FLASH_GET_LATENCY() != FLatency) - 8003462: 4b63 ldr r3, [pc, #396] ; (80035f0 ) - 8003464: 681b ldr r3, [r3, #0] - 8003466: f003 030f and.w r3, r3, #15 - 800346a: 683a ldr r2, [r7, #0] - 800346c: 429a cmp r2, r3 - 800346e: d001 beq.n 8003474 + 800345e: 4b63 ldr r3, [pc, #396] ; (80035ec ) + 8003460: 681b ldr r3, [r3, #0] + 8003462: f003 030f and.w r3, r3, #15 + 8003466: 683a ldr r2, [r7, #0] + 8003468: 429a cmp r2, r3 + 800346a: d001 beq.n 8003470 { return HAL_ERROR; - 8003470: 2301 movs r3, #1 - 8003472: e0b8 b.n 80035e6 + 800346c: 2301 movs r3, #1 + 800346e: e0b8 b.n 80035e2 } } /*-------------------------- HCLK Configuration --------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8003474: 687b ldr r3, [r7, #4] - 8003476: 681b ldr r3, [r3, #0] - 8003478: f003 0302 and.w r3, r3, #2 - 800347c: 2b00 cmp r3, #0 - 800347e: d020 beq.n 80034c2 + 8003470: 687b ldr r3, [r7, #4] + 8003472: 681b ldr r3, [r3, #0] + 8003474: f003 0302 and.w r3, r3, #2 + 8003478: 2b00 cmp r3, #0 + 800347a: d020 beq.n 80034be { /* Set the highest APBx dividers in order to ensure that we do not go through a non-spec phase whatever we decrease or increase HCLK. */ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8003480: 687b ldr r3, [r7, #4] - 8003482: 681b ldr r3, [r3, #0] - 8003484: f003 0304 and.w r3, r3, #4 - 8003488: 2b00 cmp r3, #0 - 800348a: d005 beq.n 8003498 + 800347c: 687b ldr r3, [r7, #4] + 800347e: 681b ldr r3, [r3, #0] + 8003480: f003 0304 and.w r3, r3, #4 + 8003484: 2b00 cmp r3, #0 + 8003486: d005 beq.n 8003494 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 800348c: 4b59 ldr r3, [pc, #356] ; (80035f4 ) - 800348e: 689b ldr r3, [r3, #8] - 8003490: 4a58 ldr r2, [pc, #352] ; (80035f4 ) - 8003492: f443 53e0 orr.w r3, r3, #7168 ; 0x1c00 - 8003496: 6093 str r3, [r2, #8] + 8003488: 4b59 ldr r3, [pc, #356] ; (80035f0 ) + 800348a: 689b ldr r3, [r3, #8] + 800348c: 4a58 ldr r2, [pc, #352] ; (80035f0 ) + 800348e: f443 53e0 orr.w r3, r3, #7168 ; 0x1c00 + 8003492: 6093 str r3, [r2, #8] } if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8003498: 687b ldr r3, [r7, #4] - 800349a: 681b ldr r3, [r3, #0] - 800349c: f003 0308 and.w r3, r3, #8 - 80034a0: 2b00 cmp r3, #0 - 80034a2: d005 beq.n 80034b0 + 8003494: 687b ldr r3, [r7, #4] + 8003496: 681b ldr r3, [r3, #0] + 8003498: f003 0308 and.w r3, r3, #8 + 800349c: 2b00 cmp r3, #0 + 800349e: d005 beq.n 80034ac { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 80034a4: 4b53 ldr r3, [pc, #332] ; (80035f4 ) - 80034a6: 689b ldr r3, [r3, #8] - 80034a8: 4a52 ldr r2, [pc, #328] ; (80035f4 ) - 80034aa: f443 4360 orr.w r3, r3, #57344 ; 0xe000 - 80034ae: 6093 str r3, [r2, #8] + 80034a0: 4b53 ldr r3, [pc, #332] ; (80035f0 ) + 80034a2: 689b ldr r3, [r3, #8] + 80034a4: 4a52 ldr r2, [pc, #328] ; (80035f0 ) + 80034a6: f443 4360 orr.w r3, r3, #57344 ; 0xe000 + 80034aa: 6093 str r3, [r2, #8] } assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 80034b0: 4b50 ldr r3, [pc, #320] ; (80035f4 ) - 80034b2: 689b ldr r3, [r3, #8] - 80034b4: f023 02f0 bic.w r2, r3, #240 ; 0xf0 - 80034b8: 687b ldr r3, [r7, #4] - 80034ba: 689b ldr r3, [r3, #8] - 80034bc: 494d ldr r1, [pc, #308] ; (80035f4 ) - 80034be: 4313 orrs r3, r2 - 80034c0: 608b str r3, [r1, #8] + 80034ac: 4b50 ldr r3, [pc, #320] ; (80035f0 ) + 80034ae: 689b ldr r3, [r3, #8] + 80034b0: f023 02f0 bic.w r2, r3, #240 ; 0xf0 + 80034b4: 687b ldr r3, [r7, #4] + 80034b6: 689b ldr r3, [r3, #8] + 80034b8: 494d ldr r1, [pc, #308] ; (80035f0 ) + 80034ba: 4313 orrs r3, r2 + 80034bc: 608b str r3, [r1, #8] } /*------------------------- SYSCLK Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 80034c2: 687b ldr r3, [r7, #4] - 80034c4: 681b ldr r3, [r3, #0] - 80034c6: f003 0301 and.w r3, r3, #1 - 80034ca: 2b00 cmp r3, #0 - 80034cc: d044 beq.n 8003558 + 80034be: 687b ldr r3, [r7, #4] + 80034c0: 681b ldr r3, [r3, #0] + 80034c2: f003 0301 and.w r3, r3, #1 + 80034c6: 2b00 cmp r3, #0 + 80034c8: d044 beq.n 8003554 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 80034ce: 687b ldr r3, [r7, #4] - 80034d0: 685b ldr r3, [r3, #4] - 80034d2: 2b01 cmp r3, #1 - 80034d4: d107 bne.n 80034e6 + 80034ca: 687b ldr r3, [r7, #4] + 80034cc: 685b ldr r3, [r3, #4] + 80034ce: 2b01 cmp r3, #1 + 80034d0: d107 bne.n 80034e2 { /* Check the HSE ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80034d6: 4b47 ldr r3, [pc, #284] ; (80035f4 ) - 80034d8: 681b ldr r3, [r3, #0] - 80034da: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 80034de: 2b00 cmp r3, #0 - 80034e0: d119 bne.n 8003516 + 80034d2: 4b47 ldr r3, [pc, #284] ; (80035f0 ) + 80034d4: 681b ldr r3, [r3, #0] + 80034d6: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 80034da: 2b00 cmp r3, #0 + 80034dc: d119 bne.n 8003512 { return HAL_ERROR; - 80034e2: 2301 movs r3, #1 - 80034e4: e07f b.n 80035e6 + 80034de: 2301 movs r3, #1 + 80034e0: e07f b.n 80035e2 } } /* PLL is selected as System Clock Source */ else if((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 80034e6: 687b ldr r3, [r7, #4] - 80034e8: 685b ldr r3, [r3, #4] - 80034ea: 2b02 cmp r3, #2 - 80034ec: d003 beq.n 80034f6 + 80034e2: 687b ldr r3, [r7, #4] + 80034e4: 685b ldr r3, [r3, #4] + 80034e6: 2b02 cmp r3, #2 + 80034e8: d003 beq.n 80034f2 (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLRCLK)) - 80034ee: 687b ldr r3, [r7, #4] - 80034f0: 685b ldr r3, [r3, #4] + 80034ea: 687b ldr r3, [r7, #4] + 80034ec: 685b ldr r3, [r3, #4] else if((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 80034f2: 2b03 cmp r3, #3 - 80034f4: d107 bne.n 8003506 + 80034ee: 2b03 cmp r3, #3 + 80034f0: d107 bne.n 8003502 { /* Check the PLL ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80034f6: 4b3f ldr r3, [pc, #252] ; (80035f4 ) - 80034f8: 681b ldr r3, [r3, #0] - 80034fa: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80034fe: 2b00 cmp r3, #0 - 8003500: d109 bne.n 8003516 + 80034f2: 4b3f ldr r3, [pc, #252] ; (80035f0 ) + 80034f4: 681b ldr r3, [r3, #0] + 80034f6: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80034fa: 2b00 cmp r3, #0 + 80034fc: d109 bne.n 8003512 { return HAL_ERROR; - 8003502: 2301 movs r3, #1 - 8003504: e06f b.n 80035e6 + 80034fe: 2301 movs r3, #1 + 8003500: e06f b.n 80035e2 } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8003506: 4b3b ldr r3, [pc, #236] ; (80035f4 ) - 8003508: 681b ldr r3, [r3, #0] - 800350a: f003 0302 and.w r3, r3, #2 - 800350e: 2b00 cmp r3, #0 - 8003510: d101 bne.n 8003516 + 8003502: 4b3b ldr r3, [pc, #236] ; (80035f0 ) + 8003504: 681b ldr r3, [r3, #0] + 8003506: f003 0302 and.w r3, r3, #2 + 800350a: 2b00 cmp r3, #0 + 800350c: d101 bne.n 8003512 { return HAL_ERROR; - 8003512: 2301 movs r3, #1 - 8003514: e067 b.n 80035e6 + 800350e: 2301 movs r3, #1 + 8003510: e067 b.n 80035e2 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 8003516: 4b37 ldr r3, [pc, #220] ; (80035f4 ) - 8003518: 689b ldr r3, [r3, #8] - 800351a: f023 0203 bic.w r2, r3, #3 - 800351e: 687b ldr r3, [r7, #4] - 8003520: 685b ldr r3, [r3, #4] - 8003522: 4934 ldr r1, [pc, #208] ; (80035f4 ) - 8003524: 4313 orrs r3, r2 - 8003526: 608b str r3, [r1, #8] + 8003512: 4b37 ldr r3, [pc, #220] ; (80035f0 ) + 8003514: 689b ldr r3, [r3, #8] + 8003516: f023 0203 bic.w r2, r3, #3 + 800351a: 687b ldr r3, [r7, #4] + 800351c: 685b ldr r3, [r3, #4] + 800351e: 4934 ldr r1, [pc, #208] ; (80035f0 ) + 8003520: 4313 orrs r3, r2 + 8003522: 608b str r3, [r1, #8] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8003528: f7fe f93c bl 80017a4 - 800352c: 60f8 str r0, [r7, #12] + 8003524: f7fe f93c bl 80017a0 + 8003528: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 800352e: e00a b.n 8003546 + 800352a: e00a b.n 8003542 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 8003530: f7fe f938 bl 80017a4 - 8003534: 4602 mov r2, r0 - 8003536: 68fb ldr r3, [r7, #12] - 8003538: 1ad3 subs r3, r2, r3 - 800353a: f241 3288 movw r2, #5000 ; 0x1388 - 800353e: 4293 cmp r3, r2 - 8003540: d901 bls.n 8003546 + 800352c: f7fe f938 bl 80017a0 + 8003530: 4602 mov r2, r0 + 8003532: 68fb ldr r3, [r7, #12] + 8003534: 1ad3 subs r3, r2, r3 + 8003536: f241 3288 movw r2, #5000 ; 0x1388 + 800353a: 4293 cmp r3, r2 + 800353c: d901 bls.n 8003542 { return HAL_TIMEOUT; - 8003542: 2303 movs r3, #3 - 8003544: e04f b.n 80035e6 + 800353e: 2303 movs r3, #3 + 8003540: e04f b.n 80035e2 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8003546: 4b2b ldr r3, [pc, #172] ; (80035f4 ) - 8003548: 689b ldr r3, [r3, #8] - 800354a: f003 020c and.w r2, r3, #12 - 800354e: 687b ldr r3, [r7, #4] - 8003550: 685b ldr r3, [r3, #4] - 8003552: 009b lsls r3, r3, #2 - 8003554: 429a cmp r2, r3 - 8003556: d1eb bne.n 8003530 + 8003542: 4b2b ldr r3, [pc, #172] ; (80035f0 ) + 8003544: 689b ldr r3, [r3, #8] + 8003546: f003 020c and.w r2, r3, #12 + 800354a: 687b ldr r3, [r7, #4] + 800354c: 685b ldr r3, [r3, #4] + 800354e: 009b lsls r3, r3, #2 + 8003550: 429a cmp r2, r3 + 8003552: d1eb bne.n 800352c } } } /* Decreasing the number of wait states because of lower CPU frequency */ if(FLatency < __HAL_FLASH_GET_LATENCY()) - 8003558: 4b25 ldr r3, [pc, #148] ; (80035f0 ) - 800355a: 681b ldr r3, [r3, #0] - 800355c: f003 030f and.w r3, r3, #15 - 8003560: 683a ldr r2, [r7, #0] - 8003562: 429a cmp r2, r3 - 8003564: d20c bcs.n 8003580 + 8003554: 4b25 ldr r3, [pc, #148] ; (80035ec ) + 8003556: 681b ldr r3, [r3, #0] + 8003558: f003 030f and.w r3, r3, #15 + 800355c: 683a ldr r2, [r7, #0] + 800355e: 429a cmp r2, r3 + 8003560: d20c bcs.n 800357c { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8003566: 4b22 ldr r3, [pc, #136] ; (80035f0 ) - 8003568: 683a ldr r2, [r7, #0] - 800356a: b2d2 uxtb r2, r2 - 800356c: 701a strb r2, [r3, #0] + 8003562: 4b22 ldr r3, [pc, #136] ; (80035ec ) + 8003564: 683a ldr r2, [r7, #0] + 8003566: b2d2 uxtb r2, r2 + 8003568: 701a strb r2, [r3, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if(__HAL_FLASH_GET_LATENCY() != FLatency) - 800356e: 4b20 ldr r3, [pc, #128] ; (80035f0 ) - 8003570: 681b ldr r3, [r3, #0] - 8003572: f003 030f and.w r3, r3, #15 - 8003576: 683a ldr r2, [r7, #0] - 8003578: 429a cmp r2, r3 - 800357a: d001 beq.n 8003580 + 800356a: 4b20 ldr r3, [pc, #128] ; (80035ec ) + 800356c: 681b ldr r3, [r3, #0] + 800356e: f003 030f and.w r3, r3, #15 + 8003572: 683a ldr r2, [r7, #0] + 8003574: 429a cmp r2, r3 + 8003576: d001 beq.n 800357c { return HAL_ERROR; - 800357c: 2301 movs r3, #1 - 800357e: e032 b.n 80035e6 + 8003578: 2301 movs r3, #1 + 800357a: e032 b.n 80035e2 } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8003580: 687b ldr r3, [r7, #4] - 8003582: 681b ldr r3, [r3, #0] - 8003584: f003 0304 and.w r3, r3, #4 - 8003588: 2b00 cmp r3, #0 - 800358a: d008 beq.n 800359e + 800357c: 687b ldr r3, [r7, #4] + 800357e: 681b ldr r3, [r3, #0] + 8003580: f003 0304 and.w r3, r3, #4 + 8003584: 2b00 cmp r3, #0 + 8003586: d008 beq.n 800359a { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 800358c: 4b19 ldr r3, [pc, #100] ; (80035f4 ) - 800358e: 689b ldr r3, [r3, #8] - 8003590: f423 52e0 bic.w r2, r3, #7168 ; 0x1c00 - 8003594: 687b ldr r3, [r7, #4] - 8003596: 68db ldr r3, [r3, #12] - 8003598: 4916 ldr r1, [pc, #88] ; (80035f4 ) - 800359a: 4313 orrs r3, r2 - 800359c: 608b str r3, [r1, #8] + 8003588: 4b19 ldr r3, [pc, #100] ; (80035f0 ) + 800358a: 689b ldr r3, [r3, #8] + 800358c: f423 52e0 bic.w r2, r3, #7168 ; 0x1c00 + 8003590: 687b ldr r3, [r7, #4] + 8003592: 68db ldr r3, [r3, #12] + 8003594: 4916 ldr r1, [pc, #88] ; (80035f0 ) + 8003596: 4313 orrs r3, r2 + 8003598: 608b str r3, [r1, #8] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 800359e: 687b ldr r3, [r7, #4] - 80035a0: 681b ldr r3, [r3, #0] - 80035a2: f003 0308 and.w r3, r3, #8 - 80035a6: 2b00 cmp r3, #0 - 80035a8: d009 beq.n 80035be + 800359a: 687b ldr r3, [r7, #4] + 800359c: 681b ldr r3, [r3, #0] + 800359e: f003 0308 and.w r3, r3, #8 + 80035a2: 2b00 cmp r3, #0 + 80035a4: d009 beq.n 80035ba { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U)); - 80035aa: 4b12 ldr r3, [pc, #72] ; (80035f4 ) - 80035ac: 689b ldr r3, [r3, #8] - 80035ae: f423 4260 bic.w r2, r3, #57344 ; 0xe000 - 80035b2: 687b ldr r3, [r7, #4] - 80035b4: 691b ldr r3, [r3, #16] - 80035b6: 00db lsls r3, r3, #3 - 80035b8: 490e ldr r1, [pc, #56] ; (80035f4 ) - 80035ba: 4313 orrs r3, r2 - 80035bc: 608b str r3, [r1, #8] + 80035a6: 4b12 ldr r3, [pc, #72] ; (80035f0 ) + 80035a8: 689b ldr r3, [r3, #8] + 80035aa: f423 4260 bic.w r2, r3, #57344 ; 0xe000 + 80035ae: 687b ldr r3, [r7, #4] + 80035b0: 691b ldr r3, [r3, #16] + 80035b2: 00db lsls r3, r3, #3 + 80035b4: 490e ldr r1, [pc, #56] ; (80035f0 ) + 80035b6: 4313 orrs r3, r2 + 80035b8: 608b str r3, [r1, #8] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos]; - 80035be: f000 f821 bl 8003604 - 80035c2: 4602 mov r2, r0 - 80035c4: 4b0b ldr r3, [pc, #44] ; (80035f4 ) - 80035c6: 689b ldr r3, [r3, #8] - 80035c8: 091b lsrs r3, r3, #4 - 80035ca: f003 030f and.w r3, r3, #15 - 80035ce: 490a ldr r1, [pc, #40] ; (80035f8 ) - 80035d0: 5ccb ldrb r3, [r1, r3] - 80035d2: fa22 f303 lsr.w r3, r2, r3 - 80035d6: 4a09 ldr r2, [pc, #36] ; (80035fc ) - 80035d8: 6013 str r3, [r2, #0] + 80035ba: f000 f821 bl 8003600 + 80035be: 4602 mov r2, r0 + 80035c0: 4b0b ldr r3, [pc, #44] ; (80035f0 ) + 80035c2: 689b ldr r3, [r3, #8] + 80035c4: 091b lsrs r3, r3, #4 + 80035c6: f003 030f and.w r3, r3, #15 + 80035ca: 490a ldr r1, [pc, #40] ; (80035f4 ) + 80035cc: 5ccb ldrb r3, [r1, r3] + 80035ce: fa22 f303 lsr.w r3, r2, r3 + 80035d2: 4a09 ldr r2, [pc, #36] ; (80035f8 ) + 80035d4: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings */ HAL_InitTick (uwTickPrio); - 80035da: 4b09 ldr r3, [pc, #36] ; (8003600 ) - 80035dc: 681b ldr r3, [r3, #0] - 80035de: 4618 mov r0, r3 - 80035e0: f7fe f89c bl 800171c + 80035d6: 4b09 ldr r3, [pc, #36] ; (80035fc ) + 80035d8: 681b ldr r3, [r3, #0] + 80035da: 4618 mov r0, r3 + 80035dc: f7fe f89c bl 8001718 return HAL_OK; - 80035e4: 2300 movs r3, #0 + 80035e0: 2300 movs r3, #0 } - 80035e6: 4618 mov r0, r3 - 80035e8: 3710 adds r7, #16 - 80035ea: 46bd mov sp, r7 - 80035ec: bd80 pop {r7, pc} - 80035ee: bf00 nop - 80035f0: 40023c00 .word 0x40023c00 - 80035f4: 40023800 .word 0x40023800 - 80035f8: 08017ce0 .word 0x08017ce0 - 80035fc: 20000000 .word 0x20000000 - 8003600: 20000004 .word 0x20000004 + 80035e2: 4618 mov r0, r3 + 80035e4: 3710 adds r7, #16 + 80035e6: 46bd mov sp, r7 + 80035e8: bd80 pop {r7, pc} + 80035ea: bf00 nop + 80035ec: 40023c00 .word 0x40023c00 + 80035f0: 40023800 .word 0x40023800 + 80035f4: 08017ce0 .word 0x08017ce0 + 80035f8: 20000000 .word 0x20000000 + 80035fc: 20000004 .word 0x20000004 -08003604 : +08003600 : * * * @retval SYSCLK frequency */ __weak uint32_t HAL_RCC_GetSysClockFreq(void) { - 8003604: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 8003608: b090 sub sp, #64 ; 0x40 - 800360a: af00 add r7, sp, #0 + 8003600: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 8003604: b090 sub sp, #64 ; 0x40 + 8003606: af00 add r7, sp, #0 uint32_t pllm = 0U, pllvco = 0U, pllp = 0U; + 8003608: 2300 movs r3, #0 + 800360a: 637b str r3, [r7, #52] ; 0x34 800360c: 2300 movs r3, #0 - 800360e: 637b str r3, [r7, #52] ; 0x34 + 800360e: 63fb str r3, [r7, #60] ; 0x3c 8003610: 2300 movs r3, #0 - 8003612: 63fb str r3, [r7, #60] ; 0x3c - 8003614: 2300 movs r3, #0 - 8003616: 633b str r3, [r7, #48] ; 0x30 + 8003612: 633b str r3, [r7, #48] ; 0x30 uint32_t sysclockfreq = 0U; - 8003618: 2300 movs r3, #0 - 800361a: 63bb str r3, [r7, #56] ; 0x38 + 8003614: 2300 movs r3, #0 + 8003616: 63bb str r3, [r7, #56] ; 0x38 /* Get SYSCLK source -------------------------------------------------------*/ switch (RCC->CFGR & RCC_CFGR_SWS) - 800361c: 4b59 ldr r3, [pc, #356] ; (8003784 ) - 800361e: 689b ldr r3, [r3, #8] - 8003620: f003 030c and.w r3, r3, #12 + 8003618: 4b59 ldr r3, [pc, #356] ; (8003780 ) + 800361a: 689b ldr r3, [r3, #8] + 800361c: f003 030c and.w r3, r3, #12 + 8003620: 2b08 cmp r3, #8 + 8003622: d00d beq.n 8003640 8003624: 2b08 cmp r3, #8 - 8003626: d00d beq.n 8003644 - 8003628: 2b08 cmp r3, #8 - 800362a: f200 80a1 bhi.w 8003770 - 800362e: 2b00 cmp r3, #0 - 8003630: d002 beq.n 8003638 - 8003632: 2b04 cmp r3, #4 - 8003634: d003 beq.n 800363e - 8003636: e09b b.n 8003770 + 8003626: f200 80a1 bhi.w 800376c + 800362a: 2b00 cmp r3, #0 + 800362c: d002 beq.n 8003634 + 800362e: 2b04 cmp r3, #4 + 8003630: d003 beq.n 800363a + 8003632: e09b b.n 800376c { case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ { sysclockfreq = HSI_VALUE; - 8003638: 4b53 ldr r3, [pc, #332] ; (8003788 ) - 800363a: 63bb str r3, [r7, #56] ; 0x38 + 8003634: 4b53 ldr r3, [pc, #332] ; (8003784 ) + 8003636: 63bb str r3, [r7, #56] ; 0x38 break; - 800363c: e09b b.n 8003776 + 8003638: e09b b.n 8003772 } case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ { sysclockfreq = HSE_VALUE; - 800363e: 4b53 ldr r3, [pc, #332] ; (800378c ) - 8003640: 63bb str r3, [r7, #56] ; 0x38 + 800363a: 4b53 ldr r3, [pc, #332] ; (8003788 ) + 800363c: 63bb str r3, [r7, #56] ; 0x38 break; - 8003642: e098 b.n 8003776 + 800363e: e098 b.n 8003772 } case RCC_CFGR_SWS_PLL: /* PLL used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLP */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; - 8003644: 4b4f ldr r3, [pc, #316] ; (8003784 ) - 8003646: 685b ldr r3, [r3, #4] - 8003648: f003 033f and.w r3, r3, #63 ; 0x3f - 800364c: 637b str r3, [r7, #52] ; 0x34 + 8003640: 4b4f ldr r3, [pc, #316] ; (8003780 ) + 8003642: 685b ldr r3, [r3, #4] + 8003644: f003 033f and.w r3, r3, #63 ; 0x3f + 8003648: 637b str r3, [r7, #52] ; 0x34 if(__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 800364e: 4b4d ldr r3, [pc, #308] ; (8003784 ) - 8003650: 685b ldr r3, [r3, #4] - 8003652: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 8003656: 2b00 cmp r3, #0 - 8003658: d028 beq.n 80036ac + 800364a: 4b4d ldr r3, [pc, #308] ; (8003780 ) + 800364c: 685b ldr r3, [r3, #4] + 800364e: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 8003652: 2b00 cmp r3, #0 + 8003654: d028 beq.n 80036a8 { /* HSE used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSE_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 800365a: 4b4a ldr r3, [pc, #296] ; (8003784 ) - 800365c: 685b ldr r3, [r3, #4] - 800365e: 099b lsrs r3, r3, #6 - 8003660: 2200 movs r2, #0 - 8003662: 623b str r3, [r7, #32] - 8003664: 627a str r2, [r7, #36] ; 0x24 - 8003666: 6a3b ldr r3, [r7, #32] - 8003668: f3c3 0008 ubfx r0, r3, #0, #9 - 800366c: 2100 movs r1, #0 - 800366e: 4b47 ldr r3, [pc, #284] ; (800378c ) - 8003670: fb03 f201 mul.w r2, r3, r1 - 8003674: 2300 movs r3, #0 - 8003676: fb00 f303 mul.w r3, r0, r3 - 800367a: 4413 add r3, r2 - 800367c: 4a43 ldr r2, [pc, #268] ; (800378c ) - 800367e: fba0 1202 umull r1, r2, r0, r2 - 8003682: 62fa str r2, [r7, #44] ; 0x2c - 8003684: 460a mov r2, r1 - 8003686: 62ba str r2, [r7, #40] ; 0x28 - 8003688: 6afa ldr r2, [r7, #44] ; 0x2c - 800368a: 4413 add r3, r2 - 800368c: 62fb str r3, [r7, #44] ; 0x2c - 800368e: 6b7b ldr r3, [r7, #52] ; 0x34 - 8003690: 2200 movs r2, #0 - 8003692: 61bb str r3, [r7, #24] - 8003694: 61fa str r2, [r7, #28] - 8003696: e9d7 2306 ldrd r2, r3, [r7, #24] - 800369a: e9d7 010a ldrd r0, r1, [r7, #40] ; 0x28 - 800369e: f7fd fa93 bl 8000bc8 <__aeabi_uldivmod> - 80036a2: 4602 mov r2, r0 - 80036a4: 460b mov r3, r1 - 80036a6: 4613 mov r3, r2 - 80036a8: 63fb str r3, [r7, #60] ; 0x3c - 80036aa: e053 b.n 8003754 + 8003656: 4b4a ldr r3, [pc, #296] ; (8003780 ) + 8003658: 685b ldr r3, [r3, #4] + 800365a: 099b lsrs r3, r3, #6 + 800365c: 2200 movs r2, #0 + 800365e: 623b str r3, [r7, #32] + 8003660: 627a str r2, [r7, #36] ; 0x24 + 8003662: 6a3b ldr r3, [r7, #32] + 8003664: f3c3 0008 ubfx r0, r3, #0, #9 + 8003668: 2100 movs r1, #0 + 800366a: 4b47 ldr r3, [pc, #284] ; (8003788 ) + 800366c: fb03 f201 mul.w r2, r3, r1 + 8003670: 2300 movs r3, #0 + 8003672: fb00 f303 mul.w r3, r0, r3 + 8003676: 4413 add r3, r2 + 8003678: 4a43 ldr r2, [pc, #268] ; (8003788 ) + 800367a: fba0 1202 umull r1, r2, r0, r2 + 800367e: 62fa str r2, [r7, #44] ; 0x2c + 8003680: 460a mov r2, r1 + 8003682: 62ba str r2, [r7, #40] ; 0x28 + 8003684: 6afa ldr r2, [r7, #44] ; 0x2c + 8003686: 4413 add r3, r2 + 8003688: 62fb str r3, [r7, #44] ; 0x2c + 800368a: 6b7b ldr r3, [r7, #52] ; 0x34 + 800368c: 2200 movs r2, #0 + 800368e: 61bb str r3, [r7, #24] + 8003690: 61fa str r2, [r7, #28] + 8003692: e9d7 2306 ldrd r2, r3, [r7, #24] + 8003696: e9d7 010a ldrd r0, r1, [r7, #40] ; 0x28 + 800369a: f7fd fa95 bl 8000bc8 <__aeabi_uldivmod> + 800369e: 4602 mov r2, r0 + 80036a0: 460b mov r3, r1 + 80036a2: 4613 mov r3, r2 + 80036a4: 63fb str r3, [r7, #60] ; 0x3c + 80036a6: e053 b.n 8003750 } else { /* HSI used as PLL clock source */ pllvco = (uint32_t) ((((uint64_t) HSI_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 80036ac: 4b35 ldr r3, [pc, #212] ; (8003784 ) - 80036ae: 685b ldr r3, [r3, #4] - 80036b0: 099b lsrs r3, r3, #6 - 80036b2: 2200 movs r2, #0 - 80036b4: 613b str r3, [r7, #16] - 80036b6: 617a str r2, [r7, #20] - 80036b8: 693b ldr r3, [r7, #16] - 80036ba: f3c3 0a08 ubfx sl, r3, #0, #9 - 80036be: f04f 0b00 mov.w fp, #0 - 80036c2: 4652 mov r2, sl - 80036c4: 465b mov r3, fp - 80036c6: f04f 0000 mov.w r0, #0 - 80036ca: f04f 0100 mov.w r1, #0 - 80036ce: 0159 lsls r1, r3, #5 - 80036d0: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 80036d4: 0150 lsls r0, r2, #5 - 80036d6: 4602 mov r2, r0 - 80036d8: 460b mov r3, r1 - 80036da: ebb2 080a subs.w r8, r2, sl - 80036de: eb63 090b sbc.w r9, r3, fp - 80036e2: f04f 0200 mov.w r2, #0 - 80036e6: f04f 0300 mov.w r3, #0 - 80036ea: ea4f 1389 mov.w r3, r9, lsl #6 - 80036ee: ea43 6398 orr.w r3, r3, r8, lsr #26 - 80036f2: ea4f 1288 mov.w r2, r8, lsl #6 - 80036f6: ebb2 0408 subs.w r4, r2, r8 - 80036fa: eb63 0509 sbc.w r5, r3, r9 - 80036fe: f04f 0200 mov.w r2, #0 - 8003702: f04f 0300 mov.w r3, #0 - 8003706: 00eb lsls r3, r5, #3 - 8003708: ea43 7354 orr.w r3, r3, r4, lsr #29 - 800370c: 00e2 lsls r2, r4, #3 - 800370e: 4614 mov r4, r2 - 8003710: 461d mov r5, r3 - 8003712: eb14 030a adds.w r3, r4, sl - 8003716: 603b str r3, [r7, #0] - 8003718: eb45 030b adc.w r3, r5, fp - 800371c: 607b str r3, [r7, #4] - 800371e: f04f 0200 mov.w r2, #0 - 8003722: f04f 0300 mov.w r3, #0 - 8003726: e9d7 4500 ldrd r4, r5, [r7] - 800372a: 4629 mov r1, r5 - 800372c: 028b lsls r3, r1, #10 - 800372e: 4621 mov r1, r4 - 8003730: ea43 5391 orr.w r3, r3, r1, lsr #22 - 8003734: 4621 mov r1, r4 - 8003736: 028a lsls r2, r1, #10 - 8003738: 4610 mov r0, r2 - 800373a: 4619 mov r1, r3 - 800373c: 6b7b ldr r3, [r7, #52] ; 0x34 - 800373e: 2200 movs r2, #0 - 8003740: 60bb str r3, [r7, #8] - 8003742: 60fa str r2, [r7, #12] - 8003744: e9d7 2302 ldrd r2, r3, [r7, #8] - 8003748: f7fd fa3e bl 8000bc8 <__aeabi_uldivmod> - 800374c: 4602 mov r2, r0 - 800374e: 460b mov r3, r1 - 8003750: 4613 mov r3, r2 - 8003752: 63fb str r3, [r7, #60] ; 0x3c + 80036a8: 4b35 ldr r3, [pc, #212] ; (8003780 ) + 80036aa: 685b ldr r3, [r3, #4] + 80036ac: 099b lsrs r3, r3, #6 + 80036ae: 2200 movs r2, #0 + 80036b0: 613b str r3, [r7, #16] + 80036b2: 617a str r2, [r7, #20] + 80036b4: 693b ldr r3, [r7, #16] + 80036b6: f3c3 0a08 ubfx sl, r3, #0, #9 + 80036ba: f04f 0b00 mov.w fp, #0 + 80036be: 4652 mov r2, sl + 80036c0: 465b mov r3, fp + 80036c2: f04f 0000 mov.w r0, #0 + 80036c6: f04f 0100 mov.w r1, #0 + 80036ca: 0159 lsls r1, r3, #5 + 80036cc: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 80036d0: 0150 lsls r0, r2, #5 + 80036d2: 4602 mov r2, r0 + 80036d4: 460b mov r3, r1 + 80036d6: ebb2 080a subs.w r8, r2, sl + 80036da: eb63 090b sbc.w r9, r3, fp + 80036de: f04f 0200 mov.w r2, #0 + 80036e2: f04f 0300 mov.w r3, #0 + 80036e6: ea4f 1389 mov.w r3, r9, lsl #6 + 80036ea: ea43 6398 orr.w r3, r3, r8, lsr #26 + 80036ee: ea4f 1288 mov.w r2, r8, lsl #6 + 80036f2: ebb2 0408 subs.w r4, r2, r8 + 80036f6: eb63 0509 sbc.w r5, r3, r9 + 80036fa: f04f 0200 mov.w r2, #0 + 80036fe: f04f 0300 mov.w r3, #0 + 8003702: 00eb lsls r3, r5, #3 + 8003704: ea43 7354 orr.w r3, r3, r4, lsr #29 + 8003708: 00e2 lsls r2, r4, #3 + 800370a: 4614 mov r4, r2 + 800370c: 461d mov r5, r3 + 800370e: eb14 030a adds.w r3, r4, sl + 8003712: 603b str r3, [r7, #0] + 8003714: eb45 030b adc.w r3, r5, fp + 8003718: 607b str r3, [r7, #4] + 800371a: f04f 0200 mov.w r2, #0 + 800371e: f04f 0300 mov.w r3, #0 + 8003722: e9d7 4500 ldrd r4, r5, [r7] + 8003726: 4629 mov r1, r5 + 8003728: 028b lsls r3, r1, #10 + 800372a: 4621 mov r1, r4 + 800372c: ea43 5391 orr.w r3, r3, r1, lsr #22 + 8003730: 4621 mov r1, r4 + 8003732: 028a lsls r2, r1, #10 + 8003734: 4610 mov r0, r2 + 8003736: 4619 mov r1, r3 + 8003738: 6b7b ldr r3, [r7, #52] ; 0x34 + 800373a: 2200 movs r2, #0 + 800373c: 60bb str r3, [r7, #8] + 800373e: 60fa str r2, [r7, #12] + 8003740: e9d7 2302 ldrd r2, r3, [r7, #8] + 8003744: f7fd fa40 bl 8000bc8 <__aeabi_uldivmod> + 8003748: 4602 mov r2, r0 + 800374a: 460b mov r3, r1 + 800374c: 4613 mov r3, r2 + 800374e: 63fb str r3, [r7, #60] ; 0x3c } pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) *2U); - 8003754: 4b0b ldr r3, [pc, #44] ; (8003784 ) - 8003756: 685b ldr r3, [r3, #4] - 8003758: 0c1b lsrs r3, r3, #16 - 800375a: f003 0303 and.w r3, r3, #3 - 800375e: 3301 adds r3, #1 - 8003760: 005b lsls r3, r3, #1 - 8003762: 633b str r3, [r7, #48] ; 0x30 + 8003750: 4b0b ldr r3, [pc, #44] ; (8003780 ) + 8003752: 685b ldr r3, [r3, #4] + 8003754: 0c1b lsrs r3, r3, #16 + 8003756: f003 0303 and.w r3, r3, #3 + 800375a: 3301 adds r3, #1 + 800375c: 005b lsls r3, r3, #1 + 800375e: 633b str r3, [r7, #48] ; 0x30 sysclockfreq = pllvco/pllp; - 8003764: 6bfa ldr r2, [r7, #60] ; 0x3c - 8003766: 6b3b ldr r3, [r7, #48] ; 0x30 - 8003768: fbb2 f3f3 udiv r3, r2, r3 - 800376c: 63bb str r3, [r7, #56] ; 0x38 + 8003760: 6bfa ldr r2, [r7, #60] ; 0x3c + 8003762: 6b3b ldr r3, [r7, #48] ; 0x30 + 8003764: fbb2 f3f3 udiv r3, r2, r3 + 8003768: 63bb str r3, [r7, #56] ; 0x38 break; - 800376e: e002 b.n 8003776 + 800376a: e002 b.n 8003772 } default: { sysclockfreq = HSI_VALUE; - 8003770: 4b05 ldr r3, [pc, #20] ; (8003788 ) - 8003772: 63bb str r3, [r7, #56] ; 0x38 + 800376c: 4b05 ldr r3, [pc, #20] ; (8003784 ) + 800376e: 63bb str r3, [r7, #56] ; 0x38 break; - 8003774: bf00 nop + 8003770: bf00 nop } } return sysclockfreq; - 8003776: 6bbb ldr r3, [r7, #56] ; 0x38 + 8003772: 6bbb ldr r3, [r7, #56] ; 0x38 } - 8003778: 4618 mov r0, r3 - 800377a: 3740 adds r7, #64 ; 0x40 - 800377c: 46bd mov sp, r7 - 800377e: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 8003782: bf00 nop - 8003784: 40023800 .word 0x40023800 - 8003788: 00f42400 .word 0x00f42400 - 800378c: 017d7840 .word 0x017d7840 + 8003774: 4618 mov r0, r3 + 8003776: 3740 adds r7, #64 ; 0x40 + 8003778: 46bd mov sp, r7 + 800377a: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 800377e: bf00 nop + 8003780: 40023800 .word 0x40023800 + 8003784: 00f42400 .word 0x00f42400 + 8003788: 017d7840 .word 0x017d7840 -08003790 : +0800378c : * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency * and updated within this function * @retval HCLK frequency */ uint32_t HAL_RCC_GetHCLKFreq(void) { - 8003790: b480 push {r7} - 8003792: af00 add r7, sp, #0 + 800378c: b480 push {r7} + 800378e: af00 add r7, sp, #0 return SystemCoreClock; - 8003794: 4b03 ldr r3, [pc, #12] ; (80037a4 ) - 8003796: 681b ldr r3, [r3, #0] + 8003790: 4b03 ldr r3, [pc, #12] ; (80037a0 ) + 8003792: 681b ldr r3, [r3, #0] } - 8003798: 4618 mov r0, r3 - 800379a: 46bd mov sp, r7 - 800379c: f85d 7b04 ldr.w r7, [sp], #4 - 80037a0: 4770 bx lr - 80037a2: bf00 nop - 80037a4: 20000000 .word 0x20000000 + 8003794: 4618 mov r0, r3 + 8003796: 46bd mov sp, r7 + 8003798: f85d 7b04 ldr.w r7, [sp], #4 + 800379c: 4770 bx lr + 800379e: bf00 nop + 80037a0: 20000000 .word 0x20000000 -080037a8 : +080037a4 : * @param ExtTiming Pointer to SRAM extended mode timing structure * @retval HAL status */ HAL_StatusTypeDef HAL_SRAM_Init(SRAM_HandleTypeDef *hsram, FMC_NORSRAM_TimingTypeDef *Timing, FMC_NORSRAM_TimingTypeDef *ExtTiming) { - 80037a8: b580 push {r7, lr} - 80037aa: b084 sub sp, #16 - 80037ac: af00 add r7, sp, #0 - 80037ae: 60f8 str r0, [r7, #12] - 80037b0: 60b9 str r1, [r7, #8] - 80037b2: 607a str r2, [r7, #4] + 80037a4: b580 push {r7, lr} + 80037a6: b084 sub sp, #16 + 80037a8: af00 add r7, sp, #0 + 80037aa: 60f8 str r0, [r7, #12] + 80037ac: 60b9 str r1, [r7, #8] + 80037ae: 607a str r2, [r7, #4] /* Check the SRAM handle parameter */ if (hsram == NULL) - 80037b4: 68fb ldr r3, [r7, #12] - 80037b6: 2b00 cmp r3, #0 - 80037b8: d101 bne.n 80037be + 80037b0: 68fb ldr r3, [r7, #12] + 80037b2: 2b00 cmp r3, #0 + 80037b4: d101 bne.n 80037ba { return HAL_ERROR; - 80037ba: 2301 movs r3, #1 - 80037bc: e038 b.n 8003830 + 80037b6: 2301 movs r3, #1 + 80037b8: e038 b.n 800382c } if (hsram->State == HAL_SRAM_STATE_RESET) - 80037be: 68fb ldr r3, [r7, #12] - 80037c0: f893 3049 ldrb.w r3, [r3, #73] ; 0x49 - 80037c4: b2db uxtb r3, r3 - 80037c6: 2b00 cmp r3, #0 - 80037c8: d106 bne.n 80037d8 + 80037ba: 68fb ldr r3, [r7, #12] + 80037bc: f893 3049 ldrb.w r3, [r3, #73] ; 0x49 + 80037c0: b2db uxtb r3, r3 + 80037c2: 2b00 cmp r3, #0 + 80037c4: d106 bne.n 80037d4 { /* Allocate lock resource and initialize it */ hsram->Lock = HAL_UNLOCKED; - 80037ca: 68fb ldr r3, [r7, #12] - 80037cc: 2200 movs r2, #0 - 80037ce: f883 2048 strb.w r2, [r3, #72] ; 0x48 + 80037c6: 68fb ldr r3, [r7, #12] + 80037c8: 2200 movs r2, #0 + 80037ca: f883 2048 strb.w r2, [r3, #72] ; 0x48 /* Init the low level hardware */ hsram->MspInitCallback(hsram); #else /* Initialize the low level hardware (MSP) */ HAL_SRAM_MspInit(hsram); - 80037d2: 68f8 ldr r0, [r7, #12] - 80037d4: f7fd fdb0 bl 8001338 + 80037ce: 68f8 ldr r0, [r7, #12] + 80037d0: f7fd fdb0 bl 8001334 #endif /* USE_HAL_SRAM_REGISTER_CALLBACKS */ } /* Initialize SRAM control Interface */ (void)FMC_NORSRAM_Init(hsram->Instance, &(hsram->Init)); + 80037d4: 68fb ldr r3, [r7, #12] + 80037d6: 681a ldr r2, [r3, #0] 80037d8: 68fb ldr r3, [r7, #12] - 80037da: 681a ldr r2, [r3, #0] - 80037dc: 68fb ldr r3, [r7, #12] - 80037de: 3308 adds r3, #8 - 80037e0: 4619 mov r1, r3 - 80037e2: 4610 mov r0, r2 - 80037e4: f000 f828 bl 8003838 + 80037da: 3308 adds r3, #8 + 80037dc: 4619 mov r1, r3 + 80037de: 4610 mov r0, r2 + 80037e0: f000 f828 bl 8003834 /* Initialize SRAM timing Interface */ (void)FMC_NORSRAM_Timing_Init(hsram->Instance, Timing, hsram->Init.NSBank); + 80037e4: 68fb ldr r3, [r7, #12] + 80037e6: 6818 ldr r0, [r3, #0] 80037e8: 68fb ldr r3, [r7, #12] - 80037ea: 6818 ldr r0, [r3, #0] - 80037ec: 68fb ldr r3, [r7, #12] - 80037ee: 689b ldr r3, [r3, #8] - 80037f0: 461a mov r2, r3 - 80037f2: 68b9 ldr r1, [r7, #8] - 80037f4: f000 f8a6 bl 8003944 + 80037ea: 689b ldr r3, [r3, #8] + 80037ec: 461a mov r2, r3 + 80037ee: 68b9 ldr r1, [r7, #8] + 80037f0: f000 f8a6 bl 8003940 /* Initialize SRAM extended mode timing Interface */ (void)FMC_NORSRAM_Extended_Timing_Init(hsram->Extended, ExtTiming, hsram->Init.NSBank, + 80037f4: 68fb ldr r3, [r7, #12] + 80037f6: 6858 ldr r0, [r3, #4] 80037f8: 68fb ldr r3, [r7, #12] - 80037fa: 6858 ldr r0, [r3, #4] + 80037fa: 689a ldr r2, [r3, #8] 80037fc: 68fb ldr r3, [r7, #12] - 80037fe: 689a ldr r2, [r3, #8] - 8003800: 68fb ldr r3, [r7, #12] - 8003802: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003804: 6879 ldr r1, [r7, #4] - 8003806: f000 f8ed bl 80039e4 + 80037fe: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003800: 6879 ldr r1, [r7, #4] + 8003802: f000 f8ed bl 80039e0 hsram->Init.ExtendedMode); /* Enable the NORSRAM device */ __FMC_NORSRAM_ENABLE(hsram->Instance, hsram->Init.NSBank); - 800380a: 68fb ldr r3, [r7, #12] - 800380c: 681b ldr r3, [r3, #0] - 800380e: 68fa ldr r2, [r7, #12] - 8003810: 6892 ldr r2, [r2, #8] - 8003812: f853 1022 ldr.w r1, [r3, r2, lsl #2] - 8003816: 68fb ldr r3, [r7, #12] - 8003818: 681b ldr r3, [r3, #0] - 800381a: 68fa ldr r2, [r7, #12] - 800381c: 6892 ldr r2, [r2, #8] - 800381e: f041 0101 orr.w r1, r1, #1 - 8003822: f843 1022 str.w r1, [r3, r2, lsl #2] + 8003806: 68fb ldr r3, [r7, #12] + 8003808: 681b ldr r3, [r3, #0] + 800380a: 68fa ldr r2, [r7, #12] + 800380c: 6892 ldr r2, [r2, #8] + 800380e: f853 1022 ldr.w r1, [r3, r2, lsl #2] + 8003812: 68fb ldr r3, [r7, #12] + 8003814: 681b ldr r3, [r3, #0] + 8003816: 68fa ldr r2, [r7, #12] + 8003818: 6892 ldr r2, [r2, #8] + 800381a: f041 0101 orr.w r1, r1, #1 + 800381e: f843 1022 str.w r1, [r3, r2, lsl #2] /* Initialize the SRAM controller state */ hsram->State = HAL_SRAM_STATE_READY; - 8003826: 68fb ldr r3, [r7, #12] - 8003828: 2201 movs r2, #1 - 800382a: f883 2049 strb.w r2, [r3, #73] ; 0x49 + 8003822: 68fb ldr r3, [r7, #12] + 8003824: 2201 movs r2, #1 + 8003826: f883 2049 strb.w r2, [r3, #73] ; 0x49 return HAL_OK; - 800382e: 2300 movs r3, #0 + 800382a: 2300 movs r3, #0 } - 8003830: 4618 mov r0, r3 - 8003832: 3710 adds r7, #16 - 8003834: 46bd mov sp, r7 - 8003836: bd80 pop {r7, pc} + 800382c: 4618 mov r0, r3 + 800382e: 3710 adds r7, #16 + 8003830: 46bd mov sp, r7 + 8003832: bd80 pop {r7, pc} -08003838 : +08003834 : * @param Init Pointer to NORSRAM Initialization structure * @retval HAL status */ HAL_StatusTypeDef FMC_NORSRAM_Init(FMC_NORSRAM_TypeDef *Device, FMC_NORSRAM_InitTypeDef *Init) { - 8003838: b480 push {r7} - 800383a: b087 sub sp, #28 - 800383c: af00 add r7, sp, #0 - 800383e: 6078 str r0, [r7, #4] - 8003840: 6039 str r1, [r7, #0] + 8003834: b480 push {r7} + 8003836: b087 sub sp, #28 + 8003838: af00 add r7, sp, #0 + 800383a: 6078 str r0, [r7, #4] + 800383c: 6039 str r1, [r7, #0] assert_param(IS_FMC_WRITE_FIFO(Init->WriteFifo)); #endif /* FMC_BCR1_WFDIS */ assert_param(IS_FMC_PAGESIZE(Init->PageSize)); /* Disable NORSRAM Device */ __FMC_NORSRAM_DISABLE(Device, Init->NSBank); - 8003842: 683b ldr r3, [r7, #0] - 8003844: 681a ldr r2, [r3, #0] - 8003846: 687b ldr r3, [r7, #4] - 8003848: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800384c: 683a ldr r2, [r7, #0] - 800384e: 6812 ldr r2, [r2, #0] - 8003850: f023 0101 bic.w r1, r3, #1 - 8003854: 687b ldr r3, [r7, #4] - 8003856: f843 1022 str.w r1, [r3, r2, lsl #2] + 800383e: 683b ldr r3, [r7, #0] + 8003840: 681a ldr r2, [r3, #0] + 8003842: 687b ldr r3, [r7, #4] + 8003844: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8003848: 683a ldr r2, [r7, #0] + 800384a: 6812 ldr r2, [r2, #0] + 800384c: f023 0101 bic.w r1, r3, #1 + 8003850: 687b ldr r3, [r7, #4] + 8003852: f843 1022 str.w r1, [r3, r2, lsl #2] /* Set NORSRAM device control parameters */ if (Init->MemoryType == FMC_MEMORY_TYPE_NOR) - 800385a: 683b ldr r3, [r7, #0] - 800385c: 689b ldr r3, [r3, #8] - 800385e: 2b08 cmp r3, #8 - 8003860: d102 bne.n 8003868 + 8003856: 683b ldr r3, [r7, #0] + 8003858: 689b ldr r3, [r3, #8] + 800385a: 2b08 cmp r3, #8 + 800385c: d102 bne.n 8003864 { flashaccess = FMC_NORSRAM_FLASH_ACCESS_ENABLE; - 8003862: 2340 movs r3, #64 ; 0x40 - 8003864: 617b str r3, [r7, #20] - 8003866: e001 b.n 800386c + 800385e: 2340 movs r3, #64 ; 0x40 + 8003860: 617b str r3, [r7, #20] + 8003862: e001 b.n 8003868 } else { flashaccess = FMC_NORSRAM_FLASH_ACCESS_DISABLE; - 8003868: 2300 movs r3, #0 - 800386a: 617b str r3, [r7, #20] + 8003864: 2300 movs r3, #0 + 8003866: 617b str r3, [r7, #20] } btcr_reg = (flashaccess | \ Init->DataAddressMux | \ - 800386c: 683b ldr r3, [r7, #0] - 800386e: 685a ldr r2, [r3, #4] + 8003868: 683b ldr r3, [r7, #0] + 800386a: 685a ldr r2, [r3, #4] btcr_reg = (flashaccess | \ - 8003870: 697b ldr r3, [r7, #20] - 8003872: 431a orrs r2, r3 + 800386c: 697b ldr r3, [r7, #20] + 800386e: 431a orrs r2, r3 Init->MemoryType | \ - 8003874: 683b ldr r3, [r7, #0] - 8003876: 689b ldr r3, [r3, #8] + 8003870: 683b ldr r3, [r7, #0] + 8003872: 689b ldr r3, [r3, #8] Init->DataAddressMux | \ - 8003878: 431a orrs r2, r3 + 8003874: 431a orrs r2, r3 Init->MemoryDataWidth | \ - 800387a: 683b ldr r3, [r7, #0] - 800387c: 68db ldr r3, [r3, #12] + 8003876: 683b ldr r3, [r7, #0] + 8003878: 68db ldr r3, [r3, #12] Init->MemoryType | \ - 800387e: 431a orrs r2, r3 + 800387a: 431a orrs r2, r3 Init->BurstAccessMode | \ - 8003880: 683b ldr r3, [r7, #0] - 8003882: 691b ldr r3, [r3, #16] + 800387c: 683b ldr r3, [r7, #0] + 800387e: 691b ldr r3, [r3, #16] Init->MemoryDataWidth | \ - 8003884: 431a orrs r2, r3 + 8003880: 431a orrs r2, r3 Init->WaitSignalPolarity | \ - 8003886: 683b ldr r3, [r7, #0] - 8003888: 695b ldr r3, [r3, #20] + 8003882: 683b ldr r3, [r7, #0] + 8003884: 695b ldr r3, [r3, #20] Init->BurstAccessMode | \ - 800388a: 431a orrs r2, r3 + 8003886: 431a orrs r2, r3 Init->WaitSignalActive | \ - 800388c: 683b ldr r3, [r7, #0] - 800388e: 69db ldr r3, [r3, #28] + 8003888: 683b ldr r3, [r7, #0] + 800388a: 69db ldr r3, [r3, #28] Init->WaitSignalPolarity | \ - 8003890: 431a orrs r2, r3 + 800388c: 431a orrs r2, r3 Init->WriteOperation | \ - 8003892: 683b ldr r3, [r7, #0] - 8003894: 6a1b ldr r3, [r3, #32] + 800388e: 683b ldr r3, [r7, #0] + 8003890: 6a1b ldr r3, [r3, #32] Init->WaitSignalActive | \ - 8003896: 431a orrs r2, r3 + 8003892: 431a orrs r2, r3 Init->WaitSignal | \ - 8003898: 683b ldr r3, [r7, #0] - 800389a: 6a5b ldr r3, [r3, #36] ; 0x24 + 8003894: 683b ldr r3, [r7, #0] + 8003896: 6a5b ldr r3, [r3, #36] ; 0x24 Init->WriteOperation | \ - 800389c: 431a orrs r2, r3 + 8003898: 431a orrs r2, r3 Init->ExtendedMode | \ - 800389e: 683b ldr r3, [r7, #0] - 80038a0: 6a9b ldr r3, [r3, #40] ; 0x28 + 800389a: 683b ldr r3, [r7, #0] + 800389c: 6a9b ldr r3, [r3, #40] ; 0x28 Init->WaitSignal | \ - 80038a2: 431a orrs r2, r3 + 800389e: 431a orrs r2, r3 Init->AsynchronousWait | \ - 80038a4: 683b ldr r3, [r7, #0] - 80038a6: 6adb ldr r3, [r3, #44] ; 0x2c + 80038a0: 683b ldr r3, [r7, #0] + 80038a2: 6adb ldr r3, [r3, #44] ; 0x2c Init->ExtendedMode | \ - 80038a8: 431a orrs r2, r3 + 80038a4: 431a orrs r2, r3 Init->WriteBurst); - 80038aa: 683b ldr r3, [r7, #0] - 80038ac: 6b1b ldr r3, [r3, #48] ; 0x30 + 80038a6: 683b ldr r3, [r7, #0] + 80038a8: 6b1b ldr r3, [r3, #48] ; 0x30 btcr_reg = (flashaccess | \ - 80038ae: 4313 orrs r3, r2 - 80038b0: 613b str r3, [r7, #16] + 80038aa: 4313 orrs r3, r2 + 80038ac: 613b str r3, [r7, #16] #if defined(FMC_BCR1_WRAPMOD) btcr_reg |= Init->WrapMode; - 80038b2: 683b ldr r3, [r7, #0] - 80038b4: 699b ldr r3, [r3, #24] - 80038b6: 693a ldr r2, [r7, #16] - 80038b8: 4313 orrs r3, r2 - 80038ba: 613b str r3, [r7, #16] + 80038ae: 683b ldr r3, [r7, #0] + 80038b0: 699b ldr r3, [r3, #24] + 80038b2: 693a ldr r2, [r7, #16] + 80038b4: 4313 orrs r3, r2 + 80038b6: 613b str r3, [r7, #16] #endif /* FMC_BCR1_WRAPMOD */ #if defined(FMC_BCR1_CCLKEN) btcr_reg |= Init->ContinuousClock; - 80038bc: 683b ldr r3, [r7, #0] - 80038be: 6b5b ldr r3, [r3, #52] ; 0x34 - 80038c0: 693a ldr r2, [r7, #16] - 80038c2: 4313 orrs r3, r2 - 80038c4: 613b str r3, [r7, #16] + 80038b8: 683b ldr r3, [r7, #0] + 80038ba: 6b5b ldr r3, [r3, #52] ; 0x34 + 80038bc: 693a ldr r2, [r7, #16] + 80038be: 4313 orrs r3, r2 + 80038c0: 613b str r3, [r7, #16] #endif /* FMC_BCR1_CCLKEN */ #if defined(FMC_BCR1_WFDIS) btcr_reg |= Init->WriteFifo; #endif /* FMC_BCR1_WFDIS */ btcr_reg |= Init->PageSize; - 80038c6: 683b ldr r3, [r7, #0] - 80038c8: 6bdb ldr r3, [r3, #60] ; 0x3c - 80038ca: 693a ldr r2, [r7, #16] - 80038cc: 4313 orrs r3, r2 - 80038ce: 613b str r3, [r7, #16] + 80038c2: 683b ldr r3, [r7, #0] + 80038c4: 6bdb ldr r3, [r3, #60] ; 0x3c + 80038c6: 693a ldr r2, [r7, #16] + 80038c8: 4313 orrs r3, r2 + 80038ca: 613b str r3, [r7, #16] mask = (FMC_BCR1_MBKEN | - 80038d0: 4b1b ldr r3, [pc, #108] ; (8003940 ) - 80038d2: 60fb str r3, [r7, #12] + 80038cc: 4b1b ldr r3, [pc, #108] ; (800393c ) + 80038ce: 60fb str r3, [r7, #12] FMC_BCR1_EXTMOD | FMC_BCR1_ASYNCWAIT | FMC_BCR1_CBURSTRW); #if defined(FMC_BCR1_WRAPMOD) mask |= FMC_BCR1_WRAPMOD; - 80038d4: 68fb ldr r3, [r7, #12] - 80038d6: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 80038da: 60fb str r3, [r7, #12] + 80038d0: 68fb ldr r3, [r7, #12] + 80038d2: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 80038d6: 60fb str r3, [r7, #12] #endif /* FMC_BCR1_WRAPMOD */ #if defined(FMC_BCR1_CCLKEN) mask |= FMC_BCR1_CCLKEN; - 80038dc: 68fb ldr r3, [r7, #12] - 80038de: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 - 80038e2: 60fb str r3, [r7, #12] + 80038d8: 68fb ldr r3, [r7, #12] + 80038da: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 + 80038de: 60fb str r3, [r7, #12] #endif #if defined(FMC_BCR1_WFDIS) mask |= FMC_BCR1_WFDIS; #endif /* FMC_BCR1_WFDIS */ mask |= FMC_BCR1_CPSIZE; - 80038e4: 68fb ldr r3, [r7, #12] - 80038e6: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 - 80038ea: 60fb str r3, [r7, #12] + 80038e0: 68fb ldr r3, [r7, #12] + 80038e2: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 + 80038e6: 60fb str r3, [r7, #12] MODIFY_REG(Device->BTCR[Init->NSBank], mask, btcr_reg); - 80038ec: 683b ldr r3, [r7, #0] - 80038ee: 681a ldr r2, [r3, #0] - 80038f0: 687b ldr r3, [r7, #4] - 80038f2: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 80038f6: 68fb ldr r3, [r7, #12] - 80038f8: 43db mvns r3, r3 - 80038fa: ea02 0103 and.w r1, r2, r3 - 80038fe: 683b ldr r3, [r7, #0] - 8003900: 681a ldr r2, [r3, #0] - 8003902: 693b ldr r3, [r7, #16] - 8003904: 4319 orrs r1, r3 - 8003906: 687b ldr r3, [r7, #4] - 8003908: f843 1022 str.w r1, [r3, r2, lsl #2] + 80038e8: 683b ldr r3, [r7, #0] + 80038ea: 681a ldr r2, [r3, #0] + 80038ec: 687b ldr r3, [r7, #4] + 80038ee: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 80038f2: 68fb ldr r3, [r7, #12] + 80038f4: 43db mvns r3, r3 + 80038f6: ea02 0103 and.w r1, r2, r3 + 80038fa: 683b ldr r3, [r7, #0] + 80038fc: 681a ldr r2, [r3, #0] + 80038fe: 693b ldr r3, [r7, #16] + 8003900: 4319 orrs r1, r3 + 8003902: 687b ldr r3, [r7, #4] + 8003904: f843 1022 str.w r1, [r3, r2, lsl #2] #if defined(FMC_BCR1_CCLKEN) /* Configure synchronous mode when Continuous clock is enabled for bank2..4 */ if ((Init->ContinuousClock == FMC_CONTINUOUS_CLOCK_SYNC_ASYNC) && (Init->NSBank != FMC_NORSRAM_BANK1)) - 800390c: 683b ldr r3, [r7, #0] - 800390e: 6b5b ldr r3, [r3, #52] ; 0x34 - 8003910: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 8003914: d10c bne.n 8003930 - 8003916: 683b ldr r3, [r7, #0] - 8003918: 681b ldr r3, [r3, #0] - 800391a: 2b00 cmp r3, #0 - 800391c: d008 beq.n 8003930 + 8003908: 683b ldr r3, [r7, #0] + 800390a: 6b5b ldr r3, [r3, #52] ; 0x34 + 800390c: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 + 8003910: d10c bne.n 800392c + 8003912: 683b ldr r3, [r7, #0] + 8003914: 681b ldr r3, [r3, #0] + 8003916: 2b00 cmp r3, #0 + 8003918: d008 beq.n 800392c { MODIFY_REG(Device->BTCR[FMC_NORSRAM_BANK1], FMC_BCR1_CCLKEN, Init->ContinuousClock); - 800391e: 687b ldr r3, [r7, #4] - 8003920: 681b ldr r3, [r3, #0] - 8003922: f423 1280 bic.w r2, r3, #1048576 ; 0x100000 - 8003926: 683b ldr r3, [r7, #0] - 8003928: 6b5b ldr r3, [r3, #52] ; 0x34 - 800392a: 431a orrs r2, r3 - 800392c: 687b ldr r3, [r7, #4] - 800392e: 601a str r2, [r3, #0] + 800391a: 687b ldr r3, [r7, #4] + 800391c: 681b ldr r3, [r3, #0] + 800391e: f423 1280 bic.w r2, r3, #1048576 ; 0x100000 + 8003922: 683b ldr r3, [r7, #0] + 8003924: 6b5b ldr r3, [r3, #52] ; 0x34 + 8003926: 431a orrs r2, r3 + 8003928: 687b ldr r3, [r7, #4] + 800392a: 601a str r2, [r3, #0] /* Configure Write FIFO mode when Write Fifo is enabled for bank2..4 */ SET_BIT(Device->BTCR[FMC_NORSRAM_BANK1], (uint32_t)(Init->WriteFifo)); } #endif /* FMC_BCR1_WFDIS */ return HAL_OK; - 8003930: 2300 movs r3, #0 + 800392c: 2300 movs r3, #0 } - 8003932: 4618 mov r0, r3 - 8003934: 371c adds r7, #28 - 8003936: 46bd mov sp, r7 - 8003938: f85d 7b04 ldr.w r7, [sp], #4 - 800393c: 4770 bx lr - 800393e: bf00 nop - 8003940: 0008fb7f .word 0x0008fb7f + 800392e: 4618 mov r0, r3 + 8003930: 371c adds r7, #28 + 8003932: 46bd mov sp, r7 + 8003934: f85d 7b04 ldr.w r7, [sp], #4 + 8003938: 4770 bx lr + 800393a: bf00 nop + 800393c: 0008fb7f .word 0x0008fb7f -08003944 : +08003940 : * @param Bank NORSRAM bank number * @retval HAL status */ HAL_StatusTypeDef FMC_NORSRAM_Timing_Init(FMC_NORSRAM_TypeDef *Device, FMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank) { - 8003944: b480 push {r7} - 8003946: b087 sub sp, #28 - 8003948: af00 add r7, sp, #0 - 800394a: 60f8 str r0, [r7, #12] - 800394c: 60b9 str r1, [r7, #8] - 800394e: 607a str r2, [r7, #4] + 8003940: b480 push {r7} + 8003942: b087 sub sp, #28 + 8003944: af00 add r7, sp, #0 + 8003946: 60f8 str r0, [r7, #12] + 8003948: 60b9 str r1, [r7, #8] + 800394a: 607a str r2, [r7, #4] assert_param(IS_FMC_DATA_LATENCY(Timing->DataLatency)); assert_param(IS_FMC_ACCESS_MODE(Timing->AccessMode)); assert_param(IS_FMC_NORSRAM_BANK(Bank)); /* Set FMC_NORSRAM device timing parameters */ MODIFY_REG(Device->BTCR[Bank + 1U], BTR_CLEAR_MASK, (Timing->AddressSetupTime | - 8003950: 687b ldr r3, [r7, #4] - 8003952: 1c5a adds r2, r3, #1 - 8003954: 68fb ldr r3, [r7, #12] - 8003956: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800395a: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 + 800394c: 687b ldr r3, [r7, #4] + 800394e: 1c5a adds r2, r3, #1 + 8003950: 68fb ldr r3, [r7, #12] + 8003952: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8003956: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 + 800395a: 68bb ldr r3, [r7, #8] + 800395c: 681a ldr r2, [r3, #0] 800395e: 68bb ldr r3, [r7, #8] - 8003960: 681a ldr r2, [r3, #0] - 8003962: 68bb ldr r3, [r7, #8] - 8003964: 685b ldr r3, [r3, #4] - 8003966: 011b lsls r3, r3, #4 - 8003968: 431a orrs r2, r3 - 800396a: 68bb ldr r3, [r7, #8] - 800396c: 689b ldr r3, [r3, #8] - 800396e: 021b lsls r3, r3, #8 - 8003970: 431a orrs r2, r3 - 8003972: 68bb ldr r3, [r7, #8] - 8003974: 68db ldr r3, [r3, #12] - 8003976: 041b lsls r3, r3, #16 - 8003978: 431a orrs r2, r3 - 800397a: 68bb ldr r3, [r7, #8] - 800397c: 691b ldr r3, [r3, #16] - 800397e: 3b01 subs r3, #1 - 8003980: 051b lsls r3, r3, #20 - 8003982: 431a orrs r2, r3 - 8003984: 68bb ldr r3, [r7, #8] - 8003986: 695b ldr r3, [r3, #20] - 8003988: 3b02 subs r3, #2 - 800398a: 061b lsls r3, r3, #24 - 800398c: 431a orrs r2, r3 - 800398e: 68bb ldr r3, [r7, #8] - 8003990: 699b ldr r3, [r3, #24] - 8003992: 4313 orrs r3, r2 - 8003994: 687a ldr r2, [r7, #4] - 8003996: 3201 adds r2, #1 - 8003998: 4319 orrs r1, r3 - 800399a: 68fb ldr r3, [r7, #12] - 800399c: f843 1022 str.w r1, [r3, r2, lsl #2] + 8003960: 685b ldr r3, [r3, #4] + 8003962: 011b lsls r3, r3, #4 + 8003964: 431a orrs r2, r3 + 8003966: 68bb ldr r3, [r7, #8] + 8003968: 689b ldr r3, [r3, #8] + 800396a: 021b lsls r3, r3, #8 + 800396c: 431a orrs r2, r3 + 800396e: 68bb ldr r3, [r7, #8] + 8003970: 68db ldr r3, [r3, #12] + 8003972: 041b lsls r3, r3, #16 + 8003974: 431a orrs r2, r3 + 8003976: 68bb ldr r3, [r7, #8] + 8003978: 691b ldr r3, [r3, #16] + 800397a: 3b01 subs r3, #1 + 800397c: 051b lsls r3, r3, #20 + 800397e: 431a orrs r2, r3 + 8003980: 68bb ldr r3, [r7, #8] + 8003982: 695b ldr r3, [r3, #20] + 8003984: 3b02 subs r3, #2 + 8003986: 061b lsls r3, r3, #24 + 8003988: 431a orrs r2, r3 + 800398a: 68bb ldr r3, [r7, #8] + 800398c: 699b ldr r3, [r3, #24] + 800398e: 4313 orrs r3, r2 + 8003990: 687a ldr r2, [r7, #4] + 8003992: 3201 adds r2, #1 + 8003994: 4319 orrs r1, r3 + 8003996: 68fb ldr r3, [r7, #12] + 8003998: f843 1022 str.w r1, [r3, r2, lsl #2] (((Timing->DataLatency) - 2U) << FMC_BTR1_DATLAT_Pos) | (Timing->AccessMode))); #if defined(FMC_BCR1_CCLKEN) /* Configure Clock division value (in NORSRAM bank 1) when continuous clock is enabled */ if (HAL_IS_BIT_SET(Device->BTCR[FMC_NORSRAM_BANK1], FMC_BCR1_CCLKEN)) - 80039a0: 68fb ldr r3, [r7, #12] - 80039a2: 681b ldr r3, [r3, #0] - 80039a4: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 80039a8: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 80039ac: d113 bne.n 80039d6 + 800399c: 68fb ldr r3, [r7, #12] + 800399e: 681b ldr r3, [r3, #0] + 80039a0: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 80039a4: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 + 80039a8: d113 bne.n 80039d2 { tmpr = (uint32_t)(Device->BTCR[FMC_NORSRAM_BANK1 + 1U] & ~((0x0FU) << FMC_BTR1_CLKDIV_Pos)); - 80039ae: 68fb ldr r3, [r7, #12] - 80039b0: 685b ldr r3, [r3, #4] - 80039b2: f423 0370 bic.w r3, r3, #15728640 ; 0xf00000 - 80039b6: 617b str r3, [r7, #20] + 80039aa: 68fb ldr r3, [r7, #12] + 80039ac: 685b ldr r3, [r3, #4] + 80039ae: f423 0370 bic.w r3, r3, #15728640 ; 0xf00000 + 80039b2: 617b str r3, [r7, #20] tmpr |= (uint32_t)(((Timing->CLKDivision) - 1U) << FMC_BTR1_CLKDIV_Pos); - 80039b8: 68bb ldr r3, [r7, #8] - 80039ba: 691b ldr r3, [r3, #16] - 80039bc: 3b01 subs r3, #1 - 80039be: 051b lsls r3, r3, #20 - 80039c0: 697a ldr r2, [r7, #20] - 80039c2: 4313 orrs r3, r2 - 80039c4: 617b str r3, [r7, #20] + 80039b4: 68bb ldr r3, [r7, #8] + 80039b6: 691b ldr r3, [r3, #16] + 80039b8: 3b01 subs r3, #1 + 80039ba: 051b lsls r3, r3, #20 + 80039bc: 697a ldr r2, [r7, #20] + 80039be: 4313 orrs r3, r2 + 80039c0: 617b str r3, [r7, #20] MODIFY_REG(Device->BTCR[FMC_NORSRAM_BANK1 + 1U], FMC_BTR1_CLKDIV, tmpr); - 80039c6: 68fb ldr r3, [r7, #12] - 80039c8: 685b ldr r3, [r3, #4] - 80039ca: f423 0270 bic.w r2, r3, #15728640 ; 0xf00000 - 80039ce: 697b ldr r3, [r7, #20] - 80039d0: 431a orrs r2, r3 - 80039d2: 68fb ldr r3, [r7, #12] - 80039d4: 605a str r2, [r3, #4] + 80039c2: 68fb ldr r3, [r7, #12] + 80039c4: 685b ldr r3, [r3, #4] + 80039c6: f423 0270 bic.w r2, r3, #15728640 ; 0xf00000 + 80039ca: 697b ldr r3, [r7, #20] + 80039cc: 431a orrs r2, r3 + 80039ce: 68fb ldr r3, [r7, #12] + 80039d0: 605a str r2, [r3, #4] } #endif return HAL_OK; - 80039d6: 2300 movs r3, #0 + 80039d2: 2300 movs r3, #0 } - 80039d8: 4618 mov r0, r3 - 80039da: 371c adds r7, #28 - 80039dc: 46bd mov sp, r7 - 80039de: f85d 7b04 ldr.w r7, [sp], #4 - 80039e2: 4770 bx lr + 80039d4: 4618 mov r0, r3 + 80039d6: 371c adds r7, #28 + 80039d8: 46bd mov sp, r7 + 80039da: f85d 7b04 ldr.w r7, [sp], #4 + 80039de: 4770 bx lr -080039e4 : +080039e0 : * @retval HAL status */ HAL_StatusTypeDef FMC_NORSRAM_Extended_Timing_Init(FMC_NORSRAM_EXTENDED_TypeDef *Device, FMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank, uint32_t ExtendedMode) { - 80039e4: b480 push {r7} - 80039e6: b085 sub sp, #20 - 80039e8: af00 add r7, sp, #0 - 80039ea: 60f8 str r0, [r7, #12] - 80039ec: 60b9 str r1, [r7, #8] - 80039ee: 607a str r2, [r7, #4] - 80039f0: 603b str r3, [r7, #0] + 80039e0: b480 push {r7} + 80039e2: b085 sub sp, #20 + 80039e4: af00 add r7, sp, #0 + 80039e6: 60f8 str r0, [r7, #12] + 80039e8: 60b9 str r1, [r7, #8] + 80039ea: 607a str r2, [r7, #4] + 80039ec: 603b str r3, [r7, #0] /* Check the parameters */ assert_param(IS_FMC_EXTENDED_MODE(ExtendedMode)); /* Set NORSRAM device timing register for write configuration, if extended mode is used */ if (ExtendedMode == FMC_EXTENDED_MODE_ENABLE) - 80039f2: 683b ldr r3, [r7, #0] - 80039f4: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 80039f8: d11d bne.n 8003a36 + 80039ee: 683b ldr r3, [r7, #0] + 80039f0: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 80039f4: d11d bne.n 8003a32 assert_param(IS_FMC_TURNAROUND_TIME(Timing->BusTurnAroundDuration)); assert_param(IS_FMC_ACCESS_MODE(Timing->AccessMode)); assert_param(IS_FMC_NORSRAM_BANK(Bank)); /* Set NORSRAM device timing register for write configuration, if extended mode is used */ MODIFY_REG(Device->BWTR[Bank], BWTR_CLEAR_MASK, (Timing->AddressSetupTime | - 80039fa: 68fb ldr r3, [r7, #12] - 80039fc: 687a ldr r2, [r7, #4] - 80039fe: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 8003a02: 4b13 ldr r3, [pc, #76] ; (8003a50 ) - 8003a04: 4013 ands r3, r2 + 80039f6: 68fb ldr r3, [r7, #12] + 80039f8: 687a ldr r2, [r7, #4] + 80039fa: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 80039fe: 4b13 ldr r3, [pc, #76] ; (8003a4c ) + 8003a00: 4013 ands r3, r2 + 8003a02: 68ba ldr r2, [r7, #8] + 8003a04: 6811 ldr r1, [r2, #0] 8003a06: 68ba ldr r2, [r7, #8] - 8003a08: 6811 ldr r1, [r2, #0] - 8003a0a: 68ba ldr r2, [r7, #8] - 8003a0c: 6852 ldr r2, [r2, #4] - 8003a0e: 0112 lsls r2, r2, #4 - 8003a10: 4311 orrs r1, r2 - 8003a12: 68ba ldr r2, [r7, #8] - 8003a14: 6892 ldr r2, [r2, #8] - 8003a16: 0212 lsls r2, r2, #8 - 8003a18: 4311 orrs r1, r2 - 8003a1a: 68ba ldr r2, [r7, #8] - 8003a1c: 6992 ldr r2, [r2, #24] - 8003a1e: 4311 orrs r1, r2 - 8003a20: 68ba ldr r2, [r7, #8] - 8003a22: 68d2 ldr r2, [r2, #12] - 8003a24: 0412 lsls r2, r2, #16 - 8003a26: 430a orrs r2, r1 - 8003a28: ea43 0102 orr.w r1, r3, r2 - 8003a2c: 68fb ldr r3, [r7, #12] - 8003a2e: 687a ldr r2, [r7, #4] - 8003a30: f843 1022 str.w r1, [r3, r2, lsl #2] - 8003a34: e005 b.n 8003a42 + 8003a08: 6852 ldr r2, [r2, #4] + 8003a0a: 0112 lsls r2, r2, #4 + 8003a0c: 4311 orrs r1, r2 + 8003a0e: 68ba ldr r2, [r7, #8] + 8003a10: 6892 ldr r2, [r2, #8] + 8003a12: 0212 lsls r2, r2, #8 + 8003a14: 4311 orrs r1, r2 + 8003a16: 68ba ldr r2, [r7, #8] + 8003a18: 6992 ldr r2, [r2, #24] + 8003a1a: 4311 orrs r1, r2 + 8003a1c: 68ba ldr r2, [r7, #8] + 8003a1e: 68d2 ldr r2, [r2, #12] + 8003a20: 0412 lsls r2, r2, #16 + 8003a22: 430a orrs r2, r1 + 8003a24: ea43 0102 orr.w r1, r3, r2 + 8003a28: 68fb ldr r3, [r7, #12] + 8003a2a: 687a ldr r2, [r7, #4] + 8003a2c: f843 1022 str.w r1, [r3, r2, lsl #2] + 8003a30: e005 b.n 8003a3e Timing->AccessMode | ((Timing->BusTurnAroundDuration) << FMC_BWTR1_BUSTURN_Pos))); } else { Device->BWTR[Bank] = 0x0FFFFFFFU; - 8003a36: 68fb ldr r3, [r7, #12] - 8003a38: 687a ldr r2, [r7, #4] - 8003a3a: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 - 8003a3e: f843 1022 str.w r1, [r3, r2, lsl #2] + 8003a32: 68fb ldr r3, [r7, #12] + 8003a34: 687a ldr r2, [r7, #4] + 8003a36: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 + 8003a3a: f843 1022 str.w r1, [r3, r2, lsl #2] } return HAL_OK; - 8003a42: 2300 movs r3, #0 + 8003a3e: 2300 movs r3, #0 } - 8003a44: 4618 mov r0, r3 - 8003a46: 3714 adds r7, #20 - 8003a48: 46bd mov sp, r7 - 8003a4a: f85d 7b04 ldr.w r7, [sp], #4 - 8003a4e: 4770 bx lr - 8003a50: cff00000 .word 0xcff00000 + 8003a40: 4618 mov r0, r3 + 8003a42: 3714 adds r7, #20 + 8003a44: 46bd mov sp, r7 + 8003a46: f85d 7b04 ldr.w r7, [sp], #4 + 8003a4a: 4770 bx lr + 8003a4c: cff00000 .word 0xcff00000 -08003a54 : +08003a50 : /** * LwIP initialization function */ void MX_LWIP_Init(void) { - 8003a54: b580 push {r7, lr} - 8003a56: b084 sub sp, #16 - 8003a58: af04 add r7, sp, #16 + 8003a50: b580 push {r7, lr} + 8003a52: b084 sub sp, #16 + 8003a54: af04 add r7, sp, #16 /* Initilialize the LwIP stack without RTOS */ lwip_init(); - 8003a5a: f000 fc63 bl 8004324 + 8003a56: f000 fc63 bl 8004320 /* IP addresses initialization with DHCP (IPv4) */ ipaddr.addr = ipaddr_addr("10.1.1.69"); - 8003a5e: 481d ldr r0, [pc, #116] ; (8003ad4 ) - 8003a60: f00b fc01 bl 800f266 - 8003a64: 4603 mov r3, r0 - 8003a66: 4a1c ldr r2, [pc, #112] ; (8003ad8 ) - 8003a68: 6013 str r3, [r2, #0] + 8003a5a: 481d ldr r0, [pc, #116] ; (8003ad0 ) + 8003a5c: f00b fc01 bl 800f262 + 8003a60: 4603 mov r3, r0 + 8003a62: 4a1c ldr r2, [pc, #112] ; (8003ad4 ) + 8003a64: 6013 str r3, [r2, #0] netmask.addr = ipaddr_addr("255.255.255.0"); - 8003a6a: 481c ldr r0, [pc, #112] ; (8003adc ) - 8003a6c: f00b fbfb bl 800f266 - 8003a70: 4603 mov r3, r0 - 8003a72: 4a1b ldr r2, [pc, #108] ; (8003ae0 ) - 8003a74: 6013 str r3, [r2, #0] + 8003a66: 481c ldr r0, [pc, #112] ; (8003ad8 ) + 8003a68: f00b fbfb bl 800f262 + 8003a6c: 4603 mov r3, r0 + 8003a6e: 4a1b ldr r2, [pc, #108] ; (8003adc ) + 8003a70: 6013 str r3, [r2, #0] gw.addr = ipaddr_addr("10.1.1.1"); - 8003a76: 481b ldr r0, [pc, #108] ; (8003ae4 ) - 8003a78: f00b fbf5 bl 800f266 - 8003a7c: 4603 mov r3, r0 - 8003a7e: 4a1a ldr r2, [pc, #104] ; (8003ae8 ) - 8003a80: 6013 str r3, [r2, #0] + 8003a72: 481b ldr r0, [pc, #108] ; (8003ae0 ) + 8003a74: f00b fbf5 bl 800f262 + 8003a78: 4603 mov r3, r0 + 8003a7a: 4a1a ldr r2, [pc, #104] ; (8003ae4 ) + 8003a7c: 6013 str r3, [r2, #0] /* add the network interface (IPv4/IPv6) without RTOS */ netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, ðernet_input); - 8003a82: 4b1a ldr r3, [pc, #104] ; (8003aec ) - 8003a84: 9302 str r3, [sp, #8] - 8003a86: 4b1a ldr r3, [pc, #104] ; (8003af0 ) - 8003a88: 9301 str r3, [sp, #4] - 8003a8a: 2300 movs r3, #0 - 8003a8c: 9300 str r3, [sp, #0] - 8003a8e: 4b16 ldr r3, [pc, #88] ; (8003ae8 ) - 8003a90: 4a13 ldr r2, [pc, #76] ; (8003ae0 ) - 8003a92: 4911 ldr r1, [pc, #68] ; (8003ad8 ) - 8003a94: 4817 ldr r0, [pc, #92] ; (8003af4 ) - 8003a96: f001 f931 bl 8004cfc + 8003a7e: 4b1a ldr r3, [pc, #104] ; (8003ae8 ) + 8003a80: 9302 str r3, [sp, #8] + 8003a82: 4b1a ldr r3, [pc, #104] ; (8003aec ) + 8003a84: 9301 str r3, [sp, #4] + 8003a86: 2300 movs r3, #0 + 8003a88: 9300 str r3, [sp, #0] + 8003a8a: 4b16 ldr r3, [pc, #88] ; (8003ae4 ) + 8003a8c: 4a13 ldr r2, [pc, #76] ; (8003adc ) + 8003a8e: 4911 ldr r1, [pc, #68] ; (8003ad4 ) + 8003a90: 4817 ldr r0, [pc, #92] ; (8003af0 ) + 8003a92: f001 f931 bl 8004cf8 /* Registers the default network interface */ netif_set_default(&gnetif); - 8003a9a: 4816 ldr r0, [pc, #88] ; (8003af4 ) - 8003a9c: f001 fae8 bl 8005070 + 8003a96: 4816 ldr r0, [pc, #88] ; (8003af0 ) + 8003a98: f001 fae8 bl 800506c if (netif_is_link_up(&gnetif)) - 8003aa0: 4b14 ldr r3, [pc, #80] ; (8003af4 ) - 8003aa2: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8003aa6: 089b lsrs r3, r3, #2 - 8003aa8: f003 0301 and.w r3, r3, #1 - 8003aac: b2db uxtb r3, r3 - 8003aae: 2b00 cmp r3, #0 - 8003ab0: d003 beq.n 8003aba + 8003a9c: 4b14 ldr r3, [pc, #80] ; (8003af0 ) + 8003a9e: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8003aa2: 089b lsrs r3, r3, #2 + 8003aa4: f003 0301 and.w r3, r3, #1 + 8003aa8: b2db uxtb r3, r3 + 8003aaa: 2b00 cmp r3, #0 + 8003aac: d003 beq.n 8003ab6 { /* When the netif is fully configured this function must be called */ netif_set_up(&gnetif); - 8003ab2: 4810 ldr r0, [pc, #64] ; (8003af4 ) - 8003ab4: f001 faec bl 8005090 - 8003ab8: e002 b.n 8003ac0 + 8003aae: 4810 ldr r0, [pc, #64] ; (8003af0 ) + 8003ab0: f001 faec bl 800508c + 8003ab4: e002 b.n 8003abc } else { /* When the netif link is down this function must be called */ netif_set_down(&gnetif); - 8003aba: 480e ldr r0, [pc, #56] ; (8003af4 ) - 8003abc: f001 fb54 bl 8005168 + 8003ab6: 480e ldr r0, [pc, #56] ; (8003af0 ) + 8003ab8: f001 fb54 bl 8005164 } /* Set the link callback function, this function is called on change of link status*/ netif_set_link_callback(&gnetif, ethernet_link_status_updated); - 8003ac0: 490d ldr r1, [pc, #52] ; (8003af8 ) - 8003ac2: 480c ldr r0, [pc, #48] ; (8003af4 ) - 8003ac4: f001 fbea bl 800529c + 8003abc: 490d ldr r1, [pc, #52] ; (8003af4 ) + 8003abe: 480c ldr r0, [pc, #48] ; (8003af0 ) + 8003ac0: f001 fbea bl 8005298 /* Create the Ethernet link handler thread */ /* Start DHCP negotiation for a network interface (IPv4) */ dhcp_start(&gnetif); - 8003ac8: 480a ldr r0, [pc, #40] ; (8003af4 ) - 8003aca: f008 fce3 bl 800c494 + 8003ac4: 480a ldr r0, [pc, #40] ; (8003af0 ) + 8003ac6: f008 fce3 bl 800c490 /* USER CODE BEGIN 3 */ /* USER CODE END 3 */ } - 8003ace: bf00 nop - 8003ad0: 46bd mov sp, r7 - 8003ad2: bd80 pop {r7, pc} - 8003ad4: 08014ec8 .word 0x08014ec8 - 8003ad8: 20000a90 .word 0x20000a90 - 8003adc: 08014ed4 .word 0x08014ed4 - 8003ae0: 20000a94 .word 0x20000a94 - 8003ae4: 08014ee4 .word 0x08014ee4 - 8003ae8: 20000a98 .word 0x20000a98 - 8003aec: 08010161 .word 0x08010161 - 8003af0: 08003e09 .word 0x08003e09 - 8003af4: 20000a58 .word 0x20000a58 - 8003af8: 08003b4d .word 0x08003b4d + 8003aca: bf00 nop + 8003acc: 46bd mov sp, r7 + 8003ace: bd80 pop {r7, pc} + 8003ad0: 08014ec8 .word 0x08014ec8 + 8003ad4: 20000a90 .word 0x20000a90 + 8003ad8: 08014ed4 .word 0x08014ed4 + 8003adc: 20000a94 .word 0x20000a94 + 8003ae0: 08014ee4 .word 0x08014ee4 + 8003ae4: 20000a98 .word 0x20000a98 + 8003ae8: 0801015d .word 0x0801015d + 8003aec: 08003e05 .word 0x08003e05 + 8003af0: 20000a58 .word 0x20000a58 + 8003af4: 08003b49 .word 0x08003b49 -08003afc : +08003af8 : * @brief Ethernet Link periodic check * @param netif * @retval None */ static void Ethernet_Link_Periodic_Handle(struct netif *netif) { - 8003afc: b580 push {r7, lr} - 8003afe: b082 sub sp, #8 - 8003b00: af00 add r7, sp, #0 - 8003b02: 6078 str r0, [r7, #4] + 8003af8: b580 push {r7, lr} + 8003afa: b082 sub sp, #8 + 8003afc: af00 add r7, sp, #0 + 8003afe: 6078 str r0, [r7, #4] /* USER CODE BEGIN 4_4_1 */ /* USER CODE END 4_4_1 */ /* Ethernet Link every 100ms */ if (HAL_GetTick() - EthernetLinkTimer >= 100) - 8003b04: f7fd fe4e bl 80017a4 - 8003b08: 4602 mov r2, r0 - 8003b0a: 4b08 ldr r3, [pc, #32] ; (8003b2c ) - 8003b0c: 681b ldr r3, [r3, #0] - 8003b0e: 1ad3 subs r3, r2, r3 - 8003b10: 2b63 cmp r3, #99 ; 0x63 - 8003b12: d907 bls.n 8003b24 + 8003b00: f7fd fe4e bl 80017a0 + 8003b04: 4602 mov r2, r0 + 8003b06: 4b08 ldr r3, [pc, #32] ; (8003b28 ) + 8003b08: 681b ldr r3, [r3, #0] + 8003b0a: 1ad3 subs r3, r2, r3 + 8003b0c: 2b63 cmp r3, #99 ; 0x63 + 8003b0e: d907 bls.n 8003b20 { EthernetLinkTimer = HAL_GetTick(); - 8003b14: f7fd fe46 bl 80017a4 - 8003b18: 4603 mov r3, r0 - 8003b1a: 4a04 ldr r2, [pc, #16] ; (8003b2c ) - 8003b1c: 6013 str r3, [r2, #0] + 8003b10: f7fd fe46 bl 80017a0 + 8003b14: 4603 mov r3, r0 + 8003b16: 4a04 ldr r2, [pc, #16] ; (8003b28 ) + 8003b18: 6013 str r3, [r2, #0] ethernet_link_check_state(netif); - 8003b1e: 6878 ldr r0, [r7, #4] - 8003b20: f000 fad6 bl 80040d0 + 8003b1a: 6878 ldr r0, [r7, #4] + 8003b1c: f000 fad6 bl 80040cc } /* USER CODE BEGIN 4_4 */ /* USER CODE END 4_4 */ } - 8003b24: bf00 nop - 8003b26: 3708 adds r7, #8 - 8003b28: 46bd mov sp, r7 - 8003b2a: bd80 pop {r7, pc} - 8003b2c: 20000a54 .word 0x20000a54 + 8003b20: bf00 nop + 8003b22: 3708 adds r7, #8 + 8003b24: 46bd mov sp, r7 + 8003b26: bd80 pop {r7, pc} + 8003b28: 20000a54 .word 0x20000a54 -08003b30 : +08003b2c : * Send it to the lwIP stack for handling * Handle timeouts if LWIP_TIMERS is set and without RTOS * Handle the llink status if LWIP_NETIF_LINK_CALLBACK is set and without RTOS */ void MX_LWIP_Process(void) { - 8003b30: b580 push {r7, lr} - 8003b32: af00 add r7, sp, #0 + 8003b2c: b580 push {r7, lr} + 8003b2e: af00 add r7, sp, #0 /* USER CODE BEGIN 4_1 */ /* USER CODE END 4_1 */ ethernetif_input(&gnetif); - 8003b34: 4804 ldr r0, [pc, #16] ; (8003b48 ) - 8003b36: f000 f947 bl 8003dc8 + 8003b30: 4804 ldr r0, [pc, #16] ; (8003b44 ) + 8003b32: f000 f947 bl 8003dc4 /* USER CODE BEGIN 4_2 */ /* USER CODE END 4_2 */ /* Handle timeouts */ sys_check_timeouts(); - 8003b3a: f007 fc31 bl 800b3a0 + 8003b36: f007 fc31 bl 800b39c Ethernet_Link_Periodic_Handle(&gnetif); - 8003b3e: 4802 ldr r0, [pc, #8] ; (8003b48 ) - 8003b40: f7ff ffdc bl 8003afc + 8003b3a: 4802 ldr r0, [pc, #8] ; (8003b44 ) + 8003b3c: f7ff ffdc bl 8003af8 /* USER CODE BEGIN 4_3 */ /* USER CODE END 4_3 */ } - 8003b44: bf00 nop - 8003b46: bd80 pop {r7, pc} - 8003b48: 20000a58 .word 0x20000a58 + 8003b40: bf00 nop + 8003b42: bd80 pop {r7, pc} + 8003b44: 20000a58 .word 0x20000a58 -08003b4c : +08003b48 : * @brief Notify the User about the network interface config status * @param netif: the network interface * @retval None */ static void ethernet_link_status_updated(struct netif *netif) { - 8003b4c: b480 push {r7} - 8003b4e: b083 sub sp, #12 - 8003b50: af00 add r7, sp, #0 - 8003b52: 6078 str r0, [r7, #4] + 8003b48: b480 push {r7} + 8003b4a: b083 sub sp, #12 + 8003b4c: af00 add r7, sp, #0 + 8003b4e: 6078 str r0, [r7, #4] else /* netif is down */ { /* USER CODE BEGIN 6 */ /* USER CODE END 6 */ } } - 8003b54: bf00 nop - 8003b56: 370c adds r7, #12 - 8003b58: 46bd mov sp, r7 - 8003b5a: f85d 7b04 ldr.w r7, [sp], #4 - 8003b5e: 4770 bx lr + 8003b50: bf00 nop + 8003b52: 370c adds r7, #12 + 8003b54: 46bd mov sp, r7 + 8003b56: f85d 7b04 ldr.w r7, [sp], #4 + 8003b5a: 4770 bx lr -08003b60 : +08003b5c : * * @param netif the already initialized lwip network interface structure * for this ethernetif */ static void low_level_init(struct netif *netif) { - 8003b60: b580 push {r7, lr} - 8003b62: b084 sub sp, #16 - 8003b64: af00 add r7, sp, #0 - 8003b66: 6078 str r0, [r7, #4] + 8003b5c: b580 push {r7, lr} + 8003b5e: b084 sub sp, #16 + 8003b60: af00 add r7, sp, #0 + 8003b62: 6078 str r0, [r7, #4] HAL_StatusTypeDef hal_eth_init_status = HAL_OK; - 8003b68: 2300 movs r3, #0 - 8003b6a: 73fb strb r3, [r7, #15] + 8003b64: 2300 movs r3, #0 + 8003b66: 73fb strb r3, [r7, #15] /* Start ETH HAL Init */ uint8_t MACAddr[6] ; heth.Instance = ETH; - 8003b6c: 4b40 ldr r3, [pc, #256] ; (8003c70 ) - 8003b6e: 4a41 ldr r2, [pc, #260] ; (8003c74 ) - 8003b70: 601a str r2, [r3, #0] + 8003b68: 4b40 ldr r3, [pc, #256] ; (8003c6c ) + 8003b6a: 4a41 ldr r2, [pc, #260] ; (8003c70 ) + 8003b6c: 601a str r2, [r3, #0] MACAddr[0] = 0xFB; - 8003b72: 23fb movs r3, #251 ; 0xfb - 8003b74: 723b strb r3, [r7, #8] + 8003b6e: 23fb movs r3, #251 ; 0xfb + 8003b70: 723b strb r3, [r7, #8] MACAddr[1] = 0x80; - 8003b76: 2380 movs r3, #128 ; 0x80 - 8003b78: 727b strb r3, [r7, #9] + 8003b72: 2380 movs r3, #128 ; 0x80 + 8003b74: 727b strb r3, [r7, #9] MACAddr[2] = 0xE1; - 8003b7a: 23e1 movs r3, #225 ; 0xe1 - 8003b7c: 72bb strb r3, [r7, #10] + 8003b76: 23e1 movs r3, #225 ; 0xe1 + 8003b78: 72bb strb r3, [r7, #10] MACAddr[3] = 0x15; - 8003b7e: 2315 movs r3, #21 - 8003b80: 72fb strb r3, [r7, #11] + 8003b7a: 2315 movs r3, #21 + 8003b7c: 72fb strb r3, [r7, #11] MACAddr[4] = 0x85; - 8003b82: 2385 movs r3, #133 ; 0x85 - 8003b84: 733b strb r3, [r7, #12] + 8003b7e: 2385 movs r3, #133 ; 0x85 + 8003b80: 733b strb r3, [r7, #12] MACAddr[5] = 0xA3; - 8003b86: 23a3 movs r3, #163 ; 0xa3 - 8003b88: 737b strb r3, [r7, #13] + 8003b82: 23a3 movs r3, #163 ; 0xa3 + 8003b84: 737b strb r3, [r7, #13] heth.Init.MACAddr = &MACAddr[0]; - 8003b8a: 4a39 ldr r2, [pc, #228] ; (8003c70 ) - 8003b8c: f107 0308 add.w r3, r7, #8 - 8003b90: 6053 str r3, [r2, #4] + 8003b86: 4a39 ldr r2, [pc, #228] ; (8003c6c ) + 8003b88: f107 0308 add.w r3, r7, #8 + 8003b8c: 6053 str r3, [r2, #4] heth.Init.MediaInterface = HAL_ETH_RMII_MODE; - 8003b92: 4b37 ldr r3, [pc, #220] ; (8003c70 ) - 8003b94: f44f 0200 mov.w r2, #8388608 ; 0x800000 - 8003b98: 609a str r2, [r3, #8] + 8003b8e: 4b37 ldr r3, [pc, #220] ; (8003c6c ) + 8003b90: f44f 0200 mov.w r2, #8388608 ; 0x800000 + 8003b94: 609a str r2, [r3, #8] heth.Init.TxDesc = DMATxDscrTab; - 8003b9a: 4b35 ldr r3, [pc, #212] ; (8003c70 ) - 8003b9c: 4a36 ldr r2, [pc, #216] ; (8003c78 ) - 8003b9e: 60da str r2, [r3, #12] + 8003b96: 4b35 ldr r3, [pc, #212] ; (8003c6c ) + 8003b98: 4a36 ldr r2, [pc, #216] ; (8003c74 ) + 8003b9a: 60da str r2, [r3, #12] heth.Init.RxDesc = DMARxDscrTab; - 8003ba0: 4b33 ldr r3, [pc, #204] ; (8003c70 ) - 8003ba2: 4a36 ldr r2, [pc, #216] ; (8003c7c ) - 8003ba4: 611a str r2, [r3, #16] + 8003b9c: 4b33 ldr r3, [pc, #204] ; (8003c6c ) + 8003b9e: 4a36 ldr r2, [pc, #216] ; (8003c78 ) + 8003ba0: 611a str r2, [r3, #16] heth.Init.RxBuffLen = 1536; - 8003ba6: 4b32 ldr r3, [pc, #200] ; (8003c70 ) - 8003ba8: f44f 62c0 mov.w r2, #1536 ; 0x600 - 8003bac: 615a str r2, [r3, #20] + 8003ba2: 4b32 ldr r3, [pc, #200] ; (8003c6c ) + 8003ba4: f44f 62c0 mov.w r2, #1536 ; 0x600 + 8003ba8: 615a str r2, [r3, #20] /* USER CODE BEGIN MACADDRESS */ /* USER CODE END MACADDRESS */ hal_eth_init_status = HAL_ETH_Init(&heth); - 8003bae: 4830 ldr r0, [pc, #192] ; (8003c70 ) - 8003bb0: f7fd ff0e bl 80019d0 - 8003bb4: 4603 mov r3, r0 - 8003bb6: 73fb strb r3, [r7, #15] + 8003baa: 4830 ldr r0, [pc, #192] ; (8003c6c ) + 8003bac: f7fd ff0e bl 80019cc + 8003bb0: 4603 mov r3, r0 + 8003bb2: 73fb strb r3, [r7, #15] memset(&TxConfig, 0 , sizeof(ETH_TxPacketConfig)); - 8003bb8: 2238 movs r2, #56 ; 0x38 - 8003bba: 2100 movs r1, #0 - 8003bbc: 4830 ldr r0, [pc, #192] ; (8003c80 ) - 8003bbe: f00c fc01 bl 80103c4 + 8003bb4: 2238 movs r2, #56 ; 0x38 + 8003bb6: 2100 movs r1, #0 + 8003bb8: 4830 ldr r0, [pc, #192] ; (8003c7c ) + 8003bba: f00c fc01 bl 80103c0 TxConfig.Attributes = ETH_TX_PACKETS_FEATURES_CSUM | ETH_TX_PACKETS_FEATURES_CRCPAD; - 8003bc2: 4b2f ldr r3, [pc, #188] ; (8003c80 ) - 8003bc4: 2221 movs r2, #33 ; 0x21 - 8003bc6: 601a str r2, [r3, #0] + 8003bbe: 4b2f ldr r3, [pc, #188] ; (8003c7c ) + 8003bc0: 2221 movs r2, #33 ; 0x21 + 8003bc2: 601a str r2, [r3, #0] TxConfig.ChecksumCtrl = ETH_CHECKSUM_IPHDR_PAYLOAD_INSERT_PHDR_CALC; - 8003bc8: 4b2d ldr r3, [pc, #180] ; (8003c80 ) - 8003bca: f44f 0240 mov.w r2, #12582912 ; 0xc00000 - 8003bce: 615a str r2, [r3, #20] + 8003bc4: 4b2d ldr r3, [pc, #180] ; (8003c7c ) + 8003bc6: f44f 0240 mov.w r2, #12582912 ; 0xc00000 + 8003bca: 615a str r2, [r3, #20] TxConfig.CRCPadCtrl = ETH_CRC_PAD_INSERT; - 8003bd0: 4b2b ldr r3, [pc, #172] ; (8003c80 ) - 8003bd2: 2200 movs r2, #0 - 8003bd4: 611a str r2, [r3, #16] + 8003bcc: 4b2b ldr r3, [pc, #172] ; (8003c7c ) + 8003bce: 2200 movs r2, #0 + 8003bd0: 611a str r2, [r3, #16] /* End ETH HAL Init */ /* Initialize the RX POOL */ LWIP_MEMPOOL_INIT(RX_POOL); - 8003bd6: 482b ldr r0, [pc, #172] ; (8003c84 ) - 8003bd8: f000 ff58 bl 8004a8c + 8003bd2: 482b ldr r0, [pc, #172] ; (8003c80 ) + 8003bd4: f000 ff58 bl 8004a88 #if LWIP_ARP || LWIP_ETHERNET /* set MAC hardware address length */ netif->hwaddr_len = ETH_HWADDR_LEN; - 8003bdc: 687b ldr r3, [r7, #4] - 8003bde: 2206 movs r2, #6 - 8003be0: f883 2030 strb.w r2, [r3, #48] ; 0x30 + 8003bd8: 687b ldr r3, [r7, #4] + 8003bda: 2206 movs r2, #6 + 8003bdc: f883 2030 strb.w r2, [r3, #48] ; 0x30 /* set MAC hardware address */ netif->hwaddr[0] = heth.Init.MACAddr[0]; - 8003be4: 4b22 ldr r3, [pc, #136] ; (8003c70 ) - 8003be6: 685b ldr r3, [r3, #4] - 8003be8: 781a ldrb r2, [r3, #0] - 8003bea: 687b ldr r3, [r7, #4] - 8003bec: f883 202a strb.w r2, [r3, #42] ; 0x2a + 8003be0: 4b22 ldr r3, [pc, #136] ; (8003c6c ) + 8003be2: 685b ldr r3, [r3, #4] + 8003be4: 781a ldrb r2, [r3, #0] + 8003be6: 687b ldr r3, [r7, #4] + 8003be8: f883 202a strb.w r2, [r3, #42] ; 0x2a netif->hwaddr[1] = heth.Init.MACAddr[1]; - 8003bf0: 4b1f ldr r3, [pc, #124] ; (8003c70 ) - 8003bf2: 685b ldr r3, [r3, #4] - 8003bf4: 785a ldrb r2, [r3, #1] - 8003bf6: 687b ldr r3, [r7, #4] - 8003bf8: f883 202b strb.w r2, [r3, #43] ; 0x2b + 8003bec: 4b1f ldr r3, [pc, #124] ; (8003c6c ) + 8003bee: 685b ldr r3, [r3, #4] + 8003bf0: 785a ldrb r2, [r3, #1] + 8003bf2: 687b ldr r3, [r7, #4] + 8003bf4: f883 202b strb.w r2, [r3, #43] ; 0x2b netif->hwaddr[2] = heth.Init.MACAddr[2]; - 8003bfc: 4b1c ldr r3, [pc, #112] ; (8003c70 ) - 8003bfe: 685b ldr r3, [r3, #4] - 8003c00: 789a ldrb r2, [r3, #2] - 8003c02: 687b ldr r3, [r7, #4] - 8003c04: f883 202c strb.w r2, [r3, #44] ; 0x2c + 8003bf8: 4b1c ldr r3, [pc, #112] ; (8003c6c ) + 8003bfa: 685b ldr r3, [r3, #4] + 8003bfc: 789a ldrb r2, [r3, #2] + 8003bfe: 687b ldr r3, [r7, #4] + 8003c00: f883 202c strb.w r2, [r3, #44] ; 0x2c netif->hwaddr[3] = heth.Init.MACAddr[3]; - 8003c08: 4b19 ldr r3, [pc, #100] ; (8003c70 ) - 8003c0a: 685b ldr r3, [r3, #4] - 8003c0c: 78da ldrb r2, [r3, #3] - 8003c0e: 687b ldr r3, [r7, #4] - 8003c10: f883 202d strb.w r2, [r3, #45] ; 0x2d + 8003c04: 4b19 ldr r3, [pc, #100] ; (8003c6c ) + 8003c06: 685b ldr r3, [r3, #4] + 8003c08: 78da ldrb r2, [r3, #3] + 8003c0a: 687b ldr r3, [r7, #4] + 8003c0c: f883 202d strb.w r2, [r3, #45] ; 0x2d netif->hwaddr[4] = heth.Init.MACAddr[4]; - 8003c14: 4b16 ldr r3, [pc, #88] ; (8003c70 ) - 8003c16: 685b ldr r3, [r3, #4] - 8003c18: 791a ldrb r2, [r3, #4] - 8003c1a: 687b ldr r3, [r7, #4] - 8003c1c: f883 202e strb.w r2, [r3, #46] ; 0x2e + 8003c10: 4b16 ldr r3, [pc, #88] ; (8003c6c ) + 8003c12: 685b ldr r3, [r3, #4] + 8003c14: 791a ldrb r2, [r3, #4] + 8003c16: 687b ldr r3, [r7, #4] + 8003c18: f883 202e strb.w r2, [r3, #46] ; 0x2e netif->hwaddr[5] = heth.Init.MACAddr[5]; - 8003c20: 4b13 ldr r3, [pc, #76] ; (8003c70 ) - 8003c22: 685b ldr r3, [r3, #4] - 8003c24: 795a ldrb r2, [r3, #5] - 8003c26: 687b ldr r3, [r7, #4] - 8003c28: f883 202f strb.w r2, [r3, #47] ; 0x2f + 8003c1c: 4b13 ldr r3, [pc, #76] ; (8003c6c ) + 8003c1e: 685b ldr r3, [r3, #4] + 8003c20: 795a ldrb r2, [r3, #5] + 8003c22: 687b ldr r3, [r7, #4] + 8003c24: f883 202f strb.w r2, [r3, #47] ; 0x2f /* maximum transfer unit */ netif->mtu = ETH_MAX_PAYLOAD; - 8003c2c: 687b ldr r3, [r7, #4] - 8003c2e: f240 52dc movw r2, #1500 ; 0x5dc - 8003c32: 851a strh r2, [r3, #40] ; 0x28 + 8003c28: 687b ldr r3, [r7, #4] + 8003c2a: f240 52dc movw r2, #1500 ; 0x5dc + 8003c2e: 851a strh r2, [r3, #40] ; 0x28 /* Accept broadcast address and ARP traffic */ /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */ #if LWIP_ARP netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP; - 8003c34: 687b ldr r3, [r7, #4] - 8003c36: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8003c3a: f043 030a orr.w r3, r3, #10 - 8003c3e: b2da uxtb r2, r3 - 8003c40: 687b ldr r3, [r7, #4] - 8003c42: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 8003c30: 687b ldr r3, [r7, #4] + 8003c32: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8003c36: f043 030a orr.w r3, r3, #10 + 8003c3a: b2da uxtb r2, r3 + 8003c3c: 687b ldr r3, [r7, #4] + 8003c3e: f883 2031 strb.w r2, [r3, #49] ; 0x31 /* USER CODE BEGIN PHY_PRE_CONFIG */ /* USER CODE END PHY_PRE_CONFIG */ /* Set PHY IO functions */ DP83848_RegisterBusIO(&DP83848, &DP83848_IOCtx); - 8003c46: 4910 ldr r1, [pc, #64] ; (8003c88 ) - 8003c48: 4810 ldr r0, [pc, #64] ; (8003c8c ) - 8003c4a: f7fd fbe4 bl 8001416 + 8003c42: 4910 ldr r1, [pc, #64] ; (8003c84 ) + 8003c44: 4810 ldr r0, [pc, #64] ; (8003c88 ) + 8003c46: f7fd fbe4 bl 8001412 /* Initialize the DP83848 ETH PHY */ DP83848_Init(&DP83848); - 8003c4e: 480f ldr r0, [pc, #60] ; (8003c8c ) - 8003c50: f7fd fc13 bl 800147a + 8003c4a: 480f ldr r0, [pc, #60] ; (8003c88 ) + 8003c4c: f7fd fc13 bl 8001476 if (hal_eth_init_status == HAL_OK) - 8003c54: 7bfb ldrb r3, [r7, #15] - 8003c56: 2b00 cmp r3, #0 - 8003c58: d103 bne.n 8003c62 + 8003c50: 7bfb ldrb r3, [r7, #15] + 8003c52: 2b00 cmp r3, #0 + 8003c54: d103 bne.n 8003c5e { /* Get link state */ ethernet_link_check_state(netif); - 8003c5a: 6878 ldr r0, [r7, #4] - 8003c5c: f000 fa38 bl 80040d0 + 8003c56: 6878 ldr r0, [r7, #4] + 8003c58: f000 fa38 bl 80040cc #endif /* LWIP_ARP || LWIP_ETHERNET */ /* USER CODE BEGIN LOW_LEVEL_INIT */ /* USER CODE END LOW_LEVEL_INIT */ } - 8003c60: e001 b.n 8003c66 + 8003c5c: e001 b.n 8003c62 Error_Handler(); - 8003c62: f7fd facc bl 80011fe + 8003c5e: f7fd facc bl 80011fa } - 8003c66: bf00 nop - 8003c68: 3710 adds r7, #16 - 8003c6a: 46bd mov sp, r7 - 8003c6c: bd80 pop {r7, pc} - 8003c6e: bf00 nop - 8003c70: 20005568 .word 0x20005568 - 8003c74: 40028000 .word 0x40028000 - 8003c78: 200054c8 .word 0x200054c8 - 8003c7c: 20005428 .word 0x20005428 - 8003c80: 20005618 .word 0x20005618 - 8003c84: 08017cf0 .word 0x08017cf0 - 8003c88: 2000000c .word 0x2000000c - 8003c8c: 20005650 .word 0x20005650 + 8003c62: bf00 nop + 8003c64: 3710 adds r7, #16 + 8003c66: 46bd mov sp, r7 + 8003c68: bd80 pop {r7, pc} + 8003c6a: bf00 nop + 8003c6c: 20005568 .word 0x20005568 + 8003c70: 40028000 .word 0x40028000 + 8003c74: 200054c8 .word 0x200054c8 + 8003c78: 20005428 .word 0x20005428 + 8003c7c: 20005618 .word 0x20005618 + 8003c80: 08017cf0 .word 0x08017cf0 + 8003c84: 2000000c .word 0x2000000c + 8003c88: 20005650 .word 0x20005650 -08003c90 : +08003c8c : * to become available since the stack doesn't retry to send a packet * dropped because of memory failure (except for the TCP timers). */ static err_t low_level_output(struct netif *netif, struct pbuf *p) { - 8003c90: b580 push {r7, lr} - 8003c92: b092 sub sp, #72 ; 0x48 - 8003c94: af00 add r7, sp, #0 - 8003c96: 6078 str r0, [r7, #4] - 8003c98: 6039 str r1, [r7, #0] + 8003c8c: b580 push {r7, lr} + 8003c8e: b092 sub sp, #72 ; 0x48 + 8003c90: af00 add r7, sp, #0 + 8003c92: 6078 str r0, [r7, #4] + 8003c94: 6039 str r1, [r7, #0] uint32_t i = 0U; - 8003c9a: 2300 movs r3, #0 - 8003c9c: 647b str r3, [r7, #68] ; 0x44 + 8003c96: 2300 movs r3, #0 + 8003c98: 647b str r3, [r7, #68] ; 0x44 struct pbuf *q = NULL; - 8003c9e: 2300 movs r3, #0 - 8003ca0: 643b str r3, [r7, #64] ; 0x40 + 8003c9a: 2300 movs r3, #0 + 8003c9c: 643b str r3, [r7, #64] ; 0x40 err_t errval = ERR_OK; - 8003ca2: 2300 movs r3, #0 - 8003ca4: f887 303f strb.w r3, [r7, #63] ; 0x3f + 8003c9e: 2300 movs r3, #0 + 8003ca0: f887 303f strb.w r3, [r7, #63] ; 0x3f ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT] = {0}; - 8003ca8: f107 030c add.w r3, r7, #12 - 8003cac: 2230 movs r2, #48 ; 0x30 - 8003cae: 2100 movs r1, #0 - 8003cb0: 4618 mov r0, r3 - 8003cb2: f00c fb87 bl 80103c4 + 8003ca4: f107 030c add.w r3, r7, #12 + 8003ca8: 2230 movs r2, #48 ; 0x30 + 8003caa: 2100 movs r1, #0 + 8003cac: 4618 mov r0, r3 + 8003cae: f00c fb87 bl 80103c0 memset(Txbuffer, 0 , ETH_TX_DESC_CNT*sizeof(ETH_BufferTypeDef)); - 8003cb6: f107 030c add.w r3, r7, #12 - 8003cba: 2230 movs r2, #48 ; 0x30 - 8003cbc: 2100 movs r1, #0 - 8003cbe: 4618 mov r0, r3 - 8003cc0: f00c fb80 bl 80103c4 + 8003cb2: f107 030c add.w r3, r7, #12 + 8003cb6: 2230 movs r2, #48 ; 0x30 + 8003cb8: 2100 movs r1, #0 + 8003cba: 4618 mov r0, r3 + 8003cbc: f00c fb80 bl 80103c0 for(q = p; q != NULL; q = q->next) - 8003cc4: 683b ldr r3, [r7, #0] - 8003cc6: 643b str r3, [r7, #64] ; 0x40 - 8003cc8: e045 b.n 8003d56 + 8003cc0: 683b ldr r3, [r7, #0] + 8003cc2: 643b str r3, [r7, #64] ; 0x40 + 8003cc4: e045 b.n 8003d52 { if(i >= ETH_TX_DESC_CNT) - 8003cca: 6c7b ldr r3, [r7, #68] ; 0x44 - 8003ccc: 2b03 cmp r3, #3 - 8003cce: d902 bls.n 8003cd6 + 8003cc6: 6c7b ldr r3, [r7, #68] ; 0x44 + 8003cc8: 2b03 cmp r3, #3 + 8003cca: d902 bls.n 8003cd2 return ERR_IF; - 8003cd0: f06f 030b mvn.w r3, #11 - 8003cd4: e055 b.n 8003d82 + 8003ccc: f06f 030b mvn.w r3, #11 + 8003cd0: e055 b.n 8003d7e Txbuffer[i].buffer = q->payload; - 8003cd6: 6c3b ldr r3, [r7, #64] ; 0x40 - 8003cd8: 6859 ldr r1, [r3, #4] - 8003cda: 6c7a ldr r2, [r7, #68] ; 0x44 - 8003cdc: 4613 mov r3, r2 - 8003cde: 005b lsls r3, r3, #1 - 8003ce0: 4413 add r3, r2 - 8003ce2: 009b lsls r3, r3, #2 - 8003ce4: 3348 adds r3, #72 ; 0x48 - 8003ce6: 443b add r3, r7 - 8003ce8: 3b3c subs r3, #60 ; 0x3c - 8003cea: 6019 str r1, [r3, #0] + 8003cd2: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003cd4: 6859 ldr r1, [r3, #4] + 8003cd6: 6c7a ldr r2, [r7, #68] ; 0x44 + 8003cd8: 4613 mov r3, r2 + 8003cda: 005b lsls r3, r3, #1 + 8003cdc: 4413 add r3, r2 + 8003cde: 009b lsls r3, r3, #2 + 8003ce0: 3348 adds r3, #72 ; 0x48 + 8003ce2: 443b add r3, r7 + 8003ce4: 3b3c subs r3, #60 ; 0x3c + 8003ce6: 6019 str r1, [r3, #0] Txbuffer[i].len = q->len; - 8003cec: 6c3b ldr r3, [r7, #64] ; 0x40 - 8003cee: 895b ldrh r3, [r3, #10] - 8003cf0: 4619 mov r1, r3 - 8003cf2: 6c7a ldr r2, [r7, #68] ; 0x44 - 8003cf4: 4613 mov r3, r2 - 8003cf6: 005b lsls r3, r3, #1 - 8003cf8: 4413 add r3, r2 - 8003cfa: 009b lsls r3, r3, #2 - 8003cfc: 3348 adds r3, #72 ; 0x48 - 8003cfe: 443b add r3, r7 - 8003d00: 3b38 subs r3, #56 ; 0x38 - 8003d02: 6019 str r1, [r3, #0] + 8003ce8: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003cea: 895b ldrh r3, [r3, #10] + 8003cec: 4619 mov r1, r3 + 8003cee: 6c7a ldr r2, [r7, #68] ; 0x44 + 8003cf0: 4613 mov r3, r2 + 8003cf2: 005b lsls r3, r3, #1 + 8003cf4: 4413 add r3, r2 + 8003cf6: 009b lsls r3, r3, #2 + 8003cf8: 3348 adds r3, #72 ; 0x48 + 8003cfa: 443b add r3, r7 + 8003cfc: 3b38 subs r3, #56 ; 0x38 + 8003cfe: 6019 str r1, [r3, #0] if(i>0) - 8003d04: 6c7b ldr r3, [r7, #68] ; 0x44 - 8003d06: 2b00 cmp r3, #0 - 8003d08: d011 beq.n 8003d2e + 8003d00: 6c7b ldr r3, [r7, #68] ; 0x44 + 8003d02: 2b00 cmp r3, #0 + 8003d04: d011 beq.n 8003d2a { Txbuffer[i-1].next = &Txbuffer[i]; - 8003d0a: 6c7b ldr r3, [r7, #68] ; 0x44 - 8003d0c: 1e5a subs r2, r3, #1 - 8003d0e: f107 000c add.w r0, r7, #12 - 8003d12: 6c79 ldr r1, [r7, #68] ; 0x44 - 8003d14: 460b mov r3, r1 - 8003d16: 005b lsls r3, r3, #1 - 8003d18: 440b add r3, r1 - 8003d1a: 009b lsls r3, r3, #2 - 8003d1c: 18c1 adds r1, r0, r3 - 8003d1e: 4613 mov r3, r2 - 8003d20: 005b lsls r3, r3, #1 - 8003d22: 4413 add r3, r2 - 8003d24: 009b lsls r3, r3, #2 - 8003d26: 3348 adds r3, #72 ; 0x48 - 8003d28: 443b add r3, r7 - 8003d2a: 3b34 subs r3, #52 ; 0x34 - 8003d2c: 6019 str r1, [r3, #0] + 8003d06: 6c7b ldr r3, [r7, #68] ; 0x44 + 8003d08: 1e5a subs r2, r3, #1 + 8003d0a: f107 000c add.w r0, r7, #12 + 8003d0e: 6c79 ldr r1, [r7, #68] ; 0x44 + 8003d10: 460b mov r3, r1 + 8003d12: 005b lsls r3, r3, #1 + 8003d14: 440b add r3, r1 + 8003d16: 009b lsls r3, r3, #2 + 8003d18: 18c1 adds r1, r0, r3 + 8003d1a: 4613 mov r3, r2 + 8003d1c: 005b lsls r3, r3, #1 + 8003d1e: 4413 add r3, r2 + 8003d20: 009b lsls r3, r3, #2 + 8003d22: 3348 adds r3, #72 ; 0x48 + 8003d24: 443b add r3, r7 + 8003d26: 3b34 subs r3, #52 ; 0x34 + 8003d28: 6019 str r1, [r3, #0] } if(q->next == NULL) - 8003d2e: 6c3b ldr r3, [r7, #64] ; 0x40 - 8003d30: 681b ldr r3, [r3, #0] - 8003d32: 2b00 cmp r3, #0 - 8003d34: d109 bne.n 8003d4a + 8003d2a: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003d2c: 681b ldr r3, [r3, #0] + 8003d2e: 2b00 cmp r3, #0 + 8003d30: d109 bne.n 8003d46 { Txbuffer[i].next = NULL; - 8003d36: 6c7a ldr r2, [r7, #68] ; 0x44 - 8003d38: 4613 mov r3, r2 - 8003d3a: 005b lsls r3, r3, #1 - 8003d3c: 4413 add r3, r2 - 8003d3e: 009b lsls r3, r3, #2 - 8003d40: 3348 adds r3, #72 ; 0x48 - 8003d42: 443b add r3, r7 - 8003d44: 3b34 subs r3, #52 ; 0x34 - 8003d46: 2200 movs r2, #0 - 8003d48: 601a str r2, [r3, #0] + 8003d32: 6c7a ldr r2, [r7, #68] ; 0x44 + 8003d34: 4613 mov r3, r2 + 8003d36: 005b lsls r3, r3, #1 + 8003d38: 4413 add r3, r2 + 8003d3a: 009b lsls r3, r3, #2 + 8003d3c: 3348 adds r3, #72 ; 0x48 + 8003d3e: 443b add r3, r7 + 8003d40: 3b34 subs r3, #52 ; 0x34 + 8003d42: 2200 movs r2, #0 + 8003d44: 601a str r2, [r3, #0] } i++; - 8003d4a: 6c7b ldr r3, [r7, #68] ; 0x44 - 8003d4c: 3301 adds r3, #1 - 8003d4e: 647b str r3, [r7, #68] ; 0x44 + 8003d46: 6c7b ldr r3, [r7, #68] ; 0x44 + 8003d48: 3301 adds r3, #1 + 8003d4a: 647b str r3, [r7, #68] ; 0x44 for(q = p; q != NULL; q = q->next) - 8003d50: 6c3b ldr r3, [r7, #64] ; 0x40 - 8003d52: 681b ldr r3, [r3, #0] - 8003d54: 643b str r3, [r7, #64] ; 0x40 - 8003d56: 6c3b ldr r3, [r7, #64] ; 0x40 - 8003d58: 2b00 cmp r3, #0 - 8003d5a: d1b6 bne.n 8003cca + 8003d4c: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003d4e: 681b ldr r3, [r3, #0] + 8003d50: 643b str r3, [r7, #64] ; 0x40 + 8003d52: 6c3b ldr r3, [r7, #64] ; 0x40 + 8003d54: 2b00 cmp r3, #0 + 8003d56: d1b6 bne.n 8003cc6 } TxConfig.Length = p->tot_len; - 8003d5c: 683b ldr r3, [r7, #0] - 8003d5e: 891b ldrh r3, [r3, #8] - 8003d60: 461a mov r2, r3 - 8003d62: 4b0a ldr r3, [pc, #40] ; (8003d8c ) - 8003d64: 605a str r2, [r3, #4] + 8003d58: 683b ldr r3, [r7, #0] + 8003d5a: 891b ldrh r3, [r3, #8] + 8003d5c: 461a mov r2, r3 + 8003d5e: 4b0a ldr r3, [pc, #40] ; (8003d88 ) + 8003d60: 605a str r2, [r3, #4] TxConfig.TxBuffer = Txbuffer; - 8003d66: 4a09 ldr r2, [pc, #36] ; (8003d8c ) - 8003d68: f107 030c add.w r3, r7, #12 - 8003d6c: 6093 str r3, [r2, #8] + 8003d62: 4a09 ldr r2, [pc, #36] ; (8003d88 ) + 8003d64: f107 030c add.w r3, r7, #12 + 8003d68: 6093 str r3, [r2, #8] TxConfig.pData = p; - 8003d6e: 4a07 ldr r2, [pc, #28] ; (8003d8c ) - 8003d70: 683b ldr r3, [r7, #0] - 8003d72: 6353 str r3, [r2, #52] ; 0x34 + 8003d6a: 4a07 ldr r2, [pc, #28] ; (8003d88 ) + 8003d6c: 683b ldr r3, [r7, #0] + 8003d6e: 6353 str r3, [r2, #52] ; 0x34 HAL_ETH_Transmit(&heth, &TxConfig, ETH_DMA_TRANSMIT_TIMEOUT); - 8003d74: 2214 movs r2, #20 - 8003d76: 4905 ldr r1, [pc, #20] ; (8003d8c ) - 8003d78: 4805 ldr r0, [pc, #20] ; (8003d90 ) - 8003d7a: f7fd ff5f bl 8001c3c + 8003d70: 2214 movs r2, #20 + 8003d72: 4905 ldr r1, [pc, #20] ; (8003d88 ) + 8003d74: 4805 ldr r0, [pc, #20] ; (8003d8c ) + 8003d76: f7fd ff5f bl 8001c38 return errval; - 8003d7e: f997 303f ldrsb.w r3, [r7, #63] ; 0x3f + 8003d7a: f997 303f ldrsb.w r3, [r7, #63] ; 0x3f } - 8003d82: 4618 mov r0, r3 - 8003d84: 3748 adds r7, #72 ; 0x48 - 8003d86: 46bd mov sp, r7 - 8003d88: bd80 pop {r7, pc} - 8003d8a: bf00 nop - 8003d8c: 20005618 .word 0x20005618 - 8003d90: 20005568 .word 0x20005568 + 8003d7e: 4618 mov r0, r3 + 8003d80: 3748 adds r7, #72 ; 0x48 + 8003d82: 46bd mov sp, r7 + 8003d84: bd80 pop {r7, pc} + 8003d86: bf00 nop + 8003d88: 20005618 .word 0x20005618 + 8003d8c: 20005568 .word 0x20005568 -08003d94 : +08003d90 : * @param netif the lwip network interface structure for this ethernetif * @return a pbuf filled with the received packet (including MAC header) * NULL on memory error */ static struct pbuf * low_level_input(struct netif *netif) { - 8003d94: b580 push {r7, lr} - 8003d96: b084 sub sp, #16 - 8003d98: af00 add r7, sp, #0 - 8003d9a: 6078 str r0, [r7, #4] + 8003d90: b580 push {r7, lr} + 8003d92: b084 sub sp, #16 + 8003d94: af00 add r7, sp, #0 + 8003d96: 6078 str r0, [r7, #4] struct pbuf *p = NULL; - 8003d9c: 2300 movs r3, #0 - 8003d9e: 60fb str r3, [r7, #12] + 8003d98: 2300 movs r3, #0 + 8003d9a: 60fb str r3, [r7, #12] if(RxAllocStatus == RX_ALLOC_OK) - 8003da0: 4b07 ldr r3, [pc, #28] ; (8003dc0 ) - 8003da2: 781b ldrb r3, [r3, #0] - 8003da4: 2b00 cmp r3, #0 - 8003da6: d105 bne.n 8003db4 + 8003d9c: 4b07 ldr r3, [pc, #28] ; (8003dbc ) + 8003d9e: 781b ldrb r3, [r3, #0] + 8003da0: 2b00 cmp r3, #0 + 8003da2: d105 bne.n 8003db0 { HAL_ETH_ReadData(&heth, (void **)&p); - 8003da8: f107 030c add.w r3, r7, #12 - 8003dac: 4619 mov r1, r3 - 8003dae: 4805 ldr r0, [pc, #20] ; (8003dc4 ) - 8003db0: f7fd ffd8 bl 8001d64 + 8003da4: f107 030c add.w r3, r7, #12 + 8003da8: 4619 mov r1, r3 + 8003daa: 4805 ldr r0, [pc, #20] ; (8003dc0 ) + 8003dac: f7fd ffd8 bl 8001d60 } return p; - 8003db4: 68fb ldr r3, [r7, #12] + 8003db0: 68fb ldr r3, [r7, #12] } - 8003db6: 4618 mov r0, r3 - 8003db8: 3710 adds r7, #16 - 8003dba: 46bd mov sp, r7 - 8003dbc: bd80 pop {r7, pc} - 8003dbe: bf00 nop - 8003dc0: 20005424 .word 0x20005424 - 8003dc4: 20005568 .word 0x20005568 + 8003db2: 4618 mov r0, r3 + 8003db4: 3710 adds r7, #16 + 8003db6: 46bd mov sp, r7 + 8003db8: bd80 pop {r7, pc} + 8003dba: bf00 nop + 8003dbc: 20005424 .word 0x20005424 + 8003dc0: 20005568 .word 0x20005568 -08003dc8 : +08003dc4 : * the appropriate input function is called. * * @param netif the lwip network interface structure for this ethernetif */ void ethernetif_input(struct netif *netif) { - 8003dc8: b580 push {r7, lr} - 8003dca: b084 sub sp, #16 - 8003dcc: af00 add r7, sp, #0 - 8003dce: 6078 str r0, [r7, #4] + 8003dc4: b580 push {r7, lr} + 8003dc6: b084 sub sp, #16 + 8003dc8: af00 add r7, sp, #0 + 8003dca: 6078 str r0, [r7, #4] struct pbuf *p = NULL; - 8003dd0: 2300 movs r3, #0 - 8003dd2: 60fb str r3, [r7, #12] + 8003dcc: 2300 movs r3, #0 + 8003dce: 60fb str r3, [r7, #12] do { p = low_level_input( netif ); - 8003dd4: 6878 ldr r0, [r7, #4] - 8003dd6: f7ff ffdd bl 8003d94 - 8003dda: 60f8 str r0, [r7, #12] + 8003dd0: 6878 ldr r0, [r7, #4] + 8003dd2: f7ff ffdd bl 8003d90 + 8003dd6: 60f8 str r0, [r7, #12] if (p != NULL) - 8003ddc: 68fb ldr r3, [r7, #12] - 8003dde: 2b00 cmp r3, #0 - 8003de0: d00a beq.n 8003df8 + 8003dd8: 68fb ldr r3, [r7, #12] + 8003dda: 2b00 cmp r3, #0 + 8003ddc: d00a beq.n 8003df4 { if (netif->input( p, netif) != ERR_OK ) - 8003de2: 687b ldr r3, [r7, #4] - 8003de4: 691b ldr r3, [r3, #16] - 8003de6: 6879 ldr r1, [r7, #4] - 8003de8: 68f8 ldr r0, [r7, #12] - 8003dea: 4798 blx r3 - 8003dec: 4603 mov r3, r0 - 8003dee: 2b00 cmp r3, #0 - 8003df0: d002 beq.n 8003df8 + 8003dde: 687b ldr r3, [r7, #4] + 8003de0: 691b ldr r3, [r3, #16] + 8003de2: 6879 ldr r1, [r7, #4] + 8003de4: 68f8 ldr r0, [r7, #12] + 8003de6: 4798 blx r3 + 8003de8: 4603 mov r3, r0 + 8003dea: 2b00 cmp r3, #0 + 8003dec: d002 beq.n 8003df4 { pbuf_free(p); - 8003df2: 68f8 ldr r0, [r7, #12] - 8003df4: f001 fdd2 bl 800599c + 8003dee: 68f8 ldr r0, [r7, #12] + 8003df0: f001 fdd2 bl 8005998 } } } while(p!=NULL); - 8003df8: 68fb ldr r3, [r7, #12] - 8003dfa: 2b00 cmp r3, #0 - 8003dfc: d1ea bne.n 8003dd4 + 8003df4: 68fb ldr r3, [r7, #12] + 8003df6: 2b00 cmp r3, #0 + 8003df8: d1ea bne.n 8003dd0 } - 8003dfe: bf00 nop - 8003e00: bf00 nop - 8003e02: 3710 adds r7, #16 - 8003e04: 46bd mov sp, r7 - 8003e06: bd80 pop {r7, pc} + 8003dfa: bf00 nop + 8003dfc: bf00 nop + 8003dfe: 3710 adds r7, #16 + 8003e00: 46bd mov sp, r7 + 8003e02: bd80 pop {r7, pc} -08003e08 : +08003e04 : * @return ERR_OK if the loopif is initialized * ERR_MEM if private data couldn't be allocated * any other err_t on error */ err_t ethernetif_init(struct netif *netif) { - 8003e08: b580 push {r7, lr} - 8003e0a: b082 sub sp, #8 - 8003e0c: af00 add r7, sp, #0 - 8003e0e: 6078 str r0, [r7, #4] + 8003e04: b580 push {r7, lr} + 8003e06: b082 sub sp, #8 + 8003e08: af00 add r7, sp, #0 + 8003e0a: 6078 str r0, [r7, #4] LWIP_ASSERT("netif != NULL", (netif != NULL)); - 8003e10: 687b ldr r3, [r7, #4] - 8003e12: 2b00 cmp r3, #0 - 8003e14: d106 bne.n 8003e24 - 8003e16: 4b0e ldr r3, [pc, #56] ; (8003e50 ) - 8003e18: f240 126b movw r2, #363 ; 0x16b - 8003e1c: 490d ldr r1, [pc, #52] ; (8003e54 ) - 8003e1e: 480e ldr r0, [pc, #56] ; (8003e58 ) - 8003e20: f00c fad8 bl 80103d4 + 8003e0c: 687b ldr r3, [r7, #4] + 8003e0e: 2b00 cmp r3, #0 + 8003e10: d106 bne.n 8003e20 + 8003e12: 4b0e ldr r3, [pc, #56] ; (8003e4c ) + 8003e14: f240 126b movw r2, #363 ; 0x16b + 8003e18: 490d ldr r1, [pc, #52] ; (8003e50 ) + 8003e1a: 480e ldr r0, [pc, #56] ; (8003e54 ) + 8003e1c: f00c fad8 bl 80103d0 * The last argument should be replaced with your link speed, in units * of bits per second. */ // MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LINK_SPEED_OF_YOUR_NETIF_IN_BPS); netif->name[0] = IFNAME0; - 8003e24: 687b ldr r3, [r7, #4] - 8003e26: 2273 movs r2, #115 ; 0x73 - 8003e28: f883 2032 strb.w r2, [r3, #50] ; 0x32 + 8003e20: 687b ldr r3, [r7, #4] + 8003e22: 2273 movs r2, #115 ; 0x73 + 8003e24: f883 2032 strb.w r2, [r3, #50] ; 0x32 netif->name[1] = IFNAME1; - 8003e2c: 687b ldr r3, [r7, #4] - 8003e2e: 2274 movs r2, #116 ; 0x74 - 8003e30: f883 2033 strb.w r2, [r3, #51] ; 0x33 + 8003e28: 687b ldr r3, [r7, #4] + 8003e2a: 2274 movs r2, #116 ; 0x74 + 8003e2c: f883 2033 strb.w r2, [r3, #51] ; 0x33 * is available...) */ #if LWIP_IPV4 #if LWIP_ARP || LWIP_ETHERNET #if LWIP_ARP netif->output = etharp_output; - 8003e34: 687b ldr r3, [r7, #4] - 8003e36: 4a09 ldr r2, [pc, #36] ; (8003e5c ) - 8003e38: 615a str r2, [r3, #20] + 8003e30: 687b ldr r3, [r7, #4] + 8003e32: 4a09 ldr r2, [pc, #36] ; (8003e58 ) + 8003e34: 615a str r2, [r3, #20] #if LWIP_IPV6 netif->output_ip6 = ethip6_output; #endif /* LWIP_IPV6 */ netif->linkoutput = low_level_output; - 8003e3a: 687b ldr r3, [r7, #4] - 8003e3c: 4a08 ldr r2, [pc, #32] ; (8003e60 ) - 8003e3e: 619a str r2, [r3, #24] + 8003e36: 687b ldr r3, [r7, #4] + 8003e38: 4a08 ldr r2, [pc, #32] ; (8003e5c ) + 8003e3a: 619a str r2, [r3, #24] /* initialize the hardware */ low_level_init(netif); - 8003e40: 6878 ldr r0, [r7, #4] - 8003e42: f7ff fe8d bl 8003b60 + 8003e3c: 6878 ldr r0, [r7, #4] + 8003e3e: f7ff fe8d bl 8003b5c return ERR_OK; - 8003e46: 2300 movs r3, #0 + 8003e42: 2300 movs r3, #0 } - 8003e48: 4618 mov r0, r3 - 8003e4a: 3708 adds r7, #8 - 8003e4c: 46bd mov sp, r7 - 8003e4e: bd80 pop {r7, pc} - 8003e50: 08014ef0 .word 0x08014ef0 - 8003e54: 08014f0c .word 0x08014f0c - 8003e58: 08014f1c .word 0x08014f1c - 8003e5c: 0800e361 .word 0x0800e361 - 8003e60: 08003c91 .word 0x08003c91 + 8003e44: 4618 mov r0, r3 + 8003e46: 3708 adds r7, #8 + 8003e48: 46bd mov sp, r7 + 8003e4a: bd80 pop {r7, pc} + 8003e4c: 08014ef0 .word 0x08014ef0 + 8003e50: 08014f0c .word 0x08014f0c + 8003e54: 08014f1c .word 0x08014f1c + 8003e58: 0800e35d .word 0x0800e35d + 8003e5c: 08003c8d .word 0x08003c8d -08003e64 : +08003e60 : * @brief Custom Rx pbuf free callback * @param pbuf: pbuf to be freed * @retval None */ void pbuf_free_custom(struct pbuf *p) { - 8003e64: b580 push {r7, lr} - 8003e66: b084 sub sp, #16 - 8003e68: af00 add r7, sp, #0 - 8003e6a: 6078 str r0, [r7, #4] + 8003e60: b580 push {r7, lr} + 8003e62: b084 sub sp, #16 + 8003e64: af00 add r7, sp, #0 + 8003e66: 6078 str r0, [r7, #4] struct pbuf_custom* custom_pbuf = (struct pbuf_custom*)p; - 8003e6c: 687b ldr r3, [r7, #4] - 8003e6e: 60fb str r3, [r7, #12] + 8003e68: 687b ldr r3, [r7, #4] + 8003e6a: 60fb str r3, [r7, #12] LWIP_MEMPOOL_FREE(RX_POOL, custom_pbuf); - 8003e70: 68f9 ldr r1, [r7, #12] - 8003e72: 4807 ldr r0, [pc, #28] ; (8003e90 ) - 8003e74: f000 feec bl 8004c50 + 8003e6c: 68f9 ldr r1, [r7, #12] + 8003e6e: 4807 ldr r0, [pc, #28] ; (8003e8c ) + 8003e70: f000 feec bl 8004c4c /* If the Rx Buffer Pool was exhausted, signal the ethernetif_input task to * call HAL_ETH_GetRxDataBuffer to rebuild the Rx descriptors. */ if (RxAllocStatus == RX_ALLOC_ERROR) - 8003e78: 4b06 ldr r3, [pc, #24] ; (8003e94 ) - 8003e7a: 781b ldrb r3, [r3, #0] - 8003e7c: 2b01 cmp r3, #1 - 8003e7e: d102 bne.n 8003e86 + 8003e74: 4b06 ldr r3, [pc, #24] ; (8003e90 ) + 8003e76: 781b ldrb r3, [r3, #0] + 8003e78: 2b01 cmp r3, #1 + 8003e7a: d102 bne.n 8003e82 { RxAllocStatus = RX_ALLOC_OK; - 8003e80: 4b04 ldr r3, [pc, #16] ; (8003e94 ) - 8003e82: 2200 movs r2, #0 - 8003e84: 701a strb r2, [r3, #0] + 8003e7c: 4b04 ldr r3, [pc, #16] ; (8003e90 ) + 8003e7e: 2200 movs r2, #0 + 8003e80: 701a strb r2, [r3, #0] } } - 8003e86: bf00 nop - 8003e88: 3710 adds r7, #16 - 8003e8a: 46bd mov sp, r7 - 8003e8c: bd80 pop {r7, pc} - 8003e8e: bf00 nop - 8003e90: 08017cf0 .word 0x08017cf0 - 8003e94: 20005424 .word 0x20005424 + 8003e82: bf00 nop + 8003e84: 3710 adds r7, #16 + 8003e86: 46bd mov sp, r7 + 8003e88: bd80 pop {r7, pc} + 8003e8a: bf00 nop + 8003e8c: 08017cf0 .word 0x08017cf0 + 8003e90: 20005424 .word 0x20005424 -08003e98 : +08003e94 : * when LWIP_TIMERS == 1 and NO_SYS == 1 * @param None * @retval Current Time value */ u32_t sys_now(void) { - 8003e98: b580 push {r7, lr} - 8003e9a: af00 add r7, sp, #0 + 8003e94: b580 push {r7, lr} + 8003e96: af00 add r7, sp, #0 return HAL_GetTick(); - 8003e9c: f7fd fc82 bl 80017a4 - 8003ea0: 4603 mov r3, r0 + 8003e98: f7fd fc82 bl 80017a0 + 8003e9c: 4603 mov r3, r0 } - 8003ea2: 4618 mov r0, r3 - 8003ea4: bd80 pop {r7, pc} + 8003e9e: 4618 mov r0, r3 + 8003ea0: bd80 pop {r7, pc} ... -08003ea8 : +08003ea4 : * @param ethHandle: ETH handle * @retval None */ void HAL_ETH_MspInit(ETH_HandleTypeDef* ethHandle) { - 8003ea8: b580 push {r7, lr} - 8003eaa: b08e sub sp, #56 ; 0x38 - 8003eac: af00 add r7, sp, #0 - 8003eae: 6078 str r0, [r7, #4] + 8003ea4: b580 push {r7, lr} + 8003ea6: b08e sub sp, #56 ; 0x38 + 8003ea8: af00 add r7, sp, #0 + 8003eaa: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8003eb0: f107 0324 add.w r3, r7, #36 ; 0x24 - 8003eb4: 2200 movs r2, #0 - 8003eb6: 601a str r2, [r3, #0] - 8003eb8: 605a str r2, [r3, #4] - 8003eba: 609a str r2, [r3, #8] - 8003ebc: 60da str r2, [r3, #12] - 8003ebe: 611a str r2, [r3, #16] + 8003eac: f107 0324 add.w r3, r7, #36 ; 0x24 + 8003eb0: 2200 movs r2, #0 + 8003eb2: 601a str r2, [r3, #0] + 8003eb4: 605a str r2, [r3, #4] + 8003eb6: 609a str r2, [r3, #8] + 8003eb8: 60da str r2, [r3, #12] + 8003eba: 611a str r2, [r3, #16] if(ethHandle->Instance==ETH) - 8003ec0: 687b ldr r3, [r7, #4] - 8003ec2: 681b ldr r3, [r3, #0] - 8003ec4: 4a55 ldr r2, [pc, #340] ; (800401c ) - 8003ec6: 4293 cmp r3, r2 - 8003ec8: f040 80a4 bne.w 8004014 + 8003ebc: 687b ldr r3, [r7, #4] + 8003ebe: 681b ldr r3, [r3, #0] + 8003ec0: 4a55 ldr r2, [pc, #340] ; (8004018 ) + 8003ec2: 4293 cmp r3, r2 + 8003ec4: f040 80a4 bne.w 8004010 { /* USER CODE BEGIN ETH_MspInit 0 */ /* USER CODE END ETH_MspInit 0 */ /* Enable Peripheral clock */ __HAL_RCC_ETH_CLK_ENABLE(); - 8003ecc: 2300 movs r3, #0 - 8003ece: 623b str r3, [r7, #32] - 8003ed0: 4b53 ldr r3, [pc, #332] ; (8004020 ) - 8003ed2: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003ed4: 4a52 ldr r2, [pc, #328] ; (8004020 ) - 8003ed6: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 - 8003eda: 6313 str r3, [r2, #48] ; 0x30 - 8003edc: 4b50 ldr r3, [pc, #320] ; (8004020 ) - 8003ede: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003ee0: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8003ee4: 623b str r3, [r7, #32] - 8003ee6: 6a3b ldr r3, [r7, #32] - 8003ee8: 2300 movs r3, #0 - 8003eea: 61fb str r3, [r7, #28] - 8003eec: 4b4c ldr r3, [pc, #304] ; (8004020 ) - 8003eee: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003ef0: 4a4b ldr r2, [pc, #300] ; (8004020 ) - 8003ef2: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 8003ef6: 6313 str r3, [r2, #48] ; 0x30 - 8003ef8: 4b49 ldr r3, [pc, #292] ; (8004020 ) - 8003efa: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003efc: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 8003f00: 61fb str r3, [r7, #28] - 8003f02: 69fb ldr r3, [r7, #28] - 8003f04: 2300 movs r3, #0 - 8003f06: 61bb str r3, [r7, #24] - 8003f08: 4b45 ldr r3, [pc, #276] ; (8004020 ) - 8003f0a: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f0c: 4a44 ldr r2, [pc, #272] ; (8004020 ) - 8003f0e: f043 6300 orr.w r3, r3, #134217728 ; 0x8000000 - 8003f12: 6313 str r3, [r2, #48] ; 0x30 - 8003f14: 4b42 ldr r3, [pc, #264] ; (8004020 ) - 8003f16: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f18: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8003f1c: 61bb str r3, [r7, #24] - 8003f1e: 69bb ldr r3, [r7, #24] + 8003ec8: 2300 movs r3, #0 + 8003eca: 623b str r3, [r7, #32] + 8003ecc: 4b53 ldr r3, [pc, #332] ; (800401c ) + 8003ece: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003ed0: 4a52 ldr r2, [pc, #328] ; (800401c ) + 8003ed2: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 + 8003ed6: 6313 str r3, [r2, #48] ; 0x30 + 8003ed8: 4b50 ldr r3, [pc, #320] ; (800401c ) + 8003eda: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003edc: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8003ee0: 623b str r3, [r7, #32] + 8003ee2: 6a3b ldr r3, [r7, #32] + 8003ee4: 2300 movs r3, #0 + 8003ee6: 61fb str r3, [r7, #28] + 8003ee8: 4b4c ldr r3, [pc, #304] ; (800401c ) + 8003eea: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003eec: 4a4b ldr r2, [pc, #300] ; (800401c ) + 8003eee: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 + 8003ef2: 6313 str r3, [r2, #48] ; 0x30 + 8003ef4: 4b49 ldr r3, [pc, #292] ; (800401c ) + 8003ef6: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003ef8: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 + 8003efc: 61fb str r3, [r7, #28] + 8003efe: 69fb ldr r3, [r7, #28] + 8003f00: 2300 movs r3, #0 + 8003f02: 61bb str r3, [r7, #24] + 8003f04: 4b45 ldr r3, [pc, #276] ; (800401c ) + 8003f06: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f08: 4a44 ldr r2, [pc, #272] ; (800401c ) + 8003f0a: f043 6300 orr.w r3, r3, #134217728 ; 0x8000000 + 8003f0e: 6313 str r3, [r2, #48] ; 0x30 + 8003f10: 4b42 ldr r3, [pc, #264] ; (800401c ) + 8003f12: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f14: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 8003f18: 61bb str r3, [r7, #24] + 8003f1a: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOC_CLK_ENABLE(); - 8003f20: 2300 movs r3, #0 - 8003f22: 617b str r3, [r7, #20] - 8003f24: 4b3e ldr r3, [pc, #248] ; (8004020 ) - 8003f26: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f28: 4a3d ldr r2, [pc, #244] ; (8004020 ) - 8003f2a: f043 0304 orr.w r3, r3, #4 - 8003f2e: 6313 str r3, [r2, #48] ; 0x30 - 8003f30: 4b3b ldr r3, [pc, #236] ; (8004020 ) - 8003f32: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f34: f003 0304 and.w r3, r3, #4 - 8003f38: 617b str r3, [r7, #20] - 8003f3a: 697b ldr r3, [r7, #20] + 8003f1c: 2300 movs r3, #0 + 8003f1e: 617b str r3, [r7, #20] + 8003f20: 4b3e ldr r3, [pc, #248] ; (800401c ) + 8003f22: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f24: 4a3d ldr r2, [pc, #244] ; (800401c ) + 8003f26: f043 0304 orr.w r3, r3, #4 + 8003f2a: 6313 str r3, [r2, #48] ; 0x30 + 8003f2c: 4b3b ldr r3, [pc, #236] ; (800401c ) + 8003f2e: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f30: f003 0304 and.w r3, r3, #4 + 8003f34: 617b str r3, [r7, #20] + 8003f36: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8003f3c: 2300 movs r3, #0 - 8003f3e: 613b str r3, [r7, #16] - 8003f40: 4b37 ldr r3, [pc, #220] ; (8004020 ) - 8003f42: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f44: 4a36 ldr r2, [pc, #216] ; (8004020 ) - 8003f46: f043 0301 orr.w r3, r3, #1 - 8003f4a: 6313 str r3, [r2, #48] ; 0x30 - 8003f4c: 4b34 ldr r3, [pc, #208] ; (8004020 ) - 8003f4e: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f50: f003 0301 and.w r3, r3, #1 - 8003f54: 613b str r3, [r7, #16] - 8003f56: 693b ldr r3, [r7, #16] + 8003f38: 2300 movs r3, #0 + 8003f3a: 613b str r3, [r7, #16] + 8003f3c: 4b37 ldr r3, [pc, #220] ; (800401c ) + 8003f3e: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f40: 4a36 ldr r2, [pc, #216] ; (800401c ) + 8003f42: f043 0301 orr.w r3, r3, #1 + 8003f46: 6313 str r3, [r2, #48] ; 0x30 + 8003f48: 4b34 ldr r3, [pc, #208] ; (800401c ) + 8003f4a: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f4c: f003 0301 and.w r3, r3, #1 + 8003f50: 613b str r3, [r7, #16] + 8003f52: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOB_CLK_ENABLE(); - 8003f58: 2300 movs r3, #0 - 8003f5a: 60fb str r3, [r7, #12] - 8003f5c: 4b30 ldr r3, [pc, #192] ; (8004020 ) - 8003f5e: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f60: 4a2f ldr r2, [pc, #188] ; (8004020 ) - 8003f62: f043 0302 orr.w r3, r3, #2 - 8003f66: 6313 str r3, [r2, #48] ; 0x30 - 8003f68: 4b2d ldr r3, [pc, #180] ; (8004020 ) - 8003f6a: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f6c: f003 0302 and.w r3, r3, #2 - 8003f70: 60fb str r3, [r7, #12] - 8003f72: 68fb ldr r3, [r7, #12] + 8003f54: 2300 movs r3, #0 + 8003f56: 60fb str r3, [r7, #12] + 8003f58: 4b30 ldr r3, [pc, #192] ; (800401c ) + 8003f5a: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f5c: 4a2f ldr r2, [pc, #188] ; (800401c ) + 8003f5e: f043 0302 orr.w r3, r3, #2 + 8003f62: 6313 str r3, [r2, #48] ; 0x30 + 8003f64: 4b2d ldr r3, [pc, #180] ; (800401c ) + 8003f66: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f68: f003 0302 and.w r3, r3, #2 + 8003f6c: 60fb str r3, [r7, #12] + 8003f6e: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOG_CLK_ENABLE(); - 8003f74: 2300 movs r3, #0 - 8003f76: 60bb str r3, [r7, #8] - 8003f78: 4b29 ldr r3, [pc, #164] ; (8004020 ) - 8003f7a: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f7c: 4a28 ldr r2, [pc, #160] ; (8004020 ) - 8003f7e: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8003f82: 6313 str r3, [r2, #48] ; 0x30 - 8003f84: 4b26 ldr r3, [pc, #152] ; (8004020 ) - 8003f86: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003f88: f003 0340 and.w r3, r3, #64 ; 0x40 - 8003f8c: 60bb str r3, [r7, #8] - 8003f8e: 68bb ldr r3, [r7, #8] + 8003f70: 2300 movs r3, #0 + 8003f72: 60bb str r3, [r7, #8] + 8003f74: 4b29 ldr r3, [pc, #164] ; (800401c ) + 8003f76: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f78: 4a28 ldr r2, [pc, #160] ; (800401c ) + 8003f7a: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8003f7e: 6313 str r3, [r2, #48] ; 0x30 + 8003f80: 4b26 ldr r3, [pc, #152] ; (800401c ) + 8003f82: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003f84: f003 0340 and.w r3, r3, #64 ; 0x40 + 8003f88: 60bb str r3, [r7, #8] + 8003f8a: 68bb ldr r3, [r7, #8] PC5 ------> ETH_RXD1 PB11 ------> ETH_TX_EN PB12 ------> ETH_TXD0 PG14 ------> ETH_TXD1 */ GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_4|GPIO_PIN_5; - 8003f90: 2332 movs r3, #50 ; 0x32 - 8003f92: 627b str r3, [r7, #36] ; 0x24 + 8003f8c: 2332 movs r3, #50 ; 0x32 + 8003f8e: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8003f94: 2302 movs r3, #2 - 8003f96: 62bb str r3, [r7, #40] ; 0x28 + 8003f90: 2302 movs r3, #2 + 8003f92: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003f98: 2300 movs r3, #0 - 8003f9a: 62fb str r3, [r7, #44] ; 0x2c + 8003f94: 2300 movs r3, #0 + 8003f96: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8003f9c: 2303 movs r3, #3 - 8003f9e: 633b str r3, [r7, #48] ; 0x30 + 8003f98: 2303 movs r3, #3 + 8003f9a: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 8003fa0: 230b movs r3, #11 - 8003fa2: 637b str r3, [r7, #52] ; 0x34 + 8003f9c: 230b movs r3, #11 + 8003f9e: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 8003fa4: f107 0324 add.w r3, r7, #36 ; 0x24 - 8003fa8: 4619 mov r1, r3 - 8003faa: 481e ldr r0, [pc, #120] ; (8004024 ) - 8003fac: f7fe fe06 bl 8002bbc + 8003fa0: f107 0324 add.w r3, r7, #36 ; 0x24 + 8003fa4: 4619 mov r1, r3 + 8003fa6: 481e ldr r0, [pc, #120] ; (8004020 ) + 8003fa8: f7fe fe06 bl 8002bb8 GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_7; - 8003fb0: 2386 movs r3, #134 ; 0x86 - 8003fb2: 627b str r3, [r7, #36] ; 0x24 + 8003fac: 2386 movs r3, #134 ; 0x86 + 8003fae: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8003fb4: 2302 movs r3, #2 - 8003fb6: 62bb str r3, [r7, #40] ; 0x28 + 8003fb0: 2302 movs r3, #2 + 8003fb2: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003fb8: 2300 movs r3, #0 - 8003fba: 62fb str r3, [r7, #44] ; 0x2c + 8003fb4: 2300 movs r3, #0 + 8003fb6: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8003fbc: 2303 movs r3, #3 - 8003fbe: 633b str r3, [r7, #48] ; 0x30 + 8003fb8: 2303 movs r3, #3 + 8003fba: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 8003fc0: 230b movs r3, #11 - 8003fc2: 637b str r3, [r7, #52] ; 0x34 + 8003fbc: 230b movs r3, #11 + 8003fbe: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8003fc4: f107 0324 add.w r3, r7, #36 ; 0x24 - 8003fc8: 4619 mov r1, r3 - 8003fca: 4817 ldr r0, [pc, #92] ; (8004028 ) - 8003fcc: f7fe fdf6 bl 8002bbc + 8003fc0: f107 0324 add.w r3, r7, #36 ; 0x24 + 8003fc4: 4619 mov r1, r3 + 8003fc6: 4817 ldr r0, [pc, #92] ; (8004024 ) + 8003fc8: f7fe fdf6 bl 8002bb8 GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12; - 8003fd0: f44f 53c0 mov.w r3, #6144 ; 0x1800 - 8003fd4: 627b str r3, [r7, #36] ; 0x24 + 8003fcc: f44f 53c0 mov.w r3, #6144 ; 0x1800 + 8003fd0: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8003fd6: 2302 movs r3, #2 - 8003fd8: 62bb str r3, [r7, #40] ; 0x28 + 8003fd2: 2302 movs r3, #2 + 8003fd4: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003fda: 2300 movs r3, #0 - 8003fdc: 62fb str r3, [r7, #44] ; 0x2c + 8003fd6: 2300 movs r3, #0 + 8003fd8: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8003fde: 2303 movs r3, #3 - 8003fe0: 633b str r3, [r7, #48] ; 0x30 + 8003fda: 2303 movs r3, #3 + 8003fdc: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 8003fe2: 230b movs r3, #11 - 8003fe4: 637b str r3, [r7, #52] ; 0x34 + 8003fde: 230b movs r3, #11 + 8003fe0: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8003fe6: f107 0324 add.w r3, r7, #36 ; 0x24 - 8003fea: 4619 mov r1, r3 - 8003fec: 480f ldr r0, [pc, #60] ; (800402c ) - 8003fee: f7fe fde5 bl 8002bbc + 8003fe2: f107 0324 add.w r3, r7, #36 ; 0x24 + 8003fe6: 4619 mov r1, r3 + 8003fe8: 480f ldr r0, [pc, #60] ; (8004028 ) + 8003fea: f7fe fde5 bl 8002bb8 GPIO_InitStruct.Pin = GPIO_PIN_14; - 8003ff2: f44f 4380 mov.w r3, #16384 ; 0x4000 - 8003ff6: 627b str r3, [r7, #36] ; 0x24 + 8003fee: f44f 4380 mov.w r3, #16384 ; 0x4000 + 8003ff2: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8003ff8: 2302 movs r3, #2 - 8003ffa: 62bb str r3, [r7, #40] ; 0x28 + 8003ff4: 2302 movs r3, #2 + 8003ff6: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003ffc: 2300 movs r3, #0 - 8003ffe: 62fb str r3, [r7, #44] ; 0x2c + 8003ff8: 2300 movs r3, #0 + 8003ffa: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004000: 2303 movs r3, #3 - 8004002: 633b str r3, [r7, #48] ; 0x30 + 8003ffc: 2303 movs r3, #3 + 8003ffe: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 8004004: 230b movs r3, #11 - 8004006: 637b str r3, [r7, #52] ; 0x34 + 8004000: 230b movs r3, #11 + 8004002: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOG, &GPIO_InitStruct); - 8004008: f107 0324 add.w r3, r7, #36 ; 0x24 - 800400c: 4619 mov r1, r3 - 800400e: 4808 ldr r0, [pc, #32] ; (8004030 ) - 8004010: f7fe fdd4 bl 8002bbc + 8004004: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004008: 4619 mov r1, r3 + 800400a: 4808 ldr r0, [pc, #32] ; (800402c ) + 800400c: f7fe fdd4 bl 8002bb8 /* USER CODE BEGIN ETH_MspInit 1 */ /* USER CODE END ETH_MspInit 1 */ } } - 8004014: bf00 nop - 8004016: 3738 adds r7, #56 ; 0x38 - 8004018: 46bd mov sp, r7 - 800401a: bd80 pop {r7, pc} - 800401c: 40028000 .word 0x40028000 - 8004020: 40023800 .word 0x40023800 - 8004024: 40020800 .word 0x40020800 - 8004028: 40020000 .word 0x40020000 - 800402c: 40020400 .word 0x40020400 - 8004030: 40021800 .word 0x40021800 + 8004010: bf00 nop + 8004012: 3738 adds r7, #56 ; 0x38 + 8004014: 46bd mov sp, r7 + 8004016: bd80 pop {r7, pc} + 8004018: 40028000 .word 0x40028000 + 800401c: 40023800 .word 0x40023800 + 8004020: 40020800 .word 0x40020800 + 8004024: 40020000 .word 0x40020000 + 8004028: 40020400 .word 0x40020400 + 800402c: 40021800 .word 0x40021800 -08004034 : +08004030 : * @brief Initializes the MDIO interface GPIO and clocks. * @param None * @retval 0 if OK, -1 if ERROR */ int32_t ETH_PHY_IO_Init(void) { - 8004034: b580 push {r7, lr} - 8004036: af00 add r7, sp, #0 + 8004030: b580 push {r7, lr} + 8004032: af00 add r7, sp, #0 /* We assume that MDIO GPIO configuration is already done in the ETH_MspInit() else it should be done here */ /* Configure the MDIO Clock */ HAL_ETH_SetMDIOClockRange(&heth); - 8004038: 4802 ldr r0, [pc, #8] ; (8004044 ) - 800403a: f7fe f963 bl 8002304 + 8004034: 4802 ldr r0, [pc, #8] ; (8004040 ) + 8004036: f7fe f963 bl 8002300 return 0; - 800403e: 2300 movs r3, #0 + 800403a: 2300 movs r3, #0 } - 8004040: 4618 mov r0, r3 - 8004042: bd80 pop {r7, pc} - 8004044: 20005568 .word 0x20005568 + 800403c: 4618 mov r0, r3 + 800403e: bd80 pop {r7, pc} + 8004040: 20005568 .word 0x20005568 -08004048 : +08004044 : * @brief De-Initializes the MDIO interface . * @param None * @retval 0 if OK, -1 if ERROR */ int32_t ETH_PHY_IO_DeInit (void) { - 8004048: b480 push {r7} - 800404a: af00 add r7, sp, #0 + 8004044: b480 push {r7} + 8004046: af00 add r7, sp, #0 return 0; - 800404c: 2300 movs r3, #0 + 8004048: 2300 movs r3, #0 } - 800404e: 4618 mov r0, r3 - 8004050: 46bd mov sp, r7 - 8004052: f85d 7b04 ldr.w r7, [sp], #4 - 8004056: 4770 bx lr + 800404a: 4618 mov r0, r3 + 800404c: 46bd mov sp, r7 + 800404e: f85d 7b04 ldr.w r7, [sp], #4 + 8004052: 4770 bx lr -08004058 : +08004054 : * @param RegAddr: PHY register address * @param pRegVal: pointer to hold the register value * @retval 0 if OK -1 if Error */ int32_t ETH_PHY_IO_ReadReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t *pRegVal) { - 8004058: b580 push {r7, lr} - 800405a: b084 sub sp, #16 - 800405c: af00 add r7, sp, #0 - 800405e: 60f8 str r0, [r7, #12] - 8004060: 60b9 str r1, [r7, #8] - 8004062: 607a str r2, [r7, #4] + 8004054: b580 push {r7, lr} + 8004056: b084 sub sp, #16 + 8004058: af00 add r7, sp, #0 + 800405a: 60f8 str r0, [r7, #12] + 800405c: 60b9 str r1, [r7, #8] + 800405e: 607a str r2, [r7, #4] if(HAL_ETH_ReadPHYRegister(&heth, DevAddr, RegAddr, pRegVal) != HAL_OK) - 8004064: 687b ldr r3, [r7, #4] - 8004066: 68ba ldr r2, [r7, #8] - 8004068: 68f9 ldr r1, [r7, #12] - 800406a: 4807 ldr r0, [pc, #28] ; (8004088 ) - 800406c: f7fd ffb2 bl 8001fd4 - 8004070: 4603 mov r3, r0 - 8004072: 2b00 cmp r3, #0 - 8004074: d002 beq.n 800407c + 8004060: 687b ldr r3, [r7, #4] + 8004062: 68ba ldr r2, [r7, #8] + 8004064: 68f9 ldr r1, [r7, #12] + 8004066: 4807 ldr r0, [pc, #28] ; (8004084 ) + 8004068: f7fd ffb2 bl 8001fd0 + 800406c: 4603 mov r3, r0 + 800406e: 2b00 cmp r3, #0 + 8004070: d002 beq.n 8004078 { return -1; - 8004076: f04f 33ff mov.w r3, #4294967295 - 800407a: e000 b.n 800407e + 8004072: f04f 33ff mov.w r3, #4294967295 + 8004076: e000 b.n 800407a } return 0; - 800407c: 2300 movs r3, #0 + 8004078: 2300 movs r3, #0 } - 800407e: 4618 mov r0, r3 - 8004080: 3710 adds r7, #16 - 8004082: 46bd mov sp, r7 - 8004084: bd80 pop {r7, pc} - 8004086: bf00 nop - 8004088: 20005568 .word 0x20005568 + 800407a: 4618 mov r0, r3 + 800407c: 3710 adds r7, #16 + 800407e: 46bd mov sp, r7 + 8004080: bd80 pop {r7, pc} + 8004082: bf00 nop + 8004084: 20005568 .word 0x20005568 -0800408c : +08004088 : * @param RegAddr: PHY register address * @param RegVal: Value to be written * @retval 0 if OK -1 if Error */ int32_t ETH_PHY_IO_WriteReg(uint32_t DevAddr, uint32_t RegAddr, uint32_t RegVal) { - 800408c: b580 push {r7, lr} - 800408e: b084 sub sp, #16 - 8004090: af00 add r7, sp, #0 - 8004092: 60f8 str r0, [r7, #12] - 8004094: 60b9 str r1, [r7, #8] - 8004096: 607a str r2, [r7, #4] + 8004088: b580 push {r7, lr} + 800408a: b084 sub sp, #16 + 800408c: af00 add r7, sp, #0 + 800408e: 60f8 str r0, [r7, #12] + 8004090: 60b9 str r1, [r7, #8] + 8004092: 607a str r2, [r7, #4] if(HAL_ETH_WritePHYRegister(&heth, DevAddr, RegAddr, RegVal) != HAL_OK) - 8004098: 687b ldr r3, [r7, #4] - 800409a: 68ba ldr r2, [r7, #8] - 800409c: 68f9 ldr r1, [r7, #12] - 800409e: 4807 ldr r0, [pc, #28] ; (80040bc ) - 80040a0: f7fd ffe3 bl 800206a - 80040a4: 4603 mov r3, r0 - 80040a6: 2b00 cmp r3, #0 - 80040a8: d002 beq.n 80040b0 + 8004094: 687b ldr r3, [r7, #4] + 8004096: 68ba ldr r2, [r7, #8] + 8004098: 68f9 ldr r1, [r7, #12] + 800409a: 4807 ldr r0, [pc, #28] ; (80040b8 ) + 800409c: f7fd ffe3 bl 8002066 + 80040a0: 4603 mov r3, r0 + 80040a2: 2b00 cmp r3, #0 + 80040a4: d002 beq.n 80040ac { return -1; - 80040aa: f04f 33ff mov.w r3, #4294967295 - 80040ae: e000 b.n 80040b2 + 80040a6: f04f 33ff mov.w r3, #4294967295 + 80040aa: e000 b.n 80040ae } return 0; - 80040b0: 2300 movs r3, #0 + 80040ac: 2300 movs r3, #0 } - 80040b2: 4618 mov r0, r3 - 80040b4: 3710 adds r7, #16 - 80040b6: 46bd mov sp, r7 - 80040b8: bd80 pop {r7, pc} - 80040ba: bf00 nop - 80040bc: 20005568 .word 0x20005568 + 80040ae: 4618 mov r0, r3 + 80040b0: 3710 adds r7, #16 + 80040b2: 46bd mov sp, r7 + 80040b4: bd80 pop {r7, pc} + 80040b6: bf00 nop + 80040b8: 20005568 .word 0x20005568 -080040c0 : +080040bc : /** * @brief Get the time in millisecons used for internal PHY driver process. * @retval Time value */ int32_t ETH_PHY_IO_GetTick(void) { - 80040c0: b580 push {r7, lr} - 80040c2: af00 add r7, sp, #0 + 80040bc: b580 push {r7, lr} + 80040be: af00 add r7, sp, #0 return HAL_GetTick(); - 80040c4: f7fd fb6e bl 80017a4 - 80040c8: 4603 mov r3, r0 + 80040c0: f7fd fb6e bl 80017a0 + 80040c4: 4603 mov r3, r0 } - 80040ca: 4618 mov r0, r3 - 80040cc: bd80 pop {r7, pc} + 80040c6: 4618 mov r0, r3 + 80040c8: bd80 pop {r7, pc} ... -080040d0 : +080040cc : /** * @brief Check the ETH link state then update ETH driver and netif link accordingly. * @retval None */ void ethernet_link_check_state(struct netif *netif) { - 80040d0: b580 push {r7, lr} - 80040d2: b0a0 sub sp, #128 ; 0x80 - 80040d4: af00 add r7, sp, #0 - 80040d6: 6078 str r0, [r7, #4] + 80040cc: b580 push {r7, lr} + 80040ce: b0a0 sub sp, #128 ; 0x80 + 80040d0: af00 add r7, sp, #0 + 80040d2: 6078 str r0, [r7, #4] ETH_MACConfigTypeDef MACConf = {0}; - 80040d8: f107 030c add.w r3, r7, #12 - 80040dc: 2264 movs r2, #100 ; 0x64 - 80040de: 2100 movs r1, #0 - 80040e0: 4618 mov r0, r3 - 80040e2: f00c f96f bl 80103c4 + 80040d4: f107 030c add.w r3, r7, #12 + 80040d8: 2264 movs r2, #100 ; 0x64 + 80040da: 2100 movs r1, #0 + 80040dc: 4618 mov r0, r3 + 80040de: f00c f96f bl 80103c0 int32_t PHYLinkState = 0; - 80040e6: 2300 movs r3, #0 - 80040e8: 673b str r3, [r7, #112] ; 0x70 + 80040e2: 2300 movs r3, #0 + 80040e4: 673b str r3, [r7, #112] ; 0x70 uint32_t linkchanged = 0U, speed = 0U, duplex = 0U; + 80040e6: 2300 movs r3, #0 + 80040e8: 67fb str r3, [r7, #124] ; 0x7c 80040ea: 2300 movs r3, #0 - 80040ec: 67fb str r3, [r7, #124] ; 0x7c + 80040ec: 67bb str r3, [r7, #120] ; 0x78 80040ee: 2300 movs r3, #0 - 80040f0: 67bb str r3, [r7, #120] ; 0x78 - 80040f2: 2300 movs r3, #0 - 80040f4: 677b str r3, [r7, #116] ; 0x74 + 80040f0: 677b str r3, [r7, #116] ; 0x74 PHYLinkState = DP83848_GetLinkState(&DP83848); - 80040f6: 483a ldr r0, [pc, #232] ; (80041e0 ) - 80040f8: f7fd fa67 bl 80015ca - 80040fc: 6738 str r0, [r7, #112] ; 0x70 + 80040f2: 483a ldr r0, [pc, #232] ; (80041dc ) + 80040f4: f7fd fa67 bl 80015c6 + 80040f8: 6738 str r0, [r7, #112] ; 0x70 if(netif_is_link_up(netif) && (PHYLinkState <= DP83848_STATUS_LINK_DOWN)) - 80040fe: 687b ldr r3, [r7, #4] - 8004100: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8004104: 089b lsrs r3, r3, #2 - 8004106: f003 0301 and.w r3, r3, #1 - 800410a: b2db uxtb r3, r3 - 800410c: 2b00 cmp r3, #0 - 800410e: d00c beq.n 800412a - 8004110: 6f3b ldr r3, [r7, #112] ; 0x70 - 8004112: 2b01 cmp r3, #1 - 8004114: dc09 bgt.n 800412a + 80040fa: 687b ldr r3, [r7, #4] + 80040fc: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8004100: 089b lsrs r3, r3, #2 + 8004102: f003 0301 and.w r3, r3, #1 + 8004106: b2db uxtb r3, r3 + 8004108: 2b00 cmp r3, #0 + 800410a: d00c beq.n 8004126 + 800410c: 6f3b ldr r3, [r7, #112] ; 0x70 + 800410e: 2b01 cmp r3, #1 + 8004110: dc09 bgt.n 8004126 { HAL_ETH_Stop(&heth); - 8004116: 4833 ldr r0, [pc, #204] ; (80041e4 ) - 8004118: f7fd fd37 bl 8001b8a + 8004112: 4833 ldr r0, [pc, #204] ; (80041e0 ) + 8004114: f7fd fd37 bl 8001b86 netif_set_down(netif); - 800411c: 6878 ldr r0, [r7, #4] - 800411e: f001 f823 bl 8005168 + 8004118: 6878 ldr r0, [r7, #4] + 800411a: f001 f823 bl 8005164 netif_set_link_down(netif); - 8004122: 6878 ldr r0, [r7, #4] - 8004124: f001 f88a bl 800523c + 800411e: 6878 ldr r0, [r7, #4] + 8004120: f001 f88a bl 8005238 netif_set_up(netif); netif_set_link_up(netif); } } } - 8004128: e055 b.n 80041d6 + 8004124: e055 b.n 80041d2 else if(!netif_is_link_up(netif) && (PHYLinkState > DP83848_STATUS_LINK_DOWN)) - 800412a: 687b ldr r3, [r7, #4] - 800412c: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8004130: f003 0304 and.w r3, r3, #4 - 8004134: 2b00 cmp r3, #0 - 8004136: d14e bne.n 80041d6 - 8004138: 6f3b ldr r3, [r7, #112] ; 0x70 - 800413a: 2b01 cmp r3, #1 - 800413c: dd4b ble.n 80041d6 + 8004126: 687b ldr r3, [r7, #4] + 8004128: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800412c: f003 0304 and.w r3, r3, #4 + 8004130: 2b00 cmp r3, #0 + 8004132: d14e bne.n 80041d2 + 8004134: 6f3b ldr r3, [r7, #112] ; 0x70 + 8004136: 2b01 cmp r3, #1 + 8004138: dd4b ble.n 80041d2 switch (PHYLinkState) - 800413e: 6f3b ldr r3, [r7, #112] ; 0x70 - 8004140: 3b02 subs r3, #2 - 8004142: 2b03 cmp r3, #3 - 8004144: d82a bhi.n 800419c - 8004146: a201 add r2, pc, #4 ; (adr r2, 800414c ) - 8004148: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800414c: 0800415d .word 0x0800415d - 8004150: 0800416f .word 0x0800416f - 8004154: 0800417f .word 0x0800417f - 8004158: 0800418f .word 0x0800418f + 800413a: 6f3b ldr r3, [r7, #112] ; 0x70 + 800413c: 3b02 subs r3, #2 + 800413e: 2b03 cmp r3, #3 + 8004140: d82a bhi.n 8004198 + 8004142: a201 add r2, pc, #4 ; (adr r2, 8004148 ) + 8004144: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8004148: 08004159 .word 0x08004159 + 800414c: 0800416b .word 0x0800416b + 8004150: 0800417b .word 0x0800417b + 8004154: 0800418b .word 0x0800418b duplex = ETH_FULLDUPLEX_MODE; - 800415c: f44f 6300 mov.w r3, #2048 ; 0x800 - 8004160: 677b str r3, [r7, #116] ; 0x74 + 8004158: f44f 6300 mov.w r3, #2048 ; 0x800 + 800415c: 677b str r3, [r7, #116] ; 0x74 speed = ETH_SPEED_100M; - 8004162: f44f 4380 mov.w r3, #16384 ; 0x4000 - 8004166: 67bb str r3, [r7, #120] ; 0x78 + 800415e: f44f 4380 mov.w r3, #16384 ; 0x4000 + 8004162: 67bb str r3, [r7, #120] ; 0x78 linkchanged = 1; - 8004168: 2301 movs r3, #1 - 800416a: 67fb str r3, [r7, #124] ; 0x7c + 8004164: 2301 movs r3, #1 + 8004166: 67fb str r3, [r7, #124] ; 0x7c break; - 800416c: e017 b.n 800419e + 8004168: e017 b.n 800419a duplex = ETH_HALFDUPLEX_MODE; - 800416e: 2300 movs r3, #0 - 8004170: 677b str r3, [r7, #116] ; 0x74 + 800416a: 2300 movs r3, #0 + 800416c: 677b str r3, [r7, #116] ; 0x74 speed = ETH_SPEED_100M; - 8004172: f44f 4380 mov.w r3, #16384 ; 0x4000 - 8004176: 67bb str r3, [r7, #120] ; 0x78 + 800416e: f44f 4380 mov.w r3, #16384 ; 0x4000 + 8004172: 67bb str r3, [r7, #120] ; 0x78 linkchanged = 1; - 8004178: 2301 movs r3, #1 - 800417a: 67fb str r3, [r7, #124] ; 0x7c + 8004174: 2301 movs r3, #1 + 8004176: 67fb str r3, [r7, #124] ; 0x7c break; - 800417c: e00f b.n 800419e + 8004178: e00f b.n 800419a duplex = ETH_FULLDUPLEX_MODE; - 800417e: f44f 6300 mov.w r3, #2048 ; 0x800 - 8004182: 677b str r3, [r7, #116] ; 0x74 + 800417a: f44f 6300 mov.w r3, #2048 ; 0x800 + 800417e: 677b str r3, [r7, #116] ; 0x74 speed = ETH_SPEED_10M; - 8004184: 2300 movs r3, #0 - 8004186: 67bb str r3, [r7, #120] ; 0x78 + 8004180: 2300 movs r3, #0 + 8004182: 67bb str r3, [r7, #120] ; 0x78 linkchanged = 1; - 8004188: 2301 movs r3, #1 - 800418a: 67fb str r3, [r7, #124] ; 0x7c + 8004184: 2301 movs r3, #1 + 8004186: 67fb str r3, [r7, #124] ; 0x7c break; - 800418c: e007 b.n 800419e + 8004188: e007 b.n 800419a duplex = ETH_HALFDUPLEX_MODE; + 800418a: 2300 movs r3, #0 + 800418c: 677b str r3, [r7, #116] ; 0x74 + speed = ETH_SPEED_10M; 800418e: 2300 movs r3, #0 - 8004190: 677b str r3, [r7, #116] ; 0x74 - speed = ETH_SPEED_10M; - 8004192: 2300 movs r3, #0 - 8004194: 67bb str r3, [r7, #120] ; 0x78 + 8004190: 67bb str r3, [r7, #120] ; 0x78 linkchanged = 1; - 8004196: 2301 movs r3, #1 - 8004198: 67fb str r3, [r7, #124] ; 0x7c + 8004192: 2301 movs r3, #1 + 8004194: 67fb str r3, [r7, #124] ; 0x7c break; - 800419a: e000 b.n 800419e + 8004196: e000 b.n 800419a break; - 800419c: bf00 nop + 8004198: bf00 nop if(linkchanged) - 800419e: 6ffb ldr r3, [r7, #124] ; 0x7c - 80041a0: 2b00 cmp r3, #0 - 80041a2: d018 beq.n 80041d6 + 800419a: 6ffb ldr r3, [r7, #124] ; 0x7c + 800419c: 2b00 cmp r3, #0 + 800419e: d018 beq.n 80041d2 HAL_ETH_GetMACConfig(&heth, &MACConf); - 80041a4: f107 030c add.w r3, r7, #12 - 80041a8: 4619 mov r1, r3 - 80041aa: 480e ldr r0, [pc, #56] ; (80041e4 ) - 80041ac: f7fd ffa6 bl 80020fc + 80041a0: f107 030c add.w r3, r7, #12 + 80041a4: 4619 mov r1, r3 + 80041a6: 480e ldr r0, [pc, #56] ; (80041e0 ) + 80041a8: f7fd ffa6 bl 80020f8 MACConf.DuplexMode = duplex; - 80041b0: 6f7b ldr r3, [r7, #116] ; 0x74 - 80041b2: 627b str r3, [r7, #36] ; 0x24 + 80041ac: 6f7b ldr r3, [r7, #116] ; 0x74 + 80041ae: 627b str r3, [r7, #36] ; 0x24 MACConf.Speed = speed; - 80041b4: 6fbb ldr r3, [r7, #120] ; 0x78 - 80041b6: 623b str r3, [r7, #32] + 80041b0: 6fbb ldr r3, [r7, #120] ; 0x78 + 80041b2: 623b str r3, [r7, #32] HAL_ETH_SetMACConfig(&heth, &MACConf); - 80041b8: f107 030c add.w r3, r7, #12 - 80041bc: 4619 mov r1, r3 - 80041be: 4809 ldr r0, [pc, #36] ; (80041e4 ) - 80041c0: f7fe f886 bl 80022d0 + 80041b4: f107 030c add.w r3, r7, #12 + 80041b8: 4619 mov r1, r3 + 80041ba: 4809 ldr r0, [pc, #36] ; (80041e0 ) + 80041bc: f7fe f886 bl 80022cc HAL_ETH_Start(&heth); - 80041c4: 4807 ldr r0, [pc, #28] ; (80041e4 ) - 80041c6: f7fd fc81 bl 8001acc + 80041c0: 4807 ldr r0, [pc, #28] ; (80041e0 ) + 80041c2: f7fd fc81 bl 8001ac8 netif_set_up(netif); - 80041ca: 6878 ldr r0, [r7, #4] - 80041cc: f000 ff60 bl 8005090 + 80041c6: 6878 ldr r0, [r7, #4] + 80041c8: f000 ff60 bl 800508c netif_set_link_up(netif); - 80041d0: 6878 ldr r0, [r7, #4] - 80041d2: f000 fffb bl 80051cc + 80041cc: 6878 ldr r0, [r7, #4] + 80041ce: f000 fffb bl 80051c8 } - 80041d6: bf00 nop - 80041d8: 3780 adds r7, #128 ; 0x80 - 80041da: 46bd mov sp, r7 - 80041dc: bd80 pop {r7, pc} - 80041de: bf00 nop - 80041e0: 20005650 .word 0x20005650 - 80041e4: 20005568 .word 0x20005568 + 80041d2: bf00 nop + 80041d4: 3780 adds r7, #128 ; 0x80 + 80041d6: 46bd mov sp, r7 + 80041d8: bd80 pop {r7, pc} + 80041da: bf00 nop + 80041dc: 20005650 .word 0x20005650 + 80041e0: 20005568 .word 0x20005568 -080041e8 : +080041e4 : void HAL_ETH_RxAllocateCallback(uint8_t **buff) { - 80041e8: b580 push {r7, lr} - 80041ea: b086 sub sp, #24 - 80041ec: af02 add r7, sp, #8 - 80041ee: 6078 str r0, [r7, #4] + 80041e4: b580 push {r7, lr} + 80041e6: b086 sub sp, #24 + 80041e8: af02 add r7, sp, #8 + 80041ea: 6078 str r0, [r7, #4] /* USER CODE BEGIN HAL ETH RxAllocateCallback */ struct pbuf_custom *p = LWIP_MEMPOOL_ALLOC(RX_POOL); - 80041f0: 4812 ldr r0, [pc, #72] ; (800423c ) - 80041f2: f000 fcbf bl 8004b74 - 80041f6: 60f8 str r0, [r7, #12] + 80041ec: 4812 ldr r0, [pc, #72] ; (8004238 ) + 80041ee: f000 fcbf bl 8004b70 + 80041f2: 60f8 str r0, [r7, #12] if (p) - 80041f8: 68fb ldr r3, [r7, #12] - 80041fa: 2b00 cmp r3, #0 - 80041fc: d014 beq.n 8004228 + 80041f4: 68fb ldr r3, [r7, #12] + 80041f6: 2b00 cmp r3, #0 + 80041f8: d014 beq.n 8004224 { /* Get the buff from the struct pbuf address. */ *buff = (uint8_t *)p + offsetof(RxBuff_t, buff); - 80041fe: 68fb ldr r3, [r7, #12] - 8004200: f103 0220 add.w r2, r3, #32 - 8004204: 687b ldr r3, [r7, #4] - 8004206: 601a str r2, [r3, #0] + 80041fa: 68fb ldr r3, [r7, #12] + 80041fc: f103 0220 add.w r2, r3, #32 + 8004200: 687b ldr r3, [r7, #4] + 8004202: 601a str r2, [r3, #0] p->custom_free_function = pbuf_free_custom; - 8004208: 68fb ldr r3, [r7, #12] - 800420a: 4a0d ldr r2, [pc, #52] ; (8004240 ) - 800420c: 611a str r2, [r3, #16] + 8004204: 68fb ldr r3, [r7, #12] + 8004206: 4a0d ldr r2, [pc, #52] ; (800423c ) + 8004208: 611a str r2, [r3, #16] /* Initialize the struct pbuf. * This must be performed whenever a buffer's allocated because it may be * changed by lwIP or the app, e.g., pbuf_free decrements ref. */ pbuf_alloced_custom(PBUF_RAW, 0, PBUF_REF, p, *buff, ETH_RX_BUFFER_SIZE); - 800420e: 687b ldr r3, [r7, #4] - 8004210: 681b ldr r3, [r3, #0] - 8004212: f44f 62c0 mov.w r2, #1536 ; 0x600 - 8004216: 9201 str r2, [sp, #4] - 8004218: 9300 str r3, [sp, #0] - 800421a: 68fb ldr r3, [r7, #12] - 800421c: 2241 movs r2, #65 ; 0x41 - 800421e: 2100 movs r1, #0 - 8004220: 2000 movs r0, #0 - 8004222: f001 fa01 bl 8005628 + 800420a: 687b ldr r3, [r7, #4] + 800420c: 681b ldr r3, [r3, #0] + 800420e: f44f 62c0 mov.w r2, #1536 ; 0x600 + 8004212: 9201 str r2, [sp, #4] + 8004214: 9300 str r3, [sp, #0] + 8004216: 68fb ldr r3, [r7, #12] + 8004218: 2241 movs r2, #65 ; 0x41 + 800421a: 2100 movs r1, #0 + 800421c: 2000 movs r0, #0 + 800421e: f001 fa01 bl 8005624 { RxAllocStatus = RX_ALLOC_ERROR; *buff = NULL; } /* USER CODE END HAL ETH RxAllocateCallback */ } - 8004226: e005 b.n 8004234 + 8004222: e005 b.n 8004230 RxAllocStatus = RX_ALLOC_ERROR; - 8004228: 4b06 ldr r3, [pc, #24] ; (8004244 ) - 800422a: 2201 movs r2, #1 - 800422c: 701a strb r2, [r3, #0] + 8004224: 4b06 ldr r3, [pc, #24] ; (8004240 ) + 8004226: 2201 movs r2, #1 + 8004228: 701a strb r2, [r3, #0] *buff = NULL; - 800422e: 687b ldr r3, [r7, #4] - 8004230: 2200 movs r2, #0 - 8004232: 601a str r2, [r3, #0] + 800422a: 687b ldr r3, [r7, #4] + 800422c: 2200 movs r2, #0 + 800422e: 601a str r2, [r3, #0] } - 8004234: bf00 nop - 8004236: 3710 adds r7, #16 - 8004238: 46bd mov sp, r7 - 800423a: bd80 pop {r7, pc} - 800423c: 08017cf0 .word 0x08017cf0 - 8004240: 08003e65 .word 0x08003e65 - 8004244: 20005424 .word 0x20005424 + 8004230: bf00 nop + 8004232: 3710 adds r7, #16 + 8004234: 46bd mov sp, r7 + 8004236: bd80 pop {r7, pc} + 8004238: 08017cf0 .word 0x08017cf0 + 800423c: 08003e61 .word 0x08003e61 + 8004240: 20005424 .word 0x20005424 -08004248 : +08004244 : void HAL_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff, uint16_t Length) { - 8004248: b480 push {r7} - 800424a: b089 sub sp, #36 ; 0x24 - 800424c: af00 add r7, sp, #0 - 800424e: 60f8 str r0, [r7, #12] - 8004250: 60b9 str r1, [r7, #8] - 8004252: 607a str r2, [r7, #4] - 8004254: 807b strh r3, [r7, #2] + 8004244: b480 push {r7} + 8004246: b089 sub sp, #36 ; 0x24 + 8004248: af00 add r7, sp, #0 + 800424a: 60f8 str r0, [r7, #12] + 800424c: 60b9 str r1, [r7, #8] + 800424e: 607a str r2, [r7, #4] + 8004250: 807b strh r3, [r7, #2] /* USER CODE BEGIN HAL ETH RxLinkCallback */ struct pbuf **ppStart = (struct pbuf **)pStart; - 8004256: 68fb ldr r3, [r7, #12] - 8004258: 61bb str r3, [r7, #24] + 8004252: 68fb ldr r3, [r7, #12] + 8004254: 61bb str r3, [r7, #24] struct pbuf **ppEnd = (struct pbuf **)pEnd; - 800425a: 68bb ldr r3, [r7, #8] - 800425c: 617b str r3, [r7, #20] + 8004256: 68bb ldr r3, [r7, #8] + 8004258: 617b str r3, [r7, #20] struct pbuf *p = NULL; - 800425e: 2300 movs r3, #0 - 8004260: 61fb str r3, [r7, #28] + 800425a: 2300 movs r3, #0 + 800425c: 61fb str r3, [r7, #28] /* Get the struct pbuf from the buff address. */ p = (struct pbuf *)(buff - offsetof(RxBuff_t, buff)); - 8004262: 687b ldr r3, [r7, #4] - 8004264: 3b20 subs r3, #32 - 8004266: 61fb str r3, [r7, #28] + 800425e: 687b ldr r3, [r7, #4] + 8004260: 3b20 subs r3, #32 + 8004262: 61fb str r3, [r7, #28] p->next = NULL; - 8004268: 69fb ldr r3, [r7, #28] - 800426a: 2200 movs r2, #0 - 800426c: 601a str r2, [r3, #0] + 8004264: 69fb ldr r3, [r7, #28] + 8004266: 2200 movs r2, #0 + 8004268: 601a str r2, [r3, #0] p->tot_len = 0; - 800426e: 69fb ldr r3, [r7, #28] - 8004270: 2200 movs r2, #0 - 8004272: 811a strh r2, [r3, #8] + 800426a: 69fb ldr r3, [r7, #28] + 800426c: 2200 movs r2, #0 + 800426e: 811a strh r2, [r3, #8] p->len = Length; - 8004274: 69fb ldr r3, [r7, #28] - 8004276: 887a ldrh r2, [r7, #2] - 8004278: 815a strh r2, [r3, #10] + 8004270: 69fb ldr r3, [r7, #28] + 8004272: 887a ldrh r2, [r7, #2] + 8004274: 815a strh r2, [r3, #10] /* Chain the buffer. */ if (!*ppStart) - 800427a: 69bb ldr r3, [r7, #24] - 800427c: 681b ldr r3, [r3, #0] - 800427e: 2b00 cmp r3, #0 - 8004280: d103 bne.n 800428a + 8004276: 69bb ldr r3, [r7, #24] + 8004278: 681b ldr r3, [r3, #0] + 800427a: 2b00 cmp r3, #0 + 800427c: d103 bne.n 8004286 { /* The first buffer of the packet. */ *ppStart = p; - 8004282: 69bb ldr r3, [r7, #24] - 8004284: 69fa ldr r2, [r7, #28] - 8004286: 601a str r2, [r3, #0] - 8004288: e003 b.n 8004292 + 800427e: 69bb ldr r3, [r7, #24] + 8004280: 69fa ldr r2, [r7, #28] + 8004282: 601a str r2, [r3, #0] + 8004284: e003 b.n 800428e } else { /* Chain the buffer to the end of the packet. */ (*ppEnd)->next = p; - 800428a: 697b ldr r3, [r7, #20] - 800428c: 681b ldr r3, [r3, #0] - 800428e: 69fa ldr r2, [r7, #28] - 8004290: 601a str r2, [r3, #0] + 8004286: 697b ldr r3, [r7, #20] + 8004288: 681b ldr r3, [r3, #0] + 800428a: 69fa ldr r2, [r7, #28] + 800428c: 601a str r2, [r3, #0] } *ppEnd = p; - 8004292: 697b ldr r3, [r7, #20] - 8004294: 69fa ldr r2, [r7, #28] - 8004296: 601a str r2, [r3, #0] + 800428e: 697b ldr r3, [r7, #20] + 8004290: 69fa ldr r2, [r7, #28] + 8004292: 601a str r2, [r3, #0] /* Update the total length of all the buffers of the chain. Each pbuf in the chain should have its tot_len * set to its own length, plus the length of all the following pbufs in the chain. */ for (p = *ppStart; p != NULL; p = p->next) - 8004298: 69bb ldr r3, [r7, #24] - 800429a: 681b ldr r3, [r3, #0] - 800429c: 61fb str r3, [r7, #28] - 800429e: e009 b.n 80042b4 + 8004294: 69bb ldr r3, [r7, #24] + 8004296: 681b ldr r3, [r3, #0] + 8004298: 61fb str r3, [r7, #28] + 800429a: e009 b.n 80042b0 { p->tot_len += Length; - 80042a0: 69fb ldr r3, [r7, #28] - 80042a2: 891a ldrh r2, [r3, #8] - 80042a4: 887b ldrh r3, [r7, #2] - 80042a6: 4413 add r3, r2 - 80042a8: b29a uxth r2, r3 - 80042aa: 69fb ldr r3, [r7, #28] - 80042ac: 811a strh r2, [r3, #8] + 800429c: 69fb ldr r3, [r7, #28] + 800429e: 891a ldrh r2, [r3, #8] + 80042a0: 887b ldrh r3, [r7, #2] + 80042a2: 4413 add r3, r2 + 80042a4: b29a uxth r2, r3 + 80042a6: 69fb ldr r3, [r7, #28] + 80042a8: 811a strh r2, [r3, #8] for (p = *ppStart; p != NULL; p = p->next) - 80042ae: 69fb ldr r3, [r7, #28] - 80042b0: 681b ldr r3, [r3, #0] - 80042b2: 61fb str r3, [r7, #28] - 80042b4: 69fb ldr r3, [r7, #28] - 80042b6: 2b00 cmp r3, #0 - 80042b8: d1f2 bne.n 80042a0 + 80042aa: 69fb ldr r3, [r7, #28] + 80042ac: 681b ldr r3, [r3, #0] + 80042ae: 61fb str r3, [r7, #28] + 80042b0: 69fb ldr r3, [r7, #28] + 80042b2: 2b00 cmp r3, #0 + 80042b4: d1f2 bne.n 800429c } /* USER CODE END HAL ETH RxLinkCallback */ } - 80042ba: bf00 nop - 80042bc: bf00 nop - 80042be: 3724 adds r7, #36 ; 0x24 - 80042c0: 46bd mov sp, r7 - 80042c2: f85d 7b04 ldr.w r7, [sp], #4 - 80042c6: 4770 bx lr + 80042b6: bf00 nop + 80042b8: bf00 nop + 80042ba: 3724 adds r7, #36 ; 0x24 + 80042bc: 46bd mov sp, r7 + 80042be: f85d 7b04 ldr.w r7, [sp], #4 + 80042c2: 4770 bx lr -080042c8 : +080042c4 : * @param n u16_t in host byte order * @return n in network byte order */ u16_t lwip_htons(u16_t n) { - 80042c8: b480 push {r7} - 80042ca: b083 sub sp, #12 - 80042cc: af00 add r7, sp, #0 - 80042ce: 4603 mov r3, r0 - 80042d0: 80fb strh r3, [r7, #6] + 80042c4: b480 push {r7} + 80042c6: b083 sub sp, #12 + 80042c8: af00 add r7, sp, #0 + 80042ca: 4603 mov r3, r0 + 80042cc: 80fb strh r3, [r7, #6] return PP_HTONS(n); - 80042d2: 88fb ldrh r3, [r7, #6] - 80042d4: 021b lsls r3, r3, #8 - 80042d6: b21a sxth r2, r3 - 80042d8: 88fb ldrh r3, [r7, #6] - 80042da: 0a1b lsrs r3, r3, #8 - 80042dc: b29b uxth r3, r3 + 80042ce: 88fb ldrh r3, [r7, #6] + 80042d0: 021b lsls r3, r3, #8 + 80042d2: b21a sxth r2, r3 + 80042d4: 88fb ldrh r3, [r7, #6] + 80042d6: 0a1b lsrs r3, r3, #8 + 80042d8: b29b uxth r3, r3 + 80042da: b21b sxth r3, r3 + 80042dc: 4313 orrs r3, r2 80042de: b21b sxth r3, r3 - 80042e0: 4313 orrs r3, r2 - 80042e2: b21b sxth r3, r3 - 80042e4: b29b uxth r3, r3 + 80042e0: b29b uxth r3, r3 } - 80042e6: 4618 mov r0, r3 - 80042e8: 370c adds r7, #12 - 80042ea: 46bd mov sp, r7 - 80042ec: f85d 7b04 ldr.w r7, [sp], #4 - 80042f0: 4770 bx lr + 80042e2: 4618 mov r0, r3 + 80042e4: 370c adds r7, #12 + 80042e6: 46bd mov sp, r7 + 80042e8: f85d 7b04 ldr.w r7, [sp], #4 + 80042ec: 4770 bx lr -080042f2 : +080042ee : * @param n u32_t in host byte order * @return n in network byte order */ u32_t lwip_htonl(u32_t n) { - 80042f2: b480 push {r7} - 80042f4: b083 sub sp, #12 - 80042f6: af00 add r7, sp, #0 - 80042f8: 6078 str r0, [r7, #4] + 80042ee: b480 push {r7} + 80042f0: b083 sub sp, #12 + 80042f2: af00 add r7, sp, #0 + 80042f4: 6078 str r0, [r7, #4] return PP_HTONL(n); + 80042f6: 687b ldr r3, [r7, #4] + 80042f8: 061a lsls r2, r3, #24 80042fa: 687b ldr r3, [r7, #4] - 80042fc: 061a lsls r2, r3, #24 - 80042fe: 687b ldr r3, [r7, #4] - 8004300: 021b lsls r3, r3, #8 - 8004302: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 8004306: 431a orrs r2, r3 - 8004308: 687b ldr r3, [r7, #4] - 800430a: 0a1b lsrs r3, r3, #8 - 800430c: f403 437f and.w r3, r3, #65280 ; 0xff00 - 8004310: 431a orrs r2, r3 - 8004312: 687b ldr r3, [r7, #4] - 8004314: 0e1b lsrs r3, r3, #24 - 8004316: 4313 orrs r3, r2 + 80042fc: 021b lsls r3, r3, #8 + 80042fe: f403 037f and.w r3, r3, #16711680 ; 0xff0000 + 8004302: 431a orrs r2, r3 + 8004304: 687b ldr r3, [r7, #4] + 8004306: 0a1b lsrs r3, r3, #8 + 8004308: f403 437f and.w r3, r3, #65280 ; 0xff00 + 800430c: 431a orrs r2, r3 + 800430e: 687b ldr r3, [r7, #4] + 8004310: 0e1b lsrs r3, r3, #24 + 8004312: 4313 orrs r3, r2 } - 8004318: 4618 mov r0, r3 - 800431a: 370c adds r7, #12 - 800431c: 46bd mov sp, r7 - 800431e: f85d 7b04 ldr.w r7, [sp], #4 - 8004322: 4770 bx lr + 8004314: 4618 mov r0, r3 + 8004316: 370c adds r7, #12 + 8004318: 46bd mov sp, r7 + 800431a: f85d 7b04 ldr.w r7, [sp], #4 + 800431e: 4770 bx lr -08004324 : +08004320 : * Initialize all modules. * Use this in NO_SYS mode. Use tcpip_init() otherwise. */ void lwip_init(void) { - 8004324: b580 push {r7, lr} - 8004326: b082 sub sp, #8 - 8004328: af00 add r7, sp, #0 + 8004320: b580 push {r7, lr} + 8004322: b082 sub sp, #8 + 8004324: af00 add r7, sp, #0 #ifndef LWIP_SKIP_CONST_CHECK int a = 0; - 800432a: 2300 movs r3, #0 - 800432c: 607b str r3, [r7, #4] + 8004326: 2300 movs r3, #0 + 8004328: 607b str r3, [r7, #4] /* Modules initialization */ stats_init(); #if !NO_SYS sys_init(); #endif /* !NO_SYS */ mem_init(); - 800432e: f000 f8d5 bl 80044dc + 800432a: f000 f8d5 bl 80044d8 memp_init(); - 8004332: f000 fbdb bl 8004aec + 800432e: f000 fbdb bl 8004ae8 pbuf_init(); netif_init(); - 8004336: f000 fcd9 bl 8004cec + 8004332: f000 fcd9 bl 8004ce8 #endif /* LWIP_IPV4 */ #if LWIP_RAW raw_init(); #endif /* LWIP_RAW */ #if LWIP_UDP udp_init(); - 800433a: f007 f873 bl 800b424 + 8004336: f007 f873 bl 800b420 #endif /* LWIP_UDP */ #if LWIP_TCP tcp_init(); - 800433e: f001 fdcb bl 8005ed8 + 800433a: f001 fdcb bl 8005ed4 #if PPP_SUPPORT ppp_init(); #endif #if LWIP_TIMERS sys_timeouts_init(); - 8004342: f006 ffe5 bl 800b310 + 800433e: f006 ffe5 bl 800b30c #endif /* LWIP_TIMERS */ } - 8004346: bf00 nop - 8004348: 3708 adds r7, #8 - 800434a: 46bd mov sp, r7 - 800434c: bd80 pop {r7, pc} + 8004342: bf00 nop + 8004344: 3708 adds r7, #8 + 8004346: 46bd mov sp, r7 + 8004348: bd80 pop {r7, pc} ... -08004350 : +0800434c : #define mem_overflow_check_element(mem) #endif /* MEM_OVERFLOW_CHECK */ static struct mem * ptr_to_mem(mem_size_t ptr) { - 8004350: b480 push {r7} - 8004352: b083 sub sp, #12 - 8004354: af00 add r7, sp, #0 - 8004356: 4603 mov r3, r0 - 8004358: 80fb strh r3, [r7, #6] + 800434c: b480 push {r7} + 800434e: b083 sub sp, #12 + 8004350: af00 add r7, sp, #0 + 8004352: 4603 mov r3, r0 + 8004354: 80fb strh r3, [r7, #6] return (struct mem *)(void *)&ram[ptr]; - 800435a: 4b05 ldr r3, [pc, #20] ; (8004370 ) - 800435c: 681a ldr r2, [r3, #0] - 800435e: 88fb ldrh r3, [r7, #6] - 8004360: 4413 add r3, r2 + 8004356: 4b05 ldr r3, [pc, #20] ; (800436c ) + 8004358: 681a ldr r2, [r3, #0] + 800435a: 88fb ldrh r3, [r7, #6] + 800435c: 4413 add r3, r2 } - 8004362: 4618 mov r0, r3 - 8004364: 370c adds r7, #12 - 8004366: 46bd mov sp, r7 - 8004368: f85d 7b04 ldr.w r7, [sp], #4 - 800436c: 4770 bx lr - 800436e: bf00 nop - 8004370: 20005cdc .word 0x20005cdc + 800435e: 4618 mov r0, r3 + 8004360: 370c adds r7, #12 + 8004362: 46bd mov sp, r7 + 8004364: f85d 7b04 ldr.w r7, [sp], #4 + 8004368: 4770 bx lr + 800436a: bf00 nop + 800436c: 20005cdc .word 0x20005cdc -08004374 : +08004370 : static mem_size_t mem_to_ptr(void *mem) { - 8004374: b480 push {r7} - 8004376: b083 sub sp, #12 - 8004378: af00 add r7, sp, #0 - 800437a: 6078 str r0, [r7, #4] + 8004370: b480 push {r7} + 8004372: b083 sub sp, #12 + 8004374: af00 add r7, sp, #0 + 8004376: 6078 str r0, [r7, #4] return (mem_size_t)((u8_t *)mem - ram); - 800437c: 4b05 ldr r3, [pc, #20] ; (8004394 ) - 800437e: 681b ldr r3, [r3, #0] - 8004380: 687a ldr r2, [r7, #4] - 8004382: 1ad3 subs r3, r2, r3 - 8004384: b29b uxth r3, r3 + 8004378: 4b05 ldr r3, [pc, #20] ; (8004390 ) + 800437a: 681b ldr r3, [r3, #0] + 800437c: 687a ldr r2, [r7, #4] + 800437e: 1ad3 subs r3, r2, r3 + 8004380: b29b uxth r3, r3 } - 8004386: 4618 mov r0, r3 - 8004388: 370c adds r7, #12 - 800438a: 46bd mov sp, r7 - 800438c: f85d 7b04 ldr.w r7, [sp], #4 - 8004390: 4770 bx lr - 8004392: bf00 nop - 8004394: 20005cdc .word 0x20005cdc + 8004382: 4618 mov r0, r3 + 8004384: 370c adds r7, #12 + 8004386: 46bd mov sp, r7 + 8004388: f85d 7b04 ldr.w r7, [sp], #4 + 800438c: 4770 bx lr + 800438e: bf00 nop + 8004390: 20005cdc .word 0x20005cdc -08004398 : +08004394 : * This assumes access to the heap is protected by the calling function * already. */ static void plug_holes(struct mem *mem) { - 8004398: b590 push {r4, r7, lr} - 800439a: b085 sub sp, #20 - 800439c: af00 add r7, sp, #0 - 800439e: 6078 str r0, [r7, #4] + 8004394: b590 push {r4, r7, lr} + 8004396: b085 sub sp, #20 + 8004398: af00 add r7, sp, #0 + 800439a: 6078 str r0, [r7, #4] struct mem *nmem; struct mem *pmem; LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); - 80043a0: 4b45 ldr r3, [pc, #276] ; (80044b8 ) - 80043a2: 681b ldr r3, [r3, #0] - 80043a4: 687a ldr r2, [r7, #4] - 80043a6: 429a cmp r2, r3 - 80043a8: d206 bcs.n 80043b8 - 80043aa: 4b44 ldr r3, [pc, #272] ; (80044bc ) - 80043ac: f240 12df movw r2, #479 ; 0x1df - 80043b0: 4943 ldr r1, [pc, #268] ; (80044c0 ) - 80043b2: 4844 ldr r0, [pc, #272] ; (80044c4 ) - 80043b4: f00c f80e bl 80103d4 + 800439c: 4b45 ldr r3, [pc, #276] ; (80044b4 ) + 800439e: 681b ldr r3, [r3, #0] + 80043a0: 687a ldr r2, [r7, #4] + 80043a2: 429a cmp r2, r3 + 80043a4: d206 bcs.n 80043b4 + 80043a6: 4b44 ldr r3, [pc, #272] ; (80044b8 ) + 80043a8: f240 12df movw r2, #479 ; 0x1df + 80043ac: 4943 ldr r1, [pc, #268] ; (80044bc ) + 80043ae: 4844 ldr r0, [pc, #272] ; (80044c0 ) + 80043b0: f00c f80e bl 80103d0 LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end); - 80043b8: 4b43 ldr r3, [pc, #268] ; (80044c8 ) - 80043ba: 681b ldr r3, [r3, #0] - 80043bc: 687a ldr r2, [r7, #4] - 80043be: 429a cmp r2, r3 - 80043c0: d306 bcc.n 80043d0 - 80043c2: 4b3e ldr r3, [pc, #248] ; (80044bc ) - 80043c4: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 80043c8: 4940 ldr r1, [pc, #256] ; (80044cc ) - 80043ca: 483e ldr r0, [pc, #248] ; (80044c4 ) - 80043cc: f00c f802 bl 80103d4 + 80043b4: 4b43 ldr r3, [pc, #268] ; (80044c4 ) + 80043b6: 681b ldr r3, [r3, #0] + 80043b8: 687a ldr r2, [r7, #4] + 80043ba: 429a cmp r2, r3 + 80043bc: d306 bcc.n 80043cc + 80043be: 4b3e ldr r3, [pc, #248] ; (80044b8 ) + 80043c0: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 80043c4: 4940 ldr r1, [pc, #256] ; (80044c8 ) + 80043c6: 483e ldr r0, [pc, #248] ; (80044c0 ) + 80043c8: f00c f802 bl 80103d0 LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0); - 80043d0: 687b ldr r3, [r7, #4] - 80043d2: 791b ldrb r3, [r3, #4] - 80043d4: 2b00 cmp r3, #0 - 80043d6: d006 beq.n 80043e6 - 80043d8: 4b38 ldr r3, [pc, #224] ; (80044bc ) - 80043da: f240 12e1 movw r2, #481 ; 0x1e1 - 80043de: 493c ldr r1, [pc, #240] ; (80044d0 ) - 80043e0: 4838 ldr r0, [pc, #224] ; (80044c4 ) - 80043e2: f00b fff7 bl 80103d4 + 80043cc: 687b ldr r3, [r7, #4] + 80043ce: 791b ldrb r3, [r3, #4] + 80043d0: 2b00 cmp r3, #0 + 80043d2: d006 beq.n 80043e2 + 80043d4: 4b38 ldr r3, [pc, #224] ; (80044b8 ) + 80043d6: f240 12e1 movw r2, #481 ; 0x1e1 + 80043da: 493c ldr r1, [pc, #240] ; (80044cc ) + 80043dc: 4838 ldr r0, [pc, #224] ; (80044c0 ) + 80043de: f00b fff7 bl 80103d0 /* plug hole forward */ LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED); - 80043e6: 687b ldr r3, [r7, #4] - 80043e8: 881b ldrh r3, [r3, #0] - 80043ea: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 80043ee: d906 bls.n 80043fe - 80043f0: 4b32 ldr r3, [pc, #200] ; (80044bc ) - 80043f2: f44f 72f2 mov.w r2, #484 ; 0x1e4 - 80043f6: 4937 ldr r1, [pc, #220] ; (80044d4 ) - 80043f8: 4832 ldr r0, [pc, #200] ; (80044c4 ) - 80043fa: f00b ffeb bl 80103d4 + 80043e2: 687b ldr r3, [r7, #4] + 80043e4: 881b ldrh r3, [r3, #0] + 80043e6: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 80043ea: d906 bls.n 80043fa + 80043ec: 4b32 ldr r3, [pc, #200] ; (80044b8 ) + 80043ee: f44f 72f2 mov.w r2, #484 ; 0x1e4 + 80043f2: 4937 ldr r1, [pc, #220] ; (80044d0 ) + 80043f4: 4832 ldr r0, [pc, #200] ; (80044c0 ) + 80043f6: f00b ffeb bl 80103d0 nmem = ptr_to_mem(mem->next); - 80043fe: 687b ldr r3, [r7, #4] - 8004400: 881b ldrh r3, [r3, #0] - 8004402: 4618 mov r0, r3 - 8004404: f7ff ffa4 bl 8004350 - 8004408: 60f8 str r0, [r7, #12] + 80043fa: 687b ldr r3, [r7, #4] + 80043fc: 881b ldrh r3, [r3, #0] + 80043fe: 4618 mov r0, r3 + 8004400: f7ff ffa4 bl 800434c + 8004404: 60f8 str r0, [r7, #12] if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) { - 800440a: 687a ldr r2, [r7, #4] - 800440c: 68fb ldr r3, [r7, #12] - 800440e: 429a cmp r2, r3 - 8004410: d024 beq.n 800445c - 8004412: 68fb ldr r3, [r7, #12] - 8004414: 791b ldrb r3, [r3, #4] - 8004416: 2b00 cmp r3, #0 - 8004418: d120 bne.n 800445c - 800441a: 4b2b ldr r3, [pc, #172] ; (80044c8 ) - 800441c: 681b ldr r3, [r3, #0] - 800441e: 68fa ldr r2, [r7, #12] - 8004420: 429a cmp r2, r3 - 8004422: d01b beq.n 800445c + 8004406: 687a ldr r2, [r7, #4] + 8004408: 68fb ldr r3, [r7, #12] + 800440a: 429a cmp r2, r3 + 800440c: d024 beq.n 8004458 + 800440e: 68fb ldr r3, [r7, #12] + 8004410: 791b ldrb r3, [r3, #4] + 8004412: 2b00 cmp r3, #0 + 8004414: d120 bne.n 8004458 + 8004416: 4b2b ldr r3, [pc, #172] ; (80044c4 ) + 8004418: 681b ldr r3, [r3, #0] + 800441a: 68fa ldr r2, [r7, #12] + 800441c: 429a cmp r2, r3 + 800441e: d01b beq.n 8004458 /* if mem->next is unused and not end of ram, combine mem and mem->next */ if (lfree == nmem) { - 8004424: 4b2c ldr r3, [pc, #176] ; (80044d8 ) - 8004426: 681b ldr r3, [r3, #0] - 8004428: 68fa ldr r2, [r7, #12] - 800442a: 429a cmp r2, r3 - 800442c: d102 bne.n 8004434 + 8004420: 4b2c ldr r3, [pc, #176] ; (80044d4 ) + 8004422: 681b ldr r3, [r3, #0] + 8004424: 68fa ldr r2, [r7, #12] + 8004426: 429a cmp r2, r3 + 8004428: d102 bne.n 8004430 lfree = mem; - 800442e: 4a2a ldr r2, [pc, #168] ; (80044d8 ) - 8004430: 687b ldr r3, [r7, #4] - 8004432: 6013 str r3, [r2, #0] + 800442a: 4a2a ldr r2, [pc, #168] ; (80044d4 ) + 800442c: 687b ldr r3, [r7, #4] + 800442e: 6013 str r3, [r2, #0] } mem->next = nmem->next; - 8004434: 68fb ldr r3, [r7, #12] - 8004436: 881a ldrh r2, [r3, #0] - 8004438: 687b ldr r3, [r7, #4] - 800443a: 801a strh r2, [r3, #0] + 8004430: 68fb ldr r3, [r7, #12] + 8004432: 881a ldrh r2, [r3, #0] + 8004434: 687b ldr r3, [r7, #4] + 8004436: 801a strh r2, [r3, #0] if (nmem->next != MEM_SIZE_ALIGNED) { - 800443c: 68fb ldr r3, [r7, #12] - 800443e: 881b ldrh r3, [r3, #0] - 8004440: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8004444: d00a beq.n 800445c + 8004438: 68fb ldr r3, [r7, #12] + 800443a: 881b ldrh r3, [r3, #0] + 800443c: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8004440: d00a beq.n 8004458 ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem); - 8004446: 68fb ldr r3, [r7, #12] - 8004448: 881b ldrh r3, [r3, #0] - 800444a: 4618 mov r0, r3 - 800444c: f7ff ff80 bl 8004350 - 8004450: 4604 mov r4, r0 - 8004452: 6878 ldr r0, [r7, #4] - 8004454: f7ff ff8e bl 8004374 - 8004458: 4603 mov r3, r0 - 800445a: 8063 strh r3, [r4, #2] + 8004442: 68fb ldr r3, [r7, #12] + 8004444: 881b ldrh r3, [r3, #0] + 8004446: 4618 mov r0, r3 + 8004448: f7ff ff80 bl 800434c + 800444c: 4604 mov r4, r0 + 800444e: 6878 ldr r0, [r7, #4] + 8004450: f7ff ff8e bl 8004370 + 8004454: 4603 mov r3, r0 + 8004456: 8063 strh r3, [r4, #2] } } /* plug hole backward */ pmem = ptr_to_mem(mem->prev); - 800445c: 687b ldr r3, [r7, #4] - 800445e: 885b ldrh r3, [r3, #2] - 8004460: 4618 mov r0, r3 - 8004462: f7ff ff75 bl 8004350 - 8004466: 60b8 str r0, [r7, #8] + 8004458: 687b ldr r3, [r7, #4] + 800445a: 885b ldrh r3, [r3, #2] + 800445c: 4618 mov r0, r3 + 800445e: f7ff ff75 bl 800434c + 8004462: 60b8 str r0, [r7, #8] if (pmem != mem && pmem->used == 0) { - 8004468: 68ba ldr r2, [r7, #8] - 800446a: 687b ldr r3, [r7, #4] - 800446c: 429a cmp r2, r3 - 800446e: d01f beq.n 80044b0 - 8004470: 68bb ldr r3, [r7, #8] - 8004472: 791b ldrb r3, [r3, #4] - 8004474: 2b00 cmp r3, #0 - 8004476: d11b bne.n 80044b0 + 8004464: 68ba ldr r2, [r7, #8] + 8004466: 687b ldr r3, [r7, #4] + 8004468: 429a cmp r2, r3 + 800446a: d01f beq.n 80044ac + 800446c: 68bb ldr r3, [r7, #8] + 800446e: 791b ldrb r3, [r3, #4] + 8004470: 2b00 cmp r3, #0 + 8004472: d11b bne.n 80044ac /* if mem->prev is unused, combine mem and mem->prev */ if (lfree == mem) { - 8004478: 4b17 ldr r3, [pc, #92] ; (80044d8 ) - 800447a: 681b ldr r3, [r3, #0] - 800447c: 687a ldr r2, [r7, #4] - 800447e: 429a cmp r2, r3 - 8004480: d102 bne.n 8004488 + 8004474: 4b17 ldr r3, [pc, #92] ; (80044d4 ) + 8004476: 681b ldr r3, [r3, #0] + 8004478: 687a ldr r2, [r7, #4] + 800447a: 429a cmp r2, r3 + 800447c: d102 bne.n 8004484 lfree = pmem; - 8004482: 4a15 ldr r2, [pc, #84] ; (80044d8 ) - 8004484: 68bb ldr r3, [r7, #8] - 8004486: 6013 str r3, [r2, #0] + 800447e: 4a15 ldr r2, [pc, #84] ; (80044d4 ) + 8004480: 68bb ldr r3, [r7, #8] + 8004482: 6013 str r3, [r2, #0] } pmem->next = mem->next; - 8004488: 687b ldr r3, [r7, #4] - 800448a: 881a ldrh r2, [r3, #0] - 800448c: 68bb ldr r3, [r7, #8] - 800448e: 801a strh r2, [r3, #0] + 8004484: 687b ldr r3, [r7, #4] + 8004486: 881a ldrh r2, [r3, #0] + 8004488: 68bb ldr r3, [r7, #8] + 800448a: 801a strh r2, [r3, #0] if (mem->next != MEM_SIZE_ALIGNED) { - 8004490: 687b ldr r3, [r7, #4] - 8004492: 881b ldrh r3, [r3, #0] - 8004494: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8004498: d00a beq.n 80044b0 + 800448c: 687b ldr r3, [r7, #4] + 800448e: 881b ldrh r3, [r3, #0] + 8004490: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8004494: d00a beq.n 80044ac ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem); - 800449a: 687b ldr r3, [r7, #4] - 800449c: 881b ldrh r3, [r3, #0] - 800449e: 4618 mov r0, r3 - 80044a0: f7ff ff56 bl 8004350 - 80044a4: 4604 mov r4, r0 - 80044a6: 68b8 ldr r0, [r7, #8] - 80044a8: f7ff ff64 bl 8004374 - 80044ac: 4603 mov r3, r0 - 80044ae: 8063 strh r3, [r4, #2] + 8004496: 687b ldr r3, [r7, #4] + 8004498: 881b ldrh r3, [r3, #0] + 800449a: 4618 mov r0, r3 + 800449c: f7ff ff56 bl 800434c + 80044a0: 4604 mov r4, r0 + 80044a2: 68b8 ldr r0, [r7, #8] + 80044a4: f7ff ff64 bl 8004370 + 80044a8: 4603 mov r3, r0 + 80044aa: 8063 strh r3, [r4, #2] } } } - 80044b0: bf00 nop - 80044b2: 3714 adds r7, #20 - 80044b4: 46bd mov sp, r7 - 80044b6: bd90 pop {r4, r7, pc} - 80044b8: 20005cdc .word 0x20005cdc - 80044bc: 08014f44 .word 0x08014f44 - 80044c0: 08014f74 .word 0x08014f74 - 80044c4: 08014f8c .word 0x08014f8c - 80044c8: 20005ce0 .word 0x20005ce0 - 80044cc: 08014fb4 .word 0x08014fb4 - 80044d0: 08014fd0 .word 0x08014fd0 - 80044d4: 08014fec .word 0x08014fec - 80044d8: 20005ce4 .word 0x20005ce4 + 80044ac: bf00 nop + 80044ae: 3714 adds r7, #20 + 80044b0: 46bd mov sp, r7 + 80044b2: bd90 pop {r4, r7, pc} + 80044b4: 20005cdc .word 0x20005cdc + 80044b8: 08014f44 .word 0x08014f44 + 80044bc: 08014f74 .word 0x08014f74 + 80044c0: 08014f8c .word 0x08014f8c + 80044c4: 20005ce0 .word 0x20005ce0 + 80044c8: 08014fb4 .word 0x08014fb4 + 80044cc: 08014fd0 .word 0x08014fd0 + 80044d0: 08014fec .word 0x08014fec + 80044d4: 20005ce4 .word 0x20005ce4 -080044dc : +080044d8 : /** * Zero the heap and initialize start, end and lowest-free */ void mem_init(void) { - 80044dc: b580 push {r7, lr} - 80044de: b082 sub sp, #8 - 80044e0: af00 add r7, sp, #0 + 80044d8: b580 push {r7, lr} + 80044da: b082 sub sp, #8 + 80044dc: af00 add r7, sp, #0 LWIP_ASSERT("Sanity check alignment", (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT - 1)) == 0); /* align the heap */ ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER); - 80044e2: 4b18 ldr r3, [pc, #96] ; (8004544 ) - 80044e4: 3303 adds r3, #3 - 80044e6: f023 0303 bic.w r3, r3, #3 - 80044ea: 461a mov r2, r3 - 80044ec: 4b16 ldr r3, [pc, #88] ; (8004548 ) - 80044ee: 601a str r2, [r3, #0] + 80044de: 4b18 ldr r3, [pc, #96] ; (8004540 ) + 80044e0: 3303 adds r3, #3 + 80044e2: f023 0303 bic.w r3, r3, #3 + 80044e6: 461a mov r2, r3 + 80044e8: 4b16 ldr r3, [pc, #88] ; (8004544 ) + 80044ea: 601a str r2, [r3, #0] /* initialize the start of the heap */ mem = (struct mem *)(void *)ram; - 80044f0: 4b15 ldr r3, [pc, #84] ; (8004548 ) - 80044f2: 681b ldr r3, [r3, #0] - 80044f4: 607b str r3, [r7, #4] + 80044ec: 4b15 ldr r3, [pc, #84] ; (8004544 ) + 80044ee: 681b ldr r3, [r3, #0] + 80044f0: 607b str r3, [r7, #4] mem->next = MEM_SIZE_ALIGNED; - 80044f6: 687b ldr r3, [r7, #4] - 80044f8: f44f 62c8 mov.w r2, #1600 ; 0x640 - 80044fc: 801a strh r2, [r3, #0] + 80044f2: 687b ldr r3, [r7, #4] + 80044f4: f44f 62c8 mov.w r2, #1600 ; 0x640 + 80044f8: 801a strh r2, [r3, #0] mem->prev = 0; - 80044fe: 687b ldr r3, [r7, #4] - 8004500: 2200 movs r2, #0 - 8004502: 805a strh r2, [r3, #2] + 80044fa: 687b ldr r3, [r7, #4] + 80044fc: 2200 movs r2, #0 + 80044fe: 805a strh r2, [r3, #2] mem->used = 0; - 8004504: 687b ldr r3, [r7, #4] - 8004506: 2200 movs r2, #0 - 8004508: 711a strb r2, [r3, #4] + 8004500: 687b ldr r3, [r7, #4] + 8004502: 2200 movs r2, #0 + 8004504: 711a strb r2, [r3, #4] /* initialize the end of the heap */ ram_end = ptr_to_mem(MEM_SIZE_ALIGNED); - 800450a: f44f 60c8 mov.w r0, #1600 ; 0x640 - 800450e: f7ff ff1f bl 8004350 - 8004512: 4603 mov r3, r0 - 8004514: 4a0d ldr r2, [pc, #52] ; (800454c ) - 8004516: 6013 str r3, [r2, #0] + 8004506: f44f 60c8 mov.w r0, #1600 ; 0x640 + 800450a: f7ff ff1f bl 800434c + 800450e: 4603 mov r3, r0 + 8004510: 4a0d ldr r2, [pc, #52] ; (8004548 ) + 8004512: 6013 str r3, [r2, #0] ram_end->used = 1; - 8004518: 4b0c ldr r3, [pc, #48] ; (800454c ) - 800451a: 681b ldr r3, [r3, #0] - 800451c: 2201 movs r2, #1 - 800451e: 711a strb r2, [r3, #4] + 8004514: 4b0c ldr r3, [pc, #48] ; (8004548 ) + 8004516: 681b ldr r3, [r3, #0] + 8004518: 2201 movs r2, #1 + 800451a: 711a strb r2, [r3, #4] ram_end->next = MEM_SIZE_ALIGNED; - 8004520: 4b0a ldr r3, [pc, #40] ; (800454c ) - 8004522: 681b ldr r3, [r3, #0] - 8004524: f44f 62c8 mov.w r2, #1600 ; 0x640 - 8004528: 801a strh r2, [r3, #0] + 800451c: 4b0a ldr r3, [pc, #40] ; (8004548 ) + 800451e: 681b ldr r3, [r3, #0] + 8004520: f44f 62c8 mov.w r2, #1600 ; 0x640 + 8004524: 801a strh r2, [r3, #0] ram_end->prev = MEM_SIZE_ALIGNED; - 800452a: 4b08 ldr r3, [pc, #32] ; (800454c ) - 800452c: 681b ldr r3, [r3, #0] - 800452e: f44f 62c8 mov.w r2, #1600 ; 0x640 - 8004532: 805a strh r2, [r3, #2] + 8004526: 4b08 ldr r3, [pc, #32] ; (8004548 ) + 8004528: 681b ldr r3, [r3, #0] + 800452a: f44f 62c8 mov.w r2, #1600 ; 0x640 + 800452e: 805a strh r2, [r3, #2] MEM_SANITY(); /* initialize the lowest-free pointer to the start of the heap */ lfree = (struct mem *)(void *)ram; - 8004534: 4b04 ldr r3, [pc, #16] ; (8004548 ) - 8004536: 681b ldr r3, [r3, #0] - 8004538: 4a05 ldr r2, [pc, #20] ; (8004550 ) - 800453a: 6013 str r3, [r2, #0] + 8004530: 4b04 ldr r3, [pc, #16] ; (8004544 ) + 8004532: 681b ldr r3, [r3, #0] + 8004534: 4a05 ldr r2, [pc, #20] ; (800454c ) + 8004536: 6013 str r3, [r2, #0] MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED); if (sys_mutex_new(&mem_mutex) != ERR_OK) { LWIP_ASSERT("failed to create mem_mutex", 0); } } - 800453c: bf00 nop - 800453e: 3708 adds r7, #8 - 8004540: 46bd mov sp, r7 - 8004542: bd80 pop {r7, pc} - 8004544: 20005688 .word 0x20005688 - 8004548: 20005cdc .word 0x20005cdc - 800454c: 20005ce0 .word 0x20005ce0 - 8004550: 20005ce4 .word 0x20005ce4 + 8004538: bf00 nop + 800453a: 3708 adds r7, #8 + 800453c: 46bd mov sp, r7 + 800453e: bd80 pop {r7, pc} + 8004540: 20005688 .word 0x20005688 + 8004544: 20005cdc .word 0x20005cdc + 8004548: 20005ce0 .word 0x20005ce0 + 800454c: 20005ce4 .word 0x20005ce4 -08004554 : +08004550 : /* Check if a struct mem is correctly linked. * If not, double-free is a possible reason. */ static int mem_link_valid(struct mem *mem) { - 8004554: b580 push {r7, lr} - 8004556: b086 sub sp, #24 - 8004558: af00 add r7, sp, #0 - 800455a: 6078 str r0, [r7, #4] + 8004550: b580 push {r7, lr} + 8004552: b086 sub sp, #24 + 8004554: af00 add r7, sp, #0 + 8004556: 6078 str r0, [r7, #4] struct mem *nmem, *pmem; mem_size_t rmem_idx; rmem_idx = mem_to_ptr(mem); - 800455c: 6878 ldr r0, [r7, #4] - 800455e: f7ff ff09 bl 8004374 - 8004562: 4603 mov r3, r0 - 8004564: 82fb strh r3, [r7, #22] + 8004558: 6878 ldr r0, [r7, #4] + 800455a: f7ff ff09 bl 8004370 + 800455e: 4603 mov r3, r0 + 8004560: 82fb strh r3, [r7, #22] nmem = ptr_to_mem(mem->next); - 8004566: 687b ldr r3, [r7, #4] - 8004568: 881b ldrh r3, [r3, #0] - 800456a: 4618 mov r0, r3 - 800456c: f7ff fef0 bl 8004350 - 8004570: 6138 str r0, [r7, #16] + 8004562: 687b ldr r3, [r7, #4] + 8004564: 881b ldrh r3, [r3, #0] + 8004566: 4618 mov r0, r3 + 8004568: f7ff fef0 bl 800434c + 800456c: 6138 str r0, [r7, #16] pmem = ptr_to_mem(mem->prev); - 8004572: 687b ldr r3, [r7, #4] - 8004574: 885b ldrh r3, [r3, #2] - 8004576: 4618 mov r0, r3 - 8004578: f7ff feea bl 8004350 - 800457c: 60f8 str r0, [r7, #12] + 800456e: 687b ldr r3, [r7, #4] + 8004570: 885b ldrh r3, [r3, #2] + 8004572: 4618 mov r0, r3 + 8004574: f7ff feea bl 800434c + 8004578: 60f8 str r0, [r7, #12] if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) || - 800457e: 687b ldr r3, [r7, #4] - 8004580: 881b ldrh r3, [r3, #0] - 8004582: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8004586: d818 bhi.n 80045ba - 8004588: 687b ldr r3, [r7, #4] - 800458a: 885b ldrh r3, [r3, #2] - 800458c: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8004590: d813 bhi.n 80045ba + 800457a: 687b ldr r3, [r7, #4] + 800457c: 881b ldrh r3, [r3, #0] + 800457e: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8004582: d818 bhi.n 80045b6 + 8004584: 687b ldr r3, [r7, #4] + 8004586: 885b ldrh r3, [r3, #2] + 8004588: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 800458c: d813 bhi.n 80045b6 ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 8004592: 687b ldr r3, [r7, #4] - 8004594: 885b ldrh r3, [r3, #2] + 800458e: 687b ldr r3, [r7, #4] + 8004590: 885b ldrh r3, [r3, #2] if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) || - 8004596: 8afa ldrh r2, [r7, #22] - 8004598: 429a cmp r2, r3 - 800459a: d004 beq.n 80045a6 + 8004592: 8afa ldrh r2, [r7, #22] + 8004594: 429a cmp r2, r3 + 8004596: d004 beq.n 80045a2 ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 800459c: 68fb ldr r3, [r7, #12] - 800459e: 881b ldrh r3, [r3, #0] - 80045a0: 8afa ldrh r2, [r7, #22] - 80045a2: 429a cmp r2, r3 - 80045a4: d109 bne.n 80045ba + 8004598: 68fb ldr r3, [r7, #12] + 800459a: 881b ldrh r3, [r3, #0] + 800459c: 8afa ldrh r2, [r7, #22] + 800459e: 429a cmp r2, r3 + 80045a0: d109 bne.n 80045b6 ((nmem != ram_end) && (nmem->prev != rmem_idx))) { - 80045a6: 4b08 ldr r3, [pc, #32] ; (80045c8 ) - 80045a8: 681b ldr r3, [r3, #0] + 80045a2: 4b08 ldr r3, [pc, #32] ; (80045c4 ) + 80045a4: 681b ldr r3, [r3, #0] ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 80045aa: 693a ldr r2, [r7, #16] - 80045ac: 429a cmp r2, r3 - 80045ae: d006 beq.n 80045be + 80045a6: 693a ldr r2, [r7, #16] + 80045a8: 429a cmp r2, r3 + 80045aa: d006 beq.n 80045ba ((nmem != ram_end) && (nmem->prev != rmem_idx))) { - 80045b0: 693b ldr r3, [r7, #16] - 80045b2: 885b ldrh r3, [r3, #2] - 80045b4: 8afa ldrh r2, [r7, #22] - 80045b6: 429a cmp r2, r3 - 80045b8: d001 beq.n 80045be + 80045ac: 693b ldr r3, [r7, #16] + 80045ae: 885b ldrh r3, [r3, #2] + 80045b0: 8afa ldrh r2, [r7, #22] + 80045b2: 429a cmp r2, r3 + 80045b4: d001 beq.n 80045ba return 0; - 80045ba: 2300 movs r3, #0 - 80045bc: e000 b.n 80045c0 + 80045b6: 2300 movs r3, #0 + 80045b8: e000 b.n 80045bc } return 1; - 80045be: 2301 movs r3, #1 + 80045ba: 2301 movs r3, #1 } - 80045c0: 4618 mov r0, r3 - 80045c2: 3718 adds r7, #24 - 80045c4: 46bd mov sp, r7 - 80045c6: bd80 pop {r7, pc} - 80045c8: 20005ce0 .word 0x20005ce0 + 80045bc: 4618 mov r0, r3 + 80045be: 3718 adds r7, #24 + 80045c0: 46bd mov sp, r7 + 80045c2: bd80 pop {r7, pc} + 80045c4: 20005ce0 .word 0x20005ce0 -080045cc : +080045c8 : * @param rmem is the data portion of a struct mem as returned by a previous * call to mem_malloc() */ void mem_free(void *rmem) { - 80045cc: b580 push {r7, lr} - 80045ce: b084 sub sp, #16 - 80045d0: af00 add r7, sp, #0 - 80045d2: 6078 str r0, [r7, #4] + 80045c8: b580 push {r7, lr} + 80045ca: b084 sub sp, #16 + 80045cc: af00 add r7, sp, #0 + 80045ce: 6078 str r0, [r7, #4] struct mem *mem; LWIP_MEM_FREE_DECL_PROTECT(); if (rmem == NULL) { - 80045d4: 687b ldr r3, [r7, #4] - 80045d6: 2b00 cmp r3, #0 - 80045d8: d04c beq.n 8004674 + 80045d0: 687b ldr r3, [r7, #4] + 80045d2: 2b00 cmp r3, #0 + 80045d4: d04c beq.n 8004670 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("mem_free(p == NULL) was called.\n")); return; } if ((((mem_ptr_t)rmem) & (MEM_ALIGNMENT - 1)) != 0) { - 80045da: 687b ldr r3, [r7, #4] - 80045dc: f003 0303 and.w r3, r3, #3 - 80045e0: 2b00 cmp r3, #0 - 80045e2: d007 beq.n 80045f4 + 80045d6: 687b ldr r3, [r7, #4] + 80045d8: f003 0303 and.w r3, r3, #3 + 80045dc: 2b00 cmp r3, #0 + 80045de: d007 beq.n 80045f0 LWIP_MEM_ILLEGAL_FREE("mem_free: sanity check alignment"); - 80045e4: 4b25 ldr r3, [pc, #148] ; (800467c ) - 80045e6: f240 2273 movw r2, #627 ; 0x273 - 80045ea: 4925 ldr r1, [pc, #148] ; (8004680 ) - 80045ec: 4825 ldr r0, [pc, #148] ; (8004684 ) - 80045ee: f00b fef1 bl 80103d4 + 80045e0: 4b25 ldr r3, [pc, #148] ; (8004678 ) + 80045e2: f240 2273 movw r2, #627 ; 0x273 + 80045e6: 4925 ldr r1, [pc, #148] ; (800467c ) + 80045e8: 4825 ldr r0, [pc, #148] ; (8004680 ) + 80045ea: f00b fef1 bl 80103d0 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: sanity check alignment\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); return; - 80045f2: e040 b.n 8004676 + 80045ee: e040 b.n 8004672 } /* Get the corresponding struct mem: */ /* cast through void* to get rid of alignment warnings */ mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET)); - 80045f4: 687b ldr r3, [r7, #4] - 80045f6: 3b08 subs r3, #8 - 80045f8: 60fb str r3, [r7, #12] + 80045f0: 687b ldr r3, [r7, #4] + 80045f2: 3b08 subs r3, #8 + 80045f4: 60fb str r3, [r7, #12] if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) { - 80045fa: 4b23 ldr r3, [pc, #140] ; (8004688 ) - 80045fc: 681b ldr r3, [r3, #0] - 80045fe: 68fa ldr r2, [r7, #12] - 8004600: 429a cmp r2, r3 - 8004602: d306 bcc.n 8004612 - 8004604: 687b ldr r3, [r7, #4] - 8004606: f103 020c add.w r2, r3, #12 - 800460a: 4b20 ldr r3, [pc, #128] ; (800468c ) - 800460c: 681b ldr r3, [r3, #0] - 800460e: 429a cmp r2, r3 - 8004610: d907 bls.n 8004622 + 80045f6: 4b23 ldr r3, [pc, #140] ; (8004684 ) + 80045f8: 681b ldr r3, [r3, #0] + 80045fa: 68fa ldr r2, [r7, #12] + 80045fc: 429a cmp r2, r3 + 80045fe: d306 bcc.n 800460e + 8004600: 687b ldr r3, [r7, #4] + 8004602: f103 020c add.w r2, r3, #12 + 8004606: 4b20 ldr r3, [pc, #128] ; (8004688 ) + 8004608: 681b ldr r3, [r3, #0] + 800460a: 429a cmp r2, r3 + 800460c: d907 bls.n 800461e LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory"); - 8004612: 4b1a ldr r3, [pc, #104] ; (800467c ) - 8004614: f240 227f movw r2, #639 ; 0x27f - 8004618: 491d ldr r1, [pc, #116] ; (8004690 ) - 800461a: 481a ldr r0, [pc, #104] ; (8004684 ) - 800461c: f00b feda bl 80103d4 + 800460e: 4b1a ldr r3, [pc, #104] ; (8004678 ) + 8004610: f240 227f movw r2, #639 ; 0x27f + 8004614: 491d ldr r1, [pc, #116] ; (800468c ) + 8004616: 481a ldr r0, [pc, #104] ; (8004680 ) + 8004618: f00b feda bl 80103d0 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); return; - 8004620: e029 b.n 8004676 + 800461c: e029 b.n 8004672 mem_overflow_check_element(mem); #endif /* protect the heap from concurrent access */ LWIP_MEM_FREE_PROTECT(); /* mem has to be in a used state */ if (!mem->used) { - 8004622: 68fb ldr r3, [r7, #12] - 8004624: 791b ldrb r3, [r3, #4] - 8004626: 2b00 cmp r3, #0 - 8004628: d107 bne.n 800463a + 800461e: 68fb ldr r3, [r7, #12] + 8004620: 791b ldrb r3, [r3, #4] + 8004622: 2b00 cmp r3, #0 + 8004624: d107 bne.n 8004636 LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: double free"); - 800462a: 4b14 ldr r3, [pc, #80] ; (800467c ) - 800462c: f44f 7223 mov.w r2, #652 ; 0x28c - 8004630: 4918 ldr r1, [pc, #96] ; (8004694 ) - 8004632: 4814 ldr r0, [pc, #80] ; (8004684 ) - 8004634: f00b fece bl 80103d4 + 8004626: 4b14 ldr r3, [pc, #80] ; (8004678 ) + 8004628: f44f 7223 mov.w r2, #652 ; 0x28c + 800462c: 4918 ldr r1, [pc, #96] ; (8004690 ) + 800462e: 4814 ldr r0, [pc, #80] ; (8004680 ) + 8004630: f00b fece bl 80103d0 LWIP_MEM_FREE_UNPROTECT(); LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: double free?\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); return; - 8004638: e01d b.n 8004676 + 8004634: e01d b.n 8004672 } if (!mem_link_valid(mem)) { - 800463a: 68f8 ldr r0, [r7, #12] - 800463c: f7ff ff8a bl 8004554 - 8004640: 4603 mov r3, r0 - 8004642: 2b00 cmp r3, #0 - 8004644: d107 bne.n 8004656 + 8004636: 68f8 ldr r0, [r7, #12] + 8004638: f7ff ff8a bl 8004550 + 800463c: 4603 mov r3, r0 + 800463e: 2b00 cmp r3, #0 + 8004640: d107 bne.n 8004652 LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: non-linked: double free"); - 8004646: 4b0d ldr r3, [pc, #52] ; (800467c ) - 8004648: f240 2295 movw r2, #661 ; 0x295 - 800464c: 4912 ldr r1, [pc, #72] ; (8004698 ) - 800464e: 480d ldr r0, [pc, #52] ; (8004684 ) - 8004650: f00b fec0 bl 80103d4 + 8004642: 4b0d ldr r3, [pc, #52] ; (8004678 ) + 8004644: f240 2295 movw r2, #661 ; 0x295 + 8004648: 4912 ldr r1, [pc, #72] ; (8004694 ) + 800464a: 480d ldr r0, [pc, #52] ; (8004680 ) + 800464c: f00b fec0 bl 80103d0 LWIP_MEM_FREE_UNPROTECT(); LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: non-linked: double free?\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); return; - 8004654: e00f b.n 8004676 + 8004650: e00f b.n 8004672 } /* mem is now unused. */ mem->used = 0; - 8004656: 68fb ldr r3, [r7, #12] - 8004658: 2200 movs r2, #0 - 800465a: 711a strb r2, [r3, #4] + 8004652: 68fb ldr r3, [r7, #12] + 8004654: 2200 movs r2, #0 + 8004656: 711a strb r2, [r3, #4] if (mem < lfree) { - 800465c: 4b0f ldr r3, [pc, #60] ; (800469c ) - 800465e: 681b ldr r3, [r3, #0] - 8004660: 68fa ldr r2, [r7, #12] - 8004662: 429a cmp r2, r3 - 8004664: d202 bcs.n 800466c + 8004658: 4b0f ldr r3, [pc, #60] ; (8004698 ) + 800465a: 681b ldr r3, [r3, #0] + 800465c: 68fa ldr r2, [r7, #12] + 800465e: 429a cmp r2, r3 + 8004660: d202 bcs.n 8004668 /* the newly freed struct is now the lowest */ lfree = mem; - 8004666: 4a0d ldr r2, [pc, #52] ; (800469c ) - 8004668: 68fb ldr r3, [r7, #12] - 800466a: 6013 str r3, [r2, #0] + 8004662: 4a0d ldr r2, [pc, #52] ; (8004698 ) + 8004664: 68fb ldr r3, [r7, #12] + 8004666: 6013 str r3, [r2, #0] } MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram))); /* finally, see if prev or next are free also */ plug_holes(mem); - 800466c: 68f8 ldr r0, [r7, #12] - 800466e: f7ff fe93 bl 8004398 - 8004672: e000 b.n 8004676 + 8004668: 68f8 ldr r0, [r7, #12] + 800466a: f7ff fe93 bl 8004394 + 800466e: e000 b.n 8004672 return; - 8004674: bf00 nop + 8004670: bf00 nop MEM_SANITY(); #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT mem_free_count = 1; #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ LWIP_MEM_FREE_UNPROTECT(); } - 8004676: 3710 adds r7, #16 - 8004678: 46bd mov sp, r7 - 800467a: bd80 pop {r7, pc} - 800467c: 08014f44 .word 0x08014f44 - 8004680: 08015018 .word 0x08015018 - 8004684: 08014f8c .word 0x08014f8c - 8004688: 20005cdc .word 0x20005cdc - 800468c: 20005ce0 .word 0x20005ce0 - 8004690: 0801503c .word 0x0801503c - 8004694: 08015058 .word 0x08015058 - 8004698: 08015080 .word 0x08015080 - 800469c: 20005ce4 .word 0x20005ce4 + 8004672: 3710 adds r7, #16 + 8004674: 46bd mov sp, r7 + 8004676: bd80 pop {r7, pc} + 8004678: 08014f44 .word 0x08014f44 + 800467c: 08015018 .word 0x08015018 + 8004680: 08014f8c .word 0x08014f8c + 8004684: 20005cdc .word 0x20005cdc + 8004688: 20005ce0 .word 0x20005ce0 + 800468c: 0801503c .word 0x0801503c + 8004690: 08015058 .word 0x08015058 + 8004694: 08015080 .word 0x08015080 + 8004698: 20005ce4 .word 0x20005ce4 -080046a0 : +0800469c : * or NULL if newsize is > old size, in which case rmem is NOT touched * or freed! */ void * mem_trim(void *rmem, mem_size_t new_size) { - 80046a0: b580 push {r7, lr} - 80046a2: b088 sub sp, #32 - 80046a4: af00 add r7, sp, #0 - 80046a6: 6078 str r0, [r7, #4] - 80046a8: 460b mov r3, r1 - 80046aa: 807b strh r3, [r7, #2] + 800469c: b580 push {r7, lr} + 800469e: b088 sub sp, #32 + 80046a0: af00 add r7, sp, #0 + 80046a2: 6078 str r0, [r7, #4] + 80046a4: 460b mov r3, r1 + 80046a6: 807b strh r3, [r7, #2] /* use the FREE_PROTECT here: it protects with sem OR SYS_ARCH_PROTECT */ LWIP_MEM_FREE_DECL_PROTECT(); /* Expand the size of the allocated memory region so that we can adjust for alignment. */ newsize = (mem_size_t)LWIP_MEM_ALIGN_SIZE(new_size); - 80046ac: 887b ldrh r3, [r7, #2] - 80046ae: 3303 adds r3, #3 - 80046b0: b29b uxth r3, r3 - 80046b2: f023 0303 bic.w r3, r3, #3 - 80046b6: 83fb strh r3, [r7, #30] + 80046a8: 887b ldrh r3, [r7, #2] + 80046aa: 3303 adds r3, #3 + 80046ac: b29b uxth r3, r3 + 80046ae: f023 0303 bic.w r3, r3, #3 + 80046b2: 83fb strh r3, [r7, #30] if (newsize < MIN_SIZE_ALIGNED) { - 80046b8: 8bfb ldrh r3, [r7, #30] - 80046ba: 2b0b cmp r3, #11 - 80046bc: d801 bhi.n 80046c2 + 80046b4: 8bfb ldrh r3, [r7, #30] + 80046b6: 2b0b cmp r3, #11 + 80046b8: d801 bhi.n 80046be /* every data block must be at least MIN_SIZE_ALIGNED long */ newsize = MIN_SIZE_ALIGNED; - 80046be: 230c movs r3, #12 - 80046c0: 83fb strh r3, [r7, #30] + 80046ba: 230c movs r3, #12 + 80046bc: 83fb strh r3, [r7, #30] } #if MEM_OVERFLOW_CHECK newsize += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED; #endif if ((newsize > MEM_SIZE_ALIGNED) || (newsize < new_size)) { - 80046c2: 8bfb ldrh r3, [r7, #30] - 80046c4: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 80046c8: d803 bhi.n 80046d2 - 80046ca: 8bfa ldrh r2, [r7, #30] - 80046cc: 887b ldrh r3, [r7, #2] - 80046ce: 429a cmp r2, r3 - 80046d0: d201 bcs.n 80046d6 + 80046be: 8bfb ldrh r3, [r7, #30] + 80046c0: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 80046c4: d803 bhi.n 80046ce + 80046c6: 8bfa ldrh r2, [r7, #30] + 80046c8: 887b ldrh r3, [r7, #2] + 80046ca: 429a cmp r2, r3 + 80046cc: d201 bcs.n 80046d2 return NULL; - 80046d2: 2300 movs r3, #0 - 80046d4: e0cc b.n 8004870 + 80046ce: 2300 movs r3, #0 + 80046d0: e0cc b.n 800486c } LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram && - 80046d6: 4b68 ldr r3, [pc, #416] ; (8004878 ) - 80046d8: 681b ldr r3, [r3, #0] - 80046da: 687a ldr r2, [r7, #4] - 80046dc: 429a cmp r2, r3 - 80046de: d304 bcc.n 80046ea - 80046e0: 4b66 ldr r3, [pc, #408] ; (800487c ) - 80046e2: 681b ldr r3, [r3, #0] - 80046e4: 687a ldr r2, [r7, #4] - 80046e6: 429a cmp r2, r3 - 80046e8: d306 bcc.n 80046f8 - 80046ea: 4b65 ldr r3, [pc, #404] ; (8004880 ) - 80046ec: f240 22d1 movw r2, #721 ; 0x2d1 - 80046f0: 4964 ldr r1, [pc, #400] ; (8004884 ) - 80046f2: 4865 ldr r0, [pc, #404] ; (8004888 ) - 80046f4: f00b fe6e bl 80103d4 + 80046d2: 4b68 ldr r3, [pc, #416] ; (8004874 ) + 80046d4: 681b ldr r3, [r3, #0] + 80046d6: 687a ldr r2, [r7, #4] + 80046d8: 429a cmp r2, r3 + 80046da: d304 bcc.n 80046e6 + 80046dc: 4b66 ldr r3, [pc, #408] ; (8004878 ) + 80046de: 681b ldr r3, [r3, #0] + 80046e0: 687a ldr r2, [r7, #4] + 80046e2: 429a cmp r2, r3 + 80046e4: d306 bcc.n 80046f4 + 80046e6: 4b65 ldr r3, [pc, #404] ; (800487c ) + 80046e8: f240 22d1 movw r2, #721 ; 0x2d1 + 80046ec: 4964 ldr r1, [pc, #400] ; (8004880 ) + 80046ee: 4865 ldr r0, [pc, #404] ; (8004884 ) + 80046f0: f00b fe6e bl 80103d0 (u8_t *)rmem < (u8_t *)ram_end); if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) { - 80046f8: 4b5f ldr r3, [pc, #380] ; (8004878 ) - 80046fa: 681b ldr r3, [r3, #0] - 80046fc: 687a ldr r2, [r7, #4] - 80046fe: 429a cmp r2, r3 - 8004700: d304 bcc.n 800470c - 8004702: 4b5e ldr r3, [pc, #376] ; (800487c ) - 8004704: 681b ldr r3, [r3, #0] - 8004706: 687a ldr r2, [r7, #4] - 8004708: 429a cmp r2, r3 - 800470a: d301 bcc.n 8004710 + 80046f4: 4b5f ldr r3, [pc, #380] ; (8004874 ) + 80046f6: 681b ldr r3, [r3, #0] + 80046f8: 687a ldr r2, [r7, #4] + 80046fa: 429a cmp r2, r3 + 80046fc: d304 bcc.n 8004708 + 80046fe: 4b5e ldr r3, [pc, #376] ; (8004878 ) + 8004700: 681b ldr r3, [r3, #0] + 8004702: 687a ldr r2, [r7, #4] + 8004704: 429a cmp r2, r3 + 8004706: d301 bcc.n 800470c LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); return rmem; - 800470c: 687b ldr r3, [r7, #4] - 800470e: e0af b.n 8004870 + 8004708: 687b ldr r3, [r7, #4] + 800470a: e0af b.n 800486c } /* Get the corresponding struct mem ... */ /* cast through void* to get rid of alignment warnings */ mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET)); - 8004710: 687b ldr r3, [r7, #4] - 8004712: 3b08 subs r3, #8 - 8004714: 61bb str r3, [r7, #24] + 800470c: 687b ldr r3, [r7, #4] + 800470e: 3b08 subs r3, #8 + 8004710: 61bb str r3, [r7, #24] #if MEM_OVERFLOW_CHECK mem_overflow_check_element(mem); #endif /* ... and its offset pointer */ ptr = mem_to_ptr(mem); - 8004716: 69b8 ldr r0, [r7, #24] - 8004718: f7ff fe2c bl 8004374 - 800471c: 4603 mov r3, r0 - 800471e: 82fb strh r3, [r7, #22] + 8004712: 69b8 ldr r0, [r7, #24] + 8004714: f7ff fe2c bl 8004370 + 8004718: 4603 mov r3, r0 + 800471a: 82fb strh r3, [r7, #22] size = (mem_size_t)((mem_size_t)(mem->next - ptr) - (SIZEOF_STRUCT_MEM + MEM_SANITY_OVERHEAD)); - 8004720: 69bb ldr r3, [r7, #24] - 8004722: 881a ldrh r2, [r3, #0] - 8004724: 8afb ldrh r3, [r7, #22] - 8004726: 1ad3 subs r3, r2, r3 - 8004728: b29b uxth r3, r3 - 800472a: 3b08 subs r3, #8 - 800472c: 82bb strh r3, [r7, #20] + 800471c: 69bb ldr r3, [r7, #24] + 800471e: 881a ldrh r2, [r3, #0] + 8004720: 8afb ldrh r3, [r7, #22] + 8004722: 1ad3 subs r3, r2, r3 + 8004724: b29b uxth r3, r3 + 8004726: 3b08 subs r3, #8 + 8004728: 82bb strh r3, [r7, #20] LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size); - 800472e: 8bfa ldrh r2, [r7, #30] - 8004730: 8abb ldrh r3, [r7, #20] - 8004732: 429a cmp r2, r3 - 8004734: d906 bls.n 8004744 - 8004736: 4b52 ldr r3, [pc, #328] ; (8004880 ) - 8004738: f44f 7239 mov.w r2, #740 ; 0x2e4 - 800473c: 4953 ldr r1, [pc, #332] ; (800488c ) - 800473e: 4852 ldr r0, [pc, #328] ; (8004888 ) - 8004740: f00b fe48 bl 80103d4 + 800472a: 8bfa ldrh r2, [r7, #30] + 800472c: 8abb ldrh r3, [r7, #20] + 800472e: 429a cmp r2, r3 + 8004730: d906 bls.n 8004740 + 8004732: 4b52 ldr r3, [pc, #328] ; (800487c ) + 8004734: f44f 7239 mov.w r2, #740 ; 0x2e4 + 8004738: 4953 ldr r1, [pc, #332] ; (8004888 ) + 800473a: 4852 ldr r0, [pc, #328] ; (8004884 ) + 800473c: f00b fe48 bl 80103d0 if (newsize > size) { - 8004744: 8bfa ldrh r2, [r7, #30] - 8004746: 8abb ldrh r3, [r7, #20] - 8004748: 429a cmp r2, r3 - 800474a: d901 bls.n 8004750 + 8004740: 8bfa ldrh r2, [r7, #30] + 8004742: 8abb ldrh r3, [r7, #20] + 8004744: 429a cmp r2, r3 + 8004746: d901 bls.n 800474c /* not supported */ return NULL; - 800474c: 2300 movs r3, #0 - 800474e: e08f b.n 8004870 + 8004748: 2300 movs r3, #0 + 800474a: e08f b.n 800486c } if (newsize == size) { - 8004750: 8bfa ldrh r2, [r7, #30] - 8004752: 8abb ldrh r3, [r7, #20] - 8004754: 429a cmp r2, r3 - 8004756: d101 bne.n 800475c + 800474c: 8bfa ldrh r2, [r7, #30] + 800474e: 8abb ldrh r3, [r7, #20] + 8004750: 429a cmp r2, r3 + 8004752: d101 bne.n 8004758 /* No change in size, simply return */ return rmem; - 8004758: 687b ldr r3, [r7, #4] - 800475a: e089 b.n 8004870 + 8004754: 687b ldr r3, [r7, #4] + 8004756: e089 b.n 800486c } /* protect the heap from concurrent access */ LWIP_MEM_FREE_PROTECT(); mem2 = ptr_to_mem(mem->next); - 800475c: 69bb ldr r3, [r7, #24] - 800475e: 881b ldrh r3, [r3, #0] - 8004760: 4618 mov r0, r3 - 8004762: f7ff fdf5 bl 8004350 - 8004766: 6138 str r0, [r7, #16] + 8004758: 69bb ldr r3, [r7, #24] + 800475a: 881b ldrh r3, [r3, #0] + 800475c: 4618 mov r0, r3 + 800475e: f7ff fdf5 bl 800434c + 8004762: 6138 str r0, [r7, #16] if (mem2->used == 0) { - 8004768: 693b ldr r3, [r7, #16] - 800476a: 791b ldrb r3, [r3, #4] - 800476c: 2b00 cmp r3, #0 - 800476e: d13f bne.n 80047f0 + 8004764: 693b ldr r3, [r7, #16] + 8004766: 791b ldrb r3, [r3, #4] + 8004768: 2b00 cmp r3, #0 + 800476a: d13f bne.n 80047ec /* The next struct is unused, we can simply move it at little */ mem_size_t next; LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED); - 8004770: 69bb ldr r3, [r7, #24] - 8004772: 881b ldrh r3, [r3, #0] - 8004774: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8004778: d106 bne.n 8004788 - 800477a: 4b41 ldr r3, [pc, #260] ; (8004880 ) - 800477c: f240 22f5 movw r2, #757 ; 0x2f5 - 8004780: 4943 ldr r1, [pc, #268] ; (8004890 ) - 8004782: 4841 ldr r0, [pc, #260] ; (8004888 ) - 8004784: f00b fe26 bl 80103d4 + 800476c: 69bb ldr r3, [r7, #24] + 800476e: 881b ldrh r3, [r3, #0] + 8004770: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8004774: d106 bne.n 8004784 + 8004776: 4b41 ldr r3, [pc, #260] ; (800487c ) + 8004778: f240 22f5 movw r2, #757 ; 0x2f5 + 800477c: 4943 ldr r1, [pc, #268] ; (800488c ) + 800477e: 4841 ldr r0, [pc, #260] ; (8004884 ) + 8004780: f00b fe26 bl 80103d0 /* remember the old next pointer */ next = mem2->next; - 8004788: 693b ldr r3, [r7, #16] - 800478a: 881b ldrh r3, [r3, #0] - 800478c: 81bb strh r3, [r7, #12] + 8004784: 693b ldr r3, [r7, #16] + 8004786: 881b ldrh r3, [r3, #0] + 8004788: 81bb strh r3, [r7, #12] /* create new struct mem which is moved directly after the shrinked mem */ ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize); - 800478e: 8afa ldrh r2, [r7, #22] - 8004790: 8bfb ldrh r3, [r7, #30] - 8004792: 4413 add r3, r2 - 8004794: b29b uxth r3, r3 - 8004796: 3308 adds r3, #8 - 8004798: 81fb strh r3, [r7, #14] + 800478a: 8afa ldrh r2, [r7, #22] + 800478c: 8bfb ldrh r3, [r7, #30] + 800478e: 4413 add r3, r2 + 8004790: b29b uxth r3, r3 + 8004792: 3308 adds r3, #8 + 8004794: 81fb strh r3, [r7, #14] if (lfree == mem2) { - 800479a: 4b3e ldr r3, [pc, #248] ; (8004894 ) - 800479c: 681b ldr r3, [r3, #0] - 800479e: 693a ldr r2, [r7, #16] - 80047a0: 429a cmp r2, r3 - 80047a2: d106 bne.n 80047b2 + 8004796: 4b3e ldr r3, [pc, #248] ; (8004890 ) + 8004798: 681b ldr r3, [r3, #0] + 800479a: 693a ldr r2, [r7, #16] + 800479c: 429a cmp r2, r3 + 800479e: d106 bne.n 80047ae lfree = ptr_to_mem(ptr2); - 80047a4: 89fb ldrh r3, [r7, #14] - 80047a6: 4618 mov r0, r3 - 80047a8: f7ff fdd2 bl 8004350 - 80047ac: 4603 mov r3, r0 - 80047ae: 4a39 ldr r2, [pc, #228] ; (8004894 ) - 80047b0: 6013 str r3, [r2, #0] + 80047a0: 89fb ldrh r3, [r7, #14] + 80047a2: 4618 mov r0, r3 + 80047a4: f7ff fdd2 bl 800434c + 80047a8: 4603 mov r3, r0 + 80047aa: 4a39 ldr r2, [pc, #228] ; (8004890 ) + 80047ac: 6013 str r3, [r2, #0] } mem2 = ptr_to_mem(ptr2); - 80047b2: 89fb ldrh r3, [r7, #14] - 80047b4: 4618 mov r0, r3 - 80047b6: f7ff fdcb bl 8004350 - 80047ba: 6138 str r0, [r7, #16] + 80047ae: 89fb ldrh r3, [r7, #14] + 80047b0: 4618 mov r0, r3 + 80047b2: f7ff fdcb bl 800434c + 80047b6: 6138 str r0, [r7, #16] mem2->used = 0; - 80047bc: 693b ldr r3, [r7, #16] - 80047be: 2200 movs r2, #0 - 80047c0: 711a strb r2, [r3, #4] + 80047b8: 693b ldr r3, [r7, #16] + 80047ba: 2200 movs r2, #0 + 80047bc: 711a strb r2, [r3, #4] /* restore the next pointer */ mem2->next = next; - 80047c2: 693b ldr r3, [r7, #16] - 80047c4: 89ba ldrh r2, [r7, #12] - 80047c6: 801a strh r2, [r3, #0] + 80047be: 693b ldr r3, [r7, #16] + 80047c0: 89ba ldrh r2, [r7, #12] + 80047c2: 801a strh r2, [r3, #0] /* link it back to mem */ mem2->prev = ptr; - 80047c8: 693b ldr r3, [r7, #16] - 80047ca: 8afa ldrh r2, [r7, #22] - 80047cc: 805a strh r2, [r3, #2] + 80047c4: 693b ldr r3, [r7, #16] + 80047c6: 8afa ldrh r2, [r7, #22] + 80047c8: 805a strh r2, [r3, #2] /* link mem to it */ mem->next = ptr2; - 80047ce: 69bb ldr r3, [r7, #24] - 80047d0: 89fa ldrh r2, [r7, #14] - 80047d2: 801a strh r2, [r3, #0] + 80047ca: 69bb ldr r3, [r7, #24] + 80047cc: 89fa ldrh r2, [r7, #14] + 80047ce: 801a strh r2, [r3, #0] /* last thing to restore linked list: as we have moved mem2, * let 'mem2->next->prev' point to mem2 again. but only if mem2->next is not * the end of the heap */ if (mem2->next != MEM_SIZE_ALIGNED) { - 80047d4: 693b ldr r3, [r7, #16] - 80047d6: 881b ldrh r3, [r3, #0] - 80047d8: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 80047dc: d047 beq.n 800486e + 80047d0: 693b ldr r3, [r7, #16] + 80047d2: 881b ldrh r3, [r3, #0] + 80047d4: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 80047d8: d047 beq.n 800486a ptr_to_mem(mem2->next)->prev = ptr2; - 80047de: 693b ldr r3, [r7, #16] - 80047e0: 881b ldrh r3, [r3, #0] - 80047e2: 4618 mov r0, r3 - 80047e4: f7ff fdb4 bl 8004350 - 80047e8: 4602 mov r2, r0 - 80047ea: 89fb ldrh r3, [r7, #14] - 80047ec: 8053 strh r3, [r2, #2] - 80047ee: e03e b.n 800486e + 80047da: 693b ldr r3, [r7, #16] + 80047dc: 881b ldrh r3, [r3, #0] + 80047de: 4618 mov r0, r3 + 80047e0: f7ff fdb4 bl 800434c + 80047e4: 4602 mov r2, r0 + 80047e6: 89fb ldrh r3, [r7, #14] + 80047e8: 8053 strh r3, [r2, #2] + 80047ea: e03e b.n 800486a } MEM_STATS_DEC_USED(used, (size - newsize)); /* no need to plug holes, we've already done that */ } else if (newsize + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED <= size) { - 80047f0: 8bfb ldrh r3, [r7, #30] - 80047f2: f103 0214 add.w r2, r3, #20 - 80047f6: 8abb ldrh r3, [r7, #20] - 80047f8: 429a cmp r2, r3 - 80047fa: d838 bhi.n 800486e + 80047ec: 8bfb ldrh r3, [r7, #30] + 80047ee: f103 0214 add.w r2, r3, #20 + 80047f2: 8abb ldrh r3, [r7, #20] + 80047f4: 429a cmp r2, r3 + 80047f6: d838 bhi.n 800486a * Old size ('size') must be big enough to contain at least 'newsize' plus a struct mem * ('SIZEOF_STRUCT_MEM') with some data ('MIN_SIZE_ALIGNED'). * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty * region that couldn't hold data, but when mem->next gets freed, * the 2 regions would be combined, resulting in more free memory */ ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize); - 80047fc: 8afa ldrh r2, [r7, #22] - 80047fe: 8bfb ldrh r3, [r7, #30] - 8004800: 4413 add r3, r2 - 8004802: b29b uxth r3, r3 - 8004804: 3308 adds r3, #8 - 8004806: 81fb strh r3, [r7, #14] + 80047f8: 8afa ldrh r2, [r7, #22] + 80047fa: 8bfb ldrh r3, [r7, #30] + 80047fc: 4413 add r3, r2 + 80047fe: b29b uxth r3, r3 + 8004800: 3308 adds r3, #8 + 8004802: 81fb strh r3, [r7, #14] LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED); - 8004808: 69bb ldr r3, [r7, #24] - 800480a: 881b ldrh r3, [r3, #0] - 800480c: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8004810: d106 bne.n 8004820 - 8004812: 4b1b ldr r3, [pc, #108] ; (8004880 ) - 8004814: f240 3216 movw r2, #790 ; 0x316 - 8004818: 491d ldr r1, [pc, #116] ; (8004890 ) - 800481a: 481b ldr r0, [pc, #108] ; (8004888 ) - 800481c: f00b fdda bl 80103d4 + 8004804: 69bb ldr r3, [r7, #24] + 8004806: 881b ldrh r3, [r3, #0] + 8004808: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 800480c: d106 bne.n 800481c + 800480e: 4b1b ldr r3, [pc, #108] ; (800487c ) + 8004810: f240 3216 movw r2, #790 ; 0x316 + 8004814: 491d ldr r1, [pc, #116] ; (800488c ) + 8004816: 481b ldr r0, [pc, #108] ; (8004884 ) + 8004818: f00b fdda bl 80103d0 mem2 = ptr_to_mem(ptr2); - 8004820: 89fb ldrh r3, [r7, #14] - 8004822: 4618 mov r0, r3 - 8004824: f7ff fd94 bl 8004350 - 8004828: 6138 str r0, [r7, #16] + 800481c: 89fb ldrh r3, [r7, #14] + 800481e: 4618 mov r0, r3 + 8004820: f7ff fd94 bl 800434c + 8004824: 6138 str r0, [r7, #16] if (mem2 < lfree) { - 800482a: 4b1a ldr r3, [pc, #104] ; (8004894 ) - 800482c: 681b ldr r3, [r3, #0] - 800482e: 693a ldr r2, [r7, #16] - 8004830: 429a cmp r2, r3 - 8004832: d202 bcs.n 800483a + 8004826: 4b1a ldr r3, [pc, #104] ; (8004890 ) + 8004828: 681b ldr r3, [r3, #0] + 800482a: 693a ldr r2, [r7, #16] + 800482c: 429a cmp r2, r3 + 800482e: d202 bcs.n 8004836 lfree = mem2; - 8004834: 4a17 ldr r2, [pc, #92] ; (8004894 ) - 8004836: 693b ldr r3, [r7, #16] - 8004838: 6013 str r3, [r2, #0] + 8004830: 4a17 ldr r2, [pc, #92] ; (8004890 ) + 8004832: 693b ldr r3, [r7, #16] + 8004834: 6013 str r3, [r2, #0] } mem2->used = 0; - 800483a: 693b ldr r3, [r7, #16] - 800483c: 2200 movs r2, #0 - 800483e: 711a strb r2, [r3, #4] + 8004836: 693b ldr r3, [r7, #16] + 8004838: 2200 movs r2, #0 + 800483a: 711a strb r2, [r3, #4] mem2->next = mem->next; - 8004840: 69bb ldr r3, [r7, #24] - 8004842: 881a ldrh r2, [r3, #0] - 8004844: 693b ldr r3, [r7, #16] - 8004846: 801a strh r2, [r3, #0] + 800483c: 69bb ldr r3, [r7, #24] + 800483e: 881a ldrh r2, [r3, #0] + 8004840: 693b ldr r3, [r7, #16] + 8004842: 801a strh r2, [r3, #0] mem2->prev = ptr; - 8004848: 693b ldr r3, [r7, #16] - 800484a: 8afa ldrh r2, [r7, #22] - 800484c: 805a strh r2, [r3, #2] + 8004844: 693b ldr r3, [r7, #16] + 8004846: 8afa ldrh r2, [r7, #22] + 8004848: 805a strh r2, [r3, #2] mem->next = ptr2; - 800484e: 69bb ldr r3, [r7, #24] - 8004850: 89fa ldrh r2, [r7, #14] - 8004852: 801a strh r2, [r3, #0] + 800484a: 69bb ldr r3, [r7, #24] + 800484c: 89fa ldrh r2, [r7, #14] + 800484e: 801a strh r2, [r3, #0] if (mem2->next != MEM_SIZE_ALIGNED) { - 8004854: 693b ldr r3, [r7, #16] - 8004856: 881b ldrh r3, [r3, #0] - 8004858: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 800485c: d007 beq.n 800486e + 8004850: 693b ldr r3, [r7, #16] + 8004852: 881b ldrh r3, [r3, #0] + 8004854: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8004858: d007 beq.n 800486a ptr_to_mem(mem2->next)->prev = ptr2; - 800485e: 693b ldr r3, [r7, #16] - 8004860: 881b ldrh r3, [r3, #0] - 8004862: 4618 mov r0, r3 - 8004864: f7ff fd74 bl 8004350 - 8004868: 4602 mov r2, r0 - 800486a: 89fb ldrh r3, [r7, #14] - 800486c: 8053 strh r3, [r2, #2] + 800485a: 693b ldr r3, [r7, #16] + 800485c: 881b ldrh r3, [r3, #0] + 800485e: 4618 mov r0, r3 + 8004860: f7ff fd74 bl 800434c + 8004864: 4602 mov r2, r0 + 8004866: 89fb ldrh r3, [r7, #14] + 8004868: 8053 strh r3, [r2, #2] MEM_SANITY(); #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT mem_free_count = 1; #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ LWIP_MEM_FREE_UNPROTECT(); return rmem; - 800486e: 687b ldr r3, [r7, #4] + 800486a: 687b ldr r3, [r7, #4] } - 8004870: 4618 mov r0, r3 - 8004872: 3720 adds r7, #32 - 8004874: 46bd mov sp, r7 - 8004876: bd80 pop {r7, pc} - 8004878: 20005cdc .word 0x20005cdc - 800487c: 20005ce0 .word 0x20005ce0 - 8004880: 08014f44 .word 0x08014f44 - 8004884: 080150b4 .word 0x080150b4 - 8004888: 08014f8c .word 0x08014f8c - 800488c: 080150cc .word 0x080150cc - 8004890: 080150ec .word 0x080150ec - 8004894: 20005ce4 .word 0x20005ce4 + 800486c: 4618 mov r0, r3 + 800486e: 3720 adds r7, #32 + 8004870: 46bd mov sp, r7 + 8004872: bd80 pop {r7, pc} + 8004874: 20005cdc .word 0x20005cdc + 8004878: 20005ce0 .word 0x20005ce0 + 800487c: 08014f44 .word 0x08014f44 + 8004880: 080150b4 .word 0x080150b4 + 8004884: 08014f8c .word 0x08014f8c + 8004888: 080150cc .word 0x080150cc + 800488c: 080150ec .word 0x080150ec + 8004890: 20005ce4 .word 0x20005ce4 -08004898 : +08004894 : * * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT). */ void * mem_malloc(mem_size_t size_in) { - 8004898: b580 push {r7, lr} - 800489a: b088 sub sp, #32 - 800489c: af00 add r7, sp, #0 - 800489e: 4603 mov r3, r0 - 80048a0: 80fb strh r3, [r7, #6] + 8004894: b580 push {r7, lr} + 8004896: b088 sub sp, #32 + 8004898: af00 add r7, sp, #0 + 800489a: 4603 mov r3, r0 + 800489c: 80fb strh r3, [r7, #6] #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT u8_t local_mem_free_count = 0; #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ LWIP_MEM_ALLOC_DECL_PROTECT(); if (size_in == 0) { - 80048a2: 88fb ldrh r3, [r7, #6] - 80048a4: 2b00 cmp r3, #0 - 80048a6: d101 bne.n 80048ac + 800489e: 88fb ldrh r3, [r7, #6] + 80048a0: 2b00 cmp r3, #0 + 80048a2: d101 bne.n 80048a8 return NULL; - 80048a8: 2300 movs r3, #0 - 80048aa: e0d9 b.n 8004a60 + 80048a4: 2300 movs r3, #0 + 80048a6: e0d9 b.n 8004a5c } /* Expand the size of the allocated memory region so that we can adjust for alignment. */ size = (mem_size_t)LWIP_MEM_ALIGN_SIZE(size_in); - 80048ac: 88fb ldrh r3, [r7, #6] - 80048ae: 3303 adds r3, #3 - 80048b0: b29b uxth r3, r3 - 80048b2: f023 0303 bic.w r3, r3, #3 - 80048b6: 83bb strh r3, [r7, #28] + 80048a8: 88fb ldrh r3, [r7, #6] + 80048aa: 3303 adds r3, #3 + 80048ac: b29b uxth r3, r3 + 80048ae: f023 0303 bic.w r3, r3, #3 + 80048b2: 83bb strh r3, [r7, #28] if (size < MIN_SIZE_ALIGNED) { - 80048b8: 8bbb ldrh r3, [r7, #28] - 80048ba: 2b0b cmp r3, #11 - 80048bc: d801 bhi.n 80048c2 + 80048b4: 8bbb ldrh r3, [r7, #28] + 80048b6: 2b0b cmp r3, #11 + 80048b8: d801 bhi.n 80048be /* every data block must be at least MIN_SIZE_ALIGNED long */ size = MIN_SIZE_ALIGNED; - 80048be: 230c movs r3, #12 - 80048c0: 83bb strh r3, [r7, #28] + 80048ba: 230c movs r3, #12 + 80048bc: 83bb strh r3, [r7, #28] } #if MEM_OVERFLOW_CHECK size += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED; #endif if ((size > MEM_SIZE_ALIGNED) || (size < size_in)) { - 80048c2: 8bbb ldrh r3, [r7, #28] - 80048c4: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 80048c8: d803 bhi.n 80048d2 - 80048ca: 8bba ldrh r2, [r7, #28] - 80048cc: 88fb ldrh r3, [r7, #6] - 80048ce: 429a cmp r2, r3 - 80048d0: d201 bcs.n 80048d6 + 80048be: 8bbb ldrh r3, [r7, #28] + 80048c0: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 80048c4: d803 bhi.n 80048ce + 80048c6: 8bba ldrh r2, [r7, #28] + 80048c8: 88fb ldrh r3, [r7, #6] + 80048ca: 429a cmp r2, r3 + 80048cc: d201 bcs.n 80048d2 return NULL; - 80048d2: 2300 movs r3, #0 - 80048d4: e0c4 b.n 8004a60 + 80048ce: 2300 movs r3, #0 + 80048d0: e0c4 b.n 8004a5c #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ /* Scan through the heap searching for a free block that is big enough, * beginning with the lowest free block. */ for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size; - 80048d6: 4b64 ldr r3, [pc, #400] ; (8004a68 ) - 80048d8: 681b ldr r3, [r3, #0] - 80048da: 4618 mov r0, r3 - 80048dc: f7ff fd4a bl 8004374 - 80048e0: 4603 mov r3, r0 - 80048e2: 83fb strh r3, [r7, #30] - 80048e4: e0b4 b.n 8004a50 + 80048d2: 4b64 ldr r3, [pc, #400] ; (8004a64 ) + 80048d4: 681b ldr r3, [r3, #0] + 80048d6: 4618 mov r0, r3 + 80048d8: f7ff fd4a bl 8004370 + 80048dc: 4603 mov r3, r0 + 80048de: 83fb strh r3, [r7, #30] + 80048e0: e0b4 b.n 8004a4c ptr = ptr_to_mem(ptr)->next) { mem = ptr_to_mem(ptr); - 80048e6: 8bfb ldrh r3, [r7, #30] - 80048e8: 4618 mov r0, r3 - 80048ea: f7ff fd31 bl 8004350 - 80048ee: 6178 str r0, [r7, #20] + 80048e2: 8bfb ldrh r3, [r7, #30] + 80048e4: 4618 mov r0, r3 + 80048e6: f7ff fd31 bl 800434c + 80048ea: 6178 str r0, [r7, #20] local_mem_free_count = 1; break; } #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ if ((!mem->used) && - 80048f0: 697b ldr r3, [r7, #20] - 80048f2: 791b ldrb r3, [r3, #4] - 80048f4: 2b00 cmp r3, #0 - 80048f6: f040 80a4 bne.w 8004a42 + 80048ec: 697b ldr r3, [r7, #20] + 80048ee: 791b ldrb r3, [r3, #4] + 80048f0: 2b00 cmp r3, #0 + 80048f2: f040 80a4 bne.w 8004a3e (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) { - 80048fa: 697b ldr r3, [r7, #20] - 80048fc: 881b ldrh r3, [r3, #0] - 80048fe: 461a mov r2, r3 - 8004900: 8bfb ldrh r3, [r7, #30] - 8004902: 1ad3 subs r3, r2, r3 - 8004904: f1a3 0208 sub.w r2, r3, #8 - 8004908: 8bbb ldrh r3, [r7, #28] + 80048f6: 697b ldr r3, [r7, #20] + 80048f8: 881b ldrh r3, [r3, #0] + 80048fa: 461a mov r2, r3 + 80048fc: 8bfb ldrh r3, [r7, #30] + 80048fe: 1ad3 subs r3, r2, r3 + 8004900: f1a3 0208 sub.w r2, r3, #8 + 8004904: 8bbb ldrh r3, [r7, #28] if ((!mem->used) && - 800490a: 429a cmp r2, r3 - 800490c: f0c0 8099 bcc.w 8004a42 + 8004906: 429a cmp r2, r3 + 8004908: f0c0 8099 bcc.w 8004a3e /* mem is not used and at least perfect fit is possible: * mem->next - (ptr + SIZEOF_STRUCT_MEM) gives us the 'user data size' of mem */ if (mem->next - (ptr + SIZEOF_STRUCT_MEM) >= (size + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED)) { - 8004910: 697b ldr r3, [r7, #20] - 8004912: 881b ldrh r3, [r3, #0] - 8004914: 461a mov r2, r3 - 8004916: 8bfb ldrh r3, [r7, #30] - 8004918: 1ad3 subs r3, r2, r3 - 800491a: f1a3 0208 sub.w r2, r3, #8 - 800491e: 8bbb ldrh r3, [r7, #28] - 8004920: 3314 adds r3, #20 - 8004922: 429a cmp r2, r3 - 8004924: d333 bcc.n 800498e + 800490c: 697b ldr r3, [r7, #20] + 800490e: 881b ldrh r3, [r3, #0] + 8004910: 461a mov r2, r3 + 8004912: 8bfb ldrh r3, [r7, #30] + 8004914: 1ad3 subs r3, r2, r3 + 8004916: f1a3 0208 sub.w r2, r3, #8 + 800491a: 8bbb ldrh r3, [r7, #28] + 800491c: 3314 adds r3, #20 + 800491e: 429a cmp r2, r3 + 8004920: d333 bcc.n 800498a * struct mem would fit in but no data between mem2 and mem2->next * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty * region that couldn't hold data, but when mem->next gets freed, * the 2 regions would be combined, resulting in more free memory */ ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + size); - 8004926: 8bfa ldrh r2, [r7, #30] - 8004928: 8bbb ldrh r3, [r7, #28] - 800492a: 4413 add r3, r2 - 800492c: b29b uxth r3, r3 - 800492e: 3308 adds r3, #8 - 8004930: 827b strh r3, [r7, #18] + 8004922: 8bfa ldrh r2, [r7, #30] + 8004924: 8bbb ldrh r3, [r7, #28] + 8004926: 4413 add r3, r2 + 8004928: b29b uxth r3, r3 + 800492a: 3308 adds r3, #8 + 800492c: 827b strh r3, [r7, #18] LWIP_ASSERT("invalid next ptr",ptr2 != MEM_SIZE_ALIGNED); - 8004932: 8a7b ldrh r3, [r7, #18] - 8004934: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8004938: d106 bne.n 8004948 - 800493a: 4b4c ldr r3, [pc, #304] ; (8004a6c ) - 800493c: f240 3287 movw r2, #903 ; 0x387 - 8004940: 494b ldr r1, [pc, #300] ; (8004a70 ) - 8004942: 484c ldr r0, [pc, #304] ; (8004a74 ) - 8004944: f00b fd46 bl 80103d4 + 800492e: 8a7b ldrh r3, [r7, #18] + 8004930: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8004934: d106 bne.n 8004944 + 8004936: 4b4c ldr r3, [pc, #304] ; (8004a68 ) + 8004938: f240 3287 movw r2, #903 ; 0x387 + 800493c: 494b ldr r1, [pc, #300] ; (8004a6c ) + 800493e: 484c ldr r0, [pc, #304] ; (8004a70 ) + 8004940: f00b fd46 bl 80103d0 /* create mem2 struct */ mem2 = ptr_to_mem(ptr2); - 8004948: 8a7b ldrh r3, [r7, #18] - 800494a: 4618 mov r0, r3 - 800494c: f7ff fd00 bl 8004350 - 8004950: 60f8 str r0, [r7, #12] + 8004944: 8a7b ldrh r3, [r7, #18] + 8004946: 4618 mov r0, r3 + 8004948: f7ff fd00 bl 800434c + 800494c: 60f8 str r0, [r7, #12] mem2->used = 0; - 8004952: 68fb ldr r3, [r7, #12] - 8004954: 2200 movs r2, #0 - 8004956: 711a strb r2, [r3, #4] + 800494e: 68fb ldr r3, [r7, #12] + 8004950: 2200 movs r2, #0 + 8004952: 711a strb r2, [r3, #4] mem2->next = mem->next; - 8004958: 697b ldr r3, [r7, #20] - 800495a: 881a ldrh r2, [r3, #0] - 800495c: 68fb ldr r3, [r7, #12] - 800495e: 801a strh r2, [r3, #0] + 8004954: 697b ldr r3, [r7, #20] + 8004956: 881a ldrh r2, [r3, #0] + 8004958: 68fb ldr r3, [r7, #12] + 800495a: 801a strh r2, [r3, #0] mem2->prev = ptr; - 8004960: 68fb ldr r3, [r7, #12] - 8004962: 8bfa ldrh r2, [r7, #30] - 8004964: 805a strh r2, [r3, #2] + 800495c: 68fb ldr r3, [r7, #12] + 800495e: 8bfa ldrh r2, [r7, #30] + 8004960: 805a strh r2, [r3, #2] /* and insert it between mem and mem->next */ mem->next = ptr2; - 8004966: 697b ldr r3, [r7, #20] - 8004968: 8a7a ldrh r2, [r7, #18] - 800496a: 801a strh r2, [r3, #0] + 8004962: 697b ldr r3, [r7, #20] + 8004964: 8a7a ldrh r2, [r7, #18] + 8004966: 801a strh r2, [r3, #0] mem->used = 1; - 800496c: 697b ldr r3, [r7, #20] - 800496e: 2201 movs r2, #1 - 8004970: 711a strb r2, [r3, #4] + 8004968: 697b ldr r3, [r7, #20] + 800496a: 2201 movs r2, #1 + 800496c: 711a strb r2, [r3, #4] if (mem2->next != MEM_SIZE_ALIGNED) { - 8004972: 68fb ldr r3, [r7, #12] - 8004974: 881b ldrh r3, [r3, #0] - 8004976: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 800497a: d00b beq.n 8004994 + 800496e: 68fb ldr r3, [r7, #12] + 8004970: 881b ldrh r3, [r3, #0] + 8004972: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8004976: d00b beq.n 8004990 ptr_to_mem(mem2->next)->prev = ptr2; - 800497c: 68fb ldr r3, [r7, #12] - 800497e: 881b ldrh r3, [r3, #0] - 8004980: 4618 mov r0, r3 - 8004982: f7ff fce5 bl 8004350 - 8004986: 4602 mov r2, r0 - 8004988: 8a7b ldrh r3, [r7, #18] - 800498a: 8053 strh r3, [r2, #2] - 800498c: e002 b.n 8004994 + 8004978: 68fb ldr r3, [r7, #12] + 800497a: 881b ldrh r3, [r3, #0] + 800497c: 4618 mov r0, r3 + 800497e: f7ff fce5 bl 800434c + 8004982: 4602 mov r2, r0 + 8004984: 8a7b ldrh r3, [r7, #18] + 8004986: 8053 strh r3, [r2, #2] + 8004988: e002 b.n 8004990 * take care of this). * -> near fit or exact fit: do not split, no mem2 creation * also can't move mem->next directly behind mem, since mem->next * will always be used at this point! */ mem->used = 1; - 800498e: 697b ldr r3, [r7, #20] - 8004990: 2201 movs r2, #1 - 8004992: 711a strb r2, [r3, #4] + 800498a: 697b ldr r3, [r7, #20] + 800498c: 2201 movs r2, #1 + 800498e: 711a strb r2, [r3, #4] MEM_STATS_INC_USED(used, mem->next - mem_to_ptr(mem)); } #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT mem_malloc_adjust_lfree: #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ if (mem == lfree) { - 8004994: 4b34 ldr r3, [pc, #208] ; (8004a68 ) - 8004996: 681b ldr r3, [r3, #0] - 8004998: 697a ldr r2, [r7, #20] - 800499a: 429a cmp r2, r3 - 800499c: d127 bne.n 80049ee + 8004990: 4b34 ldr r3, [pc, #208] ; (8004a64 ) + 8004992: 681b ldr r3, [r3, #0] + 8004994: 697a ldr r2, [r7, #20] + 8004996: 429a cmp r2, r3 + 8004998: d127 bne.n 80049ea struct mem *cur = lfree; - 800499e: 4b32 ldr r3, [pc, #200] ; (8004a68 ) - 80049a0: 681b ldr r3, [r3, #0] - 80049a2: 61bb str r3, [r7, #24] + 800499a: 4b32 ldr r3, [pc, #200] ; (8004a64 ) + 800499c: 681b ldr r3, [r3, #0] + 800499e: 61bb str r3, [r7, #24] /* Find next free block after mem and update lowest free pointer */ while (cur->used && cur != ram_end) { - 80049a4: e005 b.n 80049b2 + 80049a0: e005 b.n 80049ae /* If mem_free or mem_trim have run, we have to restart since they could have altered our current struct mem or lfree. */ goto mem_malloc_adjust_lfree; } #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ cur = ptr_to_mem(cur->next); - 80049a6: 69bb ldr r3, [r7, #24] - 80049a8: 881b ldrh r3, [r3, #0] - 80049aa: 4618 mov r0, r3 - 80049ac: f7ff fcd0 bl 8004350 - 80049b0: 61b8 str r0, [r7, #24] + 80049a2: 69bb ldr r3, [r7, #24] + 80049a4: 881b ldrh r3, [r3, #0] + 80049a6: 4618 mov r0, r3 + 80049a8: f7ff fcd0 bl 800434c + 80049ac: 61b8 str r0, [r7, #24] while (cur->used && cur != ram_end) { - 80049b2: 69bb ldr r3, [r7, #24] - 80049b4: 791b ldrb r3, [r3, #4] - 80049b6: 2b00 cmp r3, #0 - 80049b8: d004 beq.n 80049c4 - 80049ba: 4b2f ldr r3, [pc, #188] ; (8004a78 ) - 80049bc: 681b ldr r3, [r3, #0] - 80049be: 69ba ldr r2, [r7, #24] - 80049c0: 429a cmp r2, r3 - 80049c2: d1f0 bne.n 80049a6 + 80049ae: 69bb ldr r3, [r7, #24] + 80049b0: 791b ldrb r3, [r3, #4] + 80049b2: 2b00 cmp r3, #0 + 80049b4: d004 beq.n 80049c0 + 80049b6: 4b2f ldr r3, [pc, #188] ; (8004a74 ) + 80049b8: 681b ldr r3, [r3, #0] + 80049ba: 69ba ldr r2, [r7, #24] + 80049bc: 429a cmp r2, r3 + 80049be: d1f0 bne.n 80049a2 } lfree = cur; - 80049c4: 4a28 ldr r2, [pc, #160] ; (8004a68 ) - 80049c6: 69bb ldr r3, [r7, #24] - 80049c8: 6013 str r3, [r2, #0] + 80049c0: 4a28 ldr r2, [pc, #160] ; (8004a64 ) + 80049c2: 69bb ldr r3, [r7, #24] + 80049c4: 6013 str r3, [r2, #0] LWIP_ASSERT("mem_malloc: !lfree->used", ((lfree == ram_end) || (!lfree->used))); - 80049ca: 4b27 ldr r3, [pc, #156] ; (8004a68 ) - 80049cc: 681a ldr r2, [r3, #0] - 80049ce: 4b2a ldr r3, [pc, #168] ; (8004a78 ) - 80049d0: 681b ldr r3, [r3, #0] - 80049d2: 429a cmp r2, r3 - 80049d4: d00b beq.n 80049ee - 80049d6: 4b24 ldr r3, [pc, #144] ; (8004a68 ) - 80049d8: 681b ldr r3, [r3, #0] - 80049da: 791b ldrb r3, [r3, #4] - 80049dc: 2b00 cmp r3, #0 - 80049de: d006 beq.n 80049ee - 80049e0: 4b22 ldr r3, [pc, #136] ; (8004a6c ) - 80049e2: f240 32b5 movw r2, #949 ; 0x3b5 - 80049e6: 4925 ldr r1, [pc, #148] ; (8004a7c ) - 80049e8: 4822 ldr r0, [pc, #136] ; (8004a74 ) - 80049ea: f00b fcf3 bl 80103d4 + 80049c6: 4b27 ldr r3, [pc, #156] ; (8004a64 ) + 80049c8: 681a ldr r2, [r3, #0] + 80049ca: 4b2a ldr r3, [pc, #168] ; (8004a74 ) + 80049cc: 681b ldr r3, [r3, #0] + 80049ce: 429a cmp r2, r3 + 80049d0: d00b beq.n 80049ea + 80049d2: 4b24 ldr r3, [pc, #144] ; (8004a64 ) + 80049d4: 681b ldr r3, [r3, #0] + 80049d6: 791b ldrb r3, [r3, #4] + 80049d8: 2b00 cmp r3, #0 + 80049da: d006 beq.n 80049ea + 80049dc: 4b22 ldr r3, [pc, #136] ; (8004a68 ) + 80049de: f240 32b5 movw r2, #949 ; 0x3b5 + 80049e2: 4925 ldr r1, [pc, #148] ; (8004a78 ) + 80049e4: 4822 ldr r0, [pc, #136] ; (8004a70 ) + 80049e6: f00b fcf3 bl 80103d0 } LWIP_MEM_ALLOC_UNPROTECT(); sys_mutex_unlock(&mem_mutex); LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.", - 80049ee: 8bba ldrh r2, [r7, #28] - 80049f0: 697b ldr r3, [r7, #20] - 80049f2: 4413 add r3, r2 - 80049f4: 3308 adds r3, #8 - 80049f6: 4a20 ldr r2, [pc, #128] ; (8004a78 ) - 80049f8: 6812 ldr r2, [r2, #0] - 80049fa: 4293 cmp r3, r2 - 80049fc: d906 bls.n 8004a0c - 80049fe: 4b1b ldr r3, [pc, #108] ; (8004a6c ) - 8004a00: f240 32b9 movw r2, #953 ; 0x3b9 - 8004a04: 491e ldr r1, [pc, #120] ; (8004a80 ) - 8004a06: 481b ldr r0, [pc, #108] ; (8004a74 ) - 8004a08: f00b fce4 bl 80103d4 + 80049ea: 8bba ldrh r2, [r7, #28] + 80049ec: 697b ldr r3, [r7, #20] + 80049ee: 4413 add r3, r2 + 80049f0: 3308 adds r3, #8 + 80049f2: 4a20 ldr r2, [pc, #128] ; (8004a74 ) + 80049f4: 6812 ldr r2, [r2, #0] + 80049f6: 4293 cmp r3, r2 + 80049f8: d906 bls.n 8004a08 + 80049fa: 4b1b ldr r3, [pc, #108] ; (8004a68 ) + 80049fc: f240 32b9 movw r2, #953 ; 0x3b9 + 8004a00: 491e ldr r1, [pc, #120] ; (8004a7c ) + 8004a02: 481b ldr r0, [pc, #108] ; (8004a70 ) + 8004a04: f00b fce4 bl 80103d0 (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end); LWIP_ASSERT("mem_malloc: allocated memory properly aligned.", - 8004a0c: 697b ldr r3, [r7, #20] - 8004a0e: f003 0303 and.w r3, r3, #3 - 8004a12: 2b00 cmp r3, #0 - 8004a14: d006 beq.n 8004a24 - 8004a16: 4b15 ldr r3, [pc, #84] ; (8004a6c ) - 8004a18: f240 32bb movw r2, #955 ; 0x3bb - 8004a1c: 4919 ldr r1, [pc, #100] ; (8004a84 ) - 8004a1e: 4815 ldr r0, [pc, #84] ; (8004a74 ) - 8004a20: f00b fcd8 bl 80103d4 + 8004a08: 697b ldr r3, [r7, #20] + 8004a0a: f003 0303 and.w r3, r3, #3 + 8004a0e: 2b00 cmp r3, #0 + 8004a10: d006 beq.n 8004a20 + 8004a12: 4b15 ldr r3, [pc, #84] ; (8004a68 ) + 8004a14: f240 32bb movw r2, #955 ; 0x3bb + 8004a18: 4919 ldr r1, [pc, #100] ; (8004a80 ) + 8004a1a: 4815 ldr r0, [pc, #84] ; (8004a70 ) + 8004a1c: f00b fcd8 bl 80103d0 ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0); LWIP_ASSERT("mem_malloc: sanity check alignment", - 8004a24: 697b ldr r3, [r7, #20] - 8004a26: f003 0303 and.w r3, r3, #3 - 8004a2a: 2b00 cmp r3, #0 - 8004a2c: d006 beq.n 8004a3c - 8004a2e: 4b0f ldr r3, [pc, #60] ; (8004a6c ) - 8004a30: f240 32bd movw r2, #957 ; 0x3bd - 8004a34: 4914 ldr r1, [pc, #80] ; (8004a88 ) - 8004a36: 480f ldr r0, [pc, #60] ; (8004a74 ) - 8004a38: f00b fccc bl 80103d4 + 8004a20: 697b ldr r3, [r7, #20] + 8004a22: f003 0303 and.w r3, r3, #3 + 8004a26: 2b00 cmp r3, #0 + 8004a28: d006 beq.n 8004a38 + 8004a2a: 4b0f ldr r3, [pc, #60] ; (8004a68 ) + 8004a2c: f240 32bd movw r2, #957 ; 0x3bd + 8004a30: 4914 ldr r1, [pc, #80] ; (8004a84 ) + 8004a32: 480f ldr r0, [pc, #60] ; (8004a70 ) + 8004a34: f00b fccc bl 80103d0 #if MEM_OVERFLOW_CHECK mem_overflow_init_element(mem, size_in); #endif MEM_SANITY(); return (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET; - 8004a3c: 697b ldr r3, [r7, #20] - 8004a3e: 3308 adds r3, #8 - 8004a40: e00e b.n 8004a60 + 8004a38: 697b ldr r3, [r7, #20] + 8004a3a: 3308 adds r3, #8 + 8004a3c: e00e b.n 8004a5c ptr = ptr_to_mem(ptr)->next) { - 8004a42: 8bfb ldrh r3, [r7, #30] - 8004a44: 4618 mov r0, r3 - 8004a46: f7ff fc83 bl 8004350 - 8004a4a: 4603 mov r3, r0 - 8004a4c: 881b ldrh r3, [r3, #0] - 8004a4e: 83fb strh r3, [r7, #30] + 8004a3e: 8bfb ldrh r3, [r7, #30] + 8004a40: 4618 mov r0, r3 + 8004a42: f7ff fc83 bl 800434c + 8004a46: 4603 mov r3, r0 + 8004a48: 881b ldrh r3, [r3, #0] + 8004a4a: 83fb strh r3, [r7, #30] for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size; - 8004a50: 8bfa ldrh r2, [r7, #30] - 8004a52: 8bbb ldrh r3, [r7, #28] - 8004a54: f5c3 63c8 rsb r3, r3, #1600 ; 0x640 - 8004a58: 429a cmp r2, r3 - 8004a5a: f4ff af44 bcc.w 80048e6 + 8004a4c: 8bfa ldrh r2, [r7, #30] + 8004a4e: 8bbb ldrh r3, [r7, #28] + 8004a50: f5c3 63c8 rsb r3, r3, #1600 ; 0x640 + 8004a54: 429a cmp r2, r3 + 8004a56: f4ff af44 bcc.w 80048e2 #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ MEM_STATS_INC(err); LWIP_MEM_ALLOC_UNPROTECT(); sys_mutex_unlock(&mem_mutex); LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size)); return NULL; - 8004a5e: 2300 movs r3, #0 + 8004a5a: 2300 movs r3, #0 } - 8004a60: 4618 mov r0, r3 - 8004a62: 3720 adds r7, #32 - 8004a64: 46bd mov sp, r7 - 8004a66: bd80 pop {r7, pc} - 8004a68: 20005ce4 .word 0x20005ce4 - 8004a6c: 08014f44 .word 0x08014f44 - 8004a70: 080150ec .word 0x080150ec - 8004a74: 08014f8c .word 0x08014f8c - 8004a78: 20005ce0 .word 0x20005ce0 - 8004a7c: 08015100 .word 0x08015100 - 8004a80: 0801511c .word 0x0801511c - 8004a84: 0801514c .word 0x0801514c - 8004a88: 0801517c .word 0x0801517c + 8004a5c: 4618 mov r0, r3 + 8004a5e: 3720 adds r7, #32 + 8004a60: 46bd mov sp, r7 + 8004a62: bd80 pop {r7, pc} + 8004a64: 20005ce4 .word 0x20005ce4 + 8004a68: 08014f44 .word 0x08014f44 + 8004a6c: 080150ec .word 0x080150ec + 8004a70: 08014f8c .word 0x08014f8c + 8004a74: 20005ce0 .word 0x20005ce0 + 8004a78: 08015100 .word 0x08015100 + 8004a7c: 0801511c .word 0x0801511c + 8004a80: 0801514c .word 0x0801514c + 8004a84: 0801517c .word 0x0801517c -08004a8c : +08004a88 : * * @param desc pool to initialize */ void memp_init_pool(const struct memp_desc *desc) { - 8004a8c: b480 push {r7} - 8004a8e: b085 sub sp, #20 - 8004a90: af00 add r7, sp, #0 - 8004a92: 6078 str r0, [r7, #4] + 8004a88: b480 push {r7} + 8004a8a: b085 sub sp, #20 + 8004a8c: af00 add r7, sp, #0 + 8004a8e: 6078 str r0, [r7, #4] LWIP_UNUSED_ARG(desc); #else int i; struct memp *memp; *desc->tab = NULL; - 8004a94: 687b ldr r3, [r7, #4] - 8004a96: 689b ldr r3, [r3, #8] - 8004a98: 2200 movs r2, #0 - 8004a9a: 601a str r2, [r3, #0] + 8004a90: 687b ldr r3, [r7, #4] + 8004a92: 689b ldr r3, [r3, #8] + 8004a94: 2200 movs r2, #0 + 8004a96: 601a str r2, [r3, #0] memp = (struct memp *)LWIP_MEM_ALIGN(desc->base); - 8004a9c: 687b ldr r3, [r7, #4] - 8004a9e: 685b ldr r3, [r3, #4] - 8004aa0: 3303 adds r3, #3 - 8004aa2: f023 0303 bic.w r3, r3, #3 - 8004aa6: 60bb str r3, [r7, #8] + 8004a98: 687b ldr r3, [r7, #4] + 8004a9a: 685b ldr r3, [r3, #4] + 8004a9c: 3303 adds r3, #3 + 8004a9e: f023 0303 bic.w r3, r3, #3 + 8004aa2: 60bb str r3, [r7, #8] + MEM_SANITY_REGION_AFTER_ALIGNED #endif )); #endif /* create a linked list of memp elements */ for (i = 0; i < desc->num; ++i) { - 8004aa8: 2300 movs r3, #0 - 8004aaa: 60fb str r3, [r7, #12] - 8004aac: e011 b.n 8004ad2 + 8004aa4: 2300 movs r3, #0 + 8004aa6: 60fb str r3, [r7, #12] + 8004aa8: e011 b.n 8004ace memp->next = *desc->tab; - 8004aae: 687b ldr r3, [r7, #4] - 8004ab0: 689b ldr r3, [r3, #8] - 8004ab2: 681a ldr r2, [r3, #0] - 8004ab4: 68bb ldr r3, [r7, #8] - 8004ab6: 601a str r2, [r3, #0] + 8004aaa: 687b ldr r3, [r7, #4] + 8004aac: 689b ldr r3, [r3, #8] + 8004aae: 681a ldr r2, [r3, #0] + 8004ab0: 68bb ldr r3, [r7, #8] + 8004ab2: 601a str r2, [r3, #0] *desc->tab = memp; - 8004ab8: 687b ldr r3, [r7, #4] - 8004aba: 689b ldr r3, [r3, #8] - 8004abc: 68ba ldr r2, [r7, #8] - 8004abe: 601a str r2, [r3, #0] + 8004ab4: 687b ldr r3, [r7, #4] + 8004ab6: 689b ldr r3, [r3, #8] + 8004ab8: 68ba ldr r2, [r7, #8] + 8004aba: 601a str r2, [r3, #0] #if MEMP_OVERFLOW_CHECK memp_overflow_init_element(memp, desc); #endif /* MEMP_OVERFLOW_CHECK */ /* cast through void* to get rid of alignment warnings */ memp = (struct memp *)(void *)((u8_t *)memp + MEMP_SIZE + desc->size - 8004ac0: 687b ldr r3, [r7, #4] - 8004ac2: 881b ldrh r3, [r3, #0] - 8004ac4: 461a mov r2, r3 - 8004ac6: 68bb ldr r3, [r7, #8] - 8004ac8: 4413 add r3, r2 - 8004aca: 60bb str r3, [r7, #8] + 8004abc: 687b ldr r3, [r7, #4] + 8004abe: 881b ldrh r3, [r3, #0] + 8004ac0: 461a mov r2, r3 + 8004ac2: 68bb ldr r3, [r7, #8] + 8004ac4: 4413 add r3, r2 + 8004ac6: 60bb str r3, [r7, #8] for (i = 0; i < desc->num; ++i) { - 8004acc: 68fb ldr r3, [r7, #12] - 8004ace: 3301 adds r3, #1 - 8004ad0: 60fb str r3, [r7, #12] - 8004ad2: 687b ldr r3, [r7, #4] - 8004ad4: 885b ldrh r3, [r3, #2] - 8004ad6: 461a mov r2, r3 - 8004ad8: 68fb ldr r3, [r7, #12] - 8004ada: 4293 cmp r3, r2 - 8004adc: dbe7 blt.n 8004aae + 8004ac8: 68fb ldr r3, [r7, #12] + 8004aca: 3301 adds r3, #1 + 8004acc: 60fb str r3, [r7, #12] + 8004ace: 687b ldr r3, [r7, #4] + 8004ad0: 885b ldrh r3, [r3, #2] + 8004ad2: 461a mov r2, r3 + 8004ad4: 68fb ldr r3, [r7, #12] + 8004ad6: 4293 cmp r3, r2 + 8004ad8: dbe7 blt.n 8004aaa #endif /* !MEMP_MEM_MALLOC */ #if MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) desc->stats->name = desc->desc; #endif /* MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) */ } - 8004ade: bf00 nop - 8004ae0: bf00 nop - 8004ae2: 3714 adds r7, #20 - 8004ae4: 46bd mov sp, r7 - 8004ae6: f85d 7b04 ldr.w r7, [sp], #4 - 8004aea: 4770 bx lr + 8004ada: bf00 nop + 8004adc: bf00 nop + 8004ade: 3714 adds r7, #20 + 8004ae0: 46bd mov sp, r7 + 8004ae2: f85d 7b04 ldr.w r7, [sp], #4 + 8004ae6: 4770 bx lr -08004aec : +08004ae8 : * * Carves out memp_memory into linked lists for each pool-type. */ void memp_init(void) { - 8004aec: b580 push {r7, lr} - 8004aee: b082 sub sp, #8 - 8004af0: af00 add r7, sp, #0 + 8004ae8: b580 push {r7, lr} + 8004aea: b082 sub sp, #8 + 8004aec: af00 add r7, sp, #0 u16_t i; /* for every pool: */ for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) { - 8004af2: 2300 movs r3, #0 - 8004af4: 80fb strh r3, [r7, #6] - 8004af6: e009 b.n 8004b0c + 8004aee: 2300 movs r3, #0 + 8004af0: 80fb strh r3, [r7, #6] + 8004af2: e009 b.n 8004b08 memp_init_pool(memp_pools[i]); - 8004af8: 88fb ldrh r3, [r7, #6] - 8004afa: 4a08 ldr r2, [pc, #32] ; (8004b1c ) - 8004afc: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8004b00: 4618 mov r0, r3 - 8004b02: f7ff ffc3 bl 8004a8c + 8004af4: 88fb ldrh r3, [r7, #6] + 8004af6: 4a08 ldr r2, [pc, #32] ; (8004b18 ) + 8004af8: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8004afc: 4618 mov r0, r3 + 8004afe: f7ff ffc3 bl 8004a88 for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) { - 8004b06: 88fb ldrh r3, [r7, #6] - 8004b08: 3301 adds r3, #1 - 8004b0a: 80fb strh r3, [r7, #6] - 8004b0c: 88fb ldrh r3, [r7, #6] - 8004b0e: 2b08 cmp r3, #8 - 8004b10: d9f2 bls.n 8004af8 + 8004b02: 88fb ldrh r3, [r7, #6] + 8004b04: 3301 adds r3, #1 + 8004b06: 80fb strh r3, [r7, #6] + 8004b08: 88fb ldrh r3, [r7, #6] + 8004b0a: 2b08 cmp r3, #8 + 8004b0c: d9f2 bls.n 8004af4 #if MEMP_OVERFLOW_CHECK >= 2 /* check everything a first time to see if it worked */ memp_overflow_check_all(); #endif /* MEMP_OVERFLOW_CHECK >= 2 */ } - 8004b12: bf00 nop - 8004b14: bf00 nop - 8004b16: 3708 adds r7, #8 - 8004b18: 46bd mov sp, r7 - 8004b1a: bd80 pop {r7, pc} - 8004b1c: 08017d68 .word 0x08017d68 + 8004b0e: bf00 nop + 8004b10: bf00 nop + 8004b12: 3708 adds r7, #8 + 8004b14: 46bd mov sp, r7 + 8004b16: bd80 pop {r7, pc} + 8004b18: 08017d68 .word 0x08017d68 -08004b20 : +08004b1c : #if !MEMP_OVERFLOW_CHECK do_memp_malloc_pool(const struct memp_desc *desc) #else do_memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line) #endif { - 8004b20: b580 push {r7, lr} - 8004b22: b084 sub sp, #16 - 8004b24: af00 add r7, sp, #0 - 8004b26: 6078 str r0, [r7, #4] + 8004b1c: b580 push {r7, lr} + 8004b1e: b084 sub sp, #16 + 8004b20: af00 add r7, sp, #0 + 8004b22: 6078 str r0, [r7, #4] memp = (struct memp *)mem_malloc(MEMP_SIZE + MEMP_ALIGN_SIZE(desc->size)); SYS_ARCH_PROTECT(old_level); #else /* MEMP_MEM_MALLOC */ SYS_ARCH_PROTECT(old_level); memp = *desc->tab; - 8004b28: 687b ldr r3, [r7, #4] - 8004b2a: 689b ldr r3, [r3, #8] - 8004b2c: 681b ldr r3, [r3, #0] - 8004b2e: 60fb str r3, [r7, #12] + 8004b24: 687b ldr r3, [r7, #4] + 8004b26: 689b ldr r3, [r3, #8] + 8004b28: 681b ldr r3, [r3, #0] + 8004b2a: 60fb str r3, [r7, #12] #endif /* MEMP_MEM_MALLOC */ if (memp != NULL) { - 8004b30: 68fb ldr r3, [r7, #12] - 8004b32: 2b00 cmp r3, #0 - 8004b34: d012 beq.n 8004b5c + 8004b2c: 68fb ldr r3, [r7, #12] + 8004b2e: 2b00 cmp r3, #0 + 8004b30: d012 beq.n 8004b58 #if !MEMP_MEM_MALLOC #if MEMP_OVERFLOW_CHECK == 1 memp_overflow_check_element(memp, desc); #endif /* MEMP_OVERFLOW_CHECK */ *desc->tab = memp->next; - 8004b36: 687b ldr r3, [r7, #4] - 8004b38: 689b ldr r3, [r3, #8] - 8004b3a: 68fa ldr r2, [r7, #12] - 8004b3c: 6812 ldr r2, [r2, #0] - 8004b3e: 601a str r2, [r3, #0] + 8004b32: 687b ldr r3, [r7, #4] + 8004b34: 689b ldr r3, [r3, #8] + 8004b36: 68fa ldr r2, [r7, #12] + 8004b38: 6812 ldr r2, [r2, #0] + 8004b3a: 601a str r2, [r3, #0] memp->line = line; #if MEMP_MEM_MALLOC memp_overflow_init_element(memp, desc); #endif /* MEMP_MEM_MALLOC */ #endif /* MEMP_OVERFLOW_CHECK */ LWIP_ASSERT("memp_malloc: memp properly aligned", - 8004b40: 68fb ldr r3, [r7, #12] - 8004b42: f003 0303 and.w r3, r3, #3 - 8004b46: 2b00 cmp r3, #0 - 8004b48: d006 beq.n 8004b58 - 8004b4a: 4b07 ldr r3, [pc, #28] ; (8004b68 ) - 8004b4c: f44f 728c mov.w r2, #280 ; 0x118 - 8004b50: 4906 ldr r1, [pc, #24] ; (8004b6c ) - 8004b52: 4807 ldr r0, [pc, #28] ; (8004b70 ) - 8004b54: f00b fc3e bl 80103d4 + 8004b3c: 68fb ldr r3, [r7, #12] + 8004b3e: f003 0303 and.w r3, r3, #3 + 8004b42: 2b00 cmp r3, #0 + 8004b44: d006 beq.n 8004b54 + 8004b46: 4b07 ldr r3, [pc, #28] ; (8004b64 ) + 8004b48: f44f 728c mov.w r2, #280 ; 0x118 + 8004b4c: 4906 ldr r1, [pc, #24] ; (8004b68 ) + 8004b4e: 4807 ldr r0, [pc, #28] ; (8004b6c ) + 8004b50: f00b fc3e bl 80103d0 desc->stats->max = desc->stats->used; } #endif SYS_ARCH_UNPROTECT(old_level); /* cast through u8_t* to get rid of alignment warnings */ return ((u8_t *)memp + MEMP_SIZE); - 8004b58: 68fb ldr r3, [r7, #12] - 8004b5a: e000 b.n 8004b5e + 8004b54: 68fb ldr r3, [r7, #12] + 8004b56: e000 b.n 8004b5a #endif SYS_ARCH_UNPROTECT(old_level); LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc->desc)); } return NULL; - 8004b5c: 2300 movs r3, #0 + 8004b58: 2300 movs r3, #0 } - 8004b5e: 4618 mov r0, r3 - 8004b60: 3710 adds r7, #16 - 8004b62: 46bd mov sp, r7 - 8004b64: bd80 pop {r7, pc} - 8004b66: bf00 nop - 8004b68: 080151a0 .word 0x080151a0 - 8004b6c: 080151d0 .word 0x080151d0 - 8004b70: 080151f4 .word 0x080151f4 + 8004b5a: 4618 mov r0, r3 + 8004b5c: 3710 adds r7, #16 + 8004b5e: 46bd mov sp, r7 + 8004b60: bd80 pop {r7, pc} + 8004b62: bf00 nop + 8004b64: 080151a0 .word 0x080151a0 + 8004b68: 080151d0 .word 0x080151d0 + 8004b6c: 080151f4 .word 0x080151f4 -08004b74 : +08004b70 : #if !MEMP_OVERFLOW_CHECK memp_malloc_pool(const struct memp_desc *desc) #else memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line) #endif { - 8004b74: b580 push {r7, lr} - 8004b76: b082 sub sp, #8 - 8004b78: af00 add r7, sp, #0 - 8004b7a: 6078 str r0, [r7, #4] + 8004b70: b580 push {r7, lr} + 8004b72: b082 sub sp, #8 + 8004b74: af00 add r7, sp, #0 + 8004b76: 6078 str r0, [r7, #4] LWIP_ASSERT("invalid pool desc", desc != NULL); - 8004b7c: 687b ldr r3, [r7, #4] - 8004b7e: 2b00 cmp r3, #0 - 8004b80: d106 bne.n 8004b90 - 8004b82: 4b0a ldr r3, [pc, #40] ; (8004bac ) - 8004b84: f44f 729e mov.w r2, #316 ; 0x13c - 8004b88: 4909 ldr r1, [pc, #36] ; (8004bb0 ) - 8004b8a: 480a ldr r0, [pc, #40] ; (8004bb4 ) - 8004b8c: f00b fc22 bl 80103d4 + 8004b78: 687b ldr r3, [r7, #4] + 8004b7a: 2b00 cmp r3, #0 + 8004b7c: d106 bne.n 8004b8c + 8004b7e: 4b0a ldr r3, [pc, #40] ; (8004ba8 ) + 8004b80: f44f 729e mov.w r2, #316 ; 0x13c + 8004b84: 4909 ldr r1, [pc, #36] ; (8004bac ) + 8004b86: 480a ldr r0, [pc, #40] ; (8004bb0 ) + 8004b88: f00b fc22 bl 80103d0 if (desc == NULL) { - 8004b90: 687b ldr r3, [r7, #4] - 8004b92: 2b00 cmp r3, #0 - 8004b94: d101 bne.n 8004b9a + 8004b8c: 687b ldr r3, [r7, #4] + 8004b8e: 2b00 cmp r3, #0 + 8004b90: d101 bne.n 8004b96 return NULL; - 8004b96: 2300 movs r3, #0 - 8004b98: e003 b.n 8004ba2 + 8004b92: 2300 movs r3, #0 + 8004b94: e003 b.n 8004b9e } #if !MEMP_OVERFLOW_CHECK return do_memp_malloc_pool(desc); - 8004b9a: 6878 ldr r0, [r7, #4] - 8004b9c: f7ff ffc0 bl 8004b20 - 8004ba0: 4603 mov r3, r0 + 8004b96: 6878 ldr r0, [r7, #4] + 8004b98: f7ff ffc0 bl 8004b1c + 8004b9c: 4603 mov r3, r0 #else return do_memp_malloc_pool_fn(desc, file, line); #endif } - 8004ba2: 4618 mov r0, r3 - 8004ba4: 3708 adds r7, #8 - 8004ba6: 46bd mov sp, r7 - 8004ba8: bd80 pop {r7, pc} - 8004baa: bf00 nop - 8004bac: 080151a0 .word 0x080151a0 - 8004bb0: 0801521c .word 0x0801521c - 8004bb4: 080151f4 .word 0x080151f4 + 8004b9e: 4618 mov r0, r3 + 8004ba0: 3708 adds r7, #8 + 8004ba2: 46bd mov sp, r7 + 8004ba4: bd80 pop {r7, pc} + 8004ba6: bf00 nop + 8004ba8: 080151a0 .word 0x080151a0 + 8004bac: 0801521c .word 0x0801521c + 8004bb0: 080151f4 .word 0x080151f4 -08004bb8 : +08004bb4 : #if !MEMP_OVERFLOW_CHECK memp_malloc(memp_t type) #else memp_malloc_fn(memp_t type, const char *file, const int line) #endif { - 8004bb8: b580 push {r7, lr} - 8004bba: b084 sub sp, #16 - 8004bbc: af00 add r7, sp, #0 - 8004bbe: 4603 mov r3, r0 - 8004bc0: 71fb strb r3, [r7, #7] + 8004bb4: b580 push {r7, lr} + 8004bb6: b084 sub sp, #16 + 8004bb8: af00 add r7, sp, #0 + 8004bba: 4603 mov r3, r0 + 8004bbc: 71fb strb r3, [r7, #7] void *memp; LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;); - 8004bc2: 79fb ldrb r3, [r7, #7] - 8004bc4: 2b08 cmp r3, #8 - 8004bc6: d908 bls.n 8004bda - 8004bc8: 4b0a ldr r3, [pc, #40] ; (8004bf4 ) - 8004bca: f240 1257 movw r2, #343 ; 0x157 - 8004bce: 490a ldr r1, [pc, #40] ; (8004bf8 ) - 8004bd0: 480a ldr r0, [pc, #40] ; (8004bfc ) - 8004bd2: f00b fbff bl 80103d4 - 8004bd6: 2300 movs r3, #0 - 8004bd8: e008 b.n 8004bec + 8004bbe: 79fb ldrb r3, [r7, #7] + 8004bc0: 2b08 cmp r3, #8 + 8004bc2: d908 bls.n 8004bd6 + 8004bc4: 4b0a ldr r3, [pc, #40] ; (8004bf0 ) + 8004bc6: f240 1257 movw r2, #343 ; 0x157 + 8004bca: 490a ldr r1, [pc, #40] ; (8004bf4 ) + 8004bcc: 480a ldr r0, [pc, #40] ; (8004bf8 ) + 8004bce: f00b fbff bl 80103d0 + 8004bd2: 2300 movs r3, #0 + 8004bd4: e008 b.n 8004be8 #if MEMP_OVERFLOW_CHECK >= 2 memp_overflow_check_all(); #endif /* MEMP_OVERFLOW_CHECK >= 2 */ #if !MEMP_OVERFLOW_CHECK memp = do_memp_malloc_pool(memp_pools[type]); - 8004bda: 79fb ldrb r3, [r7, #7] - 8004bdc: 4a08 ldr r2, [pc, #32] ; (8004c00 ) - 8004bde: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8004be2: 4618 mov r0, r3 - 8004be4: f7ff ff9c bl 8004b20 - 8004be8: 60f8 str r0, [r7, #12] + 8004bd6: 79fb ldrb r3, [r7, #7] + 8004bd8: 4a08 ldr r2, [pc, #32] ; (8004bfc ) + 8004bda: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8004bde: 4618 mov r0, r3 + 8004be0: f7ff ff9c bl 8004b1c + 8004be4: 60f8 str r0, [r7, #12] #else memp = do_memp_malloc_pool_fn(memp_pools[type], file, line); #endif return memp; - 8004bea: 68fb ldr r3, [r7, #12] + 8004be6: 68fb ldr r3, [r7, #12] } - 8004bec: 4618 mov r0, r3 - 8004bee: 3710 adds r7, #16 - 8004bf0: 46bd mov sp, r7 - 8004bf2: bd80 pop {r7, pc} - 8004bf4: 080151a0 .word 0x080151a0 - 8004bf8: 08015230 .word 0x08015230 - 8004bfc: 080151f4 .word 0x080151f4 - 8004c00: 08017d68 .word 0x08017d68 + 8004be8: 4618 mov r0, r3 + 8004bea: 3710 adds r7, #16 + 8004bec: 46bd mov sp, r7 + 8004bee: bd80 pop {r7, pc} + 8004bf0: 080151a0 .word 0x080151a0 + 8004bf4: 08015230 .word 0x08015230 + 8004bf8: 080151f4 .word 0x080151f4 + 8004bfc: 08017d68 .word 0x08017d68 -08004c04 : +08004c00 : static void do_memp_free_pool(const struct memp_desc *desc, void *mem) { - 8004c04: b580 push {r7, lr} - 8004c06: b084 sub sp, #16 - 8004c08: af00 add r7, sp, #0 - 8004c0a: 6078 str r0, [r7, #4] - 8004c0c: 6039 str r1, [r7, #0] + 8004c00: b580 push {r7, lr} + 8004c02: b084 sub sp, #16 + 8004c04: af00 add r7, sp, #0 + 8004c06: 6078 str r0, [r7, #4] + 8004c08: 6039 str r1, [r7, #0] struct memp *memp; SYS_ARCH_DECL_PROTECT(old_level); LWIP_ASSERT("memp_free: mem properly aligned", - 8004c0e: 683b ldr r3, [r7, #0] - 8004c10: f003 0303 and.w r3, r3, #3 - 8004c14: 2b00 cmp r3, #0 - 8004c16: d006 beq.n 8004c26 - 8004c18: 4b0a ldr r3, [pc, #40] ; (8004c44 ) - 8004c1a: f44f 72b6 mov.w r2, #364 ; 0x16c - 8004c1e: 490a ldr r1, [pc, #40] ; (8004c48 ) - 8004c20: 480a ldr r0, [pc, #40] ; (8004c4c ) - 8004c22: f00b fbd7 bl 80103d4 + 8004c0a: 683b ldr r3, [r7, #0] + 8004c0c: f003 0303 and.w r3, r3, #3 + 8004c10: 2b00 cmp r3, #0 + 8004c12: d006 beq.n 8004c22 + 8004c14: 4b0a ldr r3, [pc, #40] ; (8004c40 ) + 8004c16: f44f 72b6 mov.w r2, #364 ; 0x16c + 8004c1a: 490a ldr r1, [pc, #40] ; (8004c44 ) + 8004c1c: 480a ldr r0, [pc, #40] ; (8004c48 ) + 8004c1e: f00b fbd7 bl 80103d0 ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0); /* cast through void* to get rid of alignment warnings */ memp = (struct memp *)(void *)((u8_t *)mem - MEMP_SIZE); - 8004c26: 683b ldr r3, [r7, #0] - 8004c28: 60fb str r3, [r7, #12] + 8004c22: 683b ldr r3, [r7, #0] + 8004c24: 60fb str r3, [r7, #12] #if MEMP_MEM_MALLOC LWIP_UNUSED_ARG(desc); SYS_ARCH_UNPROTECT(old_level); mem_free(memp); #else /* MEMP_MEM_MALLOC */ memp->next = *desc->tab; - 8004c2a: 687b ldr r3, [r7, #4] - 8004c2c: 689b ldr r3, [r3, #8] - 8004c2e: 681a ldr r2, [r3, #0] - 8004c30: 68fb ldr r3, [r7, #12] - 8004c32: 601a str r2, [r3, #0] + 8004c26: 687b ldr r3, [r7, #4] + 8004c28: 689b ldr r3, [r3, #8] + 8004c2a: 681a ldr r2, [r3, #0] + 8004c2c: 68fb ldr r3, [r7, #12] + 8004c2e: 601a str r2, [r3, #0] *desc->tab = memp; - 8004c34: 687b ldr r3, [r7, #4] - 8004c36: 689b ldr r3, [r3, #8] - 8004c38: 68fa ldr r2, [r7, #12] - 8004c3a: 601a str r2, [r3, #0] + 8004c30: 687b ldr r3, [r7, #4] + 8004c32: 689b ldr r3, [r3, #8] + 8004c34: 68fa ldr r2, [r7, #12] + 8004c36: 601a str r2, [r3, #0] LWIP_ASSERT("memp sanity", memp_sanity(desc)); #endif /* MEMP_SANITY_CHECK */ SYS_ARCH_UNPROTECT(old_level); #endif /* !MEMP_MEM_MALLOC */ } - 8004c3c: bf00 nop - 8004c3e: 3710 adds r7, #16 - 8004c40: 46bd mov sp, r7 - 8004c42: bd80 pop {r7, pc} - 8004c44: 080151a0 .word 0x080151a0 - 8004c48: 08015250 .word 0x08015250 - 8004c4c: 080151f4 .word 0x080151f4 + 8004c38: bf00 nop + 8004c3a: 3710 adds r7, #16 + 8004c3c: 46bd mov sp, r7 + 8004c3e: bd80 pop {r7, pc} + 8004c40: 080151a0 .word 0x080151a0 + 8004c44: 08015250 .word 0x08015250 + 8004c48: 080151f4 .word 0x080151f4 -08004c50 : +08004c4c : * @param desc the pool where to put mem * @param mem the memp element to free */ void memp_free_pool(const struct memp_desc *desc, void *mem) { - 8004c50: b580 push {r7, lr} - 8004c52: b082 sub sp, #8 - 8004c54: af00 add r7, sp, #0 - 8004c56: 6078 str r0, [r7, #4] - 8004c58: 6039 str r1, [r7, #0] + 8004c4c: b580 push {r7, lr} + 8004c4e: b082 sub sp, #8 + 8004c50: af00 add r7, sp, #0 + 8004c52: 6078 str r0, [r7, #4] + 8004c54: 6039 str r1, [r7, #0] LWIP_ASSERT("invalid pool desc", desc != NULL); - 8004c5a: 687b ldr r3, [r7, #4] - 8004c5c: 2b00 cmp r3, #0 - 8004c5e: d106 bne.n 8004c6e - 8004c60: 4b0a ldr r3, [pc, #40] ; (8004c8c ) - 8004c62: f240 1295 movw r2, #405 ; 0x195 - 8004c66: 490a ldr r1, [pc, #40] ; (8004c90 ) - 8004c68: 480a ldr r0, [pc, #40] ; (8004c94 ) - 8004c6a: f00b fbb3 bl 80103d4 + 8004c56: 687b ldr r3, [r7, #4] + 8004c58: 2b00 cmp r3, #0 + 8004c5a: d106 bne.n 8004c6a + 8004c5c: 4b0a ldr r3, [pc, #40] ; (8004c88 ) + 8004c5e: f240 1295 movw r2, #405 ; 0x195 + 8004c62: 490a ldr r1, [pc, #40] ; (8004c8c ) + 8004c64: 480a ldr r0, [pc, #40] ; (8004c90 ) + 8004c66: f00b fbb3 bl 80103d0 if ((desc == NULL) || (mem == NULL)) { - 8004c6e: 687b ldr r3, [r7, #4] - 8004c70: 2b00 cmp r3, #0 - 8004c72: d007 beq.n 8004c84 - 8004c74: 683b ldr r3, [r7, #0] - 8004c76: 2b00 cmp r3, #0 - 8004c78: d004 beq.n 8004c84 + 8004c6a: 687b ldr r3, [r7, #4] + 8004c6c: 2b00 cmp r3, #0 + 8004c6e: d007 beq.n 8004c80 + 8004c70: 683b ldr r3, [r7, #0] + 8004c72: 2b00 cmp r3, #0 + 8004c74: d004 beq.n 8004c80 return; } do_memp_free_pool(desc, mem); - 8004c7a: 6839 ldr r1, [r7, #0] - 8004c7c: 6878 ldr r0, [r7, #4] - 8004c7e: f7ff ffc1 bl 8004c04 - 8004c82: e000 b.n 8004c86 + 8004c76: 6839 ldr r1, [r7, #0] + 8004c78: 6878 ldr r0, [r7, #4] + 8004c7a: f7ff ffc1 bl 8004c00 + 8004c7e: e000 b.n 8004c82 return; - 8004c84: bf00 nop + 8004c80: bf00 nop } - 8004c86: 3708 adds r7, #8 - 8004c88: 46bd mov sp, r7 - 8004c8a: bd80 pop {r7, pc} - 8004c8c: 080151a0 .word 0x080151a0 - 8004c90: 0801521c .word 0x0801521c - 8004c94: 080151f4 .word 0x080151f4 + 8004c82: 3708 adds r7, #8 + 8004c84: 46bd mov sp, r7 + 8004c86: bd80 pop {r7, pc} + 8004c88: 080151a0 .word 0x080151a0 + 8004c8c: 0801521c .word 0x0801521c + 8004c90: 080151f4 .word 0x080151f4 -08004c98 : +08004c94 : * @param type the pool where to put mem * @param mem the memp element to free */ void memp_free(memp_t type, void *mem) { - 8004c98: b580 push {r7, lr} - 8004c9a: b082 sub sp, #8 - 8004c9c: af00 add r7, sp, #0 - 8004c9e: 4603 mov r3, r0 - 8004ca0: 6039 str r1, [r7, #0] - 8004ca2: 71fb strb r3, [r7, #7] + 8004c94: b580 push {r7, lr} + 8004c96: b082 sub sp, #8 + 8004c98: af00 add r7, sp, #0 + 8004c9a: 4603 mov r3, r0 + 8004c9c: 6039 str r1, [r7, #0] + 8004c9e: 71fb strb r3, [r7, #7] #ifdef LWIP_HOOK_MEMP_AVAILABLE struct memp *old_first; #endif LWIP_ERROR("memp_free: type < MEMP_MAX", (type < MEMP_MAX), return;); - 8004ca4: 79fb ldrb r3, [r7, #7] - 8004ca6: 2b08 cmp r3, #8 - 8004ca8: d907 bls.n 8004cba - 8004caa: 4b0c ldr r3, [pc, #48] ; (8004cdc ) - 8004cac: f44f 72d5 mov.w r2, #426 ; 0x1aa - 8004cb0: 490b ldr r1, [pc, #44] ; (8004ce0 ) - 8004cb2: 480c ldr r0, [pc, #48] ; (8004ce4 ) - 8004cb4: f00b fb8e bl 80103d4 - 8004cb8: e00c b.n 8004cd4 + 8004ca0: 79fb ldrb r3, [r7, #7] + 8004ca2: 2b08 cmp r3, #8 + 8004ca4: d907 bls.n 8004cb6 + 8004ca6: 4b0c ldr r3, [pc, #48] ; (8004cd8 ) + 8004ca8: f44f 72d5 mov.w r2, #426 ; 0x1aa + 8004cac: 490b ldr r1, [pc, #44] ; (8004cdc ) + 8004cae: 480c ldr r0, [pc, #48] ; (8004ce0 ) + 8004cb0: f00b fb8e bl 80103d0 + 8004cb4: e00c b.n 8004cd0 if (mem == NULL) { - 8004cba: 683b ldr r3, [r7, #0] - 8004cbc: 2b00 cmp r3, #0 - 8004cbe: d008 beq.n 8004cd2 + 8004cb6: 683b ldr r3, [r7, #0] + 8004cb8: 2b00 cmp r3, #0 + 8004cba: d008 beq.n 8004cce #ifdef LWIP_HOOK_MEMP_AVAILABLE old_first = *memp_pools[type]->tab; #endif do_memp_free_pool(memp_pools[type], mem); - 8004cc0: 79fb ldrb r3, [r7, #7] - 8004cc2: 4a09 ldr r2, [pc, #36] ; (8004ce8 ) - 8004cc4: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8004cc8: 6839 ldr r1, [r7, #0] - 8004cca: 4618 mov r0, r3 - 8004ccc: f7ff ff9a bl 8004c04 - 8004cd0: e000 b.n 8004cd4 + 8004cbc: 79fb ldrb r3, [r7, #7] + 8004cbe: 4a09 ldr r2, [pc, #36] ; (8004ce4 ) + 8004cc0: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8004cc4: 6839 ldr r1, [r7, #0] + 8004cc6: 4618 mov r0, r3 + 8004cc8: f7ff ff9a bl 8004c00 + 8004ccc: e000 b.n 8004cd0 return; - 8004cd2: bf00 nop + 8004cce: bf00 nop #ifdef LWIP_HOOK_MEMP_AVAILABLE if (old_first == NULL) { LWIP_HOOK_MEMP_AVAILABLE(type); } #endif } - 8004cd4: 3708 adds r7, #8 - 8004cd6: 46bd mov sp, r7 - 8004cd8: bd80 pop {r7, pc} - 8004cda: bf00 nop - 8004cdc: 080151a0 .word 0x080151a0 - 8004ce0: 08015270 .word 0x08015270 - 8004ce4: 080151f4 .word 0x080151f4 - 8004ce8: 08017d68 .word 0x08017d68 + 8004cd0: 3708 adds r7, #8 + 8004cd2: 46bd mov sp, r7 + 8004cd4: bd80 pop {r7, pc} + 8004cd6: bf00 nop + 8004cd8: 080151a0 .word 0x080151a0 + 8004cdc: 08015270 .word 0x08015270 + 8004ce0: 080151f4 .word 0x080151f4 + 8004ce4: 08017d68 .word 0x08017d68 -08004cec : +08004ce8 : } #endif /* LWIP_HAVE_LOOPIF */ void netif_init(void) { - 8004cec: b480 push {r7} - 8004cee: af00 add r7, sp, #0 + 8004ce8: b480 push {r7} + 8004cea: af00 add r7, sp, #0 netif_set_link_up(&loop_netif); netif_set_up(&loop_netif); #endif /* LWIP_HAVE_LOOPIF */ } - 8004cf0: bf00 nop - 8004cf2: 46bd mov sp, r7 - 8004cf4: f85d 7b04 ldr.w r7, [sp], #4 - 8004cf8: 4770 bx lr + 8004cec: bf00 nop + 8004cee: 46bd mov sp, r7 + 8004cf0: f85d 7b04 ldr.w r7, [sp], #4 + 8004cf4: 4770 bx lr ... -08004cfc : +08004cf8 : netif_add(struct netif *netif, #if LWIP_IPV4 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, #endif /* LWIP_IPV4 */ void *state, netif_init_fn init, netif_input_fn input) { - 8004cfc: b580 push {r7, lr} - 8004cfe: b086 sub sp, #24 - 8004d00: af00 add r7, sp, #0 - 8004d02: 60f8 str r0, [r7, #12] - 8004d04: 60b9 str r1, [r7, #8] - 8004d06: 607a str r2, [r7, #4] - 8004d08: 603b str r3, [r7, #0] + 8004cf8: b580 push {r7, lr} + 8004cfa: b086 sub sp, #24 + 8004cfc: af00 add r7, sp, #0 + 8004cfe: 60f8 str r0, [r7, #12] + 8004d00: 60b9 str r1, [r7, #8] + 8004d02: 607a str r2, [r7, #4] + 8004d04: 603b str r3, [r7, #0] LWIP_ASSERT("single netif already set", 0); return NULL; } #endif LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL); - 8004d0a: 68fb ldr r3, [r7, #12] - 8004d0c: 2b00 cmp r3, #0 - 8004d0e: d108 bne.n 8004d22 - 8004d10: 4b5b ldr r3, [pc, #364] ; (8004e80 ) - 8004d12: f240 1227 movw r2, #295 ; 0x127 - 8004d16: 495b ldr r1, [pc, #364] ; (8004e84 ) - 8004d18: 485b ldr r0, [pc, #364] ; (8004e88 ) - 8004d1a: f00b fb5b bl 80103d4 - 8004d1e: 2300 movs r3, #0 - 8004d20: e0a9 b.n 8004e76 + 8004d06: 68fb ldr r3, [r7, #12] + 8004d08: 2b00 cmp r3, #0 + 8004d0a: d108 bne.n 8004d1e + 8004d0c: 4b5b ldr r3, [pc, #364] ; (8004e7c ) + 8004d0e: f240 1227 movw r2, #295 ; 0x127 + 8004d12: 495b ldr r1, [pc, #364] ; (8004e80 ) + 8004d14: 485b ldr r0, [pc, #364] ; (8004e84 ) + 8004d16: f00b fb5b bl 80103d0 + 8004d1a: 2300 movs r3, #0 + 8004d1c: e0a9 b.n 8004e72 LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL); - 8004d22: 6a7b ldr r3, [r7, #36] ; 0x24 - 8004d24: 2b00 cmp r3, #0 - 8004d26: d108 bne.n 8004d3a - 8004d28: 4b55 ldr r3, [pc, #340] ; (8004e80 ) - 8004d2a: f44f 7294 mov.w r2, #296 ; 0x128 - 8004d2e: 4957 ldr r1, [pc, #348] ; (8004e8c ) - 8004d30: 4855 ldr r0, [pc, #340] ; (8004e88 ) - 8004d32: f00b fb4f bl 80103d4 - 8004d36: 2300 movs r3, #0 - 8004d38: e09d b.n 8004e76 + 8004d1e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8004d20: 2b00 cmp r3, #0 + 8004d22: d108 bne.n 8004d36 + 8004d24: 4b55 ldr r3, [pc, #340] ; (8004e7c ) + 8004d26: f44f 7294 mov.w r2, #296 ; 0x128 + 8004d2a: 4957 ldr r1, [pc, #348] ; (8004e88 ) + 8004d2c: 4855 ldr r0, [pc, #340] ; (8004e84 ) + 8004d2e: f00b fb4f bl 80103d0 + 8004d32: 2300 movs r3, #0 + 8004d34: e09d b.n 8004e72 #if LWIP_IPV4 if (ipaddr == NULL) { - 8004d3a: 68bb ldr r3, [r7, #8] - 8004d3c: 2b00 cmp r3, #0 - 8004d3e: d101 bne.n 8004d44 + 8004d36: 68bb ldr r3, [r7, #8] + 8004d38: 2b00 cmp r3, #0 + 8004d3a: d101 bne.n 8004d40 ipaddr = ip_2_ip4(IP4_ADDR_ANY); - 8004d40: 4b53 ldr r3, [pc, #332] ; (8004e90 ) - 8004d42: 60bb str r3, [r7, #8] + 8004d3c: 4b53 ldr r3, [pc, #332] ; (8004e8c ) + 8004d3e: 60bb str r3, [r7, #8] } if (netmask == NULL) { - 8004d44: 687b ldr r3, [r7, #4] - 8004d46: 2b00 cmp r3, #0 - 8004d48: d101 bne.n 8004d4e + 8004d40: 687b ldr r3, [r7, #4] + 8004d42: 2b00 cmp r3, #0 + 8004d44: d101 bne.n 8004d4a netmask = ip_2_ip4(IP4_ADDR_ANY); - 8004d4a: 4b51 ldr r3, [pc, #324] ; (8004e90 ) - 8004d4c: 607b str r3, [r7, #4] + 8004d46: 4b51 ldr r3, [pc, #324] ; (8004e8c ) + 8004d48: 607b str r3, [r7, #4] } if (gw == NULL) { - 8004d4e: 683b ldr r3, [r7, #0] - 8004d50: 2b00 cmp r3, #0 - 8004d52: d101 bne.n 8004d58 + 8004d4a: 683b ldr r3, [r7, #0] + 8004d4c: 2b00 cmp r3, #0 + 8004d4e: d101 bne.n 8004d54 gw = ip_2_ip4(IP4_ADDR_ANY); - 8004d54: 4b4e ldr r3, [pc, #312] ; (8004e90 ) - 8004d56: 603b str r3, [r7, #0] + 8004d50: 4b4e ldr r3, [pc, #312] ; (8004e8c ) + 8004d52: 603b str r3, [r7, #0] } /* reset new interface configuration state */ ip_addr_set_zero_ip4(&netif->ip_addr); - 8004d58: 68fb ldr r3, [r7, #12] - 8004d5a: 2200 movs r2, #0 - 8004d5c: 605a str r2, [r3, #4] + 8004d54: 68fb ldr r3, [r7, #12] + 8004d56: 2200 movs r2, #0 + 8004d58: 605a str r2, [r3, #4] ip_addr_set_zero_ip4(&netif->netmask); - 8004d5e: 68fb ldr r3, [r7, #12] - 8004d60: 2200 movs r2, #0 - 8004d62: 609a str r2, [r3, #8] + 8004d5a: 68fb ldr r3, [r7, #12] + 8004d5c: 2200 movs r2, #0 + 8004d5e: 609a str r2, [r3, #8] ip_addr_set_zero_ip4(&netif->gw); - 8004d64: 68fb ldr r3, [r7, #12] - 8004d66: 2200 movs r2, #0 - 8004d68: 60da str r2, [r3, #12] + 8004d60: 68fb ldr r3, [r7, #12] + 8004d62: 2200 movs r2, #0 + 8004d64: 60da str r2, [r3, #12] netif->output = netif_null_output_ip4; - 8004d6a: 68fb ldr r3, [r7, #12] - 8004d6c: 4a49 ldr r2, [pc, #292] ; (8004e94 ) - 8004d6e: 615a str r2, [r3, #20] + 8004d66: 68fb ldr r3, [r7, #12] + 8004d68: 4a49 ldr r2, [pc, #292] ; (8004e90 ) + 8004d6a: 615a str r2, [r3, #20] #endif /* LWIP_IPV6_ADDRESS_LIFETIMES */ } netif->output_ip6 = netif_null_output_ip6; #endif /* LWIP_IPV6 */ NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_ENABLE_ALL); netif->mtu = 0; - 8004d70: 68fb ldr r3, [r7, #12] - 8004d72: 2200 movs r2, #0 - 8004d74: 851a strh r2, [r3, #40] ; 0x28 + 8004d6c: 68fb ldr r3, [r7, #12] + 8004d6e: 2200 movs r2, #0 + 8004d70: 851a strh r2, [r3, #40] ; 0x28 netif->flags = 0; - 8004d76: 68fb ldr r3, [r7, #12] - 8004d78: 2200 movs r2, #0 - 8004d7a: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 8004d72: 68fb ldr r3, [r7, #12] + 8004d74: 2200 movs r2, #0 + 8004d76: f883 2031 strb.w r2, [r3, #49] ; 0x31 #ifdef netif_get_client_data memset(netif->client_data, 0, sizeof(netif->client_data)); - 8004d7e: 68fb ldr r3, [r7, #12] - 8004d80: 3324 adds r3, #36 ; 0x24 - 8004d82: 2204 movs r2, #4 - 8004d84: 2100 movs r1, #0 - 8004d86: 4618 mov r0, r3 - 8004d88: f00b fb1c bl 80103c4 + 8004d7a: 68fb ldr r3, [r7, #12] + 8004d7c: 3324 adds r3, #36 ; 0x24 + 8004d7e: 2204 movs r2, #4 + 8004d80: 2100 movs r1, #0 + 8004d82: 4618 mov r0, r3 + 8004d84: f00b fb1c bl 80103c0 #endif /* LWIP_IPV6 */ #if LWIP_NETIF_STATUS_CALLBACK netif->status_callback = NULL; #endif /* LWIP_NETIF_STATUS_CALLBACK */ #if LWIP_NETIF_LINK_CALLBACK netif->link_callback = NULL; - 8004d8c: 68fb ldr r3, [r7, #12] - 8004d8e: 2200 movs r2, #0 - 8004d90: 61da str r2, [r3, #28] + 8004d88: 68fb ldr r3, [r7, #12] + 8004d8a: 2200 movs r2, #0 + 8004d8c: 61da str r2, [r3, #28] netif->loop_first = NULL; netif->loop_last = NULL; #endif /* ENABLE_LOOPBACK */ /* remember netif specific state information data */ netif->state = state; - 8004d92: 68fb ldr r3, [r7, #12] - 8004d94: 6a3a ldr r2, [r7, #32] - 8004d96: 621a str r2, [r3, #32] + 8004d8e: 68fb ldr r3, [r7, #12] + 8004d90: 6a3a ldr r2, [r7, #32] + 8004d92: 621a str r2, [r3, #32] netif->num = netif_num; - 8004d98: 4b3f ldr r3, [pc, #252] ; (8004e98 ) - 8004d9a: 781a ldrb r2, [r3, #0] - 8004d9c: 68fb ldr r3, [r7, #12] - 8004d9e: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 8004d94: 4b3f ldr r3, [pc, #252] ; (8004e94 ) + 8004d96: 781a ldrb r2, [r3, #0] + 8004d98: 68fb ldr r3, [r7, #12] + 8004d9a: f883 2034 strb.w r2, [r3, #52] ; 0x34 netif->input = input; - 8004da2: 68fb ldr r3, [r7, #12] - 8004da4: 6aba ldr r2, [r7, #40] ; 0x28 - 8004da6: 611a str r2, [r3, #16] + 8004d9e: 68fb ldr r3, [r7, #12] + 8004da0: 6aba ldr r2, [r7, #40] ; 0x28 + 8004da2: 611a str r2, [r3, #16] #if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS netif->loop_cnt_current = 0; #endif /* ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS */ #if LWIP_IPV4 netif_set_addr(netif, ipaddr, netmask, gw); - 8004da8: 683b ldr r3, [r7, #0] - 8004daa: 687a ldr r2, [r7, #4] - 8004dac: 68b9 ldr r1, [r7, #8] - 8004dae: 68f8 ldr r0, [r7, #12] - 8004db0: f000 f914 bl 8004fdc + 8004da4: 683b ldr r3, [r7, #0] + 8004da6: 687a ldr r2, [r7, #4] + 8004da8: 68b9 ldr r1, [r7, #8] + 8004daa: 68f8 ldr r0, [r7, #12] + 8004dac: f000 f914 bl 8004fd8 #endif /* LWIP_IPV4 */ /* call user specified initialization function for netif */ if (init(netif) != ERR_OK) { - 8004db4: 6a7b ldr r3, [r7, #36] ; 0x24 - 8004db6: 68f8 ldr r0, [r7, #12] - 8004db8: 4798 blx r3 - 8004dba: 4603 mov r3, r0 - 8004dbc: 2b00 cmp r3, #0 - 8004dbe: d001 beq.n 8004dc4 + 8004db0: 6a7b ldr r3, [r7, #36] ; 0x24 + 8004db2: 68f8 ldr r0, [r7, #12] + 8004db4: 4798 blx r3 + 8004db6: 4603 mov r3, r0 + 8004db8: 2b00 cmp r3, #0 + 8004dba: d001 beq.n 8004dc0 return NULL; - 8004dc0: 2300 movs r3, #0 - 8004dc2: e058 b.n 8004e76 + 8004dbc: 2300 movs r3, #0 + 8004dbe: e058 b.n 8004e72 */ { struct netif *netif2; int num_netifs; do { if (netif->num == 255) { - 8004dc4: 68fb ldr r3, [r7, #12] - 8004dc6: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8004dca: 2bff cmp r3, #255 ; 0xff - 8004dcc: d103 bne.n 8004dd6 + 8004dc0: 68fb ldr r3, [r7, #12] + 8004dc2: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8004dc6: 2bff cmp r3, #255 ; 0xff + 8004dc8: d103 bne.n 8004dd2 netif->num = 0; - 8004dce: 68fb ldr r3, [r7, #12] - 8004dd0: 2200 movs r2, #0 - 8004dd2: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 8004dca: 68fb ldr r3, [r7, #12] + 8004dcc: 2200 movs r2, #0 + 8004dce: f883 2034 strb.w r2, [r3, #52] ; 0x34 } num_netifs = 0; - 8004dd6: 2300 movs r3, #0 - 8004dd8: 613b str r3, [r7, #16] + 8004dd2: 2300 movs r3, #0 + 8004dd4: 613b str r3, [r7, #16] for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) { - 8004dda: 4b30 ldr r3, [pc, #192] ; (8004e9c ) - 8004ddc: 681b ldr r3, [r3, #0] - 8004dde: 617b str r3, [r7, #20] - 8004de0: e02b b.n 8004e3a + 8004dd6: 4b30 ldr r3, [pc, #192] ; (8004e98 ) + 8004dd8: 681b ldr r3, [r3, #0] + 8004dda: 617b str r3, [r7, #20] + 8004ddc: e02b b.n 8004e36 LWIP_ASSERT("netif already added", netif2 != netif); - 8004de2: 697a ldr r2, [r7, #20] - 8004de4: 68fb ldr r3, [r7, #12] - 8004de6: 429a cmp r2, r3 - 8004de8: d106 bne.n 8004df8 - 8004dea: 4b25 ldr r3, [pc, #148] ; (8004e80 ) - 8004dec: f240 128b movw r2, #395 ; 0x18b - 8004df0: 492b ldr r1, [pc, #172] ; (8004ea0 ) - 8004df2: 4825 ldr r0, [pc, #148] ; (8004e88 ) - 8004df4: f00b faee bl 80103d4 + 8004dde: 697a ldr r2, [r7, #20] + 8004de0: 68fb ldr r3, [r7, #12] + 8004de2: 429a cmp r2, r3 + 8004de4: d106 bne.n 8004df4 + 8004de6: 4b25 ldr r3, [pc, #148] ; (8004e7c ) + 8004de8: f240 128b movw r2, #395 ; 0x18b + 8004dec: 492b ldr r1, [pc, #172] ; (8004e9c ) + 8004dee: 4825 ldr r0, [pc, #148] ; (8004e84 ) + 8004df0: f00b faee bl 80103d0 num_netifs++; - 8004df8: 693b ldr r3, [r7, #16] - 8004dfa: 3301 adds r3, #1 - 8004dfc: 613b str r3, [r7, #16] + 8004df4: 693b ldr r3, [r7, #16] + 8004df6: 3301 adds r3, #1 + 8004df8: 613b str r3, [r7, #16] LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255); - 8004dfe: 693b ldr r3, [r7, #16] - 8004e00: 2bff cmp r3, #255 ; 0xff - 8004e02: dd06 ble.n 8004e12 - 8004e04: 4b1e ldr r3, [pc, #120] ; (8004e80 ) - 8004e06: f240 128d movw r2, #397 ; 0x18d - 8004e0a: 4926 ldr r1, [pc, #152] ; (8004ea4 ) - 8004e0c: 481e ldr r0, [pc, #120] ; (8004e88 ) - 8004e0e: f00b fae1 bl 80103d4 + 8004dfa: 693b ldr r3, [r7, #16] + 8004dfc: 2bff cmp r3, #255 ; 0xff + 8004dfe: dd06 ble.n 8004e0e + 8004e00: 4b1e ldr r3, [pc, #120] ; (8004e7c ) + 8004e02: f240 128d movw r2, #397 ; 0x18d + 8004e06: 4926 ldr r1, [pc, #152] ; (8004ea0 ) + 8004e08: 481e ldr r0, [pc, #120] ; (8004e84 ) + 8004e0a: f00b fae1 bl 80103d0 if (netif2->num == netif->num) { - 8004e12: 697b ldr r3, [r7, #20] - 8004e14: f893 2034 ldrb.w r2, [r3, #52] ; 0x34 - 8004e18: 68fb ldr r3, [r7, #12] - 8004e1a: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8004e1e: 429a cmp r2, r3 - 8004e20: d108 bne.n 8004e34 + 8004e0e: 697b ldr r3, [r7, #20] + 8004e10: f893 2034 ldrb.w r2, [r3, #52] ; 0x34 + 8004e14: 68fb ldr r3, [r7, #12] + 8004e16: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8004e1a: 429a cmp r2, r3 + 8004e1c: d108 bne.n 8004e30 netif->num++; - 8004e22: 68fb ldr r3, [r7, #12] - 8004e24: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8004e28: 3301 adds r3, #1 - 8004e2a: b2da uxtb r2, r3 - 8004e2c: 68fb ldr r3, [r7, #12] - 8004e2e: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 8004e1e: 68fb ldr r3, [r7, #12] + 8004e20: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8004e24: 3301 adds r3, #1 + 8004e26: b2da uxtb r2, r3 + 8004e28: 68fb ldr r3, [r7, #12] + 8004e2a: f883 2034 strb.w r2, [r3, #52] ; 0x34 break; - 8004e32: e005 b.n 8004e40 + 8004e2e: e005 b.n 8004e3c for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) { - 8004e34: 697b ldr r3, [r7, #20] - 8004e36: 681b ldr r3, [r3, #0] - 8004e38: 617b str r3, [r7, #20] - 8004e3a: 697b ldr r3, [r7, #20] - 8004e3c: 2b00 cmp r3, #0 - 8004e3e: d1d0 bne.n 8004de2 + 8004e30: 697b ldr r3, [r7, #20] + 8004e32: 681b ldr r3, [r3, #0] + 8004e34: 617b str r3, [r7, #20] + 8004e36: 697b ldr r3, [r7, #20] + 8004e38: 2b00 cmp r3, #0 + 8004e3a: d1d0 bne.n 8004dde } } } while (netif2 != NULL); - 8004e40: 697b ldr r3, [r7, #20] - 8004e42: 2b00 cmp r3, #0 - 8004e44: d1be bne.n 8004dc4 + 8004e3c: 697b ldr r3, [r7, #20] + 8004e3e: 2b00 cmp r3, #0 + 8004e40: d1be bne.n 8004dc0 } if (netif->num == 254) { - 8004e46: 68fb ldr r3, [r7, #12] - 8004e48: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8004e4c: 2bfe cmp r3, #254 ; 0xfe - 8004e4e: d103 bne.n 8004e58 + 8004e42: 68fb ldr r3, [r7, #12] + 8004e44: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8004e48: 2bfe cmp r3, #254 ; 0xfe + 8004e4a: d103 bne.n 8004e54 netif_num = 0; - 8004e50: 4b11 ldr r3, [pc, #68] ; (8004e98 ) - 8004e52: 2200 movs r2, #0 - 8004e54: 701a strb r2, [r3, #0] - 8004e56: e006 b.n 8004e66 + 8004e4c: 4b11 ldr r3, [pc, #68] ; (8004e94 ) + 8004e4e: 2200 movs r2, #0 + 8004e50: 701a strb r2, [r3, #0] + 8004e52: e006 b.n 8004e62 } else { netif_num = (u8_t)(netif->num + 1); - 8004e58: 68fb ldr r3, [r7, #12] - 8004e5a: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8004e5e: 3301 adds r3, #1 - 8004e60: b2da uxtb r2, r3 - 8004e62: 4b0d ldr r3, [pc, #52] ; (8004e98 ) - 8004e64: 701a strb r2, [r3, #0] + 8004e54: 68fb ldr r3, [r7, #12] + 8004e56: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8004e5a: 3301 adds r3, #1 + 8004e5c: b2da uxtb r2, r3 + 8004e5e: 4b0d ldr r3, [pc, #52] ; (8004e94 ) + 8004e60: 701a strb r2, [r3, #0] } /* add this netif to the list */ netif->next = netif_list; - 8004e66: 4b0d ldr r3, [pc, #52] ; (8004e9c ) - 8004e68: 681a ldr r2, [r3, #0] - 8004e6a: 68fb ldr r3, [r7, #12] - 8004e6c: 601a str r2, [r3, #0] + 8004e62: 4b0d ldr r3, [pc, #52] ; (8004e98 ) + 8004e64: 681a ldr r2, [r3, #0] + 8004e66: 68fb ldr r3, [r7, #12] + 8004e68: 601a str r2, [r3, #0] netif_list = netif; - 8004e6e: 4a0b ldr r2, [pc, #44] ; (8004e9c ) - 8004e70: 68fb ldr r3, [r7, #12] - 8004e72: 6013 str r3, [r2, #0] + 8004e6a: 4a0b ldr r2, [pc, #44] ; (8004e98 ) + 8004e6c: 68fb ldr r3, [r7, #12] + 8004e6e: 6013 str r3, [r2, #0] #endif /* LWIP_IPV4 */ LWIP_DEBUGF(NETIF_DEBUG, ("\n")); netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL); return netif; - 8004e74: 68fb ldr r3, [r7, #12] + 8004e70: 68fb ldr r3, [r7, #12] } - 8004e76: 4618 mov r0, r3 - 8004e78: 3718 adds r7, #24 - 8004e7a: 46bd mov sp, r7 - 8004e7c: bd80 pop {r7, pc} - 8004e7e: bf00 nop - 8004e80: 0801528c .word 0x0801528c - 8004e84: 08015320 .word 0x08015320 - 8004e88: 080152dc .word 0x080152dc - 8004e8c: 0801533c .word 0x0801533c - 8004e90: 08017ddc .word 0x08017ddc - 8004e94: 080052bf .word 0x080052bf - 8004e98: 20008bfc .word 0x20008bfc - 8004e9c: 20008bf4 .word 0x20008bf4 - 8004ea0: 08015360 .word 0x08015360 - 8004ea4: 08015374 .word 0x08015374 + 8004e72: 4618 mov r0, r3 + 8004e74: 3718 adds r7, #24 + 8004e76: 46bd mov sp, r7 + 8004e78: bd80 pop {r7, pc} + 8004e7a: bf00 nop + 8004e7c: 0801528c .word 0x0801528c + 8004e80: 08015320 .word 0x08015320 + 8004e84: 080152dc .word 0x080152dc + 8004e88: 0801533c .word 0x0801533c + 8004e8c: 08017ddc .word 0x08017ddc + 8004e90: 080052bb .word 0x080052bb + 8004e94: 20008bfc .word 0x20008bfc + 8004e98: 20008bf4 .word 0x20008bf4 + 8004e9c: 08015360 .word 0x08015360 + 8004ea0: 08015374 .word 0x08015374 -08004ea8 : +08004ea4 : static void netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) { - 8004ea8: b580 push {r7, lr} - 8004eaa: b082 sub sp, #8 - 8004eac: af00 add r7, sp, #0 - 8004eae: 6078 str r0, [r7, #4] - 8004eb0: 6039 str r1, [r7, #0] + 8004ea4: b580 push {r7, lr} + 8004ea6: b082 sub sp, #8 + 8004ea8: af00 add r7, sp, #0 + 8004eaa: 6078 str r0, [r7, #4] + 8004eac: 6039 str r1, [r7, #0] #if LWIP_TCP tcp_netif_ip_addr_changed(old_addr, new_addr); - 8004eb2: 6839 ldr r1, [r7, #0] - 8004eb4: 6878 ldr r0, [r7, #4] - 8004eb6: f002 fb57 bl 8007568 + 8004eae: 6839 ldr r1, [r7, #0] + 8004eb0: 6878 ldr r0, [r7, #4] + 8004eb2: f002 fb57 bl 8007564 #endif /* LWIP_TCP */ #if LWIP_UDP udp_netif_ip_addr_changed(old_addr, new_addr); - 8004eba: 6839 ldr r1, [r7, #0] - 8004ebc: 6878 ldr r0, [r7, #4] - 8004ebe: f006 ff3d bl 800bd3c + 8004eb6: 6839 ldr r1, [r7, #0] + 8004eb8: 6878 ldr r0, [r7, #4] + 8004eba: f006 ff3d bl 800bd38 #endif /* LWIP_UDP */ #if LWIP_RAW raw_netif_ip_addr_changed(old_addr, new_addr); #endif /* LWIP_RAW */ } - 8004ec2: bf00 nop - 8004ec4: 3708 adds r7, #8 - 8004ec6: 46bd mov sp, r7 - 8004ec8: bd80 pop {r7, pc} + 8004ebe: bf00 nop + 8004ec0: 3708 adds r7, #8 + 8004ec2: 46bd mov sp, r7 + 8004ec4: bd80 pop {r7, pc} ... -08004ecc : +08004ec8 : #if LWIP_IPV4 static int netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr) { - 8004ecc: b580 push {r7, lr} - 8004ece: b086 sub sp, #24 - 8004ed0: af00 add r7, sp, #0 - 8004ed2: 60f8 str r0, [r7, #12] - 8004ed4: 60b9 str r1, [r7, #8] - 8004ed6: 607a str r2, [r7, #4] + 8004ec8: b580 push {r7, lr} + 8004eca: b086 sub sp, #24 + 8004ecc: af00 add r7, sp, #0 + 8004ece: 60f8 str r0, [r7, #12] + 8004ed0: 60b9 str r1, [r7, #8] + 8004ed2: 607a str r2, [r7, #4] LWIP_ASSERT("invalid pointer", ipaddr != NULL); - 8004ed8: 68bb ldr r3, [r7, #8] - 8004eda: 2b00 cmp r3, #0 - 8004edc: d106 bne.n 8004eec - 8004ede: 4b1d ldr r3, [pc, #116] ; (8004f54 ) - 8004ee0: f240 12cb movw r2, #459 ; 0x1cb - 8004ee4: 491c ldr r1, [pc, #112] ; (8004f58 ) - 8004ee6: 481d ldr r0, [pc, #116] ; (8004f5c ) - 8004ee8: f00b fa74 bl 80103d4 + 8004ed4: 68bb ldr r3, [r7, #8] + 8004ed6: 2b00 cmp r3, #0 + 8004ed8: d106 bne.n 8004ee8 + 8004eda: 4b1d ldr r3, [pc, #116] ; (8004f50 ) + 8004edc: f240 12cb movw r2, #459 ; 0x1cb + 8004ee0: 491c ldr r1, [pc, #112] ; (8004f54 ) + 8004ee2: 481d ldr r0, [pc, #116] ; (8004f58 ) + 8004ee4: f00b fa74 bl 80103d0 LWIP_ASSERT("invalid pointer", old_addr != NULL); - 8004eec: 687b ldr r3, [r7, #4] - 8004eee: 2b00 cmp r3, #0 - 8004ef0: d106 bne.n 8004f00 - 8004ef2: 4b18 ldr r3, [pc, #96] ; (8004f54 ) - 8004ef4: f44f 72e6 mov.w r2, #460 ; 0x1cc - 8004ef8: 4917 ldr r1, [pc, #92] ; (8004f58 ) - 8004efa: 4818 ldr r0, [pc, #96] ; (8004f5c ) - 8004efc: f00b fa6a bl 80103d4 + 8004ee8: 687b ldr r3, [r7, #4] + 8004eea: 2b00 cmp r3, #0 + 8004eec: d106 bne.n 8004efc + 8004eee: 4b18 ldr r3, [pc, #96] ; (8004f50 ) + 8004ef0: f44f 72e6 mov.w r2, #460 ; 0x1cc + 8004ef4: 4917 ldr r1, [pc, #92] ; (8004f54 ) + 8004ef6: 4818 ldr r0, [pc, #96] ; (8004f58 ) + 8004ef8: f00b fa6a bl 80103d0 /* address is actually being changed? */ if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) { - 8004f00: 68bb ldr r3, [r7, #8] - 8004f02: 681a ldr r2, [r3, #0] - 8004f04: 68fb ldr r3, [r7, #12] - 8004f06: 3304 adds r3, #4 - 8004f08: 681b ldr r3, [r3, #0] - 8004f0a: 429a cmp r2, r3 - 8004f0c: d01c beq.n 8004f48 + 8004efc: 68bb ldr r3, [r7, #8] + 8004efe: 681a ldr r2, [r3, #0] + 8004f00: 68fb ldr r3, [r7, #12] + 8004f02: 3304 adds r3, #4 + 8004f04: 681b ldr r3, [r3, #0] + 8004f06: 429a cmp r2, r3 + 8004f08: d01c beq.n 8004f44 ip_addr_t new_addr; *ip_2_ip4(&new_addr) = *ipaddr; - 8004f0e: 68bb ldr r3, [r7, #8] - 8004f10: 681b ldr r3, [r3, #0] - 8004f12: 617b str r3, [r7, #20] + 8004f0a: 68bb ldr r3, [r7, #8] + 8004f0c: 681b ldr r3, [r3, #0] + 8004f0e: 617b str r3, [r7, #20] IP_SET_TYPE_VAL(new_addr, IPADDR_TYPE_V4); ip_addr_copy(*old_addr, *netif_ip_addr4(netif)); - 8004f14: 68fb ldr r3, [r7, #12] - 8004f16: 3304 adds r3, #4 - 8004f18: 681a ldr r2, [r3, #0] - 8004f1a: 687b ldr r3, [r7, #4] - 8004f1c: 601a str r2, [r3, #0] + 8004f10: 68fb ldr r3, [r7, #12] + 8004f12: 3304 adds r3, #4 + 8004f14: 681a ldr r2, [r3, #0] + 8004f16: 687b ldr r3, [r7, #4] + 8004f18: 601a str r2, [r3, #0] LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: netif address being changed\n")); netif_do_ip_addr_changed(old_addr, &new_addr); - 8004f1e: f107 0314 add.w r3, r7, #20 - 8004f22: 4619 mov r1, r3 - 8004f24: 6878 ldr r0, [r7, #4] - 8004f26: f7ff ffbf bl 8004ea8 + 8004f1a: f107 0314 add.w r3, r7, #20 + 8004f1e: 4619 mov r1, r3 + 8004f20: 6878 ldr r0, [r7, #4] + 8004f22: f7ff ffbf bl 8004ea4 mib2_remove_ip4(netif); mib2_remove_route_ip4(0, netif); /* set new IP address to netif */ ip4_addr_set(ip_2_ip4(&netif->ip_addr), ipaddr); - 8004f2a: 68bb ldr r3, [r7, #8] - 8004f2c: 2b00 cmp r3, #0 - 8004f2e: d002 beq.n 8004f36 - 8004f30: 68bb ldr r3, [r7, #8] - 8004f32: 681b ldr r3, [r3, #0] - 8004f34: e000 b.n 8004f38 - 8004f36: 2300 movs r3, #0 - 8004f38: 68fa ldr r2, [r7, #12] - 8004f3a: 6053 str r3, [r2, #4] + 8004f26: 68bb ldr r3, [r7, #8] + 8004f28: 2b00 cmp r3, #0 + 8004f2a: d002 beq.n 8004f32 + 8004f2c: 68bb ldr r3, [r7, #8] + 8004f2e: 681b ldr r3, [r3, #0] + 8004f30: e000 b.n 8004f34 + 8004f32: 2300 movs r3, #0 + 8004f34: 68fa ldr r2, [r7, #12] + 8004f36: 6053 str r3, [r2, #4] IP_SET_TYPE_VAL(netif->ip_addr, IPADDR_TYPE_V4); mib2_add_ip4(netif); mib2_add_route_ip4(0, netif); netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4); - 8004f3c: 2101 movs r1, #1 - 8004f3e: 68f8 ldr r0, [r7, #12] - 8004f40: f000 f8d2 bl 80050e8 + 8004f38: 2101 movs r1, #1 + 8004f3a: 68f8 ldr r0, [r7, #12] + 8004f3c: f000 f8d2 bl 80050e4 NETIF_STATUS_CALLBACK(netif); return 1; /* address changed */ - 8004f44: 2301 movs r3, #1 - 8004f46: e000 b.n 8004f4a + 8004f40: 2301 movs r3, #1 + 8004f42: e000 b.n 8004f46 } return 0; /* address unchanged */ - 8004f48: 2300 movs r3, #0 + 8004f44: 2300 movs r3, #0 } - 8004f4a: 4618 mov r0, r3 - 8004f4c: 3718 adds r7, #24 - 8004f4e: 46bd mov sp, r7 - 8004f50: bd80 pop {r7, pc} - 8004f52: bf00 nop - 8004f54: 0801528c .word 0x0801528c - 8004f58: 080153a4 .word 0x080153a4 - 8004f5c: 080152dc .word 0x080152dc + 8004f46: 4618 mov r0, r3 + 8004f48: 3718 adds r7, #24 + 8004f4a: 46bd mov sp, r7 + 8004f4c: bd80 pop {r7, pc} + 8004f4e: bf00 nop + 8004f50: 0801528c .word 0x0801528c + 8004f54: 080153a4 .word 0x080153a4 + 8004f58: 080152dc .word 0x080152dc -08004f60 : +08004f5c : } } static int netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm) { - 8004f60: b480 push {r7} - 8004f62: b085 sub sp, #20 - 8004f64: af00 add r7, sp, #0 - 8004f66: 60f8 str r0, [r7, #12] - 8004f68: 60b9 str r1, [r7, #8] - 8004f6a: 607a str r2, [r7, #4] + 8004f5c: b480 push {r7} + 8004f5e: b085 sub sp, #20 + 8004f60: af00 add r7, sp, #0 + 8004f62: 60f8 str r0, [r7, #12] + 8004f64: 60b9 str r1, [r7, #8] + 8004f66: 607a str r2, [r7, #4] /* address is actually being changed? */ if (ip4_addr_cmp(netmask, netif_ip4_netmask(netif)) == 0) { - 8004f6c: 68bb ldr r3, [r7, #8] - 8004f6e: 681a ldr r2, [r3, #0] - 8004f70: 68fb ldr r3, [r7, #12] - 8004f72: 3308 adds r3, #8 - 8004f74: 681b ldr r3, [r3, #0] - 8004f76: 429a cmp r2, r3 - 8004f78: d00a beq.n 8004f90 + 8004f68: 68bb ldr r3, [r7, #8] + 8004f6a: 681a ldr r2, [r3, #0] + 8004f6c: 68fb ldr r3, [r7, #12] + 8004f6e: 3308 adds r3, #8 + 8004f70: 681b ldr r3, [r3, #0] + 8004f72: 429a cmp r2, r3 + 8004f74: d00a beq.n 8004f8c #else LWIP_UNUSED_ARG(old_nm); #endif mib2_remove_route_ip4(0, netif); /* set new netmask to netif */ ip4_addr_set(ip_2_ip4(&netif->netmask), netmask); - 8004f7a: 68bb ldr r3, [r7, #8] - 8004f7c: 2b00 cmp r3, #0 - 8004f7e: d002 beq.n 8004f86 - 8004f80: 68bb ldr r3, [r7, #8] - 8004f82: 681b ldr r3, [r3, #0] - 8004f84: e000 b.n 8004f88 - 8004f86: 2300 movs r3, #0 - 8004f88: 68fa ldr r2, [r7, #12] - 8004f8a: 6093 str r3, [r2, #8] + 8004f76: 68bb ldr r3, [r7, #8] + 8004f78: 2b00 cmp r3, #0 + 8004f7a: d002 beq.n 8004f82 + 8004f7c: 68bb ldr r3, [r7, #8] + 8004f7e: 681b ldr r3, [r3, #0] + 8004f80: e000 b.n 8004f84 + 8004f82: 2300 movs r3, #0 + 8004f84: 68fa ldr r2, [r7, #12] + 8004f86: 6093 str r3, [r2, #8] netif->name[0], netif->name[1], ip4_addr1_16(netif_ip4_netmask(netif)), ip4_addr2_16(netif_ip4_netmask(netif)), ip4_addr3_16(netif_ip4_netmask(netif)), ip4_addr4_16(netif_ip4_netmask(netif)))); return 1; /* netmask changed */ - 8004f8c: 2301 movs r3, #1 - 8004f8e: e000 b.n 8004f92 + 8004f88: 2301 movs r3, #1 + 8004f8a: e000 b.n 8004f8e } return 0; /* netmask unchanged */ - 8004f90: 2300 movs r3, #0 + 8004f8c: 2300 movs r3, #0 } - 8004f92: 4618 mov r0, r3 - 8004f94: 3714 adds r7, #20 - 8004f96: 46bd mov sp, r7 - 8004f98: f85d 7b04 ldr.w r7, [sp], #4 - 8004f9c: 4770 bx lr + 8004f8e: 4618 mov r0, r3 + 8004f90: 3714 adds r7, #20 + 8004f92: 46bd mov sp, r7 + 8004f94: f85d 7b04 ldr.w r7, [sp], #4 + 8004f98: 4770 bx lr -08004f9e : +08004f9a : } } static int netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw) { - 8004f9e: b480 push {r7} - 8004fa0: b085 sub sp, #20 - 8004fa2: af00 add r7, sp, #0 - 8004fa4: 60f8 str r0, [r7, #12] - 8004fa6: 60b9 str r1, [r7, #8] - 8004fa8: 607a str r2, [r7, #4] + 8004f9a: b480 push {r7} + 8004f9c: b085 sub sp, #20 + 8004f9e: af00 add r7, sp, #0 + 8004fa0: 60f8 str r0, [r7, #12] + 8004fa2: 60b9 str r1, [r7, #8] + 8004fa4: 607a str r2, [r7, #4] /* address is actually being changed? */ if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) { - 8004faa: 68bb ldr r3, [r7, #8] - 8004fac: 681a ldr r2, [r3, #0] - 8004fae: 68fb ldr r3, [r7, #12] - 8004fb0: 330c adds r3, #12 - 8004fb2: 681b ldr r3, [r3, #0] - 8004fb4: 429a cmp r2, r3 - 8004fb6: d00a beq.n 8004fce + 8004fa6: 68bb ldr r3, [r7, #8] + 8004fa8: 681a ldr r2, [r3, #0] + 8004faa: 68fb ldr r3, [r7, #12] + 8004fac: 330c adds r3, #12 + 8004fae: 681b ldr r3, [r3, #0] + 8004fb0: 429a cmp r2, r3 + 8004fb2: d00a beq.n 8004fca ip_addr_copy(*old_gw, *netif_ip_gw4(netif)); #else LWIP_UNUSED_ARG(old_gw); #endif ip4_addr_set(ip_2_ip4(&netif->gw), gw); - 8004fb8: 68bb ldr r3, [r7, #8] - 8004fba: 2b00 cmp r3, #0 - 8004fbc: d002 beq.n 8004fc4 - 8004fbe: 68bb ldr r3, [r7, #8] - 8004fc0: 681b ldr r3, [r3, #0] - 8004fc2: e000 b.n 8004fc6 - 8004fc4: 2300 movs r3, #0 - 8004fc6: 68fa ldr r2, [r7, #12] - 8004fc8: 60d3 str r3, [r2, #12] + 8004fb4: 68bb ldr r3, [r7, #8] + 8004fb6: 2b00 cmp r3, #0 + 8004fb8: d002 beq.n 8004fc0 + 8004fba: 68bb ldr r3, [r7, #8] + 8004fbc: 681b ldr r3, [r3, #0] + 8004fbe: e000 b.n 8004fc2 + 8004fc0: 2300 movs r3, #0 + 8004fc2: 68fa ldr r2, [r7, #12] + 8004fc4: 60d3 str r3, [r2, #12] netif->name[0], netif->name[1], ip4_addr1_16(netif_ip4_gw(netif)), ip4_addr2_16(netif_ip4_gw(netif)), ip4_addr3_16(netif_ip4_gw(netif)), ip4_addr4_16(netif_ip4_gw(netif)))); return 1; /* gateway changed */ - 8004fca: 2301 movs r3, #1 - 8004fcc: e000 b.n 8004fd0 + 8004fc6: 2301 movs r3, #1 + 8004fc8: e000 b.n 8004fcc } return 0; /* gateway unchanged */ - 8004fce: 2300 movs r3, #0 + 8004fca: 2300 movs r3, #0 } - 8004fd0: 4618 mov r0, r3 - 8004fd2: 3714 adds r7, #20 - 8004fd4: 46bd mov sp, r7 - 8004fd6: f85d 7b04 ldr.w r7, [sp], #4 - 8004fda: 4770 bx lr + 8004fcc: 4618 mov r0, r3 + 8004fce: 3714 adds r7, #20 + 8004fd0: 46bd mov sp, r7 + 8004fd2: f85d 7b04 ldr.w r7, [sp], #4 + 8004fd6: 4770 bx lr -08004fdc : +08004fd8 : * @param gw the new default gateway */ void netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw) { - 8004fdc: b580 push {r7, lr} - 8004fde: b088 sub sp, #32 - 8004fe0: af00 add r7, sp, #0 - 8004fe2: 60f8 str r0, [r7, #12] - 8004fe4: 60b9 str r1, [r7, #8] - 8004fe6: 607a str r2, [r7, #4] - 8004fe8: 603b str r3, [r7, #0] + 8004fd8: b580 push {r7, lr} + 8004fda: b088 sub sp, #32 + 8004fdc: af00 add r7, sp, #0 + 8004fde: 60f8 str r0, [r7, #12] + 8004fe0: 60b9 str r1, [r7, #8] + 8004fe2: 607a str r2, [r7, #4] + 8004fe4: 603b str r3, [r7, #0] ip_addr_t old_nm_val; ip_addr_t old_gw_val; ip_addr_t *old_nm = &old_nm_val; ip_addr_t *old_gw = &old_gw_val; #else ip_addr_t *old_nm = NULL; - 8004fea: 2300 movs r3, #0 - 8004fec: 61fb str r3, [r7, #28] + 8004fe6: 2300 movs r3, #0 + 8004fe8: 61fb str r3, [r7, #28] ip_addr_t *old_gw = NULL; - 8004fee: 2300 movs r3, #0 - 8004ff0: 61bb str r3, [r7, #24] + 8004fea: 2300 movs r3, #0 + 8004fec: 61bb str r3, [r7, #24] int remove; LWIP_ASSERT_CORE_LOCKED(); /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ if (ipaddr == NULL) { - 8004ff2: 68bb ldr r3, [r7, #8] - 8004ff4: 2b00 cmp r3, #0 - 8004ff6: d101 bne.n 8004ffc + 8004fee: 68bb ldr r3, [r7, #8] + 8004ff0: 2b00 cmp r3, #0 + 8004ff2: d101 bne.n 8004ff8 ipaddr = IP4_ADDR_ANY4; - 8004ff8: 4b1c ldr r3, [pc, #112] ; (800506c ) - 8004ffa: 60bb str r3, [r7, #8] + 8004ff4: 4b1c ldr r3, [pc, #112] ; (8005068 ) + 8004ff6: 60bb str r3, [r7, #8] } if (netmask == NULL) { - 8004ffc: 687b ldr r3, [r7, #4] - 8004ffe: 2b00 cmp r3, #0 - 8005000: d101 bne.n 8005006 + 8004ff8: 687b ldr r3, [r7, #4] + 8004ffa: 2b00 cmp r3, #0 + 8004ffc: d101 bne.n 8005002 netmask = IP4_ADDR_ANY4; - 8005002: 4b1a ldr r3, [pc, #104] ; (800506c ) - 8005004: 607b str r3, [r7, #4] + 8004ffe: 4b1a ldr r3, [pc, #104] ; (8005068 ) + 8005000: 607b str r3, [r7, #4] } if (gw == NULL) { - 8005006: 683b ldr r3, [r7, #0] - 8005008: 2b00 cmp r3, #0 - 800500a: d101 bne.n 8005010 + 8005002: 683b ldr r3, [r7, #0] + 8005004: 2b00 cmp r3, #0 + 8005006: d101 bne.n 800500c gw = IP4_ADDR_ANY4; - 800500c: 4b17 ldr r3, [pc, #92] ; (800506c ) - 800500e: 603b str r3, [r7, #0] + 8005008: 4b17 ldr r3, [pc, #92] ; (8005068 ) + 800500a: 603b str r3, [r7, #0] } remove = ip4_addr_isany(ipaddr); - 8005010: 68bb ldr r3, [r7, #8] - 8005012: 2b00 cmp r3, #0 - 8005014: d003 beq.n 800501e - 8005016: 68bb ldr r3, [r7, #8] - 8005018: 681b ldr r3, [r3, #0] - 800501a: 2b00 cmp r3, #0 - 800501c: d101 bne.n 8005022 - 800501e: 2301 movs r3, #1 - 8005020: e000 b.n 8005024 - 8005022: 2300 movs r3, #0 - 8005024: 617b str r3, [r7, #20] + 800500c: 68bb ldr r3, [r7, #8] + 800500e: 2b00 cmp r3, #0 + 8005010: d003 beq.n 800501a + 8005012: 68bb ldr r3, [r7, #8] + 8005014: 681b ldr r3, [r3, #0] + 8005016: 2b00 cmp r3, #0 + 8005018: d101 bne.n 800501e + 800501a: 2301 movs r3, #1 + 800501c: e000 b.n 8005020 + 800501e: 2300 movs r3, #0 + 8005020: 617b str r3, [r7, #20] if (remove) { - 8005026: 697b ldr r3, [r7, #20] - 8005028: 2b00 cmp r3, #0 - 800502a: d006 beq.n 800503a + 8005022: 697b ldr r3, [r7, #20] + 8005024: 2b00 cmp r3, #0 + 8005026: d006 beq.n 8005036 /* when removing an address, we have to remove it *before* changing netmask/gw to ensure that tcp RST segment can be sent correctly */ if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) { - 800502c: f107 0310 add.w r3, r7, #16 - 8005030: 461a mov r2, r3 - 8005032: 68b9 ldr r1, [r7, #8] - 8005034: 68f8 ldr r0, [r7, #12] - 8005036: f7ff ff49 bl 8004ecc + 8005028: f107 0310 add.w r3, r7, #16 + 800502c: 461a mov r2, r3 + 800502e: 68b9 ldr r1, [r7, #8] + 8005030: 68f8 ldr r0, [r7, #12] + 8005032: f7ff ff49 bl 8004ec8 change_reason |= LWIP_NSC_IPV4_ADDRESS_CHANGED; cb_args.ipv4_changed.old_address = &old_addr; #endif } } if (netif_do_set_netmask(netif, netmask, old_nm)) { - 800503a: 69fa ldr r2, [r7, #28] - 800503c: 6879 ldr r1, [r7, #4] - 800503e: 68f8 ldr r0, [r7, #12] - 8005040: f7ff ff8e bl 8004f60 + 8005036: 69fa ldr r2, [r7, #28] + 8005038: 6879 ldr r1, [r7, #4] + 800503a: 68f8 ldr r0, [r7, #12] + 800503c: f7ff ff8e bl 8004f5c #if LWIP_NETIF_EXT_STATUS_CALLBACK change_reason |= LWIP_NSC_IPV4_NETMASK_CHANGED; cb_args.ipv4_changed.old_netmask = old_nm; #endif } if (netif_do_set_gw(netif, gw, old_gw)) { - 8005044: 69ba ldr r2, [r7, #24] - 8005046: 6839 ldr r1, [r7, #0] - 8005048: 68f8 ldr r0, [r7, #12] - 800504a: f7ff ffa8 bl 8004f9e + 8005040: 69ba ldr r2, [r7, #24] + 8005042: 6839 ldr r1, [r7, #0] + 8005044: 68f8 ldr r0, [r7, #12] + 8005046: f7ff ffa8 bl 8004f9a #if LWIP_NETIF_EXT_STATUS_CALLBACK change_reason |= LWIP_NSC_IPV4_GATEWAY_CHANGED; cb_args.ipv4_changed.old_gw = old_gw; #endif } if (!remove) { - 800504e: 697b ldr r3, [r7, #20] - 8005050: 2b00 cmp r3, #0 - 8005052: d106 bne.n 8005062 + 800504a: 697b ldr r3, [r7, #20] + 800504c: 2b00 cmp r3, #0 + 800504e: d106 bne.n 800505e /* set ipaddr last to ensure netmask/gw have been set when status callback is called */ if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) { - 8005054: f107 0310 add.w r3, r7, #16 - 8005058: 461a mov r2, r3 - 800505a: 68b9 ldr r1, [r7, #8] - 800505c: 68f8 ldr r0, [r7, #12] - 800505e: f7ff ff35 bl 8004ecc + 8005050: f107 0310 add.w r3, r7, #16 + 8005054: 461a mov r2, r3 + 8005056: 68b9 ldr r1, [r7, #8] + 8005058: 68f8 ldr r0, [r7, #12] + 800505a: f7ff ff35 bl 8004ec8 if (change_reason != LWIP_NSC_NONE) { change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED; netif_invoke_ext_callback(netif, change_reason, &cb_args); } #endif } - 8005062: bf00 nop - 8005064: 3720 adds r7, #32 - 8005066: 46bd mov sp, r7 - 8005068: bd80 pop {r7, pc} - 800506a: bf00 nop - 800506c: 08017ddc .word 0x08017ddc + 800505e: bf00 nop + 8005060: 3720 adds r7, #32 + 8005062: 46bd mov sp, r7 + 8005064: bd80 pop {r7, pc} + 8005066: bf00 nop + 8005068: 08017ddc .word 0x08017ddc -08005070 : +0800506c : * * @param netif the default network interface */ void netif_set_default(struct netif *netif) { - 8005070: b480 push {r7} - 8005072: b083 sub sp, #12 - 8005074: af00 add r7, sp, #0 - 8005076: 6078 str r0, [r7, #4] + 800506c: b480 push {r7} + 800506e: b083 sub sp, #12 + 8005070: af00 add r7, sp, #0 + 8005072: 6078 str r0, [r7, #4] mib2_remove_route_ip4(1, netif); } else { /* install default route */ mib2_add_route_ip4(1, netif); } netif_default = netif; - 8005078: 4a04 ldr r2, [pc, #16] ; (800508c ) - 800507a: 687b ldr r3, [r7, #4] - 800507c: 6013 str r3, [r2, #0] + 8005074: 4a04 ldr r2, [pc, #16] ; (8005088 ) + 8005076: 687b ldr r3, [r7, #4] + 8005078: 6013 str r3, [r2, #0] LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n", netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\'')); } - 800507e: bf00 nop - 8005080: 370c adds r7, #12 - 8005082: 46bd mov sp, r7 - 8005084: f85d 7b04 ldr.w r7, [sp], #4 - 8005088: 4770 bx lr - 800508a: bf00 nop - 800508c: 20008bf8 .word 0x20008bf8 + 800507a: bf00 nop + 800507c: 370c adds r7, #12 + 800507e: 46bd mov sp, r7 + 8005080: f85d 7b04 ldr.w r7, [sp], #4 + 8005084: 4770 bx lr + 8005086: bf00 nop + 8005088: 20008bf8 .word 0x20008bf8 -08005090 : +0800508c : * Bring an interface up, available for processing * traffic. */ void netif_set_up(struct netif *netif) { - 8005090: b580 push {r7, lr} - 8005092: b082 sub sp, #8 - 8005094: af00 add r7, sp, #0 - 8005096: 6078 str r0, [r7, #4] + 800508c: b580 push {r7, lr} + 800508e: b082 sub sp, #8 + 8005090: af00 add r7, sp, #0 + 8005092: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif_set_up: invalid netif", netif != NULL, return); - 8005098: 687b ldr r3, [r7, #4] - 800509a: 2b00 cmp r3, #0 - 800509c: d107 bne.n 80050ae - 800509e: 4b0f ldr r3, [pc, #60] ; (80050dc ) - 80050a0: f44f 7254 mov.w r2, #848 ; 0x350 - 80050a4: 490e ldr r1, [pc, #56] ; (80050e0 ) - 80050a6: 480f ldr r0, [pc, #60] ; (80050e4 ) - 80050a8: f00b f994 bl 80103d4 - 80050ac: e013 b.n 80050d6 + 8005094: 687b ldr r3, [r7, #4] + 8005096: 2b00 cmp r3, #0 + 8005098: d107 bne.n 80050aa + 800509a: 4b0f ldr r3, [pc, #60] ; (80050d8 ) + 800509c: f44f 7254 mov.w r2, #848 ; 0x350 + 80050a0: 490e ldr r1, [pc, #56] ; (80050dc ) + 80050a2: 480f ldr r0, [pc, #60] ; (80050e0 ) + 80050a4: f00b f994 bl 80103d0 + 80050a8: e013 b.n 80050d2 if (!(netif->flags & NETIF_FLAG_UP)) { - 80050ae: 687b ldr r3, [r7, #4] - 80050b0: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80050b4: f003 0301 and.w r3, r3, #1 - 80050b8: 2b00 cmp r3, #0 - 80050ba: d10c bne.n 80050d6 + 80050aa: 687b ldr r3, [r7, #4] + 80050ac: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80050b0: f003 0301 and.w r3, r3, #1 + 80050b4: 2b00 cmp r3, #0 + 80050b6: d10c bne.n 80050d2 netif_set_flags(netif, NETIF_FLAG_UP); - 80050bc: 687b ldr r3, [r7, #4] - 80050be: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80050c2: f043 0301 orr.w r3, r3, #1 - 80050c6: b2da uxtb r2, r3 - 80050c8: 687b ldr r3, [r7, #4] - 80050ca: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 80050b8: 687b ldr r3, [r7, #4] + 80050ba: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80050be: f043 0301 orr.w r3, r3, #1 + 80050c2: b2da uxtb r2, r3 + 80050c4: 687b ldr r3, [r7, #4] + 80050c6: f883 2031 strb.w r2, [r3, #49] ; 0x31 args.status_changed.state = 1; netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args); } #endif netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6); - 80050ce: 2103 movs r1, #3 - 80050d0: 6878 ldr r0, [r7, #4] - 80050d2: f000 f809 bl 80050e8 + 80050ca: 2103 movs r1, #3 + 80050cc: 6878 ldr r0, [r7, #4] + 80050ce: f000 f809 bl 80050e4 #if LWIP_IPV6 nd6_restart_netif(netif); #endif /* LWIP_IPV6 */ } } - 80050d6: 3708 adds r7, #8 - 80050d8: 46bd mov sp, r7 - 80050da: bd80 pop {r7, pc} - 80050dc: 0801528c .word 0x0801528c - 80050e0: 08015414 .word 0x08015414 - 80050e4: 080152dc .word 0x080152dc + 80050d2: 3708 adds r7, #8 + 80050d4: 46bd mov sp, r7 + 80050d6: bd80 pop {r7, pc} + 80050d8: 0801528c .word 0x0801528c + 80050dc: 08015414 .word 0x08015414 + 80050e0: 080152dc .word 0x080152dc -080050e8 : +080050e4 : /** Send ARP/IGMP/MLD/RS events, e.g. on link-up/netif-up or addr-change */ static void netif_issue_reports(struct netif *netif, u8_t report_type) { - 80050e8: b580 push {r7, lr} - 80050ea: b082 sub sp, #8 - 80050ec: af00 add r7, sp, #0 - 80050ee: 6078 str r0, [r7, #4] - 80050f0: 460b mov r3, r1 - 80050f2: 70fb strb r3, [r7, #3] + 80050e4: b580 push {r7, lr} + 80050e6: b082 sub sp, #8 + 80050e8: af00 add r7, sp, #0 + 80050ea: 6078 str r0, [r7, #4] + 80050ec: 460b mov r3, r1 + 80050ee: 70fb strb r3, [r7, #3] LWIP_ASSERT("netif_issue_reports: invalid netif", netif != NULL); - 80050f4: 687b ldr r3, [r7, #4] - 80050f6: 2b00 cmp r3, #0 - 80050f8: d106 bne.n 8005108 - 80050fa: 4b18 ldr r3, [pc, #96] ; (800515c ) - 80050fc: f240 326d movw r2, #877 ; 0x36d - 8005100: 4917 ldr r1, [pc, #92] ; (8005160 ) - 8005102: 4818 ldr r0, [pc, #96] ; (8005164 ) - 8005104: f00b f966 bl 80103d4 + 80050f0: 687b ldr r3, [r7, #4] + 80050f2: 2b00 cmp r3, #0 + 80050f4: d106 bne.n 8005104 + 80050f6: 4b18 ldr r3, [pc, #96] ; (8005158 ) + 80050f8: f240 326d movw r2, #877 ; 0x36d + 80050fc: 4917 ldr r1, [pc, #92] ; (800515c ) + 80050fe: 4818 ldr r0, [pc, #96] ; (8005160 ) + 8005100: f00b f966 bl 80103d0 /* Only send reports when both link and admin states are up */ if (!(netif->flags & NETIF_FLAG_LINK_UP) || - 8005108: 687b ldr r3, [r7, #4] - 800510a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800510e: f003 0304 and.w r3, r3, #4 - 8005112: 2b00 cmp r3, #0 - 8005114: d01e beq.n 8005154 + 8005104: 687b ldr r3, [r7, #4] + 8005106: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800510a: f003 0304 and.w r3, r3, #4 + 800510e: 2b00 cmp r3, #0 + 8005110: d01e beq.n 8005150 !(netif->flags & NETIF_FLAG_UP)) { - 8005116: 687b ldr r3, [r7, #4] - 8005118: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800511c: f003 0301 and.w r3, r3, #1 + 8005112: 687b ldr r3, [r7, #4] + 8005114: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8005118: f003 0301 and.w r3, r3, #1 if (!(netif->flags & NETIF_FLAG_LINK_UP) || - 8005120: 2b00 cmp r3, #0 - 8005122: d017 beq.n 8005154 + 800511c: 2b00 cmp r3, #0 + 800511e: d017 beq.n 8005150 return; } #if LWIP_IPV4 if ((report_type & NETIF_REPORT_TYPE_IPV4) && - 8005124: 78fb ldrb r3, [r7, #3] - 8005126: f003 0301 and.w r3, r3, #1 - 800512a: 2b00 cmp r3, #0 - 800512c: d013 beq.n 8005156 + 8005120: 78fb ldrb r3, [r7, #3] + 8005122: f003 0301 and.w r3, r3, #1 + 8005126: 2b00 cmp r3, #0 + 8005128: d013 beq.n 8005152 !ip4_addr_isany_val(*netif_ip4_addr(netif))) { - 800512e: 687b ldr r3, [r7, #4] - 8005130: 3304 adds r3, #4 - 8005132: 681b ldr r3, [r3, #0] + 800512a: 687b ldr r3, [r7, #4] + 800512c: 3304 adds r3, #4 + 800512e: 681b ldr r3, [r3, #0] if ((report_type & NETIF_REPORT_TYPE_IPV4) && - 8005134: 2b00 cmp r3, #0 - 8005136: d00e beq.n 8005156 + 8005130: 2b00 cmp r3, #0 + 8005132: d00e beq.n 8005152 #if LWIP_ARP /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ if (netif->flags & (NETIF_FLAG_ETHARP)) { - 8005138: 687b ldr r3, [r7, #4] - 800513a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800513e: f003 0308 and.w r3, r3, #8 - 8005142: 2b00 cmp r3, #0 - 8005144: d007 beq.n 8005156 + 8005134: 687b ldr r3, [r7, #4] + 8005136: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800513a: f003 0308 and.w r3, r3, #8 + 800513e: 2b00 cmp r3, #0 + 8005140: d007 beq.n 8005152 etharp_gratuitous(netif); - 8005146: 687b ldr r3, [r7, #4] - 8005148: 3304 adds r3, #4 - 800514a: 4619 mov r1, r3 - 800514c: 6878 ldr r0, [r7, #4] - 800514e: f009 fbf5 bl 800e93c - 8005152: e000 b.n 8005156 + 8005142: 687b ldr r3, [r7, #4] + 8005144: 3304 adds r3, #4 + 8005146: 4619 mov r1, r3 + 8005148: 6878 ldr r0, [r7, #4] + 800514a: f009 fbf5 bl 800e938 + 800514e: e000 b.n 8005152 return; - 8005154: bf00 nop + 8005150: bf00 nop /* send mld memberships */ mld6_report_groups(netif); #endif /* LWIP_IPV6_MLD */ } #endif /* LWIP_IPV6 */ } - 8005156: 3708 adds r7, #8 - 8005158: 46bd mov sp, r7 - 800515a: bd80 pop {r7, pc} - 800515c: 0801528c .word 0x0801528c - 8005160: 08015430 .word 0x08015430 - 8005164: 080152dc .word 0x080152dc + 8005152: 3708 adds r7, #8 + 8005154: 46bd mov sp, r7 + 8005156: bd80 pop {r7, pc} + 8005158: 0801528c .word 0x0801528c + 800515c: 08015430 .word 0x08015430 + 8005160: 080152dc .word 0x080152dc -08005168 : +08005164 : * @ingroup netif * Bring an interface down, disabling any traffic processing. */ void netif_set_down(struct netif *netif) { - 8005168: b580 push {r7, lr} - 800516a: b082 sub sp, #8 - 800516c: af00 add r7, sp, #0 - 800516e: 6078 str r0, [r7, #4] + 8005164: b580 push {r7, lr} + 8005166: b082 sub sp, #8 + 8005168: af00 add r7, sp, #0 + 800516a: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif_set_down: invalid netif", netif != NULL, return); - 8005170: 687b ldr r3, [r7, #4] - 8005172: 2b00 cmp r3, #0 - 8005174: d107 bne.n 8005186 - 8005176: 4b12 ldr r3, [pc, #72] ; (80051c0 ) - 8005178: f240 329b movw r2, #923 ; 0x39b - 800517c: 4911 ldr r1, [pc, #68] ; (80051c4 ) - 800517e: 4812 ldr r0, [pc, #72] ; (80051c8 ) - 8005180: f00b f928 bl 80103d4 - 8005184: e019 b.n 80051ba + 800516c: 687b ldr r3, [r7, #4] + 800516e: 2b00 cmp r3, #0 + 8005170: d107 bne.n 8005182 + 8005172: 4b12 ldr r3, [pc, #72] ; (80051bc ) + 8005174: f240 329b movw r2, #923 ; 0x39b + 8005178: 4911 ldr r1, [pc, #68] ; (80051c0 ) + 800517a: 4812 ldr r0, [pc, #72] ; (80051c4 ) + 800517c: f00b f928 bl 80103d0 + 8005180: e019 b.n 80051b6 if (netif->flags & NETIF_FLAG_UP) { - 8005186: 687b ldr r3, [r7, #4] - 8005188: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800518c: f003 0301 and.w r3, r3, #1 - 8005190: 2b00 cmp r3, #0 - 8005192: d012 beq.n 80051ba + 8005182: 687b ldr r3, [r7, #4] + 8005184: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8005188: f003 0301 and.w r3, r3, #1 + 800518c: 2b00 cmp r3, #0 + 800518e: d012 beq.n 80051b6 args.status_changed.state = 0; netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args); } #endif netif_clear_flags(netif, NETIF_FLAG_UP); - 8005194: 687b ldr r3, [r7, #4] - 8005196: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800519a: f023 0301 bic.w r3, r3, #1 - 800519e: b2da uxtb r2, r3 - 80051a0: 687b ldr r3, [r7, #4] - 80051a2: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 8005190: 687b ldr r3, [r7, #4] + 8005192: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8005196: f023 0301 bic.w r3, r3, #1 + 800519a: b2da uxtb r2, r3 + 800519c: 687b ldr r3, [r7, #4] + 800519e: f883 2031 strb.w r2, [r3, #49] ; 0x31 MIB2_COPY_SYSUPTIME_TO(&netif->ts); #if LWIP_IPV4 && LWIP_ARP if (netif->flags & NETIF_FLAG_ETHARP) { - 80051a6: 687b ldr r3, [r7, #4] - 80051a8: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80051ac: f003 0308 and.w r3, r3, #8 - 80051b0: 2b00 cmp r3, #0 - 80051b2: d002 beq.n 80051ba + 80051a2: 687b ldr r3, [r7, #4] + 80051a4: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80051a8: f003 0308 and.w r3, r3, #8 + 80051ac: 2b00 cmp r3, #0 + 80051ae: d002 beq.n 80051b6 etharp_cleanup_netif(netif); - 80051b4: 6878 ldr r0, [r7, #4] - 80051b6: f008 ff7b bl 800e0b0 + 80051b0: 6878 ldr r0, [r7, #4] + 80051b2: f008 ff7b bl 800e0ac nd6_cleanup_netif(netif); #endif /* LWIP_IPV6 */ NETIF_STATUS_CALLBACK(netif); } } - 80051ba: 3708 adds r7, #8 - 80051bc: 46bd mov sp, r7 - 80051be: bd80 pop {r7, pc} - 80051c0: 0801528c .word 0x0801528c - 80051c4: 08015454 .word 0x08015454 - 80051c8: 080152dc .word 0x080152dc + 80051b6: 3708 adds r7, #8 + 80051b8: 46bd mov sp, r7 + 80051ba: bd80 pop {r7, pc} + 80051bc: 0801528c .word 0x0801528c + 80051c0: 08015454 .word 0x08015454 + 80051c4: 080152dc .word 0x080152dc -080051cc : +080051c8 : * @ingroup netif * Called by a driver when its link goes up */ void netif_set_link_up(struct netif *netif) { - 80051cc: b580 push {r7, lr} - 80051ce: b082 sub sp, #8 - 80051d0: af00 add r7, sp, #0 - 80051d2: 6078 str r0, [r7, #4] + 80051c8: b580 push {r7, lr} + 80051ca: b082 sub sp, #8 + 80051cc: af00 add r7, sp, #0 + 80051ce: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif_set_link_up: invalid netif", netif != NULL, return); - 80051d4: 687b ldr r3, [r7, #4] - 80051d6: 2b00 cmp r3, #0 - 80051d8: d107 bne.n 80051ea - 80051da: 4b15 ldr r3, [pc, #84] ; (8005230 ) - 80051dc: f44f 7278 mov.w r2, #992 ; 0x3e0 - 80051e0: 4914 ldr r1, [pc, #80] ; (8005234 ) - 80051e2: 4815 ldr r0, [pc, #84] ; (8005238 ) - 80051e4: f00b f8f6 bl 80103d4 - 80051e8: e01e b.n 8005228 + 80051d0: 687b ldr r3, [r7, #4] + 80051d2: 2b00 cmp r3, #0 + 80051d4: d107 bne.n 80051e6 + 80051d6: 4b15 ldr r3, [pc, #84] ; (800522c ) + 80051d8: f44f 7278 mov.w r2, #992 ; 0x3e0 + 80051dc: 4914 ldr r1, [pc, #80] ; (8005230 ) + 80051de: 4815 ldr r0, [pc, #84] ; (8005234 ) + 80051e0: f00b f8f6 bl 80103d0 + 80051e4: e01e b.n 8005224 if (!(netif->flags & NETIF_FLAG_LINK_UP)) { - 80051ea: 687b ldr r3, [r7, #4] - 80051ec: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80051f0: f003 0304 and.w r3, r3, #4 - 80051f4: 2b00 cmp r3, #0 - 80051f6: d117 bne.n 8005228 + 80051e6: 687b ldr r3, [r7, #4] + 80051e8: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80051ec: f003 0304 and.w r3, r3, #4 + 80051f0: 2b00 cmp r3, #0 + 80051f2: d117 bne.n 8005224 netif_set_flags(netif, NETIF_FLAG_LINK_UP); - 80051f8: 687b ldr r3, [r7, #4] - 80051fa: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80051fe: f043 0304 orr.w r3, r3, #4 - 8005202: b2da uxtb r2, r3 - 8005204: 687b ldr r3, [r7, #4] - 8005206: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 80051f4: 687b ldr r3, [r7, #4] + 80051f6: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80051fa: f043 0304 orr.w r3, r3, #4 + 80051fe: b2da uxtb r2, r3 + 8005200: 687b ldr r3, [r7, #4] + 8005202: f883 2031 strb.w r2, [r3, #49] ; 0x31 #if LWIP_DHCP dhcp_network_changed(netif); - 800520a: 6878 ldr r0, [r7, #4] - 800520c: f007 f9c0 bl 800c590 + 8005206: 6878 ldr r0, [r7, #4] + 8005208: f007 f9c0 bl 800c58c #if LWIP_AUTOIP autoip_network_changed(netif); #endif /* LWIP_AUTOIP */ netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6); - 8005210: 2103 movs r1, #3 - 8005212: 6878 ldr r0, [r7, #4] - 8005214: f7ff ff68 bl 80050e8 + 800520c: 2103 movs r1, #3 + 800520e: 6878 ldr r0, [r7, #4] + 8005210: f7ff ff68 bl 80050e4 #if LWIP_IPV6 nd6_restart_netif(netif); #endif /* LWIP_IPV6 */ NETIF_LINK_CALLBACK(netif); - 8005218: 687b ldr r3, [r7, #4] - 800521a: 69db ldr r3, [r3, #28] - 800521c: 2b00 cmp r3, #0 - 800521e: d003 beq.n 8005228 - 8005220: 687b ldr r3, [r7, #4] - 8005222: 69db ldr r3, [r3, #28] - 8005224: 6878 ldr r0, [r7, #4] - 8005226: 4798 blx r3 + 8005214: 687b ldr r3, [r7, #4] + 8005216: 69db ldr r3, [r3, #28] + 8005218: 2b00 cmp r3, #0 + 800521a: d003 beq.n 8005224 + 800521c: 687b ldr r3, [r7, #4] + 800521e: 69db ldr r3, [r3, #28] + 8005220: 6878 ldr r0, [r7, #4] + 8005222: 4798 blx r3 args.link_changed.state = 1; netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args); } #endif } } - 8005228: 3708 adds r7, #8 - 800522a: 46bd mov sp, r7 - 800522c: bd80 pop {r7, pc} - 800522e: bf00 nop - 8005230: 0801528c .word 0x0801528c - 8005234: 08015474 .word 0x08015474 - 8005238: 080152dc .word 0x080152dc + 8005224: 3708 adds r7, #8 + 8005226: 46bd mov sp, r7 + 8005228: bd80 pop {r7, pc} + 800522a: bf00 nop + 800522c: 0801528c .word 0x0801528c + 8005230: 08015474 .word 0x08015474 + 8005234: 080152dc .word 0x080152dc -0800523c : +08005238 : * @ingroup netif * Called by a driver when its link goes down */ void netif_set_link_down(struct netif *netif) { - 800523c: b580 push {r7, lr} - 800523e: b082 sub sp, #8 - 8005240: af00 add r7, sp, #0 - 8005242: 6078 str r0, [r7, #4] + 8005238: b580 push {r7, lr} + 800523a: b082 sub sp, #8 + 800523c: af00 add r7, sp, #0 + 800523e: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif_set_link_down: invalid netif", netif != NULL, return); - 8005244: 687b ldr r3, [r7, #4] - 8005246: 2b00 cmp r3, #0 - 8005248: d107 bne.n 800525a - 800524a: 4b11 ldr r3, [pc, #68] ; (8005290 ) - 800524c: f240 4206 movw r2, #1030 ; 0x406 - 8005250: 4910 ldr r1, [pc, #64] ; (8005294 ) - 8005252: 4811 ldr r0, [pc, #68] ; (8005298 ) - 8005254: f00b f8be bl 80103d4 - 8005258: e017 b.n 800528a + 8005240: 687b ldr r3, [r7, #4] + 8005242: 2b00 cmp r3, #0 + 8005244: d107 bne.n 8005256 + 8005246: 4b11 ldr r3, [pc, #68] ; (800528c ) + 8005248: f240 4206 movw r2, #1030 ; 0x406 + 800524c: 4910 ldr r1, [pc, #64] ; (8005290 ) + 800524e: 4811 ldr r0, [pc, #68] ; (8005294 ) + 8005250: f00b f8be bl 80103d0 + 8005254: e017 b.n 8005286 if (netif->flags & NETIF_FLAG_LINK_UP) { - 800525a: 687b ldr r3, [r7, #4] - 800525c: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8005260: f003 0304 and.w r3, r3, #4 - 8005264: 2b00 cmp r3, #0 - 8005266: d010 beq.n 800528a + 8005256: 687b ldr r3, [r7, #4] + 8005258: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800525c: f003 0304 and.w r3, r3, #4 + 8005260: 2b00 cmp r3, #0 + 8005262: d010 beq.n 8005286 netif_clear_flags(netif, NETIF_FLAG_LINK_UP); - 8005268: 687b ldr r3, [r7, #4] - 800526a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800526e: f023 0304 bic.w r3, r3, #4 - 8005272: b2da uxtb r2, r3 - 8005274: 687b ldr r3, [r7, #4] - 8005276: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 8005264: 687b ldr r3, [r7, #4] + 8005266: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800526a: f023 0304 bic.w r3, r3, #4 + 800526e: b2da uxtb r2, r3 + 8005270: 687b ldr r3, [r7, #4] + 8005272: f883 2031 strb.w r2, [r3, #49] ; 0x31 NETIF_LINK_CALLBACK(netif); - 800527a: 687b ldr r3, [r7, #4] - 800527c: 69db ldr r3, [r3, #28] - 800527e: 2b00 cmp r3, #0 - 8005280: d003 beq.n 800528a - 8005282: 687b ldr r3, [r7, #4] - 8005284: 69db ldr r3, [r3, #28] - 8005286: 6878 ldr r0, [r7, #4] - 8005288: 4798 blx r3 + 8005276: 687b ldr r3, [r7, #4] + 8005278: 69db ldr r3, [r3, #28] + 800527a: 2b00 cmp r3, #0 + 800527c: d003 beq.n 8005286 + 800527e: 687b ldr r3, [r7, #4] + 8005280: 69db ldr r3, [r3, #28] + 8005282: 6878 ldr r0, [r7, #4] + 8005284: 4798 blx r3 args.link_changed.state = 0; netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args); } #endif } } - 800528a: 3708 adds r7, #8 - 800528c: 46bd mov sp, r7 - 800528e: bd80 pop {r7, pc} - 8005290: 0801528c .word 0x0801528c - 8005294: 08015498 .word 0x08015498 - 8005298: 080152dc .word 0x080152dc + 8005286: 3708 adds r7, #8 + 8005288: 46bd mov sp, r7 + 800528a: bd80 pop {r7, pc} + 800528c: 0801528c .word 0x0801528c + 8005290: 08015498 .word 0x08015498 + 8005294: 080152dc .word 0x080152dc -0800529c : +08005298 : * @ingroup netif * Set callback to be called when link is brought up/down */ void netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback) { - 800529c: b480 push {r7} - 800529e: b083 sub sp, #12 - 80052a0: af00 add r7, sp, #0 - 80052a2: 6078 str r0, [r7, #4] - 80052a4: 6039 str r1, [r7, #0] + 8005298: b480 push {r7} + 800529a: b083 sub sp, #12 + 800529c: af00 add r7, sp, #0 + 800529e: 6078 str r0, [r7, #4] + 80052a0: 6039 str r1, [r7, #0] LWIP_ASSERT_CORE_LOCKED(); if (netif) { - 80052a6: 687b ldr r3, [r7, #4] - 80052a8: 2b00 cmp r3, #0 - 80052aa: d002 beq.n 80052b2 + 80052a2: 687b ldr r3, [r7, #4] + 80052a4: 2b00 cmp r3, #0 + 80052a6: d002 beq.n 80052ae netif->link_callback = link_callback; - 80052ac: 687b ldr r3, [r7, #4] - 80052ae: 683a ldr r2, [r7, #0] - 80052b0: 61da str r2, [r3, #28] + 80052a8: 687b ldr r3, [r7, #4] + 80052aa: 683a ldr r2, [r7, #0] + 80052ac: 61da str r2, [r3, #28] } } - 80052b2: bf00 nop - 80052b4: 370c adds r7, #12 - 80052b6: 46bd mov sp, r7 - 80052b8: f85d 7b04 ldr.w r7, [sp], #4 - 80052bc: 4770 bx lr + 80052ae: bf00 nop + 80052b0: 370c adds r7, #12 + 80052b2: 46bd mov sp, r7 + 80052b4: f85d 7b04 ldr.w r7, [sp], #4 + 80052b8: 4770 bx lr -080052be : +080052ba : #if LWIP_IPV4 /** Dummy IPv4 output function for netifs not supporting IPv4 */ static err_t netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr) { - 80052be: b480 push {r7} - 80052c0: b085 sub sp, #20 - 80052c2: af00 add r7, sp, #0 - 80052c4: 60f8 str r0, [r7, #12] - 80052c6: 60b9 str r1, [r7, #8] - 80052c8: 607a str r2, [r7, #4] + 80052ba: b480 push {r7} + 80052bc: b085 sub sp, #20 + 80052be: af00 add r7, sp, #0 + 80052c0: 60f8 str r0, [r7, #12] + 80052c2: 60b9 str r1, [r7, #8] + 80052c4: 607a str r2, [r7, #4] LWIP_UNUSED_ARG(netif); LWIP_UNUSED_ARG(p); LWIP_UNUSED_ARG(ipaddr); return ERR_IF; - 80052ca: f06f 030b mvn.w r3, #11 + 80052c6: f06f 030b mvn.w r3, #11 } - 80052ce: 4618 mov r0, r3 - 80052d0: 3714 adds r7, #20 - 80052d2: 46bd mov sp, r7 - 80052d4: f85d 7b04 ldr.w r7, [sp], #4 - 80052d8: 4770 bx lr + 80052ca: 4618 mov r0, r3 + 80052cc: 3714 adds r7, #20 + 80052ce: 46bd mov sp, r7 + 80052d0: f85d 7b04 ldr.w r7, [sp], #4 + 80052d4: 4770 bx lr ... -080052dc : +080052d8 : * * @param idx index of netif to find */ struct netif * netif_get_by_index(u8_t idx) { - 80052dc: b480 push {r7} - 80052de: b085 sub sp, #20 - 80052e0: af00 add r7, sp, #0 - 80052e2: 4603 mov r3, r0 - 80052e4: 71fb strb r3, [r7, #7] + 80052d8: b480 push {r7} + 80052da: b085 sub sp, #20 + 80052dc: af00 add r7, sp, #0 + 80052de: 4603 mov r3, r0 + 80052e0: 71fb strb r3, [r7, #7] struct netif *netif; LWIP_ASSERT_CORE_LOCKED(); if (idx != NETIF_NO_INDEX) { - 80052e6: 79fb ldrb r3, [r7, #7] - 80052e8: 2b00 cmp r3, #0 - 80052ea: d013 beq.n 8005314 + 80052e2: 79fb ldrb r3, [r7, #7] + 80052e4: 2b00 cmp r3, #0 + 80052e6: d013 beq.n 8005310 NETIF_FOREACH(netif) { - 80052ec: 4b0d ldr r3, [pc, #52] ; (8005324 ) - 80052ee: 681b ldr r3, [r3, #0] - 80052f0: 60fb str r3, [r7, #12] - 80052f2: e00c b.n 800530e + 80052e8: 4b0d ldr r3, [pc, #52] ; (8005320 ) + 80052ea: 681b ldr r3, [r3, #0] + 80052ec: 60fb str r3, [r7, #12] + 80052ee: e00c b.n 800530a if (idx == netif_get_index(netif)) { - 80052f4: 68fb ldr r3, [r7, #12] - 80052f6: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 80052fa: 3301 adds r3, #1 - 80052fc: b2db uxtb r3, r3 - 80052fe: 79fa ldrb r2, [r7, #7] - 8005300: 429a cmp r2, r3 - 8005302: d101 bne.n 8005308 + 80052f0: 68fb ldr r3, [r7, #12] + 80052f2: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 80052f6: 3301 adds r3, #1 + 80052f8: b2db uxtb r3, r3 + 80052fa: 79fa ldrb r2, [r7, #7] + 80052fc: 429a cmp r2, r3 + 80052fe: d101 bne.n 8005304 return netif; /* found! */ - 8005304: 68fb ldr r3, [r7, #12] - 8005306: e006 b.n 8005316 + 8005300: 68fb ldr r3, [r7, #12] + 8005302: e006 b.n 8005312 NETIF_FOREACH(netif) { - 8005308: 68fb ldr r3, [r7, #12] - 800530a: 681b ldr r3, [r3, #0] - 800530c: 60fb str r3, [r7, #12] - 800530e: 68fb ldr r3, [r7, #12] - 8005310: 2b00 cmp r3, #0 - 8005312: d1ef bne.n 80052f4 + 8005304: 68fb ldr r3, [r7, #12] + 8005306: 681b ldr r3, [r3, #0] + 8005308: 60fb str r3, [r7, #12] + 800530a: 68fb ldr r3, [r7, #12] + 800530c: 2b00 cmp r3, #0 + 800530e: d1ef bne.n 80052f0 } } } return NULL; - 8005314: 2300 movs r3, #0 + 8005310: 2300 movs r3, #0 } - 8005316: 4618 mov r0, r3 - 8005318: 3714 adds r7, #20 - 800531a: 46bd mov sp, r7 - 800531c: f85d 7b04 ldr.w r7, [sp], #4 - 8005320: 4770 bx lr - 8005322: bf00 nop - 8005324: 20008bf4 .word 0x20008bf4 + 8005312: 4618 mov r0, r3 + 8005314: 3714 adds r7, #20 + 8005316: 46bd mov sp, r7 + 8005318: f85d 7b04 ldr.w r7, [sp], #4 + 800531c: 4770 bx lr + 800531e: bf00 nop + 8005320: 20008bf4 .word 0x20008bf4 -08005328 : +08005324 : #if !NO_SYS static #endif /* !NO_SYS */ void pbuf_free_ooseq(void) { - 8005328: b580 push {r7, lr} - 800532a: b082 sub sp, #8 - 800532c: af00 add r7, sp, #0 + 8005324: b580 push {r7, lr} + 8005326: b082 sub sp, #8 + 8005328: af00 add r7, sp, #0 struct tcp_pcb *pcb; SYS_ARCH_SET(pbuf_free_ooseq_pending, 0); - 800532e: 4b0c ldr r3, [pc, #48] ; (8005360 ) - 8005330: 2200 movs r2, #0 - 8005332: 701a strb r2, [r3, #0] + 800532a: 4b0c ldr r3, [pc, #48] ; (800535c ) + 800532c: 2200 movs r2, #0 + 800532e: 701a strb r2, [r3, #0] for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { - 8005334: 4b0b ldr r3, [pc, #44] ; (8005364 ) - 8005336: 681b ldr r3, [r3, #0] - 8005338: 607b str r3, [r7, #4] - 800533a: e00a b.n 8005352 + 8005330: 4b0b ldr r3, [pc, #44] ; (8005360 ) + 8005332: 681b ldr r3, [r3, #0] + 8005334: 607b str r3, [r7, #4] + 8005336: e00a b.n 800534e if (pcb->ooseq != NULL) { - 800533c: 687b ldr r3, [r7, #4] - 800533e: 6f5b ldr r3, [r3, #116] ; 0x74 - 8005340: 2b00 cmp r3, #0 - 8005342: d003 beq.n 800534c + 8005338: 687b ldr r3, [r7, #4] + 800533a: 6f5b ldr r3, [r3, #116] ; 0x74 + 800533c: 2b00 cmp r3, #0 + 800533e: d003 beq.n 8005348 /** Free the ooseq pbufs of one PCB only */ LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free_ooseq: freeing out-of-sequence pbufs\n")); tcp_free_ooseq(pcb); - 8005344: 6878 ldr r0, [r7, #4] - 8005346: f002 f94d bl 80075e4 + 8005340: 6878 ldr r0, [r7, #4] + 8005342: f002 f94d bl 80075e0 return; - 800534a: e005 b.n 8005358 + 8005346: e005 b.n 8005354 for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { - 800534c: 687b ldr r3, [r7, #4] - 800534e: 68db ldr r3, [r3, #12] - 8005350: 607b str r3, [r7, #4] - 8005352: 687b ldr r3, [r7, #4] - 8005354: 2b00 cmp r3, #0 - 8005356: d1f1 bne.n 800533c + 8005348: 687b ldr r3, [r7, #4] + 800534a: 68db ldr r3, [r3, #12] + 800534c: 607b str r3, [r7, #4] + 800534e: 687b ldr r3, [r7, #4] + 8005350: 2b00 cmp r3, #0 + 8005352: d1f1 bne.n 8005338 } } } - 8005358: 3708 adds r7, #8 - 800535a: 46bd mov sp, r7 - 800535c: bd80 pop {r7, pc} - 800535e: bf00 nop - 8005360: 20008bfd .word 0x20008bfd - 8005364: 20008c0c .word 0x20008c0c + 8005354: 3708 adds r7, #8 + 8005356: 46bd mov sp, r7 + 8005358: bd80 pop {r7, pc} + 800535a: bf00 nop + 800535c: 20008bfd .word 0x20008bfd + 8005360: 20008c0c .word 0x20008c0c -08005368 : +08005364 : #endif /* !NO_SYS */ /** Queue a call to pbuf_free_ooseq if not already queued. */ static void pbuf_pool_is_empty(void) { - 8005368: b480 push {r7} - 800536a: af00 add r7, sp, #0 + 8005364: b480 push {r7} + 8005366: af00 add r7, sp, #0 #ifndef PBUF_POOL_FREE_OOSEQ_QUEUE_CALL SYS_ARCH_SET(pbuf_free_ooseq_pending, 1); - 800536c: 4b03 ldr r3, [pc, #12] ; (800537c ) - 800536e: 2201 movs r2, #1 - 8005370: 701a strb r2, [r3, #0] + 8005368: 4b03 ldr r3, [pc, #12] ; (8005378 ) + 800536a: 2201 movs r2, #1 + 800536c: 701a strb r2, [r3, #0] if (!queued) { /* queue a call to pbuf_free_ooseq if not already queued */ PBUF_POOL_FREE_OOSEQ_QUEUE_CALL(); } #endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */ } - 8005372: bf00 nop - 8005374: 46bd mov sp, r7 - 8005376: f85d 7b04 ldr.w r7, [sp], #4 - 800537a: 4770 bx lr - 800537c: 20008bfd .word 0x20008bfd + 800536e: bf00 nop + 8005370: 46bd mov sp, r7 + 8005372: f85d 7b04 ldr.w r7, [sp], #4 + 8005376: 4770 bx lr + 8005378: 20008bfd .word 0x20008bfd -08005380 : +0800537c : #endif /* !LWIP_TCP || !TCP_QUEUE_OOSEQ || !PBUF_POOL_FREE_OOSEQ */ /* Initialize members of struct pbuf after allocation */ static void pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags) { - 8005380: b480 push {r7} - 8005382: b085 sub sp, #20 - 8005384: af00 add r7, sp, #0 - 8005386: 60f8 str r0, [r7, #12] - 8005388: 60b9 str r1, [r7, #8] - 800538a: 4611 mov r1, r2 - 800538c: 461a mov r2, r3 - 800538e: 460b mov r3, r1 - 8005390: 80fb strh r3, [r7, #6] - 8005392: 4613 mov r3, r2 - 8005394: 80bb strh r3, [r7, #4] + 800537c: b480 push {r7} + 800537e: b085 sub sp, #20 + 8005380: af00 add r7, sp, #0 + 8005382: 60f8 str r0, [r7, #12] + 8005384: 60b9 str r1, [r7, #8] + 8005386: 4611 mov r1, r2 + 8005388: 461a mov r2, r3 + 800538a: 460b mov r3, r1 + 800538c: 80fb strh r3, [r7, #6] + 800538e: 4613 mov r3, r2 + 8005390: 80bb strh r3, [r7, #4] p->next = NULL; - 8005396: 68fb ldr r3, [r7, #12] - 8005398: 2200 movs r2, #0 - 800539a: 601a str r2, [r3, #0] + 8005392: 68fb ldr r3, [r7, #12] + 8005394: 2200 movs r2, #0 + 8005396: 601a str r2, [r3, #0] p->payload = payload; - 800539c: 68fb ldr r3, [r7, #12] - 800539e: 68ba ldr r2, [r7, #8] - 80053a0: 605a str r2, [r3, #4] + 8005398: 68fb ldr r3, [r7, #12] + 800539a: 68ba ldr r2, [r7, #8] + 800539c: 605a str r2, [r3, #4] p->tot_len = tot_len; - 80053a2: 68fb ldr r3, [r7, #12] - 80053a4: 88fa ldrh r2, [r7, #6] - 80053a6: 811a strh r2, [r3, #8] + 800539e: 68fb ldr r3, [r7, #12] + 80053a0: 88fa ldrh r2, [r7, #6] + 80053a2: 811a strh r2, [r3, #8] p->len = len; - 80053a8: 68fb ldr r3, [r7, #12] - 80053aa: 88ba ldrh r2, [r7, #4] - 80053ac: 815a strh r2, [r3, #10] + 80053a4: 68fb ldr r3, [r7, #12] + 80053a6: 88ba ldrh r2, [r7, #4] + 80053a8: 815a strh r2, [r3, #10] p->type_internal = (u8_t)type; - 80053ae: 8b3b ldrh r3, [r7, #24] - 80053b0: b2da uxtb r2, r3 - 80053b2: 68fb ldr r3, [r7, #12] - 80053b4: 731a strb r2, [r3, #12] + 80053aa: 8b3b ldrh r3, [r7, #24] + 80053ac: b2da uxtb r2, r3 + 80053ae: 68fb ldr r3, [r7, #12] + 80053b0: 731a strb r2, [r3, #12] p->flags = flags; - 80053b6: 68fb ldr r3, [r7, #12] - 80053b8: 7f3a ldrb r2, [r7, #28] - 80053ba: 735a strb r2, [r3, #13] + 80053b2: 68fb ldr r3, [r7, #12] + 80053b4: 7f3a ldrb r2, [r7, #28] + 80053b6: 735a strb r2, [r3, #13] p->ref = 1; - 80053bc: 68fb ldr r3, [r7, #12] - 80053be: 2201 movs r2, #1 - 80053c0: 739a strb r2, [r3, #14] + 80053b8: 68fb ldr r3, [r7, #12] + 80053ba: 2201 movs r2, #1 + 80053bc: 739a strb r2, [r3, #14] p->if_idx = NETIF_NO_INDEX; - 80053c2: 68fb ldr r3, [r7, #12] - 80053c4: 2200 movs r2, #0 - 80053c6: 73da strb r2, [r3, #15] + 80053be: 68fb ldr r3, [r7, #12] + 80053c0: 2200 movs r2, #0 + 80053c2: 73da strb r2, [r3, #15] } - 80053c8: bf00 nop - 80053ca: 3714 adds r7, #20 - 80053cc: 46bd mov sp, r7 - 80053ce: f85d 7b04 ldr.w r7, [sp], #4 - 80053d2: 4770 bx lr + 80053c4: bf00 nop + 80053c6: 3714 adds r7, #20 + 80053c8: 46bd mov sp, r7 + 80053ca: f85d 7b04 ldr.w r7, [sp], #4 + 80053ce: 4770 bx lr -080053d4 : +080053d0 : * @return the allocated pbuf. If multiple pbufs where allocated, this * is the first pbuf of a pbuf chain. */ struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) { - 80053d4: b580 push {r7, lr} - 80053d6: b08c sub sp, #48 ; 0x30 - 80053d8: af02 add r7, sp, #8 - 80053da: 4603 mov r3, r0 - 80053dc: 71fb strb r3, [r7, #7] - 80053de: 460b mov r3, r1 - 80053e0: 80bb strh r3, [r7, #4] - 80053e2: 4613 mov r3, r2 - 80053e4: 807b strh r3, [r7, #2] + 80053d0: b580 push {r7, lr} + 80053d2: b08c sub sp, #48 ; 0x30 + 80053d4: af02 add r7, sp, #8 + 80053d6: 4603 mov r3, r0 + 80053d8: 71fb strb r3, [r7, #7] + 80053da: 460b mov r3, r1 + 80053dc: 80bb strh r3, [r7, #4] + 80053de: 4613 mov r3, r2 + 80053e0: 807b strh r3, [r7, #2] struct pbuf *p; u16_t offset = (u16_t)layer; - 80053e6: 79fb ldrb r3, [r7, #7] - 80053e8: 847b strh r3, [r7, #34] ; 0x22 + 80053e2: 79fb ldrb r3, [r7, #7] + 80053e4: 847b strh r3, [r7, #34] ; 0x22 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length)); switch (type) { - 80053ea: 887b ldrh r3, [r7, #2] - 80053ec: f5b3 7f20 cmp.w r3, #640 ; 0x280 - 80053f0: d07f beq.n 80054f2 - 80053f2: f5b3 7f20 cmp.w r3, #640 ; 0x280 - 80053f6: f300 80c8 bgt.w 800558a - 80053fa: f5b3 7fc1 cmp.w r3, #386 ; 0x182 - 80053fe: d010 beq.n 8005422 - 8005400: f5b3 7fc1 cmp.w r3, #386 ; 0x182 - 8005404: f300 80c1 bgt.w 800558a - 8005408: 2b01 cmp r3, #1 - 800540a: d002 beq.n 8005412 - 800540c: 2b41 cmp r3, #65 ; 0x41 - 800540e: f040 80bc bne.w 800558a + 80053e6: 887b ldrh r3, [r7, #2] + 80053e8: f5b3 7f20 cmp.w r3, #640 ; 0x280 + 80053ec: d07f beq.n 80054ee + 80053ee: f5b3 7f20 cmp.w r3, #640 ; 0x280 + 80053f2: f300 80c8 bgt.w 8005586 + 80053f6: f5b3 7fc1 cmp.w r3, #386 ; 0x182 + 80053fa: d010 beq.n 800541e + 80053fc: f5b3 7fc1 cmp.w r3, #386 ; 0x182 + 8005400: f300 80c1 bgt.w 8005586 + 8005404: 2b01 cmp r3, #1 + 8005406: d002 beq.n 800540e + 8005408: 2b41 cmp r3, #65 ; 0x41 + 800540a: f040 80bc bne.w 8005586 case PBUF_REF: /* fall through */ case PBUF_ROM: p = pbuf_alloc_reference(NULL, length, type); - 8005412: 887a ldrh r2, [r7, #2] - 8005414: 88bb ldrh r3, [r7, #4] - 8005416: 4619 mov r1, r3 - 8005418: 2000 movs r0, #0 - 800541a: f000 f8d1 bl 80055c0 - 800541e: 6278 str r0, [r7, #36] ; 0x24 + 800540e: 887a ldrh r2, [r7, #2] + 8005410: 88bb ldrh r3, [r7, #4] + 8005412: 4619 mov r1, r3 + 8005414: 2000 movs r0, #0 + 8005416: f000 f8d1 bl 80055bc + 800541a: 6278 str r0, [r7, #36] ; 0x24 break; - 8005420: e0bd b.n 800559e + 800541c: e0bd b.n 800559a case PBUF_POOL: { struct pbuf *q, *last; u16_t rem_len; /* remaining length */ p = NULL; - 8005422: 2300 movs r3, #0 - 8005424: 627b str r3, [r7, #36] ; 0x24 + 800541e: 2300 movs r3, #0 + 8005420: 627b str r3, [r7, #36] ; 0x24 last = NULL; - 8005426: 2300 movs r3, #0 - 8005428: 61fb str r3, [r7, #28] + 8005422: 2300 movs r3, #0 + 8005424: 61fb str r3, [r7, #28] rem_len = length; - 800542a: 88bb ldrh r3, [r7, #4] - 800542c: 837b strh r3, [r7, #26] + 8005426: 88bb ldrh r3, [r7, #4] + 8005428: 837b strh r3, [r7, #26] do { u16_t qlen; q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); - 800542e: 2008 movs r0, #8 - 8005430: f7ff fbc2 bl 8004bb8 - 8005434: 6138 str r0, [r7, #16] + 800542a: 2008 movs r0, #8 + 800542c: f7ff fbc2 bl 8004bb4 + 8005430: 6138 str r0, [r7, #16] if (q == NULL) { - 8005436: 693b ldr r3, [r7, #16] - 8005438: 2b00 cmp r3, #0 - 800543a: d109 bne.n 8005450 + 8005432: 693b ldr r3, [r7, #16] + 8005434: 2b00 cmp r3, #0 + 8005436: d109 bne.n 800544c PBUF_POOL_IS_EMPTY(); - 800543c: f7ff ff94 bl 8005368 + 8005438: f7ff ff94 bl 8005364 /* free chain so far allocated */ if (p) { - 8005440: 6a7b ldr r3, [r7, #36] ; 0x24 - 8005442: 2b00 cmp r3, #0 - 8005444: d002 beq.n 800544c + 800543c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800543e: 2b00 cmp r3, #0 + 8005440: d002 beq.n 8005448 pbuf_free(p); - 8005446: 6a78 ldr r0, [r7, #36] ; 0x24 - 8005448: f000 faa8 bl 800599c + 8005442: 6a78 ldr r0, [r7, #36] ; 0x24 + 8005444: f000 faa8 bl 8005998 } /* bail out unsuccessfully */ return NULL; - 800544c: 2300 movs r3, #0 - 800544e: e0a7 b.n 80055a0 + 8005448: 2300 movs r3, #0 + 800544a: e0a7 b.n 800559c } qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset))); - 8005450: 8c7b ldrh r3, [r7, #34] ; 0x22 - 8005452: 3303 adds r3, #3 - 8005454: b29b uxth r3, r3 - 8005456: f023 0303 bic.w r3, r3, #3 - 800545a: b29b uxth r3, r3 - 800545c: f5c3 7314 rsb r3, r3, #592 ; 0x250 - 8005460: b29b uxth r3, r3 - 8005462: 8b7a ldrh r2, [r7, #26] - 8005464: 4293 cmp r3, r2 - 8005466: bf28 it cs - 8005468: 4613 movcs r3, r2 - 800546a: 81fb strh r3, [r7, #14] + 800544c: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800544e: 3303 adds r3, #3 + 8005450: b29b uxth r3, r3 + 8005452: f023 0303 bic.w r3, r3, #3 + 8005456: b29b uxth r3, r3 + 8005458: f5c3 7314 rsb r3, r3, #592 ; 0x250 + 800545c: b29b uxth r3, r3 + 800545e: 8b7a ldrh r2, [r7, #26] + 8005460: 4293 cmp r3, r2 + 8005462: bf28 it cs + 8005464: 4613 movcs r3, r2 + 8005466: 81fb strh r3, [r7, #14] pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)), - 800546c: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800546e: 3310 adds r3, #16 - 8005470: 693a ldr r2, [r7, #16] - 8005472: 4413 add r3, r2 - 8005474: 3303 adds r3, #3 - 8005476: f023 0303 bic.w r3, r3, #3 - 800547a: 4618 mov r0, r3 - 800547c: 89f9 ldrh r1, [r7, #14] - 800547e: 8b7a ldrh r2, [r7, #26] - 8005480: 2300 movs r3, #0 - 8005482: 9301 str r3, [sp, #4] - 8005484: 887b ldrh r3, [r7, #2] - 8005486: 9300 str r3, [sp, #0] - 8005488: 460b mov r3, r1 - 800548a: 4601 mov r1, r0 - 800548c: 6938 ldr r0, [r7, #16] - 800548e: f7ff ff77 bl 8005380 + 8005468: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800546a: 3310 adds r3, #16 + 800546c: 693a ldr r2, [r7, #16] + 800546e: 4413 add r3, r2 + 8005470: 3303 adds r3, #3 + 8005472: f023 0303 bic.w r3, r3, #3 + 8005476: 4618 mov r0, r3 + 8005478: 89f9 ldrh r1, [r7, #14] + 800547a: 8b7a ldrh r2, [r7, #26] + 800547c: 2300 movs r3, #0 + 800547e: 9301 str r3, [sp, #4] + 8005480: 887b ldrh r3, [r7, #2] + 8005482: 9300 str r3, [sp, #0] + 8005484: 460b mov r3, r1 + 8005486: 4601 mov r1, r0 + 8005488: 6938 ldr r0, [r7, #16] + 800548a: f7ff ff77 bl 800537c rem_len, qlen, type, 0); LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned", - 8005492: 693b ldr r3, [r7, #16] - 8005494: 685b ldr r3, [r3, #4] - 8005496: f003 0303 and.w r3, r3, #3 - 800549a: 2b00 cmp r3, #0 - 800549c: d006 beq.n 80054ac - 800549e: 4b42 ldr r3, [pc, #264] ; (80055a8 ) - 80054a0: f44f 7280 mov.w r2, #256 ; 0x100 - 80054a4: 4941 ldr r1, [pc, #260] ; (80055ac ) - 80054a6: 4842 ldr r0, [pc, #264] ; (80055b0 ) - 80054a8: f00a ff94 bl 80103d4 + 800548e: 693b ldr r3, [r7, #16] + 8005490: 685b ldr r3, [r3, #4] + 8005492: f003 0303 and.w r3, r3, #3 + 8005496: 2b00 cmp r3, #0 + 8005498: d006 beq.n 80054a8 + 800549a: 4b42 ldr r3, [pc, #264] ; (80055a4 ) + 800549c: f44f 7280 mov.w r2, #256 ; 0x100 + 80054a0: 4941 ldr r1, [pc, #260] ; (80055a8 ) + 80054a2: 4842 ldr r0, [pc, #264] ; (80055ac ) + 80054a4: f00a ff94 bl 80103d0 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0); LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT", - 80054ac: 8c7b ldrh r3, [r7, #34] ; 0x22 - 80054ae: 3303 adds r3, #3 - 80054b0: f023 0303 bic.w r3, r3, #3 - 80054b4: f5b3 7f14 cmp.w r3, #592 ; 0x250 - 80054b8: d106 bne.n 80054c8 - 80054ba: 4b3b ldr r3, [pc, #236] ; (80055a8 ) - 80054bc: f44f 7281 mov.w r2, #258 ; 0x102 - 80054c0: 493c ldr r1, [pc, #240] ; (80055b4 ) - 80054c2: 483b ldr r0, [pc, #236] ; (80055b0 ) - 80054c4: f00a ff86 bl 80103d4 + 80054a8: 8c7b ldrh r3, [r7, #34] ; 0x22 + 80054aa: 3303 adds r3, #3 + 80054ac: f023 0303 bic.w r3, r3, #3 + 80054b0: f5b3 7f14 cmp.w r3, #592 ; 0x250 + 80054b4: d106 bne.n 80054c4 + 80054b6: 4b3b ldr r3, [pc, #236] ; (80055a4 ) + 80054b8: f44f 7281 mov.w r2, #258 ; 0x102 + 80054bc: 493c ldr r1, [pc, #240] ; (80055b0 ) + 80054be: 483b ldr r0, [pc, #236] ; (80055ac ) + 80054c0: f00a ff86 bl 80103d0 (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 ); if (p == NULL) { - 80054c8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80054ca: 2b00 cmp r3, #0 - 80054cc: d102 bne.n 80054d4 + 80054c4: 6a7b ldr r3, [r7, #36] ; 0x24 + 80054c6: 2b00 cmp r3, #0 + 80054c8: d102 bne.n 80054d0 /* allocated head of pbuf chain (into p) */ p = q; - 80054ce: 693b ldr r3, [r7, #16] - 80054d0: 627b str r3, [r7, #36] ; 0x24 - 80054d2: e002 b.n 80054da + 80054ca: 693b ldr r3, [r7, #16] + 80054cc: 627b str r3, [r7, #36] ; 0x24 + 80054ce: e002 b.n 80054d6 } else { /* make previous pbuf point to this pbuf */ last->next = q; - 80054d4: 69fb ldr r3, [r7, #28] - 80054d6: 693a ldr r2, [r7, #16] - 80054d8: 601a str r2, [r3, #0] + 80054d0: 69fb ldr r3, [r7, #28] + 80054d2: 693a ldr r2, [r7, #16] + 80054d4: 601a str r2, [r3, #0] } last = q; - 80054da: 693b ldr r3, [r7, #16] - 80054dc: 61fb str r3, [r7, #28] + 80054d6: 693b ldr r3, [r7, #16] + 80054d8: 61fb str r3, [r7, #28] rem_len = (u16_t)(rem_len - qlen); - 80054de: 8b7a ldrh r2, [r7, #26] - 80054e0: 89fb ldrh r3, [r7, #14] - 80054e2: 1ad3 subs r3, r2, r3 - 80054e4: 837b strh r3, [r7, #26] + 80054da: 8b7a ldrh r2, [r7, #26] + 80054dc: 89fb ldrh r3, [r7, #14] + 80054de: 1ad3 subs r3, r2, r3 + 80054e0: 837b strh r3, [r7, #26] offset = 0; - 80054e6: 2300 movs r3, #0 - 80054e8: 847b strh r3, [r7, #34] ; 0x22 + 80054e2: 2300 movs r3, #0 + 80054e4: 847b strh r3, [r7, #34] ; 0x22 } while (rem_len > 0); - 80054ea: 8b7b ldrh r3, [r7, #26] - 80054ec: 2b00 cmp r3, #0 - 80054ee: d19e bne.n 800542e + 80054e6: 8b7b ldrh r3, [r7, #26] + 80054e8: 2b00 cmp r3, #0 + 80054ea: d19e bne.n 800542a break; - 80054f0: e055 b.n 800559e + 80054ec: e055 b.n 800559a } case PBUF_RAM: { u16_t payload_len = (u16_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length)); - 80054f2: 8c7b ldrh r3, [r7, #34] ; 0x22 - 80054f4: 3303 adds r3, #3 - 80054f6: b29b uxth r3, r3 - 80054f8: f023 0303 bic.w r3, r3, #3 - 80054fc: b29a uxth r2, r3 - 80054fe: 88bb ldrh r3, [r7, #4] - 8005500: 3303 adds r3, #3 - 8005502: b29b uxth r3, r3 - 8005504: f023 0303 bic.w r3, r3, #3 - 8005508: b29b uxth r3, r3 - 800550a: 4413 add r3, r2 - 800550c: 833b strh r3, [r7, #24] + 80054ee: 8c7b ldrh r3, [r7, #34] ; 0x22 + 80054f0: 3303 adds r3, #3 + 80054f2: b29b uxth r3, r3 + 80054f4: f023 0303 bic.w r3, r3, #3 + 80054f8: b29a uxth r2, r3 + 80054fa: 88bb ldrh r3, [r7, #4] + 80054fc: 3303 adds r3, #3 + 80054fe: b29b uxth r3, r3 + 8005500: f023 0303 bic.w r3, r3, #3 + 8005504: b29b uxth r3, r3 + 8005506: 4413 add r3, r2 + 8005508: 833b strh r3, [r7, #24] mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len); - 800550e: 8b3b ldrh r3, [r7, #24] - 8005510: 3310 adds r3, #16 - 8005512: 82fb strh r3, [r7, #22] + 800550a: 8b3b ldrh r3, [r7, #24] + 800550c: 3310 adds r3, #16 + 800550e: 82fb strh r3, [r7, #22] /* bug #50040: Check for integer overflow when calculating alloc_len */ if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) || - 8005514: 8b3a ldrh r2, [r7, #24] - 8005516: 88bb ldrh r3, [r7, #4] - 8005518: 3303 adds r3, #3 - 800551a: f023 0303 bic.w r3, r3, #3 - 800551e: 429a cmp r2, r3 - 8005520: d306 bcc.n 8005530 + 8005510: 8b3a ldrh r2, [r7, #24] + 8005512: 88bb ldrh r3, [r7, #4] + 8005514: 3303 adds r3, #3 + 8005516: f023 0303 bic.w r3, r3, #3 + 800551a: 429a cmp r2, r3 + 800551c: d306 bcc.n 800552c (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) { - 8005522: 8afa ldrh r2, [r7, #22] - 8005524: 88bb ldrh r3, [r7, #4] - 8005526: 3303 adds r3, #3 - 8005528: f023 0303 bic.w r3, r3, #3 + 800551e: 8afa ldrh r2, [r7, #22] + 8005520: 88bb ldrh r3, [r7, #4] + 8005522: 3303 adds r3, #3 + 8005524: f023 0303 bic.w r3, r3, #3 if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) || - 800552c: 429a cmp r2, r3 - 800552e: d201 bcs.n 8005534 + 8005528: 429a cmp r2, r3 + 800552a: d201 bcs.n 8005530 return NULL; - 8005530: 2300 movs r3, #0 - 8005532: e035 b.n 80055a0 + 800552c: 2300 movs r3, #0 + 800552e: e035 b.n 800559c } /* If pbuf is to be allocated in RAM, allocate memory for it. */ p = (struct pbuf *)mem_malloc(alloc_len); - 8005534: 8afb ldrh r3, [r7, #22] - 8005536: 4618 mov r0, r3 - 8005538: f7ff f9ae bl 8004898 - 800553c: 6278 str r0, [r7, #36] ; 0x24 + 8005530: 8afb ldrh r3, [r7, #22] + 8005532: 4618 mov r0, r3 + 8005534: f7ff f9ae bl 8004894 + 8005538: 6278 str r0, [r7, #36] ; 0x24 if (p == NULL) { - 800553e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8005540: 2b00 cmp r3, #0 - 8005542: d101 bne.n 8005548 + 800553a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800553c: 2b00 cmp r3, #0 + 800553e: d101 bne.n 8005544 return NULL; - 8005544: 2300 movs r3, #0 - 8005546: e02b b.n 80055a0 + 8005540: 2300 movs r3, #0 + 8005542: e02b b.n 800559c } pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)), - 8005548: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800554a: 3310 adds r3, #16 - 800554c: 6a7a ldr r2, [r7, #36] ; 0x24 - 800554e: 4413 add r3, r2 - 8005550: 3303 adds r3, #3 - 8005552: f023 0303 bic.w r3, r3, #3 - 8005556: 4618 mov r0, r3 - 8005558: 88b9 ldrh r1, [r7, #4] - 800555a: 88ba ldrh r2, [r7, #4] - 800555c: 2300 movs r3, #0 - 800555e: 9301 str r3, [sp, #4] - 8005560: 887b ldrh r3, [r7, #2] - 8005562: 9300 str r3, [sp, #0] - 8005564: 460b mov r3, r1 - 8005566: 4601 mov r1, r0 - 8005568: 6a78 ldr r0, [r7, #36] ; 0x24 - 800556a: f7ff ff09 bl 8005380 + 8005544: 8c7b ldrh r3, [r7, #34] ; 0x22 + 8005546: 3310 adds r3, #16 + 8005548: 6a7a ldr r2, [r7, #36] ; 0x24 + 800554a: 4413 add r3, r2 + 800554c: 3303 adds r3, #3 + 800554e: f023 0303 bic.w r3, r3, #3 + 8005552: 4618 mov r0, r3 + 8005554: 88b9 ldrh r1, [r7, #4] + 8005556: 88ba ldrh r2, [r7, #4] + 8005558: 2300 movs r3, #0 + 800555a: 9301 str r3, [sp, #4] + 800555c: 887b ldrh r3, [r7, #2] + 800555e: 9300 str r3, [sp, #0] + 8005560: 460b mov r3, r1 + 8005562: 4601 mov r1, r0 + 8005564: 6a78 ldr r0, [r7, #36] ; 0x24 + 8005566: f7ff ff09 bl 800537c length, length, type, 0); LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned", - 800556e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8005570: 685b ldr r3, [r3, #4] - 8005572: f003 0303 and.w r3, r3, #3 - 8005576: 2b00 cmp r3, #0 - 8005578: d010 beq.n 800559c - 800557a: 4b0b ldr r3, [pc, #44] ; (80055a8 ) - 800557c: f44f 7291 mov.w r2, #290 ; 0x122 - 8005580: 490d ldr r1, [pc, #52] ; (80055b8 ) - 8005582: 480b ldr r0, [pc, #44] ; (80055b0 ) - 8005584: f00a ff26 bl 80103d4 + 800556a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800556c: 685b ldr r3, [r3, #4] + 800556e: f003 0303 and.w r3, r3, #3 + 8005572: 2b00 cmp r3, #0 + 8005574: d010 beq.n 8005598 + 8005576: 4b0b ldr r3, [pc, #44] ; (80055a4 ) + 8005578: f44f 7291 mov.w r2, #290 ; 0x122 + 800557c: 490d ldr r1, [pc, #52] ; (80055b4 ) + 800557e: 480b ldr r0, [pc, #44] ; (80055ac ) + 8005580: f00a ff26 bl 80103d0 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0); break; - 8005588: e008 b.n 800559c + 8005584: e008 b.n 8005598 } default: LWIP_ASSERT("pbuf_alloc: erroneous type", 0); - 800558a: 4b07 ldr r3, [pc, #28] ; (80055a8 ) - 800558c: f240 1227 movw r2, #295 ; 0x127 - 8005590: 490a ldr r1, [pc, #40] ; (80055bc ) - 8005592: 4807 ldr r0, [pc, #28] ; (80055b0 ) - 8005594: f00a ff1e bl 80103d4 + 8005586: 4b07 ldr r3, [pc, #28] ; (80055a4 ) + 8005588: f240 1227 movw r2, #295 ; 0x127 + 800558c: 490a ldr r1, [pc, #40] ; (80055b8 ) + 800558e: 4807 ldr r0, [pc, #28] ; (80055ac ) + 8005590: f00a ff1e bl 80103d0 return NULL; - 8005598: 2300 movs r3, #0 - 800559a: e001 b.n 80055a0 + 8005594: 2300 movs r3, #0 + 8005596: e001 b.n 800559c break; - 800559c: bf00 nop + 8005598: bf00 nop } LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p)); return p; - 800559e: 6a7b ldr r3, [r7, #36] ; 0x24 + 800559a: 6a7b ldr r3, [r7, #36] ; 0x24 } - 80055a0: 4618 mov r0, r3 - 80055a2: 3728 adds r7, #40 ; 0x28 - 80055a4: 46bd mov sp, r7 - 80055a6: bd80 pop {r7, pc} - 80055a8: 080154bc .word 0x080154bc - 80055ac: 080154ec .word 0x080154ec - 80055b0: 0801551c .word 0x0801551c - 80055b4: 08015544 .word 0x08015544 - 80055b8: 08015578 .word 0x08015578 - 80055bc: 080155a4 .word 0x080155a4 + 800559c: 4618 mov r0, r3 + 800559e: 3728 adds r7, #40 ; 0x28 + 80055a0: 46bd mov sp, r7 + 80055a2: bd80 pop {r7, pc} + 80055a4: 080154bc .word 0x080154bc + 80055a8: 080154ec .word 0x080154ec + 80055ac: 0801551c .word 0x0801551c + 80055b0: 08015544 .word 0x08015544 + 80055b4: 08015578 .word 0x08015578 + 80055b8: 080155a4 .word 0x080155a4 -080055c0 : +080055bc : * * @return the allocated pbuf. */ struct pbuf * pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type) { - 80055c0: b580 push {r7, lr} - 80055c2: b086 sub sp, #24 - 80055c4: af02 add r7, sp, #8 - 80055c6: 6078 str r0, [r7, #4] - 80055c8: 460b mov r3, r1 - 80055ca: 807b strh r3, [r7, #2] - 80055cc: 4613 mov r3, r2 - 80055ce: 803b strh r3, [r7, #0] + 80055bc: b580 push {r7, lr} + 80055be: b086 sub sp, #24 + 80055c0: af02 add r7, sp, #8 + 80055c2: 6078 str r0, [r7, #4] + 80055c4: 460b mov r3, r1 + 80055c6: 807b strh r3, [r7, #2] + 80055c8: 4613 mov r3, r2 + 80055ca: 803b strh r3, [r7, #0] struct pbuf *p; LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM)); - 80055d0: 883b ldrh r3, [r7, #0] - 80055d2: 2b41 cmp r3, #65 ; 0x41 - 80055d4: d009 beq.n 80055ea - 80055d6: 883b ldrh r3, [r7, #0] - 80055d8: 2b01 cmp r3, #1 - 80055da: d006 beq.n 80055ea - 80055dc: 4b0f ldr r3, [pc, #60] ; (800561c ) - 80055de: f44f 72a5 mov.w r2, #330 ; 0x14a - 80055e2: 490f ldr r1, [pc, #60] ; (8005620 ) - 80055e4: 480f ldr r0, [pc, #60] ; (8005624 ) - 80055e6: f00a fef5 bl 80103d4 + 80055cc: 883b ldrh r3, [r7, #0] + 80055ce: 2b41 cmp r3, #65 ; 0x41 + 80055d0: d009 beq.n 80055e6 + 80055d2: 883b ldrh r3, [r7, #0] + 80055d4: 2b01 cmp r3, #1 + 80055d6: d006 beq.n 80055e6 + 80055d8: 4b0f ldr r3, [pc, #60] ; (8005618 ) + 80055da: f44f 72a5 mov.w r2, #330 ; 0x14a + 80055de: 490f ldr r1, [pc, #60] ; (800561c ) + 80055e0: 480f ldr r0, [pc, #60] ; (8005620 ) + 80055e2: f00a fef5 bl 80103d0 /* only allocate memory for the pbuf structure */ p = (struct pbuf *)memp_malloc(MEMP_PBUF); - 80055ea: 2007 movs r0, #7 - 80055ec: f7ff fae4 bl 8004bb8 - 80055f0: 60f8 str r0, [r7, #12] + 80055e6: 2007 movs r0, #7 + 80055e8: f7ff fae4 bl 8004bb4 + 80055ec: 60f8 str r0, [r7, #12] if (p == NULL) { - 80055f2: 68fb ldr r3, [r7, #12] - 80055f4: 2b00 cmp r3, #0 - 80055f6: d101 bne.n 80055fc + 80055ee: 68fb ldr r3, [r7, #12] + 80055f0: 2b00 cmp r3, #0 + 80055f2: d101 bne.n 80055f8 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("pbuf_alloc_reference: Could not allocate MEMP_PBUF for PBUF_%s.\n", (type == PBUF_ROM) ? "ROM" : "REF")); return NULL; - 80055f8: 2300 movs r3, #0 - 80055fa: e00b b.n 8005614 + 80055f4: 2300 movs r3, #0 + 80055f6: e00b b.n 8005610 } pbuf_init_alloced_pbuf(p, payload, length, length, type, 0); - 80055fc: 8879 ldrh r1, [r7, #2] - 80055fe: 887a ldrh r2, [r7, #2] - 8005600: 2300 movs r3, #0 - 8005602: 9301 str r3, [sp, #4] - 8005604: 883b ldrh r3, [r7, #0] - 8005606: 9300 str r3, [sp, #0] - 8005608: 460b mov r3, r1 - 800560a: 6879 ldr r1, [r7, #4] - 800560c: 68f8 ldr r0, [r7, #12] - 800560e: f7ff feb7 bl 8005380 + 80055f8: 8879 ldrh r1, [r7, #2] + 80055fa: 887a ldrh r2, [r7, #2] + 80055fc: 2300 movs r3, #0 + 80055fe: 9301 str r3, [sp, #4] + 8005600: 883b ldrh r3, [r7, #0] + 8005602: 9300 str r3, [sp, #0] + 8005604: 460b mov r3, r1 + 8005606: 6879 ldr r1, [r7, #4] + 8005608: 68f8 ldr r0, [r7, #12] + 800560a: f7ff feb7 bl 800537c return p; - 8005612: 68fb ldr r3, [r7, #12] + 800560e: 68fb ldr r3, [r7, #12] } - 8005614: 4618 mov r0, r3 - 8005616: 3710 adds r7, #16 - 8005618: 46bd mov sp, r7 - 800561a: bd80 pop {r7, pc} - 800561c: 080154bc .word 0x080154bc - 8005620: 080155c0 .word 0x080155c0 - 8005624: 0801551c .word 0x0801551c + 8005610: 4618 mov r0, r3 + 8005612: 3710 adds r7, #16 + 8005614: 46bd mov sp, r7 + 8005616: bd80 pop {r7, pc} + 8005618: 080154bc .word 0x080154bc + 800561c: 080155c0 .word 0x080155c0 + 8005620: 0801551c .word 0x0801551c -08005628 : +08005624 : * big enough to hold 'length' plus the header size */ struct pbuf * pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p, void *payload_mem, u16_t payload_mem_len) { - 8005628: b580 push {r7, lr} - 800562a: b088 sub sp, #32 - 800562c: af02 add r7, sp, #8 - 800562e: 607b str r3, [r7, #4] - 8005630: 4603 mov r3, r0 - 8005632: 73fb strb r3, [r7, #15] - 8005634: 460b mov r3, r1 - 8005636: 81bb strh r3, [r7, #12] - 8005638: 4613 mov r3, r2 - 800563a: 817b strh r3, [r7, #10] + 8005624: b580 push {r7, lr} + 8005626: b088 sub sp, #32 + 8005628: af02 add r7, sp, #8 + 800562a: 607b str r3, [r7, #4] + 800562c: 4603 mov r3, r0 + 800562e: 73fb strb r3, [r7, #15] + 8005630: 460b mov r3, r1 + 8005632: 81bb strh r3, [r7, #12] + 8005634: 4613 mov r3, r2 + 8005636: 817b strh r3, [r7, #10] u16_t offset = (u16_t)l; - 800563c: 7bfb ldrb r3, [r7, #15] - 800563e: 827b strh r3, [r7, #18] + 8005638: 7bfb ldrb r3, [r7, #15] + 800563a: 827b strh r3, [r7, #18] void *payload; LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloced_custom(length=%"U16_F")\n", length)); if (LWIP_MEM_ALIGN_SIZE(offset) + length > payload_mem_len) { - 8005640: 8a7b ldrh r3, [r7, #18] - 8005642: 3303 adds r3, #3 - 8005644: f023 0203 bic.w r2, r3, #3 - 8005648: 89bb ldrh r3, [r7, #12] - 800564a: 441a add r2, r3 - 800564c: 8cbb ldrh r3, [r7, #36] ; 0x24 - 800564e: 429a cmp r2, r3 - 8005650: d901 bls.n 8005656 + 800563c: 8a7b ldrh r3, [r7, #18] + 800563e: 3303 adds r3, #3 + 8005640: f023 0203 bic.w r2, r3, #3 + 8005644: 89bb ldrh r3, [r7, #12] + 8005646: 441a add r2, r3 + 8005648: 8cbb ldrh r3, [r7, #36] ; 0x24 + 800564a: 429a cmp r2, r3 + 800564c: d901 bls.n 8005652 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length)); return NULL; - 8005652: 2300 movs r3, #0 - 8005654: e018 b.n 8005688 + 800564e: 2300 movs r3, #0 + 8005650: e018 b.n 8005684 } if (payload_mem != NULL) { - 8005656: 6a3b ldr r3, [r7, #32] - 8005658: 2b00 cmp r3, #0 - 800565a: d007 beq.n 800566c + 8005652: 6a3b ldr r3, [r7, #32] + 8005654: 2b00 cmp r3, #0 + 8005656: d007 beq.n 8005668 payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset); - 800565c: 8a7b ldrh r3, [r7, #18] - 800565e: 3303 adds r3, #3 - 8005660: f023 0303 bic.w r3, r3, #3 - 8005664: 6a3a ldr r2, [r7, #32] - 8005666: 4413 add r3, r2 - 8005668: 617b str r3, [r7, #20] - 800566a: e001 b.n 8005670 + 8005658: 8a7b ldrh r3, [r7, #18] + 800565a: 3303 adds r3, #3 + 800565c: f023 0303 bic.w r3, r3, #3 + 8005660: 6a3a ldr r2, [r7, #32] + 8005662: 4413 add r3, r2 + 8005664: 617b str r3, [r7, #20] + 8005666: e001 b.n 800566c } else { payload = NULL; - 800566c: 2300 movs r3, #0 - 800566e: 617b str r3, [r7, #20] + 8005668: 2300 movs r3, #0 + 800566a: 617b str r3, [r7, #20] } pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM); - 8005670: 6878 ldr r0, [r7, #4] - 8005672: 89b9 ldrh r1, [r7, #12] - 8005674: 89ba ldrh r2, [r7, #12] - 8005676: 2302 movs r3, #2 - 8005678: 9301 str r3, [sp, #4] - 800567a: 897b ldrh r3, [r7, #10] - 800567c: 9300 str r3, [sp, #0] - 800567e: 460b mov r3, r1 - 8005680: 6979 ldr r1, [r7, #20] - 8005682: f7ff fe7d bl 8005380 + 800566c: 6878 ldr r0, [r7, #4] + 800566e: 89b9 ldrh r1, [r7, #12] + 8005670: 89ba ldrh r2, [r7, #12] + 8005672: 2302 movs r3, #2 + 8005674: 9301 str r3, [sp, #4] + 8005676: 897b ldrh r3, [r7, #10] + 8005678: 9300 str r3, [sp, #0] + 800567a: 460b mov r3, r1 + 800567c: 6979 ldr r1, [r7, #20] + 800567e: f7ff fe7d bl 800537c return &p->pbuf; - 8005686: 687b ldr r3, [r7, #4] + 8005682: 687b ldr r3, [r7, #4] } - 8005688: 4618 mov r0, r3 - 800568a: 3718 adds r7, #24 - 800568c: 46bd mov sp, r7 - 800568e: bd80 pop {r7, pc} + 8005684: 4618 mov r0, r3 + 8005686: 3718 adds r7, #24 + 8005688: 46bd mov sp, r7 + 800568a: bd80 pop {r7, pc} -08005690 : +0800568c : * * @note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain). */ void pbuf_realloc(struct pbuf *p, u16_t new_len) { - 8005690: b580 push {r7, lr} - 8005692: b084 sub sp, #16 - 8005694: af00 add r7, sp, #0 - 8005696: 6078 str r0, [r7, #4] - 8005698: 460b mov r3, r1 - 800569a: 807b strh r3, [r7, #2] + 800568c: b580 push {r7, lr} + 800568e: b084 sub sp, #16 + 8005690: af00 add r7, sp, #0 + 8005692: 6078 str r0, [r7, #4] + 8005694: 460b mov r3, r1 + 8005696: 807b strh r3, [r7, #2] struct pbuf *q; u16_t rem_len; /* remaining length */ u16_t shrink; LWIP_ASSERT("pbuf_realloc: p != NULL", p != NULL); - 800569c: 687b ldr r3, [r7, #4] - 800569e: 2b00 cmp r3, #0 - 80056a0: d106 bne.n 80056b0 - 80056a2: 4b3a ldr r3, [pc, #232] ; (800578c ) - 80056a4: f44f 72cc mov.w r2, #408 ; 0x198 - 80056a8: 4939 ldr r1, [pc, #228] ; (8005790 ) - 80056aa: 483a ldr r0, [pc, #232] ; (8005794 ) - 80056ac: f00a fe92 bl 80103d4 + 8005698: 687b ldr r3, [r7, #4] + 800569a: 2b00 cmp r3, #0 + 800569c: d106 bne.n 80056ac + 800569e: 4b3a ldr r3, [pc, #232] ; (8005788 ) + 80056a0: f44f 72cc mov.w r2, #408 ; 0x198 + 80056a4: 4939 ldr r1, [pc, #228] ; (800578c ) + 80056a6: 483a ldr r0, [pc, #232] ; (8005790 ) + 80056a8: f00a fe92 bl 80103d0 /* desired length larger than current length? */ if (new_len >= p->tot_len) { - 80056b0: 687b ldr r3, [r7, #4] - 80056b2: 891b ldrh r3, [r3, #8] - 80056b4: 887a ldrh r2, [r7, #2] - 80056b6: 429a cmp r2, r3 - 80056b8: d263 bcs.n 8005782 + 80056ac: 687b ldr r3, [r7, #4] + 80056ae: 891b ldrh r3, [r3, #8] + 80056b0: 887a ldrh r2, [r7, #2] + 80056b2: 429a cmp r2, r3 + 80056b4: d263 bcs.n 800577e return; } /* the pbuf chain grows by (new_len - p->tot_len) bytes * (which may be negative in case of shrinking) */ shrink = (u16_t)(p->tot_len - new_len); - 80056ba: 687b ldr r3, [r7, #4] - 80056bc: 891a ldrh r2, [r3, #8] - 80056be: 887b ldrh r3, [r7, #2] - 80056c0: 1ad3 subs r3, r2, r3 - 80056c2: 813b strh r3, [r7, #8] + 80056b6: 687b ldr r3, [r7, #4] + 80056b8: 891a ldrh r2, [r3, #8] + 80056ba: 887b ldrh r3, [r7, #2] + 80056bc: 1ad3 subs r3, r2, r3 + 80056be: 813b strh r3, [r7, #8] /* first, step over any pbufs that should remain in the chain */ rem_len = new_len; - 80056c4: 887b ldrh r3, [r7, #2] - 80056c6: 817b strh r3, [r7, #10] + 80056c0: 887b ldrh r3, [r7, #2] + 80056c2: 817b strh r3, [r7, #10] q = p; - 80056c8: 687b ldr r3, [r7, #4] - 80056ca: 60fb str r3, [r7, #12] + 80056c4: 687b ldr r3, [r7, #4] + 80056c6: 60fb str r3, [r7, #12] /* should this pbuf be kept? */ while (rem_len > q->len) { - 80056cc: e018 b.n 8005700 + 80056c8: e018 b.n 80056fc /* decrease remaining length by pbuf length */ rem_len = (u16_t)(rem_len - q->len); - 80056ce: 68fb ldr r3, [r7, #12] - 80056d0: 895b ldrh r3, [r3, #10] - 80056d2: 897a ldrh r2, [r7, #10] - 80056d4: 1ad3 subs r3, r2, r3 - 80056d6: 817b strh r3, [r7, #10] + 80056ca: 68fb ldr r3, [r7, #12] + 80056cc: 895b ldrh r3, [r3, #10] + 80056ce: 897a ldrh r2, [r7, #10] + 80056d0: 1ad3 subs r3, r2, r3 + 80056d2: 817b strh r3, [r7, #10] /* decrease total length indicator */ q->tot_len = (u16_t)(q->tot_len - shrink); - 80056d8: 68fb ldr r3, [r7, #12] - 80056da: 891a ldrh r2, [r3, #8] - 80056dc: 893b ldrh r3, [r7, #8] - 80056de: 1ad3 subs r3, r2, r3 - 80056e0: b29a uxth r2, r3 - 80056e2: 68fb ldr r3, [r7, #12] - 80056e4: 811a strh r2, [r3, #8] + 80056d4: 68fb ldr r3, [r7, #12] + 80056d6: 891a ldrh r2, [r3, #8] + 80056d8: 893b ldrh r3, [r7, #8] + 80056da: 1ad3 subs r3, r2, r3 + 80056dc: b29a uxth r2, r3 + 80056de: 68fb ldr r3, [r7, #12] + 80056e0: 811a strh r2, [r3, #8] /* proceed to next pbuf in chain */ q = q->next; - 80056e6: 68fb ldr r3, [r7, #12] - 80056e8: 681b ldr r3, [r3, #0] - 80056ea: 60fb str r3, [r7, #12] + 80056e2: 68fb ldr r3, [r7, #12] + 80056e4: 681b ldr r3, [r3, #0] + 80056e6: 60fb str r3, [r7, #12] LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL); - 80056ec: 68fb ldr r3, [r7, #12] - 80056ee: 2b00 cmp r3, #0 - 80056f0: d106 bne.n 8005700 - 80056f2: 4b26 ldr r3, [pc, #152] ; (800578c ) - 80056f4: f240 12af movw r2, #431 ; 0x1af - 80056f8: 4927 ldr r1, [pc, #156] ; (8005798 ) - 80056fa: 4826 ldr r0, [pc, #152] ; (8005794 ) - 80056fc: f00a fe6a bl 80103d4 + 80056e8: 68fb ldr r3, [r7, #12] + 80056ea: 2b00 cmp r3, #0 + 80056ec: d106 bne.n 80056fc + 80056ee: 4b26 ldr r3, [pc, #152] ; (8005788 ) + 80056f0: f240 12af movw r2, #431 ; 0x1af + 80056f4: 4927 ldr r1, [pc, #156] ; (8005794 ) + 80056f6: 4826 ldr r0, [pc, #152] ; (8005790 ) + 80056f8: f00a fe6a bl 80103d0 while (rem_len > q->len) { - 8005700: 68fb ldr r3, [r7, #12] - 8005702: 895b ldrh r3, [r3, #10] - 8005704: 897a ldrh r2, [r7, #10] - 8005706: 429a cmp r2, r3 - 8005708: d8e1 bhi.n 80056ce + 80056fc: 68fb ldr r3, [r7, #12] + 80056fe: 895b ldrh r3, [r3, #10] + 8005700: 897a ldrh r2, [r7, #10] + 8005702: 429a cmp r2, r3 + 8005704: d8e1 bhi.n 80056ca /* we have now reached the new last pbuf (in q) */ /* rem_len == desired length for pbuf q */ /* shrink allocated memory for PBUF_RAM */ /* (other types merely adjust their length fields */ if (pbuf_match_allocsrc(q, PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) && (rem_len != q->len) - 800570a: 68fb ldr r3, [r7, #12] - 800570c: 7b1b ldrb r3, [r3, #12] - 800570e: f003 030f and.w r3, r3, #15 - 8005712: 2b00 cmp r3, #0 - 8005714: d121 bne.n 800575a - 8005716: 68fb ldr r3, [r7, #12] - 8005718: 895b ldrh r3, [r3, #10] - 800571a: 897a ldrh r2, [r7, #10] - 800571c: 429a cmp r2, r3 - 800571e: d01c beq.n 800575a + 8005706: 68fb ldr r3, [r7, #12] + 8005708: 7b1b ldrb r3, [r3, #12] + 800570a: f003 030f and.w r3, r3, #15 + 800570e: 2b00 cmp r3, #0 + 8005710: d121 bne.n 8005756 + 8005712: 68fb ldr r3, [r7, #12] + 8005714: 895b ldrh r3, [r3, #10] + 8005716: 897a ldrh r2, [r7, #10] + 8005718: 429a cmp r2, r3 + 800571a: d01c beq.n 8005756 #if LWIP_SUPPORT_CUSTOM_PBUF && ((q->flags & PBUF_FLAG_IS_CUSTOM) == 0) - 8005720: 68fb ldr r3, [r7, #12] - 8005722: 7b5b ldrb r3, [r3, #13] - 8005724: f003 0302 and.w r3, r3, #2 - 8005728: 2b00 cmp r3, #0 - 800572a: d116 bne.n 800575a + 800571c: 68fb ldr r3, [r7, #12] + 800571e: 7b5b ldrb r3, [r3, #13] + 8005720: f003 0302 and.w r3, r3, #2 + 8005724: 2b00 cmp r3, #0 + 8005726: d116 bne.n 8005756 #endif /* LWIP_SUPPORT_CUSTOM_PBUF */ ) { /* reallocate and adjust the length of the pbuf that will be split */ q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len)); + 8005728: 68fb ldr r3, [r7, #12] + 800572a: 685a ldr r2, [r3, #4] 800572c: 68fb ldr r3, [r7, #12] - 800572e: 685a ldr r2, [r3, #4] - 8005730: 68fb ldr r3, [r7, #12] - 8005732: 1ad3 subs r3, r2, r3 - 8005734: b29a uxth r2, r3 - 8005736: 897b ldrh r3, [r7, #10] - 8005738: 4413 add r3, r2 - 800573a: b29b uxth r3, r3 - 800573c: 4619 mov r1, r3 - 800573e: 68f8 ldr r0, [r7, #12] - 8005740: f7fe ffae bl 80046a0 - 8005744: 60f8 str r0, [r7, #12] + 800572e: 1ad3 subs r3, r2, r3 + 8005730: b29a uxth r2, r3 + 8005732: 897b ldrh r3, [r7, #10] + 8005734: 4413 add r3, r2 + 8005736: b29b uxth r3, r3 + 8005738: 4619 mov r1, r3 + 800573a: 68f8 ldr r0, [r7, #12] + 800573c: f7fe ffae bl 800469c + 8005740: 60f8 str r0, [r7, #12] LWIP_ASSERT("mem_trim returned q == NULL", q != NULL); - 8005746: 68fb ldr r3, [r7, #12] - 8005748: 2b00 cmp r3, #0 - 800574a: d106 bne.n 800575a - 800574c: 4b0f ldr r3, [pc, #60] ; (800578c ) - 800574e: f240 12bd movw r2, #445 ; 0x1bd - 8005752: 4912 ldr r1, [pc, #72] ; (800579c ) - 8005754: 480f ldr r0, [pc, #60] ; (8005794 ) - 8005756: f00a fe3d bl 80103d4 + 8005742: 68fb ldr r3, [r7, #12] + 8005744: 2b00 cmp r3, #0 + 8005746: d106 bne.n 8005756 + 8005748: 4b0f ldr r3, [pc, #60] ; (8005788 ) + 800574a: f240 12bd movw r2, #445 ; 0x1bd + 800574e: 4912 ldr r1, [pc, #72] ; (8005798 ) + 8005750: 480f ldr r0, [pc, #60] ; (8005790 ) + 8005752: f00a fe3d bl 80103d0 } /* adjust length fields for new last pbuf */ q->len = rem_len; - 800575a: 68fb ldr r3, [r7, #12] - 800575c: 897a ldrh r2, [r7, #10] - 800575e: 815a strh r2, [r3, #10] + 8005756: 68fb ldr r3, [r7, #12] + 8005758: 897a ldrh r2, [r7, #10] + 800575a: 815a strh r2, [r3, #10] q->tot_len = q->len; + 800575c: 68fb ldr r3, [r7, #12] + 800575e: 895a ldrh r2, [r3, #10] 8005760: 68fb ldr r3, [r7, #12] - 8005762: 895a ldrh r2, [r3, #10] - 8005764: 68fb ldr r3, [r7, #12] - 8005766: 811a strh r2, [r3, #8] + 8005762: 811a strh r2, [r3, #8] /* any remaining pbufs in chain? */ if (q->next != NULL) { - 8005768: 68fb ldr r3, [r7, #12] - 800576a: 681b ldr r3, [r3, #0] - 800576c: 2b00 cmp r3, #0 - 800576e: d004 beq.n 800577a + 8005764: 68fb ldr r3, [r7, #12] + 8005766: 681b ldr r3, [r3, #0] + 8005768: 2b00 cmp r3, #0 + 800576a: d004 beq.n 8005776 /* free remaining pbufs in chain */ pbuf_free(q->next); - 8005770: 68fb ldr r3, [r7, #12] - 8005772: 681b ldr r3, [r3, #0] - 8005774: 4618 mov r0, r3 - 8005776: f000 f911 bl 800599c + 800576c: 68fb ldr r3, [r7, #12] + 800576e: 681b ldr r3, [r3, #0] + 8005770: 4618 mov r0, r3 + 8005772: f000 f911 bl 8005998 } /* q is last packet in chain */ q->next = NULL; - 800577a: 68fb ldr r3, [r7, #12] - 800577c: 2200 movs r2, #0 - 800577e: 601a str r2, [r3, #0] - 8005780: e000 b.n 8005784 + 8005776: 68fb ldr r3, [r7, #12] + 8005778: 2200 movs r2, #0 + 800577a: 601a str r2, [r3, #0] + 800577c: e000 b.n 8005780 return; - 8005782: bf00 nop + 800577e: bf00 nop } - 8005784: 3710 adds r7, #16 - 8005786: 46bd mov sp, r7 - 8005788: bd80 pop {r7, pc} - 800578a: bf00 nop - 800578c: 080154bc .word 0x080154bc - 8005790: 080155d4 .word 0x080155d4 - 8005794: 0801551c .word 0x0801551c - 8005798: 080155ec .word 0x080155ec - 800579c: 08015604 .word 0x08015604 + 8005780: 3710 adds r7, #16 + 8005782: 46bd mov sp, r7 + 8005784: bd80 pop {r7, pc} + 8005786: bf00 nop + 8005788: 080154bc .word 0x080154bc + 800578c: 080155d4 .word 0x080155d4 + 8005790: 0801551c .word 0x0801551c + 8005794: 080155ec .word 0x080155ec + 8005798: 08015604 .word 0x08015604 -080057a0 : +0800579c : * @return non-zero on failure, zero on success. * */ static u8_t pbuf_add_header_impl(struct pbuf *p, size_t header_size_increment, u8_t force) { - 80057a0: b580 push {r7, lr} - 80057a2: b086 sub sp, #24 - 80057a4: af00 add r7, sp, #0 - 80057a6: 60f8 str r0, [r7, #12] - 80057a8: 60b9 str r1, [r7, #8] - 80057aa: 4613 mov r3, r2 - 80057ac: 71fb strb r3, [r7, #7] + 800579c: b580 push {r7, lr} + 800579e: b086 sub sp, #24 + 80057a0: af00 add r7, sp, #0 + 80057a2: 60f8 str r0, [r7, #12] + 80057a4: 60b9 str r1, [r7, #8] + 80057a6: 4613 mov r3, r2 + 80057a8: 71fb strb r3, [r7, #7] u16_t type_internal; void *payload; u16_t increment_magnitude; LWIP_ASSERT("p != NULL", p != NULL); - 80057ae: 68fb ldr r3, [r7, #12] - 80057b0: 2b00 cmp r3, #0 - 80057b2: d106 bne.n 80057c2 - 80057b4: 4b2b ldr r3, [pc, #172] ; (8005864 ) - 80057b6: f240 12df movw r2, #479 ; 0x1df - 80057ba: 492b ldr r1, [pc, #172] ; (8005868 ) - 80057bc: 482b ldr r0, [pc, #172] ; (800586c ) - 80057be: f00a fe09 bl 80103d4 + 80057aa: 68fb ldr r3, [r7, #12] + 80057ac: 2b00 cmp r3, #0 + 80057ae: d106 bne.n 80057be + 80057b0: 4b2b ldr r3, [pc, #172] ; (8005860 ) + 80057b2: f240 12df movw r2, #479 ; 0x1df + 80057b6: 492b ldr r1, [pc, #172] ; (8005864 ) + 80057b8: 482b ldr r0, [pc, #172] ; (8005868 ) + 80057ba: f00a fe09 bl 80103d0 if ((p == NULL) || (header_size_increment > 0xFFFF)) { - 80057c2: 68fb ldr r3, [r7, #12] - 80057c4: 2b00 cmp r3, #0 - 80057c6: d003 beq.n 80057d0 - 80057c8: 68bb ldr r3, [r7, #8] - 80057ca: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80057ce: d301 bcc.n 80057d4 + 80057be: 68fb ldr r3, [r7, #12] + 80057c0: 2b00 cmp r3, #0 + 80057c2: d003 beq.n 80057cc + 80057c4: 68bb ldr r3, [r7, #8] + 80057c6: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 80057ca: d301 bcc.n 80057d0 return 1; - 80057d0: 2301 movs r3, #1 - 80057d2: e043 b.n 800585c + 80057cc: 2301 movs r3, #1 + 80057ce: e043 b.n 8005858 } if (header_size_increment == 0) { - 80057d4: 68bb ldr r3, [r7, #8] - 80057d6: 2b00 cmp r3, #0 - 80057d8: d101 bne.n 80057de + 80057d0: 68bb ldr r3, [r7, #8] + 80057d2: 2b00 cmp r3, #0 + 80057d4: d101 bne.n 80057da return 0; - 80057da: 2300 movs r3, #0 - 80057dc: e03e b.n 800585c + 80057d6: 2300 movs r3, #0 + 80057d8: e03e b.n 8005858 } increment_magnitude = (u16_t)header_size_increment; - 80057de: 68bb ldr r3, [r7, #8] - 80057e0: 827b strh r3, [r7, #18] + 80057da: 68bb ldr r3, [r7, #8] + 80057dc: 827b strh r3, [r7, #18] /* Do not allow tot_len to wrap as a result. */ if ((u16_t)(increment_magnitude + p->tot_len) < increment_magnitude) { - 80057e2: 68fb ldr r3, [r7, #12] - 80057e4: 891a ldrh r2, [r3, #8] - 80057e6: 8a7b ldrh r3, [r7, #18] - 80057e8: 4413 add r3, r2 - 80057ea: b29b uxth r3, r3 - 80057ec: 8a7a ldrh r2, [r7, #18] - 80057ee: 429a cmp r2, r3 - 80057f0: d901 bls.n 80057f6 + 80057de: 68fb ldr r3, [r7, #12] + 80057e0: 891a ldrh r2, [r3, #8] + 80057e2: 8a7b ldrh r3, [r7, #18] + 80057e4: 4413 add r3, r2 + 80057e6: b29b uxth r3, r3 + 80057e8: 8a7a ldrh r2, [r7, #18] + 80057ea: 429a cmp r2, r3 + 80057ec: d901 bls.n 80057f2 return 1; - 80057f2: 2301 movs r3, #1 - 80057f4: e032 b.n 800585c + 80057ee: 2301 movs r3, #1 + 80057f0: e032 b.n 8005858 } type_internal = p->type_internal; - 80057f6: 68fb ldr r3, [r7, #12] - 80057f8: 7b1b ldrb r3, [r3, #12] - 80057fa: 823b strh r3, [r7, #16] + 80057f2: 68fb ldr r3, [r7, #12] + 80057f4: 7b1b ldrb r3, [r3, #12] + 80057f6: 823b strh r3, [r7, #16] /* pbuf types containing payloads? */ if (type_internal & PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS) { - 80057fc: 8a3b ldrh r3, [r7, #16] - 80057fe: f003 0380 and.w r3, r3, #128 ; 0x80 - 8005802: 2b00 cmp r3, #0 - 8005804: d00c beq.n 8005820 + 80057f8: 8a3b ldrh r3, [r7, #16] + 80057fa: f003 0380 and.w r3, r3, #128 ; 0x80 + 80057fe: 2b00 cmp r3, #0 + 8005800: d00c beq.n 800581c /* set new payload pointer */ payload = (u8_t *)p->payload - header_size_increment; - 8005806: 68fb ldr r3, [r7, #12] - 8005808: 685a ldr r2, [r3, #4] - 800580a: 68bb ldr r3, [r7, #8] - 800580c: 425b negs r3, r3 - 800580e: 4413 add r3, r2 - 8005810: 617b str r3, [r7, #20] + 8005802: 68fb ldr r3, [r7, #12] + 8005804: 685a ldr r2, [r3, #4] + 8005806: 68bb ldr r3, [r7, #8] + 8005808: 425b negs r3, r3 + 800580a: 4413 add r3, r2 + 800580c: 617b str r3, [r7, #20] /* boundary check fails? */ if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) { - 8005812: 68fb ldr r3, [r7, #12] - 8005814: 3310 adds r3, #16 - 8005816: 697a ldr r2, [r7, #20] - 8005818: 429a cmp r2, r3 - 800581a: d20d bcs.n 8005838 + 800580e: 68fb ldr r3, [r7, #12] + 8005810: 3310 adds r3, #16 + 8005812: 697a ldr r2, [r7, #20] + 8005814: 429a cmp r2, r3 + 8005816: d20d bcs.n 8005834 LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_add_header: failed as %p < %p (not enough space for new header size)\n", (void *)payload, (void *)((u8_t *)p + SIZEOF_STRUCT_PBUF))); /* bail out unsuccessfully */ return 1; - 800581c: 2301 movs r3, #1 - 800581e: e01d b.n 800585c + 8005818: 2301 movs r3, #1 + 800581a: e01d b.n 8005858 } /* pbuf types referring to external payloads? */ } else { /* hide a header in the payload? */ if (force) { - 8005820: 79fb ldrb r3, [r7, #7] - 8005822: 2b00 cmp r3, #0 - 8005824: d006 beq.n 8005834 + 800581c: 79fb ldrb r3, [r7, #7] + 800581e: 2b00 cmp r3, #0 + 8005820: d006 beq.n 8005830 payload = (u8_t *)p->payload - header_size_increment; - 8005826: 68fb ldr r3, [r7, #12] - 8005828: 685a ldr r2, [r3, #4] - 800582a: 68bb ldr r3, [r7, #8] - 800582c: 425b negs r3, r3 - 800582e: 4413 add r3, r2 - 8005830: 617b str r3, [r7, #20] - 8005832: e001 b.n 8005838 + 8005822: 68fb ldr r3, [r7, #12] + 8005824: 685a ldr r2, [r3, #4] + 8005826: 68bb ldr r3, [r7, #8] + 8005828: 425b negs r3, r3 + 800582a: 4413 add r3, r2 + 800582c: 617b str r3, [r7, #20] + 800582e: e001 b.n 8005834 } else { /* cannot expand payload to front (yet!) * bail out unsuccessfully */ return 1; - 8005834: 2301 movs r3, #1 - 8005836: e011 b.n 800585c + 8005830: 2301 movs r3, #1 + 8005832: e011 b.n 8005858 } LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_add_header: old %p new %p (%"U16_F")\n", (void *)p->payload, (void *)payload, increment_magnitude)); /* modify pbuf fields */ p->payload = payload; - 8005838: 68fb ldr r3, [r7, #12] - 800583a: 697a ldr r2, [r7, #20] - 800583c: 605a str r2, [r3, #4] + 8005834: 68fb ldr r3, [r7, #12] + 8005836: 697a ldr r2, [r7, #20] + 8005838: 605a str r2, [r3, #4] p->len = (u16_t)(p->len + increment_magnitude); - 800583e: 68fb ldr r3, [r7, #12] - 8005840: 895a ldrh r2, [r3, #10] - 8005842: 8a7b ldrh r3, [r7, #18] - 8005844: 4413 add r3, r2 - 8005846: b29a uxth r2, r3 - 8005848: 68fb ldr r3, [r7, #12] - 800584a: 815a strh r2, [r3, #10] + 800583a: 68fb ldr r3, [r7, #12] + 800583c: 895a ldrh r2, [r3, #10] + 800583e: 8a7b ldrh r3, [r7, #18] + 8005840: 4413 add r3, r2 + 8005842: b29a uxth r2, r3 + 8005844: 68fb ldr r3, [r7, #12] + 8005846: 815a strh r2, [r3, #10] p->tot_len = (u16_t)(p->tot_len + increment_magnitude); - 800584c: 68fb ldr r3, [r7, #12] - 800584e: 891a ldrh r2, [r3, #8] - 8005850: 8a7b ldrh r3, [r7, #18] - 8005852: 4413 add r3, r2 - 8005854: b29a uxth r2, r3 - 8005856: 68fb ldr r3, [r7, #12] - 8005858: 811a strh r2, [r3, #8] + 8005848: 68fb ldr r3, [r7, #12] + 800584a: 891a ldrh r2, [r3, #8] + 800584c: 8a7b ldrh r3, [r7, #18] + 800584e: 4413 add r3, r2 + 8005850: b29a uxth r2, r3 + 8005852: 68fb ldr r3, [r7, #12] + 8005854: 811a strh r2, [r3, #8] return 0; - 800585a: 2300 movs r3, #0 + 8005856: 2300 movs r3, #0 } - 800585c: 4618 mov r0, r3 - 800585e: 3718 adds r7, #24 - 8005860: 46bd mov sp, r7 - 8005862: bd80 pop {r7, pc} - 8005864: 080154bc .word 0x080154bc - 8005868: 08015620 .word 0x08015620 - 800586c: 0801551c .word 0x0801551c + 8005858: 4618 mov r0, r3 + 800585a: 3718 adds r7, #24 + 800585c: 46bd mov sp, r7 + 800585e: bd80 pop {r7, pc} + 8005860: 080154bc .word 0x080154bc + 8005864: 08015620 .word 0x08015620 + 8005868: 0801551c .word 0x0801551c -08005870 : +0800586c : * @return non-zero on failure, zero on success. * */ u8_t pbuf_add_header(struct pbuf *p, size_t header_size_increment) { - 8005870: b580 push {r7, lr} - 8005872: b082 sub sp, #8 - 8005874: af00 add r7, sp, #0 - 8005876: 6078 str r0, [r7, #4] - 8005878: 6039 str r1, [r7, #0] + 800586c: b580 push {r7, lr} + 800586e: b082 sub sp, #8 + 8005870: af00 add r7, sp, #0 + 8005872: 6078 str r0, [r7, #4] + 8005874: 6039 str r1, [r7, #0] return pbuf_add_header_impl(p, header_size_increment, 0); - 800587a: 2200 movs r2, #0 - 800587c: 6839 ldr r1, [r7, #0] - 800587e: 6878 ldr r0, [r7, #4] - 8005880: f7ff ff8e bl 80057a0 - 8005884: 4603 mov r3, r0 + 8005876: 2200 movs r2, #0 + 8005878: 6839 ldr r1, [r7, #0] + 800587a: 6878 ldr r0, [r7, #4] + 800587c: f7ff ff8e bl 800579c + 8005880: 4603 mov r3, r0 } - 8005886: 4618 mov r0, r3 - 8005888: 3708 adds r7, #8 - 800588a: 46bd mov sp, r7 - 800588c: bd80 pop {r7, pc} + 8005882: 4618 mov r0, r3 + 8005884: 3708 adds r7, #8 + 8005886: 46bd mov sp, r7 + 8005888: bd80 pop {r7, pc} ... -08005890 : +0800588c : * @return non-zero on failure, zero on success. * */ u8_t pbuf_remove_header(struct pbuf *p, size_t header_size_decrement) { - 8005890: b580 push {r7, lr} - 8005892: b084 sub sp, #16 - 8005894: af00 add r7, sp, #0 - 8005896: 6078 str r0, [r7, #4] - 8005898: 6039 str r1, [r7, #0] + 800588c: b580 push {r7, lr} + 800588e: b084 sub sp, #16 + 8005890: af00 add r7, sp, #0 + 8005892: 6078 str r0, [r7, #4] + 8005894: 6039 str r1, [r7, #0] void *payload; u16_t increment_magnitude; LWIP_ASSERT("p != NULL", p != NULL); - 800589a: 687b ldr r3, [r7, #4] - 800589c: 2b00 cmp r3, #0 - 800589e: d106 bne.n 80058ae - 80058a0: 4b20 ldr r3, [pc, #128] ; (8005924 ) - 80058a2: f240 224b movw r2, #587 ; 0x24b - 80058a6: 4920 ldr r1, [pc, #128] ; (8005928 ) - 80058a8: 4820 ldr r0, [pc, #128] ; (800592c ) - 80058aa: f00a fd93 bl 80103d4 + 8005896: 687b ldr r3, [r7, #4] + 8005898: 2b00 cmp r3, #0 + 800589a: d106 bne.n 80058aa + 800589c: 4b20 ldr r3, [pc, #128] ; (8005920 ) + 800589e: f240 224b movw r2, #587 ; 0x24b + 80058a2: 4920 ldr r1, [pc, #128] ; (8005924 ) + 80058a4: 4820 ldr r0, [pc, #128] ; (8005928 ) + 80058a6: f00a fd93 bl 80103d0 if ((p == NULL) || (header_size_decrement > 0xFFFF)) { - 80058ae: 687b ldr r3, [r7, #4] - 80058b0: 2b00 cmp r3, #0 - 80058b2: d003 beq.n 80058bc - 80058b4: 683b ldr r3, [r7, #0] - 80058b6: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80058ba: d301 bcc.n 80058c0 + 80058aa: 687b ldr r3, [r7, #4] + 80058ac: 2b00 cmp r3, #0 + 80058ae: d003 beq.n 80058b8 + 80058b0: 683b ldr r3, [r7, #0] + 80058b2: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 80058b6: d301 bcc.n 80058bc return 1; - 80058bc: 2301 movs r3, #1 - 80058be: e02c b.n 800591a + 80058b8: 2301 movs r3, #1 + 80058ba: e02c b.n 8005916 } if (header_size_decrement == 0) { - 80058c0: 683b ldr r3, [r7, #0] - 80058c2: 2b00 cmp r3, #0 - 80058c4: d101 bne.n 80058ca + 80058bc: 683b ldr r3, [r7, #0] + 80058be: 2b00 cmp r3, #0 + 80058c0: d101 bne.n 80058c6 return 0; - 80058c6: 2300 movs r3, #0 - 80058c8: e027 b.n 800591a + 80058c2: 2300 movs r3, #0 + 80058c4: e027 b.n 8005916 } increment_magnitude = (u16_t)header_size_decrement; - 80058ca: 683b ldr r3, [r7, #0] - 80058cc: 81fb strh r3, [r7, #14] + 80058c6: 683b ldr r3, [r7, #0] + 80058c8: 81fb strh r3, [r7, #14] /* Check that we aren't going to move off the end of the pbuf */ LWIP_ERROR("increment_magnitude <= p->len", (increment_magnitude <= p->len), return 1;); - 80058ce: 687b ldr r3, [r7, #4] - 80058d0: 895b ldrh r3, [r3, #10] - 80058d2: 89fa ldrh r2, [r7, #14] - 80058d4: 429a cmp r2, r3 - 80058d6: d908 bls.n 80058ea - 80058d8: 4b12 ldr r3, [pc, #72] ; (8005924 ) - 80058da: f240 2255 movw r2, #597 ; 0x255 - 80058de: 4914 ldr r1, [pc, #80] ; (8005930 ) - 80058e0: 4812 ldr r0, [pc, #72] ; (800592c ) - 80058e2: f00a fd77 bl 80103d4 - 80058e6: 2301 movs r3, #1 - 80058e8: e017 b.n 800591a + 80058ca: 687b ldr r3, [r7, #4] + 80058cc: 895b ldrh r3, [r3, #10] + 80058ce: 89fa ldrh r2, [r7, #14] + 80058d0: 429a cmp r2, r3 + 80058d2: d908 bls.n 80058e6 + 80058d4: 4b12 ldr r3, [pc, #72] ; (8005920 ) + 80058d6: f240 2255 movw r2, #597 ; 0x255 + 80058da: 4914 ldr r1, [pc, #80] ; (800592c ) + 80058dc: 4812 ldr r0, [pc, #72] ; (8005928 ) + 80058de: f00a fd77 bl 80103d0 + 80058e2: 2301 movs r3, #1 + 80058e4: e017 b.n 8005916 /* remember current payload pointer */ payload = p->payload; - 80058ea: 687b ldr r3, [r7, #4] - 80058ec: 685b ldr r3, [r3, #4] - 80058ee: 60bb str r3, [r7, #8] + 80058e6: 687b ldr r3, [r7, #4] + 80058e8: 685b ldr r3, [r3, #4] + 80058ea: 60bb str r3, [r7, #8] LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */ /* increase payload pointer (guarded by length check above) */ p->payload = (u8_t *)p->payload + header_size_decrement; - 80058f0: 687b ldr r3, [r7, #4] - 80058f2: 685a ldr r2, [r3, #4] - 80058f4: 683b ldr r3, [r7, #0] - 80058f6: 441a add r2, r3 - 80058f8: 687b ldr r3, [r7, #4] - 80058fa: 605a str r2, [r3, #4] + 80058ec: 687b ldr r3, [r7, #4] + 80058ee: 685a ldr r2, [r3, #4] + 80058f0: 683b ldr r3, [r7, #0] + 80058f2: 441a add r2, r3 + 80058f4: 687b ldr r3, [r7, #4] + 80058f6: 605a str r2, [r3, #4] /* modify pbuf length fields */ p->len = (u16_t)(p->len - increment_magnitude); - 80058fc: 687b ldr r3, [r7, #4] - 80058fe: 895a ldrh r2, [r3, #10] - 8005900: 89fb ldrh r3, [r7, #14] - 8005902: 1ad3 subs r3, r2, r3 - 8005904: b29a uxth r2, r3 - 8005906: 687b ldr r3, [r7, #4] - 8005908: 815a strh r2, [r3, #10] + 80058f8: 687b ldr r3, [r7, #4] + 80058fa: 895a ldrh r2, [r3, #10] + 80058fc: 89fb ldrh r3, [r7, #14] + 80058fe: 1ad3 subs r3, r2, r3 + 8005900: b29a uxth r2, r3 + 8005902: 687b ldr r3, [r7, #4] + 8005904: 815a strh r2, [r3, #10] p->tot_len = (u16_t)(p->tot_len - increment_magnitude); - 800590a: 687b ldr r3, [r7, #4] - 800590c: 891a ldrh r2, [r3, #8] - 800590e: 89fb ldrh r3, [r7, #14] - 8005910: 1ad3 subs r3, r2, r3 - 8005912: b29a uxth r2, r3 - 8005914: 687b ldr r3, [r7, #4] - 8005916: 811a strh r2, [r3, #8] + 8005906: 687b ldr r3, [r7, #4] + 8005908: 891a ldrh r2, [r3, #8] + 800590a: 89fb ldrh r3, [r7, #14] + 800590c: 1ad3 subs r3, r2, r3 + 800590e: b29a uxth r2, r3 + 8005910: 687b ldr r3, [r7, #4] + 8005912: 811a strh r2, [r3, #8] LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_remove_header: old %p new %p (%"U16_F")\n", (void *)payload, (void *)p->payload, increment_magnitude)); return 0; - 8005918: 2300 movs r3, #0 + 8005914: 2300 movs r3, #0 } - 800591a: 4618 mov r0, r3 - 800591c: 3710 adds r7, #16 - 800591e: 46bd mov sp, r7 - 8005920: bd80 pop {r7, pc} - 8005922: bf00 nop - 8005924: 080154bc .word 0x080154bc - 8005928: 08015620 .word 0x08015620 - 800592c: 0801551c .word 0x0801551c - 8005930: 0801562c .word 0x0801562c + 8005916: 4618 mov r0, r3 + 8005918: 3710 adds r7, #16 + 800591a: 46bd mov sp, r7 + 800591c: bd80 pop {r7, pc} + 800591e: bf00 nop + 8005920: 080154bc .word 0x080154bc + 8005924: 08015620 .word 0x08015620 + 8005928: 0801551c .word 0x0801551c + 800592c: 0801562c .word 0x0801562c -08005934 : +08005930 : static u8_t pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force) { - 8005934: b580 push {r7, lr} - 8005936: b082 sub sp, #8 - 8005938: af00 add r7, sp, #0 - 800593a: 6078 str r0, [r7, #4] - 800593c: 460b mov r3, r1 - 800593e: 807b strh r3, [r7, #2] - 8005940: 4613 mov r3, r2 - 8005942: 707b strb r3, [r7, #1] + 8005930: b580 push {r7, lr} + 8005932: b082 sub sp, #8 + 8005934: af00 add r7, sp, #0 + 8005936: 6078 str r0, [r7, #4] + 8005938: 460b mov r3, r1 + 800593a: 807b strh r3, [r7, #2] + 800593c: 4613 mov r3, r2 + 800593e: 707b strb r3, [r7, #1] if (header_size_increment < 0) { - 8005944: f9b7 3002 ldrsh.w r3, [r7, #2] - 8005948: 2b00 cmp r3, #0 - 800594a: da08 bge.n 800595e + 8005940: f9b7 3002 ldrsh.w r3, [r7, #2] + 8005944: 2b00 cmp r3, #0 + 8005946: da08 bge.n 800595a return pbuf_remove_header(p, (size_t) - header_size_increment); - 800594c: f9b7 3002 ldrsh.w r3, [r7, #2] - 8005950: 425b negs r3, r3 - 8005952: 4619 mov r1, r3 - 8005954: 6878 ldr r0, [r7, #4] - 8005956: f7ff ff9b bl 8005890 - 800595a: 4603 mov r3, r0 - 800595c: e007 b.n 800596e + 8005948: f9b7 3002 ldrsh.w r3, [r7, #2] + 800594c: 425b negs r3, r3 + 800594e: 4619 mov r1, r3 + 8005950: 6878 ldr r0, [r7, #4] + 8005952: f7ff ff9b bl 800588c + 8005956: 4603 mov r3, r0 + 8005958: e007 b.n 800596a } else { return pbuf_add_header_impl(p, (size_t)header_size_increment, force); - 800595e: f9b7 3002 ldrsh.w r3, [r7, #2] - 8005962: 787a ldrb r2, [r7, #1] - 8005964: 4619 mov r1, r3 - 8005966: 6878 ldr r0, [r7, #4] - 8005968: f7ff ff1a bl 80057a0 - 800596c: 4603 mov r3, r0 + 800595a: f9b7 3002 ldrsh.w r3, [r7, #2] + 800595e: 787a ldrb r2, [r7, #1] + 8005960: 4619 mov r1, r3 + 8005962: 6878 ldr r0, [r7, #4] + 8005964: f7ff ff1a bl 800579c + 8005968: 4603 mov r3, r0 } } - 800596e: 4618 mov r0, r3 - 8005970: 3708 adds r7, #8 - 8005972: 46bd mov sp, r7 - 8005974: bd80 pop {r7, pc} + 800596a: 4618 mov r0, r3 + 800596c: 3708 adds r7, #8 + 800596e: 46bd mov sp, r7 + 8005970: bd80 pop {r7, pc} -08005976 : +08005972 : * Same as pbuf_header but does not check if 'header_size > 0' is allowed. * This is used internally only, to allow PBUF_REF for RX. */ u8_t pbuf_header_force(struct pbuf *p, s16_t header_size_increment) { - 8005976: b580 push {r7, lr} - 8005978: b082 sub sp, #8 - 800597a: af00 add r7, sp, #0 - 800597c: 6078 str r0, [r7, #4] - 800597e: 460b mov r3, r1 - 8005980: 807b strh r3, [r7, #2] + 8005972: b580 push {r7, lr} + 8005974: b082 sub sp, #8 + 8005976: af00 add r7, sp, #0 + 8005978: 6078 str r0, [r7, #4] + 800597a: 460b mov r3, r1 + 800597c: 807b strh r3, [r7, #2] return pbuf_header_impl(p, header_size_increment, 1); - 8005982: f9b7 3002 ldrsh.w r3, [r7, #2] - 8005986: 2201 movs r2, #1 - 8005988: 4619 mov r1, r3 - 800598a: 6878 ldr r0, [r7, #4] - 800598c: f7ff ffd2 bl 8005934 - 8005990: 4603 mov r3, r0 + 800597e: f9b7 3002 ldrsh.w r3, [r7, #2] + 8005982: 2201 movs r2, #1 + 8005984: 4619 mov r1, r3 + 8005986: 6878 ldr r0, [r7, #4] + 8005988: f7ff ffd2 bl 8005930 + 800598c: 4603 mov r3, r0 } - 8005992: 4618 mov r0, r3 - 8005994: 3708 adds r7, #8 - 8005996: 46bd mov sp, r7 - 8005998: bd80 pop {r7, pc} + 800598e: 4618 mov r0, r3 + 8005990: 3708 adds r7, #8 + 8005992: 46bd mov sp, r7 + 8005994: bd80 pop {r7, pc} ... -0800599c : +08005998 : * 1->1->1 becomes ....... * */ u8_t pbuf_free(struct pbuf *p) { - 800599c: b580 push {r7, lr} - 800599e: b086 sub sp, #24 - 80059a0: af00 add r7, sp, #0 - 80059a2: 6078 str r0, [r7, #4] + 8005998: b580 push {r7, lr} + 800599a: b086 sub sp, #24 + 800599c: af00 add r7, sp, #0 + 800599e: 6078 str r0, [r7, #4] u8_t alloc_src; struct pbuf *q; u8_t count; if (p == NULL) { - 80059a4: 687b ldr r3, [r7, #4] - 80059a6: 2b00 cmp r3, #0 - 80059a8: d10b bne.n 80059c2 + 80059a0: 687b ldr r3, [r7, #4] + 80059a2: 2b00 cmp r3, #0 + 80059a4: d10b bne.n 80059be LWIP_ASSERT("p != NULL", p != NULL); - 80059aa: 687b ldr r3, [r7, #4] - 80059ac: 2b00 cmp r3, #0 - 80059ae: d106 bne.n 80059be - 80059b0: 4b38 ldr r3, [pc, #224] ; (8005a94 ) - 80059b2: f44f 7237 mov.w r2, #732 ; 0x2dc - 80059b6: 4938 ldr r1, [pc, #224] ; (8005a98 ) - 80059b8: 4838 ldr r0, [pc, #224] ; (8005a9c ) - 80059ba: f00a fd0b bl 80103d4 + 80059a6: 687b ldr r3, [r7, #4] + 80059a8: 2b00 cmp r3, #0 + 80059aa: d106 bne.n 80059ba + 80059ac: 4b38 ldr r3, [pc, #224] ; (8005a90 ) + 80059ae: f44f 7237 mov.w r2, #732 ; 0x2dc + 80059b2: 4938 ldr r1, [pc, #224] ; (8005a94 ) + 80059b4: 4838 ldr r0, [pc, #224] ; (8005a98 ) + 80059b6: f00a fd0b bl 80103d0 /* if assertions are disabled, proceed with debug output */ LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("pbuf_free(p == NULL) was called.\n")); return 0; - 80059be: 2300 movs r3, #0 - 80059c0: e063 b.n 8005a8a + 80059ba: 2300 movs r3, #0 + 80059bc: e063 b.n 8005a86 } LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free(%p)\n", (void *)p)); PERF_START; count = 0; - 80059c2: 2300 movs r3, #0 - 80059c4: 75fb strb r3, [r7, #23] + 80059be: 2300 movs r3, #0 + 80059c0: 75fb strb r3, [r7, #23] /* de-allocate all consecutive pbufs from the head of the chain that * obtain a zero reference count after decrementing*/ while (p != NULL) { - 80059c6: e05c b.n 8005a82 + 80059c2: e05c b.n 8005a7e /* Since decrementing ref cannot be guaranteed to be a single machine operation * we must protect it. We put the new ref into a local variable to prevent * further protection. */ SYS_ARCH_PROTECT(old_level); /* all pbufs in a chain are referenced at least once */ LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0); - 80059c8: 687b ldr r3, [r7, #4] - 80059ca: 7b9b ldrb r3, [r3, #14] - 80059cc: 2b00 cmp r3, #0 - 80059ce: d106 bne.n 80059de - 80059d0: 4b30 ldr r3, [pc, #192] ; (8005a94 ) - 80059d2: f240 22f1 movw r2, #753 ; 0x2f1 - 80059d6: 4932 ldr r1, [pc, #200] ; (8005aa0 ) - 80059d8: 4830 ldr r0, [pc, #192] ; (8005a9c ) - 80059da: f00a fcfb bl 80103d4 + 80059c4: 687b ldr r3, [r7, #4] + 80059c6: 7b9b ldrb r3, [r3, #14] + 80059c8: 2b00 cmp r3, #0 + 80059ca: d106 bne.n 80059da + 80059cc: 4b30 ldr r3, [pc, #192] ; (8005a90 ) + 80059ce: f240 22f1 movw r2, #753 ; 0x2f1 + 80059d2: 4932 ldr r1, [pc, #200] ; (8005a9c ) + 80059d4: 4830 ldr r0, [pc, #192] ; (8005a98 ) + 80059d6: f00a fcfb bl 80103d0 /* decrease reference count (number of pointers to pbuf) */ ref = --(p->ref); - 80059de: 687b ldr r3, [r7, #4] - 80059e0: 7b9b ldrb r3, [r3, #14] - 80059e2: 3b01 subs r3, #1 - 80059e4: b2da uxtb r2, r3 + 80059da: 687b ldr r3, [r7, #4] + 80059dc: 7b9b ldrb r3, [r3, #14] + 80059de: 3b01 subs r3, #1 + 80059e0: b2da uxtb r2, r3 + 80059e2: 687b ldr r3, [r7, #4] + 80059e4: 739a strb r2, [r3, #14] 80059e6: 687b ldr r3, [r7, #4] - 80059e8: 739a strb r2, [r3, #14] - 80059ea: 687b ldr r3, [r7, #4] - 80059ec: 7b9b ldrb r3, [r3, #14] - 80059ee: 75bb strb r3, [r7, #22] + 80059e8: 7b9b ldrb r3, [r3, #14] + 80059ea: 75bb strb r3, [r7, #22] SYS_ARCH_UNPROTECT(old_level); /* this pbuf is no longer referenced to? */ if (ref == 0) { - 80059f0: 7dbb ldrb r3, [r7, #22] - 80059f2: 2b00 cmp r3, #0 - 80059f4: d143 bne.n 8005a7e + 80059ec: 7dbb ldrb r3, [r7, #22] + 80059ee: 2b00 cmp r3, #0 + 80059f0: d143 bne.n 8005a7a /* remember next pbuf in chain for next iteration */ q = p->next; - 80059f6: 687b ldr r3, [r7, #4] - 80059f8: 681b ldr r3, [r3, #0] - 80059fa: 613b str r3, [r7, #16] + 80059f2: 687b ldr r3, [r7, #4] + 80059f4: 681b ldr r3, [r3, #0] + 80059f6: 613b str r3, [r7, #16] LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: deallocating %p\n", (void *)p)); alloc_src = pbuf_get_allocsrc(p); - 80059fc: 687b ldr r3, [r7, #4] - 80059fe: 7b1b ldrb r3, [r3, #12] - 8005a00: f003 030f and.w r3, r3, #15 - 8005a04: 73fb strb r3, [r7, #15] + 80059f8: 687b ldr r3, [r7, #4] + 80059fa: 7b1b ldrb r3, [r3, #12] + 80059fc: f003 030f and.w r3, r3, #15 + 8005a00: 73fb strb r3, [r7, #15] #if LWIP_SUPPORT_CUSTOM_PBUF /* is this a custom pbuf? */ if ((p->flags & PBUF_FLAG_IS_CUSTOM) != 0) { - 8005a06: 687b ldr r3, [r7, #4] - 8005a08: 7b5b ldrb r3, [r3, #13] - 8005a0a: f003 0302 and.w r3, r3, #2 - 8005a0e: 2b00 cmp r3, #0 - 8005a10: d011 beq.n 8005a36 + 8005a02: 687b ldr r3, [r7, #4] + 8005a04: 7b5b ldrb r3, [r3, #13] + 8005a06: f003 0302 and.w r3, r3, #2 + 8005a0a: 2b00 cmp r3, #0 + 8005a0c: d011 beq.n 8005a32 struct pbuf_custom *pc = (struct pbuf_custom *)p; - 8005a12: 687b ldr r3, [r7, #4] - 8005a14: 60bb str r3, [r7, #8] + 8005a0e: 687b ldr r3, [r7, #4] + 8005a10: 60bb str r3, [r7, #8] LWIP_ASSERT("pc->custom_free_function != NULL", pc->custom_free_function != NULL); - 8005a16: 68bb ldr r3, [r7, #8] - 8005a18: 691b ldr r3, [r3, #16] - 8005a1a: 2b00 cmp r3, #0 - 8005a1c: d106 bne.n 8005a2c - 8005a1e: 4b1d ldr r3, [pc, #116] ; (8005a94 ) - 8005a20: f240 22ff movw r2, #767 ; 0x2ff - 8005a24: 491f ldr r1, [pc, #124] ; (8005aa4 ) - 8005a26: 481d ldr r0, [pc, #116] ; (8005a9c ) - 8005a28: f00a fcd4 bl 80103d4 + 8005a12: 68bb ldr r3, [r7, #8] + 8005a14: 691b ldr r3, [r3, #16] + 8005a16: 2b00 cmp r3, #0 + 8005a18: d106 bne.n 8005a28 + 8005a1a: 4b1d ldr r3, [pc, #116] ; (8005a90 ) + 8005a1c: f240 22ff movw r2, #767 ; 0x2ff + 8005a20: 491f ldr r1, [pc, #124] ; (8005aa0 ) + 8005a22: 481d ldr r0, [pc, #116] ; (8005a98 ) + 8005a24: f00a fcd4 bl 80103d0 pc->custom_free_function(p); - 8005a2c: 68bb ldr r3, [r7, #8] - 8005a2e: 691b ldr r3, [r3, #16] - 8005a30: 6878 ldr r0, [r7, #4] - 8005a32: 4798 blx r3 - 8005a34: e01d b.n 8005a72 + 8005a28: 68bb ldr r3, [r7, #8] + 8005a2a: 691b ldr r3, [r3, #16] + 8005a2c: 6878 ldr r0, [r7, #4] + 8005a2e: 4798 blx r3 + 8005a30: e01d b.n 8005a6e } else #endif /* LWIP_SUPPORT_CUSTOM_PBUF */ { /* is this a pbuf from the pool? */ if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF_POOL) { - 8005a36: 7bfb ldrb r3, [r7, #15] - 8005a38: 2b02 cmp r3, #2 - 8005a3a: d104 bne.n 8005a46 + 8005a32: 7bfb ldrb r3, [r7, #15] + 8005a34: 2b02 cmp r3, #2 + 8005a36: d104 bne.n 8005a42 memp_free(MEMP_PBUF_POOL, p); - 8005a3c: 6879 ldr r1, [r7, #4] - 8005a3e: 2008 movs r0, #8 - 8005a40: f7ff f92a bl 8004c98 - 8005a44: e015 b.n 8005a72 + 8005a38: 6879 ldr r1, [r7, #4] + 8005a3a: 2008 movs r0, #8 + 8005a3c: f7ff f92a bl 8004c94 + 8005a40: e015 b.n 8005a6e /* is this a ROM or RAM referencing pbuf? */ } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF) { - 8005a46: 7bfb ldrb r3, [r7, #15] - 8005a48: 2b01 cmp r3, #1 - 8005a4a: d104 bne.n 8005a56 + 8005a42: 7bfb ldrb r3, [r7, #15] + 8005a44: 2b01 cmp r3, #1 + 8005a46: d104 bne.n 8005a52 memp_free(MEMP_PBUF, p); - 8005a4c: 6879 ldr r1, [r7, #4] - 8005a4e: 2007 movs r0, #7 - 8005a50: f7ff f922 bl 8004c98 - 8005a54: e00d b.n 8005a72 + 8005a48: 6879 ldr r1, [r7, #4] + 8005a4a: 2007 movs r0, #7 + 8005a4c: f7ff f922 bl 8004c94 + 8005a50: e00d b.n 8005a6e /* type == PBUF_RAM */ } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) { - 8005a56: 7bfb ldrb r3, [r7, #15] - 8005a58: 2b00 cmp r3, #0 - 8005a5a: d103 bne.n 8005a64 + 8005a52: 7bfb ldrb r3, [r7, #15] + 8005a54: 2b00 cmp r3, #0 + 8005a56: d103 bne.n 8005a60 mem_free(p); - 8005a5c: 6878 ldr r0, [r7, #4] - 8005a5e: f7fe fdb5 bl 80045cc - 8005a62: e006 b.n 8005a72 + 8005a58: 6878 ldr r0, [r7, #4] + 8005a5a: f7fe fdb5 bl 80045c8 + 8005a5e: e006 b.n 8005a6e } else { /* @todo: support freeing other types */ LWIP_ASSERT("invalid pbuf type", 0); - 8005a64: 4b0b ldr r3, [pc, #44] ; (8005a94 ) - 8005a66: f240 320f movw r2, #783 ; 0x30f - 8005a6a: 490f ldr r1, [pc, #60] ; (8005aa8 ) - 8005a6c: 480b ldr r0, [pc, #44] ; (8005a9c ) - 8005a6e: f00a fcb1 bl 80103d4 + 8005a60: 4b0b ldr r3, [pc, #44] ; (8005a90 ) + 8005a62: f240 320f movw r2, #783 ; 0x30f + 8005a66: 490f ldr r1, [pc, #60] ; (8005aa4 ) + 8005a68: 480b ldr r0, [pc, #44] ; (8005a98 ) + 8005a6a: f00a fcb1 bl 80103d0 } } count++; - 8005a72: 7dfb ldrb r3, [r7, #23] - 8005a74: 3301 adds r3, #1 - 8005a76: 75fb strb r3, [r7, #23] + 8005a6e: 7dfb ldrb r3, [r7, #23] + 8005a70: 3301 adds r3, #1 + 8005a72: 75fb strb r3, [r7, #23] /* proceed to next pbuf */ p = q; - 8005a78: 693b ldr r3, [r7, #16] - 8005a7a: 607b str r3, [r7, #4] - 8005a7c: e001 b.n 8005a82 + 8005a74: 693b ldr r3, [r7, #16] + 8005a76: 607b str r3, [r7, #4] + 8005a78: e001 b.n 8005a7e /* p->ref > 0, this pbuf is still referenced to */ /* (and so the remaining pbufs in chain as well) */ } else { LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: %p has ref %"U16_F", ending here.\n", (void *)p, (u16_t)ref)); /* stop walking through the chain */ p = NULL; - 8005a7e: 2300 movs r3, #0 - 8005a80: 607b str r3, [r7, #4] + 8005a7a: 2300 movs r3, #0 + 8005a7c: 607b str r3, [r7, #4] while (p != NULL) { - 8005a82: 687b ldr r3, [r7, #4] - 8005a84: 2b00 cmp r3, #0 - 8005a86: d19f bne.n 80059c8 + 8005a7e: 687b ldr r3, [r7, #4] + 8005a80: 2b00 cmp r3, #0 + 8005a82: d19f bne.n 80059c4 } } PERF_STOP("pbuf_free"); /* return number of de-allocated pbufs */ return count; - 8005a88: 7dfb ldrb r3, [r7, #23] + 8005a84: 7dfb ldrb r3, [r7, #23] } - 8005a8a: 4618 mov r0, r3 - 8005a8c: 3718 adds r7, #24 - 8005a8e: 46bd mov sp, r7 - 8005a90: bd80 pop {r7, pc} - 8005a92: bf00 nop - 8005a94: 080154bc .word 0x080154bc - 8005a98: 08015620 .word 0x08015620 - 8005a9c: 0801551c .word 0x0801551c - 8005aa0: 0801564c .word 0x0801564c - 8005aa4: 08015664 .word 0x08015664 - 8005aa8: 08015688 .word 0x08015688 + 8005a86: 4618 mov r0, r3 + 8005a88: 3718 adds r7, #24 + 8005a8a: 46bd mov sp, r7 + 8005a8c: bd80 pop {r7, pc} + 8005a8e: bf00 nop + 8005a90: 080154bc .word 0x080154bc + 8005a94: 08015620 .word 0x08015620 + 8005a98: 0801551c .word 0x0801551c + 8005a9c: 0801564c .word 0x0801564c + 8005aa0: 08015664 .word 0x08015664 + 8005aa4: 08015688 .word 0x08015688 -08005aac : +08005aa8 : * @param p first pbuf of chain * @return the number of pbufs in a chain */ u16_t pbuf_clen(const struct pbuf *p) { - 8005aac: b480 push {r7} - 8005aae: b085 sub sp, #20 - 8005ab0: af00 add r7, sp, #0 - 8005ab2: 6078 str r0, [r7, #4] + 8005aa8: b480 push {r7} + 8005aaa: b085 sub sp, #20 + 8005aac: af00 add r7, sp, #0 + 8005aae: 6078 str r0, [r7, #4] u16_t len; len = 0; - 8005ab4: 2300 movs r3, #0 - 8005ab6: 81fb strh r3, [r7, #14] + 8005ab0: 2300 movs r3, #0 + 8005ab2: 81fb strh r3, [r7, #14] while (p != NULL) { - 8005ab8: e005 b.n 8005ac6 + 8005ab4: e005 b.n 8005ac2 ++len; - 8005aba: 89fb ldrh r3, [r7, #14] - 8005abc: 3301 adds r3, #1 - 8005abe: 81fb strh r3, [r7, #14] + 8005ab6: 89fb ldrh r3, [r7, #14] + 8005ab8: 3301 adds r3, #1 + 8005aba: 81fb strh r3, [r7, #14] p = p->next; - 8005ac0: 687b ldr r3, [r7, #4] - 8005ac2: 681b ldr r3, [r3, #0] - 8005ac4: 607b str r3, [r7, #4] + 8005abc: 687b ldr r3, [r7, #4] + 8005abe: 681b ldr r3, [r3, #0] + 8005ac0: 607b str r3, [r7, #4] while (p != NULL) { - 8005ac6: 687b ldr r3, [r7, #4] - 8005ac8: 2b00 cmp r3, #0 - 8005aca: d1f6 bne.n 8005aba + 8005ac2: 687b ldr r3, [r7, #4] + 8005ac4: 2b00 cmp r3, #0 + 8005ac6: d1f6 bne.n 8005ab6 } return len; - 8005acc: 89fb ldrh r3, [r7, #14] + 8005ac8: 89fb ldrh r3, [r7, #14] } - 8005ace: 4618 mov r0, r3 - 8005ad0: 3714 adds r7, #20 - 8005ad2: 46bd mov sp, r7 - 8005ad4: f85d 7b04 ldr.w r7, [sp], #4 - 8005ad8: 4770 bx lr + 8005aca: 4618 mov r0, r3 + 8005acc: 3714 adds r7, #20 + 8005ace: 46bd mov sp, r7 + 8005ad0: f85d 7b04 ldr.w r7, [sp], #4 + 8005ad4: 4770 bx lr ... -08005adc : +08005ad8 : * @param p pbuf to increase reference counter of * */ void pbuf_ref(struct pbuf *p) { - 8005adc: b580 push {r7, lr} - 8005ade: b082 sub sp, #8 - 8005ae0: af00 add r7, sp, #0 - 8005ae2: 6078 str r0, [r7, #4] + 8005ad8: b580 push {r7, lr} + 8005ada: b082 sub sp, #8 + 8005adc: af00 add r7, sp, #0 + 8005ade: 6078 str r0, [r7, #4] /* pbuf given? */ if (p != NULL) { - 8005ae4: 687b ldr r3, [r7, #4] - 8005ae6: 2b00 cmp r3, #0 - 8005ae8: d010 beq.n 8005b0c + 8005ae0: 687b ldr r3, [r7, #4] + 8005ae2: 2b00 cmp r3, #0 + 8005ae4: d010 beq.n 8005b08 SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1)); - 8005aea: 687b ldr r3, [r7, #4] - 8005aec: 7b9b ldrb r3, [r3, #14] - 8005aee: 3301 adds r3, #1 - 8005af0: b2da uxtb r2, r3 - 8005af2: 687b ldr r3, [r7, #4] - 8005af4: 739a strb r2, [r3, #14] + 8005ae6: 687b ldr r3, [r7, #4] + 8005ae8: 7b9b ldrb r3, [r3, #14] + 8005aea: 3301 adds r3, #1 + 8005aec: b2da uxtb r2, r3 + 8005aee: 687b ldr r3, [r7, #4] + 8005af0: 739a strb r2, [r3, #14] LWIP_ASSERT("pbuf ref overflow", p->ref > 0); - 8005af6: 687b ldr r3, [r7, #4] - 8005af8: 7b9b ldrb r3, [r3, #14] - 8005afa: 2b00 cmp r3, #0 - 8005afc: d106 bne.n 8005b0c - 8005afe: 4b05 ldr r3, [pc, #20] ; (8005b14 ) - 8005b00: f240 3242 movw r2, #834 ; 0x342 - 8005b04: 4904 ldr r1, [pc, #16] ; (8005b18 ) - 8005b06: 4805 ldr r0, [pc, #20] ; (8005b1c ) - 8005b08: f00a fc64 bl 80103d4 + 8005af2: 687b ldr r3, [r7, #4] + 8005af4: 7b9b ldrb r3, [r3, #14] + 8005af6: 2b00 cmp r3, #0 + 8005af8: d106 bne.n 8005b08 + 8005afa: 4b05 ldr r3, [pc, #20] ; (8005b10 ) + 8005afc: f240 3242 movw r2, #834 ; 0x342 + 8005b00: 4904 ldr r1, [pc, #16] ; (8005b14 ) + 8005b02: 4805 ldr r0, [pc, #20] ; (8005b18 ) + 8005b04: f00a fc64 bl 80103d0 } } - 8005b0c: bf00 nop - 8005b0e: 3708 adds r7, #8 - 8005b10: 46bd mov sp, r7 - 8005b12: bd80 pop {r7, pc} - 8005b14: 080154bc .word 0x080154bc - 8005b18: 0801569c .word 0x0801569c - 8005b1c: 0801551c .word 0x0801551c + 8005b08: bf00 nop + 8005b0a: 3708 adds r7, #8 + 8005b0c: 46bd mov sp, r7 + 8005b0e: bd80 pop {r7, pc} + 8005b10: 080154bc .word 0x080154bc + 8005b14: 0801569c .word 0x0801569c + 8005b18: 0801551c .word 0x0801551c -08005b20 : +08005b1c : * * @see pbuf_chain() */ void pbuf_cat(struct pbuf *h, struct pbuf *t) { - 8005b20: b580 push {r7, lr} - 8005b22: b084 sub sp, #16 - 8005b24: af00 add r7, sp, #0 - 8005b26: 6078 str r0, [r7, #4] - 8005b28: 6039 str r1, [r7, #0] + 8005b1c: b580 push {r7, lr} + 8005b1e: b084 sub sp, #16 + 8005b20: af00 add r7, sp, #0 + 8005b22: 6078 str r0, [r7, #4] + 8005b24: 6039 str r1, [r7, #0] struct pbuf *p; LWIP_ERROR("(h != NULL) && (t != NULL) (programmer violates API)", - 8005b2a: 687b ldr r3, [r7, #4] - 8005b2c: 2b00 cmp r3, #0 - 8005b2e: d002 beq.n 8005b36 - 8005b30: 683b ldr r3, [r7, #0] - 8005b32: 2b00 cmp r3, #0 - 8005b34: d107 bne.n 8005b46 - 8005b36: 4b20 ldr r3, [pc, #128] ; (8005bb8 ) - 8005b38: f240 3259 movw r2, #857 ; 0x359 - 8005b3c: 491f ldr r1, [pc, #124] ; (8005bbc ) - 8005b3e: 4820 ldr r0, [pc, #128] ; (8005bc0 ) - 8005b40: f00a fc48 bl 80103d4 - 8005b44: e034 b.n 8005bb0 + 8005b26: 687b ldr r3, [r7, #4] + 8005b28: 2b00 cmp r3, #0 + 8005b2a: d002 beq.n 8005b32 + 8005b2c: 683b ldr r3, [r7, #0] + 8005b2e: 2b00 cmp r3, #0 + 8005b30: d107 bne.n 8005b42 + 8005b32: 4b20 ldr r3, [pc, #128] ; (8005bb4 ) + 8005b34: f240 3259 movw r2, #857 ; 0x359 + 8005b38: 491f ldr r1, [pc, #124] ; (8005bb8 ) + 8005b3a: 4820 ldr r0, [pc, #128] ; (8005bbc ) + 8005b3c: f00a fc48 bl 80103d0 + 8005b40: e034 b.n 8005bac ((h != NULL) && (t != NULL)), return;); /* proceed to last pbuf of chain */ for (p = h; p->next != NULL; p = p->next) { - 8005b46: 687b ldr r3, [r7, #4] - 8005b48: 60fb str r3, [r7, #12] - 8005b4a: e00a b.n 8005b62 + 8005b42: 687b ldr r3, [r7, #4] + 8005b44: 60fb str r3, [r7, #12] + 8005b46: e00a b.n 8005b5e /* add total length of second chain to all totals of first chain */ p->tot_len = (u16_t)(p->tot_len + t->tot_len); - 8005b4c: 68fb ldr r3, [r7, #12] - 8005b4e: 891a ldrh r2, [r3, #8] - 8005b50: 683b ldr r3, [r7, #0] - 8005b52: 891b ldrh r3, [r3, #8] - 8005b54: 4413 add r3, r2 - 8005b56: b29a uxth r2, r3 - 8005b58: 68fb ldr r3, [r7, #12] - 8005b5a: 811a strh r2, [r3, #8] + 8005b48: 68fb ldr r3, [r7, #12] + 8005b4a: 891a ldrh r2, [r3, #8] + 8005b4c: 683b ldr r3, [r7, #0] + 8005b4e: 891b ldrh r3, [r3, #8] + 8005b50: 4413 add r3, r2 + 8005b52: b29a uxth r2, r3 + 8005b54: 68fb ldr r3, [r7, #12] + 8005b56: 811a strh r2, [r3, #8] for (p = h; p->next != NULL; p = p->next) { - 8005b5c: 68fb ldr r3, [r7, #12] - 8005b5e: 681b ldr r3, [r3, #0] - 8005b60: 60fb str r3, [r7, #12] - 8005b62: 68fb ldr r3, [r7, #12] - 8005b64: 681b ldr r3, [r3, #0] - 8005b66: 2b00 cmp r3, #0 - 8005b68: d1f0 bne.n 8005b4c + 8005b58: 68fb ldr r3, [r7, #12] + 8005b5a: 681b ldr r3, [r3, #0] + 8005b5c: 60fb str r3, [r7, #12] + 8005b5e: 68fb ldr r3, [r7, #12] + 8005b60: 681b ldr r3, [r3, #0] + 8005b62: 2b00 cmp r3, #0 + 8005b64: d1f0 bne.n 8005b48 } /* { p is last pbuf of first h chain, p->next == NULL } */ LWIP_ASSERT("p->tot_len == p->len (of last pbuf in chain)", p->tot_len == p->len); + 8005b66: 68fb ldr r3, [r7, #12] + 8005b68: 891a ldrh r2, [r3, #8] 8005b6a: 68fb ldr r3, [r7, #12] - 8005b6c: 891a ldrh r2, [r3, #8] - 8005b6e: 68fb ldr r3, [r7, #12] - 8005b70: 895b ldrh r3, [r3, #10] - 8005b72: 429a cmp r2, r3 - 8005b74: d006 beq.n 8005b84 - 8005b76: 4b10 ldr r3, [pc, #64] ; (8005bb8 ) - 8005b78: f240 3262 movw r2, #866 ; 0x362 - 8005b7c: 4911 ldr r1, [pc, #68] ; (8005bc4 ) - 8005b7e: 4810 ldr r0, [pc, #64] ; (8005bc0 ) - 8005b80: f00a fc28 bl 80103d4 + 8005b6c: 895b ldrh r3, [r3, #10] + 8005b6e: 429a cmp r2, r3 + 8005b70: d006 beq.n 8005b80 + 8005b72: 4b10 ldr r3, [pc, #64] ; (8005bb4 ) + 8005b74: f240 3262 movw r2, #866 ; 0x362 + 8005b78: 4911 ldr r1, [pc, #68] ; (8005bc0 ) + 8005b7a: 4810 ldr r0, [pc, #64] ; (8005bbc ) + 8005b7c: f00a fc28 bl 80103d0 LWIP_ASSERT("p->next == NULL", p->next == NULL); - 8005b84: 68fb ldr r3, [r7, #12] - 8005b86: 681b ldr r3, [r3, #0] - 8005b88: 2b00 cmp r3, #0 - 8005b8a: d006 beq.n 8005b9a - 8005b8c: 4b0a ldr r3, [pc, #40] ; (8005bb8 ) - 8005b8e: f240 3263 movw r2, #867 ; 0x363 - 8005b92: 490d ldr r1, [pc, #52] ; (8005bc8 ) - 8005b94: 480a ldr r0, [pc, #40] ; (8005bc0 ) - 8005b96: f00a fc1d bl 80103d4 + 8005b80: 68fb ldr r3, [r7, #12] + 8005b82: 681b ldr r3, [r3, #0] + 8005b84: 2b00 cmp r3, #0 + 8005b86: d006 beq.n 8005b96 + 8005b88: 4b0a ldr r3, [pc, #40] ; (8005bb4 ) + 8005b8a: f240 3263 movw r2, #867 ; 0x363 + 8005b8e: 490d ldr r1, [pc, #52] ; (8005bc4 ) + 8005b90: 480a ldr r0, [pc, #40] ; (8005bbc ) + 8005b92: f00a fc1d bl 80103d0 /* add total length of second chain to last pbuf total of first chain */ p->tot_len = (u16_t)(p->tot_len + t->tot_len); - 8005b9a: 68fb ldr r3, [r7, #12] - 8005b9c: 891a ldrh r2, [r3, #8] - 8005b9e: 683b ldr r3, [r7, #0] - 8005ba0: 891b ldrh r3, [r3, #8] - 8005ba2: 4413 add r3, r2 - 8005ba4: b29a uxth r2, r3 - 8005ba6: 68fb ldr r3, [r7, #12] - 8005ba8: 811a strh r2, [r3, #8] + 8005b96: 68fb ldr r3, [r7, #12] + 8005b98: 891a ldrh r2, [r3, #8] + 8005b9a: 683b ldr r3, [r7, #0] + 8005b9c: 891b ldrh r3, [r3, #8] + 8005b9e: 4413 add r3, r2 + 8005ba0: b29a uxth r2, r3 + 8005ba2: 68fb ldr r3, [r7, #12] + 8005ba4: 811a strh r2, [r3, #8] /* chain last pbuf of head (p) with first of tail (t) */ p->next = t; - 8005baa: 68fb ldr r3, [r7, #12] - 8005bac: 683a ldr r2, [r7, #0] - 8005bae: 601a str r2, [r3, #0] + 8005ba6: 68fb ldr r3, [r7, #12] + 8005ba8: 683a ldr r2, [r7, #0] + 8005baa: 601a str r2, [r3, #0] /* p->next now references t, but the caller will drop its reference to t, * so netto there is no change to the reference count of t. */ } - 8005bb0: 3710 adds r7, #16 - 8005bb2: 46bd mov sp, r7 - 8005bb4: bd80 pop {r7, pc} - 8005bb6: bf00 nop - 8005bb8: 080154bc .word 0x080154bc - 8005bbc: 080156b0 .word 0x080156b0 - 8005bc0: 0801551c .word 0x0801551c - 8005bc4: 080156e8 .word 0x080156e8 - 8005bc8: 08015718 .word 0x08015718 + 8005bac: 3710 adds r7, #16 + 8005bae: 46bd mov sp, r7 + 8005bb0: bd80 pop {r7, pc} + 8005bb2: bf00 nop + 8005bb4: 080154bc .word 0x080154bc + 8005bb8: 080156b0 .word 0x080156b0 + 8005bbc: 0801551c .word 0x0801551c + 8005bc0: 080156e8 .word 0x080156e8 + 8005bc4: 08015718 .word 0x08015718 -08005bcc : +08005bc8 : * The ->ref field of the first pbuf of the tail chain is adjusted. * */ void pbuf_chain(struct pbuf *h, struct pbuf *t) { - 8005bcc: b580 push {r7, lr} - 8005bce: b082 sub sp, #8 - 8005bd0: af00 add r7, sp, #0 - 8005bd2: 6078 str r0, [r7, #4] - 8005bd4: 6039 str r1, [r7, #0] + 8005bc8: b580 push {r7, lr} + 8005bca: b082 sub sp, #8 + 8005bcc: af00 add r7, sp, #0 + 8005bce: 6078 str r0, [r7, #4] + 8005bd0: 6039 str r1, [r7, #0] pbuf_cat(h, t); - 8005bd6: 6839 ldr r1, [r7, #0] - 8005bd8: 6878 ldr r0, [r7, #4] - 8005bda: f7ff ffa1 bl 8005b20 + 8005bd2: 6839 ldr r1, [r7, #0] + 8005bd4: 6878 ldr r0, [r7, #4] + 8005bd6: f7ff ffa1 bl 8005b1c /* t is now referenced by h */ pbuf_ref(t); - 8005bde: 6838 ldr r0, [r7, #0] - 8005be0: f7ff ff7c bl 8005adc + 8005bda: 6838 ldr r0, [r7, #0] + 8005bdc: f7ff ff7c bl 8005ad8 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t)); } - 8005be4: bf00 nop - 8005be6: 3708 adds r7, #8 - 8005be8: 46bd mov sp, r7 - 8005bea: bd80 pop {r7, pc} + 8005be0: bf00 nop + 8005be2: 3708 adds r7, #8 + 8005be4: 46bd mov sp, r7 + 8005be6: bd80 pop {r7, pc} -08005bec : +08005be8 : * ERR_ARG if one of the pbufs is NULL or p_to is not big * enough to hold p_from */ err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from) { - 8005bec: b580 push {r7, lr} - 8005bee: b086 sub sp, #24 - 8005bf0: af00 add r7, sp, #0 - 8005bf2: 6078 str r0, [r7, #4] - 8005bf4: 6039 str r1, [r7, #0] + 8005be8: b580 push {r7, lr} + 8005bea: b086 sub sp, #24 + 8005bec: af00 add r7, sp, #0 + 8005bee: 6078 str r0, [r7, #4] + 8005bf0: 6039 str r1, [r7, #0] size_t offset_to = 0, offset_from = 0, len; + 8005bf2: 2300 movs r3, #0 + 8005bf4: 617b str r3, [r7, #20] 8005bf6: 2300 movs r3, #0 - 8005bf8: 617b str r3, [r7, #20] - 8005bfa: 2300 movs r3, #0 - 8005bfc: 613b str r3, [r7, #16] + 8005bf8: 613b str r3, [r7, #16] LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy(%p, %p)\n", (const void *)p_to, (const void *)p_from)); /* is the target big enough to hold the source? */ LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) && - 8005bfe: 687b ldr r3, [r7, #4] - 8005c00: 2b00 cmp r3, #0 - 8005c02: d008 beq.n 8005c16 - 8005c04: 683b ldr r3, [r7, #0] - 8005c06: 2b00 cmp r3, #0 - 8005c08: d005 beq.n 8005c16 - 8005c0a: 687b ldr r3, [r7, #4] - 8005c0c: 891a ldrh r2, [r3, #8] - 8005c0e: 683b ldr r3, [r7, #0] - 8005c10: 891b ldrh r3, [r3, #8] - 8005c12: 429a cmp r2, r3 - 8005c14: d209 bcs.n 8005c2a - 8005c16: 4b57 ldr r3, [pc, #348] ; (8005d74 ) - 8005c18: f240 32c9 movw r2, #969 ; 0x3c9 - 8005c1c: 4956 ldr r1, [pc, #344] ; (8005d78 ) - 8005c1e: 4857 ldr r0, [pc, #348] ; (8005d7c ) - 8005c20: f00a fbd8 bl 80103d4 - 8005c24: f06f 030f mvn.w r3, #15 - 8005c28: e09f b.n 8005d6a + 8005bfa: 687b ldr r3, [r7, #4] + 8005bfc: 2b00 cmp r3, #0 + 8005bfe: d008 beq.n 8005c12 + 8005c00: 683b ldr r3, [r7, #0] + 8005c02: 2b00 cmp r3, #0 + 8005c04: d005 beq.n 8005c12 + 8005c06: 687b ldr r3, [r7, #4] + 8005c08: 891a ldrh r2, [r3, #8] + 8005c0a: 683b ldr r3, [r7, #0] + 8005c0c: 891b ldrh r3, [r3, #8] + 8005c0e: 429a cmp r2, r3 + 8005c10: d209 bcs.n 8005c26 + 8005c12: 4b57 ldr r3, [pc, #348] ; (8005d70 ) + 8005c14: f240 32c9 movw r2, #969 ; 0x3c9 + 8005c18: 4956 ldr r1, [pc, #344] ; (8005d74 ) + 8005c1a: 4857 ldr r0, [pc, #348] ; (8005d78 ) + 8005c1c: f00a fbd8 bl 80103d0 + 8005c20: f06f 030f mvn.w r3, #15 + 8005c24: e09f b.n 8005d66 (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;); /* iterate through pbuf chain */ do { /* copy one part of the original chain */ if ((p_to->len - offset_to) >= (p_from->len - offset_from)) { - 8005c2a: 687b ldr r3, [r7, #4] - 8005c2c: 895b ldrh r3, [r3, #10] - 8005c2e: 461a mov r2, r3 - 8005c30: 697b ldr r3, [r7, #20] - 8005c32: 1ad2 subs r2, r2, r3 - 8005c34: 683b ldr r3, [r7, #0] - 8005c36: 895b ldrh r3, [r3, #10] - 8005c38: 4619 mov r1, r3 - 8005c3a: 693b ldr r3, [r7, #16] - 8005c3c: 1acb subs r3, r1, r3 - 8005c3e: 429a cmp r2, r3 - 8005c40: d306 bcc.n 8005c50 + 8005c26: 687b ldr r3, [r7, #4] + 8005c28: 895b ldrh r3, [r3, #10] + 8005c2a: 461a mov r2, r3 + 8005c2c: 697b ldr r3, [r7, #20] + 8005c2e: 1ad2 subs r2, r2, r3 + 8005c30: 683b ldr r3, [r7, #0] + 8005c32: 895b ldrh r3, [r3, #10] + 8005c34: 4619 mov r1, r3 + 8005c36: 693b ldr r3, [r7, #16] + 8005c38: 1acb subs r3, r1, r3 + 8005c3a: 429a cmp r2, r3 + 8005c3c: d306 bcc.n 8005c4c /* complete current p_from fits into current p_to */ len = p_from->len - offset_from; - 8005c42: 683b ldr r3, [r7, #0] - 8005c44: 895b ldrh r3, [r3, #10] - 8005c46: 461a mov r2, r3 - 8005c48: 693b ldr r3, [r7, #16] - 8005c4a: 1ad3 subs r3, r2, r3 - 8005c4c: 60fb str r3, [r7, #12] - 8005c4e: e005 b.n 8005c5c + 8005c3e: 683b ldr r3, [r7, #0] + 8005c40: 895b ldrh r3, [r3, #10] + 8005c42: 461a mov r2, r3 + 8005c44: 693b ldr r3, [r7, #16] + 8005c46: 1ad3 subs r3, r2, r3 + 8005c48: 60fb str r3, [r7, #12] + 8005c4a: e005 b.n 8005c58 } else { /* current p_from does not fit into current p_to */ len = p_to->len - offset_to; - 8005c50: 687b ldr r3, [r7, #4] - 8005c52: 895b ldrh r3, [r3, #10] - 8005c54: 461a mov r2, r3 - 8005c56: 697b ldr r3, [r7, #20] - 8005c58: 1ad3 subs r3, r2, r3 - 8005c5a: 60fb str r3, [r7, #12] + 8005c4c: 687b ldr r3, [r7, #4] + 8005c4e: 895b ldrh r3, [r3, #10] + 8005c50: 461a mov r2, r3 + 8005c52: 697b ldr r3, [r7, #20] + 8005c54: 1ad3 subs r3, r2, r3 + 8005c56: 60fb str r3, [r7, #12] } MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len); - 8005c5c: 687b ldr r3, [r7, #4] - 8005c5e: 685a ldr r2, [r3, #4] - 8005c60: 697b ldr r3, [r7, #20] - 8005c62: 18d0 adds r0, r2, r3 - 8005c64: 683b ldr r3, [r7, #0] - 8005c66: 685a ldr r2, [r3, #4] - 8005c68: 693b ldr r3, [r7, #16] - 8005c6a: 4413 add r3, r2 - 8005c6c: 68fa ldr r2, [r7, #12] - 8005c6e: 4619 mov r1, r3 - 8005c70: f00a fb80 bl 8010374 + 8005c58: 687b ldr r3, [r7, #4] + 8005c5a: 685a ldr r2, [r3, #4] + 8005c5c: 697b ldr r3, [r7, #20] + 8005c5e: 18d0 adds r0, r2, r3 + 8005c60: 683b ldr r3, [r7, #0] + 8005c62: 685a ldr r2, [r3, #4] + 8005c64: 693b ldr r3, [r7, #16] + 8005c66: 4413 add r3, r2 + 8005c68: 68fa ldr r2, [r7, #12] + 8005c6a: 4619 mov r1, r3 + 8005c6c: f00a fb80 bl 8010370 offset_to += len; - 8005c74: 697a ldr r2, [r7, #20] - 8005c76: 68fb ldr r3, [r7, #12] - 8005c78: 4413 add r3, r2 - 8005c7a: 617b str r3, [r7, #20] + 8005c70: 697a ldr r2, [r7, #20] + 8005c72: 68fb ldr r3, [r7, #12] + 8005c74: 4413 add r3, r2 + 8005c76: 617b str r3, [r7, #20] offset_from += len; - 8005c7c: 693a ldr r2, [r7, #16] - 8005c7e: 68fb ldr r3, [r7, #12] - 8005c80: 4413 add r3, r2 - 8005c82: 613b str r3, [r7, #16] + 8005c78: 693a ldr r2, [r7, #16] + 8005c7a: 68fb ldr r3, [r7, #12] + 8005c7c: 4413 add r3, r2 + 8005c7e: 613b str r3, [r7, #16] LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len); - 8005c84: 687b ldr r3, [r7, #4] - 8005c86: 895b ldrh r3, [r3, #10] - 8005c88: 461a mov r2, r3 - 8005c8a: 697b ldr r3, [r7, #20] - 8005c8c: 4293 cmp r3, r2 - 8005c8e: d906 bls.n 8005c9e - 8005c90: 4b38 ldr r3, [pc, #224] ; (8005d74 ) - 8005c92: f240 32d9 movw r2, #985 ; 0x3d9 - 8005c96: 493a ldr r1, [pc, #232] ; (8005d80 ) - 8005c98: 4838 ldr r0, [pc, #224] ; (8005d7c ) - 8005c9a: f00a fb9b bl 80103d4 + 8005c80: 687b ldr r3, [r7, #4] + 8005c82: 895b ldrh r3, [r3, #10] + 8005c84: 461a mov r2, r3 + 8005c86: 697b ldr r3, [r7, #20] + 8005c88: 4293 cmp r3, r2 + 8005c8a: d906 bls.n 8005c9a + 8005c8c: 4b38 ldr r3, [pc, #224] ; (8005d70 ) + 8005c8e: f240 32d9 movw r2, #985 ; 0x3d9 + 8005c92: 493a ldr r1, [pc, #232] ; (8005d7c ) + 8005c94: 4838 ldr r0, [pc, #224] ; (8005d78 ) + 8005c96: f00a fb9b bl 80103d0 LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len); - 8005c9e: 683b ldr r3, [r7, #0] - 8005ca0: 895b ldrh r3, [r3, #10] - 8005ca2: 461a mov r2, r3 - 8005ca4: 693b ldr r3, [r7, #16] - 8005ca6: 4293 cmp r3, r2 - 8005ca8: d906 bls.n 8005cb8 - 8005caa: 4b32 ldr r3, [pc, #200] ; (8005d74 ) - 8005cac: f240 32da movw r2, #986 ; 0x3da - 8005cb0: 4934 ldr r1, [pc, #208] ; (8005d84 ) - 8005cb2: 4832 ldr r0, [pc, #200] ; (8005d7c ) - 8005cb4: f00a fb8e bl 80103d4 + 8005c9a: 683b ldr r3, [r7, #0] + 8005c9c: 895b ldrh r3, [r3, #10] + 8005c9e: 461a mov r2, r3 + 8005ca0: 693b ldr r3, [r7, #16] + 8005ca2: 4293 cmp r3, r2 + 8005ca4: d906 bls.n 8005cb4 + 8005ca6: 4b32 ldr r3, [pc, #200] ; (8005d70 ) + 8005ca8: f240 32da movw r2, #986 ; 0x3da + 8005cac: 4934 ldr r1, [pc, #208] ; (8005d80 ) + 8005cae: 4832 ldr r0, [pc, #200] ; (8005d78 ) + 8005cb0: f00a fb8e bl 80103d0 if (offset_from >= p_from->len) { - 8005cb8: 683b ldr r3, [r7, #0] - 8005cba: 895b ldrh r3, [r3, #10] - 8005cbc: 461a mov r2, r3 - 8005cbe: 693b ldr r3, [r7, #16] - 8005cc0: 4293 cmp r3, r2 - 8005cc2: d304 bcc.n 8005cce + 8005cb4: 683b ldr r3, [r7, #0] + 8005cb6: 895b ldrh r3, [r3, #10] + 8005cb8: 461a mov r2, r3 + 8005cba: 693b ldr r3, [r7, #16] + 8005cbc: 4293 cmp r3, r2 + 8005cbe: d304 bcc.n 8005cca /* on to next p_from (if any) */ offset_from = 0; - 8005cc4: 2300 movs r3, #0 - 8005cc6: 613b str r3, [r7, #16] + 8005cc0: 2300 movs r3, #0 + 8005cc2: 613b str r3, [r7, #16] p_from = p_from->next; - 8005cc8: 683b ldr r3, [r7, #0] - 8005cca: 681b ldr r3, [r3, #0] - 8005ccc: 603b str r3, [r7, #0] + 8005cc4: 683b ldr r3, [r7, #0] + 8005cc6: 681b ldr r3, [r3, #0] + 8005cc8: 603b str r3, [r7, #0] } if (offset_to == p_to->len) { - 8005cce: 687b ldr r3, [r7, #4] - 8005cd0: 895b ldrh r3, [r3, #10] - 8005cd2: 461a mov r2, r3 - 8005cd4: 697b ldr r3, [r7, #20] - 8005cd6: 4293 cmp r3, r2 - 8005cd8: d114 bne.n 8005d04 + 8005cca: 687b ldr r3, [r7, #4] + 8005ccc: 895b ldrh r3, [r3, #10] + 8005cce: 461a mov r2, r3 + 8005cd0: 697b ldr r3, [r7, #20] + 8005cd2: 4293 cmp r3, r2 + 8005cd4: d114 bne.n 8005d00 /* on to next p_to (if any) */ offset_to = 0; - 8005cda: 2300 movs r3, #0 - 8005cdc: 617b str r3, [r7, #20] + 8005cd6: 2300 movs r3, #0 + 8005cd8: 617b str r3, [r7, #20] p_to = p_to->next; - 8005cde: 687b ldr r3, [r7, #4] - 8005ce0: 681b ldr r3, [r3, #0] - 8005ce2: 607b str r3, [r7, #4] + 8005cda: 687b ldr r3, [r7, #4] + 8005cdc: 681b ldr r3, [r3, #0] + 8005cde: 607b str r3, [r7, #4] LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL), return ERR_ARG;); - 8005ce4: 687b ldr r3, [r7, #4] - 8005ce6: 2b00 cmp r3, #0 - 8005ce8: d10c bne.n 8005d04 - 8005cea: 683b ldr r3, [r7, #0] - 8005cec: 2b00 cmp r3, #0 - 8005cee: d009 beq.n 8005d04 - 8005cf0: 4b20 ldr r3, [pc, #128] ; (8005d74 ) - 8005cf2: f44f 7279 mov.w r2, #996 ; 0x3e4 - 8005cf6: 4924 ldr r1, [pc, #144] ; (8005d88 ) - 8005cf8: 4820 ldr r0, [pc, #128] ; (8005d7c ) - 8005cfa: f00a fb6b bl 80103d4 - 8005cfe: f06f 030f mvn.w r3, #15 - 8005d02: e032 b.n 8005d6a + 8005ce0: 687b ldr r3, [r7, #4] + 8005ce2: 2b00 cmp r3, #0 + 8005ce4: d10c bne.n 8005d00 + 8005ce6: 683b ldr r3, [r7, #0] + 8005ce8: 2b00 cmp r3, #0 + 8005cea: d009 beq.n 8005d00 + 8005cec: 4b20 ldr r3, [pc, #128] ; (8005d70 ) + 8005cee: f44f 7279 mov.w r2, #996 ; 0x3e4 + 8005cf2: 4924 ldr r1, [pc, #144] ; (8005d84 ) + 8005cf4: 4820 ldr r0, [pc, #128] ; (8005d78 ) + 8005cf6: f00a fb6b bl 80103d0 + 8005cfa: f06f 030f mvn.w r3, #15 + 8005cfe: e032 b.n 8005d66 } if ((p_from != NULL) && (p_from->len == p_from->tot_len)) { - 8005d04: 683b ldr r3, [r7, #0] - 8005d06: 2b00 cmp r3, #0 - 8005d08: d013 beq.n 8005d32 + 8005d00: 683b ldr r3, [r7, #0] + 8005d02: 2b00 cmp r3, #0 + 8005d04: d013 beq.n 8005d2e + 8005d06: 683b ldr r3, [r7, #0] + 8005d08: 895a ldrh r2, [r3, #10] 8005d0a: 683b ldr r3, [r7, #0] - 8005d0c: 895a ldrh r2, [r3, #10] - 8005d0e: 683b ldr r3, [r7, #0] - 8005d10: 891b ldrh r3, [r3, #8] - 8005d12: 429a cmp r2, r3 - 8005d14: d10d bne.n 8005d32 + 8005d0c: 891b ldrh r3, [r3, #8] + 8005d0e: 429a cmp r2, r3 + 8005d10: d10d bne.n 8005d2e /* don't copy more than one packet! */ LWIP_ERROR("pbuf_copy() does not allow packet queues!", - 8005d16: 683b ldr r3, [r7, #0] - 8005d18: 681b ldr r3, [r3, #0] - 8005d1a: 2b00 cmp r3, #0 - 8005d1c: d009 beq.n 8005d32 - 8005d1e: 4b15 ldr r3, [pc, #84] ; (8005d74 ) - 8005d20: f240 32e9 movw r2, #1001 ; 0x3e9 - 8005d24: 4919 ldr r1, [pc, #100] ; (8005d8c ) - 8005d26: 4815 ldr r0, [pc, #84] ; (8005d7c ) - 8005d28: f00a fb54 bl 80103d4 - 8005d2c: f06f 0305 mvn.w r3, #5 - 8005d30: e01b b.n 8005d6a + 8005d12: 683b ldr r3, [r7, #0] + 8005d14: 681b ldr r3, [r3, #0] + 8005d16: 2b00 cmp r3, #0 + 8005d18: d009 beq.n 8005d2e + 8005d1a: 4b15 ldr r3, [pc, #84] ; (8005d70 ) + 8005d1c: f240 32e9 movw r2, #1001 ; 0x3e9 + 8005d20: 4919 ldr r1, [pc, #100] ; (8005d88 ) + 8005d22: 4815 ldr r0, [pc, #84] ; (8005d78 ) + 8005d24: f00a fb54 bl 80103d0 + 8005d28: f06f 0305 mvn.w r3, #5 + 8005d2c: e01b b.n 8005d66 (p_from->next == NULL), return ERR_VAL;); } if ((p_to != NULL) && (p_to->len == p_to->tot_len)) { - 8005d32: 687b ldr r3, [r7, #4] - 8005d34: 2b00 cmp r3, #0 - 8005d36: d013 beq.n 8005d60 + 8005d2e: 687b ldr r3, [r7, #4] + 8005d30: 2b00 cmp r3, #0 + 8005d32: d013 beq.n 8005d5c + 8005d34: 687b ldr r3, [r7, #4] + 8005d36: 895a ldrh r2, [r3, #10] 8005d38: 687b ldr r3, [r7, #4] - 8005d3a: 895a ldrh r2, [r3, #10] - 8005d3c: 687b ldr r3, [r7, #4] - 8005d3e: 891b ldrh r3, [r3, #8] - 8005d40: 429a cmp r2, r3 - 8005d42: d10d bne.n 8005d60 + 8005d3a: 891b ldrh r3, [r3, #8] + 8005d3c: 429a cmp r2, r3 + 8005d3e: d10d bne.n 8005d5c /* don't copy more than one packet! */ LWIP_ERROR("pbuf_copy() does not allow packet queues!", - 8005d44: 687b ldr r3, [r7, #4] - 8005d46: 681b ldr r3, [r3, #0] - 8005d48: 2b00 cmp r3, #0 - 8005d4a: d009 beq.n 8005d60 - 8005d4c: 4b09 ldr r3, [pc, #36] ; (8005d74 ) - 8005d4e: f240 32ee movw r2, #1006 ; 0x3ee - 8005d52: 490e ldr r1, [pc, #56] ; (8005d8c ) - 8005d54: 4809 ldr r0, [pc, #36] ; (8005d7c ) - 8005d56: f00a fb3d bl 80103d4 - 8005d5a: f06f 0305 mvn.w r3, #5 - 8005d5e: e004 b.n 8005d6a + 8005d40: 687b ldr r3, [r7, #4] + 8005d42: 681b ldr r3, [r3, #0] + 8005d44: 2b00 cmp r3, #0 + 8005d46: d009 beq.n 8005d5c + 8005d48: 4b09 ldr r3, [pc, #36] ; (8005d70 ) + 8005d4a: f240 32ee movw r2, #1006 ; 0x3ee + 8005d4e: 490e ldr r1, [pc, #56] ; (8005d88 ) + 8005d50: 4809 ldr r0, [pc, #36] ; (8005d78 ) + 8005d52: f00a fb3d bl 80103d0 + 8005d56: f06f 0305 mvn.w r3, #5 + 8005d5a: e004 b.n 8005d66 (p_to->next == NULL), return ERR_VAL;); } } while (p_from); - 8005d60: 683b ldr r3, [r7, #0] - 8005d62: 2b00 cmp r3, #0 - 8005d64: f47f af61 bne.w 8005c2a + 8005d5c: 683b ldr r3, [r7, #0] + 8005d5e: 2b00 cmp r3, #0 + 8005d60: f47f af61 bne.w 8005c26 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy: end of chain reached.\n")); return ERR_OK; - 8005d68: 2300 movs r3, #0 + 8005d64: 2300 movs r3, #0 } - 8005d6a: 4618 mov r0, r3 - 8005d6c: 3718 adds r7, #24 - 8005d6e: 46bd mov sp, r7 - 8005d70: bd80 pop {r7, pc} - 8005d72: bf00 nop - 8005d74: 080154bc .word 0x080154bc - 8005d78: 08015764 .word 0x08015764 - 8005d7c: 0801551c .word 0x0801551c - 8005d80: 08015794 .word 0x08015794 - 8005d84: 080157ac .word 0x080157ac - 8005d88: 080157c8 .word 0x080157c8 - 8005d8c: 080157d8 .word 0x080157d8 + 8005d66: 4618 mov r0, r3 + 8005d68: 3718 adds r7, #24 + 8005d6a: 46bd mov sp, r7 + 8005d6c: bd80 pop {r7, pc} + 8005d6e: bf00 nop + 8005d70: 080154bc .word 0x080154bc + 8005d74: 08015764 .word 0x08015764 + 8005d78: 0801551c .word 0x0801551c + 8005d7c: 08015794 .word 0x08015794 + 8005d80: 080157ac .word 0x080157ac + 8005d84: 080157c8 .word 0x080157c8 + 8005d88: 080157d8 .word 0x080157d8 -08005d90 : +08005d8c : * @param offset offset into the packet buffer from where to begin copying len bytes * @return the number of bytes copied, or 0 on failure */ u16_t pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset) { - 8005d90: b580 push {r7, lr} - 8005d92: b088 sub sp, #32 - 8005d94: af00 add r7, sp, #0 - 8005d96: 60f8 str r0, [r7, #12] - 8005d98: 60b9 str r1, [r7, #8] - 8005d9a: 4611 mov r1, r2 - 8005d9c: 461a mov r2, r3 - 8005d9e: 460b mov r3, r1 - 8005da0: 80fb strh r3, [r7, #6] - 8005da2: 4613 mov r3, r2 - 8005da4: 80bb strh r3, [r7, #4] + 8005d8c: b580 push {r7, lr} + 8005d8e: b088 sub sp, #32 + 8005d90: af00 add r7, sp, #0 + 8005d92: 60f8 str r0, [r7, #12] + 8005d94: 60b9 str r1, [r7, #8] + 8005d96: 4611 mov r1, r2 + 8005d98: 461a mov r2, r3 + 8005d9a: 460b mov r3, r1 + 8005d9c: 80fb strh r3, [r7, #6] + 8005d9e: 4613 mov r3, r2 + 8005da0: 80bb strh r3, [r7, #4] const struct pbuf *p; u16_t left = 0; - 8005da6: 2300 movs r3, #0 - 8005da8: 837b strh r3, [r7, #26] + 8005da2: 2300 movs r3, #0 + 8005da4: 837b strh r3, [r7, #26] u16_t buf_copy_len; u16_t copied_total = 0; - 8005daa: 2300 movs r3, #0 - 8005dac: 82fb strh r3, [r7, #22] + 8005da6: 2300 movs r3, #0 + 8005da8: 82fb strh r3, [r7, #22] LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;); - 8005dae: 68fb ldr r3, [r7, #12] - 8005db0: 2b00 cmp r3, #0 - 8005db2: d108 bne.n 8005dc6 - 8005db4: 4b2b ldr r3, [pc, #172] ; (8005e64 ) - 8005db6: f240 420a movw r2, #1034 ; 0x40a - 8005dba: 492b ldr r1, [pc, #172] ; (8005e68 ) - 8005dbc: 482b ldr r0, [pc, #172] ; (8005e6c ) - 8005dbe: f00a fb09 bl 80103d4 - 8005dc2: 2300 movs r3, #0 - 8005dc4: e04a b.n 8005e5c + 8005daa: 68fb ldr r3, [r7, #12] + 8005dac: 2b00 cmp r3, #0 + 8005dae: d108 bne.n 8005dc2 + 8005db0: 4b2b ldr r3, [pc, #172] ; (8005e60 ) + 8005db2: f240 420a movw r2, #1034 ; 0x40a + 8005db6: 492b ldr r1, [pc, #172] ; (8005e64 ) + 8005db8: 482b ldr r0, [pc, #172] ; (8005e68 ) + 8005dba: f00a fb09 bl 80103d0 + 8005dbe: 2300 movs r3, #0 + 8005dc0: e04a b.n 8005e58 LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;); - 8005dc6: 68bb ldr r3, [r7, #8] - 8005dc8: 2b00 cmp r3, #0 - 8005dca: d108 bne.n 8005dde - 8005dcc: 4b25 ldr r3, [pc, #148] ; (8005e64 ) - 8005dce: f240 420b movw r2, #1035 ; 0x40b - 8005dd2: 4927 ldr r1, [pc, #156] ; (8005e70 ) - 8005dd4: 4825 ldr r0, [pc, #148] ; (8005e6c ) - 8005dd6: f00a fafd bl 80103d4 - 8005dda: 2300 movs r3, #0 - 8005ddc: e03e b.n 8005e5c + 8005dc2: 68bb ldr r3, [r7, #8] + 8005dc4: 2b00 cmp r3, #0 + 8005dc6: d108 bne.n 8005dda + 8005dc8: 4b25 ldr r3, [pc, #148] ; (8005e60 ) + 8005dca: f240 420b movw r2, #1035 ; 0x40b + 8005dce: 4927 ldr r1, [pc, #156] ; (8005e6c ) + 8005dd0: 4825 ldr r0, [pc, #148] ; (8005e68 ) + 8005dd2: f00a fafd bl 80103d0 + 8005dd6: 2300 movs r3, #0 + 8005dd8: e03e b.n 8005e58 /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */ for (p = buf; len != 0 && p != NULL; p = p->next) { - 8005dde: 68fb ldr r3, [r7, #12] - 8005de0: 61fb str r3, [r7, #28] - 8005de2: e034 b.n 8005e4e + 8005dda: 68fb ldr r3, [r7, #12] + 8005ddc: 61fb str r3, [r7, #28] + 8005dde: e034 b.n 8005e4a if ((offset != 0) && (offset >= p->len)) { - 8005de4: 88bb ldrh r3, [r7, #4] - 8005de6: 2b00 cmp r3, #0 - 8005de8: d00a beq.n 8005e00 - 8005dea: 69fb ldr r3, [r7, #28] - 8005dec: 895b ldrh r3, [r3, #10] - 8005dee: 88ba ldrh r2, [r7, #4] - 8005df0: 429a cmp r2, r3 - 8005df2: d305 bcc.n 8005e00 + 8005de0: 88bb ldrh r3, [r7, #4] + 8005de2: 2b00 cmp r3, #0 + 8005de4: d00a beq.n 8005dfc + 8005de6: 69fb ldr r3, [r7, #28] + 8005de8: 895b ldrh r3, [r3, #10] + 8005dea: 88ba ldrh r2, [r7, #4] + 8005dec: 429a cmp r2, r3 + 8005dee: d305 bcc.n 8005dfc /* don't copy from this buffer -> on to the next */ offset = (u16_t)(offset - p->len); - 8005df4: 69fb ldr r3, [r7, #28] - 8005df6: 895b ldrh r3, [r3, #10] - 8005df8: 88ba ldrh r2, [r7, #4] - 8005dfa: 1ad3 subs r3, r2, r3 - 8005dfc: 80bb strh r3, [r7, #4] - 8005dfe: e023 b.n 8005e48 + 8005df0: 69fb ldr r3, [r7, #28] + 8005df2: 895b ldrh r3, [r3, #10] + 8005df4: 88ba ldrh r2, [r7, #4] + 8005df6: 1ad3 subs r3, r2, r3 + 8005df8: 80bb strh r3, [r7, #4] + 8005dfa: e023 b.n 8005e44 } else { /* copy from this buffer. maybe only partially. */ buf_copy_len = (u16_t)(p->len - offset); - 8005e00: 69fb ldr r3, [r7, #28] - 8005e02: 895a ldrh r2, [r3, #10] - 8005e04: 88bb ldrh r3, [r7, #4] - 8005e06: 1ad3 subs r3, r2, r3 - 8005e08: 833b strh r3, [r7, #24] + 8005dfc: 69fb ldr r3, [r7, #28] + 8005dfe: 895a ldrh r2, [r3, #10] + 8005e00: 88bb ldrh r3, [r7, #4] + 8005e02: 1ad3 subs r3, r2, r3 + 8005e04: 833b strh r3, [r7, #24] if (buf_copy_len > len) { - 8005e0a: 8b3a ldrh r2, [r7, #24] - 8005e0c: 88fb ldrh r3, [r7, #6] - 8005e0e: 429a cmp r2, r3 - 8005e10: d901 bls.n 8005e16 + 8005e06: 8b3a ldrh r2, [r7, #24] + 8005e08: 88fb ldrh r3, [r7, #6] + 8005e0a: 429a cmp r2, r3 + 8005e0c: d901 bls.n 8005e12 buf_copy_len = len; - 8005e12: 88fb ldrh r3, [r7, #6] - 8005e14: 833b strh r3, [r7, #24] + 8005e0e: 88fb ldrh r3, [r7, #6] + 8005e10: 833b strh r3, [r7, #24] } /* copy the necessary parts of the buffer */ MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len); - 8005e16: 8b7b ldrh r3, [r7, #26] - 8005e18: 68ba ldr r2, [r7, #8] - 8005e1a: 18d0 adds r0, r2, r3 - 8005e1c: 69fb ldr r3, [r7, #28] - 8005e1e: 685a ldr r2, [r3, #4] - 8005e20: 88bb ldrh r3, [r7, #4] - 8005e22: 4413 add r3, r2 - 8005e24: 8b3a ldrh r2, [r7, #24] - 8005e26: 4619 mov r1, r3 - 8005e28: f00a faa4 bl 8010374 + 8005e12: 8b7b ldrh r3, [r7, #26] + 8005e14: 68ba ldr r2, [r7, #8] + 8005e16: 18d0 adds r0, r2, r3 + 8005e18: 69fb ldr r3, [r7, #28] + 8005e1a: 685a ldr r2, [r3, #4] + 8005e1c: 88bb ldrh r3, [r7, #4] + 8005e1e: 4413 add r3, r2 + 8005e20: 8b3a ldrh r2, [r7, #24] + 8005e22: 4619 mov r1, r3 + 8005e24: f00a faa4 bl 8010370 copied_total = (u16_t)(copied_total + buf_copy_len); - 8005e2c: 8afa ldrh r2, [r7, #22] - 8005e2e: 8b3b ldrh r3, [r7, #24] - 8005e30: 4413 add r3, r2 - 8005e32: 82fb strh r3, [r7, #22] + 8005e28: 8afa ldrh r2, [r7, #22] + 8005e2a: 8b3b ldrh r3, [r7, #24] + 8005e2c: 4413 add r3, r2 + 8005e2e: 82fb strh r3, [r7, #22] left = (u16_t)(left + buf_copy_len); - 8005e34: 8b7a ldrh r2, [r7, #26] - 8005e36: 8b3b ldrh r3, [r7, #24] - 8005e38: 4413 add r3, r2 - 8005e3a: 837b strh r3, [r7, #26] + 8005e30: 8b7a ldrh r2, [r7, #26] + 8005e32: 8b3b ldrh r3, [r7, #24] + 8005e34: 4413 add r3, r2 + 8005e36: 837b strh r3, [r7, #26] len = (u16_t)(len - buf_copy_len); - 8005e3c: 88fa ldrh r2, [r7, #6] - 8005e3e: 8b3b ldrh r3, [r7, #24] - 8005e40: 1ad3 subs r3, r2, r3 - 8005e42: 80fb strh r3, [r7, #6] + 8005e38: 88fa ldrh r2, [r7, #6] + 8005e3a: 8b3b ldrh r3, [r7, #24] + 8005e3c: 1ad3 subs r3, r2, r3 + 8005e3e: 80fb strh r3, [r7, #6] offset = 0; - 8005e44: 2300 movs r3, #0 - 8005e46: 80bb strh r3, [r7, #4] + 8005e40: 2300 movs r3, #0 + 8005e42: 80bb strh r3, [r7, #4] for (p = buf; len != 0 && p != NULL; p = p->next) { - 8005e48: 69fb ldr r3, [r7, #28] - 8005e4a: 681b ldr r3, [r3, #0] - 8005e4c: 61fb str r3, [r7, #28] - 8005e4e: 88fb ldrh r3, [r7, #6] - 8005e50: 2b00 cmp r3, #0 - 8005e52: d002 beq.n 8005e5a - 8005e54: 69fb ldr r3, [r7, #28] - 8005e56: 2b00 cmp r3, #0 - 8005e58: d1c4 bne.n 8005de4 + 8005e44: 69fb ldr r3, [r7, #28] + 8005e46: 681b ldr r3, [r3, #0] + 8005e48: 61fb str r3, [r7, #28] + 8005e4a: 88fb ldrh r3, [r7, #6] + 8005e4c: 2b00 cmp r3, #0 + 8005e4e: d002 beq.n 8005e56 + 8005e50: 69fb ldr r3, [r7, #28] + 8005e52: 2b00 cmp r3, #0 + 8005e54: d1c4 bne.n 8005de0 } } return copied_total; - 8005e5a: 8afb ldrh r3, [r7, #22] + 8005e56: 8afb ldrh r3, [r7, #22] } - 8005e5c: 4618 mov r0, r3 - 8005e5e: 3720 adds r7, #32 - 8005e60: 46bd mov sp, r7 - 8005e62: bd80 pop {r7, pc} - 8005e64: 080154bc .word 0x080154bc - 8005e68: 08015804 .word 0x08015804 - 8005e6c: 0801551c .word 0x0801551c - 8005e70: 08015824 .word 0x08015824 + 8005e58: 4618 mov r0, r3 + 8005e5a: 3720 adds r7, #32 + 8005e5c: 46bd mov sp, r7 + 8005e5e: bd80 pop {r7, pc} + 8005e60: 080154bc .word 0x080154bc + 8005e64: 08015804 .word 0x08015804 + 8005e68: 0801551c .word 0x0801551c + 8005e6c: 08015824 .word 0x08015824 -08005e74 : +08005e70 : * * @return a new pbuf or NULL if allocation fails */ struct pbuf * pbuf_clone(pbuf_layer layer, pbuf_type type, struct pbuf *p) { - 8005e74: b580 push {r7, lr} - 8005e76: b084 sub sp, #16 - 8005e78: af00 add r7, sp, #0 - 8005e7a: 4603 mov r3, r0 - 8005e7c: 603a str r2, [r7, #0] - 8005e7e: 71fb strb r3, [r7, #7] - 8005e80: 460b mov r3, r1 - 8005e82: 80bb strh r3, [r7, #4] + 8005e70: b580 push {r7, lr} + 8005e72: b084 sub sp, #16 + 8005e74: af00 add r7, sp, #0 + 8005e76: 4603 mov r3, r0 + 8005e78: 603a str r2, [r7, #0] + 8005e7a: 71fb strb r3, [r7, #7] + 8005e7c: 460b mov r3, r1 + 8005e7e: 80bb strh r3, [r7, #4] struct pbuf *q; err_t err; q = pbuf_alloc(layer, p->tot_len, type); - 8005e84: 683b ldr r3, [r7, #0] - 8005e86: 8919 ldrh r1, [r3, #8] - 8005e88: 88ba ldrh r2, [r7, #4] - 8005e8a: 79fb ldrb r3, [r7, #7] - 8005e8c: 4618 mov r0, r3 - 8005e8e: f7ff faa1 bl 80053d4 - 8005e92: 60f8 str r0, [r7, #12] + 8005e80: 683b ldr r3, [r7, #0] + 8005e82: 8919 ldrh r1, [r3, #8] + 8005e84: 88ba ldrh r2, [r7, #4] + 8005e86: 79fb ldrb r3, [r7, #7] + 8005e88: 4618 mov r0, r3 + 8005e8a: f7ff faa1 bl 80053d0 + 8005e8e: 60f8 str r0, [r7, #12] if (q == NULL) { - 8005e94: 68fb ldr r3, [r7, #12] - 8005e96: 2b00 cmp r3, #0 - 8005e98: d101 bne.n 8005e9e + 8005e90: 68fb ldr r3, [r7, #12] + 8005e92: 2b00 cmp r3, #0 + 8005e94: d101 bne.n 8005e9a return NULL; - 8005e9a: 2300 movs r3, #0 - 8005e9c: e011 b.n 8005ec2 + 8005e96: 2300 movs r3, #0 + 8005e98: e011 b.n 8005ebe } err = pbuf_copy(q, p); - 8005e9e: 6839 ldr r1, [r7, #0] - 8005ea0: 68f8 ldr r0, [r7, #12] - 8005ea2: f7ff fea3 bl 8005bec - 8005ea6: 4603 mov r3, r0 - 8005ea8: 72fb strb r3, [r7, #11] + 8005e9a: 6839 ldr r1, [r7, #0] + 8005e9c: 68f8 ldr r0, [r7, #12] + 8005e9e: f7ff fea3 bl 8005be8 + 8005ea2: 4603 mov r3, r0 + 8005ea4: 72fb strb r3, [r7, #11] LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */ LWIP_ASSERT("pbuf_copy failed", err == ERR_OK); - 8005eaa: f997 300b ldrsb.w r3, [r7, #11] - 8005eae: 2b00 cmp r3, #0 - 8005eb0: d006 beq.n 8005ec0 - 8005eb2: 4b06 ldr r3, [pc, #24] ; (8005ecc ) - 8005eb4: f240 5224 movw r2, #1316 ; 0x524 - 8005eb8: 4905 ldr r1, [pc, #20] ; (8005ed0 ) - 8005eba: 4806 ldr r0, [pc, #24] ; (8005ed4 ) - 8005ebc: f00a fa8a bl 80103d4 + 8005ea6: f997 300b ldrsb.w r3, [r7, #11] + 8005eaa: 2b00 cmp r3, #0 + 8005eac: d006 beq.n 8005ebc + 8005eae: 4b06 ldr r3, [pc, #24] ; (8005ec8 ) + 8005eb0: f240 5224 movw r2, #1316 ; 0x524 + 8005eb4: 4905 ldr r1, [pc, #20] ; (8005ecc ) + 8005eb6: 4806 ldr r0, [pc, #24] ; (8005ed0 ) + 8005eb8: f00a fa8a bl 80103d0 return q; - 8005ec0: 68fb ldr r3, [r7, #12] + 8005ebc: 68fb ldr r3, [r7, #12] } - 8005ec2: 4618 mov r0, r3 - 8005ec4: 3710 adds r7, #16 - 8005ec6: 46bd mov sp, r7 - 8005ec8: bd80 pop {r7, pc} - 8005eca: bf00 nop - 8005ecc: 080154bc .word 0x080154bc - 8005ed0: 08015930 .word 0x08015930 - 8005ed4: 0801551c .word 0x0801551c + 8005ebe: 4618 mov r0, r3 + 8005ec0: 3710 adds r7, #16 + 8005ec2: 46bd mov sp, r7 + 8005ec4: bd80 pop {r7, pc} + 8005ec6: bf00 nop + 8005ec8: 080154bc .word 0x080154bc + 8005ecc: 08015930 .word 0x08015930 + 8005ed0: 0801551c .word 0x0801551c -08005ed8 : +08005ed4 : /** * Initialize this module. */ void tcp_init(void) { - 8005ed8: b580 push {r7, lr} - 8005eda: af00 add r7, sp, #0 + 8005ed4: b580 push {r7, lr} + 8005ed6: af00 add r7, sp, #0 #ifdef LWIP_RAND tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); - 8005edc: f00a fa8c bl 80103f8 - 8005ee0: 4603 mov r3, r0 - 8005ee2: b29b uxth r3, r3 - 8005ee4: f3c3 030d ubfx r3, r3, #0, #14 - 8005ee8: b29b uxth r3, r3 - 8005eea: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 - 8005eee: b29a uxth r2, r3 - 8005ef0: 4b01 ldr r3, [pc, #4] ; (8005ef8 ) - 8005ef2: 801a strh r2, [r3, #0] + 8005ed8: f00a fa8c bl 80103f4 + 8005edc: 4603 mov r3, r0 + 8005ede: b29b uxth r3, r3 + 8005ee0: f3c3 030d ubfx r3, r3, #0, #14 + 8005ee4: b29b uxth r3, r3 + 8005ee6: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 + 8005eea: b29a uxth r2, r3 + 8005eec: 4b01 ldr r3, [pc, #4] ; (8005ef4 ) + 8005eee: 801a strh r2, [r3, #0] #endif /* LWIP_RAND */ } - 8005ef4: bf00 nop - 8005ef6: bd80 pop {r7, pc} - 8005ef8: 20000020 .word 0x20000020 + 8005ef0: bf00 nop + 8005ef2: bd80 pop {r7, pc} + 8005ef4: 20000020 .word 0x20000020 -08005efc : +08005ef8 : /** Free a tcp pcb */ void tcp_free(struct tcp_pcb *pcb) { - 8005efc: b580 push {r7, lr} - 8005efe: b082 sub sp, #8 - 8005f00: af00 add r7, sp, #0 - 8005f02: 6078 str r0, [r7, #4] + 8005ef8: b580 push {r7, lr} + 8005efa: b082 sub sp, #8 + 8005efc: af00 add r7, sp, #0 + 8005efe: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN); - 8005f04: 687b ldr r3, [r7, #4] - 8005f06: 7d1b ldrb r3, [r3, #20] - 8005f08: 2b01 cmp r3, #1 - 8005f0a: d105 bne.n 8005f18 - 8005f0c: 4b06 ldr r3, [pc, #24] ; (8005f28 ) - 8005f0e: 22d4 movs r2, #212 ; 0xd4 - 8005f10: 4906 ldr r1, [pc, #24] ; (8005f2c ) - 8005f12: 4807 ldr r0, [pc, #28] ; (8005f30 ) - 8005f14: f00a fa5e bl 80103d4 + 8005f00: 687b ldr r3, [r7, #4] + 8005f02: 7d1b ldrb r3, [r3, #20] + 8005f04: 2b01 cmp r3, #1 + 8005f06: d105 bne.n 8005f14 + 8005f08: 4b06 ldr r3, [pc, #24] ; (8005f24 ) + 8005f0a: 22d4 movs r2, #212 ; 0xd4 + 8005f0c: 4906 ldr r1, [pc, #24] ; (8005f28 ) + 8005f0e: 4807 ldr r0, [pc, #28] ; (8005f2c ) + 8005f10: f00a fa5e bl 80103d0 #if LWIP_TCP_PCB_NUM_EXT_ARGS tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); #endif memp_free(MEMP_TCP_PCB, pcb); - 8005f18: 6879 ldr r1, [r7, #4] - 8005f1a: 2001 movs r0, #1 - 8005f1c: f7fe febc bl 8004c98 + 8005f14: 6879 ldr r1, [r7, #4] + 8005f16: 2001 movs r0, #1 + 8005f18: f7fe febc bl 8004c94 } - 8005f20: bf00 nop - 8005f22: 3708 adds r7, #8 - 8005f24: 46bd mov sp, r7 - 8005f26: bd80 pop {r7, pc} - 8005f28: 080159bc .word 0x080159bc - 8005f2c: 080159ec .word 0x080159ec - 8005f30: 08015a00 .word 0x08015a00 + 8005f1c: bf00 nop + 8005f1e: 3708 adds r7, #8 + 8005f20: 46bd mov sp, r7 + 8005f22: bd80 pop {r7, pc} + 8005f24: 080159bc .word 0x080159bc + 8005f28: 080159ec .word 0x080159ec + 8005f2c: 08015a00 .word 0x08015a00 -08005f34 : +08005f30 : /** Free a tcp listen pcb */ static void tcp_free_listen(struct tcp_pcb *pcb) { - 8005f34: b580 push {r7, lr} - 8005f36: b082 sub sp, #8 - 8005f38: af00 add r7, sp, #0 - 8005f3a: 6078 str r0, [r7, #4] + 8005f30: b580 push {r7, lr} + 8005f32: b082 sub sp, #8 + 8005f34: af00 add r7, sp, #0 + 8005f36: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN); - 8005f3c: 687b ldr r3, [r7, #4] - 8005f3e: 7d1b ldrb r3, [r3, #20] - 8005f40: 2b01 cmp r3, #1 - 8005f42: d105 bne.n 8005f50 - 8005f44: 4b06 ldr r3, [pc, #24] ; (8005f60 ) - 8005f46: 22df movs r2, #223 ; 0xdf - 8005f48: 4906 ldr r1, [pc, #24] ; (8005f64 ) - 8005f4a: 4807 ldr r0, [pc, #28] ; (8005f68 ) - 8005f4c: f00a fa42 bl 80103d4 + 8005f38: 687b ldr r3, [r7, #4] + 8005f3a: 7d1b ldrb r3, [r3, #20] + 8005f3c: 2b01 cmp r3, #1 + 8005f3e: d105 bne.n 8005f4c + 8005f40: 4b06 ldr r3, [pc, #24] ; (8005f5c ) + 8005f42: 22df movs r2, #223 ; 0xdf + 8005f44: 4906 ldr r1, [pc, #24] ; (8005f60 ) + 8005f46: 4807 ldr r0, [pc, #28] ; (8005f64 ) + 8005f48: f00a fa42 bl 80103d0 #if LWIP_TCP_PCB_NUM_EXT_ARGS tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); #endif memp_free(MEMP_TCP_PCB_LISTEN, pcb); - 8005f50: 6879 ldr r1, [r7, #4] - 8005f52: 2002 movs r0, #2 - 8005f54: f7fe fea0 bl 8004c98 + 8005f4c: 6879 ldr r1, [r7, #4] + 8005f4e: 2002 movs r0, #2 + 8005f50: f7fe fea0 bl 8004c94 } - 8005f58: bf00 nop - 8005f5a: 3708 adds r7, #8 - 8005f5c: 46bd mov sp, r7 - 8005f5e: bd80 pop {r7, pc} - 8005f60: 080159bc .word 0x080159bc - 8005f64: 08015a28 .word 0x08015a28 - 8005f68: 08015a00 .word 0x08015a00 + 8005f54: bf00 nop + 8005f56: 3708 adds r7, #8 + 8005f58: 46bd mov sp, r7 + 8005f5a: bd80 pop {r7, pc} + 8005f5c: 080159bc .word 0x080159bc + 8005f60: 08015a28 .word 0x08015a28 + 8005f64: 08015a00 .word 0x08015a00 -08005f6c : +08005f68 : /** * Called periodically to dispatch TCP timers. */ void tcp_tmr(void) { - 8005f6c: b580 push {r7, lr} - 8005f6e: af00 add r7, sp, #0 + 8005f68: b580 push {r7, lr} + 8005f6a: af00 add r7, sp, #0 /* Call tcp_fasttmr() every 250 ms */ tcp_fasttmr(); - 8005f70: f000 fea2 bl 8006cb8 + 8005f6c: f000 fea2 bl 8006cb4 if (++tcp_timer & 1) { - 8005f74: 4b07 ldr r3, [pc, #28] ; (8005f94 ) - 8005f76: 781b ldrb r3, [r3, #0] - 8005f78: 3301 adds r3, #1 - 8005f7a: b2da uxtb r2, r3 - 8005f7c: 4b05 ldr r3, [pc, #20] ; (8005f94 ) - 8005f7e: 701a strb r2, [r3, #0] - 8005f80: 4b04 ldr r3, [pc, #16] ; (8005f94 ) - 8005f82: 781b ldrb r3, [r3, #0] - 8005f84: f003 0301 and.w r3, r3, #1 - 8005f88: 2b00 cmp r3, #0 - 8005f8a: d001 beq.n 8005f90 + 8005f70: 4b07 ldr r3, [pc, #28] ; (8005f90 ) + 8005f72: 781b ldrb r3, [r3, #0] + 8005f74: 3301 adds r3, #1 + 8005f76: b2da uxtb r2, r3 + 8005f78: 4b05 ldr r3, [pc, #20] ; (8005f90 ) + 8005f7a: 701a strb r2, [r3, #0] + 8005f7c: 4b04 ldr r3, [pc, #16] ; (8005f90 ) + 8005f7e: 781b ldrb r3, [r3, #0] + 8005f80: f003 0301 and.w r3, r3, #1 + 8005f84: 2b00 cmp r3, #0 + 8005f86: d001 beq.n 8005f8c /* Call tcp_slowtmr() every 500 ms, i.e., every other timer tcp_tmr() is called. */ tcp_slowtmr(); - 8005f8c: f000 fb54 bl 8006638 + 8005f88: f000 fb54 bl 8006634 } } - 8005f90: bf00 nop - 8005f92: bd80 pop {r7, pc} - 8005f94: 20008c15 .word 0x20008c15 + 8005f8c: bf00 nop + 8005f8e: bd80 pop {r7, pc} + 8005f90: 20008c15 .word 0x20008c15 -08005f98 : +08005f94 : /** Called when a listen pcb is closed. Iterates one pcb list and removes the * closed listener pcb from pcb->listener if matching. */ static void tcp_remove_listener(struct tcp_pcb *list, struct tcp_pcb_listen *lpcb) { - 8005f98: b580 push {r7, lr} - 8005f9a: b084 sub sp, #16 - 8005f9c: af00 add r7, sp, #0 - 8005f9e: 6078 str r0, [r7, #4] - 8005fa0: 6039 str r1, [r7, #0] + 8005f94: b580 push {r7, lr} + 8005f96: b084 sub sp, #16 + 8005f98: af00 add r7, sp, #0 + 8005f9a: 6078 str r0, [r7, #4] + 8005f9c: 6039 str r1, [r7, #0] struct tcp_pcb *pcb; LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL); - 8005fa2: 683b ldr r3, [r7, #0] - 8005fa4: 2b00 cmp r3, #0 - 8005fa6: d105 bne.n 8005fb4 - 8005fa8: 4b0d ldr r3, [pc, #52] ; (8005fe0 ) - 8005faa: 22ff movs r2, #255 ; 0xff - 8005fac: 490d ldr r1, [pc, #52] ; (8005fe4 ) - 8005fae: 480e ldr r0, [pc, #56] ; (8005fe8 ) - 8005fb0: f00a fa10 bl 80103d4 + 8005f9e: 683b ldr r3, [r7, #0] + 8005fa0: 2b00 cmp r3, #0 + 8005fa2: d105 bne.n 8005fb0 + 8005fa4: 4b0d ldr r3, [pc, #52] ; (8005fdc ) + 8005fa6: 22ff movs r2, #255 ; 0xff + 8005fa8: 490d ldr r1, [pc, #52] ; (8005fe0 ) + 8005faa: 480e ldr r0, [pc, #56] ; (8005fe4 ) + 8005fac: f00a fa10 bl 80103d0 for (pcb = list; pcb != NULL; pcb = pcb->next) { - 8005fb4: 687b ldr r3, [r7, #4] - 8005fb6: 60fb str r3, [r7, #12] - 8005fb8: e00a b.n 8005fd0 + 8005fb0: 687b ldr r3, [r7, #4] + 8005fb2: 60fb str r3, [r7, #12] + 8005fb4: e00a b.n 8005fcc if (pcb->listener == lpcb) { - 8005fba: 68fb ldr r3, [r7, #12] - 8005fbc: 6fdb ldr r3, [r3, #124] ; 0x7c - 8005fbe: 683a ldr r2, [r7, #0] - 8005fc0: 429a cmp r2, r3 - 8005fc2: d102 bne.n 8005fca + 8005fb6: 68fb ldr r3, [r7, #12] + 8005fb8: 6fdb ldr r3, [r3, #124] ; 0x7c + 8005fba: 683a ldr r2, [r7, #0] + 8005fbc: 429a cmp r2, r3 + 8005fbe: d102 bne.n 8005fc6 pcb->listener = NULL; - 8005fc4: 68fb ldr r3, [r7, #12] - 8005fc6: 2200 movs r2, #0 - 8005fc8: 67da str r2, [r3, #124] ; 0x7c + 8005fc0: 68fb ldr r3, [r7, #12] + 8005fc2: 2200 movs r2, #0 + 8005fc4: 67da str r2, [r3, #124] ; 0x7c for (pcb = list; pcb != NULL; pcb = pcb->next) { - 8005fca: 68fb ldr r3, [r7, #12] - 8005fcc: 68db ldr r3, [r3, #12] - 8005fce: 60fb str r3, [r7, #12] - 8005fd0: 68fb ldr r3, [r7, #12] - 8005fd2: 2b00 cmp r3, #0 - 8005fd4: d1f1 bne.n 8005fba + 8005fc6: 68fb ldr r3, [r7, #12] + 8005fc8: 68db ldr r3, [r3, #12] + 8005fca: 60fb str r3, [r7, #12] + 8005fcc: 68fb ldr r3, [r7, #12] + 8005fce: 2b00 cmp r3, #0 + 8005fd0: d1f1 bne.n 8005fb6 } } } - 8005fd6: bf00 nop - 8005fd8: bf00 nop - 8005fda: 3710 adds r7, #16 - 8005fdc: 46bd mov sp, r7 - 8005fde: bd80 pop {r7, pc} - 8005fe0: 080159bc .word 0x080159bc - 8005fe4: 08015a44 .word 0x08015a44 - 8005fe8: 08015a00 .word 0x08015a00 + 8005fd2: bf00 nop + 8005fd4: bf00 nop + 8005fd6: 3710 adds r7, #16 + 8005fd8: 46bd mov sp, r7 + 8005fda: bd80 pop {r7, pc} + 8005fdc: 080159bc .word 0x080159bc + 8005fe0: 08015a44 .word 0x08015a44 + 8005fe4: 08015a00 .word 0x08015a00 -08005fec : +08005fe8 : /** Called when a listen pcb is closed. Iterates all pcb lists and removes the * closed listener pcb from pcb->listener if matching. */ static void tcp_listen_closed(struct tcp_pcb *pcb) { - 8005fec: b580 push {r7, lr} - 8005fee: b084 sub sp, #16 - 8005ff0: af00 add r7, sp, #0 - 8005ff2: 6078 str r0, [r7, #4] + 8005fe8: b580 push {r7, lr} + 8005fea: b084 sub sp, #16 + 8005fec: af00 add r7, sp, #0 + 8005fee: 6078 str r0, [r7, #4] #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG size_t i; LWIP_ASSERT("pcb != NULL", pcb != NULL); - 8005ff4: 687b ldr r3, [r7, #4] - 8005ff6: 2b00 cmp r3, #0 - 8005ff8: d106 bne.n 8006008 - 8005ffa: 4b14 ldr r3, [pc, #80] ; (800604c ) - 8005ffc: f240 1211 movw r2, #273 ; 0x111 - 8006000: 4913 ldr r1, [pc, #76] ; (8006050 ) - 8006002: 4814 ldr r0, [pc, #80] ; (8006054 ) - 8006004: f00a f9e6 bl 80103d4 + 8005ff0: 687b ldr r3, [r7, #4] + 8005ff2: 2b00 cmp r3, #0 + 8005ff4: d106 bne.n 8006004 + 8005ff6: 4b14 ldr r3, [pc, #80] ; (8006048 ) + 8005ff8: f240 1211 movw r2, #273 ; 0x111 + 8005ffc: 4913 ldr r1, [pc, #76] ; (800604c ) + 8005ffe: 4814 ldr r0, [pc, #80] ; (8006050 ) + 8006000: f00a f9e6 bl 80103d0 LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN); - 8006008: 687b ldr r3, [r7, #4] - 800600a: 7d1b ldrb r3, [r3, #20] - 800600c: 2b01 cmp r3, #1 - 800600e: d006 beq.n 800601e - 8006010: 4b0e ldr r3, [pc, #56] ; (800604c ) - 8006012: f44f 7289 mov.w r2, #274 ; 0x112 - 8006016: 4910 ldr r1, [pc, #64] ; (8006058 ) - 8006018: 480e ldr r0, [pc, #56] ; (8006054 ) - 800601a: f00a f9db bl 80103d4 + 8006004: 687b ldr r3, [r7, #4] + 8006006: 7d1b ldrb r3, [r3, #20] + 8006008: 2b01 cmp r3, #1 + 800600a: d006 beq.n 800601a + 800600c: 4b0e ldr r3, [pc, #56] ; (8006048 ) + 800600e: f44f 7289 mov.w r2, #274 ; 0x112 + 8006012: 4910 ldr r1, [pc, #64] ; (8006054 ) + 8006014: 480e ldr r0, [pc, #56] ; (8006050 ) + 8006016: f00a f9db bl 80103d0 for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) { - 800601e: 2301 movs r3, #1 - 8006020: 60fb str r3, [r7, #12] - 8006022: e00b b.n 800603c + 800601a: 2301 movs r3, #1 + 800601c: 60fb str r3, [r7, #12] + 800601e: e00b b.n 8006038 tcp_remove_listener(*tcp_pcb_lists[i], (struct tcp_pcb_listen *)pcb); - 8006024: 4a0d ldr r2, [pc, #52] ; (800605c ) - 8006026: 68fb ldr r3, [r7, #12] - 8006028: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 800602c: 681b ldr r3, [r3, #0] - 800602e: 6879 ldr r1, [r7, #4] - 8006030: 4618 mov r0, r3 - 8006032: f7ff ffb1 bl 8005f98 + 8006020: 4a0d ldr r2, [pc, #52] ; (8006058 ) + 8006022: 68fb ldr r3, [r7, #12] + 8006024: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8006028: 681b ldr r3, [r3, #0] + 800602a: 6879 ldr r1, [r7, #4] + 800602c: 4618 mov r0, r3 + 800602e: f7ff ffb1 bl 8005f94 for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) { - 8006036: 68fb ldr r3, [r7, #12] - 8006038: 3301 adds r3, #1 - 800603a: 60fb str r3, [r7, #12] - 800603c: 68fb ldr r3, [r7, #12] - 800603e: 2b03 cmp r3, #3 - 8006040: d9f0 bls.n 8006024 + 8006032: 68fb ldr r3, [r7, #12] + 8006034: 3301 adds r3, #1 + 8006036: 60fb str r3, [r7, #12] + 8006038: 68fb ldr r3, [r7, #12] + 800603a: 2b03 cmp r3, #3 + 800603c: d9f0 bls.n 8006020 } #endif LWIP_UNUSED_ARG(pcb); } - 8006042: bf00 nop - 8006044: bf00 nop - 8006046: 3710 adds r7, #16 - 8006048: 46bd mov sp, r7 - 800604a: bd80 pop {r7, pc} - 800604c: 080159bc .word 0x080159bc - 8006050: 08015a6c .word 0x08015a6c - 8006054: 08015a00 .word 0x08015a00 - 8006058: 08015a78 .word 0x08015a78 - 800605c: 08017da4 .word 0x08017da4 + 800603e: bf00 nop + 8006040: bf00 nop + 8006042: 3710 adds r7, #16 + 8006044: 46bd mov sp, r7 + 8006046: bd80 pop {r7, pc} + 8006048: 080159bc .word 0x080159bc + 800604c: 08015a6c .word 0x08015a6c + 8006050: 08015a00 .word 0x08015a00 + 8006054: 08015a78 .word 0x08015a78 + 8006058: 08017da4 .word 0x08017da4 -08006060 : +0800605c : * @return ERR_OK if connection has been closed * another err_t if closing failed and pcb is not freed */ static err_t tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data) { - 8006060: b5b0 push {r4, r5, r7, lr} - 8006062: b088 sub sp, #32 - 8006064: af04 add r7, sp, #16 - 8006066: 6078 str r0, [r7, #4] - 8006068: 460b mov r3, r1 - 800606a: 70fb strb r3, [r7, #3] + 800605c: b5b0 push {r4, r5, r7, lr} + 800605e: b088 sub sp, #32 + 8006060: af04 add r7, sp, #16 + 8006062: 6078 str r0, [r7, #4] + 8006064: 460b mov r3, r1 + 8006066: 70fb strb r3, [r7, #3] LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL); - 800606c: 687b ldr r3, [r7, #4] - 800606e: 2b00 cmp r3, #0 - 8006070: d106 bne.n 8006080 - 8006072: 4b63 ldr r3, [pc, #396] ; (8006200 ) - 8006074: f44f 72af mov.w r2, #350 ; 0x15e - 8006078: 4962 ldr r1, [pc, #392] ; (8006204 ) - 800607a: 4863 ldr r0, [pc, #396] ; (8006208 ) - 800607c: f00a f9aa bl 80103d4 + 8006068: 687b ldr r3, [r7, #4] + 800606a: 2b00 cmp r3, #0 + 800606c: d106 bne.n 800607c + 800606e: 4b63 ldr r3, [pc, #396] ; (80061fc ) + 8006070: f44f 72af mov.w r2, #350 ; 0x15e + 8006074: 4962 ldr r1, [pc, #392] ; (8006200 ) + 8006076: 4863 ldr r0, [pc, #396] ; (8006204 ) + 8006078: f00a f9aa bl 80103d0 if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) { - 8006080: 78fb ldrb r3, [r7, #3] - 8006082: 2b00 cmp r3, #0 - 8006084: d066 beq.n 8006154 - 8006086: 687b ldr r3, [r7, #4] - 8006088: 7d1b ldrb r3, [r3, #20] - 800608a: 2b04 cmp r3, #4 - 800608c: d003 beq.n 8006096 - 800608e: 687b ldr r3, [r7, #4] - 8006090: 7d1b ldrb r3, [r3, #20] - 8006092: 2b07 cmp r3, #7 - 8006094: d15e bne.n 8006154 + 800607c: 78fb ldrb r3, [r7, #3] + 800607e: 2b00 cmp r3, #0 + 8006080: d066 beq.n 8006150 + 8006082: 687b ldr r3, [r7, #4] + 8006084: 7d1b ldrb r3, [r3, #20] + 8006086: 2b04 cmp r3, #4 + 8006088: d003 beq.n 8006092 + 800608a: 687b ldr r3, [r7, #4] + 800608c: 7d1b ldrb r3, [r3, #20] + 800608e: 2b07 cmp r3, #7 + 8006090: d15e bne.n 8006150 if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) { - 8006096: 687b ldr r3, [r7, #4] - 8006098: 6f9b ldr r3, [r3, #120] ; 0x78 - 800609a: 2b00 cmp r3, #0 - 800609c: d104 bne.n 80060a8 - 800609e: 687b ldr r3, [r7, #4] - 80060a0: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80060a2: f5b3 6f06 cmp.w r3, #2144 ; 0x860 - 80060a6: d055 beq.n 8006154 + 8006092: 687b ldr r3, [r7, #4] + 8006094: 6f9b ldr r3, [r3, #120] ; 0x78 + 8006096: 2b00 cmp r3, #0 + 8006098: d104 bne.n 80060a4 + 800609a: 687b ldr r3, [r7, #4] + 800609c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800609e: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 80060a2: d055 beq.n 8006150 /* Not all data received by application, send RST to tell the remote side about this. */ LWIP_ASSERT("pcb->flags & TF_RXCLOSED", pcb->flags & TF_RXCLOSED); - 80060a8: 687b ldr r3, [r7, #4] - 80060aa: 8b5b ldrh r3, [r3, #26] - 80060ac: f003 0310 and.w r3, r3, #16 - 80060b0: 2b00 cmp r3, #0 - 80060b2: d106 bne.n 80060c2 - 80060b4: 4b52 ldr r3, [pc, #328] ; (8006200 ) - 80060b6: f44f 72b2 mov.w r2, #356 ; 0x164 - 80060ba: 4954 ldr r1, [pc, #336] ; (800620c ) - 80060bc: 4852 ldr r0, [pc, #328] ; (8006208 ) - 80060be: f00a f989 bl 80103d4 + 80060a4: 687b ldr r3, [r7, #4] + 80060a6: 8b5b ldrh r3, [r3, #26] + 80060a8: f003 0310 and.w r3, r3, #16 + 80060ac: 2b00 cmp r3, #0 + 80060ae: d106 bne.n 80060be + 80060b0: 4b52 ldr r3, [pc, #328] ; (80061fc ) + 80060b2: f44f 72b2 mov.w r2, #356 ; 0x164 + 80060b6: 4954 ldr r1, [pc, #336] ; (8006208 ) + 80060b8: 4852 ldr r0, [pc, #328] ; (8006204 ) + 80060ba: f00a f989 bl 80103d0 /* don't call tcp_abort here: we must not deallocate the pcb since that might not be expected when calling tcp_close */ tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, + 80060be: 687b ldr r3, [r7, #4] + 80060c0: 6d18 ldr r0, [r3, #80] ; 0x50 80060c2: 687b ldr r3, [r7, #4] - 80060c4: 6d18 ldr r0, [r3, #80] ; 0x50 - 80060c6: 687b ldr r3, [r7, #4] - 80060c8: 6a5c ldr r4, [r3, #36] ; 0x24 - 80060ca: 687d ldr r5, [r7, #4] - 80060cc: 687b ldr r3, [r7, #4] - 80060ce: 3304 adds r3, #4 - 80060d0: 687a ldr r2, [r7, #4] - 80060d2: 8ad2 ldrh r2, [r2, #22] - 80060d4: 6879 ldr r1, [r7, #4] - 80060d6: 8b09 ldrh r1, [r1, #24] - 80060d8: 9102 str r1, [sp, #8] - 80060da: 9201 str r2, [sp, #4] - 80060dc: 9300 str r3, [sp, #0] - 80060de: 462b mov r3, r5 - 80060e0: 4622 mov r2, r4 - 80060e2: 4601 mov r1, r0 - 80060e4: 6878 ldr r0, [r7, #4] - 80060e6: f004 fe91 bl 800ae0c + 80060c4: 6a5c ldr r4, [r3, #36] ; 0x24 + 80060c6: 687d ldr r5, [r7, #4] + 80060c8: 687b ldr r3, [r7, #4] + 80060ca: 3304 adds r3, #4 + 80060cc: 687a ldr r2, [r7, #4] + 80060ce: 8ad2 ldrh r2, [r2, #22] + 80060d0: 6879 ldr r1, [r7, #4] + 80060d2: 8b09 ldrh r1, [r1, #24] + 80060d4: 9102 str r1, [sp, #8] + 80060d6: 9201 str r2, [sp, #4] + 80060d8: 9300 str r3, [sp, #0] + 80060da: 462b mov r3, r5 + 80060dc: 4622 mov r2, r4 + 80060de: 4601 mov r1, r0 + 80060e0: 6878 ldr r0, [r7, #4] + 80060e2: f004 fe91 bl 800ae08 pcb->local_port, pcb->remote_port); tcp_pcb_purge(pcb); - 80060ea: 6878 ldr r0, [r7, #4] - 80060ec: f001 f8c6 bl 800727c + 80060e6: 6878 ldr r0, [r7, #4] + 80060e8: f001 f8c6 bl 8007278 TCP_RMV_ACTIVE(pcb); - 80060f0: 4b47 ldr r3, [pc, #284] ; (8006210 ) - 80060f2: 681b ldr r3, [r3, #0] - 80060f4: 687a ldr r2, [r7, #4] - 80060f6: 429a cmp r2, r3 - 80060f8: d105 bne.n 8006106 - 80060fa: 4b45 ldr r3, [pc, #276] ; (8006210 ) - 80060fc: 681b ldr r3, [r3, #0] - 80060fe: 68db ldr r3, [r3, #12] - 8006100: 4a43 ldr r2, [pc, #268] ; (8006210 ) - 8006102: 6013 str r3, [r2, #0] - 8006104: e013 b.n 800612e - 8006106: 4b42 ldr r3, [pc, #264] ; (8006210 ) - 8006108: 681b ldr r3, [r3, #0] - 800610a: 60fb str r3, [r7, #12] - 800610c: e00c b.n 8006128 - 800610e: 68fb ldr r3, [r7, #12] - 8006110: 68db ldr r3, [r3, #12] - 8006112: 687a ldr r2, [r7, #4] - 8006114: 429a cmp r2, r3 - 8006116: d104 bne.n 8006122 - 8006118: 687b ldr r3, [r7, #4] - 800611a: 68da ldr r2, [r3, #12] - 800611c: 68fb ldr r3, [r7, #12] - 800611e: 60da str r2, [r3, #12] - 8006120: e005 b.n 800612e - 8006122: 68fb ldr r3, [r7, #12] - 8006124: 68db ldr r3, [r3, #12] - 8006126: 60fb str r3, [r7, #12] - 8006128: 68fb ldr r3, [r7, #12] - 800612a: 2b00 cmp r3, #0 - 800612c: d1ef bne.n 800610e - 800612e: 687b ldr r3, [r7, #4] - 8006130: 2200 movs r2, #0 - 8006132: 60da str r2, [r3, #12] - 8006134: 4b37 ldr r3, [pc, #220] ; (8006214 ) - 8006136: 2201 movs r2, #1 - 8006138: 701a strb r2, [r3, #0] + 80060ec: 4b47 ldr r3, [pc, #284] ; (800620c ) + 80060ee: 681b ldr r3, [r3, #0] + 80060f0: 687a ldr r2, [r7, #4] + 80060f2: 429a cmp r2, r3 + 80060f4: d105 bne.n 8006102 + 80060f6: 4b45 ldr r3, [pc, #276] ; (800620c ) + 80060f8: 681b ldr r3, [r3, #0] + 80060fa: 68db ldr r3, [r3, #12] + 80060fc: 4a43 ldr r2, [pc, #268] ; (800620c ) + 80060fe: 6013 str r3, [r2, #0] + 8006100: e013 b.n 800612a + 8006102: 4b42 ldr r3, [pc, #264] ; (800620c ) + 8006104: 681b ldr r3, [r3, #0] + 8006106: 60fb str r3, [r7, #12] + 8006108: e00c b.n 8006124 + 800610a: 68fb ldr r3, [r7, #12] + 800610c: 68db ldr r3, [r3, #12] + 800610e: 687a ldr r2, [r7, #4] + 8006110: 429a cmp r2, r3 + 8006112: d104 bne.n 800611e + 8006114: 687b ldr r3, [r7, #4] + 8006116: 68da ldr r2, [r3, #12] + 8006118: 68fb ldr r3, [r7, #12] + 800611a: 60da str r2, [r3, #12] + 800611c: e005 b.n 800612a + 800611e: 68fb ldr r3, [r7, #12] + 8006120: 68db ldr r3, [r3, #12] + 8006122: 60fb str r3, [r7, #12] + 8006124: 68fb ldr r3, [r7, #12] + 8006126: 2b00 cmp r3, #0 + 8006128: d1ef bne.n 800610a + 800612a: 687b ldr r3, [r7, #4] + 800612c: 2200 movs r2, #0 + 800612e: 60da str r2, [r3, #12] + 8006130: 4b37 ldr r3, [pc, #220] ; (8006210 ) + 8006132: 2201 movs r2, #1 + 8006134: 701a strb r2, [r3, #0] /* Deallocate the pcb since we already sent a RST for it */ if (tcp_input_pcb == pcb) { - 800613a: 4b37 ldr r3, [pc, #220] ; (8006218 ) - 800613c: 681b ldr r3, [r3, #0] - 800613e: 687a ldr r2, [r7, #4] - 8006140: 429a cmp r2, r3 - 8006142: d102 bne.n 800614a + 8006136: 4b37 ldr r3, [pc, #220] ; (8006214 ) + 8006138: 681b ldr r3, [r3, #0] + 800613a: 687a ldr r2, [r7, #4] + 800613c: 429a cmp r2, r3 + 800613e: d102 bne.n 8006146 /* prevent using a deallocated pcb: free it from tcp_input later */ tcp_trigger_input_pcb_close(); - 8006144: f003 fd5e bl 8009c04 - 8006148: e002 b.n 8006150 + 8006140: f003 fd5e bl 8009c00 + 8006144: e002 b.n 800614c } else { tcp_free(pcb); - 800614a: 6878 ldr r0, [r7, #4] - 800614c: f7ff fed6 bl 8005efc + 8006146: 6878 ldr r0, [r7, #4] + 8006148: f7ff fed6 bl 8005ef8 } return ERR_OK; - 8006150: 2300 movs r3, #0 - 8006152: e050 b.n 80061f6 + 800614c: 2300 movs r3, #0 + 800614e: e050 b.n 80061f2 } } /* - states which free the pcb are handled here, - states which send FIN and change state are handled in tcp_close_shutdown_fin() */ switch (pcb->state) { - 8006154: 687b ldr r3, [r7, #4] - 8006156: 7d1b ldrb r3, [r3, #20] + 8006150: 687b ldr r3, [r7, #4] + 8006152: 7d1b ldrb r3, [r3, #20] + 8006154: 2b02 cmp r3, #2 + 8006156: d03b beq.n 80061d0 8006158: 2b02 cmp r3, #2 - 800615a: d03b beq.n 80061d4 - 800615c: 2b02 cmp r3, #2 - 800615e: dc44 bgt.n 80061ea - 8006160: 2b00 cmp r3, #0 - 8006162: d002 beq.n 800616a - 8006164: 2b01 cmp r3, #1 - 8006166: d02a beq.n 80061be - 8006168: e03f b.n 80061ea + 800615a: dc44 bgt.n 80061e6 + 800615c: 2b00 cmp r3, #0 + 800615e: d002 beq.n 8006166 + 8006160: 2b01 cmp r3, #1 + 8006162: d02a beq.n 80061ba + 8006164: e03f b.n 80061e6 * and the user needs some way to free it should the need arise. * Calling tcp_close() with a pcb that has already been closed, (i.e. twice) * or for a pcb that has been used and then entered the CLOSED state * is erroneous, but this should never happen as the pcb has in those cases * been freed, and so any remaining handles are bogus. */ if (pcb->local_port != 0) { - 800616a: 687b ldr r3, [r7, #4] - 800616c: 8adb ldrh r3, [r3, #22] - 800616e: 2b00 cmp r3, #0 - 8006170: d021 beq.n 80061b6 + 8006166: 687b ldr r3, [r7, #4] + 8006168: 8adb ldrh r3, [r3, #22] + 800616a: 2b00 cmp r3, #0 + 800616c: d021 beq.n 80061b2 TCP_RMV(&tcp_bound_pcbs, pcb); - 8006172: 4b2a ldr r3, [pc, #168] ; (800621c ) - 8006174: 681b ldr r3, [r3, #0] - 8006176: 687a ldr r2, [r7, #4] - 8006178: 429a cmp r2, r3 - 800617a: d105 bne.n 8006188 - 800617c: 4b27 ldr r3, [pc, #156] ; (800621c ) - 800617e: 681b ldr r3, [r3, #0] - 8006180: 68db ldr r3, [r3, #12] - 8006182: 4a26 ldr r2, [pc, #152] ; (800621c ) - 8006184: 6013 str r3, [r2, #0] - 8006186: e013 b.n 80061b0 - 8006188: 4b24 ldr r3, [pc, #144] ; (800621c ) - 800618a: 681b ldr r3, [r3, #0] - 800618c: 60bb str r3, [r7, #8] - 800618e: e00c b.n 80061aa - 8006190: 68bb ldr r3, [r7, #8] - 8006192: 68db ldr r3, [r3, #12] - 8006194: 687a ldr r2, [r7, #4] - 8006196: 429a cmp r2, r3 - 8006198: d104 bne.n 80061a4 - 800619a: 687b ldr r3, [r7, #4] - 800619c: 68da ldr r2, [r3, #12] - 800619e: 68bb ldr r3, [r7, #8] - 80061a0: 60da str r2, [r3, #12] - 80061a2: e005 b.n 80061b0 - 80061a4: 68bb ldr r3, [r7, #8] - 80061a6: 68db ldr r3, [r3, #12] - 80061a8: 60bb str r3, [r7, #8] - 80061aa: 68bb ldr r3, [r7, #8] - 80061ac: 2b00 cmp r3, #0 - 80061ae: d1ef bne.n 8006190 - 80061b0: 687b ldr r3, [r7, #4] - 80061b2: 2200 movs r2, #0 - 80061b4: 60da str r2, [r3, #12] + 800616e: 4b2a ldr r3, [pc, #168] ; (8006218 ) + 8006170: 681b ldr r3, [r3, #0] + 8006172: 687a ldr r2, [r7, #4] + 8006174: 429a cmp r2, r3 + 8006176: d105 bne.n 8006184 + 8006178: 4b27 ldr r3, [pc, #156] ; (8006218 ) + 800617a: 681b ldr r3, [r3, #0] + 800617c: 68db ldr r3, [r3, #12] + 800617e: 4a26 ldr r2, [pc, #152] ; (8006218 ) + 8006180: 6013 str r3, [r2, #0] + 8006182: e013 b.n 80061ac + 8006184: 4b24 ldr r3, [pc, #144] ; (8006218 ) + 8006186: 681b ldr r3, [r3, #0] + 8006188: 60bb str r3, [r7, #8] + 800618a: e00c b.n 80061a6 + 800618c: 68bb ldr r3, [r7, #8] + 800618e: 68db ldr r3, [r3, #12] + 8006190: 687a ldr r2, [r7, #4] + 8006192: 429a cmp r2, r3 + 8006194: d104 bne.n 80061a0 + 8006196: 687b ldr r3, [r7, #4] + 8006198: 68da ldr r2, [r3, #12] + 800619a: 68bb ldr r3, [r7, #8] + 800619c: 60da str r2, [r3, #12] + 800619e: e005 b.n 80061ac + 80061a0: 68bb ldr r3, [r7, #8] + 80061a2: 68db ldr r3, [r3, #12] + 80061a4: 60bb str r3, [r7, #8] + 80061a6: 68bb ldr r3, [r7, #8] + 80061a8: 2b00 cmp r3, #0 + 80061aa: d1ef bne.n 800618c + 80061ac: 687b ldr r3, [r7, #4] + 80061ae: 2200 movs r2, #0 + 80061b0: 60da str r2, [r3, #12] } tcp_free(pcb); - 80061b6: 6878 ldr r0, [r7, #4] - 80061b8: f7ff fea0 bl 8005efc + 80061b2: 6878 ldr r0, [r7, #4] + 80061b4: f7ff fea0 bl 8005ef8 break; - 80061bc: e01a b.n 80061f4 + 80061b8: e01a b.n 80061f0 case LISTEN: tcp_listen_closed(pcb); - 80061be: 6878 ldr r0, [r7, #4] - 80061c0: f7ff ff14 bl 8005fec + 80061ba: 6878 ldr r0, [r7, #4] + 80061bc: f7ff ff14 bl 8005fe8 tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb); - 80061c4: 6879 ldr r1, [r7, #4] - 80061c6: 4816 ldr r0, [pc, #88] ; (8006220 ) - 80061c8: f001 f8a8 bl 800731c + 80061c0: 6879 ldr r1, [r7, #4] + 80061c2: 4816 ldr r0, [pc, #88] ; (800621c ) + 80061c4: f001 f8a8 bl 8007318 tcp_free_listen(pcb); - 80061cc: 6878 ldr r0, [r7, #4] - 80061ce: f7ff feb1 bl 8005f34 + 80061c8: 6878 ldr r0, [r7, #4] + 80061ca: f7ff feb1 bl 8005f30 break; - 80061d2: e00f b.n 80061f4 + 80061ce: e00f b.n 80061f0 case SYN_SENT: TCP_PCB_REMOVE_ACTIVE(pcb); - 80061d4: 6879 ldr r1, [r7, #4] - 80061d6: 480e ldr r0, [pc, #56] ; (8006210 ) - 80061d8: f001 f8a0 bl 800731c - 80061dc: 4b0d ldr r3, [pc, #52] ; (8006214 ) - 80061de: 2201 movs r2, #1 - 80061e0: 701a strb r2, [r3, #0] + 80061d0: 6879 ldr r1, [r7, #4] + 80061d2: 480e ldr r0, [pc, #56] ; (800620c ) + 80061d4: f001 f8a0 bl 8007318 + 80061d8: 4b0d ldr r3, [pc, #52] ; (8006210 ) + 80061da: 2201 movs r2, #1 + 80061dc: 701a strb r2, [r3, #0] tcp_free(pcb); - 80061e2: 6878 ldr r0, [r7, #4] - 80061e4: f7ff fe8a bl 8005efc + 80061de: 6878 ldr r0, [r7, #4] + 80061e0: f7ff fe8a bl 8005ef8 MIB2_STATS_INC(mib2.tcpattemptfails); break; - 80061e8: e004 b.n 80061f4 + 80061e4: e004 b.n 80061f0 default: return tcp_close_shutdown_fin(pcb); - 80061ea: 6878 ldr r0, [r7, #4] - 80061ec: f000 f81a bl 8006224 - 80061f0: 4603 mov r3, r0 - 80061f2: e000 b.n 80061f6 + 80061e6: 6878 ldr r0, [r7, #4] + 80061e8: f000 f81a bl 8006220 + 80061ec: 4603 mov r3, r0 + 80061ee: e000 b.n 80061f2 } return ERR_OK; - 80061f4: 2300 movs r3, #0 + 80061f0: 2300 movs r3, #0 } - 80061f6: 4618 mov r0, r3 - 80061f8: 3710 adds r7, #16 - 80061fa: 46bd mov sp, r7 - 80061fc: bdb0 pop {r4, r5, r7, pc} - 80061fe: bf00 nop - 8006200: 080159bc .word 0x080159bc - 8006204: 08015a90 .word 0x08015a90 - 8006208: 08015a00 .word 0x08015a00 - 800620c: 08015ab0 .word 0x08015ab0 - 8006210: 20008c0c .word 0x20008c0c - 8006214: 20008c14 .word 0x20008c14 - 8006218: 20008c4c .word 0x20008c4c - 800621c: 20008c04 .word 0x20008c04 - 8006220: 20008c08 .word 0x20008c08 + 80061f2: 4618 mov r0, r3 + 80061f4: 3710 adds r7, #16 + 80061f6: 46bd mov sp, r7 + 80061f8: bdb0 pop {r4, r5, r7, pc} + 80061fa: bf00 nop + 80061fc: 080159bc .word 0x080159bc + 8006200: 08015a90 .word 0x08015a90 + 8006204: 08015a00 .word 0x08015a00 + 8006208: 08015ab0 .word 0x08015ab0 + 800620c: 20008c0c .word 0x20008c0c + 8006210: 20008c14 .word 0x20008c14 + 8006214: 20008c4c .word 0x20008c4c + 8006218: 20008c04 .word 0x20008c04 + 800621c: 20008c08 .word 0x20008c08 -08006224 : +08006220 : static err_t tcp_close_shutdown_fin(struct tcp_pcb *pcb) { - 8006224: b580 push {r7, lr} - 8006226: b084 sub sp, #16 - 8006228: af00 add r7, sp, #0 - 800622a: 6078 str r0, [r7, #4] + 8006220: b580 push {r7, lr} + 8006222: b084 sub sp, #16 + 8006224: af00 add r7, sp, #0 + 8006226: 6078 str r0, [r7, #4] err_t err; LWIP_ASSERT("pcb != NULL", pcb != NULL); - 800622c: 687b ldr r3, [r7, #4] - 800622e: 2b00 cmp r3, #0 - 8006230: d106 bne.n 8006240 - 8006232: 4b2e ldr r3, [pc, #184] ; (80062ec ) - 8006234: f44f 72ce mov.w r2, #412 ; 0x19c - 8006238: 492d ldr r1, [pc, #180] ; (80062f0 ) - 800623a: 482e ldr r0, [pc, #184] ; (80062f4 ) - 800623c: f00a f8ca bl 80103d4 + 8006228: 687b ldr r3, [r7, #4] + 800622a: 2b00 cmp r3, #0 + 800622c: d106 bne.n 800623c + 800622e: 4b2e ldr r3, [pc, #184] ; (80062e8 ) + 8006230: f44f 72ce mov.w r2, #412 ; 0x19c + 8006234: 492d ldr r1, [pc, #180] ; (80062ec ) + 8006236: 482e ldr r0, [pc, #184] ; (80062f0 ) + 8006238: f00a f8ca bl 80103d0 switch (pcb->state) { - 8006240: 687b ldr r3, [r7, #4] - 8006242: 7d1b ldrb r3, [r3, #20] + 800623c: 687b ldr r3, [r7, #4] + 800623e: 7d1b ldrb r3, [r3, #20] + 8006240: 2b07 cmp r3, #7 + 8006242: d020 beq.n 8006286 8006244: 2b07 cmp r3, #7 - 8006246: d020 beq.n 800628a - 8006248: 2b07 cmp r3, #7 - 800624a: dc2b bgt.n 80062a4 - 800624c: 2b03 cmp r3, #3 - 800624e: d002 beq.n 8006256 - 8006250: 2b04 cmp r3, #4 - 8006252: d00d beq.n 8006270 - 8006254: e026 b.n 80062a4 + 8006246: dc2b bgt.n 80062a0 + 8006248: 2b03 cmp r3, #3 + 800624a: d002 beq.n 8006252 + 800624c: 2b04 cmp r3, #4 + 800624e: d00d beq.n 800626c + 8006250: e026 b.n 80062a0 case SYN_RCVD: err = tcp_send_fin(pcb); - 8006256: 6878 ldr r0, [r7, #4] - 8006258: f003 fee6 bl 800a028 - 800625c: 4603 mov r3, r0 - 800625e: 73fb strb r3, [r7, #15] + 8006252: 6878 ldr r0, [r7, #4] + 8006254: f003 fee6 bl 800a024 + 8006258: 4603 mov r3, r0 + 800625a: 73fb strb r3, [r7, #15] if (err == ERR_OK) { - 8006260: f997 300f ldrsb.w r3, [r7, #15] - 8006264: 2b00 cmp r3, #0 - 8006266: d11f bne.n 80062a8 + 800625c: f997 300f ldrsb.w r3, [r7, #15] + 8006260: 2b00 cmp r3, #0 + 8006262: d11f bne.n 80062a4 tcp_backlog_accepted(pcb); MIB2_STATS_INC(mib2.tcpattemptfails); pcb->state = FIN_WAIT_1; - 8006268: 687b ldr r3, [r7, #4] - 800626a: 2205 movs r2, #5 - 800626c: 751a strb r2, [r3, #20] + 8006264: 687b ldr r3, [r7, #4] + 8006266: 2205 movs r2, #5 + 8006268: 751a strb r2, [r3, #20] } break; - 800626e: e01b b.n 80062a8 + 800626a: e01b b.n 80062a4 case ESTABLISHED: err = tcp_send_fin(pcb); - 8006270: 6878 ldr r0, [r7, #4] - 8006272: f003 fed9 bl 800a028 - 8006276: 4603 mov r3, r0 - 8006278: 73fb strb r3, [r7, #15] + 800626c: 6878 ldr r0, [r7, #4] + 800626e: f003 fed9 bl 800a024 + 8006272: 4603 mov r3, r0 + 8006274: 73fb strb r3, [r7, #15] if (err == ERR_OK) { - 800627a: f997 300f ldrsb.w r3, [r7, #15] - 800627e: 2b00 cmp r3, #0 - 8006280: d114 bne.n 80062ac + 8006276: f997 300f ldrsb.w r3, [r7, #15] + 800627a: 2b00 cmp r3, #0 + 800627c: d114 bne.n 80062a8 MIB2_STATS_INC(mib2.tcpestabresets); pcb->state = FIN_WAIT_1; - 8006282: 687b ldr r3, [r7, #4] - 8006284: 2205 movs r2, #5 - 8006286: 751a strb r2, [r3, #20] + 800627e: 687b ldr r3, [r7, #4] + 8006280: 2205 movs r2, #5 + 8006282: 751a strb r2, [r3, #20] } break; - 8006288: e010 b.n 80062ac + 8006284: e010 b.n 80062a8 case CLOSE_WAIT: err = tcp_send_fin(pcb); - 800628a: 6878 ldr r0, [r7, #4] - 800628c: f003 fecc bl 800a028 - 8006290: 4603 mov r3, r0 - 8006292: 73fb strb r3, [r7, #15] + 8006286: 6878 ldr r0, [r7, #4] + 8006288: f003 fecc bl 800a024 + 800628c: 4603 mov r3, r0 + 800628e: 73fb strb r3, [r7, #15] if (err == ERR_OK) { - 8006294: f997 300f ldrsb.w r3, [r7, #15] - 8006298: 2b00 cmp r3, #0 - 800629a: d109 bne.n 80062b0 + 8006290: f997 300f ldrsb.w r3, [r7, #15] + 8006294: 2b00 cmp r3, #0 + 8006296: d109 bne.n 80062ac MIB2_STATS_INC(mib2.tcpestabresets); pcb->state = LAST_ACK; - 800629c: 687b ldr r3, [r7, #4] - 800629e: 2209 movs r2, #9 - 80062a0: 751a strb r2, [r3, #20] + 8006298: 687b ldr r3, [r7, #4] + 800629a: 2209 movs r2, #9 + 800629c: 751a strb r2, [r3, #20] } break; - 80062a2: e005 b.n 80062b0 + 800629e: e005 b.n 80062ac default: /* Has already been closed, do nothing. */ return ERR_OK; - 80062a4: 2300 movs r3, #0 - 80062a6: e01c b.n 80062e2 + 80062a0: 2300 movs r3, #0 + 80062a2: e01c b.n 80062de + break; + 80062a4: bf00 nop + 80062a6: e002 b.n 80062ae break; 80062a8: bf00 nop - 80062aa: e002 b.n 80062b2 + 80062aa: e000 b.n 80062ae break; 80062ac: bf00 nop - 80062ae: e000 b.n 80062b2 - break; - 80062b0: bf00 nop } if (err == ERR_OK) { - 80062b2: f997 300f ldrsb.w r3, [r7, #15] - 80062b6: 2b00 cmp r3, #0 - 80062b8: d103 bne.n 80062c2 + 80062ae: f997 300f ldrsb.w r3, [r7, #15] + 80062b2: 2b00 cmp r3, #0 + 80062b4: d103 bne.n 80062be /* To ensure all data has been sent when tcp_close returns, we have to make sure tcp_output doesn't fail. Since we don't really have to ensure all data has been sent when tcp_close returns (unsent data is sent from tcp timer functions, also), we don't care for the return value of tcp_output for now. */ tcp_output(pcb); - 80062ba: 6878 ldr r0, [r7, #4] - 80062bc: f003 fff2 bl 800a2a4 - 80062c0: e00d b.n 80062de + 80062b6: 6878 ldr r0, [r7, #4] + 80062b8: f003 fff2 bl 800a2a0 + 80062bc: e00d b.n 80062da } else if (err == ERR_MEM) { - 80062c2: f997 300f ldrsb.w r3, [r7, #15] - 80062c6: f1b3 3fff cmp.w r3, #4294967295 - 80062ca: d108 bne.n 80062de + 80062be: f997 300f ldrsb.w r3, [r7, #15] + 80062c2: f1b3 3fff cmp.w r3, #4294967295 + 80062c6: d108 bne.n 80062da /* Mark this pcb for closing. Closing is retried from tcp_tmr. */ tcp_set_flags(pcb, TF_CLOSEPEND); - 80062cc: 687b ldr r3, [r7, #4] - 80062ce: 8b5b ldrh r3, [r3, #26] - 80062d0: f043 0308 orr.w r3, r3, #8 - 80062d4: b29a uxth r2, r3 - 80062d6: 687b ldr r3, [r7, #4] - 80062d8: 835a strh r2, [r3, #26] + 80062c8: 687b ldr r3, [r7, #4] + 80062ca: 8b5b ldrh r3, [r3, #26] + 80062cc: f043 0308 orr.w r3, r3, #8 + 80062d0: b29a uxth r2, r3 + 80062d2: 687b ldr r3, [r7, #4] + 80062d4: 835a strh r2, [r3, #26] /* We have to return ERR_OK from here to indicate to the callers that this pcb should not be used any more as it will be freed soon via tcp_tmr. This is OK here since sending FIN does not guarantee a time frime for actually freeing the pcb, either (it is left in closure states for remote ACK or timeout) */ return ERR_OK; - 80062da: 2300 movs r3, #0 - 80062dc: e001 b.n 80062e2 + 80062d6: 2300 movs r3, #0 + 80062d8: e001 b.n 80062de } return err; - 80062de: f997 300f ldrsb.w r3, [r7, #15] + 80062da: f997 300f ldrsb.w r3, [r7, #15] } - 80062e2: 4618 mov r0, r3 - 80062e4: 3710 adds r7, #16 - 80062e6: 46bd mov sp, r7 - 80062e8: bd80 pop {r7, pc} - 80062ea: bf00 nop - 80062ec: 080159bc .word 0x080159bc - 80062f0: 08015a6c .word 0x08015a6c - 80062f4: 08015a00 .word 0x08015a00 + 80062de: 4618 mov r0, r3 + 80062e0: 3710 adds r7, #16 + 80062e2: 46bd mov sp, r7 + 80062e4: bd80 pop {r7, pc} + 80062e6: bf00 nop + 80062e8: 080159bc .word 0x080159bc + 80062ec: 08015a6c .word 0x08015a6c + 80062f0: 08015a00 .word 0x08015a00 -080062f8 : +080062f4 : * @return ERR_OK if connection has been closed * another err_t if closing failed and pcb is not freed */ err_t tcp_close(struct tcp_pcb *pcb) { - 80062f8: b580 push {r7, lr} - 80062fa: b082 sub sp, #8 - 80062fc: af00 add r7, sp, #0 - 80062fe: 6078 str r0, [r7, #4] + 80062f4: b580 push {r7, lr} + 80062f6: b082 sub sp, #8 + 80062f8: af00 add r7, sp, #0 + 80062fa: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("tcp_close: invalid pcb", pcb != NULL, return ERR_ARG); - 8006300: 687b ldr r3, [r7, #4] - 8006302: 2b00 cmp r3, #0 - 8006304: d109 bne.n 800631a - 8006306: 4b0f ldr r3, [pc, #60] ; (8006344 ) - 8006308: f44f 72f4 mov.w r2, #488 ; 0x1e8 - 800630c: 490e ldr r1, [pc, #56] ; (8006348 ) - 800630e: 480f ldr r0, [pc, #60] ; (800634c ) - 8006310: f00a f860 bl 80103d4 - 8006314: f06f 030f mvn.w r3, #15 - 8006318: e00f b.n 800633a + 80062fc: 687b ldr r3, [r7, #4] + 80062fe: 2b00 cmp r3, #0 + 8006300: d109 bne.n 8006316 + 8006302: 4b0f ldr r3, [pc, #60] ; (8006340 ) + 8006304: f44f 72f4 mov.w r2, #488 ; 0x1e8 + 8006308: 490e ldr r1, [pc, #56] ; (8006344 ) + 800630a: 480f ldr r0, [pc, #60] ; (8006348 ) + 800630c: f00a f860 bl 80103d0 + 8006310: f06f 030f mvn.w r3, #15 + 8006314: e00f b.n 8006336 LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in ")); tcp_debug_print_state(pcb->state); if (pcb->state != LISTEN) { - 800631a: 687b ldr r3, [r7, #4] - 800631c: 7d1b ldrb r3, [r3, #20] - 800631e: 2b01 cmp r3, #1 - 8006320: d006 beq.n 8006330 + 8006316: 687b ldr r3, [r7, #4] + 8006318: 7d1b ldrb r3, [r3, #20] + 800631a: 2b01 cmp r3, #1 + 800631c: d006 beq.n 800632c /* Set a flag not to receive any more data... */ tcp_set_flags(pcb, TF_RXCLOSED); - 8006322: 687b ldr r3, [r7, #4] - 8006324: 8b5b ldrh r3, [r3, #26] - 8006326: f043 0310 orr.w r3, r3, #16 - 800632a: b29a uxth r2, r3 - 800632c: 687b ldr r3, [r7, #4] - 800632e: 835a strh r2, [r3, #26] + 800631e: 687b ldr r3, [r7, #4] + 8006320: 8b5b ldrh r3, [r3, #26] + 8006322: f043 0310 orr.w r3, r3, #16 + 8006326: b29a uxth r2, r3 + 8006328: 687b ldr r3, [r7, #4] + 800632a: 835a strh r2, [r3, #26] } /* ... and close */ return tcp_close_shutdown(pcb, 1); - 8006330: 2101 movs r1, #1 - 8006332: 6878 ldr r0, [r7, #4] - 8006334: f7ff fe94 bl 8006060 - 8006338: 4603 mov r3, r0 + 800632c: 2101 movs r1, #1 + 800632e: 6878 ldr r0, [r7, #4] + 8006330: f7ff fe94 bl 800605c + 8006334: 4603 mov r3, r0 } - 800633a: 4618 mov r0, r3 - 800633c: 3708 adds r7, #8 - 800633e: 46bd mov sp, r7 - 8006340: bd80 pop {r7, pc} - 8006342: bf00 nop - 8006344: 080159bc .word 0x080159bc - 8006348: 08015acc .word 0x08015acc - 800634c: 08015a00 .word 0x08015a00 + 8006336: 4618 mov r0, r3 + 8006338: 3708 adds r7, #8 + 800633a: 46bd mov sp, r7 + 800633c: bd80 pop {r7, pc} + 800633e: bf00 nop + 8006340: 080159bc .word 0x080159bc + 8006344: 08015acc .word 0x08015acc + 8006348: 08015a00 .word 0x08015a00 -08006350 : +0800634c : * @param pcb the tcp_pcb to abort * @param reset boolean to indicate whether a reset should be sent */ void tcp_abandon(struct tcp_pcb *pcb, int reset) { - 8006350: b580 push {r7, lr} - 8006352: b08e sub sp, #56 ; 0x38 - 8006354: af04 add r7, sp, #16 - 8006356: 6078 str r0, [r7, #4] - 8006358: 6039 str r1, [r7, #0] + 800634c: b580 push {r7, lr} + 800634e: b08e sub sp, #56 ; 0x38 + 8006350: af04 add r7, sp, #16 + 8006352: 6078 str r0, [r7, #4] + 8006354: 6039 str r1, [r7, #0] #endif /* LWIP_CALLBACK_API */ void *errf_arg; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("tcp_abandon: invalid pcb", pcb != NULL, return); - 800635a: 687b ldr r3, [r7, #4] - 800635c: 2b00 cmp r3, #0 - 800635e: d107 bne.n 8006370 - 8006360: 4b52 ldr r3, [pc, #328] ; (80064ac ) - 8006362: f240 223d movw r2, #573 ; 0x23d - 8006366: 4952 ldr r1, [pc, #328] ; (80064b0 ) - 8006368: 4852 ldr r0, [pc, #328] ; (80064b4 ) - 800636a: f00a f833 bl 80103d4 - 800636e: e099 b.n 80064a4 + 8006356: 687b ldr r3, [r7, #4] + 8006358: 2b00 cmp r3, #0 + 800635a: d107 bne.n 800636c + 800635c: 4b52 ldr r3, [pc, #328] ; (80064a8 ) + 800635e: f240 223d movw r2, #573 ; 0x23d + 8006362: 4952 ldr r1, [pc, #328] ; (80064ac ) + 8006364: 4852 ldr r0, [pc, #328] ; (80064b0 ) + 8006366: f00a f833 bl 80103d0 + 800636a: e099 b.n 80064a0 /* pcb->state LISTEN not allowed here */ LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs", - 8006370: 687b ldr r3, [r7, #4] - 8006372: 7d1b ldrb r3, [r3, #20] - 8006374: 2b01 cmp r3, #1 - 8006376: d106 bne.n 8006386 - 8006378: 4b4c ldr r3, [pc, #304] ; (80064ac ) - 800637a: f44f 7210 mov.w r2, #576 ; 0x240 - 800637e: 494e ldr r1, [pc, #312] ; (80064b8 ) - 8006380: 484c ldr r0, [pc, #304] ; (80064b4 ) - 8006382: f00a f827 bl 80103d4 + 800636c: 687b ldr r3, [r7, #4] + 800636e: 7d1b ldrb r3, [r3, #20] + 8006370: 2b01 cmp r3, #1 + 8006372: d106 bne.n 8006382 + 8006374: 4b4c ldr r3, [pc, #304] ; (80064a8 ) + 8006376: f44f 7210 mov.w r2, #576 ; 0x240 + 800637a: 494e ldr r1, [pc, #312] ; (80064b4 ) + 800637c: 484c ldr r0, [pc, #304] ; (80064b0 ) + 800637e: f00a f827 bl 80103d0 pcb->state != LISTEN); /* Figure out on which TCP PCB list we are, and remove us. If we are in an active state, call the receive function associated with the PCB with a NULL argument, and send an RST to the remote end. */ if (pcb->state == TIME_WAIT) { - 8006386: 687b ldr r3, [r7, #4] - 8006388: 7d1b ldrb r3, [r3, #20] - 800638a: 2b0a cmp r3, #10 - 800638c: d107 bne.n 800639e + 8006382: 687b ldr r3, [r7, #4] + 8006384: 7d1b ldrb r3, [r3, #20] + 8006386: 2b0a cmp r3, #10 + 8006388: d107 bne.n 800639a tcp_pcb_remove(&tcp_tw_pcbs, pcb); - 800638e: 6879 ldr r1, [r7, #4] - 8006390: 484a ldr r0, [pc, #296] ; (80064bc ) - 8006392: f000 ffc3 bl 800731c + 800638a: 6879 ldr r1, [r7, #4] + 800638c: 484a ldr r0, [pc, #296] ; (80064b8 ) + 800638e: f000 ffc3 bl 8007318 tcp_free(pcb); - 8006396: 6878 ldr r0, [r7, #4] - 8006398: f7ff fdb0 bl 8005efc - 800639c: e082 b.n 80064a4 + 8006392: 6878 ldr r0, [r7, #4] + 8006394: f7ff fdb0 bl 8005ef8 + 8006398: e082 b.n 80064a0 } else { int send_rst = 0; - 800639e: 2300 movs r3, #0 - 80063a0: 627b str r3, [r7, #36] ; 0x24 + 800639a: 2300 movs r3, #0 + 800639c: 627b str r3, [r7, #36] ; 0x24 u16_t local_port = 0; - 80063a2: 2300 movs r3, #0 - 80063a4: 847b strh r3, [r7, #34] ; 0x22 + 800639e: 2300 movs r3, #0 + 80063a0: 847b strh r3, [r7, #34] ; 0x22 enum tcp_state last_state; seqno = pcb->snd_nxt; - 80063a6: 687b ldr r3, [r7, #4] - 80063a8: 6d1b ldr r3, [r3, #80] ; 0x50 - 80063aa: 61bb str r3, [r7, #24] + 80063a2: 687b ldr r3, [r7, #4] + 80063a4: 6d1b ldr r3, [r3, #80] ; 0x50 + 80063a6: 61bb str r3, [r7, #24] ackno = pcb->rcv_nxt; - 80063ac: 687b ldr r3, [r7, #4] - 80063ae: 6a5b ldr r3, [r3, #36] ; 0x24 - 80063b0: 617b str r3, [r7, #20] + 80063a8: 687b ldr r3, [r7, #4] + 80063aa: 6a5b ldr r3, [r3, #36] ; 0x24 + 80063ac: 617b str r3, [r7, #20] #if LWIP_CALLBACK_API errf = pcb->errf; - 80063b2: 687b ldr r3, [r7, #4] - 80063b4: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 80063b8: 613b str r3, [r7, #16] + 80063ae: 687b ldr r3, [r7, #4] + 80063b0: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 80063b4: 613b str r3, [r7, #16] #endif /* LWIP_CALLBACK_API */ errf_arg = pcb->callback_arg; - 80063ba: 687b ldr r3, [r7, #4] - 80063bc: 691b ldr r3, [r3, #16] - 80063be: 60fb str r3, [r7, #12] + 80063b6: 687b ldr r3, [r7, #4] + 80063b8: 691b ldr r3, [r3, #16] + 80063ba: 60fb str r3, [r7, #12] if (pcb->state == CLOSED) { - 80063c0: 687b ldr r3, [r7, #4] - 80063c2: 7d1b ldrb r3, [r3, #20] - 80063c4: 2b00 cmp r3, #0 - 80063c6: d126 bne.n 8006416 + 80063bc: 687b ldr r3, [r7, #4] + 80063be: 7d1b ldrb r3, [r3, #20] + 80063c0: 2b00 cmp r3, #0 + 80063c2: d126 bne.n 8006412 if (pcb->local_port != 0) { - 80063c8: 687b ldr r3, [r7, #4] - 80063ca: 8adb ldrh r3, [r3, #22] - 80063cc: 2b00 cmp r3, #0 - 80063ce: d02e beq.n 800642e + 80063c4: 687b ldr r3, [r7, #4] + 80063c6: 8adb ldrh r3, [r3, #22] + 80063c8: 2b00 cmp r3, #0 + 80063ca: d02e beq.n 800642a /* bound, not yet opened */ TCP_RMV(&tcp_bound_pcbs, pcb); - 80063d0: 4b3b ldr r3, [pc, #236] ; (80064c0 ) - 80063d2: 681b ldr r3, [r3, #0] - 80063d4: 687a ldr r2, [r7, #4] - 80063d6: 429a cmp r2, r3 - 80063d8: d105 bne.n 80063e6 - 80063da: 4b39 ldr r3, [pc, #228] ; (80064c0 ) - 80063dc: 681b ldr r3, [r3, #0] - 80063de: 68db ldr r3, [r3, #12] - 80063e0: 4a37 ldr r2, [pc, #220] ; (80064c0 ) - 80063e2: 6013 str r3, [r2, #0] - 80063e4: e013 b.n 800640e - 80063e6: 4b36 ldr r3, [pc, #216] ; (80064c0 ) - 80063e8: 681b ldr r3, [r3, #0] - 80063ea: 61fb str r3, [r7, #28] - 80063ec: e00c b.n 8006408 - 80063ee: 69fb ldr r3, [r7, #28] - 80063f0: 68db ldr r3, [r3, #12] - 80063f2: 687a ldr r2, [r7, #4] - 80063f4: 429a cmp r2, r3 - 80063f6: d104 bne.n 8006402 - 80063f8: 687b ldr r3, [r7, #4] - 80063fa: 68da ldr r2, [r3, #12] - 80063fc: 69fb ldr r3, [r7, #28] - 80063fe: 60da str r2, [r3, #12] - 8006400: e005 b.n 800640e - 8006402: 69fb ldr r3, [r7, #28] - 8006404: 68db ldr r3, [r3, #12] - 8006406: 61fb str r3, [r7, #28] - 8006408: 69fb ldr r3, [r7, #28] - 800640a: 2b00 cmp r3, #0 - 800640c: d1ef bne.n 80063ee - 800640e: 687b ldr r3, [r7, #4] - 8006410: 2200 movs r2, #0 - 8006412: 60da str r2, [r3, #12] - 8006414: e00b b.n 800642e + 80063cc: 4b3b ldr r3, [pc, #236] ; (80064bc ) + 80063ce: 681b ldr r3, [r3, #0] + 80063d0: 687a ldr r2, [r7, #4] + 80063d2: 429a cmp r2, r3 + 80063d4: d105 bne.n 80063e2 + 80063d6: 4b39 ldr r3, [pc, #228] ; (80064bc ) + 80063d8: 681b ldr r3, [r3, #0] + 80063da: 68db ldr r3, [r3, #12] + 80063dc: 4a37 ldr r2, [pc, #220] ; (80064bc ) + 80063de: 6013 str r3, [r2, #0] + 80063e0: e013 b.n 800640a + 80063e2: 4b36 ldr r3, [pc, #216] ; (80064bc ) + 80063e4: 681b ldr r3, [r3, #0] + 80063e6: 61fb str r3, [r7, #28] + 80063e8: e00c b.n 8006404 + 80063ea: 69fb ldr r3, [r7, #28] + 80063ec: 68db ldr r3, [r3, #12] + 80063ee: 687a ldr r2, [r7, #4] + 80063f0: 429a cmp r2, r3 + 80063f2: d104 bne.n 80063fe + 80063f4: 687b ldr r3, [r7, #4] + 80063f6: 68da ldr r2, [r3, #12] + 80063f8: 69fb ldr r3, [r7, #28] + 80063fa: 60da str r2, [r3, #12] + 80063fc: e005 b.n 800640a + 80063fe: 69fb ldr r3, [r7, #28] + 8006400: 68db ldr r3, [r3, #12] + 8006402: 61fb str r3, [r7, #28] + 8006404: 69fb ldr r3, [r7, #28] + 8006406: 2b00 cmp r3, #0 + 8006408: d1ef bne.n 80063ea + 800640a: 687b ldr r3, [r7, #4] + 800640c: 2200 movs r2, #0 + 800640e: 60da str r2, [r3, #12] + 8006410: e00b b.n 800642a } } else { send_rst = reset; - 8006416: 683b ldr r3, [r7, #0] - 8006418: 627b str r3, [r7, #36] ; 0x24 + 8006412: 683b ldr r3, [r7, #0] + 8006414: 627b str r3, [r7, #36] ; 0x24 local_port = pcb->local_port; - 800641a: 687b ldr r3, [r7, #4] - 800641c: 8adb ldrh r3, [r3, #22] - 800641e: 847b strh r3, [r7, #34] ; 0x22 + 8006416: 687b ldr r3, [r7, #4] + 8006418: 8adb ldrh r3, [r3, #22] + 800641a: 847b strh r3, [r7, #34] ; 0x22 TCP_PCB_REMOVE_ACTIVE(pcb); - 8006420: 6879 ldr r1, [r7, #4] - 8006422: 4828 ldr r0, [pc, #160] ; (80064c4 ) - 8006424: f000 ff7a bl 800731c - 8006428: 4b27 ldr r3, [pc, #156] ; (80064c8 ) - 800642a: 2201 movs r2, #1 - 800642c: 701a strb r2, [r3, #0] + 800641c: 6879 ldr r1, [r7, #4] + 800641e: 4828 ldr r0, [pc, #160] ; (80064c0 ) + 8006420: f000 ff7a bl 8007318 + 8006424: 4b27 ldr r3, [pc, #156] ; (80064c4 ) + 8006426: 2201 movs r2, #1 + 8006428: 701a strb r2, [r3, #0] } if (pcb->unacked != NULL) { - 800642e: 687b ldr r3, [r7, #4] - 8006430: 6f1b ldr r3, [r3, #112] ; 0x70 - 8006432: 2b00 cmp r3, #0 - 8006434: d004 beq.n 8006440 + 800642a: 687b ldr r3, [r7, #4] + 800642c: 6f1b ldr r3, [r3, #112] ; 0x70 + 800642e: 2b00 cmp r3, #0 + 8006430: d004 beq.n 800643c tcp_segs_free(pcb->unacked); - 8006436: 687b ldr r3, [r7, #4] - 8006438: 6f1b ldr r3, [r3, #112] ; 0x70 - 800643a: 4618 mov r0, r3 - 800643c: f000 fd1c bl 8006e78 + 8006432: 687b ldr r3, [r7, #4] + 8006434: 6f1b ldr r3, [r3, #112] ; 0x70 + 8006436: 4618 mov r0, r3 + 8006438: f000 fd1c bl 8006e74 } if (pcb->unsent != NULL) { - 8006440: 687b ldr r3, [r7, #4] - 8006442: 6edb ldr r3, [r3, #108] ; 0x6c - 8006444: 2b00 cmp r3, #0 - 8006446: d004 beq.n 8006452 + 800643c: 687b ldr r3, [r7, #4] + 800643e: 6edb ldr r3, [r3, #108] ; 0x6c + 8006440: 2b00 cmp r3, #0 + 8006442: d004 beq.n 800644e tcp_segs_free(pcb->unsent); - 8006448: 687b ldr r3, [r7, #4] - 800644a: 6edb ldr r3, [r3, #108] ; 0x6c - 800644c: 4618 mov r0, r3 - 800644e: f000 fd13 bl 8006e78 + 8006444: 687b ldr r3, [r7, #4] + 8006446: 6edb ldr r3, [r3, #108] ; 0x6c + 8006448: 4618 mov r0, r3 + 800644a: f000 fd13 bl 8006e74 } #if TCP_QUEUE_OOSEQ if (pcb->ooseq != NULL) { - 8006452: 687b ldr r3, [r7, #4] - 8006454: 6f5b ldr r3, [r3, #116] ; 0x74 - 8006456: 2b00 cmp r3, #0 - 8006458: d004 beq.n 8006464 + 800644e: 687b ldr r3, [r7, #4] + 8006450: 6f5b ldr r3, [r3, #116] ; 0x74 + 8006452: 2b00 cmp r3, #0 + 8006454: d004 beq.n 8006460 tcp_segs_free(pcb->ooseq); - 800645a: 687b ldr r3, [r7, #4] - 800645c: 6f5b ldr r3, [r3, #116] ; 0x74 - 800645e: 4618 mov r0, r3 - 8006460: f000 fd0a bl 8006e78 + 8006456: 687b ldr r3, [r7, #4] + 8006458: 6f5b ldr r3, [r3, #116] ; 0x74 + 800645a: 4618 mov r0, r3 + 800645c: f000 fd0a bl 8006e74 } #endif /* TCP_QUEUE_OOSEQ */ tcp_backlog_accepted(pcb); if (send_rst) { - 8006464: 6a7b ldr r3, [r7, #36] ; 0x24 - 8006466: 2b00 cmp r3, #0 - 8006468: d00e beq.n 8006488 + 8006460: 6a7b ldr r3, [r7, #36] ; 0x24 + 8006462: 2b00 cmp r3, #0 + 8006464: d00e beq.n 8006484 LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_abandon: sending RST\n")); tcp_rst(pcb, seqno, ackno, &pcb->local_ip, &pcb->remote_ip, local_port, pcb->remote_port); - 800646a: 6879 ldr r1, [r7, #4] - 800646c: 687b ldr r3, [r7, #4] - 800646e: 3304 adds r3, #4 - 8006470: 687a ldr r2, [r7, #4] - 8006472: 8b12 ldrh r2, [r2, #24] - 8006474: 9202 str r2, [sp, #8] - 8006476: 8c7a ldrh r2, [r7, #34] ; 0x22 - 8006478: 9201 str r2, [sp, #4] - 800647a: 9300 str r3, [sp, #0] - 800647c: 460b mov r3, r1 - 800647e: 697a ldr r2, [r7, #20] - 8006480: 69b9 ldr r1, [r7, #24] - 8006482: 6878 ldr r0, [r7, #4] - 8006484: f004 fcc2 bl 800ae0c + 8006466: 6879 ldr r1, [r7, #4] + 8006468: 687b ldr r3, [r7, #4] + 800646a: 3304 adds r3, #4 + 800646c: 687a ldr r2, [r7, #4] + 800646e: 8b12 ldrh r2, [r2, #24] + 8006470: 9202 str r2, [sp, #8] + 8006472: 8c7a ldrh r2, [r7, #34] ; 0x22 + 8006474: 9201 str r2, [sp, #4] + 8006476: 9300 str r3, [sp, #0] + 8006478: 460b mov r3, r1 + 800647a: 697a ldr r2, [r7, #20] + 800647c: 69b9 ldr r1, [r7, #24] + 800647e: 6878 ldr r0, [r7, #4] + 8006480: f004 fcc2 bl 800ae08 } last_state = pcb->state; - 8006488: 687b ldr r3, [r7, #4] - 800648a: 7d1b ldrb r3, [r3, #20] - 800648c: 72fb strb r3, [r7, #11] + 8006484: 687b ldr r3, [r7, #4] + 8006486: 7d1b ldrb r3, [r3, #20] + 8006488: 72fb strb r3, [r7, #11] tcp_free(pcb); - 800648e: 6878 ldr r0, [r7, #4] - 8006490: f7ff fd34 bl 8005efc + 800648a: 6878 ldr r0, [r7, #4] + 800648c: f7ff fd34 bl 8005ef8 TCP_EVENT_ERR(last_state, errf, errf_arg, ERR_ABRT); - 8006494: 693b ldr r3, [r7, #16] - 8006496: 2b00 cmp r3, #0 - 8006498: d004 beq.n 80064a4 - 800649a: 693b ldr r3, [r7, #16] - 800649c: f06f 010c mvn.w r1, #12 - 80064a0: 68f8 ldr r0, [r7, #12] - 80064a2: 4798 blx r3 + 8006490: 693b ldr r3, [r7, #16] + 8006492: 2b00 cmp r3, #0 + 8006494: d004 beq.n 80064a0 + 8006496: 693b ldr r3, [r7, #16] + 8006498: f06f 010c mvn.w r1, #12 + 800649c: 68f8 ldr r0, [r7, #12] + 800649e: 4798 blx r3 } } - 80064a4: 3728 adds r7, #40 ; 0x28 - 80064a6: 46bd mov sp, r7 - 80064a8: bd80 pop {r7, pc} - 80064aa: bf00 nop - 80064ac: 080159bc .word 0x080159bc - 80064b0: 08015b00 .word 0x08015b00 - 80064b4: 08015a00 .word 0x08015a00 - 80064b8: 08015b1c .word 0x08015b1c - 80064bc: 20008c10 .word 0x20008c10 - 80064c0: 20008c04 .word 0x20008c04 - 80064c4: 20008c0c .word 0x20008c0c - 80064c8: 20008c14 .word 0x20008c14 + 80064a0: 3728 adds r7, #40 ; 0x28 + 80064a2: 46bd mov sp, r7 + 80064a4: bd80 pop {r7, pc} + 80064a6: bf00 nop + 80064a8: 080159bc .word 0x080159bc + 80064ac: 08015b00 .word 0x08015b00 + 80064b0: 08015a00 .word 0x08015a00 + 80064b4: 08015b1c .word 0x08015b1c + 80064b8: 20008c10 .word 0x20008c10 + 80064bc: 20008c04 .word 0x20008c04 + 80064c0: 20008c0c .word 0x20008c0c + 80064c4: 20008c14 .word 0x20008c14 -080064cc : +080064c8 : * * @param pcb the tcp pcb to abort */ void tcp_abort(struct tcp_pcb *pcb) { - 80064cc: b580 push {r7, lr} - 80064ce: b082 sub sp, #8 - 80064d0: af00 add r7, sp, #0 - 80064d2: 6078 str r0, [r7, #4] + 80064c8: b580 push {r7, lr} + 80064ca: b082 sub sp, #8 + 80064cc: af00 add r7, sp, #0 + 80064ce: 6078 str r0, [r7, #4] tcp_abandon(pcb, 1); - 80064d4: 2101 movs r1, #1 - 80064d6: 6878 ldr r0, [r7, #4] - 80064d8: f7ff ff3a bl 8006350 + 80064d0: 2101 movs r1, #1 + 80064d2: 6878 ldr r0, [r7, #4] + 80064d4: f7ff ff3a bl 800634c } - 80064dc: bf00 nop - 80064de: 3708 adds r7, #8 - 80064e0: 46bd mov sp, r7 - 80064e2: bd80 pop {r7, pc} + 80064d8: bf00 nop + 80064da: 3708 adds r7, #8 + 80064dc: 46bd mov sp, r7 + 80064de: bd80 pop {r7, pc} -080064e4 : +080064e0 : * Returns how much extra window would be advertised if we sent an * update now. */ u32_t tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb) { - 80064e4: b580 push {r7, lr} - 80064e6: b084 sub sp, #16 - 80064e8: af00 add r7, sp, #0 - 80064ea: 6078 str r0, [r7, #4] + 80064e0: b580 push {r7, lr} + 80064e2: b084 sub sp, #16 + 80064e4: af00 add r7, sp, #0 + 80064e6: 6078 str r0, [r7, #4] u32_t new_right_edge; LWIP_ASSERT("tcp_update_rcv_ann_wnd: invalid pcb", pcb != NULL); - 80064ec: 687b ldr r3, [r7, #4] - 80064ee: 2b00 cmp r3, #0 - 80064f0: d106 bne.n 8006500 - 80064f2: 4b25 ldr r3, [pc, #148] ; (8006588 ) - 80064f4: f240 32a6 movw r2, #934 ; 0x3a6 - 80064f8: 4924 ldr r1, [pc, #144] ; (800658c ) - 80064fa: 4825 ldr r0, [pc, #148] ; (8006590 ) - 80064fc: f009 ff6a bl 80103d4 + 80064e8: 687b ldr r3, [r7, #4] + 80064ea: 2b00 cmp r3, #0 + 80064ec: d106 bne.n 80064fc + 80064ee: 4b25 ldr r3, [pc, #148] ; (8006584 ) + 80064f0: f240 32a6 movw r2, #934 ; 0x3a6 + 80064f4: 4924 ldr r1, [pc, #144] ; (8006588 ) + 80064f6: 4825 ldr r0, [pc, #148] ; (800658c ) + 80064f8: f009 ff6a bl 80103d0 new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd; - 8006500: 687b ldr r3, [r7, #4] - 8006502: 6a5b ldr r3, [r3, #36] ; 0x24 - 8006504: 687a ldr r2, [r7, #4] - 8006506: 8d12 ldrh r2, [r2, #40] ; 0x28 - 8006508: 4413 add r3, r2 - 800650a: 60fb str r3, [r7, #12] + 80064fc: 687b ldr r3, [r7, #4] + 80064fe: 6a5b ldr r3, [r3, #36] ; 0x24 + 8006500: 687a ldr r2, [r7, #4] + 8006502: 8d12 ldrh r2, [r2, #40] ; 0x28 + 8006504: 4413 add r3, r2 + 8006506: 60fb str r3, [r7, #12] if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) { - 800650c: 687b ldr r3, [r7, #4] - 800650e: 6adb ldr r3, [r3, #44] ; 0x2c - 8006510: 687a ldr r2, [r7, #4] - 8006512: 8e52 ldrh r2, [r2, #50] ; 0x32 - 8006514: f5b2 6f86 cmp.w r2, #1072 ; 0x430 - 8006518: bf28 it cs - 800651a: f44f 6286 movcs.w r2, #1072 ; 0x430 - 800651e: b292 uxth r2, r2 - 8006520: 4413 add r3, r2 - 8006522: 68fa ldr r2, [r7, #12] - 8006524: 1ad3 subs r3, r2, r3 - 8006526: 2b00 cmp r3, #0 - 8006528: db08 blt.n 800653c + 8006508: 687b ldr r3, [r7, #4] + 800650a: 6adb ldr r3, [r3, #44] ; 0x2c + 800650c: 687a ldr r2, [r7, #4] + 800650e: 8e52 ldrh r2, [r2, #50] ; 0x32 + 8006510: f5b2 6f86 cmp.w r2, #1072 ; 0x430 + 8006514: bf28 it cs + 8006516: f44f 6286 movcs.w r2, #1072 ; 0x430 + 800651a: b292 uxth r2, r2 + 800651c: 4413 add r3, r2 + 800651e: 68fa ldr r2, [r7, #12] + 8006520: 1ad3 subs r3, r2, r3 + 8006522: 2b00 cmp r3, #0 + 8006524: db08 blt.n 8006538 /* we can advertise more window */ pcb->rcv_ann_wnd = pcb->rcv_wnd; + 8006526: 687b ldr r3, [r7, #4] + 8006528: 8d1a ldrh r2, [r3, #40] ; 0x28 800652a: 687b ldr r3, [r7, #4] - 800652c: 8d1a ldrh r2, [r3, #40] ; 0x28 - 800652e: 687b ldr r3, [r7, #4] - 8006530: 855a strh r2, [r3, #42] ; 0x2a + 800652c: 855a strh r2, [r3, #42] ; 0x2a return new_right_edge - pcb->rcv_ann_right_edge; - 8006532: 687b ldr r3, [r7, #4] - 8006534: 6adb ldr r3, [r3, #44] ; 0x2c - 8006536: 68fa ldr r2, [r7, #12] - 8006538: 1ad3 subs r3, r2, r3 - 800653a: e020 b.n 800657e + 800652e: 687b ldr r3, [r7, #4] + 8006530: 6adb ldr r3, [r3, #44] ; 0x2c + 8006532: 68fa ldr r2, [r7, #12] + 8006534: 1ad3 subs r3, r2, r3 + 8006536: e020 b.n 800657a } else { if (TCP_SEQ_GT(pcb->rcv_nxt, pcb->rcv_ann_right_edge)) { + 8006538: 687b ldr r3, [r7, #4] + 800653a: 6a5a ldr r2, [r3, #36] ; 0x24 800653c: 687b ldr r3, [r7, #4] - 800653e: 6a5a ldr r2, [r3, #36] ; 0x24 - 8006540: 687b ldr r3, [r7, #4] - 8006542: 6adb ldr r3, [r3, #44] ; 0x2c - 8006544: 1ad3 subs r3, r2, r3 - 8006546: 2b00 cmp r3, #0 - 8006548: dd03 ble.n 8006552 + 800653e: 6adb ldr r3, [r3, #44] ; 0x2c + 8006540: 1ad3 subs r3, r2, r3 + 8006542: 2b00 cmp r3, #0 + 8006544: dd03 ble.n 800654e /* Can happen due to other end sending out of advertised window, * but within actual available (but not yet advertised) window */ pcb->rcv_ann_wnd = 0; - 800654a: 687b ldr r3, [r7, #4] - 800654c: 2200 movs r2, #0 - 800654e: 855a strh r2, [r3, #42] ; 0x2a - 8006550: e014 b.n 800657c + 8006546: 687b ldr r3, [r7, #4] + 8006548: 2200 movs r2, #0 + 800654a: 855a strh r2, [r3, #42] ; 0x2a + 800654c: e014 b.n 8006578 } else { /* keep the right edge of window constant */ u32_t new_rcv_ann_wnd = pcb->rcv_ann_right_edge - pcb->rcv_nxt; + 800654e: 687b ldr r3, [r7, #4] + 8006550: 6ada ldr r2, [r3, #44] ; 0x2c 8006552: 687b ldr r3, [r7, #4] - 8006554: 6ada ldr r2, [r3, #44] ; 0x2c - 8006556: 687b ldr r3, [r7, #4] - 8006558: 6a5b ldr r3, [r3, #36] ; 0x24 - 800655a: 1ad3 subs r3, r2, r3 - 800655c: 60bb str r3, [r7, #8] + 8006554: 6a5b ldr r3, [r3, #36] ; 0x24 + 8006556: 1ad3 subs r3, r2, r3 + 8006558: 60bb str r3, [r7, #8] #if !LWIP_WND_SCALE LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff); - 800655e: 68bb ldr r3, [r7, #8] - 8006560: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8006564: d306 bcc.n 8006574 - 8006566: 4b08 ldr r3, [pc, #32] ; (8006588 ) - 8006568: f240 32b6 movw r2, #950 ; 0x3b6 - 800656c: 4909 ldr r1, [pc, #36] ; (8006594 ) - 800656e: 4808 ldr r0, [pc, #32] ; (8006590 ) - 8006570: f009 ff30 bl 80103d4 + 800655a: 68bb ldr r3, [r7, #8] + 800655c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8006560: d306 bcc.n 8006570 + 8006562: 4b08 ldr r3, [pc, #32] ; (8006584 ) + 8006564: f240 32b6 movw r2, #950 ; 0x3b6 + 8006568: 4909 ldr r1, [pc, #36] ; (8006590 ) + 800656a: 4808 ldr r0, [pc, #32] ; (800658c ) + 800656c: f009 ff30 bl 80103d0 #endif pcb->rcv_ann_wnd = (tcpwnd_size_t)new_rcv_ann_wnd; - 8006574: 68bb ldr r3, [r7, #8] - 8006576: b29a uxth r2, r3 - 8006578: 687b ldr r3, [r7, #4] - 800657a: 855a strh r2, [r3, #42] ; 0x2a + 8006570: 68bb ldr r3, [r7, #8] + 8006572: b29a uxth r2, r3 + 8006574: 687b ldr r3, [r7, #4] + 8006576: 855a strh r2, [r3, #42] ; 0x2a } return 0; - 800657c: 2300 movs r3, #0 + 8006578: 2300 movs r3, #0 } } - 800657e: 4618 mov r0, r3 - 8006580: 3710 adds r7, #16 - 8006582: 46bd mov sp, r7 - 8006584: bd80 pop {r7, pc} - 8006586: bf00 nop - 8006588: 080159bc .word 0x080159bc - 800658c: 08015c18 .word 0x08015c18 - 8006590: 08015a00 .word 0x08015a00 - 8006594: 08015c3c .word 0x08015c3c + 800657a: 4618 mov r0, r3 + 800657c: 3710 adds r7, #16 + 800657e: 46bd mov sp, r7 + 8006580: bd80 pop {r7, pc} + 8006582: bf00 nop + 8006584: 080159bc .word 0x080159bc + 8006588: 08015c18 .word 0x08015c18 + 800658c: 08015a00 .word 0x08015a00 + 8006590: 08015c3c .word 0x08015c3c -08006598 : +08006594 : * @param pcb the tcp_pcb for which data is read * @param len the amount of bytes that have been read by the application */ void tcp_recved(struct tcp_pcb *pcb, u16_t len) { - 8006598: b580 push {r7, lr} - 800659a: b084 sub sp, #16 - 800659c: af00 add r7, sp, #0 - 800659e: 6078 str r0, [r7, #4] - 80065a0: 460b mov r3, r1 - 80065a2: 807b strh r3, [r7, #2] + 8006594: b580 push {r7, lr} + 8006596: b084 sub sp, #16 + 8006598: af00 add r7, sp, #0 + 800659a: 6078 str r0, [r7, #4] + 800659c: 460b mov r3, r1 + 800659e: 807b strh r3, [r7, #2] u32_t wnd_inflation; tcpwnd_size_t rcv_wnd; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("tcp_recved: invalid pcb", pcb != NULL, return); - 80065a4: 687b ldr r3, [r7, #4] - 80065a6: 2b00 cmp r3, #0 - 80065a8: d107 bne.n 80065ba - 80065aa: 4b1f ldr r3, [pc, #124] ; (8006628 ) - 80065ac: f240 32cf movw r2, #975 ; 0x3cf - 80065b0: 491e ldr r1, [pc, #120] ; (800662c ) - 80065b2: 481f ldr r0, [pc, #124] ; (8006630 ) - 80065b4: f009 ff0e bl 80103d4 - 80065b8: e032 b.n 8006620 + 80065a0: 687b ldr r3, [r7, #4] + 80065a2: 2b00 cmp r3, #0 + 80065a4: d107 bne.n 80065b6 + 80065a6: 4b1f ldr r3, [pc, #124] ; (8006624 ) + 80065a8: f240 32cf movw r2, #975 ; 0x3cf + 80065ac: 491e ldr r1, [pc, #120] ; (8006628 ) + 80065ae: 481f ldr r0, [pc, #124] ; (800662c ) + 80065b0: f009 ff0e bl 80103d0 + 80065b4: e032 b.n 800661c /* pcb->state LISTEN not allowed here */ LWIP_ASSERT("don't call tcp_recved for listen-pcbs", - 80065ba: 687b ldr r3, [r7, #4] - 80065bc: 7d1b ldrb r3, [r3, #20] - 80065be: 2b01 cmp r3, #1 - 80065c0: d106 bne.n 80065d0 - 80065c2: 4b19 ldr r3, [pc, #100] ; (8006628 ) - 80065c4: f240 32d2 movw r2, #978 ; 0x3d2 - 80065c8: 491a ldr r1, [pc, #104] ; (8006634 ) - 80065ca: 4819 ldr r0, [pc, #100] ; (8006630 ) - 80065cc: f009 ff02 bl 80103d4 + 80065b6: 687b ldr r3, [r7, #4] + 80065b8: 7d1b ldrb r3, [r3, #20] + 80065ba: 2b01 cmp r3, #1 + 80065bc: d106 bne.n 80065cc + 80065be: 4b19 ldr r3, [pc, #100] ; (8006624 ) + 80065c0: f240 32d2 movw r2, #978 ; 0x3d2 + 80065c4: 491a ldr r1, [pc, #104] ; (8006630 ) + 80065c6: 4819 ldr r0, [pc, #100] ; (800662c ) + 80065c8: f009 ff02 bl 80103d0 pcb->state != LISTEN); rcv_wnd = (tcpwnd_size_t)(pcb->rcv_wnd + len); - 80065d0: 687b ldr r3, [r7, #4] - 80065d2: 8d1a ldrh r2, [r3, #40] ; 0x28 - 80065d4: 887b ldrh r3, [r7, #2] - 80065d6: 4413 add r3, r2 - 80065d8: 81fb strh r3, [r7, #14] + 80065cc: 687b ldr r3, [r7, #4] + 80065ce: 8d1a ldrh r2, [r3, #40] ; 0x28 + 80065d0: 887b ldrh r3, [r7, #2] + 80065d2: 4413 add r3, r2 + 80065d4: 81fb strh r3, [r7, #14] if ((rcv_wnd > TCP_WND_MAX(pcb)) || (rcv_wnd < pcb->rcv_wnd)) { - 80065da: 89fb ldrh r3, [r7, #14] - 80065dc: f5b3 6f06 cmp.w r3, #2144 ; 0x860 - 80065e0: d804 bhi.n 80065ec - 80065e2: 687b ldr r3, [r7, #4] - 80065e4: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80065e6: 89fa ldrh r2, [r7, #14] - 80065e8: 429a cmp r2, r3 - 80065ea: d204 bcs.n 80065f6 + 80065d6: 89fb ldrh r3, [r7, #14] + 80065d8: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 80065dc: d804 bhi.n 80065e8 + 80065de: 687b ldr r3, [r7, #4] + 80065e0: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80065e2: 89fa ldrh r2, [r7, #14] + 80065e4: 429a cmp r2, r3 + 80065e6: d204 bcs.n 80065f2 /* window got too big or tcpwnd_size_t overflow */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: window got too big or tcpwnd_size_t overflow\n")); pcb->rcv_wnd = TCP_WND_MAX(pcb); - 80065ec: 687b ldr r3, [r7, #4] - 80065ee: f44f 6206 mov.w r2, #2144 ; 0x860 - 80065f2: 851a strh r2, [r3, #40] ; 0x28 - 80065f4: e002 b.n 80065fc + 80065e8: 687b ldr r3, [r7, #4] + 80065ea: f44f 6206 mov.w r2, #2144 ; 0x860 + 80065ee: 851a strh r2, [r3, #40] ; 0x28 + 80065f0: e002 b.n 80065f8 } else { pcb->rcv_wnd = rcv_wnd; - 80065f6: 687b ldr r3, [r7, #4] - 80065f8: 89fa ldrh r2, [r7, #14] - 80065fa: 851a strh r2, [r3, #40] ; 0x28 + 80065f2: 687b ldr r3, [r7, #4] + 80065f4: 89fa ldrh r2, [r7, #14] + 80065f6: 851a strh r2, [r3, #40] ; 0x28 } wnd_inflation = tcp_update_rcv_ann_wnd(pcb); - 80065fc: 6878 ldr r0, [r7, #4] - 80065fe: f7ff ff71 bl 80064e4 - 8006602: 60b8 str r0, [r7, #8] + 80065f8: 6878 ldr r0, [r7, #4] + 80065fa: f7ff ff71 bl 80064e0 + 80065fe: 60b8 str r0, [r7, #8] /* If the change in the right edge of window is significant (default * watermark is TCP_WND/4), then send an explicit update now. * Otherwise wait for a packet to be sent in the normal course of * events (or more window to be available later) */ if (wnd_inflation >= TCP_WND_UPDATE_THRESHOLD) { - 8006604: 68bb ldr r3, [r7, #8] - 8006606: f5b3 7f06 cmp.w r3, #536 ; 0x218 - 800660a: d309 bcc.n 8006620 + 8006600: 68bb ldr r3, [r7, #8] + 8006602: f5b3 7f06 cmp.w r3, #536 ; 0x218 + 8006606: d309 bcc.n 800661c tcp_ack_now(pcb); - 800660c: 687b ldr r3, [r7, #4] - 800660e: 8b5b ldrh r3, [r3, #26] - 8006610: f043 0302 orr.w r3, r3, #2 - 8006614: b29a uxth r2, r3 - 8006616: 687b ldr r3, [r7, #4] - 8006618: 835a strh r2, [r3, #26] + 8006608: 687b ldr r3, [r7, #4] + 800660a: 8b5b ldrh r3, [r3, #26] + 800660c: f043 0302 orr.w r3, r3, #2 + 8006610: b29a uxth r2, r3 + 8006612: 687b ldr r3, [r7, #4] + 8006614: 835a strh r2, [r3, #26] tcp_output(pcb); - 800661a: 6878 ldr r0, [r7, #4] - 800661c: f003 fe42 bl 800a2a4 + 8006616: 6878 ldr r0, [r7, #4] + 8006618: f003 fe42 bl 800a2a0 } LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: received %"U16_F" bytes, wnd %"TCPWNDSIZE_F" (%"TCPWNDSIZE_F").\n", len, pcb->rcv_wnd, (u16_t)(TCP_WND_MAX(pcb) - pcb->rcv_wnd))); } - 8006620: 3710 adds r7, #16 - 8006622: 46bd mov sp, r7 - 8006624: bd80 pop {r7, pc} - 8006626: bf00 nop - 8006628: 080159bc .word 0x080159bc - 800662c: 08015c58 .word 0x08015c58 - 8006630: 08015a00 .word 0x08015a00 - 8006634: 08015c70 .word 0x08015c70 + 800661c: 3710 adds r7, #16 + 800661e: 46bd mov sp, r7 + 8006620: bd80 pop {r7, pc} + 8006622: bf00 nop + 8006624: 080159bc .word 0x080159bc + 8006628: 08015c58 .word 0x08015c58 + 800662c: 08015a00 .word 0x08015a00 + 8006630: 08015c70 .word 0x08015c70 -08006638 : +08006634 : * * Automatically called from tcp_tmr(). */ void tcp_slowtmr(void) { - 8006638: b5b0 push {r4, r5, r7, lr} - 800663a: b090 sub sp, #64 ; 0x40 - 800663c: af04 add r7, sp, #16 + 8006634: b5b0 push {r4, r5, r7, lr} + 8006636: b090 sub sp, #64 ; 0x40 + 8006638: af04 add r7, sp, #16 tcpwnd_size_t eff_wnd; u8_t pcb_remove; /* flag if a PCB should be removed */ u8_t pcb_reset; /* flag if a RST should be sent when removing */ err_t err; err = ERR_OK; - 800663e: 2300 movs r3, #0 - 8006640: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 800663a: 2300 movs r3, #0 + 800663c: f887 3025 strb.w r3, [r7, #37] ; 0x25 ++tcp_ticks; - 8006644: 4b94 ldr r3, [pc, #592] ; (8006898 ) - 8006646: 681b ldr r3, [r3, #0] - 8006648: 3301 adds r3, #1 - 800664a: 4a93 ldr r2, [pc, #588] ; (8006898 ) - 800664c: 6013 str r3, [r2, #0] + 8006640: 4b94 ldr r3, [pc, #592] ; (8006894 ) + 8006642: 681b ldr r3, [r3, #0] + 8006644: 3301 adds r3, #1 + 8006646: 4a93 ldr r2, [pc, #588] ; (8006894 ) + 8006648: 6013 str r3, [r2, #0] ++tcp_timer_ctr; - 800664e: 4b93 ldr r3, [pc, #588] ; (800689c ) - 8006650: 781b ldrb r3, [r3, #0] - 8006652: 3301 adds r3, #1 - 8006654: b2da uxtb r2, r3 - 8006656: 4b91 ldr r3, [pc, #580] ; (800689c ) - 8006658: 701a strb r2, [r3, #0] + 800664a: 4b93 ldr r3, [pc, #588] ; (8006898 ) + 800664c: 781b ldrb r3, [r3, #0] + 800664e: 3301 adds r3, #1 + 8006650: b2da uxtb r2, r3 + 8006652: 4b91 ldr r3, [pc, #580] ; (8006898 ) + 8006654: 701a strb r2, [r3, #0] tcp_slowtmr_start: /* Steps through all of the active PCBs. */ prev = NULL; - 800665a: 2300 movs r3, #0 - 800665c: 62bb str r3, [r7, #40] ; 0x28 + 8006656: 2300 movs r3, #0 + 8006658: 62bb str r3, [r7, #40] ; 0x28 pcb = tcp_active_pcbs; - 800665e: 4b90 ldr r3, [pc, #576] ; (80068a0 ) - 8006660: 681b ldr r3, [r3, #0] - 8006662: 62fb str r3, [r7, #44] ; 0x2c + 800665a: 4b90 ldr r3, [pc, #576] ; (800689c ) + 800665c: 681b ldr r3, [r3, #0] + 800665e: 62fb str r3, [r7, #44] ; 0x2c if (pcb == NULL) { LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: no active pcbs\n")); } while (pcb != NULL) { - 8006664: e29f b.n 8006ba6 + 8006660: e29f b.n 8006ba2 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: processing active pcb\n")); LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED); - 8006666: 6afb ldr r3, [r7, #44] ; 0x2c - 8006668: 7d1b ldrb r3, [r3, #20] - 800666a: 2b00 cmp r3, #0 - 800666c: d106 bne.n 800667c - 800666e: 4b8d ldr r3, [pc, #564] ; (80068a4 ) - 8006670: f240 42be movw r2, #1214 ; 0x4be - 8006674: 498c ldr r1, [pc, #560] ; (80068a8 ) - 8006676: 488d ldr r0, [pc, #564] ; (80068ac ) - 8006678: f009 feac bl 80103d4 + 8006662: 6afb ldr r3, [r7, #44] ; 0x2c + 8006664: 7d1b ldrb r3, [r3, #20] + 8006666: 2b00 cmp r3, #0 + 8006668: d106 bne.n 8006678 + 800666a: 4b8d ldr r3, [pc, #564] ; (80068a0 ) + 800666c: f240 42be movw r2, #1214 ; 0x4be + 8006670: 498c ldr r1, [pc, #560] ; (80068a4 ) + 8006672: 488d ldr r0, [pc, #564] ; (80068a8 ) + 8006674: f009 feac bl 80103d0 LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN); - 800667c: 6afb ldr r3, [r7, #44] ; 0x2c - 800667e: 7d1b ldrb r3, [r3, #20] - 8006680: 2b01 cmp r3, #1 - 8006682: d106 bne.n 8006692 - 8006684: 4b87 ldr r3, [pc, #540] ; (80068a4 ) - 8006686: f240 42bf movw r2, #1215 ; 0x4bf - 800668a: 4989 ldr r1, [pc, #548] ; (80068b0 ) - 800668c: 4887 ldr r0, [pc, #540] ; (80068ac ) - 800668e: f009 fea1 bl 80103d4 + 8006678: 6afb ldr r3, [r7, #44] ; 0x2c + 800667a: 7d1b ldrb r3, [r3, #20] + 800667c: 2b01 cmp r3, #1 + 800667e: d106 bne.n 800668e + 8006680: 4b87 ldr r3, [pc, #540] ; (80068a0 ) + 8006682: f240 42bf movw r2, #1215 ; 0x4bf + 8006686: 4989 ldr r1, [pc, #548] ; (80068ac ) + 8006688: 4887 ldr r0, [pc, #540] ; (80068a8 ) + 800668a: f009 fea1 bl 80103d0 LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT); - 8006692: 6afb ldr r3, [r7, #44] ; 0x2c - 8006694: 7d1b ldrb r3, [r3, #20] - 8006696: 2b0a cmp r3, #10 - 8006698: d106 bne.n 80066a8 - 800669a: 4b82 ldr r3, [pc, #520] ; (80068a4 ) - 800669c: f44f 6298 mov.w r2, #1216 ; 0x4c0 - 80066a0: 4984 ldr r1, [pc, #528] ; (80068b4 ) - 80066a2: 4882 ldr r0, [pc, #520] ; (80068ac ) - 80066a4: f009 fe96 bl 80103d4 + 800668e: 6afb ldr r3, [r7, #44] ; 0x2c + 8006690: 7d1b ldrb r3, [r3, #20] + 8006692: 2b0a cmp r3, #10 + 8006694: d106 bne.n 80066a4 + 8006696: 4b82 ldr r3, [pc, #520] ; (80068a0 ) + 8006698: f44f 6298 mov.w r2, #1216 ; 0x4c0 + 800669c: 4984 ldr r1, [pc, #528] ; (80068b0 ) + 800669e: 4882 ldr r0, [pc, #520] ; (80068a8 ) + 80066a0: f009 fe96 bl 80103d0 if (pcb->last_timer == tcp_timer_ctr) { - 80066a8: 6afb ldr r3, [r7, #44] ; 0x2c - 80066aa: 7f9a ldrb r2, [r3, #30] - 80066ac: 4b7b ldr r3, [pc, #492] ; (800689c ) - 80066ae: 781b ldrb r3, [r3, #0] - 80066b0: 429a cmp r2, r3 - 80066b2: d105 bne.n 80066c0 + 80066a4: 6afb ldr r3, [r7, #44] ; 0x2c + 80066a6: 7f9a ldrb r2, [r3, #30] + 80066a8: 4b7b ldr r3, [pc, #492] ; (8006898 ) + 80066aa: 781b ldrb r3, [r3, #0] + 80066ac: 429a cmp r2, r3 + 80066ae: d105 bne.n 80066bc /* skip this pcb, we have already processed it */ prev = pcb; - 80066b4: 6afb ldr r3, [r7, #44] ; 0x2c - 80066b6: 62bb str r3, [r7, #40] ; 0x28 + 80066b0: 6afb ldr r3, [r7, #44] ; 0x2c + 80066b2: 62bb str r3, [r7, #40] ; 0x28 pcb = pcb->next; - 80066b8: 6afb ldr r3, [r7, #44] ; 0x2c - 80066ba: 68db ldr r3, [r3, #12] - 80066bc: 62fb str r3, [r7, #44] ; 0x2c + 80066b4: 6afb ldr r3, [r7, #44] ; 0x2c + 80066b6: 68db ldr r3, [r3, #12] + 80066b8: 62fb str r3, [r7, #44] ; 0x2c continue; - 80066be: e272 b.n 8006ba6 + 80066ba: e272 b.n 8006ba2 } pcb->last_timer = tcp_timer_ctr; - 80066c0: 4b76 ldr r3, [pc, #472] ; (800689c ) - 80066c2: 781a ldrb r2, [r3, #0] - 80066c4: 6afb ldr r3, [r7, #44] ; 0x2c - 80066c6: 779a strb r2, [r3, #30] + 80066bc: 4b76 ldr r3, [pc, #472] ; (8006898 ) + 80066be: 781a ldrb r2, [r3, #0] + 80066c0: 6afb ldr r3, [r7, #44] ; 0x2c + 80066c2: 779a strb r2, [r3, #30] pcb_remove = 0; - 80066c8: 2300 movs r3, #0 - 80066ca: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80066c4: 2300 movs r3, #0 + 80066c6: f887 3027 strb.w r3, [r7, #39] ; 0x27 pcb_reset = 0; - 80066ce: 2300 movs r3, #0 - 80066d0: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 80066ca: 2300 movs r3, #0 + 80066cc: f887 3026 strb.w r3, [r7, #38] ; 0x26 if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) { - 80066d4: 6afb ldr r3, [r7, #44] ; 0x2c - 80066d6: 7d1b ldrb r3, [r3, #20] - 80066d8: 2b02 cmp r3, #2 - 80066da: d10a bne.n 80066f2 - 80066dc: 6afb ldr r3, [r7, #44] ; 0x2c - 80066de: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 80066e2: 2b05 cmp r3, #5 - 80066e4: d905 bls.n 80066f2 + 80066d0: 6afb ldr r3, [r7, #44] ; 0x2c + 80066d2: 7d1b ldrb r3, [r3, #20] + 80066d4: 2b02 cmp r3, #2 + 80066d6: d10a bne.n 80066ee + 80066d8: 6afb ldr r3, [r7, #44] ; 0x2c + 80066da: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 80066de: 2b05 cmp r3, #5 + 80066e0: d905 bls.n 80066ee ++pcb_remove; - 80066e6: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 80066ea: 3301 adds r3, #1 - 80066ec: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 80066f0: e11e b.n 8006930 + 80066e2: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 80066e6: 3301 adds r3, #1 + 80066e8: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80066ec: e11e b.n 800692c LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n")); } else if (pcb->nrtx >= TCP_MAXRTX) { - 80066f2: 6afb ldr r3, [r7, #44] ; 0x2c - 80066f4: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 80066f8: 2b0b cmp r3, #11 - 80066fa: d905 bls.n 8006708 + 80066ee: 6afb ldr r3, [r7, #44] ; 0x2c + 80066f0: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 80066f4: 2b0b cmp r3, #11 + 80066f6: d905 bls.n 8006704 ++pcb_remove; - 80066fc: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8006700: 3301 adds r3, #1 - 8006702: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8006706: e113 b.n 8006930 + 80066f8: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 80066fc: 3301 adds r3, #1 + 80066fe: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8006702: e113 b.n 800692c LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max DATA retries reached\n")); } else { if (pcb->persist_backoff > 0) { - 8006708: 6afb ldr r3, [r7, #44] ; 0x2c - 800670a: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 800670e: 2b00 cmp r3, #0 - 8006710: d075 beq.n 80067fe + 8006704: 6afb ldr r3, [r7, #44] ; 0x2c + 8006706: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 800670a: 2b00 cmp r3, #0 + 800670c: d075 beq.n 80067fa LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL); - 8006712: 6afb ldr r3, [r7, #44] ; 0x2c - 8006714: 6f1b ldr r3, [r3, #112] ; 0x70 - 8006716: 2b00 cmp r3, #0 - 8006718: d006 beq.n 8006728 - 800671a: 4b62 ldr r3, [pc, #392] ; (80068a4 ) - 800671c: f240 42d4 movw r2, #1236 ; 0x4d4 - 8006720: 4965 ldr r1, [pc, #404] ; (80068b8 ) - 8006722: 4862 ldr r0, [pc, #392] ; (80068ac ) - 8006724: f009 fe56 bl 80103d4 + 800670e: 6afb ldr r3, [r7, #44] ; 0x2c + 8006710: 6f1b ldr r3, [r3, #112] ; 0x70 + 8006712: 2b00 cmp r3, #0 + 8006714: d006 beq.n 8006724 + 8006716: 4b62 ldr r3, [pc, #392] ; (80068a0 ) + 8006718: f240 42d4 movw r2, #1236 ; 0x4d4 + 800671c: 4965 ldr r1, [pc, #404] ; (80068b4 ) + 800671e: 4862 ldr r0, [pc, #392] ; (80068a8 ) + 8006720: f009 fe56 bl 80103d0 LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL); - 8006728: 6afb ldr r3, [r7, #44] ; 0x2c - 800672a: 6edb ldr r3, [r3, #108] ; 0x6c - 800672c: 2b00 cmp r3, #0 - 800672e: d106 bne.n 800673e - 8006730: 4b5c ldr r3, [pc, #368] ; (80068a4 ) - 8006732: f240 42d5 movw r2, #1237 ; 0x4d5 - 8006736: 4961 ldr r1, [pc, #388] ; (80068bc ) - 8006738: 485c ldr r0, [pc, #368] ; (80068ac ) - 800673a: f009 fe4b bl 80103d4 + 8006724: 6afb ldr r3, [r7, #44] ; 0x2c + 8006726: 6edb ldr r3, [r3, #108] ; 0x6c + 8006728: 2b00 cmp r3, #0 + 800672a: d106 bne.n 800673a + 800672c: 4b5c ldr r3, [pc, #368] ; (80068a0 ) + 800672e: f240 42d5 movw r2, #1237 ; 0x4d5 + 8006732: 4961 ldr r1, [pc, #388] ; (80068b8 ) + 8006734: 485c ldr r0, [pc, #368] ; (80068a8 ) + 8006736: f009 fe4b bl 80103d0 if (pcb->persist_probe >= TCP_MAXRTX) { - 800673e: 6afb ldr r3, [r7, #44] ; 0x2c - 8006740: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 8006744: 2b0b cmp r3, #11 - 8006746: d905 bls.n 8006754 + 800673a: 6afb ldr r3, [r7, #44] ; 0x2c + 800673c: f893 309a ldrb.w r3, [r3, #154] ; 0x9a + 8006740: 2b0b cmp r3, #11 + 8006742: d905 bls.n 8006750 ++pcb_remove; /* max probes reached */ - 8006748: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800674c: 3301 adds r3, #1 - 800674e: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8006752: e0ed b.n 8006930 + 8006744: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8006748: 3301 adds r3, #1 + 800674a: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800674e: e0ed b.n 800692c } else { u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1]; - 8006754: 6afb ldr r3, [r7, #44] ; 0x2c - 8006756: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 800675a: 3b01 subs r3, #1 - 800675c: 4a58 ldr r2, [pc, #352] ; (80068c0 ) - 800675e: 5cd3 ldrb r3, [r2, r3] - 8006760: 747b strb r3, [r7, #17] + 8006750: 6afb ldr r3, [r7, #44] ; 0x2c + 8006752: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 8006756: 3b01 subs r3, #1 + 8006758: 4a58 ldr r2, [pc, #352] ; (80068bc ) + 800675a: 5cd3 ldrb r3, [r2, r3] + 800675c: 747b strb r3, [r7, #17] if (pcb->persist_cnt < backoff_cnt) { - 8006762: 6afb ldr r3, [r7, #44] ; 0x2c - 8006764: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 8006768: 7c7a ldrb r2, [r7, #17] - 800676a: 429a cmp r2, r3 - 800676c: d907 bls.n 800677e + 800675e: 6afb ldr r3, [r7, #44] ; 0x2c + 8006760: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 + 8006764: 7c7a ldrb r2, [r7, #17] + 8006766: 429a cmp r2, r3 + 8006768: d907 bls.n 800677a pcb->persist_cnt++; - 800676e: 6afb ldr r3, [r7, #44] ; 0x2c - 8006770: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 8006774: 3301 adds r3, #1 - 8006776: b2da uxtb r2, r3 - 8006778: 6afb ldr r3, [r7, #44] ; 0x2c - 800677a: f883 2098 strb.w r2, [r3, #152] ; 0x98 + 800676a: 6afb ldr r3, [r7, #44] ; 0x2c + 800676c: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 + 8006770: 3301 adds r3, #1 + 8006772: b2da uxtb r2, r3 + 8006774: 6afb ldr r3, [r7, #44] ; 0x2c + 8006776: f883 2098 strb.w r2, [r3, #152] ; 0x98 } if (pcb->persist_cnt >= backoff_cnt) { - 800677e: 6afb ldr r3, [r7, #44] ; 0x2c - 8006780: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 8006784: 7c7a ldrb r2, [r7, #17] - 8006786: 429a cmp r2, r3 - 8006788: f200 80d2 bhi.w 8006930 + 800677a: 6afb ldr r3, [r7, #44] ; 0x2c + 800677c: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 + 8006780: 7c7a ldrb r2, [r7, #17] + 8006782: 429a cmp r2, r3 + 8006784: f200 80d2 bhi.w 800692c int next_slot = 1; /* increment timer to next slot */ - 800678c: 2301 movs r3, #1 - 800678e: 623b str r3, [r7, #32] + 8006788: 2301 movs r3, #1 + 800678a: 623b str r3, [r7, #32] /* If snd_wnd is zero, send 1 byte probes */ if (pcb->snd_wnd == 0) { - 8006790: 6afb ldr r3, [r7, #44] ; 0x2c - 8006792: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8006796: 2b00 cmp r3, #0 - 8006798: d108 bne.n 80067ac + 800678c: 6afb ldr r3, [r7, #44] ; 0x2c + 800678e: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8006792: 2b00 cmp r3, #0 + 8006794: d108 bne.n 80067a8 if (tcp_zero_window_probe(pcb) != ERR_OK) { - 800679a: 6af8 ldr r0, [r7, #44] ; 0x2c - 800679c: f004 fc2a bl 800aff4 - 80067a0: 4603 mov r3, r0 - 80067a2: 2b00 cmp r3, #0 - 80067a4: d014 beq.n 80067d0 + 8006796: 6af8 ldr r0, [r7, #44] ; 0x2c + 8006798: f004 fc2a bl 800aff0 + 800679c: 4603 mov r3, r0 + 800679e: 2b00 cmp r3, #0 + 80067a0: d014 beq.n 80067cc next_slot = 0; /* try probe again with current slot */ - 80067a6: 2300 movs r3, #0 - 80067a8: 623b str r3, [r7, #32] - 80067aa: e011 b.n 80067d0 + 80067a2: 2300 movs r3, #0 + 80067a4: 623b str r3, [r7, #32] + 80067a6: e011 b.n 80067cc } /* snd_wnd not fully closed, split unsent head and fill window */ } else { if (tcp_split_unsent_seg(pcb, (u16_t)pcb->snd_wnd) == ERR_OK) { - 80067ac: 6afb ldr r3, [r7, #44] ; 0x2c - 80067ae: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 80067b2: 4619 mov r1, r3 - 80067b4: 6af8 ldr r0, [r7, #44] ; 0x2c - 80067b6: f003 faef bl 8009d98 - 80067ba: 4603 mov r3, r0 - 80067bc: 2b00 cmp r3, #0 - 80067be: d107 bne.n 80067d0 + 80067a8: 6afb ldr r3, [r7, #44] ; 0x2c + 80067aa: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 80067ae: 4619 mov r1, r3 + 80067b0: 6af8 ldr r0, [r7, #44] ; 0x2c + 80067b2: f003 faef bl 8009d94 + 80067b6: 4603 mov r3, r0 + 80067b8: 2b00 cmp r3, #0 + 80067ba: d107 bne.n 80067cc if (tcp_output(pcb) == ERR_OK) { - 80067c0: 6af8 ldr r0, [r7, #44] ; 0x2c - 80067c2: f003 fd6f bl 800a2a4 - 80067c6: 4603 mov r3, r0 - 80067c8: 2b00 cmp r3, #0 - 80067ca: d101 bne.n 80067d0 + 80067bc: 6af8 ldr r0, [r7, #44] ; 0x2c + 80067be: f003 fd6f bl 800a2a0 + 80067c2: 4603 mov r3, r0 + 80067c4: 2b00 cmp r3, #0 + 80067c6: d101 bne.n 80067cc /* sending will cancel persist timer, else retry with current slot */ next_slot = 0; - 80067cc: 2300 movs r3, #0 - 80067ce: 623b str r3, [r7, #32] + 80067c8: 2300 movs r3, #0 + 80067ca: 623b str r3, [r7, #32] } } } if (next_slot) { - 80067d0: 6a3b ldr r3, [r7, #32] - 80067d2: 2b00 cmp r3, #0 - 80067d4: f000 80ac beq.w 8006930 + 80067cc: 6a3b ldr r3, [r7, #32] + 80067ce: 2b00 cmp r3, #0 + 80067d0: f000 80ac beq.w 800692c pcb->persist_cnt = 0; - 80067d8: 6afb ldr r3, [r7, #44] ; 0x2c - 80067da: 2200 movs r2, #0 - 80067dc: f883 2098 strb.w r2, [r3, #152] ; 0x98 + 80067d4: 6afb ldr r3, [r7, #44] ; 0x2c + 80067d6: 2200 movs r2, #0 + 80067d8: f883 2098 strb.w r2, [r3, #152] ; 0x98 if (pcb->persist_backoff < sizeof(tcp_persist_backoff)) { - 80067e0: 6afb ldr r3, [r7, #44] ; 0x2c - 80067e2: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 80067e6: 2b06 cmp r3, #6 - 80067e8: f200 80a2 bhi.w 8006930 + 80067dc: 6afb ldr r3, [r7, #44] ; 0x2c + 80067de: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 80067e2: 2b06 cmp r3, #6 + 80067e4: f200 80a2 bhi.w 800692c pcb->persist_backoff++; - 80067ec: 6afb ldr r3, [r7, #44] ; 0x2c - 80067ee: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 80067f2: 3301 adds r3, #1 - 80067f4: b2da uxtb r2, r3 - 80067f6: 6afb ldr r3, [r7, #44] ; 0x2c - 80067f8: f883 2099 strb.w r2, [r3, #153] ; 0x99 - 80067fc: e098 b.n 8006930 + 80067e8: 6afb ldr r3, [r7, #44] ; 0x2c + 80067ea: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 80067ee: 3301 adds r3, #1 + 80067f0: b2da uxtb r2, r3 + 80067f2: 6afb ldr r3, [r7, #44] ; 0x2c + 80067f4: f883 2099 strb.w r2, [r3, #153] ; 0x99 + 80067f8: e098 b.n 800692c } } } } else { /* Increase the retransmission timer if it is running */ if ((pcb->rtime >= 0) && (pcb->rtime < 0x7FFF)) { - 80067fe: 6afb ldr r3, [r7, #44] ; 0x2c - 8006800: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8006804: 2b00 cmp r3, #0 - 8006806: db0f blt.n 8006828 - 8006808: 6afb ldr r3, [r7, #44] ; 0x2c - 800680a: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 800680e: f647 72ff movw r2, #32767 ; 0x7fff - 8006812: 4293 cmp r3, r2 - 8006814: d008 beq.n 8006828 + 80067fa: 6afb ldr r3, [r7, #44] ; 0x2c + 80067fc: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 8006800: 2b00 cmp r3, #0 + 8006802: db0f blt.n 8006824 + 8006804: 6afb ldr r3, [r7, #44] ; 0x2c + 8006806: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 800680a: f647 72ff movw r2, #32767 ; 0x7fff + 800680e: 4293 cmp r3, r2 + 8006810: d008 beq.n 8006824 ++pcb->rtime; - 8006816: 6afb ldr r3, [r7, #44] ; 0x2c - 8006818: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 8006812: 6afb ldr r3, [r7, #44] ; 0x2c + 8006814: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 8006818: b29b uxth r3, r3 + 800681a: 3301 adds r3, #1 800681c: b29b uxth r3, r3 - 800681e: 3301 adds r3, #1 - 8006820: b29b uxth r3, r3 - 8006822: b21a sxth r2, r3 - 8006824: 6afb ldr r3, [r7, #44] ; 0x2c - 8006826: 861a strh r2, [r3, #48] ; 0x30 + 800681e: b21a sxth r2, r3 + 8006820: 6afb ldr r3, [r7, #44] ; 0x2c + 8006822: 861a strh r2, [r3, #48] ; 0x30 } if (pcb->rtime >= pcb->rto) { - 8006828: 6afb ldr r3, [r7, #44] ; 0x2c - 800682a: f9b3 2030 ldrsh.w r2, [r3, #48] ; 0x30 - 800682e: 6afb ldr r3, [r7, #44] ; 0x2c - 8006830: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 - 8006834: 429a cmp r2, r3 - 8006836: db7b blt.n 8006930 + 8006824: 6afb ldr r3, [r7, #44] ; 0x2c + 8006826: f9b3 2030 ldrsh.w r2, [r3, #48] ; 0x30 + 800682a: 6afb ldr r3, [r7, #44] ; 0x2c + 800682c: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 + 8006830: 429a cmp r2, r3 + 8006832: db7b blt.n 800692c " pcb->rto %"S16_F"\n", pcb->rtime, pcb->rto)); /* If prepare phase fails but we have unsent data but no unacked data, still execute the backoff calculations below, as this means we somehow failed to send segment. */ if ((tcp_rexmit_rto_prepare(pcb) == ERR_OK) || ((pcb->unacked == NULL) && (pcb->unsent != NULL))) { - 8006838: 6af8 ldr r0, [r7, #44] ; 0x2c - 800683a: f004 f825 bl 800a888 - 800683e: 4603 mov r3, r0 - 8006840: 2b00 cmp r3, #0 - 8006842: d007 beq.n 8006854 - 8006844: 6afb ldr r3, [r7, #44] ; 0x2c - 8006846: 6f1b ldr r3, [r3, #112] ; 0x70 - 8006848: 2b00 cmp r3, #0 - 800684a: d171 bne.n 8006930 - 800684c: 6afb ldr r3, [r7, #44] ; 0x2c - 800684e: 6edb ldr r3, [r3, #108] ; 0x6c - 8006850: 2b00 cmp r3, #0 - 8006852: d06d beq.n 8006930 + 8006834: 6af8 ldr r0, [r7, #44] ; 0x2c + 8006836: f004 f825 bl 800a884 + 800683a: 4603 mov r3, r0 + 800683c: 2b00 cmp r3, #0 + 800683e: d007 beq.n 8006850 + 8006840: 6afb ldr r3, [r7, #44] ; 0x2c + 8006842: 6f1b ldr r3, [r3, #112] ; 0x70 + 8006844: 2b00 cmp r3, #0 + 8006846: d171 bne.n 800692c + 8006848: 6afb ldr r3, [r7, #44] ; 0x2c + 800684a: 6edb ldr r3, [r3, #108] ; 0x6c + 800684c: 2b00 cmp r3, #0 + 800684e: d06d beq.n 800692c /* Double retransmission time-out unless we are trying to * connect to somebody (i.e., we are in SYN_SENT). */ if (pcb->state != SYN_SENT) { - 8006854: 6afb ldr r3, [r7, #44] ; 0x2c - 8006856: 7d1b ldrb r3, [r3, #20] - 8006858: 2b02 cmp r3, #2 - 800685a: d03a beq.n 80068d2 + 8006850: 6afb ldr r3, [r7, #44] ; 0x2c + 8006852: 7d1b ldrb r3, [r3, #20] + 8006854: 2b02 cmp r3, #2 + 8006856: d03a beq.n 80068ce u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1); - 800685c: 6afb ldr r3, [r7, #44] ; 0x2c - 800685e: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8006862: 2b0c cmp r3, #12 - 8006864: bf28 it cs - 8006866: 230c movcs r3, #12 - 8006868: 76fb strb r3, [r7, #27] + 8006858: 6afb ldr r3, [r7, #44] ; 0x2c + 800685a: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 800685e: 2b0c cmp r3, #12 + 8006860: bf28 it cs + 8006862: 230c movcs r3, #12 + 8006864: 76fb strb r3, [r7, #27] int calc_rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[backoff_idx]; - 800686a: 6afb ldr r3, [r7, #44] ; 0x2c - 800686c: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8006870: 10db asrs r3, r3, #3 - 8006872: b21b sxth r3, r3 - 8006874: 461a mov r2, r3 - 8006876: 6afb ldr r3, [r7, #44] ; 0x2c - 8006878: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 800687c: 4413 add r3, r2 - 800687e: 7efa ldrb r2, [r7, #27] - 8006880: 4910 ldr r1, [pc, #64] ; (80068c4 ) - 8006882: 5c8a ldrb r2, [r1, r2] - 8006884: 4093 lsls r3, r2 - 8006886: 617b str r3, [r7, #20] + 8006866: 6afb ldr r3, [r7, #44] ; 0x2c + 8006868: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 800686c: 10db asrs r3, r3, #3 + 800686e: b21b sxth r3, r3 + 8006870: 461a mov r2, r3 + 8006872: 6afb ldr r3, [r7, #44] ; 0x2c + 8006874: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 8006878: 4413 add r3, r2 + 800687a: 7efa ldrb r2, [r7, #27] + 800687c: 4910 ldr r1, [pc, #64] ; (80068c0 ) + 800687e: 5c8a ldrb r2, [r1, r2] + 8006880: 4093 lsls r3, r2 + 8006882: 617b str r3, [r7, #20] pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF); - 8006888: 697b ldr r3, [r7, #20] - 800688a: f647 72fe movw r2, #32766 ; 0x7ffe - 800688e: 4293 cmp r3, r2 - 8006890: dc1a bgt.n 80068c8 - 8006892: 697b ldr r3, [r7, #20] - 8006894: b21a sxth r2, r3 - 8006896: e019 b.n 80068cc - 8006898: 20008c00 .word 0x20008c00 - 800689c: 20008c16 .word 0x20008c16 - 80068a0: 20008c0c .word 0x20008c0c - 80068a4: 080159bc .word 0x080159bc - 80068a8: 08015d00 .word 0x08015d00 - 80068ac: 08015a00 .word 0x08015a00 - 80068b0: 08015d2c .word 0x08015d2c - 80068b4: 08015d58 .word 0x08015d58 - 80068b8: 08015d88 .word 0x08015d88 - 80068bc: 08015dbc .word 0x08015dbc - 80068c0: 08017d9c .word 0x08017d9c - 80068c4: 08017d8c .word 0x08017d8c - 80068c8: f647 72ff movw r2, #32767 ; 0x7fff - 80068cc: 6afb ldr r3, [r7, #44] ; 0x2c - 80068ce: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 + 8006884: 697b ldr r3, [r7, #20] + 8006886: f647 72fe movw r2, #32766 ; 0x7ffe + 800688a: 4293 cmp r3, r2 + 800688c: dc1a bgt.n 80068c4 + 800688e: 697b ldr r3, [r7, #20] + 8006890: b21a sxth r2, r3 + 8006892: e019 b.n 80068c8 + 8006894: 20008c00 .word 0x20008c00 + 8006898: 20008c16 .word 0x20008c16 + 800689c: 20008c0c .word 0x20008c0c + 80068a0: 080159bc .word 0x080159bc + 80068a4: 08015d00 .word 0x08015d00 + 80068a8: 08015a00 .word 0x08015a00 + 80068ac: 08015d2c .word 0x08015d2c + 80068b0: 08015d58 .word 0x08015d58 + 80068b4: 08015d88 .word 0x08015d88 + 80068b8: 08015dbc .word 0x08015dbc + 80068bc: 08017d9c .word 0x08017d9c + 80068c0: 08017d8c .word 0x08017d8c + 80068c4: f647 72ff movw r2, #32767 ; 0x7fff + 80068c8: 6afb ldr r3, [r7, #44] ; 0x2c + 80068ca: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 } /* Reset the retransmission timer. */ pcb->rtime = 0; - 80068d2: 6afb ldr r3, [r7, #44] ; 0x2c - 80068d4: 2200 movs r2, #0 - 80068d6: 861a strh r2, [r3, #48] ; 0x30 + 80068ce: 6afb ldr r3, [r7, #44] ; 0x2c + 80068d0: 2200 movs r2, #0 + 80068d2: 861a strh r2, [r3, #48] ; 0x30 /* Reduce congestion window and ssthresh. */ eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd); - 80068d8: 6afb ldr r3, [r7, #44] ; 0x2c - 80068da: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 80068de: 6afb ldr r3, [r7, #44] ; 0x2c - 80068e0: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 80068e4: 4293 cmp r3, r2 - 80068e6: bf28 it cs - 80068e8: 4613 movcs r3, r2 - 80068ea: 827b strh r3, [r7, #18] + 80068d4: 6afb ldr r3, [r7, #44] ; 0x2c + 80068d6: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 80068da: 6afb ldr r3, [r7, #44] ; 0x2c + 80068dc: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 80068e0: 4293 cmp r3, r2 + 80068e2: bf28 it cs + 80068e4: 4613 movcs r3, r2 + 80068e6: 827b strh r3, [r7, #18] pcb->ssthresh = eff_wnd >> 1; - 80068ec: 8a7b ldrh r3, [r7, #18] - 80068ee: 085b lsrs r3, r3, #1 - 80068f0: b29a uxth r2, r3 - 80068f2: 6afb ldr r3, [r7, #44] ; 0x2c - 80068f4: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 80068e8: 8a7b ldrh r3, [r7, #18] + 80068ea: 085b lsrs r3, r3, #1 + 80068ec: b29a uxth r2, r3 + 80068ee: 6afb ldr r3, [r7, #44] ; 0x2c + 80068f0: f8a3 204a strh.w r2, [r3, #74] ; 0x4a if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) { - 80068f8: 6afb ldr r3, [r7, #44] ; 0x2c - 80068fa: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 80068fe: 6afb ldr r3, [r7, #44] ; 0x2c - 8006900: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8006902: 005b lsls r3, r3, #1 - 8006904: b29b uxth r3, r3 - 8006906: 429a cmp r2, r3 - 8006908: d206 bcs.n 8006918 + 80068f4: 6afb ldr r3, [r7, #44] ; 0x2c + 80068f6: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a + 80068fa: 6afb ldr r3, [r7, #44] ; 0x2c + 80068fc: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80068fe: 005b lsls r3, r3, #1 + 8006900: b29b uxth r3, r3 + 8006902: 429a cmp r2, r3 + 8006904: d206 bcs.n 8006914 pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1); - 800690a: 6afb ldr r3, [r7, #44] ; 0x2c - 800690c: 8e5b ldrh r3, [r3, #50] ; 0x32 - 800690e: 005b lsls r3, r3, #1 - 8006910: b29a uxth r2, r3 - 8006912: 6afb ldr r3, [r7, #44] ; 0x2c - 8006914: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 8006906: 6afb ldr r3, [r7, #44] ; 0x2c + 8006908: 8e5b ldrh r3, [r3, #50] ; 0x32 + 800690a: 005b lsls r3, r3, #1 + 800690c: b29a uxth r2, r3 + 800690e: 6afb ldr r3, [r7, #44] ; 0x2c + 8006910: f8a3 204a strh.w r2, [r3, #74] ; 0x4a } pcb->cwnd = pcb->mss; + 8006914: 6afb ldr r3, [r7, #44] ; 0x2c + 8006916: 8e5a ldrh r2, [r3, #50] ; 0x32 8006918: 6afb ldr r3, [r7, #44] ; 0x2c - 800691a: 8e5a ldrh r2, [r3, #50] ; 0x32 - 800691c: 6afb ldr r3, [r7, #44] ; 0x2c - 800691e: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 800691a: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: cwnd %"TCPWNDSIZE_F " ssthresh %"TCPWNDSIZE_F"\n", pcb->cwnd, pcb->ssthresh)); pcb->bytes_acked = 0; - 8006922: 6afb ldr r3, [r7, #44] ; 0x2c - 8006924: 2200 movs r2, #0 - 8006926: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + 800691e: 6afb ldr r3, [r7, #44] ; 0x2c + 8006920: 2200 movs r2, #0 + 8006922: f8a3 206a strh.w r2, [r3, #106] ; 0x6a /* The following needs to be called AFTER cwnd is set to one mss - STJ */ tcp_rexmit_rto_commit(pcb); - 800692a: 6af8 ldr r0, [r7, #44] ; 0x2c - 800692c: f004 f81c bl 800a968 + 8006926: 6af8 ldr r0, [r7, #44] ; 0x2c + 8006928: f004 f81c bl 800a964 } } } } /* Check if this PCB has stayed too long in FIN-WAIT-2 */ if (pcb->state == FIN_WAIT_2) { - 8006930: 6afb ldr r3, [r7, #44] ; 0x2c - 8006932: 7d1b ldrb r3, [r3, #20] - 8006934: 2b06 cmp r3, #6 - 8006936: d111 bne.n 800695c + 800692c: 6afb ldr r3, [r7, #44] ; 0x2c + 800692e: 7d1b ldrb r3, [r3, #20] + 8006930: 2b06 cmp r3, #6 + 8006932: d111 bne.n 8006958 /* If this PCB is in FIN_WAIT_2 because of SHUT_WR don't let it time out. */ if (pcb->flags & TF_RXCLOSED) { - 8006938: 6afb ldr r3, [r7, #44] ; 0x2c - 800693a: 8b5b ldrh r3, [r3, #26] - 800693c: f003 0310 and.w r3, r3, #16 - 8006940: 2b00 cmp r3, #0 - 8006942: d00b beq.n 800695c + 8006934: 6afb ldr r3, [r7, #44] ; 0x2c + 8006936: 8b5b ldrh r3, [r3, #26] + 8006938: f003 0310 and.w r3, r3, #16 + 800693c: 2b00 cmp r3, #0 + 800693e: d00b beq.n 8006958 /* PCB was fully closed (either through close() or SHUT_RDWR): normal FIN-WAIT timeout handling. */ if ((u32_t)(tcp_ticks - pcb->tmr) > - 8006944: 4b9d ldr r3, [pc, #628] ; (8006bbc ) - 8006946: 681a ldr r2, [r3, #0] - 8006948: 6afb ldr r3, [r7, #44] ; 0x2c - 800694a: 6a1b ldr r3, [r3, #32] - 800694c: 1ad3 subs r3, r2, r3 - 800694e: 2b28 cmp r3, #40 ; 0x28 - 8006950: d904 bls.n 800695c + 8006940: 4b9d ldr r3, [pc, #628] ; (8006bb8 ) + 8006942: 681a ldr r2, [r3, #0] + 8006944: 6afb ldr r3, [r7, #44] ; 0x2c + 8006946: 6a1b ldr r3, [r3, #32] + 8006948: 1ad3 subs r3, r2, r3 + 800694a: 2b28 cmp r3, #40 ; 0x28 + 800694c: d904 bls.n 8006958 TCP_FIN_WAIT_TIMEOUT / TCP_SLOW_INTERVAL) { ++pcb_remove; - 8006952: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8006956: 3301 adds r3, #1 - 8006958: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800694e: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8006952: 3301 adds r3, #1 + 8006954: f887 3027 strb.w r3, [r7, #39] ; 0x27 } } } /* Check if KEEPALIVE should be sent */ if (ip_get_option(pcb, SOF_KEEPALIVE) && - 800695c: 6afb ldr r3, [r7, #44] ; 0x2c - 800695e: 7a5b ldrb r3, [r3, #9] - 8006960: f003 0308 and.w r3, r3, #8 - 8006964: 2b00 cmp r3, #0 - 8006966: d04c beq.n 8006a02 + 8006958: 6afb ldr r3, [r7, #44] ; 0x2c + 800695a: 7a5b ldrb r3, [r3, #9] + 800695c: f003 0308 and.w r3, r3, #8 + 8006960: 2b00 cmp r3, #0 + 8006962: d04c beq.n 80069fe ((pcb->state == ESTABLISHED) || - 8006968: 6afb ldr r3, [r7, #44] ; 0x2c - 800696a: 7d1b ldrb r3, [r3, #20] + 8006964: 6afb ldr r3, [r7, #44] ; 0x2c + 8006966: 7d1b ldrb r3, [r3, #20] if (ip_get_option(pcb, SOF_KEEPALIVE) && - 800696c: 2b04 cmp r3, #4 - 800696e: d003 beq.n 8006978 + 8006968: 2b04 cmp r3, #4 + 800696a: d003 beq.n 8006974 (pcb->state == CLOSE_WAIT))) { - 8006970: 6afb ldr r3, [r7, #44] ; 0x2c - 8006972: 7d1b ldrb r3, [r3, #20] + 800696c: 6afb ldr r3, [r7, #44] ; 0x2c + 800696e: 7d1b ldrb r3, [r3, #20] ((pcb->state == ESTABLISHED) || - 8006974: 2b07 cmp r3, #7 - 8006976: d144 bne.n 8006a02 + 8006970: 2b07 cmp r3, #7 + 8006972: d144 bne.n 80069fe if ((u32_t)(tcp_ticks - pcb->tmr) > - 8006978: 4b90 ldr r3, [pc, #576] ; (8006bbc ) - 800697a: 681a ldr r2, [r3, #0] - 800697c: 6afb ldr r3, [r7, #44] ; 0x2c - 800697e: 6a1b ldr r3, [r3, #32] - 8006980: 1ad2 subs r2, r2, r3 + 8006974: 4b90 ldr r3, [pc, #576] ; (8006bb8 ) + 8006976: 681a ldr r2, [r3, #0] + 8006978: 6afb ldr r3, [r7, #44] ; 0x2c + 800697a: 6a1b ldr r3, [r3, #32] + 800697c: 1ad2 subs r2, r2, r3 (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) { - 8006982: 6afb ldr r3, [r7, #44] ; 0x2c - 8006984: f8d3 3094 ldr.w r3, [r3, #148] ; 0x94 - 8006988: f503 2324 add.w r3, r3, #671744 ; 0xa4000 - 800698c: f603 43b8 addw r3, r3, #3256 ; 0xcb8 - 8006990: 498b ldr r1, [pc, #556] ; (8006bc0 ) - 8006992: fba1 1303 umull r1, r3, r1, r3 - 8006996: 095b lsrs r3, r3, #5 + 800697e: 6afb ldr r3, [r7, #44] ; 0x2c + 8006980: f8d3 3094 ldr.w r3, [r3, #148] ; 0x94 + 8006984: f503 2324 add.w r3, r3, #671744 ; 0xa4000 + 8006988: f603 43b8 addw r3, r3, #3256 ; 0xcb8 + 800698c: 498b ldr r1, [pc, #556] ; (8006bbc ) + 800698e: fba1 1303 umull r1, r3, r1, r3 + 8006992: 095b lsrs r3, r3, #5 if ((u32_t)(tcp_ticks - pcb->tmr) > - 8006998: 429a cmp r2, r3 - 800699a: d90a bls.n 80069b2 + 8006994: 429a cmp r2, r3 + 8006996: d90a bls.n 80069ae LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: KEEPALIVE timeout. Aborting connection to ")); ip_addr_debug_print_val(TCP_DEBUG, pcb->remote_ip); LWIP_DEBUGF(TCP_DEBUG, ("\n")); ++pcb_remove; - 800699c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 80069a0: 3301 adds r3, #1 - 80069a2: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8006998: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800699c: 3301 adds r3, #1 + 800699e: f887 3027 strb.w r3, [r7, #39] ; 0x27 ++pcb_reset; - 80069a6: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 80069aa: 3301 adds r3, #1 - 80069ac: f887 3026 strb.w r3, [r7, #38] ; 0x26 - 80069b0: e027 b.n 8006a02 + 80069a2: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 80069a6: 3301 adds r3, #1 + 80069a8: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 80069ac: e027 b.n 80069fe } else if ((u32_t)(tcp_ticks - pcb->tmr) > - 80069b2: 4b82 ldr r3, [pc, #520] ; (8006bbc ) - 80069b4: 681a ldr r2, [r3, #0] - 80069b6: 6afb ldr r3, [r7, #44] ; 0x2c - 80069b8: 6a1b ldr r3, [r3, #32] - 80069ba: 1ad2 subs r2, r2, r3 + 80069ae: 4b82 ldr r3, [pc, #520] ; (8006bb8 ) + 80069b0: 681a ldr r2, [r3, #0] + 80069b2: 6afb ldr r3, [r7, #44] ; 0x2c + 80069b4: 6a1b ldr r3, [r3, #32] + 80069b6: 1ad2 subs r2, r2, r3 (pcb->keep_idle + pcb->keep_cnt_sent * TCP_KEEP_INTVL(pcb)) - 80069bc: 6afb ldr r3, [r7, #44] ; 0x2c - 80069be: f8d3 1094 ldr.w r1, [r3, #148] ; 0x94 - 80069c2: 6afb ldr r3, [r7, #44] ; 0x2c - 80069c4: f893 309b ldrb.w r3, [r3, #155] ; 0x9b - 80069c8: 4618 mov r0, r3 - 80069ca: 4b7e ldr r3, [pc, #504] ; (8006bc4 ) - 80069cc: fb00 f303 mul.w r3, r0, r3 - 80069d0: 440b add r3, r1 + 80069b8: 6afb ldr r3, [r7, #44] ; 0x2c + 80069ba: f8d3 1094 ldr.w r1, [r3, #148] ; 0x94 + 80069be: 6afb ldr r3, [r7, #44] ; 0x2c + 80069c0: f893 309b ldrb.w r3, [r3, #155] ; 0x9b + 80069c4: 4618 mov r0, r3 + 80069c6: 4b7e ldr r3, [pc, #504] ; (8006bc0 ) + 80069c8: fb00 f303 mul.w r3, r0, r3 + 80069cc: 440b add r3, r1 / TCP_SLOW_INTERVAL) { - 80069d2: 497b ldr r1, [pc, #492] ; (8006bc0 ) - 80069d4: fba1 1303 umull r1, r3, r1, r3 - 80069d8: 095b lsrs r3, r3, #5 + 80069ce: 497b ldr r1, [pc, #492] ; (8006bbc ) + 80069d0: fba1 1303 umull r1, r3, r1, r3 + 80069d4: 095b lsrs r3, r3, #5 } else if ((u32_t)(tcp_ticks - pcb->tmr) > - 80069da: 429a cmp r2, r3 - 80069dc: d911 bls.n 8006a02 + 80069d6: 429a cmp r2, r3 + 80069d8: d911 bls.n 80069fe err = tcp_keepalive(pcb); - 80069de: 6af8 ldr r0, [r7, #44] ; 0x2c - 80069e0: f004 fac8 bl 800af74 - 80069e4: 4603 mov r3, r0 - 80069e6: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 80069da: 6af8 ldr r0, [r7, #44] ; 0x2c + 80069dc: f004 fac8 bl 800af70 + 80069e0: 4603 mov r3, r0 + 80069e2: f887 3025 strb.w r3, [r7, #37] ; 0x25 if (err == ERR_OK) { - 80069ea: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 - 80069ee: 2b00 cmp r3, #0 - 80069f0: d107 bne.n 8006a02 + 80069e6: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 + 80069ea: 2b00 cmp r3, #0 + 80069ec: d107 bne.n 80069fe pcb->keep_cnt_sent++; - 80069f2: 6afb ldr r3, [r7, #44] ; 0x2c - 80069f4: f893 309b ldrb.w r3, [r3, #155] ; 0x9b - 80069f8: 3301 adds r3, #1 - 80069fa: b2da uxtb r2, r3 - 80069fc: 6afb ldr r3, [r7, #44] ; 0x2c - 80069fe: f883 209b strb.w r2, [r3, #155] ; 0x9b + 80069ee: 6afb ldr r3, [r7, #44] ; 0x2c + 80069f0: f893 309b ldrb.w r3, [r3, #155] ; 0x9b + 80069f4: 3301 adds r3, #1 + 80069f6: b2da uxtb r2, r3 + 80069f8: 6afb ldr r3, [r7, #44] ; 0x2c + 80069fa: f883 209b strb.w r2, [r3, #155] ; 0x9b /* If this PCB has queued out of sequence data, but has been inactive for too long, will drop the data (it will eventually be retransmitted). */ #if TCP_QUEUE_OOSEQ if (pcb->ooseq != NULL && - 8006a02: 6afb ldr r3, [r7, #44] ; 0x2c - 8006a04: 6f5b ldr r3, [r3, #116] ; 0x74 - 8006a06: 2b00 cmp r3, #0 - 8006a08: d011 beq.n 8006a2e + 80069fe: 6afb ldr r3, [r7, #44] ; 0x2c + 8006a00: 6f5b ldr r3, [r3, #116] ; 0x74 + 8006a02: 2b00 cmp r3, #0 + 8006a04: d011 beq.n 8006a2a (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) { - 8006a0a: 4b6c ldr r3, [pc, #432] ; (8006bbc ) - 8006a0c: 681a ldr r2, [r3, #0] - 8006a0e: 6afb ldr r3, [r7, #44] ; 0x2c - 8006a10: 6a1b ldr r3, [r3, #32] - 8006a12: 1ad2 subs r2, r2, r3 - 8006a14: 6afb ldr r3, [r7, #44] ; 0x2c - 8006a16: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 - 8006a1a: 4619 mov r1, r3 - 8006a1c: 460b mov r3, r1 + 8006a06: 4b6c ldr r3, [pc, #432] ; (8006bb8 ) + 8006a08: 681a ldr r2, [r3, #0] + 8006a0a: 6afb ldr r3, [r7, #44] ; 0x2c + 8006a0c: 6a1b ldr r3, [r3, #32] + 8006a0e: 1ad2 subs r2, r2, r3 + 8006a10: 6afb ldr r3, [r7, #44] ; 0x2c + 8006a12: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 + 8006a16: 4619 mov r1, r3 + 8006a18: 460b mov r3, r1 + 8006a1a: 005b lsls r3, r3, #1 + 8006a1c: 440b add r3, r1 8006a1e: 005b lsls r3, r3, #1 - 8006a20: 440b add r3, r1 - 8006a22: 005b lsls r3, r3, #1 if (pcb->ooseq != NULL && - 8006a24: 429a cmp r2, r3 - 8006a26: d302 bcc.n 8006a2e + 8006a20: 429a cmp r2, r3 + 8006a22: d302 bcc.n 8006a2a LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: dropping OOSEQ queued data\n")); tcp_free_ooseq(pcb); - 8006a28: 6af8 ldr r0, [r7, #44] ; 0x2c - 8006a2a: f000 fddb bl 80075e4 + 8006a24: 6af8 ldr r0, [r7, #44] ; 0x2c + 8006a26: f000 fddb bl 80075e0 } #endif /* TCP_QUEUE_OOSEQ */ /* Check if this PCB has stayed too long in SYN-RCVD */ if (pcb->state == SYN_RCVD) { - 8006a2e: 6afb ldr r3, [r7, #44] ; 0x2c - 8006a30: 7d1b ldrb r3, [r3, #20] - 8006a32: 2b03 cmp r3, #3 - 8006a34: d10b bne.n 8006a4e + 8006a2a: 6afb ldr r3, [r7, #44] ; 0x2c + 8006a2c: 7d1b ldrb r3, [r3, #20] + 8006a2e: 2b03 cmp r3, #3 + 8006a30: d10b bne.n 8006a4a if ((u32_t)(tcp_ticks - pcb->tmr) > - 8006a36: 4b61 ldr r3, [pc, #388] ; (8006bbc ) - 8006a38: 681a ldr r2, [r3, #0] - 8006a3a: 6afb ldr r3, [r7, #44] ; 0x2c - 8006a3c: 6a1b ldr r3, [r3, #32] - 8006a3e: 1ad3 subs r3, r2, r3 - 8006a40: 2b28 cmp r3, #40 ; 0x28 - 8006a42: d904 bls.n 8006a4e + 8006a32: 4b61 ldr r3, [pc, #388] ; (8006bb8 ) + 8006a34: 681a ldr r2, [r3, #0] + 8006a36: 6afb ldr r3, [r7, #44] ; 0x2c + 8006a38: 6a1b ldr r3, [r3, #32] + 8006a3a: 1ad3 subs r3, r2, r3 + 8006a3c: 2b28 cmp r3, #40 ; 0x28 + 8006a3e: d904 bls.n 8006a4a TCP_SYN_RCVD_TIMEOUT / TCP_SLOW_INTERVAL) { ++pcb_remove; - 8006a44: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8006a48: 3301 adds r3, #1 - 8006a4a: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8006a40: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8006a44: 3301 adds r3, #1 + 8006a46: f887 3027 strb.w r3, [r7, #39] ; 0x27 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: removing pcb stuck in SYN-RCVD\n")); } } /* Check if this PCB has stayed too long in LAST-ACK */ if (pcb->state == LAST_ACK) { - 8006a4e: 6afb ldr r3, [r7, #44] ; 0x2c - 8006a50: 7d1b ldrb r3, [r3, #20] - 8006a52: 2b09 cmp r3, #9 - 8006a54: d10b bne.n 8006a6e + 8006a4a: 6afb ldr r3, [r7, #44] ; 0x2c + 8006a4c: 7d1b ldrb r3, [r3, #20] + 8006a4e: 2b09 cmp r3, #9 + 8006a50: d10b bne.n 8006a6a if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) { - 8006a56: 4b59 ldr r3, [pc, #356] ; (8006bbc ) - 8006a58: 681a ldr r2, [r3, #0] - 8006a5a: 6afb ldr r3, [r7, #44] ; 0x2c - 8006a5c: 6a1b ldr r3, [r3, #32] - 8006a5e: 1ad3 subs r3, r2, r3 - 8006a60: 2bf0 cmp r3, #240 ; 0xf0 - 8006a62: d904 bls.n 8006a6e + 8006a52: 4b59 ldr r3, [pc, #356] ; (8006bb8 ) + 8006a54: 681a ldr r2, [r3, #0] + 8006a56: 6afb ldr r3, [r7, #44] ; 0x2c + 8006a58: 6a1b ldr r3, [r3, #32] + 8006a5a: 1ad3 subs r3, r2, r3 + 8006a5c: 2bf0 cmp r3, #240 ; 0xf0 + 8006a5e: d904 bls.n 8006a6a ++pcb_remove; - 8006a64: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8006a68: 3301 adds r3, #1 - 8006a6a: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8006a60: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8006a64: 3301 adds r3, #1 + 8006a66: f887 3027 strb.w r3, [r7, #39] ; 0x27 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: removing pcb stuck in LAST-ACK\n")); } } /* If the PCB should be removed, do it. */ if (pcb_remove) { - 8006a6e: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8006a72: 2b00 cmp r3, #0 - 8006a74: d060 beq.n 8006b38 + 8006a6a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8006a6e: 2b00 cmp r3, #0 + 8006a70: d060 beq.n 8006b34 struct tcp_pcb *pcb2; #if LWIP_CALLBACK_API tcp_err_fn err_fn = pcb->errf; - 8006a76: 6afb ldr r3, [r7, #44] ; 0x2c - 8006a78: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8006a7c: 60fb str r3, [r7, #12] + 8006a72: 6afb ldr r3, [r7, #44] ; 0x2c + 8006a74: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8006a78: 60fb str r3, [r7, #12] #endif /* LWIP_CALLBACK_API */ void *err_arg; enum tcp_state last_state; tcp_pcb_purge(pcb); - 8006a7e: 6af8 ldr r0, [r7, #44] ; 0x2c - 8006a80: f000 fbfc bl 800727c + 8006a7a: 6af8 ldr r0, [r7, #44] ; 0x2c + 8006a7c: f000 fbfc bl 8007278 /* Remove PCB from tcp_active_pcbs list. */ if (prev != NULL) { - 8006a84: 6abb ldr r3, [r7, #40] ; 0x28 - 8006a86: 2b00 cmp r3, #0 - 8006a88: d010 beq.n 8006aac + 8006a80: 6abb ldr r3, [r7, #40] ; 0x28 + 8006a82: 2b00 cmp r3, #0 + 8006a84: d010 beq.n 8006aa8 LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs); - 8006a8a: 4b4f ldr r3, [pc, #316] ; (8006bc8 ) - 8006a8c: 681b ldr r3, [r3, #0] - 8006a8e: 6afa ldr r2, [r7, #44] ; 0x2c - 8006a90: 429a cmp r2, r3 - 8006a92: d106 bne.n 8006aa2 - 8006a94: 4b4d ldr r3, [pc, #308] ; (8006bcc ) - 8006a96: f240 526d movw r2, #1389 ; 0x56d - 8006a9a: 494d ldr r1, [pc, #308] ; (8006bd0 ) - 8006a9c: 484d ldr r0, [pc, #308] ; (8006bd4 ) - 8006a9e: f009 fc99 bl 80103d4 + 8006a86: 4b4f ldr r3, [pc, #316] ; (8006bc4 ) + 8006a88: 681b ldr r3, [r3, #0] + 8006a8a: 6afa ldr r2, [r7, #44] ; 0x2c + 8006a8c: 429a cmp r2, r3 + 8006a8e: d106 bne.n 8006a9e + 8006a90: 4b4d ldr r3, [pc, #308] ; (8006bc8 ) + 8006a92: f240 526d movw r2, #1389 ; 0x56d + 8006a96: 494d ldr r1, [pc, #308] ; (8006bcc ) + 8006a98: 484d ldr r0, [pc, #308] ; (8006bd0 ) + 8006a9a: f009 fc99 bl 80103d0 prev->next = pcb->next; - 8006aa2: 6afb ldr r3, [r7, #44] ; 0x2c - 8006aa4: 68da ldr r2, [r3, #12] - 8006aa6: 6abb ldr r3, [r7, #40] ; 0x28 - 8006aa8: 60da str r2, [r3, #12] - 8006aaa: e00f b.n 8006acc + 8006a9e: 6afb ldr r3, [r7, #44] ; 0x2c + 8006aa0: 68da ldr r2, [r3, #12] + 8006aa2: 6abb ldr r3, [r7, #40] ; 0x28 + 8006aa4: 60da str r2, [r3, #12] + 8006aa6: e00f b.n 8006ac8 } else { /* This PCB was the first. */ LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb); - 8006aac: 4b46 ldr r3, [pc, #280] ; (8006bc8 ) - 8006aae: 681b ldr r3, [r3, #0] - 8006ab0: 6afa ldr r2, [r7, #44] ; 0x2c - 8006ab2: 429a cmp r2, r3 - 8006ab4: d006 beq.n 8006ac4 - 8006ab6: 4b45 ldr r3, [pc, #276] ; (8006bcc ) - 8006ab8: f240 5271 movw r2, #1393 ; 0x571 - 8006abc: 4946 ldr r1, [pc, #280] ; (8006bd8 ) - 8006abe: 4845 ldr r0, [pc, #276] ; (8006bd4 ) - 8006ac0: f009 fc88 bl 80103d4 + 8006aa8: 4b46 ldr r3, [pc, #280] ; (8006bc4 ) + 8006aaa: 681b ldr r3, [r3, #0] + 8006aac: 6afa ldr r2, [r7, #44] ; 0x2c + 8006aae: 429a cmp r2, r3 + 8006ab0: d006 beq.n 8006ac0 + 8006ab2: 4b45 ldr r3, [pc, #276] ; (8006bc8 ) + 8006ab4: f240 5271 movw r2, #1393 ; 0x571 + 8006ab8: 4946 ldr r1, [pc, #280] ; (8006bd4 ) + 8006aba: 4845 ldr r0, [pc, #276] ; (8006bd0 ) + 8006abc: f009 fc88 bl 80103d0 tcp_active_pcbs = pcb->next; - 8006ac4: 6afb ldr r3, [r7, #44] ; 0x2c - 8006ac6: 68db ldr r3, [r3, #12] - 8006ac8: 4a3f ldr r2, [pc, #252] ; (8006bc8 ) - 8006aca: 6013 str r3, [r2, #0] + 8006ac0: 6afb ldr r3, [r7, #44] ; 0x2c + 8006ac2: 68db ldr r3, [r3, #12] + 8006ac4: 4a3f ldr r2, [pc, #252] ; (8006bc4 ) + 8006ac6: 6013 str r3, [r2, #0] } if (pcb_reset) { - 8006acc: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8006ad0: 2b00 cmp r3, #0 - 8006ad2: d013 beq.n 8006afc + 8006ac8: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 8006acc: 2b00 cmp r3, #0 + 8006ace: d013 beq.n 8006af8 tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, + 8006ad0: 6afb ldr r3, [r7, #44] ; 0x2c + 8006ad2: 6d18 ldr r0, [r3, #80] ; 0x50 8006ad4: 6afb ldr r3, [r7, #44] ; 0x2c - 8006ad6: 6d18 ldr r0, [r3, #80] ; 0x50 - 8006ad8: 6afb ldr r3, [r7, #44] ; 0x2c - 8006ada: 6a5c ldr r4, [r3, #36] ; 0x24 - 8006adc: 6afd ldr r5, [r7, #44] ; 0x2c - 8006ade: 6afb ldr r3, [r7, #44] ; 0x2c - 8006ae0: 3304 adds r3, #4 - 8006ae2: 6afa ldr r2, [r7, #44] ; 0x2c - 8006ae4: 8ad2 ldrh r2, [r2, #22] - 8006ae6: 6af9 ldr r1, [r7, #44] ; 0x2c - 8006ae8: 8b09 ldrh r1, [r1, #24] - 8006aea: 9102 str r1, [sp, #8] - 8006aec: 9201 str r2, [sp, #4] - 8006aee: 9300 str r3, [sp, #0] - 8006af0: 462b mov r3, r5 - 8006af2: 4622 mov r2, r4 - 8006af4: 4601 mov r1, r0 - 8006af6: 6af8 ldr r0, [r7, #44] ; 0x2c - 8006af8: f004 f988 bl 800ae0c + 8006ad6: 6a5c ldr r4, [r3, #36] ; 0x24 + 8006ad8: 6afd ldr r5, [r7, #44] ; 0x2c + 8006ada: 6afb ldr r3, [r7, #44] ; 0x2c + 8006adc: 3304 adds r3, #4 + 8006ade: 6afa ldr r2, [r7, #44] ; 0x2c + 8006ae0: 8ad2 ldrh r2, [r2, #22] + 8006ae2: 6af9 ldr r1, [r7, #44] ; 0x2c + 8006ae4: 8b09 ldrh r1, [r1, #24] + 8006ae6: 9102 str r1, [sp, #8] + 8006ae8: 9201 str r2, [sp, #4] + 8006aea: 9300 str r3, [sp, #0] + 8006aec: 462b mov r3, r5 + 8006aee: 4622 mov r2, r4 + 8006af0: 4601 mov r1, r0 + 8006af2: 6af8 ldr r0, [r7, #44] ; 0x2c + 8006af4: f004 f988 bl 800ae08 pcb->local_port, pcb->remote_port); } err_arg = pcb->callback_arg; - 8006afc: 6afb ldr r3, [r7, #44] ; 0x2c - 8006afe: 691b ldr r3, [r3, #16] - 8006b00: 60bb str r3, [r7, #8] + 8006af8: 6afb ldr r3, [r7, #44] ; 0x2c + 8006afa: 691b ldr r3, [r3, #16] + 8006afc: 60bb str r3, [r7, #8] last_state = pcb->state; - 8006b02: 6afb ldr r3, [r7, #44] ; 0x2c - 8006b04: 7d1b ldrb r3, [r3, #20] - 8006b06: 71fb strb r3, [r7, #7] + 8006afe: 6afb ldr r3, [r7, #44] ; 0x2c + 8006b00: 7d1b ldrb r3, [r3, #20] + 8006b02: 71fb strb r3, [r7, #7] pcb2 = pcb; - 8006b08: 6afb ldr r3, [r7, #44] ; 0x2c - 8006b0a: 603b str r3, [r7, #0] + 8006b04: 6afb ldr r3, [r7, #44] ; 0x2c + 8006b06: 603b str r3, [r7, #0] pcb = pcb->next; - 8006b0c: 6afb ldr r3, [r7, #44] ; 0x2c - 8006b0e: 68db ldr r3, [r3, #12] - 8006b10: 62fb str r3, [r7, #44] ; 0x2c + 8006b08: 6afb ldr r3, [r7, #44] ; 0x2c + 8006b0a: 68db ldr r3, [r3, #12] + 8006b0c: 62fb str r3, [r7, #44] ; 0x2c tcp_free(pcb2); - 8006b12: 6838 ldr r0, [r7, #0] - 8006b14: f7ff f9f2 bl 8005efc + 8006b0e: 6838 ldr r0, [r7, #0] + 8006b10: f7ff f9f2 bl 8005ef8 tcp_active_pcbs_changed = 0; - 8006b18: 4b30 ldr r3, [pc, #192] ; (8006bdc ) - 8006b1a: 2200 movs r2, #0 - 8006b1c: 701a strb r2, [r3, #0] + 8006b14: 4b30 ldr r3, [pc, #192] ; (8006bd8 ) + 8006b16: 2200 movs r2, #0 + 8006b18: 701a strb r2, [r3, #0] TCP_EVENT_ERR(last_state, err_fn, err_arg, ERR_ABRT); - 8006b1e: 68fb ldr r3, [r7, #12] - 8006b20: 2b00 cmp r3, #0 - 8006b22: d004 beq.n 8006b2e - 8006b24: 68fb ldr r3, [r7, #12] - 8006b26: f06f 010c mvn.w r1, #12 - 8006b2a: 68b8 ldr r0, [r7, #8] - 8006b2c: 4798 blx r3 + 8006b1a: 68fb ldr r3, [r7, #12] + 8006b1c: 2b00 cmp r3, #0 + 8006b1e: d004 beq.n 8006b2a + 8006b20: 68fb ldr r3, [r7, #12] + 8006b22: f06f 010c mvn.w r1, #12 + 8006b26: 68b8 ldr r0, [r7, #8] + 8006b28: 4798 blx r3 if (tcp_active_pcbs_changed) { - 8006b2e: 4b2b ldr r3, [pc, #172] ; (8006bdc ) - 8006b30: 781b ldrb r3, [r3, #0] - 8006b32: 2b00 cmp r3, #0 - 8006b34: d037 beq.n 8006ba6 + 8006b2a: 4b2b ldr r3, [pc, #172] ; (8006bd8 ) + 8006b2c: 781b ldrb r3, [r3, #0] + 8006b2e: 2b00 cmp r3, #0 + 8006b30: d037 beq.n 8006ba2 goto tcp_slowtmr_start; - 8006b36: e590 b.n 800665a + 8006b32: e590 b.n 8006656 } } else { /* get the 'next' element now and work with 'prev' below (in case of abort) */ prev = pcb; - 8006b38: 6afb ldr r3, [r7, #44] ; 0x2c - 8006b3a: 62bb str r3, [r7, #40] ; 0x28 + 8006b34: 6afb ldr r3, [r7, #44] ; 0x2c + 8006b36: 62bb str r3, [r7, #40] ; 0x28 pcb = pcb->next; - 8006b3c: 6afb ldr r3, [r7, #44] ; 0x2c - 8006b3e: 68db ldr r3, [r3, #12] - 8006b40: 62fb str r3, [r7, #44] ; 0x2c + 8006b38: 6afb ldr r3, [r7, #44] ; 0x2c + 8006b3a: 68db ldr r3, [r3, #12] + 8006b3c: 62fb str r3, [r7, #44] ; 0x2c /* We check if we should poll the connection. */ ++prev->polltmr; - 8006b42: 6abb ldr r3, [r7, #40] ; 0x28 - 8006b44: 7f1b ldrb r3, [r3, #28] - 8006b46: 3301 adds r3, #1 - 8006b48: b2da uxtb r2, r3 - 8006b4a: 6abb ldr r3, [r7, #40] ; 0x28 - 8006b4c: 771a strb r2, [r3, #28] + 8006b3e: 6abb ldr r3, [r7, #40] ; 0x28 + 8006b40: 7f1b ldrb r3, [r3, #28] + 8006b42: 3301 adds r3, #1 + 8006b44: b2da uxtb r2, r3 + 8006b46: 6abb ldr r3, [r7, #40] ; 0x28 + 8006b48: 771a strb r2, [r3, #28] if (prev->polltmr >= prev->pollinterval) { + 8006b4a: 6abb ldr r3, [r7, #40] ; 0x28 + 8006b4c: 7f1a ldrb r2, [r3, #28] 8006b4e: 6abb ldr r3, [r7, #40] ; 0x28 - 8006b50: 7f1a ldrb r2, [r3, #28] - 8006b52: 6abb ldr r3, [r7, #40] ; 0x28 - 8006b54: 7f5b ldrb r3, [r3, #29] - 8006b56: 429a cmp r2, r3 - 8006b58: d325 bcc.n 8006ba6 + 8006b50: 7f5b ldrb r3, [r3, #29] + 8006b52: 429a cmp r2, r3 + 8006b54: d325 bcc.n 8006ba2 prev->polltmr = 0; - 8006b5a: 6abb ldr r3, [r7, #40] ; 0x28 - 8006b5c: 2200 movs r2, #0 - 8006b5e: 771a strb r2, [r3, #28] + 8006b56: 6abb ldr r3, [r7, #40] ; 0x28 + 8006b58: 2200 movs r2, #0 + 8006b5a: 771a strb r2, [r3, #28] LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: polling application\n")); tcp_active_pcbs_changed = 0; - 8006b60: 4b1e ldr r3, [pc, #120] ; (8006bdc ) - 8006b62: 2200 movs r2, #0 - 8006b64: 701a strb r2, [r3, #0] + 8006b5c: 4b1e ldr r3, [pc, #120] ; (8006bd8 ) + 8006b5e: 2200 movs r2, #0 + 8006b60: 701a strb r2, [r3, #0] TCP_EVENT_POLL(prev, err); - 8006b66: 6abb ldr r3, [r7, #40] ; 0x28 - 8006b68: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8006b6c: 2b00 cmp r3, #0 - 8006b6e: d00b beq.n 8006b88 - 8006b70: 6abb ldr r3, [r7, #40] ; 0x28 - 8006b72: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8006b76: 6aba ldr r2, [r7, #40] ; 0x28 - 8006b78: 6912 ldr r2, [r2, #16] - 8006b7a: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8006b7c: 4610 mov r0, r2 - 8006b7e: 4798 blx r3 - 8006b80: 4603 mov r3, r0 - 8006b82: f887 3025 strb.w r3, [r7, #37] ; 0x25 - 8006b86: e002 b.n 8006b8e - 8006b88: 2300 movs r3, #0 - 8006b8a: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 8006b62: 6abb ldr r3, [r7, #40] ; 0x28 + 8006b64: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 8006b68: 2b00 cmp r3, #0 + 8006b6a: d00b beq.n 8006b84 + 8006b6c: 6abb ldr r3, [r7, #40] ; 0x28 + 8006b6e: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 8006b72: 6aba ldr r2, [r7, #40] ; 0x28 + 8006b74: 6912 ldr r2, [r2, #16] + 8006b76: 6ab9 ldr r1, [r7, #40] ; 0x28 + 8006b78: 4610 mov r0, r2 + 8006b7a: 4798 blx r3 + 8006b7c: 4603 mov r3, r0 + 8006b7e: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 8006b82: e002 b.n 8006b8a + 8006b84: 2300 movs r3, #0 + 8006b86: f887 3025 strb.w r3, [r7, #37] ; 0x25 if (tcp_active_pcbs_changed) { - 8006b8e: 4b13 ldr r3, [pc, #76] ; (8006bdc ) - 8006b90: 781b ldrb r3, [r3, #0] - 8006b92: 2b00 cmp r3, #0 - 8006b94: d000 beq.n 8006b98 + 8006b8a: 4b13 ldr r3, [pc, #76] ; (8006bd8 ) + 8006b8c: 781b ldrb r3, [r3, #0] + 8006b8e: 2b00 cmp r3, #0 + 8006b90: d000 beq.n 8006b94 goto tcp_slowtmr_start; - 8006b96: e560 b.n 800665a + 8006b92: e560 b.n 8006656 } /* if err == ERR_ABRT, 'prev' is already deallocated */ if (err == ERR_OK) { - 8006b98: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 - 8006b9c: 2b00 cmp r3, #0 - 8006b9e: d102 bne.n 8006ba6 + 8006b94: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 + 8006b98: 2b00 cmp r3, #0 + 8006b9a: d102 bne.n 8006ba2 tcp_output(prev); - 8006ba0: 6ab8 ldr r0, [r7, #40] ; 0x28 - 8006ba2: f003 fb7f bl 800a2a4 + 8006b9c: 6ab8 ldr r0, [r7, #40] ; 0x28 + 8006b9e: f003 fb7f bl 800a2a0 while (pcb != NULL) { - 8006ba6: 6afb ldr r3, [r7, #44] ; 0x2c - 8006ba8: 2b00 cmp r3, #0 - 8006baa: f47f ad5c bne.w 8006666 + 8006ba2: 6afb ldr r3, [r7, #44] ; 0x2c + 8006ba4: 2b00 cmp r3, #0 + 8006ba6: f47f ad5c bne.w 8006662 } } /* Steps through all of the TIME-WAIT PCBs. */ prev = NULL; - 8006bae: 2300 movs r3, #0 - 8006bb0: 62bb str r3, [r7, #40] ; 0x28 + 8006baa: 2300 movs r3, #0 + 8006bac: 62bb str r3, [r7, #40] ; 0x28 pcb = tcp_tw_pcbs; - 8006bb2: 4b0b ldr r3, [pc, #44] ; (8006be0 ) - 8006bb4: 681b ldr r3, [r3, #0] - 8006bb6: 62fb str r3, [r7, #44] ; 0x2c + 8006bae: 4b0b ldr r3, [pc, #44] ; (8006bdc ) + 8006bb0: 681b ldr r3, [r3, #0] + 8006bb2: 62fb str r3, [r7, #44] ; 0x2c while (pcb != NULL) { - 8006bb8: e067 b.n 8006c8a - 8006bba: bf00 nop - 8006bbc: 20008c00 .word 0x20008c00 - 8006bc0: 10624dd3 .word 0x10624dd3 - 8006bc4: 000124f8 .word 0x000124f8 - 8006bc8: 20008c0c .word 0x20008c0c - 8006bcc: 080159bc .word 0x080159bc - 8006bd0: 08015df4 .word 0x08015df4 - 8006bd4: 08015a00 .word 0x08015a00 - 8006bd8: 08015e20 .word 0x08015e20 - 8006bdc: 20008c14 .word 0x20008c14 - 8006be0: 20008c10 .word 0x20008c10 + 8006bb4: e067 b.n 8006c86 + 8006bb6: bf00 nop + 8006bb8: 20008c00 .word 0x20008c00 + 8006bbc: 10624dd3 .word 0x10624dd3 + 8006bc0: 000124f8 .word 0x000124f8 + 8006bc4: 20008c0c .word 0x20008c0c + 8006bc8: 080159bc .word 0x080159bc + 8006bcc: 08015df4 .word 0x08015df4 + 8006bd0: 08015a00 .word 0x08015a00 + 8006bd4: 08015e20 .word 0x08015e20 + 8006bd8: 20008c14 .word 0x20008c14 + 8006bdc: 20008c10 .word 0x20008c10 LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - 8006be4: 6afb ldr r3, [r7, #44] ; 0x2c - 8006be6: 7d1b ldrb r3, [r3, #20] - 8006be8: 2b0a cmp r3, #10 - 8006bea: d006 beq.n 8006bfa - 8006bec: 4b2b ldr r3, [pc, #172] ; (8006c9c ) - 8006bee: f240 52a1 movw r2, #1441 ; 0x5a1 - 8006bf2: 492b ldr r1, [pc, #172] ; (8006ca0 ) - 8006bf4: 482b ldr r0, [pc, #172] ; (8006ca4 ) - 8006bf6: f009 fbed bl 80103d4 + 8006be0: 6afb ldr r3, [r7, #44] ; 0x2c + 8006be2: 7d1b ldrb r3, [r3, #20] + 8006be4: 2b0a cmp r3, #10 + 8006be6: d006 beq.n 8006bf6 + 8006be8: 4b2b ldr r3, [pc, #172] ; (8006c98 ) + 8006bea: f240 52a1 movw r2, #1441 ; 0x5a1 + 8006bee: 492b ldr r1, [pc, #172] ; (8006c9c ) + 8006bf0: 482b ldr r0, [pc, #172] ; (8006ca0 ) + 8006bf2: f009 fbed bl 80103d0 pcb_remove = 0; - 8006bfa: 2300 movs r3, #0 - 8006bfc: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8006bf6: 2300 movs r3, #0 + 8006bf8: f887 3027 strb.w r3, [r7, #39] ; 0x27 /* Check if this PCB has stayed long enough in TIME-WAIT */ if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) { - 8006c00: 4b29 ldr r3, [pc, #164] ; (8006ca8 ) - 8006c02: 681a ldr r2, [r3, #0] - 8006c04: 6afb ldr r3, [r7, #44] ; 0x2c - 8006c06: 6a1b ldr r3, [r3, #32] - 8006c08: 1ad3 subs r3, r2, r3 - 8006c0a: 2bf0 cmp r3, #240 ; 0xf0 - 8006c0c: d904 bls.n 8006c18 + 8006bfc: 4b29 ldr r3, [pc, #164] ; (8006ca4 ) + 8006bfe: 681a ldr r2, [r3, #0] + 8006c00: 6afb ldr r3, [r7, #44] ; 0x2c + 8006c02: 6a1b ldr r3, [r3, #32] + 8006c04: 1ad3 subs r3, r2, r3 + 8006c06: 2bf0 cmp r3, #240 ; 0xf0 + 8006c08: d904 bls.n 8006c14 ++pcb_remove; - 8006c0e: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8006c12: 3301 adds r3, #1 - 8006c14: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8006c0a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8006c0e: 3301 adds r3, #1 + 8006c10: f887 3027 strb.w r3, [r7, #39] ; 0x27 } /* If the PCB should be removed, do it. */ if (pcb_remove) { - 8006c18: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8006c1c: 2b00 cmp r3, #0 - 8006c1e: d02f beq.n 8006c80 + 8006c14: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8006c18: 2b00 cmp r3, #0 + 8006c1a: d02f beq.n 8006c7c struct tcp_pcb *pcb2; tcp_pcb_purge(pcb); - 8006c20: 6af8 ldr r0, [r7, #44] ; 0x2c - 8006c22: f000 fb2b bl 800727c + 8006c1c: 6af8 ldr r0, [r7, #44] ; 0x2c + 8006c1e: f000 fb2b bl 8007278 /* Remove PCB from tcp_tw_pcbs list. */ if (prev != NULL) { - 8006c26: 6abb ldr r3, [r7, #40] ; 0x28 - 8006c28: 2b00 cmp r3, #0 - 8006c2a: d010 beq.n 8006c4e + 8006c22: 6abb ldr r3, [r7, #40] ; 0x28 + 8006c24: 2b00 cmp r3, #0 + 8006c26: d010 beq.n 8006c4a LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_tw_pcbs", pcb != tcp_tw_pcbs); - 8006c2c: 4b1f ldr r3, [pc, #124] ; (8006cac ) - 8006c2e: 681b ldr r3, [r3, #0] - 8006c30: 6afa ldr r2, [r7, #44] ; 0x2c - 8006c32: 429a cmp r2, r3 - 8006c34: d106 bne.n 8006c44 - 8006c36: 4b19 ldr r3, [pc, #100] ; (8006c9c ) - 8006c38: f240 52af movw r2, #1455 ; 0x5af - 8006c3c: 491c ldr r1, [pc, #112] ; (8006cb0 ) - 8006c3e: 4819 ldr r0, [pc, #100] ; (8006ca4 ) - 8006c40: f009 fbc8 bl 80103d4 + 8006c28: 4b1f ldr r3, [pc, #124] ; (8006ca8 ) + 8006c2a: 681b ldr r3, [r3, #0] + 8006c2c: 6afa ldr r2, [r7, #44] ; 0x2c + 8006c2e: 429a cmp r2, r3 + 8006c30: d106 bne.n 8006c40 + 8006c32: 4b19 ldr r3, [pc, #100] ; (8006c98 ) + 8006c34: f240 52af movw r2, #1455 ; 0x5af + 8006c38: 491c ldr r1, [pc, #112] ; (8006cac ) + 8006c3a: 4819 ldr r0, [pc, #100] ; (8006ca0 ) + 8006c3c: f009 fbc8 bl 80103d0 prev->next = pcb->next; - 8006c44: 6afb ldr r3, [r7, #44] ; 0x2c - 8006c46: 68da ldr r2, [r3, #12] - 8006c48: 6abb ldr r3, [r7, #40] ; 0x28 - 8006c4a: 60da str r2, [r3, #12] - 8006c4c: e00f b.n 8006c6e + 8006c40: 6afb ldr r3, [r7, #44] ; 0x2c + 8006c42: 68da ldr r2, [r3, #12] + 8006c44: 6abb ldr r3, [r7, #40] ; 0x28 + 8006c46: 60da str r2, [r3, #12] + 8006c48: e00f b.n 8006c6a } else { /* This PCB was the first. */ LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_tw_pcbs", tcp_tw_pcbs == pcb); - 8006c4e: 4b17 ldr r3, [pc, #92] ; (8006cac ) - 8006c50: 681b ldr r3, [r3, #0] - 8006c52: 6afa ldr r2, [r7, #44] ; 0x2c - 8006c54: 429a cmp r2, r3 - 8006c56: d006 beq.n 8006c66 - 8006c58: 4b10 ldr r3, [pc, #64] ; (8006c9c ) - 8006c5a: f240 52b3 movw r2, #1459 ; 0x5b3 - 8006c5e: 4915 ldr r1, [pc, #84] ; (8006cb4 ) - 8006c60: 4810 ldr r0, [pc, #64] ; (8006ca4 ) - 8006c62: f009 fbb7 bl 80103d4 + 8006c4a: 4b17 ldr r3, [pc, #92] ; (8006ca8 ) + 8006c4c: 681b ldr r3, [r3, #0] + 8006c4e: 6afa ldr r2, [r7, #44] ; 0x2c + 8006c50: 429a cmp r2, r3 + 8006c52: d006 beq.n 8006c62 + 8006c54: 4b10 ldr r3, [pc, #64] ; (8006c98 ) + 8006c56: f240 52b3 movw r2, #1459 ; 0x5b3 + 8006c5a: 4915 ldr r1, [pc, #84] ; (8006cb0 ) + 8006c5c: 4810 ldr r0, [pc, #64] ; (8006ca0 ) + 8006c5e: f009 fbb7 bl 80103d0 tcp_tw_pcbs = pcb->next; - 8006c66: 6afb ldr r3, [r7, #44] ; 0x2c - 8006c68: 68db ldr r3, [r3, #12] - 8006c6a: 4a10 ldr r2, [pc, #64] ; (8006cac ) - 8006c6c: 6013 str r3, [r2, #0] + 8006c62: 6afb ldr r3, [r7, #44] ; 0x2c + 8006c64: 68db ldr r3, [r3, #12] + 8006c66: 4a10 ldr r2, [pc, #64] ; (8006ca8 ) + 8006c68: 6013 str r3, [r2, #0] } pcb2 = pcb; - 8006c6e: 6afb ldr r3, [r7, #44] ; 0x2c - 8006c70: 61fb str r3, [r7, #28] + 8006c6a: 6afb ldr r3, [r7, #44] ; 0x2c + 8006c6c: 61fb str r3, [r7, #28] pcb = pcb->next; - 8006c72: 6afb ldr r3, [r7, #44] ; 0x2c - 8006c74: 68db ldr r3, [r3, #12] - 8006c76: 62fb str r3, [r7, #44] ; 0x2c + 8006c6e: 6afb ldr r3, [r7, #44] ; 0x2c + 8006c70: 68db ldr r3, [r3, #12] + 8006c72: 62fb str r3, [r7, #44] ; 0x2c tcp_free(pcb2); - 8006c78: 69f8 ldr r0, [r7, #28] - 8006c7a: f7ff f93f bl 8005efc - 8006c7e: e004 b.n 8006c8a + 8006c74: 69f8 ldr r0, [r7, #28] + 8006c76: f7ff f93f bl 8005ef8 + 8006c7a: e004 b.n 8006c86 } else { prev = pcb; - 8006c80: 6afb ldr r3, [r7, #44] ; 0x2c - 8006c82: 62bb str r3, [r7, #40] ; 0x28 + 8006c7c: 6afb ldr r3, [r7, #44] ; 0x2c + 8006c7e: 62bb str r3, [r7, #40] ; 0x28 pcb = pcb->next; - 8006c84: 6afb ldr r3, [r7, #44] ; 0x2c - 8006c86: 68db ldr r3, [r3, #12] - 8006c88: 62fb str r3, [r7, #44] ; 0x2c + 8006c80: 6afb ldr r3, [r7, #44] ; 0x2c + 8006c82: 68db ldr r3, [r3, #12] + 8006c84: 62fb str r3, [r7, #44] ; 0x2c while (pcb != NULL) { - 8006c8a: 6afb ldr r3, [r7, #44] ; 0x2c - 8006c8c: 2b00 cmp r3, #0 - 8006c8e: d1a9 bne.n 8006be4 + 8006c86: 6afb ldr r3, [r7, #44] ; 0x2c + 8006c88: 2b00 cmp r3, #0 + 8006c8a: d1a9 bne.n 8006be0 } } } - 8006c90: bf00 nop - 8006c92: bf00 nop - 8006c94: 3730 adds r7, #48 ; 0x30 - 8006c96: 46bd mov sp, r7 - 8006c98: bdb0 pop {r4, r5, r7, pc} - 8006c9a: bf00 nop - 8006c9c: 080159bc .word 0x080159bc - 8006ca0: 08015e4c .word 0x08015e4c - 8006ca4: 08015a00 .word 0x08015a00 - 8006ca8: 20008c00 .word 0x20008c00 - 8006cac: 20008c10 .word 0x20008c10 - 8006cb0: 08015e7c .word 0x08015e7c - 8006cb4: 08015ea4 .word 0x08015ea4 + 8006c8c: bf00 nop + 8006c8e: bf00 nop + 8006c90: 3730 adds r7, #48 ; 0x30 + 8006c92: 46bd mov sp, r7 + 8006c94: bdb0 pop {r4, r5, r7, pc} + 8006c96: bf00 nop + 8006c98: 080159bc .word 0x080159bc + 8006c9c: 08015e4c .word 0x08015e4c + 8006ca0: 08015a00 .word 0x08015a00 + 8006ca4: 20008c00 .word 0x20008c00 + 8006ca8: 20008c10 .word 0x20008c10 + 8006cac: 08015e7c .word 0x08015e7c + 8006cb0: 08015ea4 .word 0x08015ea4 -08006cb8 : +08006cb4 : * * Automatically called from tcp_tmr(). */ void tcp_fasttmr(void) { - 8006cb8: b580 push {r7, lr} - 8006cba: b082 sub sp, #8 - 8006cbc: af00 add r7, sp, #0 + 8006cb4: b580 push {r7, lr} + 8006cb6: b082 sub sp, #8 + 8006cb8: af00 add r7, sp, #0 struct tcp_pcb *pcb; ++tcp_timer_ctr; - 8006cbe: 4b2d ldr r3, [pc, #180] ; (8006d74 ) - 8006cc0: 781b ldrb r3, [r3, #0] - 8006cc2: 3301 adds r3, #1 - 8006cc4: b2da uxtb r2, r3 - 8006cc6: 4b2b ldr r3, [pc, #172] ; (8006d74 ) - 8006cc8: 701a strb r2, [r3, #0] + 8006cba: 4b2d ldr r3, [pc, #180] ; (8006d70 ) + 8006cbc: 781b ldrb r3, [r3, #0] + 8006cbe: 3301 adds r3, #1 + 8006cc0: b2da uxtb r2, r3 + 8006cc2: 4b2b ldr r3, [pc, #172] ; (8006d70 ) + 8006cc4: 701a strb r2, [r3, #0] tcp_fasttmr_start: pcb = tcp_active_pcbs; - 8006cca: 4b2b ldr r3, [pc, #172] ; (8006d78 ) - 8006ccc: 681b ldr r3, [r3, #0] - 8006cce: 607b str r3, [r7, #4] + 8006cc6: 4b2b ldr r3, [pc, #172] ; (8006d74 ) + 8006cc8: 681b ldr r3, [r3, #0] + 8006cca: 607b str r3, [r7, #4] while (pcb != NULL) { - 8006cd0: e048 b.n 8006d64 + 8006ccc: e048 b.n 8006d60 if (pcb->last_timer != tcp_timer_ctr) { - 8006cd2: 687b ldr r3, [r7, #4] - 8006cd4: 7f9a ldrb r2, [r3, #30] - 8006cd6: 4b27 ldr r3, [pc, #156] ; (8006d74 ) - 8006cd8: 781b ldrb r3, [r3, #0] - 8006cda: 429a cmp r2, r3 - 8006cdc: d03f beq.n 8006d5e + 8006cce: 687b ldr r3, [r7, #4] + 8006cd0: 7f9a ldrb r2, [r3, #30] + 8006cd2: 4b27 ldr r3, [pc, #156] ; (8006d70 ) + 8006cd4: 781b ldrb r3, [r3, #0] + 8006cd6: 429a cmp r2, r3 + 8006cd8: d03f beq.n 8006d5a struct tcp_pcb *next; pcb->last_timer = tcp_timer_ctr; - 8006cde: 4b25 ldr r3, [pc, #148] ; (8006d74 ) - 8006ce0: 781a ldrb r2, [r3, #0] - 8006ce2: 687b ldr r3, [r7, #4] - 8006ce4: 779a strb r2, [r3, #30] + 8006cda: 4b25 ldr r3, [pc, #148] ; (8006d70 ) + 8006cdc: 781a ldrb r2, [r3, #0] + 8006cde: 687b ldr r3, [r7, #4] + 8006ce0: 779a strb r2, [r3, #30] /* send delayed ACKs */ if (pcb->flags & TF_ACK_DELAY) { - 8006ce6: 687b ldr r3, [r7, #4] - 8006ce8: 8b5b ldrh r3, [r3, #26] - 8006cea: f003 0301 and.w r3, r3, #1 - 8006cee: 2b00 cmp r3, #0 - 8006cf0: d010 beq.n 8006d14 + 8006ce2: 687b ldr r3, [r7, #4] + 8006ce4: 8b5b ldrh r3, [r3, #26] + 8006ce6: f003 0301 and.w r3, r3, #1 + 8006cea: 2b00 cmp r3, #0 + 8006cec: d010 beq.n 8006d10 LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: delayed ACK\n")); tcp_ack_now(pcb); - 8006cf2: 687b ldr r3, [r7, #4] - 8006cf4: 8b5b ldrh r3, [r3, #26] - 8006cf6: f043 0302 orr.w r3, r3, #2 - 8006cfa: b29a uxth r2, r3 - 8006cfc: 687b ldr r3, [r7, #4] - 8006cfe: 835a strh r2, [r3, #26] + 8006cee: 687b ldr r3, [r7, #4] + 8006cf0: 8b5b ldrh r3, [r3, #26] + 8006cf2: f043 0302 orr.w r3, r3, #2 + 8006cf6: b29a uxth r2, r3 + 8006cf8: 687b ldr r3, [r7, #4] + 8006cfa: 835a strh r2, [r3, #26] tcp_output(pcb); - 8006d00: 6878 ldr r0, [r7, #4] - 8006d02: f003 facf bl 800a2a4 + 8006cfc: 6878 ldr r0, [r7, #4] + 8006cfe: f003 facf bl 800a2a0 tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 8006d06: 687b ldr r3, [r7, #4] - 8006d08: 8b5b ldrh r3, [r3, #26] - 8006d0a: f023 0303 bic.w r3, r3, #3 - 8006d0e: b29a uxth r2, r3 - 8006d10: 687b ldr r3, [r7, #4] - 8006d12: 835a strh r2, [r3, #26] + 8006d02: 687b ldr r3, [r7, #4] + 8006d04: 8b5b ldrh r3, [r3, #26] + 8006d06: f023 0303 bic.w r3, r3, #3 + 8006d0a: b29a uxth r2, r3 + 8006d0c: 687b ldr r3, [r7, #4] + 8006d0e: 835a strh r2, [r3, #26] } /* send pending FIN */ if (pcb->flags & TF_CLOSEPEND) { - 8006d14: 687b ldr r3, [r7, #4] - 8006d16: 8b5b ldrh r3, [r3, #26] - 8006d18: f003 0308 and.w r3, r3, #8 - 8006d1c: 2b00 cmp r3, #0 - 8006d1e: d009 beq.n 8006d34 + 8006d10: 687b ldr r3, [r7, #4] + 8006d12: 8b5b ldrh r3, [r3, #26] + 8006d14: f003 0308 and.w r3, r3, #8 + 8006d18: 2b00 cmp r3, #0 + 8006d1a: d009 beq.n 8006d30 LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: pending FIN\n")); tcp_clear_flags(pcb, TF_CLOSEPEND); - 8006d20: 687b ldr r3, [r7, #4] - 8006d22: 8b5b ldrh r3, [r3, #26] - 8006d24: f023 0308 bic.w r3, r3, #8 - 8006d28: b29a uxth r2, r3 - 8006d2a: 687b ldr r3, [r7, #4] - 8006d2c: 835a strh r2, [r3, #26] + 8006d1c: 687b ldr r3, [r7, #4] + 8006d1e: 8b5b ldrh r3, [r3, #26] + 8006d20: f023 0308 bic.w r3, r3, #8 + 8006d24: b29a uxth r2, r3 + 8006d26: 687b ldr r3, [r7, #4] + 8006d28: 835a strh r2, [r3, #26] tcp_close_shutdown_fin(pcb); - 8006d2e: 6878 ldr r0, [r7, #4] - 8006d30: f7ff fa78 bl 8006224 + 8006d2a: 6878 ldr r0, [r7, #4] + 8006d2c: f7ff fa78 bl 8006220 } next = pcb->next; - 8006d34: 687b ldr r3, [r7, #4] - 8006d36: 68db ldr r3, [r3, #12] - 8006d38: 603b str r3, [r7, #0] + 8006d30: 687b ldr r3, [r7, #4] + 8006d32: 68db ldr r3, [r3, #12] + 8006d34: 603b str r3, [r7, #0] /* If there is data which was previously "refused" by upper layer */ if (pcb->refused_data != NULL) { - 8006d3a: 687b ldr r3, [r7, #4] - 8006d3c: 6f9b ldr r3, [r3, #120] ; 0x78 - 8006d3e: 2b00 cmp r3, #0 - 8006d40: d00a beq.n 8006d58 + 8006d36: 687b ldr r3, [r7, #4] + 8006d38: 6f9b ldr r3, [r3, #120] ; 0x78 + 8006d3a: 2b00 cmp r3, #0 + 8006d3c: d00a beq.n 8006d54 tcp_active_pcbs_changed = 0; - 8006d42: 4b0e ldr r3, [pc, #56] ; (8006d7c ) - 8006d44: 2200 movs r2, #0 - 8006d46: 701a strb r2, [r3, #0] + 8006d3e: 4b0e ldr r3, [pc, #56] ; (8006d78 ) + 8006d40: 2200 movs r2, #0 + 8006d42: 701a strb r2, [r3, #0] tcp_process_refused_data(pcb); - 8006d48: 6878 ldr r0, [r7, #4] - 8006d4a: f000 f819 bl 8006d80 + 8006d44: 6878 ldr r0, [r7, #4] + 8006d46: f000 f819 bl 8006d7c if (tcp_active_pcbs_changed) { - 8006d4e: 4b0b ldr r3, [pc, #44] ; (8006d7c ) - 8006d50: 781b ldrb r3, [r3, #0] - 8006d52: 2b00 cmp r3, #0 - 8006d54: d000 beq.n 8006d58 + 8006d4a: 4b0b ldr r3, [pc, #44] ; (8006d78 ) + 8006d4c: 781b ldrb r3, [r3, #0] + 8006d4e: 2b00 cmp r3, #0 + 8006d50: d000 beq.n 8006d54 /* application callback has changed the pcb list: restart the loop */ goto tcp_fasttmr_start; - 8006d56: e7b8 b.n 8006cca + 8006d52: e7b8 b.n 8006cc6 } } pcb = next; - 8006d58: 683b ldr r3, [r7, #0] - 8006d5a: 607b str r3, [r7, #4] - 8006d5c: e002 b.n 8006d64 + 8006d54: 683b ldr r3, [r7, #0] + 8006d56: 607b str r3, [r7, #4] + 8006d58: e002 b.n 8006d60 } else { pcb = pcb->next; - 8006d5e: 687b ldr r3, [r7, #4] - 8006d60: 68db ldr r3, [r3, #12] - 8006d62: 607b str r3, [r7, #4] + 8006d5a: 687b ldr r3, [r7, #4] + 8006d5c: 68db ldr r3, [r3, #12] + 8006d5e: 607b str r3, [r7, #4] while (pcb != NULL) { - 8006d64: 687b ldr r3, [r7, #4] - 8006d66: 2b00 cmp r3, #0 - 8006d68: d1b3 bne.n 8006cd2 + 8006d60: 687b ldr r3, [r7, #4] + 8006d62: 2b00 cmp r3, #0 + 8006d64: d1b3 bne.n 8006cce } } } - 8006d6a: bf00 nop - 8006d6c: bf00 nop - 8006d6e: 3708 adds r7, #8 - 8006d70: 46bd mov sp, r7 - 8006d72: bd80 pop {r7, pc} - 8006d74: 20008c16 .word 0x20008c16 - 8006d78: 20008c0c .word 0x20008c0c - 8006d7c: 20008c14 .word 0x20008c14 + 8006d66: bf00 nop + 8006d68: bf00 nop + 8006d6a: 3708 adds r7, #8 + 8006d6c: 46bd mov sp, r7 + 8006d6e: bd80 pop {r7, pc} + 8006d70: 20008c16 .word 0x20008c16 + 8006d74: 20008c0c .word 0x20008c0c + 8006d78: 20008c14 .word 0x20008c14 -08006d80 : +08006d7c : } /** Pass pcb->refused_data to the recv callback */ err_t tcp_process_refused_data(struct tcp_pcb *pcb) { - 8006d80: b590 push {r4, r7, lr} - 8006d82: b085 sub sp, #20 - 8006d84: af00 add r7, sp, #0 - 8006d86: 6078 str r0, [r7, #4] + 8006d7c: b590 push {r4, r7, lr} + 8006d7e: b085 sub sp, #20 + 8006d80: af00 add r7, sp, #0 + 8006d82: 6078 str r0, [r7, #4] #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE struct pbuf *rest; #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ LWIP_ERROR("tcp_process_refused_data: invalid pcb", pcb != NULL, return ERR_ARG); - 8006d88: 687b ldr r3, [r7, #4] - 8006d8a: 2b00 cmp r3, #0 - 8006d8c: d109 bne.n 8006da2 - 8006d8e: 4b37 ldr r3, [pc, #220] ; (8006e6c ) - 8006d90: f240 6209 movw r2, #1545 ; 0x609 - 8006d94: 4936 ldr r1, [pc, #216] ; (8006e70 ) - 8006d96: 4837 ldr r0, [pc, #220] ; (8006e74 ) - 8006d98: f009 fb1c bl 80103d4 - 8006d9c: f06f 030f mvn.w r3, #15 - 8006da0: e060 b.n 8006e64 + 8006d84: 687b ldr r3, [r7, #4] + 8006d86: 2b00 cmp r3, #0 + 8006d88: d109 bne.n 8006d9e + 8006d8a: 4b37 ldr r3, [pc, #220] ; (8006e68 ) + 8006d8c: f240 6209 movw r2, #1545 ; 0x609 + 8006d90: 4936 ldr r1, [pc, #216] ; (8006e6c ) + 8006d92: 4837 ldr r0, [pc, #220] ; (8006e70 ) + 8006d94: f009 fb1c bl 80103d0 + 8006d98: f06f 030f mvn.w r3, #15 + 8006d9c: e060 b.n 8006e60 #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE while (pcb->refused_data != NULL) #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ { err_t err; u8_t refused_flags = pcb->refused_data->flags; - 8006da2: 687b ldr r3, [r7, #4] - 8006da4: 6f9b ldr r3, [r3, #120] ; 0x78 - 8006da6: 7b5b ldrb r3, [r3, #13] - 8006da8: 73bb strb r3, [r7, #14] + 8006d9e: 687b ldr r3, [r7, #4] + 8006da0: 6f9b ldr r3, [r3, #120] ; 0x78 + 8006da2: 7b5b ldrb r3, [r3, #13] + 8006da4: 73bb strb r3, [r7, #14] /* set pcb->refused_data to NULL in case the callback frees it and then closes the pcb */ struct pbuf *refused_data = pcb->refused_data; - 8006daa: 687b ldr r3, [r7, #4] - 8006dac: 6f9b ldr r3, [r3, #120] ; 0x78 - 8006dae: 60bb str r3, [r7, #8] + 8006da6: 687b ldr r3, [r7, #4] + 8006da8: 6f9b ldr r3, [r3, #120] ; 0x78 + 8006daa: 60bb str r3, [r7, #8] #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE pbuf_split_64k(refused_data, &rest); pcb->refused_data = rest; #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ pcb->refused_data = NULL; - 8006db0: 687b ldr r3, [r7, #4] - 8006db2: 2200 movs r2, #0 - 8006db4: 679a str r2, [r3, #120] ; 0x78 + 8006dac: 687b ldr r3, [r7, #4] + 8006dae: 2200 movs r2, #0 + 8006db0: 679a str r2, [r3, #120] ; 0x78 #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ /* Notify again application with data previously received. */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: notify kept packet\n")); TCP_EVENT_RECV(pcb, refused_data, ERR_OK, err); - 8006db6: 687b ldr r3, [r7, #4] - 8006db8: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8006dbc: 2b00 cmp r3, #0 - 8006dbe: d00b beq.n 8006dd8 - 8006dc0: 687b ldr r3, [r7, #4] - 8006dc2: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 - 8006dc6: 687b ldr r3, [r7, #4] - 8006dc8: 6918 ldr r0, [r3, #16] - 8006dca: 2300 movs r3, #0 - 8006dcc: 68ba ldr r2, [r7, #8] - 8006dce: 6879 ldr r1, [r7, #4] - 8006dd0: 47a0 blx r4 - 8006dd2: 4603 mov r3, r0 - 8006dd4: 73fb strb r3, [r7, #15] - 8006dd6: e007 b.n 8006de8 - 8006dd8: 2300 movs r3, #0 - 8006dda: 68ba ldr r2, [r7, #8] - 8006ddc: 6879 ldr r1, [r7, #4] - 8006dde: 2000 movs r0, #0 - 8006de0: f000 f8a4 bl 8006f2c - 8006de4: 4603 mov r3, r0 - 8006de6: 73fb strb r3, [r7, #15] + 8006db2: 687b ldr r3, [r7, #4] + 8006db4: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8006db8: 2b00 cmp r3, #0 + 8006dba: d00b beq.n 8006dd4 + 8006dbc: 687b ldr r3, [r7, #4] + 8006dbe: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 + 8006dc2: 687b ldr r3, [r7, #4] + 8006dc4: 6918 ldr r0, [r3, #16] + 8006dc6: 2300 movs r3, #0 + 8006dc8: 68ba ldr r2, [r7, #8] + 8006dca: 6879 ldr r1, [r7, #4] + 8006dcc: 47a0 blx r4 + 8006dce: 4603 mov r3, r0 + 8006dd0: 73fb strb r3, [r7, #15] + 8006dd2: e007 b.n 8006de4 + 8006dd4: 2300 movs r3, #0 + 8006dd6: 68ba ldr r2, [r7, #8] + 8006dd8: 6879 ldr r1, [r7, #4] + 8006dda: 2000 movs r0, #0 + 8006ddc: f000 f8a4 bl 8006f28 + 8006de0: 4603 mov r3, r0 + 8006de2: 73fb strb r3, [r7, #15] if (err == ERR_OK) { - 8006de8: f997 300f ldrsb.w r3, [r7, #15] - 8006dec: 2b00 cmp r3, #0 - 8006dee: d12a bne.n 8006e46 + 8006de4: f997 300f ldrsb.w r3, [r7, #15] + 8006de8: 2b00 cmp r3, #0 + 8006dea: d12a bne.n 8006e42 /* did refused_data include a FIN? */ if ((refused_flags & PBUF_FLAG_TCP_FIN) - 8006df0: 7bbb ldrb r3, [r7, #14] - 8006df2: f003 0320 and.w r3, r3, #32 - 8006df6: 2b00 cmp r3, #0 - 8006df8: d033 beq.n 8006e62 + 8006dec: 7bbb ldrb r3, [r7, #14] + 8006dee: f003 0320 and.w r3, r3, #32 + 8006df2: 2b00 cmp r3, #0 + 8006df4: d033 beq.n 8006e5e && (rest == NULL) #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ ) { /* correct rcv_wnd as the application won't call tcp_recved() for the FIN's seqno */ if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) { - 8006dfa: 687b ldr r3, [r7, #4] - 8006dfc: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8006dfe: f5b3 6f06 cmp.w r3, #2144 ; 0x860 - 8006e02: d005 beq.n 8006e10 + 8006df6: 687b ldr r3, [r7, #4] + 8006df8: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8006dfa: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 8006dfe: d005 beq.n 8006e0c pcb->rcv_wnd++; - 8006e04: 687b ldr r3, [r7, #4] - 8006e06: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8006e08: 3301 adds r3, #1 - 8006e0a: b29a uxth r2, r3 - 8006e0c: 687b ldr r3, [r7, #4] - 8006e0e: 851a strh r2, [r3, #40] ; 0x28 + 8006e00: 687b ldr r3, [r7, #4] + 8006e02: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8006e04: 3301 adds r3, #1 + 8006e06: b29a uxth r2, r3 + 8006e08: 687b ldr r3, [r7, #4] + 8006e0a: 851a strh r2, [r3, #40] ; 0x28 } TCP_EVENT_CLOSED(pcb, err); - 8006e10: 687b ldr r3, [r7, #4] - 8006e12: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8006e16: 2b00 cmp r3, #0 - 8006e18: d00b beq.n 8006e32 - 8006e1a: 687b ldr r3, [r7, #4] - 8006e1c: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 - 8006e20: 687b ldr r3, [r7, #4] - 8006e22: 6918 ldr r0, [r3, #16] - 8006e24: 2300 movs r3, #0 - 8006e26: 2200 movs r2, #0 - 8006e28: 6879 ldr r1, [r7, #4] - 8006e2a: 47a0 blx r4 - 8006e2c: 4603 mov r3, r0 - 8006e2e: 73fb strb r3, [r7, #15] - 8006e30: e001 b.n 8006e36 - 8006e32: 2300 movs r3, #0 - 8006e34: 73fb strb r3, [r7, #15] + 8006e0c: 687b ldr r3, [r7, #4] + 8006e0e: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8006e12: 2b00 cmp r3, #0 + 8006e14: d00b beq.n 8006e2e + 8006e16: 687b ldr r3, [r7, #4] + 8006e18: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 + 8006e1c: 687b ldr r3, [r7, #4] + 8006e1e: 6918 ldr r0, [r3, #16] + 8006e20: 2300 movs r3, #0 + 8006e22: 2200 movs r2, #0 + 8006e24: 6879 ldr r1, [r7, #4] + 8006e26: 47a0 blx r4 + 8006e28: 4603 mov r3, r0 + 8006e2a: 73fb strb r3, [r7, #15] + 8006e2c: e001 b.n 8006e32 + 8006e2e: 2300 movs r3, #0 + 8006e30: 73fb strb r3, [r7, #15] if (err == ERR_ABRT) { - 8006e36: f997 300f ldrsb.w r3, [r7, #15] - 8006e3a: f113 0f0d cmn.w r3, #13 - 8006e3e: d110 bne.n 8006e62 + 8006e32: f997 300f ldrsb.w r3, [r7, #15] + 8006e36: f113 0f0d cmn.w r3, #13 + 8006e3a: d110 bne.n 8006e5e return ERR_ABRT; - 8006e40: f06f 030c mvn.w r3, #12 - 8006e44: e00e b.n 8006e64 + 8006e3c: f06f 030c mvn.w r3, #12 + 8006e40: e00e b.n 8006e60 } } } else if (err == ERR_ABRT) { - 8006e46: f997 300f ldrsb.w r3, [r7, #15] - 8006e4a: f113 0f0d cmn.w r3, #13 - 8006e4e: d102 bne.n 8006e56 + 8006e42: f997 300f ldrsb.w r3, [r7, #15] + 8006e46: f113 0f0d cmn.w r3, #13 + 8006e4a: d102 bne.n 8006e52 /* if err == ERR_ABRT, 'pcb' is already deallocated */ /* Drop incoming packets because pcb is "full" (only if the incoming segment contains data). */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: drop incoming packets, because pcb is \"full\"\n")); return ERR_ABRT; - 8006e50: f06f 030c mvn.w r3, #12 - 8006e54: e006 b.n 8006e64 + 8006e4c: f06f 030c mvn.w r3, #12 + 8006e50: e006 b.n 8006e60 #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE if (rest != NULL) { pbuf_cat(refused_data, rest); } #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ pcb->refused_data = refused_data; - 8006e56: 687b ldr r3, [r7, #4] - 8006e58: 68ba ldr r2, [r7, #8] - 8006e5a: 679a str r2, [r3, #120] ; 0x78 + 8006e52: 687b ldr r3, [r7, #4] + 8006e54: 68ba ldr r2, [r7, #8] + 8006e56: 679a str r2, [r3, #120] ; 0x78 return ERR_INPROGRESS; - 8006e5c: f06f 0304 mvn.w r3, #4 - 8006e60: e000 b.n 8006e64 + 8006e58: f06f 0304 mvn.w r3, #4 + 8006e5c: e000 b.n 8006e60 } } return ERR_OK; - 8006e62: 2300 movs r3, #0 + 8006e5e: 2300 movs r3, #0 } - 8006e64: 4618 mov r0, r3 - 8006e66: 3714 adds r7, #20 - 8006e68: 46bd mov sp, r7 - 8006e6a: bd90 pop {r4, r7, pc} - 8006e6c: 080159bc .word 0x080159bc - 8006e70: 08015ecc .word 0x08015ecc - 8006e74: 08015a00 .word 0x08015a00 + 8006e60: 4618 mov r0, r3 + 8006e62: 3714 adds r7, #20 + 8006e64: 46bd mov sp, r7 + 8006e66: bd90 pop {r4, r7, pc} + 8006e68: 080159bc .word 0x080159bc + 8006e6c: 08015ecc .word 0x08015ecc + 8006e70: 08015a00 .word 0x08015a00 -08006e78 : +08006e74 : * * @param seg tcp_seg list of TCP segments to free */ void tcp_segs_free(struct tcp_seg *seg) { - 8006e78: b580 push {r7, lr} - 8006e7a: b084 sub sp, #16 - 8006e7c: af00 add r7, sp, #0 - 8006e7e: 6078 str r0, [r7, #4] + 8006e74: b580 push {r7, lr} + 8006e76: b084 sub sp, #16 + 8006e78: af00 add r7, sp, #0 + 8006e7a: 6078 str r0, [r7, #4] while (seg != NULL) { - 8006e80: e007 b.n 8006e92 + 8006e7c: e007 b.n 8006e8e struct tcp_seg *next = seg->next; - 8006e82: 687b ldr r3, [r7, #4] - 8006e84: 681b ldr r3, [r3, #0] - 8006e86: 60fb str r3, [r7, #12] + 8006e7e: 687b ldr r3, [r7, #4] + 8006e80: 681b ldr r3, [r3, #0] + 8006e82: 60fb str r3, [r7, #12] tcp_seg_free(seg); - 8006e88: 6878 ldr r0, [r7, #4] - 8006e8a: f000 f80a bl 8006ea2 + 8006e84: 6878 ldr r0, [r7, #4] + 8006e86: f000 f80a bl 8006e9e seg = next; - 8006e8e: 68fb ldr r3, [r7, #12] - 8006e90: 607b str r3, [r7, #4] + 8006e8a: 68fb ldr r3, [r7, #12] + 8006e8c: 607b str r3, [r7, #4] while (seg != NULL) { - 8006e92: 687b ldr r3, [r7, #4] - 8006e94: 2b00 cmp r3, #0 - 8006e96: d1f4 bne.n 8006e82 + 8006e8e: 687b ldr r3, [r7, #4] + 8006e90: 2b00 cmp r3, #0 + 8006e92: d1f4 bne.n 8006e7e } } - 8006e98: bf00 nop - 8006e9a: bf00 nop - 8006e9c: 3710 adds r7, #16 - 8006e9e: 46bd mov sp, r7 - 8006ea0: bd80 pop {r7, pc} + 8006e94: bf00 nop + 8006e96: bf00 nop + 8006e98: 3710 adds r7, #16 + 8006e9a: 46bd mov sp, r7 + 8006e9c: bd80 pop {r7, pc} -08006ea2 : +08006e9e : * * @param seg single tcp_seg to free */ void tcp_seg_free(struct tcp_seg *seg) { - 8006ea2: b580 push {r7, lr} - 8006ea4: b082 sub sp, #8 - 8006ea6: af00 add r7, sp, #0 - 8006ea8: 6078 str r0, [r7, #4] + 8006e9e: b580 push {r7, lr} + 8006ea0: b082 sub sp, #8 + 8006ea2: af00 add r7, sp, #0 + 8006ea4: 6078 str r0, [r7, #4] if (seg != NULL) { - 8006eaa: 687b ldr r3, [r7, #4] - 8006eac: 2b00 cmp r3, #0 - 8006eae: d00c beq.n 8006eca + 8006ea6: 687b ldr r3, [r7, #4] + 8006ea8: 2b00 cmp r3, #0 + 8006eaa: d00c beq.n 8006ec6 if (seg->p != NULL) { - 8006eb0: 687b ldr r3, [r7, #4] - 8006eb2: 685b ldr r3, [r3, #4] - 8006eb4: 2b00 cmp r3, #0 - 8006eb6: d004 beq.n 8006ec2 + 8006eac: 687b ldr r3, [r7, #4] + 8006eae: 685b ldr r3, [r3, #4] + 8006eb0: 2b00 cmp r3, #0 + 8006eb2: d004 beq.n 8006ebe pbuf_free(seg->p); - 8006eb8: 687b ldr r3, [r7, #4] - 8006eba: 685b ldr r3, [r3, #4] - 8006ebc: 4618 mov r0, r3 - 8006ebe: f7fe fd6d bl 800599c + 8006eb4: 687b ldr r3, [r7, #4] + 8006eb6: 685b ldr r3, [r3, #4] + 8006eb8: 4618 mov r0, r3 + 8006eba: f7fe fd6d bl 8005998 #if TCP_DEBUG seg->p = NULL; #endif /* TCP_DEBUG */ } memp_free(MEMP_TCP_SEG, seg); - 8006ec2: 6879 ldr r1, [r7, #4] - 8006ec4: 2003 movs r0, #3 - 8006ec6: f7fd fee7 bl 8004c98 + 8006ebe: 6879 ldr r1, [r7, #4] + 8006ec0: 2003 movs r0, #3 + 8006ec2: f7fd fee7 bl 8004c94 } } - 8006eca: bf00 nop - 8006ecc: 3708 adds r7, #8 - 8006ece: 46bd mov sp, r7 - 8006ed0: bd80 pop {r7, pc} + 8006ec6: bf00 nop + 8006ec8: 3708 adds r7, #8 + 8006eca: 46bd mov sp, r7 + 8006ecc: bd80 pop {r7, pc} ... -08006ed4 : +08006ed0 : * @param seg the old tcp_seg * @return a copy of seg */ struct tcp_seg * tcp_seg_copy(struct tcp_seg *seg) { - 8006ed4: b580 push {r7, lr} - 8006ed6: b084 sub sp, #16 - 8006ed8: af00 add r7, sp, #0 - 8006eda: 6078 str r0, [r7, #4] + 8006ed0: b580 push {r7, lr} + 8006ed2: b084 sub sp, #16 + 8006ed4: af00 add r7, sp, #0 + 8006ed6: 6078 str r0, [r7, #4] struct tcp_seg *cseg; LWIP_ASSERT("tcp_seg_copy: invalid seg", seg != NULL); - 8006edc: 687b ldr r3, [r7, #4] - 8006ede: 2b00 cmp r3, #0 - 8006ee0: d106 bne.n 8006ef0 - 8006ee2: 4b0f ldr r3, [pc, #60] ; (8006f20 ) - 8006ee4: f240 6282 movw r2, #1666 ; 0x682 - 8006ee8: 490e ldr r1, [pc, #56] ; (8006f24 ) - 8006eea: 480f ldr r0, [pc, #60] ; (8006f28 ) - 8006eec: f009 fa72 bl 80103d4 + 8006ed8: 687b ldr r3, [r7, #4] + 8006eda: 2b00 cmp r3, #0 + 8006edc: d106 bne.n 8006eec + 8006ede: 4b0f ldr r3, [pc, #60] ; (8006f1c ) + 8006ee0: f240 6282 movw r2, #1666 ; 0x682 + 8006ee4: 490e ldr r1, [pc, #56] ; (8006f20 ) + 8006ee6: 480f ldr r0, [pc, #60] ; (8006f24 ) + 8006ee8: f009 fa72 bl 80103d0 cseg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG); - 8006ef0: 2003 movs r0, #3 - 8006ef2: f7fd fe61 bl 8004bb8 - 8006ef6: 60f8 str r0, [r7, #12] + 8006eec: 2003 movs r0, #3 + 8006eee: f7fd fe61 bl 8004bb4 + 8006ef2: 60f8 str r0, [r7, #12] if (cseg == NULL) { - 8006ef8: 68fb ldr r3, [r7, #12] - 8006efa: 2b00 cmp r3, #0 - 8006efc: d101 bne.n 8006f02 + 8006ef4: 68fb ldr r3, [r7, #12] + 8006ef6: 2b00 cmp r3, #0 + 8006ef8: d101 bne.n 8006efe return NULL; - 8006efe: 2300 movs r3, #0 - 8006f00: e00a b.n 8006f18 + 8006efa: 2300 movs r3, #0 + 8006efc: e00a b.n 8006f14 } SMEMCPY((u8_t *)cseg, (const u8_t *)seg, sizeof(struct tcp_seg)); - 8006f02: 2210 movs r2, #16 - 8006f04: 6879 ldr r1, [r7, #4] - 8006f06: 68f8 ldr r0, [r7, #12] - 8006f08: f009 fa34 bl 8010374 + 8006efe: 2210 movs r2, #16 + 8006f00: 6879 ldr r1, [r7, #4] + 8006f02: 68f8 ldr r0, [r7, #12] + 8006f04: f009 fa34 bl 8010370 pbuf_ref(cseg->p); - 8006f0c: 68fb ldr r3, [r7, #12] - 8006f0e: 685b ldr r3, [r3, #4] - 8006f10: 4618 mov r0, r3 - 8006f12: f7fe fde3 bl 8005adc + 8006f08: 68fb ldr r3, [r7, #12] + 8006f0a: 685b ldr r3, [r3, #4] + 8006f0c: 4618 mov r0, r3 + 8006f0e: f7fe fde3 bl 8005ad8 return cseg; - 8006f16: 68fb ldr r3, [r7, #12] + 8006f12: 68fb ldr r3, [r7, #12] } - 8006f18: 4618 mov r0, r3 - 8006f1a: 3710 adds r7, #16 - 8006f1c: 46bd mov sp, r7 - 8006f1e: bd80 pop {r7, pc} - 8006f20: 080159bc .word 0x080159bc - 8006f24: 08015f10 .word 0x08015f10 - 8006f28: 08015a00 .word 0x08015a00 + 8006f14: 4618 mov r0, r3 + 8006f16: 3710 adds r7, #16 + 8006f18: 46bd mov sp, r7 + 8006f1a: bd80 pop {r7, pc} + 8006f1c: 080159bc .word 0x080159bc + 8006f20: 08015f10 .word 0x08015f10 + 8006f24: 08015a00 .word 0x08015a00 -08006f2c : +08006f28 : * Default receive callback that is called if the user didn't register * a recv callback for the pcb. */ err_t tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) { - 8006f2c: b580 push {r7, lr} - 8006f2e: b084 sub sp, #16 - 8006f30: af00 add r7, sp, #0 - 8006f32: 60f8 str r0, [r7, #12] - 8006f34: 60b9 str r1, [r7, #8] - 8006f36: 607a str r2, [r7, #4] - 8006f38: 70fb strb r3, [r7, #3] + 8006f28: b580 push {r7, lr} + 8006f2a: b084 sub sp, #16 + 8006f2c: af00 add r7, sp, #0 + 8006f2e: 60f8 str r0, [r7, #12] + 8006f30: 60b9 str r1, [r7, #8] + 8006f32: 607a str r2, [r7, #4] + 8006f34: 70fb strb r3, [r7, #3] LWIP_UNUSED_ARG(arg); LWIP_ERROR("tcp_recv_null: invalid pcb", pcb != NULL, return ERR_ARG); - 8006f3a: 68bb ldr r3, [r7, #8] - 8006f3c: 2b00 cmp r3, #0 - 8006f3e: d109 bne.n 8006f54 - 8006f40: 4b12 ldr r3, [pc, #72] ; (8006f8c ) - 8006f42: f44f 62d3 mov.w r2, #1688 ; 0x698 - 8006f46: 4912 ldr r1, [pc, #72] ; (8006f90 ) - 8006f48: 4812 ldr r0, [pc, #72] ; (8006f94 ) - 8006f4a: f009 fa43 bl 80103d4 - 8006f4e: f06f 030f mvn.w r3, #15 - 8006f52: e016 b.n 8006f82 + 8006f36: 68bb ldr r3, [r7, #8] + 8006f38: 2b00 cmp r3, #0 + 8006f3a: d109 bne.n 8006f50 + 8006f3c: 4b12 ldr r3, [pc, #72] ; (8006f88 ) + 8006f3e: f44f 62d3 mov.w r2, #1688 ; 0x698 + 8006f42: 4912 ldr r1, [pc, #72] ; (8006f8c ) + 8006f44: 4812 ldr r0, [pc, #72] ; (8006f90 ) + 8006f46: f009 fa43 bl 80103d0 + 8006f4a: f06f 030f mvn.w r3, #15 + 8006f4e: e016 b.n 8006f7e if (p != NULL) { - 8006f54: 687b ldr r3, [r7, #4] - 8006f56: 2b00 cmp r3, #0 - 8006f58: d009 beq.n 8006f6e + 8006f50: 687b ldr r3, [r7, #4] + 8006f52: 2b00 cmp r3, #0 + 8006f54: d009 beq.n 8006f6a tcp_recved(pcb, p->tot_len); - 8006f5a: 687b ldr r3, [r7, #4] - 8006f5c: 891b ldrh r3, [r3, #8] - 8006f5e: 4619 mov r1, r3 - 8006f60: 68b8 ldr r0, [r7, #8] - 8006f62: f7ff fb19 bl 8006598 + 8006f56: 687b ldr r3, [r7, #4] + 8006f58: 891b ldrh r3, [r3, #8] + 8006f5a: 4619 mov r1, r3 + 8006f5c: 68b8 ldr r0, [r7, #8] + 8006f5e: f7ff fb19 bl 8006594 pbuf_free(p); - 8006f66: 6878 ldr r0, [r7, #4] - 8006f68: f7fe fd18 bl 800599c - 8006f6c: e008 b.n 8006f80 + 8006f62: 6878 ldr r0, [r7, #4] + 8006f64: f7fe fd18 bl 8005998 + 8006f68: e008 b.n 8006f7c } else if (err == ERR_OK) { - 8006f6e: f997 3003 ldrsb.w r3, [r7, #3] - 8006f72: 2b00 cmp r3, #0 - 8006f74: d104 bne.n 8006f80 + 8006f6a: f997 3003 ldrsb.w r3, [r7, #3] + 8006f6e: 2b00 cmp r3, #0 + 8006f70: d104 bne.n 8006f7c return tcp_close(pcb); - 8006f76: 68b8 ldr r0, [r7, #8] - 8006f78: f7ff f9be bl 80062f8 - 8006f7c: 4603 mov r3, r0 - 8006f7e: e000 b.n 8006f82 + 8006f72: 68b8 ldr r0, [r7, #8] + 8006f74: f7ff f9be bl 80062f4 + 8006f78: 4603 mov r3, r0 + 8006f7a: e000 b.n 8006f7e } return ERR_OK; - 8006f80: 2300 movs r3, #0 + 8006f7c: 2300 movs r3, #0 } - 8006f82: 4618 mov r0, r3 - 8006f84: 3710 adds r7, #16 - 8006f86: 46bd mov sp, r7 - 8006f88: bd80 pop {r7, pc} - 8006f8a: bf00 nop - 8006f8c: 080159bc .word 0x080159bc - 8006f90: 08015f2c .word 0x08015f2c - 8006f94: 08015a00 .word 0x08015a00 + 8006f7e: 4618 mov r0, r3 + 8006f80: 3710 adds r7, #16 + 8006f82: 46bd mov sp, r7 + 8006f84: bd80 pop {r7, pc} + 8006f86: bf00 nop + 8006f88: 080159bc .word 0x080159bc + 8006f8c: 08015f2c .word 0x08015f2c + 8006f90: 08015a00 .word 0x08015a00 -08006f98 : +08006f94 : * * @param prio minimum priority */ static void tcp_kill_prio(u8_t prio) { - 8006f98: b580 push {r7, lr} - 8006f9a: b086 sub sp, #24 - 8006f9c: af00 add r7, sp, #0 - 8006f9e: 4603 mov r3, r0 - 8006fa0: 71fb strb r3, [r7, #7] + 8006f94: b580 push {r7, lr} + 8006f96: b086 sub sp, #24 + 8006f98: af00 add r7, sp, #0 + 8006f9a: 4603 mov r3, r0 + 8006f9c: 71fb strb r3, [r7, #7] struct tcp_pcb *pcb, *inactive; u32_t inactivity; u8_t mprio; mprio = LWIP_MIN(TCP_PRIO_MAX, prio); - 8006fa2: f997 3007 ldrsb.w r3, [r7, #7] - 8006fa6: 2b00 cmp r3, #0 - 8006fa8: db01 blt.n 8006fae - 8006faa: 79fb ldrb r3, [r7, #7] - 8006fac: e000 b.n 8006fb0 - 8006fae: 237f movs r3, #127 ; 0x7f - 8006fb0: 72fb strb r3, [r7, #11] + 8006f9e: f997 3007 ldrsb.w r3, [r7, #7] + 8006fa2: 2b00 cmp r3, #0 + 8006fa4: db01 blt.n 8006faa + 8006fa6: 79fb ldrb r3, [r7, #7] + 8006fa8: e000 b.n 8006fac + 8006faa: 237f movs r3, #127 ; 0x7f + 8006fac: 72fb strb r3, [r7, #11] /* We want to kill connections with a lower prio, so bail out if * supplied prio is 0 - there can never be a lower prio */ if (mprio == 0) { - 8006fb2: 7afb ldrb r3, [r7, #11] - 8006fb4: 2b00 cmp r3, #0 - 8006fb6: d034 beq.n 8007022 + 8006fae: 7afb ldrb r3, [r7, #11] + 8006fb0: 2b00 cmp r3, #0 + 8006fb2: d034 beq.n 800701e /* We only want kill connections with a lower prio, so decrement prio by one * and start searching for oldest connection with same or lower priority than mprio. * We want to find the connections with the lowest possible prio, and among * these the one with the longest inactivity time. */ mprio--; - 8006fb8: 7afb ldrb r3, [r7, #11] - 8006fba: 3b01 subs r3, #1 - 8006fbc: 72fb strb r3, [r7, #11] + 8006fb4: 7afb ldrb r3, [r7, #11] + 8006fb6: 3b01 subs r3, #1 + 8006fb8: 72fb strb r3, [r7, #11] inactivity = 0; - 8006fbe: 2300 movs r3, #0 - 8006fc0: 60fb str r3, [r7, #12] + 8006fba: 2300 movs r3, #0 + 8006fbc: 60fb str r3, [r7, #12] inactive = NULL; - 8006fc2: 2300 movs r3, #0 - 8006fc4: 613b str r3, [r7, #16] + 8006fbe: 2300 movs r3, #0 + 8006fc0: 613b str r3, [r7, #16] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8006fc6: 4b19 ldr r3, [pc, #100] ; (800702c ) - 8006fc8: 681b ldr r3, [r3, #0] - 8006fca: 617b str r3, [r7, #20] - 8006fcc: e01f b.n 800700e + 8006fc2: 4b19 ldr r3, [pc, #100] ; (8007028 ) + 8006fc4: 681b ldr r3, [r3, #0] + 8006fc6: 617b str r3, [r7, #20] + 8006fc8: e01f b.n 800700a /* lower prio is always a kill candidate */ if ((pcb->prio < mprio) || - 8006fce: 697b ldr r3, [r7, #20] - 8006fd0: 7d5b ldrb r3, [r3, #21] - 8006fd2: 7afa ldrb r2, [r7, #11] - 8006fd4: 429a cmp r2, r3 - 8006fd6: d80c bhi.n 8006ff2 + 8006fca: 697b ldr r3, [r7, #20] + 8006fcc: 7d5b ldrb r3, [r3, #21] + 8006fce: 7afa ldrb r2, [r7, #11] + 8006fd0: 429a cmp r2, r3 + 8006fd2: d80c bhi.n 8006fee /* longer inactivity is also a kill candidate */ ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) { - 8006fd8: 697b ldr r3, [r7, #20] - 8006fda: 7d5b ldrb r3, [r3, #21] + 8006fd4: 697b ldr r3, [r7, #20] + 8006fd6: 7d5b ldrb r3, [r3, #21] if ((pcb->prio < mprio) || - 8006fdc: 7afa ldrb r2, [r7, #11] - 8006fde: 429a cmp r2, r3 - 8006fe0: d112 bne.n 8007008 + 8006fd8: 7afa ldrb r2, [r7, #11] + 8006fda: 429a cmp r2, r3 + 8006fdc: d112 bne.n 8007004 ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) { - 8006fe2: 4b13 ldr r3, [pc, #76] ; (8007030 ) - 8006fe4: 681a ldr r2, [r3, #0] - 8006fe6: 697b ldr r3, [r7, #20] - 8006fe8: 6a1b ldr r3, [r3, #32] - 8006fea: 1ad3 subs r3, r2, r3 - 8006fec: 68fa ldr r2, [r7, #12] - 8006fee: 429a cmp r2, r3 - 8006ff0: d80a bhi.n 8007008 + 8006fde: 4b13 ldr r3, [pc, #76] ; (800702c ) + 8006fe0: 681a ldr r2, [r3, #0] + 8006fe2: 697b ldr r3, [r7, #20] + 8006fe4: 6a1b ldr r3, [r3, #32] + 8006fe6: 1ad3 subs r3, r2, r3 + 8006fe8: 68fa ldr r2, [r7, #12] + 8006fea: 429a cmp r2, r3 + 8006fec: d80a bhi.n 8007004 inactivity = tcp_ticks - pcb->tmr; - 8006ff2: 4b0f ldr r3, [pc, #60] ; (8007030 ) - 8006ff4: 681a ldr r2, [r3, #0] - 8006ff6: 697b ldr r3, [r7, #20] - 8006ff8: 6a1b ldr r3, [r3, #32] - 8006ffa: 1ad3 subs r3, r2, r3 - 8006ffc: 60fb str r3, [r7, #12] + 8006fee: 4b0f ldr r3, [pc, #60] ; (800702c ) + 8006ff0: 681a ldr r2, [r3, #0] + 8006ff2: 697b ldr r3, [r7, #20] + 8006ff4: 6a1b ldr r3, [r3, #32] + 8006ff6: 1ad3 subs r3, r2, r3 + 8006ff8: 60fb str r3, [r7, #12] inactive = pcb; - 8006ffe: 697b ldr r3, [r7, #20] - 8007000: 613b str r3, [r7, #16] + 8006ffa: 697b ldr r3, [r7, #20] + 8006ffc: 613b str r3, [r7, #16] mprio = pcb->prio; - 8007002: 697b ldr r3, [r7, #20] - 8007004: 7d5b ldrb r3, [r3, #21] - 8007006: 72fb strb r3, [r7, #11] + 8006ffe: 697b ldr r3, [r7, #20] + 8007000: 7d5b ldrb r3, [r3, #21] + 8007002: 72fb strb r3, [r7, #11] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8007008: 697b ldr r3, [r7, #20] - 800700a: 68db ldr r3, [r3, #12] - 800700c: 617b str r3, [r7, #20] - 800700e: 697b ldr r3, [r7, #20] - 8007010: 2b00 cmp r3, #0 - 8007012: d1dc bne.n 8006fce + 8007004: 697b ldr r3, [r7, #20] + 8007006: 68db ldr r3, [r3, #12] + 8007008: 617b str r3, [r7, #20] + 800700a: 697b ldr r3, [r7, #20] + 800700c: 2b00 cmp r3, #0 + 800700e: d1dc bne.n 8006fca } } if (inactive != NULL) { - 8007014: 693b ldr r3, [r7, #16] - 8007016: 2b00 cmp r3, #0 - 8007018: d004 beq.n 8007024 + 8007010: 693b ldr r3, [r7, #16] + 8007012: 2b00 cmp r3, #0 + 8007014: d004 beq.n 8007020 LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n", (void *)inactive, inactivity)); tcp_abort(inactive); - 800701a: 6938 ldr r0, [r7, #16] - 800701c: f7ff fa56 bl 80064cc - 8007020: e000 b.n 8007024 + 8007016: 6938 ldr r0, [r7, #16] + 8007018: f7ff fa56 bl 80064c8 + 800701c: e000 b.n 8007020 return; - 8007022: bf00 nop + 800701e: bf00 nop } } - 8007024: 3718 adds r7, #24 - 8007026: 46bd mov sp, r7 - 8007028: bd80 pop {r7, pc} - 800702a: bf00 nop - 800702c: 20008c0c .word 0x20008c0c - 8007030: 20008c00 .word 0x20008c00 + 8007020: 3718 adds r7, #24 + 8007022: 46bd mov sp, r7 + 8007024: bd80 pop {r7, pc} + 8007026: bf00 nop + 8007028: 20008c0c .word 0x20008c0c + 800702c: 20008c00 .word 0x20008c00 -08007034 : +08007030 : * Kills the oldest connection that is in specific state. * Called from tcp_alloc() for LAST_ACK and CLOSING if no more connections are available. */ static void tcp_kill_state(enum tcp_state state) { - 8007034: b580 push {r7, lr} - 8007036: b086 sub sp, #24 - 8007038: af00 add r7, sp, #0 - 800703a: 4603 mov r3, r0 - 800703c: 71fb strb r3, [r7, #7] + 8007030: b580 push {r7, lr} + 8007032: b086 sub sp, #24 + 8007034: af00 add r7, sp, #0 + 8007036: 4603 mov r3, r0 + 8007038: 71fb strb r3, [r7, #7] struct tcp_pcb *pcb, *inactive; u32_t inactivity; LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK)); - 800703e: 79fb ldrb r3, [r7, #7] - 8007040: 2b08 cmp r3, #8 - 8007042: d009 beq.n 8007058 - 8007044: 79fb ldrb r3, [r7, #7] - 8007046: 2b09 cmp r3, #9 - 8007048: d006 beq.n 8007058 - 800704a: 4b1a ldr r3, [pc, #104] ; (80070b4 ) - 800704c: f240 62dd movw r2, #1757 ; 0x6dd - 8007050: 4919 ldr r1, [pc, #100] ; (80070b8 ) - 8007052: 481a ldr r0, [pc, #104] ; (80070bc ) - 8007054: f009 f9be bl 80103d4 + 800703a: 79fb ldrb r3, [r7, #7] + 800703c: 2b08 cmp r3, #8 + 800703e: d009 beq.n 8007054 + 8007040: 79fb ldrb r3, [r7, #7] + 8007042: 2b09 cmp r3, #9 + 8007044: d006 beq.n 8007054 + 8007046: 4b1a ldr r3, [pc, #104] ; (80070b0 ) + 8007048: f240 62dd movw r2, #1757 ; 0x6dd + 800704c: 4919 ldr r1, [pc, #100] ; (80070b4 ) + 800704e: 481a ldr r0, [pc, #104] ; (80070b8 ) + 8007050: f009 f9be bl 80103d0 inactivity = 0; - 8007058: 2300 movs r3, #0 - 800705a: 60fb str r3, [r7, #12] + 8007054: 2300 movs r3, #0 + 8007056: 60fb str r3, [r7, #12] inactive = NULL; - 800705c: 2300 movs r3, #0 - 800705e: 613b str r3, [r7, #16] + 8007058: 2300 movs r3, #0 + 800705a: 613b str r3, [r7, #16] /* Go through the list of active pcbs and get the oldest pcb that is in state CLOSING/LAST_ACK. */ for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8007060: 4b17 ldr r3, [pc, #92] ; (80070c0 ) - 8007062: 681b ldr r3, [r3, #0] - 8007064: 617b str r3, [r7, #20] - 8007066: e017 b.n 8007098 + 800705c: 4b17 ldr r3, [pc, #92] ; (80070bc ) + 800705e: 681b ldr r3, [r3, #0] + 8007060: 617b str r3, [r7, #20] + 8007062: e017 b.n 8007094 if (pcb->state == state) { - 8007068: 697b ldr r3, [r7, #20] - 800706a: 7d1b ldrb r3, [r3, #20] - 800706c: 79fa ldrb r2, [r7, #7] - 800706e: 429a cmp r2, r3 - 8007070: d10f bne.n 8007092 + 8007064: 697b ldr r3, [r7, #20] + 8007066: 7d1b ldrb r3, [r3, #20] + 8007068: 79fa ldrb r2, [r7, #7] + 800706a: 429a cmp r2, r3 + 800706c: d10f bne.n 800708e if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { - 8007072: 4b14 ldr r3, [pc, #80] ; (80070c4 ) - 8007074: 681a ldr r2, [r3, #0] - 8007076: 697b ldr r3, [r7, #20] - 8007078: 6a1b ldr r3, [r3, #32] - 800707a: 1ad3 subs r3, r2, r3 - 800707c: 68fa ldr r2, [r7, #12] - 800707e: 429a cmp r2, r3 - 8007080: d807 bhi.n 8007092 + 800706e: 4b14 ldr r3, [pc, #80] ; (80070c0 ) + 8007070: 681a ldr r2, [r3, #0] + 8007072: 697b ldr r3, [r7, #20] + 8007074: 6a1b ldr r3, [r3, #32] + 8007076: 1ad3 subs r3, r2, r3 + 8007078: 68fa ldr r2, [r7, #12] + 800707a: 429a cmp r2, r3 + 800707c: d807 bhi.n 800708e inactivity = tcp_ticks - pcb->tmr; - 8007082: 4b10 ldr r3, [pc, #64] ; (80070c4 ) - 8007084: 681a ldr r2, [r3, #0] - 8007086: 697b ldr r3, [r7, #20] - 8007088: 6a1b ldr r3, [r3, #32] - 800708a: 1ad3 subs r3, r2, r3 - 800708c: 60fb str r3, [r7, #12] + 800707e: 4b10 ldr r3, [pc, #64] ; (80070c0 ) + 8007080: 681a ldr r2, [r3, #0] + 8007082: 697b ldr r3, [r7, #20] + 8007084: 6a1b ldr r3, [r3, #32] + 8007086: 1ad3 subs r3, r2, r3 + 8007088: 60fb str r3, [r7, #12] inactive = pcb; - 800708e: 697b ldr r3, [r7, #20] - 8007090: 613b str r3, [r7, #16] + 800708a: 697b ldr r3, [r7, #20] + 800708c: 613b str r3, [r7, #16] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8007092: 697b ldr r3, [r7, #20] - 8007094: 68db ldr r3, [r3, #12] - 8007096: 617b str r3, [r7, #20] - 8007098: 697b ldr r3, [r7, #20] - 800709a: 2b00 cmp r3, #0 - 800709c: d1e4 bne.n 8007068 + 800708e: 697b ldr r3, [r7, #20] + 8007090: 68db ldr r3, [r3, #12] + 8007092: 617b str r3, [r7, #20] + 8007094: 697b ldr r3, [r7, #20] + 8007096: 2b00 cmp r3, #0 + 8007098: d1e4 bne.n 8007064 } } } if (inactive != NULL) { - 800709e: 693b ldr r3, [r7, #16] - 80070a0: 2b00 cmp r3, #0 - 80070a2: d003 beq.n 80070ac + 800709a: 693b ldr r3, [r7, #16] + 800709c: 2b00 cmp r3, #0 + 800709e: d003 beq.n 80070a8 LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_closing: killing oldest %s PCB %p (%"S32_F")\n", tcp_state_str[state], (void *)inactive, inactivity)); /* Don't send a RST, since no data is lost. */ tcp_abandon(inactive, 0); - 80070a4: 2100 movs r1, #0 - 80070a6: 6938 ldr r0, [r7, #16] - 80070a8: f7ff f952 bl 8006350 + 80070a0: 2100 movs r1, #0 + 80070a2: 6938 ldr r0, [r7, #16] + 80070a4: f7ff f952 bl 800634c } } - 80070ac: bf00 nop - 80070ae: 3718 adds r7, #24 - 80070b0: 46bd mov sp, r7 - 80070b2: bd80 pop {r7, pc} - 80070b4: 080159bc .word 0x080159bc - 80070b8: 08015f48 .word 0x08015f48 - 80070bc: 08015a00 .word 0x08015a00 - 80070c0: 20008c0c .word 0x20008c0c - 80070c4: 20008c00 .word 0x20008c00 + 80070a8: bf00 nop + 80070aa: 3718 adds r7, #24 + 80070ac: 46bd mov sp, r7 + 80070ae: bd80 pop {r7, pc} + 80070b0: 080159bc .word 0x080159bc + 80070b4: 08015f48 .word 0x08015f48 + 80070b8: 08015a00 .word 0x08015a00 + 80070bc: 20008c0c .word 0x20008c0c + 80070c0: 20008c00 .word 0x20008c00 -080070c8 : +080070c4 : * Kills the oldest connection that is in TIME_WAIT state. * Called from tcp_alloc() if no more connections are available. */ static void tcp_kill_timewait(void) { - 80070c8: b580 push {r7, lr} - 80070ca: b084 sub sp, #16 - 80070cc: af00 add r7, sp, #0 + 80070c4: b580 push {r7, lr} + 80070c6: b084 sub sp, #16 + 80070c8: af00 add r7, sp, #0 struct tcp_pcb *pcb, *inactive; u32_t inactivity; inactivity = 0; - 80070ce: 2300 movs r3, #0 - 80070d0: 607b str r3, [r7, #4] + 80070ca: 2300 movs r3, #0 + 80070cc: 607b str r3, [r7, #4] inactive = NULL; - 80070d2: 2300 movs r3, #0 - 80070d4: 60bb str r3, [r7, #8] + 80070ce: 2300 movs r3, #0 + 80070d0: 60bb str r3, [r7, #8] /* Go through the list of TIME_WAIT pcbs and get the oldest pcb. */ for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 80070d6: 4b12 ldr r3, [pc, #72] ; (8007120 ) - 80070d8: 681b ldr r3, [r3, #0] - 80070da: 60fb str r3, [r7, #12] - 80070dc: e012 b.n 8007104 + 80070d2: 4b12 ldr r3, [pc, #72] ; (800711c ) + 80070d4: 681b ldr r3, [r3, #0] + 80070d6: 60fb str r3, [r7, #12] + 80070d8: e012 b.n 8007100 if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { - 80070de: 4b11 ldr r3, [pc, #68] ; (8007124 ) - 80070e0: 681a ldr r2, [r3, #0] - 80070e2: 68fb ldr r3, [r7, #12] - 80070e4: 6a1b ldr r3, [r3, #32] - 80070e6: 1ad3 subs r3, r2, r3 - 80070e8: 687a ldr r2, [r7, #4] - 80070ea: 429a cmp r2, r3 - 80070ec: d807 bhi.n 80070fe + 80070da: 4b11 ldr r3, [pc, #68] ; (8007120 ) + 80070dc: 681a ldr r2, [r3, #0] + 80070de: 68fb ldr r3, [r7, #12] + 80070e0: 6a1b ldr r3, [r3, #32] + 80070e2: 1ad3 subs r3, r2, r3 + 80070e4: 687a ldr r2, [r7, #4] + 80070e6: 429a cmp r2, r3 + 80070e8: d807 bhi.n 80070fa inactivity = tcp_ticks - pcb->tmr; - 80070ee: 4b0d ldr r3, [pc, #52] ; (8007124 ) - 80070f0: 681a ldr r2, [r3, #0] - 80070f2: 68fb ldr r3, [r7, #12] - 80070f4: 6a1b ldr r3, [r3, #32] - 80070f6: 1ad3 subs r3, r2, r3 - 80070f8: 607b str r3, [r7, #4] + 80070ea: 4b0d ldr r3, [pc, #52] ; (8007120 ) + 80070ec: 681a ldr r2, [r3, #0] + 80070ee: 68fb ldr r3, [r7, #12] + 80070f0: 6a1b ldr r3, [r3, #32] + 80070f2: 1ad3 subs r3, r2, r3 + 80070f4: 607b str r3, [r7, #4] inactive = pcb; - 80070fa: 68fb ldr r3, [r7, #12] - 80070fc: 60bb str r3, [r7, #8] + 80070f6: 68fb ldr r3, [r7, #12] + 80070f8: 60bb str r3, [r7, #8] for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 80070fe: 68fb ldr r3, [r7, #12] - 8007100: 68db ldr r3, [r3, #12] - 8007102: 60fb str r3, [r7, #12] - 8007104: 68fb ldr r3, [r7, #12] - 8007106: 2b00 cmp r3, #0 - 8007108: d1e9 bne.n 80070de + 80070fa: 68fb ldr r3, [r7, #12] + 80070fc: 68db ldr r3, [r3, #12] + 80070fe: 60fb str r3, [r7, #12] + 8007100: 68fb ldr r3, [r7, #12] + 8007102: 2b00 cmp r3, #0 + 8007104: d1e9 bne.n 80070da } } if (inactive != NULL) { - 800710a: 68bb ldr r3, [r7, #8] - 800710c: 2b00 cmp r3, #0 - 800710e: d002 beq.n 8007116 + 8007106: 68bb ldr r3, [r7, #8] + 8007108: 2b00 cmp r3, #0 + 800710a: d002 beq.n 8007112 LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n", (void *)inactive, inactivity)); tcp_abort(inactive); - 8007110: 68b8 ldr r0, [r7, #8] - 8007112: f7ff f9db bl 80064cc + 800710c: 68b8 ldr r0, [r7, #8] + 800710e: f7ff f9db bl 80064c8 } } - 8007116: bf00 nop - 8007118: 3710 adds r7, #16 - 800711a: 46bd mov sp, r7 - 800711c: bd80 pop {r7, pc} - 800711e: bf00 nop - 8007120: 20008c10 .word 0x20008c10 - 8007124: 20008c00 .word 0x20008c00 + 8007112: bf00 nop + 8007114: 3710 adds r7, #16 + 8007116: 46bd mov sp, r7 + 8007118: bd80 pop {r7, pc} + 800711a: bf00 nop + 800711c: 20008c10 .word 0x20008c10 + 8007120: 20008c00 .word 0x20008c00 -08007128 : +08007124 : * now send the FIN (which failed before), the pcb might be in a state that is * OK for us to now free it. */ static void tcp_handle_closepend(void) { - 8007128: b580 push {r7, lr} - 800712a: b082 sub sp, #8 - 800712c: af00 add r7, sp, #0 + 8007124: b580 push {r7, lr} + 8007126: b082 sub sp, #8 + 8007128: af00 add r7, sp, #0 struct tcp_pcb *pcb = tcp_active_pcbs; - 800712e: 4b10 ldr r3, [pc, #64] ; (8007170 ) - 8007130: 681b ldr r3, [r3, #0] - 8007132: 607b str r3, [r7, #4] + 800712a: 4b10 ldr r3, [pc, #64] ; (800716c ) + 800712c: 681b ldr r3, [r3, #0] + 800712e: 607b str r3, [r7, #4] while (pcb != NULL) { - 8007134: e014 b.n 8007160 + 8007130: e014 b.n 800715c struct tcp_pcb *next = pcb->next; - 8007136: 687b ldr r3, [r7, #4] - 8007138: 68db ldr r3, [r3, #12] - 800713a: 603b str r3, [r7, #0] + 8007132: 687b ldr r3, [r7, #4] + 8007134: 68db ldr r3, [r3, #12] + 8007136: 603b str r3, [r7, #0] /* send pending FIN */ if (pcb->flags & TF_CLOSEPEND) { - 800713c: 687b ldr r3, [r7, #4] - 800713e: 8b5b ldrh r3, [r3, #26] - 8007140: f003 0308 and.w r3, r3, #8 - 8007144: 2b00 cmp r3, #0 - 8007146: d009 beq.n 800715c + 8007138: 687b ldr r3, [r7, #4] + 800713a: 8b5b ldrh r3, [r3, #26] + 800713c: f003 0308 and.w r3, r3, #8 + 8007140: 2b00 cmp r3, #0 + 8007142: d009 beq.n 8007158 LWIP_DEBUGF(TCP_DEBUG, ("tcp_handle_closepend: pending FIN\n")); tcp_clear_flags(pcb, TF_CLOSEPEND); - 8007148: 687b ldr r3, [r7, #4] - 800714a: 8b5b ldrh r3, [r3, #26] - 800714c: f023 0308 bic.w r3, r3, #8 - 8007150: b29a uxth r2, r3 - 8007152: 687b ldr r3, [r7, #4] - 8007154: 835a strh r2, [r3, #26] + 8007144: 687b ldr r3, [r7, #4] + 8007146: 8b5b ldrh r3, [r3, #26] + 8007148: f023 0308 bic.w r3, r3, #8 + 800714c: b29a uxth r2, r3 + 800714e: 687b ldr r3, [r7, #4] + 8007150: 835a strh r2, [r3, #26] tcp_close_shutdown_fin(pcb); - 8007156: 6878 ldr r0, [r7, #4] - 8007158: f7ff f864 bl 8006224 + 8007152: 6878 ldr r0, [r7, #4] + 8007154: f7ff f864 bl 8006220 } pcb = next; - 800715c: 683b ldr r3, [r7, #0] - 800715e: 607b str r3, [r7, #4] + 8007158: 683b ldr r3, [r7, #0] + 800715a: 607b str r3, [r7, #4] while (pcb != NULL) { - 8007160: 687b ldr r3, [r7, #4] - 8007162: 2b00 cmp r3, #0 - 8007164: d1e7 bne.n 8007136 + 800715c: 687b ldr r3, [r7, #4] + 800715e: 2b00 cmp r3, #0 + 8007160: d1e7 bne.n 8007132 } } - 8007166: bf00 nop - 8007168: bf00 nop - 800716a: 3708 adds r7, #8 - 800716c: 46bd mov sp, r7 - 800716e: bd80 pop {r7, pc} - 8007170: 20008c0c .word 0x20008c0c + 8007162: bf00 nop + 8007164: bf00 nop + 8007166: 3708 adds r7, #8 + 8007168: 46bd mov sp, r7 + 800716a: bd80 pop {r7, pc} + 800716c: 20008c0c .word 0x20008c0c -08007174 : +08007170 : * @param prio priority for the new pcb * @return a new tcp_pcb that initially is in state CLOSED */ struct tcp_pcb * tcp_alloc(u8_t prio) { - 8007174: b580 push {r7, lr} - 8007176: b084 sub sp, #16 - 8007178: af00 add r7, sp, #0 - 800717a: 4603 mov r3, r0 - 800717c: 71fb strb r3, [r7, #7] + 8007170: b580 push {r7, lr} + 8007172: b084 sub sp, #16 + 8007174: af00 add r7, sp, #0 + 8007176: 4603 mov r3, r0 + 8007178: 71fb strb r3, [r7, #7] struct tcp_pcb *pcb; LWIP_ASSERT_CORE_LOCKED(); pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 800717e: 2001 movs r0, #1 - 8007180: f7fd fd1a bl 8004bb8 - 8007184: 60f8 str r0, [r7, #12] + 800717a: 2001 movs r0, #1 + 800717c: f7fd fd1a bl 8004bb4 + 8007180: 60f8 str r0, [r7, #12] if (pcb == NULL) { - 8007186: 68fb ldr r3, [r7, #12] - 8007188: 2b00 cmp r3, #0 - 800718a: d126 bne.n 80071da + 8007182: 68fb ldr r3, [r7, #12] + 8007184: 2b00 cmp r3, #0 + 8007186: d126 bne.n 80071d6 /* Try to send FIN for all pcbs stuck in TF_CLOSEPEND first */ tcp_handle_closepend(); - 800718c: f7ff ffcc bl 8007128 + 8007188: f7ff ffcc bl 8007124 /* Try killing oldest connection in TIME-WAIT. */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest TIME-WAIT connection\n")); tcp_kill_timewait(); - 8007190: f7ff ff9a bl 80070c8 + 800718c: f7ff ff9a bl 80070c4 /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 8007194: 2001 movs r0, #1 - 8007196: f7fd fd0f bl 8004bb8 - 800719a: 60f8 str r0, [r7, #12] + 8007190: 2001 movs r0, #1 + 8007192: f7fd fd0f bl 8004bb4 + 8007196: 60f8 str r0, [r7, #12] if (pcb == NULL) { - 800719c: 68fb ldr r3, [r7, #12] - 800719e: 2b00 cmp r3, #0 - 80071a0: d11b bne.n 80071da + 8007198: 68fb ldr r3, [r7, #12] + 800719a: 2b00 cmp r3, #0 + 800719c: d11b bne.n 80071d6 /* Try killing oldest connection in LAST-ACK (these wouldn't go to TIME-WAIT). */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest LAST-ACK connection\n")); tcp_kill_state(LAST_ACK); - 80071a2: 2009 movs r0, #9 - 80071a4: f7ff ff46 bl 8007034 + 800719e: 2009 movs r0, #9 + 80071a0: f7ff ff46 bl 8007030 /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80071a8: 2001 movs r0, #1 - 80071aa: f7fd fd05 bl 8004bb8 - 80071ae: 60f8 str r0, [r7, #12] + 80071a4: 2001 movs r0, #1 + 80071a6: f7fd fd05 bl 8004bb4 + 80071aa: 60f8 str r0, [r7, #12] if (pcb == NULL) { - 80071b0: 68fb ldr r3, [r7, #12] - 80071b2: 2b00 cmp r3, #0 - 80071b4: d111 bne.n 80071da + 80071ac: 68fb ldr r3, [r7, #12] + 80071ae: 2b00 cmp r3, #0 + 80071b0: d111 bne.n 80071d6 /* Try killing oldest connection in CLOSING. */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest CLOSING connection\n")); tcp_kill_state(CLOSING); - 80071b6: 2008 movs r0, #8 - 80071b8: f7ff ff3c bl 8007034 + 80071b2: 2008 movs r0, #8 + 80071b4: f7ff ff3c bl 8007030 /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80071bc: 2001 movs r0, #1 - 80071be: f7fd fcfb bl 8004bb8 - 80071c2: 60f8 str r0, [r7, #12] + 80071b8: 2001 movs r0, #1 + 80071ba: f7fd fcfb bl 8004bb4 + 80071be: 60f8 str r0, [r7, #12] if (pcb == NULL) { - 80071c4: 68fb ldr r3, [r7, #12] - 80071c6: 2b00 cmp r3, #0 - 80071c8: d107 bne.n 80071da + 80071c0: 68fb ldr r3, [r7, #12] + 80071c2: 2b00 cmp r3, #0 + 80071c4: d107 bne.n 80071d6 /* Try killing oldest active connection with lower priority than the new one. */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio lower than %d\n", prio)); tcp_kill_prio(prio); - 80071ca: 79fb ldrb r3, [r7, #7] - 80071cc: 4618 mov r0, r3 - 80071ce: f7ff fee3 bl 8006f98 + 80071c6: 79fb ldrb r3, [r7, #7] + 80071c8: 4618 mov r0, r3 + 80071ca: f7ff fee3 bl 8006f94 /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80071d2: 2001 movs r0, #1 - 80071d4: f7fd fcf0 bl 8004bb8 - 80071d8: 60f8 str r0, [r7, #12] + 80071ce: 2001 movs r0, #1 + 80071d0: f7fd fcf0 bl 8004bb4 + 80071d4: 60f8 str r0, [r7, #12] if (pcb != NULL) { /* adjust err stats: memp_malloc failed above */ MEMP_STATS_DEC(err, MEMP_TCP_PCB); } } if (pcb != NULL) { - 80071da: 68fb ldr r3, [r7, #12] - 80071dc: 2b00 cmp r3, #0 - 80071de: d03f beq.n 8007260 + 80071d6: 68fb ldr r3, [r7, #12] + 80071d8: 2b00 cmp r3, #0 + 80071da: d03f beq.n 800725c /* zero out the whole pcb, so there is no need to initialize members to zero */ memset(pcb, 0, sizeof(struct tcp_pcb)); - 80071e0: 229c movs r2, #156 ; 0x9c - 80071e2: 2100 movs r1, #0 - 80071e4: 68f8 ldr r0, [r7, #12] - 80071e6: f009 f8ed bl 80103c4 + 80071dc: 229c movs r2, #156 ; 0x9c + 80071de: 2100 movs r1, #0 + 80071e0: 68f8 ldr r0, [r7, #12] + 80071e2: f009 f8ed bl 80103c0 pcb->prio = prio; - 80071ea: 68fb ldr r3, [r7, #12] - 80071ec: 79fa ldrb r2, [r7, #7] - 80071ee: 755a strb r2, [r3, #21] + 80071e6: 68fb ldr r3, [r7, #12] + 80071e8: 79fa ldrb r2, [r7, #7] + 80071ea: 755a strb r2, [r3, #21] pcb->snd_buf = TCP_SND_BUF; - 80071f0: 68fb ldr r3, [r7, #12] - 80071f2: f44f 6286 mov.w r2, #1072 ; 0x430 - 80071f6: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 + 80071ec: 68fb ldr r3, [r7, #12] + 80071ee: f44f 6286 mov.w r2, #1072 ; 0x430 + 80071f2: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 /* Start with a window that does not need scaling. When window scaling is enabled and used, the window is enlarged when both sides agree on scaling. */ pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND); - 80071fa: 68fb ldr r3, [r7, #12] - 80071fc: f44f 6206 mov.w r2, #2144 ; 0x860 - 8007200: 855a strh r2, [r3, #42] ; 0x2a + 80071f6: 68fb ldr r3, [r7, #12] + 80071f8: f44f 6206 mov.w r2, #2144 ; 0x860 + 80071fc: 855a strh r2, [r3, #42] ; 0x2a + 80071fe: 68fb ldr r3, [r7, #12] + 8007200: 8d5a ldrh r2, [r3, #42] ; 0x2a 8007202: 68fb ldr r3, [r7, #12] - 8007204: 8d5a ldrh r2, [r3, #42] ; 0x2a - 8007206: 68fb ldr r3, [r7, #12] - 8007208: 851a strh r2, [r3, #40] ; 0x28 + 8007204: 851a strh r2, [r3, #40] ; 0x28 pcb->ttl = TCP_TTL; - 800720a: 68fb ldr r3, [r7, #12] - 800720c: 22ff movs r2, #255 ; 0xff - 800720e: 72da strb r2, [r3, #11] + 8007206: 68fb ldr r3, [r7, #12] + 8007208: 22ff movs r2, #255 ; 0xff + 800720a: 72da strb r2, [r3, #11] /* As initial send MSS, we use TCP_MSS but limit it to 536. The send MSS is updated when an MSS option is received. */ pcb->mss = INITIAL_MSS; - 8007210: 68fb ldr r3, [r7, #12] - 8007212: f44f 7206 mov.w r2, #536 ; 0x218 - 8007216: 865a strh r2, [r3, #50] ; 0x32 + 800720c: 68fb ldr r3, [r7, #12] + 800720e: f44f 7206 mov.w r2, #536 ; 0x218 + 8007212: 865a strh r2, [r3, #50] ; 0x32 pcb->rto = 3000 / TCP_SLOW_INTERVAL; - 8007218: 68fb ldr r3, [r7, #12] - 800721a: 2206 movs r2, #6 - 800721c: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 + 8007214: 68fb ldr r3, [r7, #12] + 8007216: 2206 movs r2, #6 + 8007218: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 pcb->sv = 3000 / TCP_SLOW_INTERVAL; - 8007220: 68fb ldr r3, [r7, #12] - 8007222: 2206 movs r2, #6 - 8007224: 87da strh r2, [r3, #62] ; 0x3e + 800721c: 68fb ldr r3, [r7, #12] + 800721e: 2206 movs r2, #6 + 8007220: 87da strh r2, [r3, #62] ; 0x3e pcb->rtime = -1; - 8007226: 68fb ldr r3, [r7, #12] - 8007228: f64f 72ff movw r2, #65535 ; 0xffff - 800722c: 861a strh r2, [r3, #48] ; 0x30 + 8007222: 68fb ldr r3, [r7, #12] + 8007224: f64f 72ff movw r2, #65535 ; 0xffff + 8007228: 861a strh r2, [r3, #48] ; 0x30 pcb->cwnd = 1; - 800722e: 68fb ldr r3, [r7, #12] - 8007230: 2201 movs r2, #1 - 8007232: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 800722a: 68fb ldr r3, [r7, #12] + 800722c: 2201 movs r2, #1 + 800722e: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 pcb->tmr = tcp_ticks; - 8007236: 4b0d ldr r3, [pc, #52] ; (800726c ) - 8007238: 681a ldr r2, [r3, #0] - 800723a: 68fb ldr r3, [r7, #12] - 800723c: 621a str r2, [r3, #32] + 8007232: 4b0d ldr r3, [pc, #52] ; (8007268 ) + 8007234: 681a ldr r2, [r3, #0] + 8007236: 68fb ldr r3, [r7, #12] + 8007238: 621a str r2, [r3, #32] pcb->last_timer = tcp_timer_ctr; - 800723e: 4b0c ldr r3, [pc, #48] ; (8007270 ) - 8007240: 781a ldrb r2, [r3, #0] - 8007242: 68fb ldr r3, [r7, #12] - 8007244: 779a strb r2, [r3, #30] + 800723a: 4b0c ldr r3, [pc, #48] ; (800726c ) + 800723c: 781a ldrb r2, [r3, #0] + 800723e: 68fb ldr r3, [r7, #12] + 8007240: 779a strb r2, [r3, #30] of using the largest advertised receive window. We've seen complications with receiving TCPs that use window scaling and/or window auto-tuning where the initial advertised window is very small and then grows rapidly once the connection is established. To avoid these complications, we set ssthresh to the largest effective cwnd (amount of in-flight data) that the sender can have. */ pcb->ssthresh = TCP_SND_BUF; - 8007246: 68fb ldr r3, [r7, #12] - 8007248: f44f 6286 mov.w r2, #1072 ; 0x430 - 800724c: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 8007242: 68fb ldr r3, [r7, #12] + 8007244: f44f 6286 mov.w r2, #1072 ; 0x430 + 8007248: f8a3 204a strh.w r2, [r3, #74] ; 0x4a #if LWIP_CALLBACK_API pcb->recv = tcp_recv_null; - 8007250: 68fb ldr r3, [r7, #12] - 8007252: 4a08 ldr r2, [pc, #32] ; (8007274 ) - 8007254: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 800724c: 68fb ldr r3, [r7, #12] + 800724e: 4a08 ldr r2, [pc, #32] ; (8007270 ) + 8007250: f8c3 2084 str.w r2, [r3, #132] ; 0x84 #endif /* LWIP_CALLBACK_API */ /* Init KEEPALIVE timer */ pcb->keep_idle = TCP_KEEPIDLE_DEFAULT; - 8007258: 68fb ldr r3, [r7, #12] - 800725a: 4a07 ldr r2, [pc, #28] ; (8007278 ) - 800725c: f8c3 2094 str.w r2, [r3, #148] ; 0x94 + 8007254: 68fb ldr r3, [r7, #12] + 8007256: 4a07 ldr r2, [pc, #28] ; (8007274 ) + 8007258: f8c3 2094 str.w r2, [r3, #148] ; 0x94 #if LWIP_TCP_KEEPALIVE pcb->keep_intvl = TCP_KEEPINTVL_DEFAULT; pcb->keep_cnt = TCP_KEEPCNT_DEFAULT; #endif /* LWIP_TCP_KEEPALIVE */ } return pcb; - 8007260: 68fb ldr r3, [r7, #12] + 800725c: 68fb ldr r3, [r7, #12] } - 8007262: 4618 mov r0, r3 - 8007264: 3710 adds r7, #16 - 8007266: 46bd mov sp, r7 - 8007268: bd80 pop {r7, pc} - 800726a: bf00 nop - 800726c: 20008c00 .word 0x20008c00 - 8007270: 20008c16 .word 0x20008c16 - 8007274: 08006f2d .word 0x08006f2d - 8007278: 006ddd00 .word 0x006ddd00 + 800725e: 4618 mov r0, r3 + 8007260: 3710 adds r7, #16 + 8007262: 46bd mov sp, r7 + 8007264: bd80 pop {r7, pc} + 8007266: bf00 nop + 8007268: 20008c00 .word 0x20008c00 + 800726c: 20008c16 .word 0x20008c16 + 8007270: 08006f29 .word 0x08006f29 + 8007274: 006ddd00 .word 0x006ddd00 -0800727c : +08007278 : * * @param pcb tcp_pcb to purge. The pcb itself is not deallocated! */ void tcp_pcb_purge(struct tcp_pcb *pcb) { - 800727c: b580 push {r7, lr} - 800727e: b082 sub sp, #8 - 8007280: af00 add r7, sp, #0 - 8007282: 6078 str r0, [r7, #4] + 8007278: b580 push {r7, lr} + 800727a: b082 sub sp, #8 + 800727c: af00 add r7, sp, #0 + 800727e: 6078 str r0, [r7, #4] LWIP_ERROR("tcp_pcb_purge: invalid pcb", pcb != NULL, return); - 8007284: 687b ldr r3, [r7, #4] - 8007286: 2b00 cmp r3, #0 - 8007288: d107 bne.n 800729a - 800728a: 4b21 ldr r3, [pc, #132] ; (8007310 ) - 800728c: f640 0251 movw r2, #2129 ; 0x851 - 8007290: 4920 ldr r1, [pc, #128] ; (8007314 ) - 8007292: 4821 ldr r0, [pc, #132] ; (8007318 ) - 8007294: f009 f89e bl 80103d4 - 8007298: e037 b.n 800730a + 8007280: 687b ldr r3, [r7, #4] + 8007282: 2b00 cmp r3, #0 + 8007284: d107 bne.n 8007296 + 8007286: 4b21 ldr r3, [pc, #132] ; (800730c ) + 8007288: f640 0251 movw r2, #2129 ; 0x851 + 800728c: 4920 ldr r1, [pc, #128] ; (8007310 ) + 800728e: 4821 ldr r0, [pc, #132] ; (8007314 ) + 8007290: f009 f89e bl 80103d0 + 8007294: e037 b.n 8007306 if (pcb->state != CLOSED && - 800729a: 687b ldr r3, [r7, #4] - 800729c: 7d1b ldrb r3, [r3, #20] - 800729e: 2b00 cmp r3, #0 - 80072a0: d033 beq.n 800730a + 8007296: 687b ldr r3, [r7, #4] + 8007298: 7d1b ldrb r3, [r3, #20] + 800729a: 2b00 cmp r3, #0 + 800729c: d033 beq.n 8007306 pcb->state != TIME_WAIT && - 80072a2: 687b ldr r3, [r7, #4] - 80072a4: 7d1b ldrb r3, [r3, #20] + 800729e: 687b ldr r3, [r7, #4] + 80072a0: 7d1b ldrb r3, [r3, #20] if (pcb->state != CLOSED && - 80072a6: 2b0a cmp r3, #10 - 80072a8: d02f beq.n 800730a + 80072a2: 2b0a cmp r3, #10 + 80072a4: d02f beq.n 8007306 pcb->state != LISTEN) { - 80072aa: 687b ldr r3, [r7, #4] - 80072ac: 7d1b ldrb r3, [r3, #20] + 80072a6: 687b ldr r3, [r7, #4] + 80072a8: 7d1b ldrb r3, [r3, #20] pcb->state != TIME_WAIT && - 80072ae: 2b01 cmp r3, #1 - 80072b0: d02b beq.n 800730a + 80072aa: 2b01 cmp r3, #1 + 80072ac: d02b beq.n 8007306 LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge\n")); tcp_backlog_accepted(pcb); if (pcb->refused_data != NULL) { - 80072b2: 687b ldr r3, [r7, #4] - 80072b4: 6f9b ldr r3, [r3, #120] ; 0x78 - 80072b6: 2b00 cmp r3, #0 - 80072b8: d007 beq.n 80072ca + 80072ae: 687b ldr r3, [r7, #4] + 80072b0: 6f9b ldr r3, [r3, #120] ; 0x78 + 80072b2: 2b00 cmp r3, #0 + 80072b4: d007 beq.n 80072c6 LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->refused_data\n")); pbuf_free(pcb->refused_data); - 80072ba: 687b ldr r3, [r7, #4] - 80072bc: 6f9b ldr r3, [r3, #120] ; 0x78 - 80072be: 4618 mov r0, r3 - 80072c0: f7fe fb6c bl 800599c + 80072b6: 687b ldr r3, [r7, #4] + 80072b8: 6f9b ldr r3, [r3, #120] ; 0x78 + 80072ba: 4618 mov r0, r3 + 80072bc: f7fe fb6c bl 8005998 pcb->refused_data = NULL; - 80072c4: 687b ldr r3, [r7, #4] - 80072c6: 2200 movs r2, #0 - 80072c8: 679a str r2, [r3, #120] ; 0x78 + 80072c0: 687b ldr r3, [r7, #4] + 80072c2: 2200 movs r2, #0 + 80072c4: 679a str r2, [r3, #120] ; 0x78 } if (pcb->unacked != NULL) { LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->unacked\n")); } #if TCP_QUEUE_OOSEQ if (pcb->ooseq != NULL) { - 80072ca: 687b ldr r3, [r7, #4] - 80072cc: 6f5b ldr r3, [r3, #116] ; 0x74 - 80072ce: 2b00 cmp r3, #0 - 80072d0: d002 beq.n 80072d8 + 80072c6: 687b ldr r3, [r7, #4] + 80072c8: 6f5b ldr r3, [r3, #116] ; 0x74 + 80072ca: 2b00 cmp r3, #0 + 80072cc: d002 beq.n 80072d4 LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n")); tcp_free_ooseq(pcb); - 80072d2: 6878 ldr r0, [r7, #4] - 80072d4: f000 f986 bl 80075e4 + 80072ce: 6878 ldr r0, [r7, #4] + 80072d0: f000 f986 bl 80075e0 } #endif /* TCP_QUEUE_OOSEQ */ /* Stop the retransmission timer as it will expect data on unacked queue if it fires */ pcb->rtime = -1; - 80072d8: 687b ldr r3, [r7, #4] - 80072da: f64f 72ff movw r2, #65535 ; 0xffff - 80072de: 861a strh r2, [r3, #48] ; 0x30 + 80072d4: 687b ldr r3, [r7, #4] + 80072d6: f64f 72ff movw r2, #65535 ; 0xffff + 80072da: 861a strh r2, [r3, #48] ; 0x30 tcp_segs_free(pcb->unsent); - 80072e0: 687b ldr r3, [r7, #4] - 80072e2: 6edb ldr r3, [r3, #108] ; 0x6c - 80072e4: 4618 mov r0, r3 - 80072e6: f7ff fdc7 bl 8006e78 + 80072dc: 687b ldr r3, [r7, #4] + 80072de: 6edb ldr r3, [r3, #108] ; 0x6c + 80072e0: 4618 mov r0, r3 + 80072e2: f7ff fdc7 bl 8006e74 tcp_segs_free(pcb->unacked); - 80072ea: 687b ldr r3, [r7, #4] - 80072ec: 6f1b ldr r3, [r3, #112] ; 0x70 - 80072ee: 4618 mov r0, r3 - 80072f0: f7ff fdc2 bl 8006e78 + 80072e6: 687b ldr r3, [r7, #4] + 80072e8: 6f1b ldr r3, [r3, #112] ; 0x70 + 80072ea: 4618 mov r0, r3 + 80072ec: f7ff fdc2 bl 8006e74 pcb->unacked = pcb->unsent = NULL; - 80072f4: 687b ldr r3, [r7, #4] - 80072f6: 2200 movs r2, #0 - 80072f8: 66da str r2, [r3, #108] ; 0x6c + 80072f0: 687b ldr r3, [r7, #4] + 80072f2: 2200 movs r2, #0 + 80072f4: 66da str r2, [r3, #108] ; 0x6c + 80072f6: 687b ldr r3, [r7, #4] + 80072f8: 6eda ldr r2, [r3, #108] ; 0x6c 80072fa: 687b ldr r3, [r7, #4] - 80072fc: 6eda ldr r2, [r3, #108] ; 0x6c - 80072fe: 687b ldr r3, [r7, #4] - 8007300: 671a str r2, [r3, #112] ; 0x70 + 80072fc: 671a str r2, [r3, #112] ; 0x70 #if TCP_OVERSIZE pcb->unsent_oversize = 0; - 8007302: 687b ldr r3, [r7, #4] - 8007304: 2200 movs r2, #0 - 8007306: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 80072fe: 687b ldr r3, [r7, #4] + 8007300: 2200 movs r2, #0 + 8007302: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 #endif /* TCP_OVERSIZE */ } } - 800730a: 3708 adds r7, #8 - 800730c: 46bd mov sp, r7 - 800730e: bd80 pop {r7, pc} - 8007310: 080159bc .word 0x080159bc - 8007314: 08016008 .word 0x08016008 - 8007318: 08015a00 .word 0x08015a00 + 8007306: 3708 adds r7, #8 + 8007308: 46bd mov sp, r7 + 800730a: bd80 pop {r7, pc} + 800730c: 080159bc .word 0x080159bc + 8007310: 08016008 .word 0x08016008 + 8007314: 08015a00 .word 0x08015a00 -0800731c : +08007318 : * @param pcblist PCB list to purge. * @param pcb tcp_pcb to purge. The pcb itself is NOT deallocated! */ void tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb) { - 800731c: b580 push {r7, lr} - 800731e: b084 sub sp, #16 - 8007320: af00 add r7, sp, #0 - 8007322: 6078 str r0, [r7, #4] - 8007324: 6039 str r1, [r7, #0] + 8007318: b580 push {r7, lr} + 800731a: b084 sub sp, #16 + 800731c: af00 add r7, sp, #0 + 800731e: 6078 str r0, [r7, #4] + 8007320: 6039 str r1, [r7, #0] LWIP_ASSERT("tcp_pcb_remove: invalid pcb", pcb != NULL); - 8007326: 683b ldr r3, [r7, #0] - 8007328: 2b00 cmp r3, #0 - 800732a: d106 bne.n 800733a - 800732c: 4b3e ldr r3, [pc, #248] ; (8007428 ) - 800732e: f640 0283 movw r2, #2179 ; 0x883 - 8007332: 493e ldr r1, [pc, #248] ; (800742c ) - 8007334: 483e ldr r0, [pc, #248] ; (8007430 ) - 8007336: f009 f84d bl 80103d4 + 8007322: 683b ldr r3, [r7, #0] + 8007324: 2b00 cmp r3, #0 + 8007326: d106 bne.n 8007336 + 8007328: 4b3e ldr r3, [pc, #248] ; (8007424 ) + 800732a: f640 0283 movw r2, #2179 ; 0x883 + 800732e: 493e ldr r1, [pc, #248] ; (8007428 ) + 8007330: 483e ldr r0, [pc, #248] ; (800742c ) + 8007332: f009 f84d bl 80103d0 LWIP_ASSERT("tcp_pcb_remove: invalid pcblist", pcblist != NULL); - 800733a: 687b ldr r3, [r7, #4] - 800733c: 2b00 cmp r3, #0 - 800733e: d106 bne.n 800734e - 8007340: 4b39 ldr r3, [pc, #228] ; (8007428 ) - 8007342: f640 0284 movw r2, #2180 ; 0x884 - 8007346: 493b ldr r1, [pc, #236] ; (8007434 ) - 8007348: 4839 ldr r0, [pc, #228] ; (8007430 ) - 800734a: f009 f843 bl 80103d4 + 8007336: 687b ldr r3, [r7, #4] + 8007338: 2b00 cmp r3, #0 + 800733a: d106 bne.n 800734a + 800733c: 4b39 ldr r3, [pc, #228] ; (8007424 ) + 800733e: f640 0284 movw r2, #2180 ; 0x884 + 8007342: 493b ldr r1, [pc, #236] ; (8007430 ) + 8007344: 4839 ldr r0, [pc, #228] ; (800742c ) + 8007346: f009 f843 bl 80103d0 TCP_RMV(pcblist, pcb); - 800734e: 687b ldr r3, [r7, #4] - 8007350: 681b ldr r3, [r3, #0] - 8007352: 683a ldr r2, [r7, #0] - 8007354: 429a cmp r2, r3 - 8007356: d105 bne.n 8007364 - 8007358: 687b ldr r3, [r7, #4] - 800735a: 681b ldr r3, [r3, #0] - 800735c: 68da ldr r2, [r3, #12] - 800735e: 687b ldr r3, [r7, #4] - 8007360: 601a str r2, [r3, #0] - 8007362: e013 b.n 800738c - 8007364: 687b ldr r3, [r7, #4] - 8007366: 681b ldr r3, [r3, #0] - 8007368: 60fb str r3, [r7, #12] - 800736a: e00c b.n 8007386 - 800736c: 68fb ldr r3, [r7, #12] - 800736e: 68db ldr r3, [r3, #12] - 8007370: 683a ldr r2, [r7, #0] - 8007372: 429a cmp r2, r3 - 8007374: d104 bne.n 8007380 - 8007376: 683b ldr r3, [r7, #0] - 8007378: 68da ldr r2, [r3, #12] - 800737a: 68fb ldr r3, [r7, #12] - 800737c: 60da str r2, [r3, #12] - 800737e: e005 b.n 800738c - 8007380: 68fb ldr r3, [r7, #12] - 8007382: 68db ldr r3, [r3, #12] - 8007384: 60fb str r3, [r7, #12] - 8007386: 68fb ldr r3, [r7, #12] - 8007388: 2b00 cmp r3, #0 - 800738a: d1ef bne.n 800736c - 800738c: 683b ldr r3, [r7, #0] - 800738e: 2200 movs r2, #0 - 8007390: 60da str r2, [r3, #12] + 800734a: 687b ldr r3, [r7, #4] + 800734c: 681b ldr r3, [r3, #0] + 800734e: 683a ldr r2, [r7, #0] + 8007350: 429a cmp r2, r3 + 8007352: d105 bne.n 8007360 + 8007354: 687b ldr r3, [r7, #4] + 8007356: 681b ldr r3, [r3, #0] + 8007358: 68da ldr r2, [r3, #12] + 800735a: 687b ldr r3, [r7, #4] + 800735c: 601a str r2, [r3, #0] + 800735e: e013 b.n 8007388 + 8007360: 687b ldr r3, [r7, #4] + 8007362: 681b ldr r3, [r3, #0] + 8007364: 60fb str r3, [r7, #12] + 8007366: e00c b.n 8007382 + 8007368: 68fb ldr r3, [r7, #12] + 800736a: 68db ldr r3, [r3, #12] + 800736c: 683a ldr r2, [r7, #0] + 800736e: 429a cmp r2, r3 + 8007370: d104 bne.n 800737c + 8007372: 683b ldr r3, [r7, #0] + 8007374: 68da ldr r2, [r3, #12] + 8007376: 68fb ldr r3, [r7, #12] + 8007378: 60da str r2, [r3, #12] + 800737a: e005 b.n 8007388 + 800737c: 68fb ldr r3, [r7, #12] + 800737e: 68db ldr r3, [r3, #12] + 8007380: 60fb str r3, [r7, #12] + 8007382: 68fb ldr r3, [r7, #12] + 8007384: 2b00 cmp r3, #0 + 8007386: d1ef bne.n 8007368 + 8007388: 683b ldr r3, [r7, #0] + 800738a: 2200 movs r2, #0 + 800738c: 60da str r2, [r3, #12] tcp_pcb_purge(pcb); - 8007392: 6838 ldr r0, [r7, #0] - 8007394: f7ff ff72 bl 800727c + 800738e: 6838 ldr r0, [r7, #0] + 8007390: f7ff ff72 bl 8007278 /* if there is an outstanding delayed ACKs, send it */ if ((pcb->state != TIME_WAIT) && - 8007398: 683b ldr r3, [r7, #0] - 800739a: 7d1b ldrb r3, [r3, #20] - 800739c: 2b0a cmp r3, #10 - 800739e: d013 beq.n 80073c8 + 8007394: 683b ldr r3, [r7, #0] + 8007396: 7d1b ldrb r3, [r3, #20] + 8007398: 2b0a cmp r3, #10 + 800739a: d013 beq.n 80073c4 (pcb->state != LISTEN) && - 80073a0: 683b ldr r3, [r7, #0] - 80073a2: 7d1b ldrb r3, [r3, #20] + 800739c: 683b ldr r3, [r7, #0] + 800739e: 7d1b ldrb r3, [r3, #20] if ((pcb->state != TIME_WAIT) && - 80073a4: 2b01 cmp r3, #1 - 80073a6: d00f beq.n 80073c8 + 80073a0: 2b01 cmp r3, #1 + 80073a2: d00f beq.n 80073c4 (pcb->flags & TF_ACK_DELAY)) { - 80073a8: 683b ldr r3, [r7, #0] - 80073aa: 8b5b ldrh r3, [r3, #26] - 80073ac: f003 0301 and.w r3, r3, #1 + 80073a4: 683b ldr r3, [r7, #0] + 80073a6: 8b5b ldrh r3, [r3, #26] + 80073a8: f003 0301 and.w r3, r3, #1 (pcb->state != LISTEN) && - 80073b0: 2b00 cmp r3, #0 - 80073b2: d009 beq.n 80073c8 + 80073ac: 2b00 cmp r3, #0 + 80073ae: d009 beq.n 80073c4 tcp_ack_now(pcb); - 80073b4: 683b ldr r3, [r7, #0] - 80073b6: 8b5b ldrh r3, [r3, #26] - 80073b8: f043 0302 orr.w r3, r3, #2 - 80073bc: b29a uxth r2, r3 - 80073be: 683b ldr r3, [r7, #0] - 80073c0: 835a strh r2, [r3, #26] + 80073b0: 683b ldr r3, [r7, #0] + 80073b2: 8b5b ldrh r3, [r3, #26] + 80073b4: f043 0302 orr.w r3, r3, #2 + 80073b8: b29a uxth r2, r3 + 80073ba: 683b ldr r3, [r7, #0] + 80073bc: 835a strh r2, [r3, #26] tcp_output(pcb); - 80073c2: 6838 ldr r0, [r7, #0] - 80073c4: f002 ff6e bl 800a2a4 + 80073be: 6838 ldr r0, [r7, #0] + 80073c0: f002 ff6e bl 800a2a0 } if (pcb->state != LISTEN) { - 80073c8: 683b ldr r3, [r7, #0] - 80073ca: 7d1b ldrb r3, [r3, #20] - 80073cc: 2b01 cmp r3, #1 - 80073ce: d020 beq.n 8007412 + 80073c4: 683b ldr r3, [r7, #0] + 80073c6: 7d1b ldrb r3, [r3, #20] + 80073c8: 2b01 cmp r3, #1 + 80073ca: d020 beq.n 800740e LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL); - 80073d0: 683b ldr r3, [r7, #0] - 80073d2: 6edb ldr r3, [r3, #108] ; 0x6c - 80073d4: 2b00 cmp r3, #0 - 80073d6: d006 beq.n 80073e6 - 80073d8: 4b13 ldr r3, [pc, #76] ; (8007428 ) - 80073da: f640 0293 movw r2, #2195 ; 0x893 - 80073de: 4916 ldr r1, [pc, #88] ; (8007438 ) - 80073e0: 4813 ldr r0, [pc, #76] ; (8007430 ) - 80073e2: f008 fff7 bl 80103d4 + 80073cc: 683b ldr r3, [r7, #0] + 80073ce: 6edb ldr r3, [r3, #108] ; 0x6c + 80073d0: 2b00 cmp r3, #0 + 80073d2: d006 beq.n 80073e2 + 80073d4: 4b13 ldr r3, [pc, #76] ; (8007424 ) + 80073d6: f640 0293 movw r2, #2195 ; 0x893 + 80073da: 4916 ldr r1, [pc, #88] ; (8007434 ) + 80073dc: 4813 ldr r0, [pc, #76] ; (800742c ) + 80073de: f008 fff7 bl 80103d0 LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL); - 80073e6: 683b ldr r3, [r7, #0] - 80073e8: 6f1b ldr r3, [r3, #112] ; 0x70 - 80073ea: 2b00 cmp r3, #0 - 80073ec: d006 beq.n 80073fc - 80073ee: 4b0e ldr r3, [pc, #56] ; (8007428 ) - 80073f0: f640 0294 movw r2, #2196 ; 0x894 - 80073f4: 4911 ldr r1, [pc, #68] ; (800743c ) - 80073f6: 480e ldr r0, [pc, #56] ; (8007430 ) - 80073f8: f008 ffec bl 80103d4 + 80073e2: 683b ldr r3, [r7, #0] + 80073e4: 6f1b ldr r3, [r3, #112] ; 0x70 + 80073e6: 2b00 cmp r3, #0 + 80073e8: d006 beq.n 80073f8 + 80073ea: 4b0e ldr r3, [pc, #56] ; (8007424 ) + 80073ec: f640 0294 movw r2, #2196 ; 0x894 + 80073f0: 4911 ldr r1, [pc, #68] ; (8007438 ) + 80073f2: 480e ldr r0, [pc, #56] ; (800742c ) + 80073f4: f008 ffec bl 80103d0 #if TCP_QUEUE_OOSEQ LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL); - 80073fc: 683b ldr r3, [r7, #0] - 80073fe: 6f5b ldr r3, [r3, #116] ; 0x74 - 8007400: 2b00 cmp r3, #0 - 8007402: d006 beq.n 8007412 - 8007404: 4b08 ldr r3, [pc, #32] ; (8007428 ) - 8007406: f640 0296 movw r2, #2198 ; 0x896 - 800740a: 490d ldr r1, [pc, #52] ; (8007440 ) - 800740c: 4808 ldr r0, [pc, #32] ; (8007430 ) - 800740e: f008 ffe1 bl 80103d4 + 80073f8: 683b ldr r3, [r7, #0] + 80073fa: 6f5b ldr r3, [r3, #116] ; 0x74 + 80073fc: 2b00 cmp r3, #0 + 80073fe: d006 beq.n 800740e + 8007400: 4b08 ldr r3, [pc, #32] ; (8007424 ) + 8007402: f640 0296 movw r2, #2198 ; 0x896 + 8007406: 490d ldr r1, [pc, #52] ; (800743c ) + 8007408: 4808 ldr r0, [pc, #32] ; (800742c ) + 800740a: f008 ffe1 bl 80103d0 #endif /* TCP_QUEUE_OOSEQ */ } pcb->state = CLOSED; - 8007412: 683b ldr r3, [r7, #0] - 8007414: 2200 movs r2, #0 - 8007416: 751a strb r2, [r3, #20] + 800740e: 683b ldr r3, [r7, #0] + 8007410: 2200 movs r2, #0 + 8007412: 751a strb r2, [r3, #20] /* reset the local port to prevent the pcb from being 'bound' */ pcb->local_port = 0; - 8007418: 683b ldr r3, [r7, #0] - 800741a: 2200 movs r2, #0 - 800741c: 82da strh r2, [r3, #22] + 8007414: 683b ldr r3, [r7, #0] + 8007416: 2200 movs r2, #0 + 8007418: 82da strh r2, [r3, #22] LWIP_ASSERT("tcp_pcb_remove: tcp_pcbs_sane()", tcp_pcbs_sane()); } - 800741e: bf00 nop - 8007420: 3710 adds r7, #16 - 8007422: 46bd mov sp, r7 - 8007424: bd80 pop {r7, pc} - 8007426: bf00 nop - 8007428: 080159bc .word 0x080159bc - 800742c: 08016024 .word 0x08016024 - 8007430: 08015a00 .word 0x08015a00 - 8007434: 08016040 .word 0x08016040 - 8007438: 08016060 .word 0x08016060 - 800743c: 08016078 .word 0x08016078 - 8007440: 08016094 .word 0x08016094 + 800741a: bf00 nop + 800741c: 3710 adds r7, #16 + 800741e: 46bd mov sp, r7 + 8007420: bd80 pop {r7, pc} + 8007422: bf00 nop + 8007424: 080159bc .word 0x080159bc + 8007428: 08016024 .word 0x08016024 + 800742c: 08015a00 .word 0x08015a00 + 8007430: 08016040 .word 0x08016040 + 8007434: 08016060 .word 0x08016060 + 8007438: 08016078 .word 0x08016078 + 800743c: 08016094 .word 0x08016094 -08007444 : +08007440 : * * @return u32_t pseudo random sequence number */ u32_t tcp_next_iss(struct tcp_pcb *pcb) { - 8007444: b580 push {r7, lr} - 8007446: b082 sub sp, #8 - 8007448: af00 add r7, sp, #0 - 800744a: 6078 str r0, [r7, #4] + 8007440: b580 push {r7, lr} + 8007442: b082 sub sp, #8 + 8007444: af00 add r7, sp, #0 + 8007446: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL); return LWIP_HOOK_TCP_ISN(&pcb->local_ip, pcb->local_port, &pcb->remote_ip, pcb->remote_port); #else /* LWIP_HOOK_TCP_ISN */ static u32_t iss = 6510; LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL); - 800744c: 687b ldr r3, [r7, #4] - 800744e: 2b00 cmp r3, #0 - 8007450: d106 bne.n 8007460 - 8007452: 4b0a ldr r3, [pc, #40] ; (800747c ) - 8007454: f640 02af movw r2, #2223 ; 0x8af - 8007458: 4909 ldr r1, [pc, #36] ; (8007480 ) - 800745a: 480a ldr r0, [pc, #40] ; (8007484 ) - 800745c: f008 ffba bl 80103d4 + 8007448: 687b ldr r3, [r7, #4] + 800744a: 2b00 cmp r3, #0 + 800744c: d106 bne.n 800745c + 800744e: 4b0a ldr r3, [pc, #40] ; (8007478 ) + 8007450: f640 02af movw r2, #2223 ; 0x8af + 8007454: 4909 ldr r1, [pc, #36] ; (800747c ) + 8007456: 480a ldr r0, [pc, #40] ; (8007480 ) + 8007458: f008 ffba bl 80103d0 LWIP_UNUSED_ARG(pcb); iss += tcp_ticks; /* XXX */ - 8007460: 4b09 ldr r3, [pc, #36] ; (8007488 ) - 8007462: 681a ldr r2, [r3, #0] - 8007464: 4b09 ldr r3, [pc, #36] ; (800748c ) - 8007466: 681b ldr r3, [r3, #0] - 8007468: 4413 add r3, r2 - 800746a: 4a07 ldr r2, [pc, #28] ; (8007488 ) - 800746c: 6013 str r3, [r2, #0] + 800745c: 4b09 ldr r3, [pc, #36] ; (8007484 ) + 800745e: 681a ldr r2, [r3, #0] + 8007460: 4b09 ldr r3, [pc, #36] ; (8007488 ) + 8007462: 681b ldr r3, [r3, #0] + 8007464: 4413 add r3, r2 + 8007466: 4a07 ldr r2, [pc, #28] ; (8007484 ) + 8007468: 6013 str r3, [r2, #0] return iss; - 800746e: 4b06 ldr r3, [pc, #24] ; (8007488 ) - 8007470: 681b ldr r3, [r3, #0] + 800746a: 4b06 ldr r3, [pc, #24] ; (8007484 ) + 800746c: 681b ldr r3, [r3, #0] #endif /* LWIP_HOOK_TCP_ISN */ } - 8007472: 4618 mov r0, r3 - 8007474: 3708 adds r7, #8 - 8007476: 46bd mov sp, r7 - 8007478: bd80 pop {r7, pc} - 800747a: bf00 nop - 800747c: 080159bc .word 0x080159bc - 8007480: 080160ac .word 0x080160ac - 8007484: 08015a00 .word 0x08015a00 - 8007488: 20000024 .word 0x20000024 - 800748c: 20008c00 .word 0x20008c00 + 800746e: 4618 mov r0, r3 + 8007470: 3708 adds r7, #8 + 8007472: 46bd mov sp, r7 + 8007474: bd80 pop {r7, pc} + 8007476: bf00 nop + 8007478: 080159bc .word 0x080159bc + 800747c: 080160ac .word 0x080160ac + 8007480: 08015a00 .word 0x08015a00 + 8007484: 20000024 .word 0x20000024 + 8007488: 20008c00 .word 0x20008c00 -08007490 : +0800748c : * by calculating the minimum of TCP_MSS and the mtu (if set) of the target * netif (if not NULL). */ u16_t tcp_eff_send_mss_netif(u16_t sendmss, struct netif *outif, const ip_addr_t *dest) { - 8007490: b580 push {r7, lr} - 8007492: b086 sub sp, #24 - 8007494: af00 add r7, sp, #0 - 8007496: 4603 mov r3, r0 - 8007498: 60b9 str r1, [r7, #8] - 800749a: 607a str r2, [r7, #4] - 800749c: 81fb strh r3, [r7, #14] + 800748c: b580 push {r7, lr} + 800748e: b086 sub sp, #24 + 8007490: af00 add r7, sp, #0 + 8007492: 4603 mov r3, r0 + 8007494: 60b9 str r1, [r7, #8] + 8007496: 607a str r2, [r7, #4] + 8007498: 81fb strh r3, [r7, #14] u16_t mss_s; u16_t mtu; LWIP_UNUSED_ARG(dest); /* in case IPv6 is disabled */ LWIP_ASSERT("tcp_eff_send_mss_netif: invalid dst_ip", dest != NULL); - 800749e: 687b ldr r3, [r7, #4] - 80074a0: 2b00 cmp r3, #0 - 80074a2: d106 bne.n 80074b2 - 80074a4: 4b14 ldr r3, [pc, #80] ; (80074f8 ) - 80074a6: f640 02c5 movw r2, #2245 ; 0x8c5 - 80074aa: 4914 ldr r1, [pc, #80] ; (80074fc ) - 80074ac: 4814 ldr r0, [pc, #80] ; (8007500 ) - 80074ae: f008 ff91 bl 80103d4 + 800749a: 687b ldr r3, [r7, #4] + 800749c: 2b00 cmp r3, #0 + 800749e: d106 bne.n 80074ae + 80074a0: 4b14 ldr r3, [pc, #80] ; (80074f4 ) + 80074a2: f640 02c5 movw r2, #2245 ; 0x8c5 + 80074a6: 4914 ldr r1, [pc, #80] ; (80074f8 ) + 80074a8: 4814 ldr r0, [pc, #80] ; (80074fc ) + 80074aa: f008 ff91 bl 80103d0 else #endif /* LWIP_IPV4 */ #endif /* LWIP_IPV6 */ #if LWIP_IPV4 { if (outif == NULL) { - 80074b2: 68bb ldr r3, [r7, #8] - 80074b4: 2b00 cmp r3, #0 - 80074b6: d101 bne.n 80074bc + 80074ae: 68bb ldr r3, [r7, #8] + 80074b0: 2b00 cmp r3, #0 + 80074b2: d101 bne.n 80074b8 return sendmss; - 80074b8: 89fb ldrh r3, [r7, #14] - 80074ba: e019 b.n 80074f0 + 80074b4: 89fb ldrh r3, [r7, #14] + 80074b6: e019 b.n 80074ec } mtu = outif->mtu; - 80074bc: 68bb ldr r3, [r7, #8] - 80074be: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80074c0: 82fb strh r3, [r7, #22] + 80074b8: 68bb ldr r3, [r7, #8] + 80074ba: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80074bc: 82fb strh r3, [r7, #22] } #endif /* LWIP_IPV4 */ if (mtu != 0) { - 80074c2: 8afb ldrh r3, [r7, #22] - 80074c4: 2b00 cmp r3, #0 - 80074c6: d012 beq.n 80074ee + 80074be: 8afb ldrh r3, [r7, #22] + 80074c0: 2b00 cmp r3, #0 + 80074c2: d012 beq.n 80074ea else #endif /* LWIP_IPV4 */ #endif /* LWIP_IPV6 */ #if LWIP_IPV4 { offset = IP_HLEN + TCP_HLEN; - 80074c8: 2328 movs r3, #40 ; 0x28 - 80074ca: 82bb strh r3, [r7, #20] + 80074c4: 2328 movs r3, #40 ; 0x28 + 80074c6: 82bb strh r3, [r7, #20] } #endif /* LWIP_IPV4 */ mss_s = (mtu > offset) ? (u16_t)(mtu - offset) : 0; - 80074cc: 8afa ldrh r2, [r7, #22] - 80074ce: 8abb ldrh r3, [r7, #20] - 80074d0: 429a cmp r2, r3 - 80074d2: d904 bls.n 80074de - 80074d4: 8afa ldrh r2, [r7, #22] - 80074d6: 8abb ldrh r3, [r7, #20] - 80074d8: 1ad3 subs r3, r2, r3 - 80074da: b29b uxth r3, r3 - 80074dc: e000 b.n 80074e0 - 80074de: 2300 movs r3, #0 - 80074e0: 827b strh r3, [r7, #18] + 80074c8: 8afa ldrh r2, [r7, #22] + 80074ca: 8abb ldrh r3, [r7, #20] + 80074cc: 429a cmp r2, r3 + 80074ce: d904 bls.n 80074da + 80074d0: 8afa ldrh r2, [r7, #22] + 80074d2: 8abb ldrh r3, [r7, #20] + 80074d4: 1ad3 subs r3, r2, r3 + 80074d6: b29b uxth r3, r3 + 80074d8: e000 b.n 80074dc + 80074da: 2300 movs r3, #0 + 80074dc: 827b strh r3, [r7, #18] /* RFC 1122, chap 4.2.2.6: * Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize * We correct for TCP options in tcp_write(), and don't support IP options. */ sendmss = LWIP_MIN(sendmss, mss_s); - 80074e2: 8a7a ldrh r2, [r7, #18] - 80074e4: 89fb ldrh r3, [r7, #14] - 80074e6: 4293 cmp r3, r2 - 80074e8: bf28 it cs - 80074ea: 4613 movcs r3, r2 - 80074ec: 81fb strh r3, [r7, #14] + 80074de: 8a7a ldrh r2, [r7, #18] + 80074e0: 89fb ldrh r3, [r7, #14] + 80074e2: 4293 cmp r3, r2 + 80074e4: bf28 it cs + 80074e6: 4613 movcs r3, r2 + 80074e8: 81fb strh r3, [r7, #14] } return sendmss; - 80074ee: 89fb ldrh r3, [r7, #14] + 80074ea: 89fb ldrh r3, [r7, #14] } - 80074f0: 4618 mov r0, r3 - 80074f2: 3718 adds r7, #24 - 80074f4: 46bd mov sp, r7 - 80074f6: bd80 pop {r7, pc} - 80074f8: 080159bc .word 0x080159bc - 80074fc: 080160c8 .word 0x080160c8 - 8007500: 08015a00 .word 0x08015a00 + 80074ec: 4618 mov r0, r3 + 80074ee: 3718 adds r7, #24 + 80074f0: 46bd mov sp, r7 + 80074f2: bd80 pop {r7, pc} + 80074f4: 080159bc .word 0x080159bc + 80074f8: 080160c8 .word 0x080160c8 + 80074fc: 08015a00 .word 0x08015a00 -08007504 : +08007500 : #endif /* TCP_CALCULATE_EFF_SEND_MSS */ /** Helper function for tcp_netif_ip_addr_changed() that iterates a pcb list */ static void tcp_netif_ip_addr_changed_pcblist(const ip_addr_t *old_addr, struct tcp_pcb *pcb_list) { - 8007504: b580 push {r7, lr} - 8007506: b084 sub sp, #16 - 8007508: af00 add r7, sp, #0 - 800750a: 6078 str r0, [r7, #4] - 800750c: 6039 str r1, [r7, #0] + 8007500: b580 push {r7, lr} + 8007502: b084 sub sp, #16 + 8007504: af00 add r7, sp, #0 + 8007506: 6078 str r0, [r7, #4] + 8007508: 6039 str r1, [r7, #0] struct tcp_pcb *pcb; pcb = pcb_list; - 800750e: 683b ldr r3, [r7, #0] - 8007510: 60fb str r3, [r7, #12] + 800750a: 683b ldr r3, [r7, #0] + 800750c: 60fb str r3, [r7, #12] LWIP_ASSERT("tcp_netif_ip_addr_changed_pcblist: invalid old_addr", old_addr != NULL); - 8007512: 687b ldr r3, [r7, #4] - 8007514: 2b00 cmp r3, #0 - 8007516: d119 bne.n 800754c - 8007518: 4b10 ldr r3, [pc, #64] ; (800755c ) - 800751a: f44f 6210 mov.w r2, #2304 ; 0x900 - 800751e: 4910 ldr r1, [pc, #64] ; (8007560 ) - 8007520: 4810 ldr r0, [pc, #64] ; (8007564 ) - 8007522: f008 ff57 bl 80103d4 + 800750e: 687b ldr r3, [r7, #4] + 8007510: 2b00 cmp r3, #0 + 8007512: d119 bne.n 8007548 + 8007514: 4b10 ldr r3, [pc, #64] ; (8007558 ) + 8007516: f44f 6210 mov.w r2, #2304 ; 0x900 + 800751a: 4910 ldr r1, [pc, #64] ; (800755c ) + 800751c: 4810 ldr r0, [pc, #64] ; (8007560 ) + 800751e: f008 ff57 bl 80103d0 while (pcb != NULL) { - 8007526: e011 b.n 800754c + 8007522: e011 b.n 8007548 /* PCB bound to current local interface address? */ if (ip_addr_cmp(&pcb->local_ip, old_addr) - 8007528: 68fb ldr r3, [r7, #12] - 800752a: 681a ldr r2, [r3, #0] - 800752c: 687b ldr r3, [r7, #4] - 800752e: 681b ldr r3, [r3, #0] - 8007530: 429a cmp r2, r3 - 8007532: d108 bne.n 8007546 + 8007524: 68fb ldr r3, [r7, #12] + 8007526: 681a ldr r2, [r3, #0] + 8007528: 687b ldr r3, [r7, #4] + 800752a: 681b ldr r3, [r3, #0] + 800752c: 429a cmp r2, r3 + 800752e: d108 bne.n 8007542 /* connections to link-local addresses must persist (RFC3927 ch. 1.9) */ && (!IP_IS_V4_VAL(pcb->local_ip) || !ip4_addr_islinklocal(ip_2_ip4(&pcb->local_ip))) #endif /* LWIP_AUTOIP */ ) { /* this connection must be aborted */ struct tcp_pcb *next = pcb->next; - 8007534: 68fb ldr r3, [r7, #12] - 8007536: 68db ldr r3, [r3, #12] - 8007538: 60bb str r3, [r7, #8] + 8007530: 68fb ldr r3, [r7, #12] + 8007532: 68db ldr r3, [r3, #12] + 8007534: 60bb str r3, [r7, #8] LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: aborting TCP pcb %p\n", (void *)pcb)); tcp_abort(pcb); - 800753a: 68f8 ldr r0, [r7, #12] - 800753c: f7fe ffc6 bl 80064cc + 8007536: 68f8 ldr r0, [r7, #12] + 8007538: f7fe ffc6 bl 80064c8 pcb = next; - 8007540: 68bb ldr r3, [r7, #8] - 8007542: 60fb str r3, [r7, #12] - 8007544: e002 b.n 800754c + 800753c: 68bb ldr r3, [r7, #8] + 800753e: 60fb str r3, [r7, #12] + 8007540: e002 b.n 8007548 } else { pcb = pcb->next; - 8007546: 68fb ldr r3, [r7, #12] - 8007548: 68db ldr r3, [r3, #12] - 800754a: 60fb str r3, [r7, #12] + 8007542: 68fb ldr r3, [r7, #12] + 8007544: 68db ldr r3, [r3, #12] + 8007546: 60fb str r3, [r7, #12] while (pcb != NULL) { - 800754c: 68fb ldr r3, [r7, #12] - 800754e: 2b00 cmp r3, #0 - 8007550: d1ea bne.n 8007528 + 8007548: 68fb ldr r3, [r7, #12] + 800754a: 2b00 cmp r3, #0 + 800754c: d1ea bne.n 8007524 } } } - 8007552: bf00 nop - 8007554: bf00 nop - 8007556: 3710 adds r7, #16 - 8007558: 46bd mov sp, r7 - 800755a: bd80 pop {r7, pc} - 800755c: 080159bc .word 0x080159bc - 8007560: 080160f0 .word 0x080160f0 - 8007564: 08015a00 .word 0x08015a00 + 800754e: bf00 nop + 8007550: bf00 nop + 8007552: 3710 adds r7, #16 + 8007554: 46bd mov sp, r7 + 8007556: bd80 pop {r7, pc} + 8007558: 080159bc .word 0x080159bc + 800755c: 080160f0 .word 0x080160f0 + 8007560: 08015a00 .word 0x08015a00 -08007568 : +08007564 : * @param old_addr IP address of the netif before change * @param new_addr IP address of the netif after change or NULL if netif has been removed */ void tcp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) { - 8007568: b580 push {r7, lr} - 800756a: b084 sub sp, #16 - 800756c: af00 add r7, sp, #0 - 800756e: 6078 str r0, [r7, #4] - 8007570: 6039 str r1, [r7, #0] + 8007564: b580 push {r7, lr} + 8007566: b084 sub sp, #16 + 8007568: af00 add r7, sp, #0 + 800756a: 6078 str r0, [r7, #4] + 800756c: 6039 str r1, [r7, #0] struct tcp_pcb_listen *lpcb; if (!ip_addr_isany(old_addr)) { - 8007572: 687b ldr r3, [r7, #4] - 8007574: 2b00 cmp r3, #0 - 8007576: d02a beq.n 80075ce - 8007578: 687b ldr r3, [r7, #4] - 800757a: 681b ldr r3, [r3, #0] - 800757c: 2b00 cmp r3, #0 - 800757e: d026 beq.n 80075ce + 800756e: 687b ldr r3, [r7, #4] + 8007570: 2b00 cmp r3, #0 + 8007572: d02a beq.n 80075ca + 8007574: 687b ldr r3, [r7, #4] + 8007576: 681b ldr r3, [r3, #0] + 8007578: 2b00 cmp r3, #0 + 800757a: d026 beq.n 80075ca tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_active_pcbs); - 8007580: 4b15 ldr r3, [pc, #84] ; (80075d8 ) - 8007582: 681b ldr r3, [r3, #0] - 8007584: 4619 mov r1, r3 - 8007586: 6878 ldr r0, [r7, #4] - 8007588: f7ff ffbc bl 8007504 + 800757c: 4b15 ldr r3, [pc, #84] ; (80075d4 ) + 800757e: 681b ldr r3, [r3, #0] + 8007580: 4619 mov r1, r3 + 8007582: 6878 ldr r0, [r7, #4] + 8007584: f7ff ffbc bl 8007500 tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_bound_pcbs); - 800758c: 4b13 ldr r3, [pc, #76] ; (80075dc ) - 800758e: 681b ldr r3, [r3, #0] - 8007590: 4619 mov r1, r3 - 8007592: 6878 ldr r0, [r7, #4] - 8007594: f7ff ffb6 bl 8007504 + 8007588: 4b13 ldr r3, [pc, #76] ; (80075d8 ) + 800758a: 681b ldr r3, [r3, #0] + 800758c: 4619 mov r1, r3 + 800758e: 6878 ldr r0, [r7, #4] + 8007590: f7ff ffb6 bl 8007500 if (!ip_addr_isany(new_addr)) { - 8007598: 683b ldr r3, [r7, #0] - 800759a: 2b00 cmp r3, #0 - 800759c: d017 beq.n 80075ce - 800759e: 683b ldr r3, [r7, #0] - 80075a0: 681b ldr r3, [r3, #0] - 80075a2: 2b00 cmp r3, #0 - 80075a4: d013 beq.n 80075ce + 8007594: 683b ldr r3, [r7, #0] + 8007596: 2b00 cmp r3, #0 + 8007598: d017 beq.n 80075ca + 800759a: 683b ldr r3, [r7, #0] + 800759c: 681b ldr r3, [r3, #0] + 800759e: 2b00 cmp r3, #0 + 80075a0: d013 beq.n 80075ca /* PCB bound to current local interface address? */ for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 80075a6: 4b0e ldr r3, [pc, #56] ; (80075e0 ) - 80075a8: 681b ldr r3, [r3, #0] - 80075aa: 60fb str r3, [r7, #12] - 80075ac: e00c b.n 80075c8 + 80075a2: 4b0e ldr r3, [pc, #56] ; (80075dc ) + 80075a4: 681b ldr r3, [r3, #0] + 80075a6: 60fb str r3, [r7, #12] + 80075a8: e00c b.n 80075c4 /* PCB bound to current local interface address? */ if (ip_addr_cmp(&lpcb->local_ip, old_addr)) { - 80075ae: 68fb ldr r3, [r7, #12] - 80075b0: 681a ldr r2, [r3, #0] - 80075b2: 687b ldr r3, [r7, #4] - 80075b4: 681b ldr r3, [r3, #0] - 80075b6: 429a cmp r2, r3 - 80075b8: d103 bne.n 80075c2 + 80075aa: 68fb ldr r3, [r7, #12] + 80075ac: 681a ldr r2, [r3, #0] + 80075ae: 687b ldr r3, [r7, #4] + 80075b0: 681b ldr r3, [r3, #0] + 80075b2: 429a cmp r2, r3 + 80075b4: d103 bne.n 80075be /* The PCB is listening to the old ipaddr and * is set to listen to the new one instead */ ip_addr_copy(lpcb->local_ip, *new_addr); - 80075ba: 683b ldr r3, [r7, #0] - 80075bc: 681a ldr r2, [r3, #0] - 80075be: 68fb ldr r3, [r7, #12] - 80075c0: 601a str r2, [r3, #0] + 80075b6: 683b ldr r3, [r7, #0] + 80075b8: 681a ldr r2, [r3, #0] + 80075ba: 68fb ldr r3, [r7, #12] + 80075bc: 601a str r2, [r3, #0] for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 80075c2: 68fb ldr r3, [r7, #12] - 80075c4: 68db ldr r3, [r3, #12] - 80075c6: 60fb str r3, [r7, #12] - 80075c8: 68fb ldr r3, [r7, #12] - 80075ca: 2b00 cmp r3, #0 - 80075cc: d1ef bne.n 80075ae + 80075be: 68fb ldr r3, [r7, #12] + 80075c0: 68db ldr r3, [r3, #12] + 80075c2: 60fb str r3, [r7, #12] + 80075c4: 68fb ldr r3, [r7, #12] + 80075c6: 2b00 cmp r3, #0 + 80075c8: d1ef bne.n 80075aa } } } } } - 80075ce: bf00 nop - 80075d0: 3710 adds r7, #16 - 80075d2: 46bd mov sp, r7 - 80075d4: bd80 pop {r7, pc} - 80075d6: bf00 nop - 80075d8: 20008c0c .word 0x20008c0c - 80075dc: 20008c04 .word 0x20008c04 - 80075e0: 20008c08 .word 0x20008c08 + 80075ca: bf00 nop + 80075cc: 3710 adds r7, #16 + 80075ce: 46bd mov sp, r7 + 80075d0: bd80 pop {r7, pc} + 80075d2: bf00 nop + 80075d4: 20008c0c .word 0x20008c0c + 80075d8: 20008c04 .word 0x20008c04 + 80075dc: 20008c08 .word 0x20008c08 -080075e4 : +080075e0 : #if TCP_QUEUE_OOSEQ /* Free all ooseq pbufs (and possibly reset SACK state) */ void tcp_free_ooseq(struct tcp_pcb *pcb) { - 80075e4: b580 push {r7, lr} - 80075e6: b082 sub sp, #8 - 80075e8: af00 add r7, sp, #0 - 80075ea: 6078 str r0, [r7, #4] + 80075e0: b580 push {r7, lr} + 80075e2: b082 sub sp, #8 + 80075e4: af00 add r7, sp, #0 + 80075e6: 6078 str r0, [r7, #4] if (pcb->ooseq) { - 80075ec: 687b ldr r3, [r7, #4] - 80075ee: 6f5b ldr r3, [r3, #116] ; 0x74 - 80075f0: 2b00 cmp r3, #0 - 80075f2: d007 beq.n 8007604 + 80075e8: 687b ldr r3, [r7, #4] + 80075ea: 6f5b ldr r3, [r3, #116] ; 0x74 + 80075ec: 2b00 cmp r3, #0 + 80075ee: d007 beq.n 8007600 tcp_segs_free(pcb->ooseq); - 80075f4: 687b ldr r3, [r7, #4] - 80075f6: 6f5b ldr r3, [r3, #116] ; 0x74 - 80075f8: 4618 mov r0, r3 - 80075fa: f7ff fc3d bl 8006e78 + 80075f0: 687b ldr r3, [r7, #4] + 80075f2: 6f5b ldr r3, [r3, #116] ; 0x74 + 80075f4: 4618 mov r0, r3 + 80075f6: f7ff fc3d bl 8006e74 pcb->ooseq = NULL; - 80075fe: 687b ldr r3, [r7, #4] - 8007600: 2200 movs r2, #0 - 8007602: 675a str r2, [r3, #116] ; 0x74 + 80075fa: 687b ldr r3, [r7, #4] + 80075fc: 2200 movs r2, #0 + 80075fe: 675a str r2, [r3, #116] ; 0x74 #if LWIP_TCP_SACK_OUT memset(pcb->rcv_sacks, 0, sizeof(pcb->rcv_sacks)); #endif /* LWIP_TCP_SACK_OUT */ } } - 8007604: bf00 nop - 8007606: 3708 adds r7, #8 - 8007608: 46bd mov sp, r7 - 800760a: bd80 pop {r7, pc} + 8007600: bf00 nop + 8007602: 3708 adds r7, #8 + 8007604: 46bd mov sp, r7 + 8007606: bd80 pop {r7, pc} -0800760c : +08007608 : * @param p received TCP segment to process (p->payload pointing to the TCP header) * @param inp network interface on which this segment was received */ void tcp_input(struct pbuf *p, struct netif *inp) { - 800760c: b590 push {r4, r7, lr} - 800760e: b08d sub sp, #52 ; 0x34 - 8007610: af04 add r7, sp, #16 - 8007612: 6078 str r0, [r7, #4] - 8007614: 6039 str r1, [r7, #0] + 8007608: b590 push {r4, r7, lr} + 800760a: b08d sub sp, #52 ; 0x34 + 800760c: af04 add r7, sp, #16 + 800760e: 6078 str r0, [r7, #4] + 8007610: 6039 str r1, [r7, #0] u8_t hdrlen_bytes; err_t err; LWIP_UNUSED_ARG(inp); LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("tcp_input: invalid pbuf", p != NULL); - 8007616: 687b ldr r3, [r7, #4] - 8007618: 2b00 cmp r3, #0 - 800761a: d105 bne.n 8007628 - 800761c: 4b9b ldr r3, [pc, #620] ; (800788c ) - 800761e: 2283 movs r2, #131 ; 0x83 - 8007620: 499b ldr r1, [pc, #620] ; (8007890 ) - 8007622: 489c ldr r0, [pc, #624] ; (8007894 ) - 8007624: f008 fed6 bl 80103d4 + 8007612: 687b ldr r3, [r7, #4] + 8007614: 2b00 cmp r3, #0 + 8007616: d105 bne.n 8007624 + 8007618: 4b9b ldr r3, [pc, #620] ; (8007888 ) + 800761a: 2283 movs r2, #131 ; 0x83 + 800761c: 499b ldr r1, [pc, #620] ; (800788c ) + 800761e: 489c ldr r0, [pc, #624] ; (8007890 ) + 8007620: f008 fed6 bl 80103d0 PERF_START; TCP_STATS_INC(tcp.recv); MIB2_STATS_INC(mib2.tcpinsegs); tcphdr = (struct tcp_hdr *)p->payload; - 8007628: 687b ldr r3, [r7, #4] - 800762a: 685b ldr r3, [r3, #4] - 800762c: 4a9a ldr r2, [pc, #616] ; (8007898 ) - 800762e: 6013 str r3, [r2, #0] + 8007624: 687b ldr r3, [r7, #4] + 8007626: 685b ldr r3, [r3, #4] + 8007628: 4a9a ldr r2, [pc, #616] ; (8007894 ) + 800762a: 6013 str r3, [r2, #0] #if TCP_INPUT_DEBUG tcp_debug_print(tcphdr); #endif /* Check that TCP header fits in payload */ if (p->len < TCP_HLEN) { - 8007630: 687b ldr r3, [r7, #4] - 8007632: 895b ldrh r3, [r3, #10] - 8007634: 2b13 cmp r3, #19 - 8007636: f240 83d1 bls.w 8007ddc + 800762c: 687b ldr r3, [r7, #4] + 800762e: 895b ldrh r3, [r3, #10] + 8007630: 2b13 cmp r3, #19 + 8007632: f240 83d1 bls.w 8007dd8 TCP_STATS_INC(tcp.lenerr); goto dropped; } /* Don't even process incoming broadcasts/multicasts. */ if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) || - 800763a: 4b98 ldr r3, [pc, #608] ; (800789c ) - 800763c: 695b ldr r3, [r3, #20] - 800763e: 4a97 ldr r2, [pc, #604] ; (800789c ) - 8007640: 6812 ldr r2, [r2, #0] - 8007642: 4611 mov r1, r2 - 8007644: 4618 mov r0, r3 - 8007646: f007 fdcd bl 800f1e4 - 800764a: 4603 mov r3, r0 - 800764c: 2b00 cmp r3, #0 - 800764e: f040 83c7 bne.w 8007de0 + 8007636: 4b98 ldr r3, [pc, #608] ; (8007898 ) + 8007638: 695b ldr r3, [r3, #20] + 800763a: 4a97 ldr r2, [pc, #604] ; (8007898 ) + 800763c: 6812 ldr r2, [r2, #0] + 800763e: 4611 mov r1, r2 + 8007640: 4618 mov r0, r3 + 8007642: f007 fdcd bl 800f1e0 + 8007646: 4603 mov r3, r0 + 8007648: 2b00 cmp r3, #0 + 800764a: f040 83c7 bne.w 8007ddc ip_addr_ismulticast(ip_current_dest_addr())) { - 8007652: 4b92 ldr r3, [pc, #584] ; (800789c ) - 8007654: 695b ldr r3, [r3, #20] - 8007656: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800764e: 4b92 ldr r3, [pc, #584] ; (8007898 ) + 8007650: 695b ldr r3, [r3, #20] + 8007652: f003 03f0 and.w r3, r3, #240 ; 0xf0 if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) || - 800765a: 2be0 cmp r3, #224 ; 0xe0 - 800765c: f000 83c0 beq.w 8007de0 + 8007656: 2be0 cmp r3, #224 ; 0xe0 + 8007658: f000 83c0 beq.w 8007ddc } } #endif /* CHECKSUM_CHECK_TCP */ /* sanity-check header length */ hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr); - 8007660: 4b8d ldr r3, [pc, #564] ; (8007898 ) - 8007662: 681b ldr r3, [r3, #0] - 8007664: 899b ldrh r3, [r3, #12] - 8007666: b29b uxth r3, r3 - 8007668: 4618 mov r0, r3 - 800766a: f7fc fe2d bl 80042c8 - 800766e: 4603 mov r3, r0 - 8007670: 0b1b lsrs r3, r3, #12 - 8007672: b29b uxth r3, r3 - 8007674: b2db uxtb r3, r3 - 8007676: 009b lsls r3, r3, #2 - 8007678: 74bb strb r3, [r7, #18] + 800765c: 4b8d ldr r3, [pc, #564] ; (8007894 ) + 800765e: 681b ldr r3, [r3, #0] + 8007660: 899b ldrh r3, [r3, #12] + 8007662: b29b uxth r3, r3 + 8007664: 4618 mov r0, r3 + 8007666: f7fc fe2d bl 80042c4 + 800766a: 4603 mov r3, r0 + 800766c: 0b1b lsrs r3, r3, #12 + 800766e: b29b uxth r3, r3 + 8007670: b2db uxtb r3, r3 + 8007672: 009b lsls r3, r3, #2 + 8007674: 74bb strb r3, [r7, #18] if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) { - 800767a: 7cbb ldrb r3, [r7, #18] - 800767c: 2b13 cmp r3, #19 - 800767e: f240 83b1 bls.w 8007de4 - 8007682: 7cbb ldrb r3, [r7, #18] - 8007684: b29a uxth r2, r3 - 8007686: 687b ldr r3, [r7, #4] - 8007688: 891b ldrh r3, [r3, #8] - 800768a: 429a cmp r2, r3 - 800768c: f200 83aa bhi.w 8007de4 + 8007676: 7cbb ldrb r3, [r7, #18] + 8007678: 2b13 cmp r3, #19 + 800767a: f240 83b1 bls.w 8007de0 + 800767e: 7cbb ldrb r3, [r7, #18] + 8007680: b29a uxth r2, r3 + 8007682: 687b ldr r3, [r7, #4] + 8007684: 891b ldrh r3, [r3, #8] + 8007686: 429a cmp r2, r3 + 8007688: f200 83aa bhi.w 8007de0 goto dropped; } /* Move the payload pointer in the pbuf so that it points to the TCP data instead of the TCP header. */ tcphdr_optlen = (u16_t)(hdrlen_bytes - TCP_HLEN); - 8007690: 7cbb ldrb r3, [r7, #18] - 8007692: b29b uxth r3, r3 - 8007694: 3b14 subs r3, #20 - 8007696: b29a uxth r2, r3 - 8007698: 4b81 ldr r3, [pc, #516] ; (80078a0 ) - 800769a: 801a strh r2, [r3, #0] + 800768c: 7cbb ldrb r3, [r7, #18] + 800768e: b29b uxth r3, r3 + 8007690: 3b14 subs r3, #20 + 8007692: b29a uxth r2, r3 + 8007694: 4b81 ldr r3, [pc, #516] ; (800789c ) + 8007696: 801a strh r2, [r3, #0] tcphdr_opt2 = NULL; - 800769c: 4b81 ldr r3, [pc, #516] ; (80078a4 ) - 800769e: 2200 movs r2, #0 - 80076a0: 601a str r2, [r3, #0] + 8007698: 4b81 ldr r3, [pc, #516] ; (80078a0 ) + 800769a: 2200 movs r2, #0 + 800769c: 601a str r2, [r3, #0] if (p->len >= hdrlen_bytes) { - 80076a2: 687b ldr r3, [r7, #4] - 80076a4: 895a ldrh r2, [r3, #10] - 80076a6: 7cbb ldrb r3, [r7, #18] - 80076a8: b29b uxth r3, r3 - 80076aa: 429a cmp r2, r3 - 80076ac: d309 bcc.n 80076c2 + 800769e: 687b ldr r3, [r7, #4] + 80076a0: 895a ldrh r2, [r3, #10] + 80076a2: 7cbb ldrb r3, [r7, #18] + 80076a4: b29b uxth r3, r3 + 80076a6: 429a cmp r2, r3 + 80076a8: d309 bcc.n 80076be /* all options are in the first pbuf */ tcphdr_opt1len = tcphdr_optlen; - 80076ae: 4b7c ldr r3, [pc, #496] ; (80078a0 ) - 80076b0: 881a ldrh r2, [r3, #0] - 80076b2: 4b7d ldr r3, [pc, #500] ; (80078a8 ) - 80076b4: 801a strh r2, [r3, #0] + 80076aa: 4b7c ldr r3, [pc, #496] ; (800789c ) + 80076ac: 881a ldrh r2, [r3, #0] + 80076ae: 4b7d ldr r3, [pc, #500] ; (80078a4 ) + 80076b0: 801a strh r2, [r3, #0] pbuf_remove_header(p, hdrlen_bytes); /* cannot fail */ - 80076b6: 7cbb ldrb r3, [r7, #18] - 80076b8: 4619 mov r1, r3 - 80076ba: 6878 ldr r0, [r7, #4] - 80076bc: f7fe f8e8 bl 8005890 - 80076c0: e04e b.n 8007760 + 80076b2: 7cbb ldrb r3, [r7, #18] + 80076b4: 4619 mov r1, r3 + 80076b6: 6878 ldr r0, [r7, #4] + 80076b8: f7fe f8e8 bl 800588c + 80076bc: e04e b.n 800775c } else { u16_t opt2len; /* TCP header fits into first pbuf, options don't - data is in the next pbuf */ /* there must be a next pbuf, due to hdrlen_bytes sanity check above */ LWIP_ASSERT("p->next != NULL", p->next != NULL); - 80076c2: 687b ldr r3, [r7, #4] - 80076c4: 681b ldr r3, [r3, #0] - 80076c6: 2b00 cmp r3, #0 - 80076c8: d105 bne.n 80076d6 - 80076ca: 4b70 ldr r3, [pc, #448] ; (800788c ) - 80076cc: 22c2 movs r2, #194 ; 0xc2 - 80076ce: 4977 ldr r1, [pc, #476] ; (80078ac ) - 80076d0: 4870 ldr r0, [pc, #448] ; (8007894 ) - 80076d2: f008 fe7f bl 80103d4 + 80076be: 687b ldr r3, [r7, #4] + 80076c0: 681b ldr r3, [r3, #0] + 80076c2: 2b00 cmp r3, #0 + 80076c4: d105 bne.n 80076d2 + 80076c6: 4b70 ldr r3, [pc, #448] ; (8007888 ) + 80076c8: 22c2 movs r2, #194 ; 0xc2 + 80076ca: 4977 ldr r1, [pc, #476] ; (80078a8 ) + 80076cc: 4870 ldr r0, [pc, #448] ; (8007890 ) + 80076ce: f008 fe7f bl 80103d0 /* advance over the TCP header (cannot fail) */ pbuf_remove_header(p, TCP_HLEN); - 80076d6: 2114 movs r1, #20 - 80076d8: 6878 ldr r0, [r7, #4] - 80076da: f7fe f8d9 bl 8005890 + 80076d2: 2114 movs r1, #20 + 80076d4: 6878 ldr r0, [r7, #4] + 80076d6: f7fe f8d9 bl 800588c /* determine how long the first and second parts of the options are */ tcphdr_opt1len = p->len; - 80076de: 687b ldr r3, [r7, #4] - 80076e0: 895a ldrh r2, [r3, #10] - 80076e2: 4b71 ldr r3, [pc, #452] ; (80078a8 ) - 80076e4: 801a strh r2, [r3, #0] + 80076da: 687b ldr r3, [r7, #4] + 80076dc: 895a ldrh r2, [r3, #10] + 80076de: 4b71 ldr r3, [pc, #452] ; (80078a4 ) + 80076e0: 801a strh r2, [r3, #0] opt2len = (u16_t)(tcphdr_optlen - tcphdr_opt1len); - 80076e6: 4b6e ldr r3, [pc, #440] ; (80078a0 ) - 80076e8: 881a ldrh r2, [r3, #0] - 80076ea: 4b6f ldr r3, [pc, #444] ; (80078a8 ) - 80076ec: 881b ldrh r3, [r3, #0] - 80076ee: 1ad3 subs r3, r2, r3 - 80076f0: 823b strh r3, [r7, #16] + 80076e2: 4b6e ldr r3, [pc, #440] ; (800789c ) + 80076e4: 881a ldrh r2, [r3, #0] + 80076e6: 4b6f ldr r3, [pc, #444] ; (80078a4 ) + 80076e8: 881b ldrh r3, [r3, #0] + 80076ea: 1ad3 subs r3, r2, r3 + 80076ec: 823b strh r3, [r7, #16] /* options continue in the next pbuf: set p to zero length and hide the options in the next pbuf (adjusting p->tot_len) */ pbuf_remove_header(p, tcphdr_opt1len); - 80076f2: 4b6d ldr r3, [pc, #436] ; (80078a8 ) - 80076f4: 881b ldrh r3, [r3, #0] - 80076f6: 4619 mov r1, r3 - 80076f8: 6878 ldr r0, [r7, #4] - 80076fa: f7fe f8c9 bl 8005890 + 80076ee: 4b6d ldr r3, [pc, #436] ; (80078a4 ) + 80076f0: 881b ldrh r3, [r3, #0] + 80076f2: 4619 mov r1, r3 + 80076f4: 6878 ldr r0, [r7, #4] + 80076f6: f7fe f8c9 bl 800588c /* check that the options fit in the second pbuf */ if (opt2len > p->next->len) { - 80076fe: 687b ldr r3, [r7, #4] - 8007700: 681b ldr r3, [r3, #0] - 8007702: 895b ldrh r3, [r3, #10] - 8007704: 8a3a ldrh r2, [r7, #16] - 8007706: 429a cmp r2, r3 - 8007708: f200 836e bhi.w 8007de8 + 80076fa: 687b ldr r3, [r7, #4] + 80076fc: 681b ldr r3, [r3, #0] + 80076fe: 895b ldrh r3, [r3, #10] + 8007700: 8a3a ldrh r2, [r7, #16] + 8007702: 429a cmp r2, r3 + 8007704: f200 836e bhi.w 8007de4 TCP_STATS_INC(tcp.lenerr); goto dropped; } /* remember the pointer to the second part of the options */ tcphdr_opt2 = (u8_t *)p->next->payload; - 800770c: 687b ldr r3, [r7, #4] - 800770e: 681b ldr r3, [r3, #0] - 8007710: 685b ldr r3, [r3, #4] - 8007712: 4a64 ldr r2, [pc, #400] ; (80078a4 ) - 8007714: 6013 str r3, [r2, #0] + 8007708: 687b ldr r3, [r7, #4] + 800770a: 681b ldr r3, [r3, #0] + 800770c: 685b ldr r3, [r3, #4] + 800770e: 4a64 ldr r2, [pc, #400] ; (80078a0 ) + 8007710: 6013 str r3, [r2, #0] /* advance p->next to point after the options, and manually adjust p->tot_len to keep it consistent with the changed p->next */ pbuf_remove_header(p->next, opt2len); - 8007716: 687b ldr r3, [r7, #4] - 8007718: 681b ldr r3, [r3, #0] - 800771a: 8a3a ldrh r2, [r7, #16] - 800771c: 4611 mov r1, r2 - 800771e: 4618 mov r0, r3 - 8007720: f7fe f8b6 bl 8005890 + 8007712: 687b ldr r3, [r7, #4] + 8007714: 681b ldr r3, [r3, #0] + 8007716: 8a3a ldrh r2, [r7, #16] + 8007718: 4611 mov r1, r2 + 800771a: 4618 mov r0, r3 + 800771c: f7fe f8b6 bl 800588c p->tot_len = (u16_t)(p->tot_len - opt2len); - 8007724: 687b ldr r3, [r7, #4] - 8007726: 891a ldrh r2, [r3, #8] - 8007728: 8a3b ldrh r3, [r7, #16] - 800772a: 1ad3 subs r3, r2, r3 - 800772c: b29a uxth r2, r3 - 800772e: 687b ldr r3, [r7, #4] - 8007730: 811a strh r2, [r3, #8] + 8007720: 687b ldr r3, [r7, #4] + 8007722: 891a ldrh r2, [r3, #8] + 8007724: 8a3b ldrh r3, [r7, #16] + 8007726: 1ad3 subs r3, r2, r3 + 8007728: b29a uxth r2, r3 + 800772a: 687b ldr r3, [r7, #4] + 800772c: 811a strh r2, [r3, #8] LWIP_ASSERT("p->len == 0", p->len == 0); - 8007732: 687b ldr r3, [r7, #4] - 8007734: 895b ldrh r3, [r3, #10] - 8007736: 2b00 cmp r3, #0 - 8007738: d005 beq.n 8007746 - 800773a: 4b54 ldr r3, [pc, #336] ; (800788c ) - 800773c: 22df movs r2, #223 ; 0xdf - 800773e: 495c ldr r1, [pc, #368] ; (80078b0 ) - 8007740: 4854 ldr r0, [pc, #336] ; (8007894 ) - 8007742: f008 fe47 bl 80103d4 + 800772e: 687b ldr r3, [r7, #4] + 8007730: 895b ldrh r3, [r3, #10] + 8007732: 2b00 cmp r3, #0 + 8007734: d005 beq.n 8007742 + 8007736: 4b54 ldr r3, [pc, #336] ; (8007888 ) + 8007738: 22df movs r2, #223 ; 0xdf + 800773a: 495c ldr r1, [pc, #368] ; (80078ac ) + 800773c: 4854 ldr r0, [pc, #336] ; (8007890 ) + 800773e: f008 fe47 bl 80103d0 LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len); + 8007742: 687b ldr r3, [r7, #4] + 8007744: 891a ldrh r2, [r3, #8] 8007746: 687b ldr r3, [r7, #4] - 8007748: 891a ldrh r2, [r3, #8] - 800774a: 687b ldr r3, [r7, #4] - 800774c: 681b ldr r3, [r3, #0] - 800774e: 891b ldrh r3, [r3, #8] - 8007750: 429a cmp r2, r3 - 8007752: d005 beq.n 8007760 - 8007754: 4b4d ldr r3, [pc, #308] ; (800788c ) - 8007756: 22e0 movs r2, #224 ; 0xe0 - 8007758: 4956 ldr r1, [pc, #344] ; (80078b4 ) - 800775a: 484e ldr r0, [pc, #312] ; (8007894 ) - 800775c: f008 fe3a bl 80103d4 + 8007748: 681b ldr r3, [r3, #0] + 800774a: 891b ldrh r3, [r3, #8] + 800774c: 429a cmp r2, r3 + 800774e: d005 beq.n 800775c + 8007750: 4b4d ldr r3, [pc, #308] ; (8007888 ) + 8007752: 22e0 movs r2, #224 ; 0xe0 + 8007754: 4956 ldr r1, [pc, #344] ; (80078b0 ) + 8007756: 484e ldr r0, [pc, #312] ; (8007890 ) + 8007758: f008 fe3a bl 80103d0 } /* Convert fields in TCP header to host byte order. */ tcphdr->src = lwip_ntohs(tcphdr->src); - 8007760: 4b4d ldr r3, [pc, #308] ; (8007898 ) - 8007762: 681b ldr r3, [r3, #0] - 8007764: 881b ldrh r3, [r3, #0] - 8007766: b29b uxth r3, r3 - 8007768: 4a4b ldr r2, [pc, #300] ; (8007898 ) - 800776a: 6814 ldr r4, [r2, #0] - 800776c: 4618 mov r0, r3 - 800776e: f7fc fdab bl 80042c8 - 8007772: 4603 mov r3, r0 - 8007774: 8023 strh r3, [r4, #0] + 800775c: 4b4d ldr r3, [pc, #308] ; (8007894 ) + 800775e: 681b ldr r3, [r3, #0] + 8007760: 881b ldrh r3, [r3, #0] + 8007762: b29b uxth r3, r3 + 8007764: 4a4b ldr r2, [pc, #300] ; (8007894 ) + 8007766: 6814 ldr r4, [r2, #0] + 8007768: 4618 mov r0, r3 + 800776a: f7fc fdab bl 80042c4 + 800776e: 4603 mov r3, r0 + 8007770: 8023 strh r3, [r4, #0] tcphdr->dest = lwip_ntohs(tcphdr->dest); - 8007776: 4b48 ldr r3, [pc, #288] ; (8007898 ) - 8007778: 681b ldr r3, [r3, #0] - 800777a: 885b ldrh r3, [r3, #2] - 800777c: b29b uxth r3, r3 - 800777e: 4a46 ldr r2, [pc, #280] ; (8007898 ) - 8007780: 6814 ldr r4, [r2, #0] - 8007782: 4618 mov r0, r3 - 8007784: f7fc fda0 bl 80042c8 - 8007788: 4603 mov r3, r0 - 800778a: 8063 strh r3, [r4, #2] + 8007772: 4b48 ldr r3, [pc, #288] ; (8007894 ) + 8007774: 681b ldr r3, [r3, #0] + 8007776: 885b ldrh r3, [r3, #2] + 8007778: b29b uxth r3, r3 + 800777a: 4a46 ldr r2, [pc, #280] ; (8007894 ) + 800777c: 6814 ldr r4, [r2, #0] + 800777e: 4618 mov r0, r3 + 8007780: f7fc fda0 bl 80042c4 + 8007784: 4603 mov r3, r0 + 8007786: 8063 strh r3, [r4, #2] seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno); - 800778c: 4b42 ldr r3, [pc, #264] ; (8007898 ) - 800778e: 681b ldr r3, [r3, #0] - 8007790: 685b ldr r3, [r3, #4] - 8007792: 4a41 ldr r2, [pc, #260] ; (8007898 ) - 8007794: 6814 ldr r4, [r2, #0] - 8007796: 4618 mov r0, r3 - 8007798: f7fc fdab bl 80042f2 - 800779c: 4603 mov r3, r0 - 800779e: 6063 str r3, [r4, #4] - 80077a0: 6863 ldr r3, [r4, #4] - 80077a2: 4a45 ldr r2, [pc, #276] ; (80078b8 ) - 80077a4: 6013 str r3, [r2, #0] + 8007788: 4b42 ldr r3, [pc, #264] ; (8007894 ) + 800778a: 681b ldr r3, [r3, #0] + 800778c: 685b ldr r3, [r3, #4] + 800778e: 4a41 ldr r2, [pc, #260] ; (8007894 ) + 8007790: 6814 ldr r4, [r2, #0] + 8007792: 4618 mov r0, r3 + 8007794: f7fc fdab bl 80042ee + 8007798: 4603 mov r3, r0 + 800779a: 6063 str r3, [r4, #4] + 800779c: 6863 ldr r3, [r4, #4] + 800779e: 4a45 ldr r2, [pc, #276] ; (80078b4 ) + 80077a0: 6013 str r3, [r2, #0] ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno); - 80077a6: 4b3c ldr r3, [pc, #240] ; (8007898 ) - 80077a8: 681b ldr r3, [r3, #0] - 80077aa: 689b ldr r3, [r3, #8] - 80077ac: 4a3a ldr r2, [pc, #232] ; (8007898 ) - 80077ae: 6814 ldr r4, [r2, #0] - 80077b0: 4618 mov r0, r3 - 80077b2: f7fc fd9e bl 80042f2 - 80077b6: 4603 mov r3, r0 - 80077b8: 60a3 str r3, [r4, #8] - 80077ba: 68a3 ldr r3, [r4, #8] - 80077bc: 4a3f ldr r2, [pc, #252] ; (80078bc ) - 80077be: 6013 str r3, [r2, #0] + 80077a2: 4b3c ldr r3, [pc, #240] ; (8007894 ) + 80077a4: 681b ldr r3, [r3, #0] + 80077a6: 689b ldr r3, [r3, #8] + 80077a8: 4a3a ldr r2, [pc, #232] ; (8007894 ) + 80077aa: 6814 ldr r4, [r2, #0] + 80077ac: 4618 mov r0, r3 + 80077ae: f7fc fd9e bl 80042ee + 80077b2: 4603 mov r3, r0 + 80077b4: 60a3 str r3, [r4, #8] + 80077b6: 68a3 ldr r3, [r4, #8] + 80077b8: 4a3f ldr r2, [pc, #252] ; (80078b8 ) + 80077ba: 6013 str r3, [r2, #0] tcphdr->wnd = lwip_ntohs(tcphdr->wnd); - 80077c0: 4b35 ldr r3, [pc, #212] ; (8007898 ) - 80077c2: 681b ldr r3, [r3, #0] - 80077c4: 89db ldrh r3, [r3, #14] - 80077c6: b29b uxth r3, r3 - 80077c8: 4a33 ldr r2, [pc, #204] ; (8007898 ) - 80077ca: 6814 ldr r4, [r2, #0] - 80077cc: 4618 mov r0, r3 - 80077ce: f7fc fd7b bl 80042c8 - 80077d2: 4603 mov r3, r0 - 80077d4: 81e3 strh r3, [r4, #14] + 80077bc: 4b35 ldr r3, [pc, #212] ; (8007894 ) + 80077be: 681b ldr r3, [r3, #0] + 80077c0: 89db ldrh r3, [r3, #14] + 80077c2: b29b uxth r3, r3 + 80077c4: 4a33 ldr r2, [pc, #204] ; (8007894 ) + 80077c6: 6814 ldr r4, [r2, #0] + 80077c8: 4618 mov r0, r3 + 80077ca: f7fc fd7b bl 80042c4 + 80077ce: 4603 mov r3, r0 + 80077d0: 81e3 strh r3, [r4, #14] flags = TCPH_FLAGS(tcphdr); - 80077d6: 4b30 ldr r3, [pc, #192] ; (8007898 ) - 80077d8: 681b ldr r3, [r3, #0] - 80077da: 899b ldrh r3, [r3, #12] - 80077dc: b29b uxth r3, r3 - 80077de: 4618 mov r0, r3 - 80077e0: f7fc fd72 bl 80042c8 - 80077e4: 4603 mov r3, r0 - 80077e6: b2db uxtb r3, r3 - 80077e8: f003 033f and.w r3, r3, #63 ; 0x3f - 80077ec: b2da uxtb r2, r3 - 80077ee: 4b34 ldr r3, [pc, #208] ; (80078c0 ) - 80077f0: 701a strb r2, [r3, #0] + 80077d2: 4b30 ldr r3, [pc, #192] ; (8007894 ) + 80077d4: 681b ldr r3, [r3, #0] + 80077d6: 899b ldrh r3, [r3, #12] + 80077d8: b29b uxth r3, r3 + 80077da: 4618 mov r0, r3 + 80077dc: f7fc fd72 bl 80042c4 + 80077e0: 4603 mov r3, r0 + 80077e2: b2db uxtb r3, r3 + 80077e4: f003 033f and.w r3, r3, #63 ; 0x3f + 80077e8: b2da uxtb r2, r3 + 80077ea: 4b34 ldr r3, [pc, #208] ; (80078bc ) + 80077ec: 701a strb r2, [r3, #0] tcplen = p->tot_len; - 80077f2: 687b ldr r3, [r7, #4] - 80077f4: 891a ldrh r2, [r3, #8] - 80077f6: 4b33 ldr r3, [pc, #204] ; (80078c4 ) - 80077f8: 801a strh r2, [r3, #0] + 80077ee: 687b ldr r3, [r7, #4] + 80077f0: 891a ldrh r2, [r3, #8] + 80077f2: 4b33 ldr r3, [pc, #204] ; (80078c0 ) + 80077f4: 801a strh r2, [r3, #0] if (flags & (TCP_FIN | TCP_SYN)) { - 80077fa: 4b31 ldr r3, [pc, #196] ; (80078c0 ) - 80077fc: 781b ldrb r3, [r3, #0] - 80077fe: f003 0303 and.w r3, r3, #3 - 8007802: 2b00 cmp r3, #0 - 8007804: d00c beq.n 8007820 + 80077f6: 4b31 ldr r3, [pc, #196] ; (80078bc ) + 80077f8: 781b ldrb r3, [r3, #0] + 80077fa: f003 0303 and.w r3, r3, #3 + 80077fe: 2b00 cmp r3, #0 + 8007800: d00c beq.n 800781c tcplen++; - 8007806: 4b2f ldr r3, [pc, #188] ; (80078c4 ) - 8007808: 881b ldrh r3, [r3, #0] - 800780a: 3301 adds r3, #1 - 800780c: b29a uxth r2, r3 - 800780e: 4b2d ldr r3, [pc, #180] ; (80078c4 ) - 8007810: 801a strh r2, [r3, #0] + 8007802: 4b2f ldr r3, [pc, #188] ; (80078c0 ) + 8007804: 881b ldrh r3, [r3, #0] + 8007806: 3301 adds r3, #1 + 8007808: b29a uxth r2, r3 + 800780a: 4b2d ldr r3, [pc, #180] ; (80078c0 ) + 800780c: 801a strh r2, [r3, #0] if (tcplen < p->tot_len) { - 8007812: 687b ldr r3, [r7, #4] - 8007814: 891a ldrh r2, [r3, #8] - 8007816: 4b2b ldr r3, [pc, #172] ; (80078c4 ) - 8007818: 881b ldrh r3, [r3, #0] - 800781a: 429a cmp r2, r3 - 800781c: f200 82e6 bhi.w 8007dec + 800780e: 687b ldr r3, [r7, #4] + 8007810: 891a ldrh r2, [r3, #8] + 8007812: 4b2b ldr r3, [pc, #172] ; (80078c0 ) + 8007814: 881b ldrh r3, [r3, #0] + 8007816: 429a cmp r2, r3 + 8007818: f200 82e6 bhi.w 8007de8 } } /* Demultiplex an incoming segment. First, we check if it is destined for an active connection. */ prev = NULL; - 8007820: 2300 movs r3, #0 - 8007822: 61bb str r3, [r7, #24] + 800781c: 2300 movs r3, #0 + 800781e: 61bb str r3, [r7, #24] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8007824: 4b28 ldr r3, [pc, #160] ; (80078c8 ) - 8007826: 681b ldr r3, [r3, #0] - 8007828: 61fb str r3, [r7, #28] - 800782a: e09d b.n 8007968 + 8007820: 4b28 ldr r3, [pc, #160] ; (80078c4 ) + 8007822: 681b ldr r3, [r3, #0] + 8007824: 61fb str r3, [r7, #28] + 8007826: e09d b.n 8007964 LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED); - 800782c: 69fb ldr r3, [r7, #28] - 800782e: 7d1b ldrb r3, [r3, #20] - 8007830: 2b00 cmp r3, #0 - 8007832: d105 bne.n 8007840 - 8007834: 4b15 ldr r3, [pc, #84] ; (800788c ) - 8007836: 22fb movs r2, #251 ; 0xfb - 8007838: 4924 ldr r1, [pc, #144] ; (80078cc ) - 800783a: 4816 ldr r0, [pc, #88] ; (8007894 ) - 800783c: f008 fdca bl 80103d4 + 8007828: 69fb ldr r3, [r7, #28] + 800782a: 7d1b ldrb r3, [r3, #20] + 800782c: 2b00 cmp r3, #0 + 800782e: d105 bne.n 800783c + 8007830: 4b15 ldr r3, [pc, #84] ; (8007888 ) + 8007832: 22fb movs r2, #251 ; 0xfb + 8007834: 4924 ldr r1, [pc, #144] ; (80078c8 ) + 8007836: 4816 ldr r0, [pc, #88] ; (8007890 ) + 8007838: f008 fdca bl 80103d0 LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT); - 8007840: 69fb ldr r3, [r7, #28] - 8007842: 7d1b ldrb r3, [r3, #20] - 8007844: 2b0a cmp r3, #10 - 8007846: d105 bne.n 8007854 - 8007848: 4b10 ldr r3, [pc, #64] ; (800788c ) - 800784a: 22fc movs r2, #252 ; 0xfc - 800784c: 4920 ldr r1, [pc, #128] ; (80078d0 ) - 800784e: 4811 ldr r0, [pc, #68] ; (8007894 ) - 8007850: f008 fdc0 bl 80103d4 + 800783c: 69fb ldr r3, [r7, #28] + 800783e: 7d1b ldrb r3, [r3, #20] + 8007840: 2b0a cmp r3, #10 + 8007842: d105 bne.n 8007850 + 8007844: 4b10 ldr r3, [pc, #64] ; (8007888 ) + 8007846: 22fc movs r2, #252 ; 0xfc + 8007848: 4920 ldr r1, [pc, #128] ; (80078cc ) + 800784a: 4811 ldr r0, [pc, #68] ; (8007890 ) + 800784c: f008 fdc0 bl 80103d0 LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN); - 8007854: 69fb ldr r3, [r7, #28] - 8007856: 7d1b ldrb r3, [r3, #20] - 8007858: 2b01 cmp r3, #1 - 800785a: d105 bne.n 8007868 - 800785c: 4b0b ldr r3, [pc, #44] ; (800788c ) - 800785e: 22fd movs r2, #253 ; 0xfd - 8007860: 491c ldr r1, [pc, #112] ; (80078d4 ) - 8007862: 480c ldr r0, [pc, #48] ; (8007894 ) - 8007864: f008 fdb6 bl 80103d4 + 8007850: 69fb ldr r3, [r7, #28] + 8007852: 7d1b ldrb r3, [r3, #20] + 8007854: 2b01 cmp r3, #1 + 8007856: d105 bne.n 8007864 + 8007858: 4b0b ldr r3, [pc, #44] ; (8007888 ) + 800785a: 22fd movs r2, #253 ; 0xfd + 800785c: 491c ldr r1, [pc, #112] ; (80078d0 ) + 800785e: 480c ldr r0, [pc, #48] ; (8007890 ) + 8007860: f008 fdb6 bl 80103d0 /* check if PCB is bound to specific netif */ if ((pcb->netif_idx != NETIF_NO_INDEX) && - 8007868: 69fb ldr r3, [r7, #28] - 800786a: 7a1b ldrb r3, [r3, #8] - 800786c: 2b00 cmp r3, #0 - 800786e: d033 beq.n 80078d8 + 8007864: 69fb ldr r3, [r7, #28] + 8007866: 7a1b ldrb r3, [r3, #8] + 8007868: 2b00 cmp r3, #0 + 800786a: d033 beq.n 80078d4 (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 8007870: 69fb ldr r3, [r7, #28] - 8007872: 7a1a ldrb r2, [r3, #8] - 8007874: 4b09 ldr r3, [pc, #36] ; (800789c ) - 8007876: 685b ldr r3, [r3, #4] - 8007878: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 800787c: 3301 adds r3, #1 - 800787e: b2db uxtb r3, r3 + 800786c: 69fb ldr r3, [r7, #28] + 800786e: 7a1a ldrb r2, [r3, #8] + 8007870: 4b09 ldr r3, [pc, #36] ; (8007898 ) + 8007872: 685b ldr r3, [r3, #4] + 8007874: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8007878: 3301 adds r3, #1 + 800787a: b2db uxtb r3, r3 if ((pcb->netif_idx != NETIF_NO_INDEX) && - 8007880: 429a cmp r2, r3 - 8007882: d029 beq.n 80078d8 + 800787c: 429a cmp r2, r3 + 800787e: d029 beq.n 80078d4 prev = pcb; - 8007884: 69fb ldr r3, [r7, #28] - 8007886: 61bb str r3, [r7, #24] + 8007880: 69fb ldr r3, [r7, #28] + 8007882: 61bb str r3, [r7, #24] continue; - 8007888: e06b b.n 8007962 - 800788a: bf00 nop - 800788c: 08016124 .word 0x08016124 - 8007890: 08016158 .word 0x08016158 - 8007894: 08016170 .word 0x08016170 - 8007898: 20008c28 .word 0x20008c28 - 800789c: 20005670 .word 0x20005670 - 80078a0: 20008c2c .word 0x20008c2c - 80078a4: 20008c30 .word 0x20008c30 - 80078a8: 20008c2e .word 0x20008c2e - 80078ac: 08016198 .word 0x08016198 - 80078b0: 080161a8 .word 0x080161a8 - 80078b4: 080161b4 .word 0x080161b4 - 80078b8: 20008c38 .word 0x20008c38 - 80078bc: 20008c3c .word 0x20008c3c - 80078c0: 20008c44 .word 0x20008c44 - 80078c4: 20008c42 .word 0x20008c42 - 80078c8: 20008c0c .word 0x20008c0c - 80078cc: 080161d4 .word 0x080161d4 - 80078d0: 080161fc .word 0x080161fc - 80078d4: 08016228 .word 0x08016228 + 8007884: e06b b.n 800795e + 8007886: bf00 nop + 8007888: 08016124 .word 0x08016124 + 800788c: 08016158 .word 0x08016158 + 8007890: 08016170 .word 0x08016170 + 8007894: 20008c28 .word 0x20008c28 + 8007898: 20005670 .word 0x20005670 + 800789c: 20008c2c .word 0x20008c2c + 80078a0: 20008c30 .word 0x20008c30 + 80078a4: 20008c2e .word 0x20008c2e + 80078a8: 08016198 .word 0x08016198 + 80078ac: 080161a8 .word 0x080161a8 + 80078b0: 080161b4 .word 0x080161b4 + 80078b4: 20008c38 .word 0x20008c38 + 80078b8: 20008c3c .word 0x20008c3c + 80078bc: 20008c44 .word 0x20008c44 + 80078c0: 20008c42 .word 0x20008c42 + 80078c4: 20008c0c .word 0x20008c0c + 80078c8: 080161d4 .word 0x080161d4 + 80078cc: 080161fc .word 0x080161fc + 80078d0: 08016228 .word 0x08016228 } if (pcb->remote_port == tcphdr->src && - 80078d8: 69fb ldr r3, [r7, #28] - 80078da: 8b1a ldrh r2, [r3, #24] - 80078dc: 4b72 ldr r3, [pc, #456] ; (8007aa8 ) - 80078de: 681b ldr r3, [r3, #0] - 80078e0: 881b ldrh r3, [r3, #0] - 80078e2: b29b uxth r3, r3 - 80078e4: 429a cmp r2, r3 - 80078e6: d13a bne.n 800795e + 80078d4: 69fb ldr r3, [r7, #28] + 80078d6: 8b1a ldrh r2, [r3, #24] + 80078d8: 4b72 ldr r3, [pc, #456] ; (8007aa4 ) + 80078da: 681b ldr r3, [r3, #0] + 80078dc: 881b ldrh r3, [r3, #0] + 80078de: b29b uxth r3, r3 + 80078e0: 429a cmp r2, r3 + 80078e2: d13a bne.n 800795a pcb->local_port == tcphdr->dest && - 80078e8: 69fb ldr r3, [r7, #28] - 80078ea: 8ada ldrh r2, [r3, #22] - 80078ec: 4b6e ldr r3, [pc, #440] ; (8007aa8 ) - 80078ee: 681b ldr r3, [r3, #0] - 80078f0: 885b ldrh r3, [r3, #2] - 80078f2: b29b uxth r3, r3 + 80078e4: 69fb ldr r3, [r7, #28] + 80078e6: 8ada ldrh r2, [r3, #22] + 80078e8: 4b6e ldr r3, [pc, #440] ; (8007aa4 ) + 80078ea: 681b ldr r3, [r3, #0] + 80078ec: 885b ldrh r3, [r3, #2] + 80078ee: b29b uxth r3, r3 if (pcb->remote_port == tcphdr->src && - 80078f4: 429a cmp r2, r3 - 80078f6: d132 bne.n 800795e + 80078f0: 429a cmp r2, r3 + 80078f2: d132 bne.n 800795a ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 80078f8: 69fb ldr r3, [r7, #28] - 80078fa: 685a ldr r2, [r3, #4] - 80078fc: 4b6b ldr r3, [pc, #428] ; (8007aac ) - 80078fe: 691b ldr r3, [r3, #16] + 80078f4: 69fb ldr r3, [r7, #28] + 80078f6: 685a ldr r2, [r3, #4] + 80078f8: 4b6b ldr r3, [pc, #428] ; (8007aa8 ) + 80078fa: 691b ldr r3, [r3, #16] pcb->local_port == tcphdr->dest && - 8007900: 429a cmp r2, r3 - 8007902: d12c bne.n 800795e + 80078fc: 429a cmp r2, r3 + 80078fe: d12c bne.n 800795a ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - 8007904: 69fb ldr r3, [r7, #28] - 8007906: 681a ldr r2, [r3, #0] - 8007908: 4b68 ldr r3, [pc, #416] ; (8007aac ) - 800790a: 695b ldr r3, [r3, #20] + 8007900: 69fb ldr r3, [r7, #28] + 8007902: 681a ldr r2, [r3, #0] + 8007904: 4b68 ldr r3, [pc, #416] ; (8007aa8 ) + 8007906: 695b ldr r3, [r3, #20] ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 800790c: 429a cmp r2, r3 - 800790e: d126 bne.n 800795e + 8007908: 429a cmp r2, r3 + 800790a: d126 bne.n 800795a /* Move this PCB to the front of the list so that subsequent lookups will be faster (we exploit locality in TCP segment arrivals). */ LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb); - 8007910: 69fb ldr r3, [r7, #28] - 8007912: 68db ldr r3, [r3, #12] - 8007914: 69fa ldr r2, [r7, #28] - 8007916: 429a cmp r2, r3 - 8007918: d106 bne.n 8007928 - 800791a: 4b65 ldr r3, [pc, #404] ; (8007ab0 ) - 800791c: f240 120d movw r2, #269 ; 0x10d - 8007920: 4964 ldr r1, [pc, #400] ; (8007ab4 ) - 8007922: 4865 ldr r0, [pc, #404] ; (8007ab8 ) - 8007924: f008 fd56 bl 80103d4 + 800790c: 69fb ldr r3, [r7, #28] + 800790e: 68db ldr r3, [r3, #12] + 8007910: 69fa ldr r2, [r7, #28] + 8007912: 429a cmp r2, r3 + 8007914: d106 bne.n 8007924 + 8007916: 4b65 ldr r3, [pc, #404] ; (8007aac ) + 8007918: f240 120d movw r2, #269 ; 0x10d + 800791c: 4964 ldr r1, [pc, #400] ; (8007ab0 ) + 800791e: 4865 ldr r0, [pc, #404] ; (8007ab4 ) + 8007920: f008 fd56 bl 80103d0 if (prev != NULL) { - 8007928: 69bb ldr r3, [r7, #24] - 800792a: 2b00 cmp r3, #0 - 800792c: d00a beq.n 8007944 + 8007924: 69bb ldr r3, [r7, #24] + 8007926: 2b00 cmp r3, #0 + 8007928: d00a beq.n 8007940 prev->next = pcb->next; - 800792e: 69fb ldr r3, [r7, #28] - 8007930: 68da ldr r2, [r3, #12] - 8007932: 69bb ldr r3, [r7, #24] - 8007934: 60da str r2, [r3, #12] + 800792a: 69fb ldr r3, [r7, #28] + 800792c: 68da ldr r2, [r3, #12] + 800792e: 69bb ldr r3, [r7, #24] + 8007930: 60da str r2, [r3, #12] pcb->next = tcp_active_pcbs; - 8007936: 4b61 ldr r3, [pc, #388] ; (8007abc ) - 8007938: 681a ldr r2, [r3, #0] - 800793a: 69fb ldr r3, [r7, #28] - 800793c: 60da str r2, [r3, #12] + 8007932: 4b61 ldr r3, [pc, #388] ; (8007ab8 ) + 8007934: 681a ldr r2, [r3, #0] + 8007936: 69fb ldr r3, [r7, #28] + 8007938: 60da str r2, [r3, #12] tcp_active_pcbs = pcb; - 800793e: 4a5f ldr r2, [pc, #380] ; (8007abc ) - 8007940: 69fb ldr r3, [r7, #28] - 8007942: 6013 str r3, [r2, #0] + 800793a: 4a5f ldr r2, [pc, #380] ; (8007ab8 ) + 800793c: 69fb ldr r3, [r7, #28] + 800793e: 6013 str r3, [r2, #0] } else { TCP_STATS_INC(tcp.cachehit); } LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb); - 8007944: 69fb ldr r3, [r7, #28] - 8007946: 68db ldr r3, [r3, #12] - 8007948: 69fa ldr r2, [r7, #28] - 800794a: 429a cmp r2, r3 - 800794c: d111 bne.n 8007972 - 800794e: 4b58 ldr r3, [pc, #352] ; (8007ab0 ) - 8007950: f240 1215 movw r2, #277 ; 0x115 - 8007954: 495a ldr r1, [pc, #360] ; (8007ac0 ) - 8007956: 4858 ldr r0, [pc, #352] ; (8007ab8 ) - 8007958: f008 fd3c bl 80103d4 + 8007940: 69fb ldr r3, [r7, #28] + 8007942: 68db ldr r3, [r3, #12] + 8007944: 69fa ldr r2, [r7, #28] + 8007946: 429a cmp r2, r3 + 8007948: d111 bne.n 800796e + 800794a: 4b58 ldr r3, [pc, #352] ; (8007aac ) + 800794c: f240 1215 movw r2, #277 ; 0x115 + 8007950: 495a ldr r1, [pc, #360] ; (8007abc ) + 8007952: 4858 ldr r0, [pc, #352] ; (8007ab4 ) + 8007954: f008 fd3c bl 80103d0 break; - 800795c: e009 b.n 8007972 + 8007958: e009 b.n 800796e } prev = pcb; - 800795e: 69fb ldr r3, [r7, #28] - 8007960: 61bb str r3, [r7, #24] + 800795a: 69fb ldr r3, [r7, #28] + 800795c: 61bb str r3, [r7, #24] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8007962: 69fb ldr r3, [r7, #28] - 8007964: 68db ldr r3, [r3, #12] - 8007966: 61fb str r3, [r7, #28] - 8007968: 69fb ldr r3, [r7, #28] - 800796a: 2b00 cmp r3, #0 - 800796c: f47f af5e bne.w 800782c - 8007970: e000 b.n 8007974 + 800795e: 69fb ldr r3, [r7, #28] + 8007960: 68db ldr r3, [r3, #12] + 8007962: 61fb str r3, [r7, #28] + 8007964: 69fb ldr r3, [r7, #28] + 8007966: 2b00 cmp r3, #0 + 8007968: f47f af5e bne.w 8007828 + 800796c: e000 b.n 8007970 break; - 8007972: bf00 nop + 800796e: bf00 nop } if (pcb == NULL) { - 8007974: 69fb ldr r3, [r7, #28] - 8007976: 2b00 cmp r3, #0 - 8007978: f040 80aa bne.w 8007ad0 + 8007970: 69fb ldr r3, [r7, #28] + 8007972: 2b00 cmp r3, #0 + 8007974: f040 80aa bne.w 8007acc /* If it did not go to an active connection, we check the connections in the TIME-WAIT state. */ for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 800797c: 4b51 ldr r3, [pc, #324] ; (8007ac4 ) - 800797e: 681b ldr r3, [r3, #0] - 8007980: 61fb str r3, [r7, #28] - 8007982: e03f b.n 8007a04 + 8007978: 4b51 ldr r3, [pc, #324] ; (8007ac0 ) + 800797a: 681b ldr r3, [r3, #0] + 800797c: 61fb str r3, [r7, #28] + 800797e: e03f b.n 8007a00 LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - 8007984: 69fb ldr r3, [r7, #28] - 8007986: 7d1b ldrb r3, [r3, #20] - 8007988: 2b0a cmp r3, #10 - 800798a: d006 beq.n 800799a - 800798c: 4b48 ldr r3, [pc, #288] ; (8007ab0 ) - 800798e: f240 121f movw r2, #287 ; 0x11f - 8007992: 494d ldr r1, [pc, #308] ; (8007ac8 ) - 8007994: 4848 ldr r0, [pc, #288] ; (8007ab8 ) - 8007996: f008 fd1d bl 80103d4 + 8007980: 69fb ldr r3, [r7, #28] + 8007982: 7d1b ldrb r3, [r3, #20] + 8007984: 2b0a cmp r3, #10 + 8007986: d006 beq.n 8007996 + 8007988: 4b48 ldr r3, [pc, #288] ; (8007aac ) + 800798a: f240 121f movw r2, #287 ; 0x11f + 800798e: 494d ldr r1, [pc, #308] ; (8007ac4 ) + 8007990: 4848 ldr r0, [pc, #288] ; (8007ab4 ) + 8007992: f008 fd1d bl 80103d0 /* check if PCB is bound to specific netif */ if ((pcb->netif_idx != NETIF_NO_INDEX) && - 800799a: 69fb ldr r3, [r7, #28] - 800799c: 7a1b ldrb r3, [r3, #8] - 800799e: 2b00 cmp r3, #0 - 80079a0: d009 beq.n 80079b6 + 8007996: 69fb ldr r3, [r7, #28] + 8007998: 7a1b ldrb r3, [r3, #8] + 800799a: 2b00 cmp r3, #0 + 800799c: d009 beq.n 80079b2 (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 80079a2: 69fb ldr r3, [r7, #28] - 80079a4: 7a1a ldrb r2, [r3, #8] - 80079a6: 4b41 ldr r3, [pc, #260] ; (8007aac ) - 80079a8: 685b ldr r3, [r3, #4] - 80079aa: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 80079ae: 3301 adds r3, #1 - 80079b0: b2db uxtb r3, r3 + 800799e: 69fb ldr r3, [r7, #28] + 80079a0: 7a1a ldrb r2, [r3, #8] + 80079a2: 4b41 ldr r3, [pc, #260] ; (8007aa8 ) + 80079a4: 685b ldr r3, [r3, #4] + 80079a6: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 80079aa: 3301 adds r3, #1 + 80079ac: b2db uxtb r3, r3 if ((pcb->netif_idx != NETIF_NO_INDEX) && - 80079b2: 429a cmp r2, r3 - 80079b4: d122 bne.n 80079fc + 80079ae: 429a cmp r2, r3 + 80079b0: d122 bne.n 80079f8 continue; } if (pcb->remote_port == tcphdr->src && - 80079b6: 69fb ldr r3, [r7, #28] - 80079b8: 8b1a ldrh r2, [r3, #24] - 80079ba: 4b3b ldr r3, [pc, #236] ; (8007aa8 ) - 80079bc: 681b ldr r3, [r3, #0] - 80079be: 881b ldrh r3, [r3, #0] - 80079c0: b29b uxth r3, r3 - 80079c2: 429a cmp r2, r3 - 80079c4: d11b bne.n 80079fe + 80079b2: 69fb ldr r3, [r7, #28] + 80079b4: 8b1a ldrh r2, [r3, #24] + 80079b6: 4b3b ldr r3, [pc, #236] ; (8007aa4 ) + 80079b8: 681b ldr r3, [r3, #0] + 80079ba: 881b ldrh r3, [r3, #0] + 80079bc: b29b uxth r3, r3 + 80079be: 429a cmp r2, r3 + 80079c0: d11b bne.n 80079fa pcb->local_port == tcphdr->dest && - 80079c6: 69fb ldr r3, [r7, #28] - 80079c8: 8ada ldrh r2, [r3, #22] - 80079ca: 4b37 ldr r3, [pc, #220] ; (8007aa8 ) - 80079cc: 681b ldr r3, [r3, #0] - 80079ce: 885b ldrh r3, [r3, #2] - 80079d0: b29b uxth r3, r3 + 80079c2: 69fb ldr r3, [r7, #28] + 80079c4: 8ada ldrh r2, [r3, #22] + 80079c6: 4b37 ldr r3, [pc, #220] ; (8007aa4 ) + 80079c8: 681b ldr r3, [r3, #0] + 80079ca: 885b ldrh r3, [r3, #2] + 80079cc: b29b uxth r3, r3 if (pcb->remote_port == tcphdr->src && - 80079d2: 429a cmp r2, r3 - 80079d4: d113 bne.n 80079fe + 80079ce: 429a cmp r2, r3 + 80079d0: d113 bne.n 80079fa ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 80079d6: 69fb ldr r3, [r7, #28] - 80079d8: 685a ldr r2, [r3, #4] - 80079da: 4b34 ldr r3, [pc, #208] ; (8007aac ) - 80079dc: 691b ldr r3, [r3, #16] + 80079d2: 69fb ldr r3, [r7, #28] + 80079d4: 685a ldr r2, [r3, #4] + 80079d6: 4b34 ldr r3, [pc, #208] ; (8007aa8 ) + 80079d8: 691b ldr r3, [r3, #16] pcb->local_port == tcphdr->dest && - 80079de: 429a cmp r2, r3 - 80079e0: d10d bne.n 80079fe + 80079da: 429a cmp r2, r3 + 80079dc: d10d bne.n 80079fa ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - 80079e2: 69fb ldr r3, [r7, #28] - 80079e4: 681a ldr r2, [r3, #0] - 80079e6: 4b31 ldr r3, [pc, #196] ; (8007aac ) - 80079e8: 695b ldr r3, [r3, #20] + 80079de: 69fb ldr r3, [r7, #28] + 80079e0: 681a ldr r2, [r3, #0] + 80079e2: 4b31 ldr r3, [pc, #196] ; (8007aa8 ) + 80079e4: 695b ldr r3, [r3, #20] ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 80079ea: 429a cmp r2, r3 - 80079ec: d107 bne.n 80079fe + 80079e6: 429a cmp r2, r3 + 80079e8: d107 bne.n 80079fa #ifdef LWIP_HOOK_TCP_INPACKET_PCB if (LWIP_HOOK_TCP_INPACKET_PCB(pcb, tcphdr, tcphdr_optlen, tcphdr_opt1len, tcphdr_opt2, p) == ERR_OK) #endif { tcp_timewait_input(pcb); - 80079ee: 69f8 ldr r0, [r7, #28] - 80079f0: f000 fb56 bl 80080a0 + 80079ea: 69f8 ldr r0, [r7, #28] + 80079ec: f000 fb56 bl 800809c } pbuf_free(p); - 80079f4: 6878 ldr r0, [r7, #4] - 80079f6: f7fd ffd1 bl 800599c + 80079f0: 6878 ldr r0, [r7, #4] + 80079f2: f7fd ffd1 bl 8005998 return; - 80079fa: e1fd b.n 8007df8 + 80079f6: e1fd b.n 8007df4 continue; - 80079fc: bf00 nop + 80079f8: bf00 nop for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 80079fe: 69fb ldr r3, [r7, #28] - 8007a00: 68db ldr r3, [r3, #12] - 8007a02: 61fb str r3, [r7, #28] - 8007a04: 69fb ldr r3, [r7, #28] - 8007a06: 2b00 cmp r3, #0 - 8007a08: d1bc bne.n 8007984 + 80079fa: 69fb ldr r3, [r7, #28] + 80079fc: 68db ldr r3, [r3, #12] + 80079fe: 61fb str r3, [r7, #28] + 8007a00: 69fb ldr r3, [r7, #28] + 8007a02: 2b00 cmp r3, #0 + 8007a04: d1bc bne.n 8007980 } } /* Finally, if we still did not get a match, we check all PCBs that are LISTENing for incoming connections. */ prev = NULL; - 8007a0a: 2300 movs r3, #0 - 8007a0c: 61bb str r3, [r7, #24] + 8007a06: 2300 movs r3, #0 + 8007a08: 61bb str r3, [r7, #24] for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 8007a0e: 4b2f ldr r3, [pc, #188] ; (8007acc ) - 8007a10: 681b ldr r3, [r3, #0] - 8007a12: 617b str r3, [r7, #20] - 8007a14: e02a b.n 8007a6c + 8007a0a: 4b2f ldr r3, [pc, #188] ; (8007ac8 ) + 8007a0c: 681b ldr r3, [r3, #0] + 8007a0e: 617b str r3, [r7, #20] + 8007a10: e02a b.n 8007a68 /* check if PCB is bound to specific netif */ if ((lpcb->netif_idx != NETIF_NO_INDEX) && - 8007a16: 697b ldr r3, [r7, #20] - 8007a18: 7a1b ldrb r3, [r3, #8] - 8007a1a: 2b00 cmp r3, #0 - 8007a1c: d00c beq.n 8007a38 + 8007a12: 697b ldr r3, [r7, #20] + 8007a14: 7a1b ldrb r3, [r3, #8] + 8007a16: 2b00 cmp r3, #0 + 8007a18: d00c beq.n 8007a34 (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 8007a1e: 697b ldr r3, [r7, #20] - 8007a20: 7a1a ldrb r2, [r3, #8] - 8007a22: 4b22 ldr r3, [pc, #136] ; (8007aac ) - 8007a24: 685b ldr r3, [r3, #4] - 8007a26: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8007a2a: 3301 adds r3, #1 - 8007a2c: b2db uxtb r3, r3 + 8007a1a: 697b ldr r3, [r7, #20] + 8007a1c: 7a1a ldrb r2, [r3, #8] + 8007a1e: 4b22 ldr r3, [pc, #136] ; (8007aa8 ) + 8007a20: 685b ldr r3, [r3, #4] + 8007a22: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8007a26: 3301 adds r3, #1 + 8007a28: b2db uxtb r3, r3 if ((lpcb->netif_idx != NETIF_NO_INDEX) && - 8007a2e: 429a cmp r2, r3 - 8007a30: d002 beq.n 8007a38 + 8007a2a: 429a cmp r2, r3 + 8007a2c: d002 beq.n 8007a34 prev = (struct tcp_pcb *)lpcb; - 8007a32: 697b ldr r3, [r7, #20] - 8007a34: 61bb str r3, [r7, #24] + 8007a2e: 697b ldr r3, [r7, #20] + 8007a30: 61bb str r3, [r7, #24] continue; - 8007a36: e016 b.n 8007a66 + 8007a32: e016 b.n 8007a62 } if (lpcb->local_port == tcphdr->dest) { - 8007a38: 697b ldr r3, [r7, #20] - 8007a3a: 8ada ldrh r2, [r3, #22] - 8007a3c: 4b1a ldr r3, [pc, #104] ; (8007aa8 ) - 8007a3e: 681b ldr r3, [r3, #0] - 8007a40: 885b ldrh r3, [r3, #2] - 8007a42: b29b uxth r3, r3 - 8007a44: 429a cmp r2, r3 - 8007a46: d10c bne.n 8007a62 + 8007a34: 697b ldr r3, [r7, #20] + 8007a36: 8ada ldrh r2, [r3, #22] + 8007a38: 4b1a ldr r3, [pc, #104] ; (8007aa4 ) + 8007a3a: 681b ldr r3, [r3, #0] + 8007a3c: 885b ldrh r3, [r3, #2] + 8007a3e: b29b uxth r3, r3 + 8007a40: 429a cmp r2, r3 + 8007a42: d10c bne.n 8007a5e lpcb_prev = prev; #else /* SO_REUSE */ break; #endif /* SO_REUSE */ } else if (IP_ADDR_PCB_VERSION_MATCH_EXACT(lpcb, ip_current_dest_addr())) { if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) { - 8007a48: 697b ldr r3, [r7, #20] - 8007a4a: 681a ldr r2, [r3, #0] - 8007a4c: 4b17 ldr r3, [pc, #92] ; (8007aac ) - 8007a4e: 695b ldr r3, [r3, #20] - 8007a50: 429a cmp r2, r3 - 8007a52: d00f beq.n 8007a74 + 8007a44: 697b ldr r3, [r7, #20] + 8007a46: 681a ldr r2, [r3, #0] + 8007a48: 4b17 ldr r3, [pc, #92] ; (8007aa8 ) + 8007a4a: 695b ldr r3, [r3, #20] + 8007a4c: 429a cmp r2, r3 + 8007a4e: d00f beq.n 8007a70 /* found an exact match */ break; } else if (ip_addr_isany(&lpcb->local_ip)) { - 8007a54: 697b ldr r3, [r7, #20] - 8007a56: 2b00 cmp r3, #0 - 8007a58: d00d beq.n 8007a76 - 8007a5a: 697b ldr r3, [r7, #20] - 8007a5c: 681b ldr r3, [r3, #0] - 8007a5e: 2b00 cmp r3, #0 - 8007a60: d009 beq.n 8007a76 + 8007a50: 697b ldr r3, [r7, #20] + 8007a52: 2b00 cmp r3, #0 + 8007a54: d00d beq.n 8007a72 + 8007a56: 697b ldr r3, [r7, #20] + 8007a58: 681b ldr r3, [r3, #0] + 8007a5a: 2b00 cmp r3, #0 + 8007a5c: d009 beq.n 8007a72 break; #endif /* SO_REUSE */ } } } prev = (struct tcp_pcb *)lpcb; - 8007a62: 697b ldr r3, [r7, #20] - 8007a64: 61bb str r3, [r7, #24] + 8007a5e: 697b ldr r3, [r7, #20] + 8007a60: 61bb str r3, [r7, #24] for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 8007a66: 697b ldr r3, [r7, #20] - 8007a68: 68db ldr r3, [r3, #12] - 8007a6a: 617b str r3, [r7, #20] - 8007a6c: 697b ldr r3, [r7, #20] - 8007a6e: 2b00 cmp r3, #0 - 8007a70: d1d1 bne.n 8007a16 - 8007a72: e000 b.n 8007a76 + 8007a62: 697b ldr r3, [r7, #20] + 8007a64: 68db ldr r3, [r3, #12] + 8007a66: 617b str r3, [r7, #20] + 8007a68: 697b ldr r3, [r7, #20] + 8007a6a: 2b00 cmp r3, #0 + 8007a6c: d1d1 bne.n 8007a12 + 8007a6e: e000 b.n 8007a72 break; - 8007a74: bf00 nop + 8007a70: bf00 nop /* only pass to ANY if no specific local IP has been found */ lpcb = lpcb_any; prev = lpcb_prev; } #endif /* SO_REUSE */ if (lpcb != NULL) { - 8007a76: 697b ldr r3, [r7, #20] - 8007a78: 2b00 cmp r3, #0 - 8007a7a: d029 beq.n 8007ad0 + 8007a72: 697b ldr r3, [r7, #20] + 8007a74: 2b00 cmp r3, #0 + 8007a76: d029 beq.n 8007acc /* Move this PCB to the front of the list so that subsequent lookups will be faster (we exploit locality in TCP segment arrivals). */ if (prev != NULL) { - 8007a7c: 69bb ldr r3, [r7, #24] - 8007a7e: 2b00 cmp r3, #0 - 8007a80: d00a beq.n 8007a98 + 8007a78: 69bb ldr r3, [r7, #24] + 8007a7a: 2b00 cmp r3, #0 + 8007a7c: d00a beq.n 8007a94 ((struct tcp_pcb_listen *)prev)->next = lpcb->next; - 8007a82: 697b ldr r3, [r7, #20] - 8007a84: 68da ldr r2, [r3, #12] - 8007a86: 69bb ldr r3, [r7, #24] - 8007a88: 60da str r2, [r3, #12] + 8007a7e: 697b ldr r3, [r7, #20] + 8007a80: 68da ldr r2, [r3, #12] + 8007a82: 69bb ldr r3, [r7, #24] + 8007a84: 60da str r2, [r3, #12] /* our successor is the remainder of the listening list */ lpcb->next = tcp_listen_pcbs.listen_pcbs; - 8007a8a: 4b10 ldr r3, [pc, #64] ; (8007acc ) - 8007a8c: 681a ldr r2, [r3, #0] - 8007a8e: 697b ldr r3, [r7, #20] - 8007a90: 60da str r2, [r3, #12] + 8007a86: 4b10 ldr r3, [pc, #64] ; (8007ac8 ) + 8007a88: 681a ldr r2, [r3, #0] + 8007a8a: 697b ldr r3, [r7, #20] + 8007a8c: 60da str r2, [r3, #12] /* put this listening pcb at the head of the listening list */ tcp_listen_pcbs.listen_pcbs = lpcb; - 8007a92: 4a0e ldr r2, [pc, #56] ; (8007acc ) - 8007a94: 697b ldr r3, [r7, #20] - 8007a96: 6013 str r3, [r2, #0] + 8007a8e: 4a0e ldr r2, [pc, #56] ; (8007ac8 ) + 8007a90: 697b ldr r3, [r7, #20] + 8007a92: 6013 str r3, [r2, #0] #ifdef LWIP_HOOK_TCP_INPACKET_PCB if (LWIP_HOOK_TCP_INPACKET_PCB((struct tcp_pcb *)lpcb, tcphdr, tcphdr_optlen, tcphdr_opt1len, tcphdr_opt2, p) == ERR_OK) #endif { tcp_listen_input(lpcb); - 8007a98: 6978 ldr r0, [r7, #20] - 8007a9a: f000 fa03 bl 8007ea4 + 8007a94: 6978 ldr r0, [r7, #20] + 8007a96: f000 fa03 bl 8007ea0 } pbuf_free(p); - 8007a9e: 6878 ldr r0, [r7, #4] - 8007aa0: f7fd ff7c bl 800599c + 8007a9a: 6878 ldr r0, [r7, #4] + 8007a9c: f7fd ff7c bl 8005998 return; - 8007aa4: e1a8 b.n 8007df8 - 8007aa6: bf00 nop - 8007aa8: 20008c28 .word 0x20008c28 - 8007aac: 20005670 .word 0x20005670 - 8007ab0: 08016124 .word 0x08016124 - 8007ab4: 08016250 .word 0x08016250 - 8007ab8: 08016170 .word 0x08016170 - 8007abc: 20008c0c .word 0x20008c0c - 8007ac0: 0801627c .word 0x0801627c - 8007ac4: 20008c10 .word 0x20008c10 - 8007ac8: 080162a8 .word 0x080162a8 - 8007acc: 20008c08 .word 0x20008c08 + 8007aa0: e1a8 b.n 8007df4 + 8007aa2: bf00 nop + 8007aa4: 20008c28 .word 0x20008c28 + 8007aa8: 20005670 .word 0x20005670 + 8007aac: 08016124 .word 0x08016124 + 8007ab0: 08016250 .word 0x08016250 + 8007ab4: 08016170 .word 0x08016170 + 8007ab8: 20008c0c .word 0x20008c0c + 8007abc: 0801627c .word 0x0801627c + 8007ac0: 20008c10 .word 0x20008c10 + 8007ac4: 080162a8 .word 0x080162a8 + 8007ac8: 20008c08 .word 0x20008c08 tcphdr_opt1len, tcphdr_opt2, p) != ERR_OK) { pbuf_free(p); return; } #endif if (pcb != NULL) { - 8007ad0: 69fb ldr r3, [r7, #28] - 8007ad2: 2b00 cmp r3, #0 - 8007ad4: f000 8158 beq.w 8007d88 + 8007acc: 69fb ldr r3, [r7, #28] + 8007ace: 2b00 cmp r3, #0 + 8007ad0: f000 8158 beq.w 8007d84 #if TCP_INPUT_DEBUG tcp_debug_print_state(pcb->state); #endif /* TCP_INPUT_DEBUG */ /* Set up a tcp_seg structure. */ inseg.next = NULL; - 8007ad8: 4b95 ldr r3, [pc, #596] ; (8007d30 ) - 8007ada: 2200 movs r2, #0 - 8007adc: 601a str r2, [r3, #0] + 8007ad4: 4b95 ldr r3, [pc, #596] ; (8007d2c ) + 8007ad6: 2200 movs r2, #0 + 8007ad8: 601a str r2, [r3, #0] inseg.len = p->tot_len; - 8007ade: 687b ldr r3, [r7, #4] - 8007ae0: 891a ldrh r2, [r3, #8] - 8007ae2: 4b93 ldr r3, [pc, #588] ; (8007d30 ) - 8007ae4: 811a strh r2, [r3, #8] + 8007ada: 687b ldr r3, [r7, #4] + 8007adc: 891a ldrh r2, [r3, #8] + 8007ade: 4b93 ldr r3, [pc, #588] ; (8007d2c ) + 8007ae0: 811a strh r2, [r3, #8] inseg.p = p; - 8007ae6: 4a92 ldr r2, [pc, #584] ; (8007d30 ) - 8007ae8: 687b ldr r3, [r7, #4] - 8007aea: 6053 str r3, [r2, #4] + 8007ae2: 4a92 ldr r2, [pc, #584] ; (8007d2c ) + 8007ae4: 687b ldr r3, [r7, #4] + 8007ae6: 6053 str r3, [r2, #4] inseg.tcphdr = tcphdr; - 8007aec: 4b91 ldr r3, [pc, #580] ; (8007d34 ) - 8007aee: 681b ldr r3, [r3, #0] - 8007af0: 4a8f ldr r2, [pc, #572] ; (8007d30 ) - 8007af2: 60d3 str r3, [r2, #12] + 8007ae8: 4b91 ldr r3, [pc, #580] ; (8007d30 ) + 8007aea: 681b ldr r3, [r3, #0] + 8007aec: 4a8f ldr r2, [pc, #572] ; (8007d2c ) + 8007aee: 60d3 str r3, [r2, #12] recv_data = NULL; - 8007af4: 4b90 ldr r3, [pc, #576] ; (8007d38 ) - 8007af6: 2200 movs r2, #0 - 8007af8: 601a str r2, [r3, #0] + 8007af0: 4b90 ldr r3, [pc, #576] ; (8007d34 ) + 8007af2: 2200 movs r2, #0 + 8007af4: 601a str r2, [r3, #0] recv_flags = 0; - 8007afa: 4b90 ldr r3, [pc, #576] ; (8007d3c ) - 8007afc: 2200 movs r2, #0 - 8007afe: 701a strb r2, [r3, #0] + 8007af6: 4b90 ldr r3, [pc, #576] ; (8007d38 ) + 8007af8: 2200 movs r2, #0 + 8007afa: 701a strb r2, [r3, #0] recv_acked = 0; - 8007b00: 4b8f ldr r3, [pc, #572] ; (8007d40 ) - 8007b02: 2200 movs r2, #0 - 8007b04: 801a strh r2, [r3, #0] + 8007afc: 4b8f ldr r3, [pc, #572] ; (8007d3c ) + 8007afe: 2200 movs r2, #0 + 8007b00: 801a strh r2, [r3, #0] if (flags & TCP_PSH) { - 8007b06: 4b8f ldr r3, [pc, #572] ; (8007d44 ) - 8007b08: 781b ldrb r3, [r3, #0] - 8007b0a: f003 0308 and.w r3, r3, #8 - 8007b0e: 2b00 cmp r3, #0 - 8007b10: d006 beq.n 8007b20 + 8007b02: 4b8f ldr r3, [pc, #572] ; (8007d40 ) + 8007b04: 781b ldrb r3, [r3, #0] + 8007b06: f003 0308 and.w r3, r3, #8 + 8007b0a: 2b00 cmp r3, #0 + 8007b0c: d006 beq.n 8007b1c p->flags |= PBUF_FLAG_PUSH; - 8007b12: 687b ldr r3, [r7, #4] - 8007b14: 7b5b ldrb r3, [r3, #13] - 8007b16: f043 0301 orr.w r3, r3, #1 - 8007b1a: b2da uxtb r2, r3 - 8007b1c: 687b ldr r3, [r7, #4] - 8007b1e: 735a strb r2, [r3, #13] + 8007b0e: 687b ldr r3, [r7, #4] + 8007b10: 7b5b ldrb r3, [r3, #13] + 8007b12: f043 0301 orr.w r3, r3, #1 + 8007b16: b2da uxtb r2, r3 + 8007b18: 687b ldr r3, [r7, #4] + 8007b1a: 735a strb r2, [r3, #13] } /* If there is data which was previously "refused" by upper layer */ if (pcb->refused_data != NULL) { - 8007b20: 69fb ldr r3, [r7, #28] - 8007b22: 6f9b ldr r3, [r3, #120] ; 0x78 - 8007b24: 2b00 cmp r3, #0 - 8007b26: d017 beq.n 8007b58 + 8007b1c: 69fb ldr r3, [r7, #28] + 8007b1e: 6f9b ldr r3, [r3, #120] ; 0x78 + 8007b20: 2b00 cmp r3, #0 + 8007b22: d017 beq.n 8007b54 if ((tcp_process_refused_data(pcb) == ERR_ABRT) || - 8007b28: 69f8 ldr r0, [r7, #28] - 8007b2a: f7ff f929 bl 8006d80 - 8007b2e: 4603 mov r3, r0 - 8007b30: f113 0f0d cmn.w r3, #13 - 8007b34: d007 beq.n 8007b46 + 8007b24: 69f8 ldr r0, [r7, #28] + 8007b26: f7ff f929 bl 8006d7c + 8007b2a: 4603 mov r3, r0 + 8007b2c: f113 0f0d cmn.w r3, #13 + 8007b30: d007 beq.n 8007b42 ((pcb->refused_data != NULL) && (tcplen > 0))) { - 8007b36: 69fb ldr r3, [r7, #28] - 8007b38: 6f9b ldr r3, [r3, #120] ; 0x78 + 8007b32: 69fb ldr r3, [r7, #28] + 8007b34: 6f9b ldr r3, [r3, #120] ; 0x78 if ((tcp_process_refused_data(pcb) == ERR_ABRT) || - 8007b3a: 2b00 cmp r3, #0 - 8007b3c: d00c beq.n 8007b58 + 8007b36: 2b00 cmp r3, #0 + 8007b38: d00c beq.n 8007b54 ((pcb->refused_data != NULL) && (tcplen > 0))) { - 8007b3e: 4b82 ldr r3, [pc, #520] ; (8007d48 ) - 8007b40: 881b ldrh r3, [r3, #0] - 8007b42: 2b00 cmp r3, #0 - 8007b44: d008 beq.n 8007b58 + 8007b3a: 4b82 ldr r3, [pc, #520] ; (8007d44 ) + 8007b3c: 881b ldrh r3, [r3, #0] + 8007b3e: 2b00 cmp r3, #0 + 8007b40: d008 beq.n 8007b54 /* pcb has been aborted or refused data is still refused and the new segment contains data */ if (pcb->rcv_ann_wnd == 0) { - 8007b46: 69fb ldr r3, [r7, #28] - 8007b48: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8007b4a: 2b00 cmp r3, #0 - 8007b4c: f040 80e3 bne.w 8007d16 + 8007b42: 69fb ldr r3, [r7, #28] + 8007b44: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8007b46: 2b00 cmp r3, #0 + 8007b48: f040 80e3 bne.w 8007d12 /* this is a zero-window probe, we respond to it with current RCV.NXT and drop the data segment */ tcp_send_empty_ack(pcb); - 8007b50: 69f8 ldr r0, [r7, #28] - 8007b52: f003 f9ad bl 800aeb0 + 8007b4c: 69f8 ldr r0, [r7, #28] + 8007b4e: f003 f9ad bl 800aeac } TCP_STATS_INC(tcp.drop); MIB2_STATS_INC(mib2.tcpinerrs); goto aborted; - 8007b56: e0de b.n 8007d16 + 8007b52: e0de b.n 8007d12 } } tcp_input_pcb = pcb; - 8007b58: 4a7c ldr r2, [pc, #496] ; (8007d4c ) - 8007b5a: 69fb ldr r3, [r7, #28] - 8007b5c: 6013 str r3, [r2, #0] + 8007b54: 4a7c ldr r2, [pc, #496] ; (8007d48 ) + 8007b56: 69fb ldr r3, [r7, #28] + 8007b58: 6013 str r3, [r2, #0] err = tcp_process(pcb); - 8007b5e: 69f8 ldr r0, [r7, #28] - 8007b60: f000 fb18 bl 8008194 - 8007b64: 4603 mov r3, r0 - 8007b66: 74fb strb r3, [r7, #19] + 8007b5a: 69f8 ldr r0, [r7, #28] + 8007b5c: f000 fb18 bl 8008190 + 8007b60: 4603 mov r3, r0 + 8007b62: 74fb strb r3, [r7, #19] /* A return value of ERR_ABRT means that tcp_abort() was called and that the pcb has been freed. If so, we don't do anything. */ if (err != ERR_ABRT) { - 8007b68: f997 3013 ldrsb.w r3, [r7, #19] - 8007b6c: f113 0f0d cmn.w r3, #13 - 8007b70: f000 80d3 beq.w 8007d1a + 8007b64: f997 3013 ldrsb.w r3, [r7, #19] + 8007b68: f113 0f0d cmn.w r3, #13 + 8007b6c: f000 80d3 beq.w 8007d16 if (recv_flags & TF_RESET) { - 8007b74: 4b71 ldr r3, [pc, #452] ; (8007d3c ) - 8007b76: 781b ldrb r3, [r3, #0] - 8007b78: f003 0308 and.w r3, r3, #8 - 8007b7c: 2b00 cmp r3, #0 - 8007b7e: d015 beq.n 8007bac + 8007b70: 4b71 ldr r3, [pc, #452] ; (8007d38 ) + 8007b72: 781b ldrb r3, [r3, #0] + 8007b74: f003 0308 and.w r3, r3, #8 + 8007b78: 2b00 cmp r3, #0 + 8007b7a: d015 beq.n 8007ba8 /* TF_RESET means that the connection was reset by the other end. We then call the error callback to inform the application that the connection is dead before we deallocate the PCB. */ TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_RST); - 8007b80: 69fb ldr r3, [r7, #28] - 8007b82: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8007b86: 2b00 cmp r3, #0 - 8007b88: d008 beq.n 8007b9c - 8007b8a: 69fb ldr r3, [r7, #28] - 8007b8c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8007b90: 69fa ldr r2, [r7, #28] - 8007b92: 6912 ldr r2, [r2, #16] - 8007b94: f06f 010d mvn.w r1, #13 - 8007b98: 4610 mov r0, r2 - 8007b9a: 4798 blx r3 + 8007b7c: 69fb ldr r3, [r7, #28] + 8007b7e: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8007b82: 2b00 cmp r3, #0 + 8007b84: d008 beq.n 8007b98 + 8007b86: 69fb ldr r3, [r7, #28] + 8007b88: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8007b8c: 69fa ldr r2, [r7, #28] + 8007b8e: 6912 ldr r2, [r2, #16] + 8007b90: f06f 010d mvn.w r1, #13 + 8007b94: 4610 mov r0, r2 + 8007b96: 4798 blx r3 tcp_pcb_remove(&tcp_active_pcbs, pcb); - 8007b9c: 69f9 ldr r1, [r7, #28] - 8007b9e: 486c ldr r0, [pc, #432] ; (8007d50 ) - 8007ba0: f7ff fbbc bl 800731c + 8007b98: 69f9 ldr r1, [r7, #28] + 8007b9a: 486c ldr r0, [pc, #432] ; (8007d4c ) + 8007b9c: f7ff fbbc bl 8007318 tcp_free(pcb); - 8007ba4: 69f8 ldr r0, [r7, #28] - 8007ba6: f7fe f9a9 bl 8005efc - 8007baa: e0da b.n 8007d62 + 8007ba0: 69f8 ldr r0, [r7, #28] + 8007ba2: f7fe f9a9 bl 8005ef8 + 8007ba6: e0da b.n 8007d5e } else { err = ERR_OK; - 8007bac: 2300 movs r3, #0 - 8007bae: 74fb strb r3, [r7, #19] + 8007ba8: 2300 movs r3, #0 + 8007baa: 74fb strb r3, [r7, #19] /* If the application has registered a "sent" function to be called when new send buffer space is available, we call it now. */ if (recv_acked > 0) { - 8007bb0: 4b63 ldr r3, [pc, #396] ; (8007d40 ) - 8007bb2: 881b ldrh r3, [r3, #0] - 8007bb4: 2b00 cmp r3, #0 - 8007bb6: d01d beq.n 8007bf4 + 8007bac: 4b63 ldr r3, [pc, #396] ; (8007d3c ) + 8007bae: 881b ldrh r3, [r3, #0] + 8007bb0: 2b00 cmp r3, #0 + 8007bb2: d01d beq.n 8007bf0 while (acked > 0) { acked16 = (u16_t)LWIP_MIN(acked, 0xffffu); acked -= acked16; #else { acked16 = recv_acked; - 8007bb8: 4b61 ldr r3, [pc, #388] ; (8007d40 ) - 8007bba: 881b ldrh r3, [r3, #0] - 8007bbc: 81fb strh r3, [r7, #14] + 8007bb4: 4b61 ldr r3, [pc, #388] ; (8007d3c ) + 8007bb6: 881b ldrh r3, [r3, #0] + 8007bb8: 81fb strh r3, [r7, #14] #endif TCP_EVENT_SENT(pcb, (u16_t)acked16, err); - 8007bbe: 69fb ldr r3, [r7, #28] - 8007bc0: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 8007bc4: 2b00 cmp r3, #0 - 8007bc6: d00a beq.n 8007bde - 8007bc8: 69fb ldr r3, [r7, #28] - 8007bca: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 8007bce: 69fa ldr r2, [r7, #28] - 8007bd0: 6910 ldr r0, [r2, #16] - 8007bd2: 89fa ldrh r2, [r7, #14] - 8007bd4: 69f9 ldr r1, [r7, #28] - 8007bd6: 4798 blx r3 - 8007bd8: 4603 mov r3, r0 - 8007bda: 74fb strb r3, [r7, #19] - 8007bdc: e001 b.n 8007be2 - 8007bde: 2300 movs r3, #0 - 8007be0: 74fb strb r3, [r7, #19] + 8007bba: 69fb ldr r3, [r7, #28] + 8007bbc: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 + 8007bc0: 2b00 cmp r3, #0 + 8007bc2: d00a beq.n 8007bda + 8007bc4: 69fb ldr r3, [r7, #28] + 8007bc6: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 + 8007bca: 69fa ldr r2, [r7, #28] + 8007bcc: 6910 ldr r0, [r2, #16] + 8007bce: 89fa ldrh r2, [r7, #14] + 8007bd0: 69f9 ldr r1, [r7, #28] + 8007bd2: 4798 blx r3 + 8007bd4: 4603 mov r3, r0 + 8007bd6: 74fb strb r3, [r7, #19] + 8007bd8: e001 b.n 8007bde + 8007bda: 2300 movs r3, #0 + 8007bdc: 74fb strb r3, [r7, #19] if (err == ERR_ABRT) { - 8007be2: f997 3013 ldrsb.w r3, [r7, #19] - 8007be6: f113 0f0d cmn.w r3, #13 - 8007bea: f000 8098 beq.w 8007d1e + 8007bde: f997 3013 ldrsb.w r3, [r7, #19] + 8007be2: f113 0f0d cmn.w r3, #13 + 8007be6: f000 8098 beq.w 8007d1a goto aborted; } } recv_acked = 0; - 8007bee: 4b54 ldr r3, [pc, #336] ; (8007d40 ) - 8007bf0: 2200 movs r2, #0 - 8007bf2: 801a strh r2, [r3, #0] + 8007bea: 4b54 ldr r3, [pc, #336] ; (8007d3c ) + 8007bec: 2200 movs r2, #0 + 8007bee: 801a strh r2, [r3, #0] } if (tcp_input_delayed_close(pcb)) { - 8007bf4: 69f8 ldr r0, [r7, #28] - 8007bf6: f000 f915 bl 8007e24 - 8007bfa: 4603 mov r3, r0 - 8007bfc: 2b00 cmp r3, #0 - 8007bfe: f040 8090 bne.w 8007d22 + 8007bf0: 69f8 ldr r0, [r7, #28] + 8007bf2: f000 f915 bl 8007e20 + 8007bf6: 4603 mov r3, r0 + 8007bf8: 2b00 cmp r3, #0 + 8007bfa: f040 8090 bne.w 8007d1e #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE while (recv_data != NULL) { struct pbuf *rest = NULL; pbuf_split_64k(recv_data, &rest); #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ if (recv_data != NULL) { - 8007c02: 4b4d ldr r3, [pc, #308] ; (8007d38 ) - 8007c04: 681b ldr r3, [r3, #0] - 8007c06: 2b00 cmp r3, #0 - 8007c08: d041 beq.n 8007c8e + 8007bfe: 4b4d ldr r3, [pc, #308] ; (8007d34 ) + 8007c00: 681b ldr r3, [r3, #0] + 8007c02: 2b00 cmp r3, #0 + 8007c04: d041 beq.n 8007c8a #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL); - 8007c0a: 69fb ldr r3, [r7, #28] - 8007c0c: 6f9b ldr r3, [r3, #120] ; 0x78 - 8007c0e: 2b00 cmp r3, #0 - 8007c10: d006 beq.n 8007c20 - 8007c12: 4b50 ldr r3, [pc, #320] ; (8007d54 ) - 8007c14: f44f 72f3 mov.w r2, #486 ; 0x1e6 - 8007c18: 494f ldr r1, [pc, #316] ; (8007d58 ) - 8007c1a: 4850 ldr r0, [pc, #320] ; (8007d5c ) - 8007c1c: f008 fbda bl 80103d4 + 8007c06: 69fb ldr r3, [r7, #28] + 8007c08: 6f9b ldr r3, [r3, #120] ; 0x78 + 8007c0a: 2b00 cmp r3, #0 + 8007c0c: d006 beq.n 8007c1c + 8007c0e: 4b50 ldr r3, [pc, #320] ; (8007d50 ) + 8007c10: f44f 72f3 mov.w r2, #486 ; 0x1e6 + 8007c14: 494f ldr r1, [pc, #316] ; (8007d54 ) + 8007c16: 4850 ldr r0, [pc, #320] ; (8007d58 ) + 8007c18: f008 fbda bl 80103d0 if (pcb->flags & TF_RXCLOSED) { - 8007c20: 69fb ldr r3, [r7, #28] - 8007c22: 8b5b ldrh r3, [r3, #26] - 8007c24: f003 0310 and.w r3, r3, #16 - 8007c28: 2b00 cmp r3, #0 - 8007c2a: d008 beq.n 8007c3e + 8007c1c: 69fb ldr r3, [r7, #28] + 8007c1e: 8b5b ldrh r3, [r3, #26] + 8007c20: f003 0310 and.w r3, r3, #16 + 8007c24: 2b00 cmp r3, #0 + 8007c26: d008 beq.n 8007c3a /* received data although already closed -> abort (send RST) to notify the remote host that not all data has been processed */ pbuf_free(recv_data); - 8007c2c: 4b42 ldr r3, [pc, #264] ; (8007d38 ) - 8007c2e: 681b ldr r3, [r3, #0] - 8007c30: 4618 mov r0, r3 - 8007c32: f7fd feb3 bl 800599c + 8007c28: 4b42 ldr r3, [pc, #264] ; (8007d34 ) + 8007c2a: 681b ldr r3, [r3, #0] + 8007c2c: 4618 mov r0, r3 + 8007c2e: f7fd feb3 bl 8005998 #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE if (rest != NULL) { pbuf_free(rest); } #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ tcp_abort(pcb); - 8007c36: 69f8 ldr r0, [r7, #28] - 8007c38: f7fe fc48 bl 80064cc + 8007c32: 69f8 ldr r0, [r7, #28] + 8007c34: f7fe fc48 bl 80064c8 goto aborted; - 8007c3c: e091 b.n 8007d62 + 8007c38: e091 b.n 8007d5e } /* Notify application that data has been received. */ TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err); - 8007c3e: 69fb ldr r3, [r7, #28] - 8007c40: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8007c44: 2b00 cmp r3, #0 - 8007c46: d00c beq.n 8007c62 - 8007c48: 69fb ldr r3, [r7, #28] - 8007c4a: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 - 8007c4e: 69fb ldr r3, [r7, #28] - 8007c50: 6918 ldr r0, [r3, #16] - 8007c52: 4b39 ldr r3, [pc, #228] ; (8007d38 ) - 8007c54: 681a ldr r2, [r3, #0] - 8007c56: 2300 movs r3, #0 - 8007c58: 69f9 ldr r1, [r7, #28] - 8007c5a: 47a0 blx r4 - 8007c5c: 4603 mov r3, r0 - 8007c5e: 74fb strb r3, [r7, #19] - 8007c60: e008 b.n 8007c74 - 8007c62: 4b35 ldr r3, [pc, #212] ; (8007d38 ) - 8007c64: 681a ldr r2, [r3, #0] - 8007c66: 2300 movs r3, #0 - 8007c68: 69f9 ldr r1, [r7, #28] - 8007c6a: 2000 movs r0, #0 - 8007c6c: f7ff f95e bl 8006f2c - 8007c70: 4603 mov r3, r0 - 8007c72: 74fb strb r3, [r7, #19] + 8007c3a: 69fb ldr r3, [r7, #28] + 8007c3c: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8007c40: 2b00 cmp r3, #0 + 8007c42: d00c beq.n 8007c5e + 8007c44: 69fb ldr r3, [r7, #28] + 8007c46: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 + 8007c4a: 69fb ldr r3, [r7, #28] + 8007c4c: 6918 ldr r0, [r3, #16] + 8007c4e: 4b39 ldr r3, [pc, #228] ; (8007d34 ) + 8007c50: 681a ldr r2, [r3, #0] + 8007c52: 2300 movs r3, #0 + 8007c54: 69f9 ldr r1, [r7, #28] + 8007c56: 47a0 blx r4 + 8007c58: 4603 mov r3, r0 + 8007c5a: 74fb strb r3, [r7, #19] + 8007c5c: e008 b.n 8007c70 + 8007c5e: 4b35 ldr r3, [pc, #212] ; (8007d34 ) + 8007c60: 681a ldr r2, [r3, #0] + 8007c62: 2300 movs r3, #0 + 8007c64: 69f9 ldr r1, [r7, #28] + 8007c66: 2000 movs r0, #0 + 8007c68: f7ff f95e bl 8006f28 + 8007c6c: 4603 mov r3, r0 + 8007c6e: 74fb strb r3, [r7, #19] if (err == ERR_ABRT) { - 8007c74: f997 3013 ldrsb.w r3, [r7, #19] - 8007c78: f113 0f0d cmn.w r3, #13 - 8007c7c: d053 beq.n 8007d26 + 8007c70: f997 3013 ldrsb.w r3, [r7, #19] + 8007c74: f113 0f0d cmn.w r3, #13 + 8007c78: d053 beq.n 8007d22 #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ goto aborted; } /* If the upper layer can't receive this data, store it */ if (err != ERR_OK) { - 8007c7e: f997 3013 ldrsb.w r3, [r7, #19] - 8007c82: 2b00 cmp r3, #0 - 8007c84: d003 beq.n 8007c8e + 8007c7a: f997 3013 ldrsb.w r3, [r7, #19] + 8007c7e: 2b00 cmp r3, #0 + 8007c80: d003 beq.n 8007c8a #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE if (rest != NULL) { pbuf_cat(recv_data, rest); } #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ pcb->refused_data = recv_data; - 8007c86: 4b2c ldr r3, [pc, #176] ; (8007d38 ) - 8007c88: 681a ldr r2, [r3, #0] - 8007c8a: 69fb ldr r3, [r7, #28] - 8007c8c: 679a str r2, [r3, #120] ; 0x78 + 8007c82: 4b2c ldr r3, [pc, #176] ; (8007d34 ) + 8007c84: 681a ldr r2, [r3, #0] + 8007c86: 69fb ldr r3, [r7, #28] + 8007c88: 679a str r2, [r3, #120] ; 0x78 } } /* If a FIN segment was received, we call the callback function with a NULL buffer to indicate EOF. */ if (recv_flags & TF_GOT_FIN) { - 8007c8e: 4b2b ldr r3, [pc, #172] ; (8007d3c ) - 8007c90: 781b ldrb r3, [r3, #0] - 8007c92: f003 0320 and.w r3, r3, #32 - 8007c96: 2b00 cmp r3, #0 - 8007c98: d030 beq.n 8007cfc + 8007c8a: 4b2b ldr r3, [pc, #172] ; (8007d38 ) + 8007c8c: 781b ldrb r3, [r3, #0] + 8007c8e: f003 0320 and.w r3, r3, #32 + 8007c92: 2b00 cmp r3, #0 + 8007c94: d030 beq.n 8007cf8 if (pcb->refused_data != NULL) { - 8007c9a: 69fb ldr r3, [r7, #28] - 8007c9c: 6f9b ldr r3, [r3, #120] ; 0x78 - 8007c9e: 2b00 cmp r3, #0 - 8007ca0: d009 beq.n 8007cb6 + 8007c96: 69fb ldr r3, [r7, #28] + 8007c98: 6f9b ldr r3, [r3, #120] ; 0x78 + 8007c9a: 2b00 cmp r3, #0 + 8007c9c: d009 beq.n 8007cb2 /* Delay this if we have refused data. */ pcb->refused_data->flags |= PBUF_FLAG_TCP_FIN; - 8007ca2: 69fb ldr r3, [r7, #28] - 8007ca4: 6f9b ldr r3, [r3, #120] ; 0x78 - 8007ca6: 7b5a ldrb r2, [r3, #13] - 8007ca8: 69fb ldr r3, [r7, #28] - 8007caa: 6f9b ldr r3, [r3, #120] ; 0x78 - 8007cac: f042 0220 orr.w r2, r2, #32 - 8007cb0: b2d2 uxtb r2, r2 - 8007cb2: 735a strb r2, [r3, #13] - 8007cb4: e022 b.n 8007cfc + 8007c9e: 69fb ldr r3, [r7, #28] + 8007ca0: 6f9b ldr r3, [r3, #120] ; 0x78 + 8007ca2: 7b5a ldrb r2, [r3, #13] + 8007ca4: 69fb ldr r3, [r7, #28] + 8007ca6: 6f9b ldr r3, [r3, #120] ; 0x78 + 8007ca8: f042 0220 orr.w r2, r2, #32 + 8007cac: b2d2 uxtb r2, r2 + 8007cae: 735a strb r2, [r3, #13] + 8007cb0: e022 b.n 8007cf8 } else { /* correct rcv_wnd as the application won't call tcp_recved() for the FIN's seqno */ if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) { - 8007cb6: 69fb ldr r3, [r7, #28] - 8007cb8: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8007cba: f5b3 6f06 cmp.w r3, #2144 ; 0x860 - 8007cbe: d005 beq.n 8007ccc + 8007cb2: 69fb ldr r3, [r7, #28] + 8007cb4: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8007cb6: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 8007cba: d005 beq.n 8007cc8 pcb->rcv_wnd++; - 8007cc0: 69fb ldr r3, [r7, #28] - 8007cc2: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8007cc4: 3301 adds r3, #1 - 8007cc6: b29a uxth r2, r3 - 8007cc8: 69fb ldr r3, [r7, #28] - 8007cca: 851a strh r2, [r3, #40] ; 0x28 + 8007cbc: 69fb ldr r3, [r7, #28] + 8007cbe: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8007cc0: 3301 adds r3, #1 + 8007cc2: b29a uxth r2, r3 + 8007cc4: 69fb ldr r3, [r7, #28] + 8007cc6: 851a strh r2, [r3, #40] ; 0x28 } TCP_EVENT_CLOSED(pcb, err); - 8007ccc: 69fb ldr r3, [r7, #28] - 8007cce: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8007cd2: 2b00 cmp r3, #0 - 8007cd4: d00b beq.n 8007cee - 8007cd6: 69fb ldr r3, [r7, #28] - 8007cd8: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 - 8007cdc: 69fb ldr r3, [r7, #28] - 8007cde: 6918 ldr r0, [r3, #16] - 8007ce0: 2300 movs r3, #0 - 8007ce2: 2200 movs r2, #0 - 8007ce4: 69f9 ldr r1, [r7, #28] - 8007ce6: 47a0 blx r4 - 8007ce8: 4603 mov r3, r0 - 8007cea: 74fb strb r3, [r7, #19] - 8007cec: e001 b.n 8007cf2 - 8007cee: 2300 movs r3, #0 - 8007cf0: 74fb strb r3, [r7, #19] + 8007cc8: 69fb ldr r3, [r7, #28] + 8007cca: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8007cce: 2b00 cmp r3, #0 + 8007cd0: d00b beq.n 8007cea + 8007cd2: 69fb ldr r3, [r7, #28] + 8007cd4: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 + 8007cd8: 69fb ldr r3, [r7, #28] + 8007cda: 6918 ldr r0, [r3, #16] + 8007cdc: 2300 movs r3, #0 + 8007cde: 2200 movs r2, #0 + 8007ce0: 69f9 ldr r1, [r7, #28] + 8007ce2: 47a0 blx r4 + 8007ce4: 4603 mov r3, r0 + 8007ce6: 74fb strb r3, [r7, #19] + 8007ce8: e001 b.n 8007cee + 8007cea: 2300 movs r3, #0 + 8007cec: 74fb strb r3, [r7, #19] if (err == ERR_ABRT) { - 8007cf2: f997 3013 ldrsb.w r3, [r7, #19] - 8007cf6: f113 0f0d cmn.w r3, #13 - 8007cfa: d016 beq.n 8007d2a + 8007cee: f997 3013 ldrsb.w r3, [r7, #19] + 8007cf2: f113 0f0d cmn.w r3, #13 + 8007cf6: d016 beq.n 8007d26 goto aborted; } } } tcp_input_pcb = NULL; - 8007cfc: 4b13 ldr r3, [pc, #76] ; (8007d4c ) - 8007cfe: 2200 movs r2, #0 - 8007d00: 601a str r2, [r3, #0] + 8007cf8: 4b13 ldr r3, [pc, #76] ; (8007d48 ) + 8007cfa: 2200 movs r2, #0 + 8007cfc: 601a str r2, [r3, #0] if (tcp_input_delayed_close(pcb)) { - 8007d02: 69f8 ldr r0, [r7, #28] - 8007d04: f000 f88e bl 8007e24 - 8007d08: 4603 mov r3, r0 - 8007d0a: 2b00 cmp r3, #0 - 8007d0c: d128 bne.n 8007d60 + 8007cfe: 69f8 ldr r0, [r7, #28] + 8007d00: f000 f88e bl 8007e20 + 8007d04: 4603 mov r3, r0 + 8007d06: 2b00 cmp r3, #0 + 8007d08: d128 bne.n 8007d5c goto aborted; } /* Try to send something out. */ tcp_output(pcb); - 8007d0e: 69f8 ldr r0, [r7, #28] - 8007d10: f002 fac8 bl 800a2a4 - 8007d14: e025 b.n 8007d62 + 8007d0a: 69f8 ldr r0, [r7, #28] + 8007d0c: f002 fac8 bl 800a2a0 + 8007d10: e025 b.n 8007d5e goto aborted; - 8007d16: bf00 nop - 8007d18: e023 b.n 8007d62 + 8007d12: bf00 nop + 8007d14: e023 b.n 8007d5e #endif /* TCP_INPUT_DEBUG */ } } /* Jump target if pcb has been aborted in a callback (by calling tcp_abort()). Below this line, 'pcb' may not be dereferenced! */ aborted: + 8007d16: bf00 nop + 8007d18: e021 b.n 8007d5e + goto aborted; 8007d1a: bf00 nop - 8007d1c: e021 b.n 8007d62 - goto aborted; + 8007d1c: e01f b.n 8007d5e + goto aborted; 8007d1e: bf00 nop - 8007d20: e01f b.n 8007d62 - goto aborted; - 8007d22: bf00 nop - 8007d24: e01d b.n 8007d62 + 8007d20: e01d b.n 8007d5e goto aborted; - 8007d26: bf00 nop - 8007d28: e01b b.n 8007d62 + 8007d22: bf00 nop + 8007d24: e01b b.n 8007d5e goto aborted; + 8007d26: bf00 nop + 8007d28: e019 b.n 8007d5e 8007d2a: bf00 nop - 8007d2c: e019 b.n 8007d62 - 8007d2e: bf00 nop - 8007d30: 20008c18 .word 0x20008c18 - 8007d34: 20008c28 .word 0x20008c28 - 8007d38: 20008c48 .word 0x20008c48 - 8007d3c: 20008c45 .word 0x20008c45 - 8007d40: 20008c40 .word 0x20008c40 - 8007d44: 20008c44 .word 0x20008c44 - 8007d48: 20008c42 .word 0x20008c42 - 8007d4c: 20008c4c .word 0x20008c4c - 8007d50: 20008c0c .word 0x20008c0c - 8007d54: 08016124 .word 0x08016124 - 8007d58: 080162d8 .word 0x080162d8 - 8007d5c: 08016170 .word 0x08016170 + 8007d2c: 20008c18 .word 0x20008c18 + 8007d30: 20008c28 .word 0x20008c28 + 8007d34: 20008c48 .word 0x20008c48 + 8007d38: 20008c45 .word 0x20008c45 + 8007d3c: 20008c40 .word 0x20008c40 + 8007d40: 20008c44 .word 0x20008c44 + 8007d44: 20008c42 .word 0x20008c42 + 8007d48: 20008c4c .word 0x20008c4c + 8007d4c: 20008c0c .word 0x20008c0c + 8007d50: 08016124 .word 0x08016124 + 8007d54: 080162d8 .word 0x080162d8 + 8007d58: 08016170 .word 0x08016170 goto aborted; - 8007d60: bf00 nop + 8007d5c: bf00 nop tcp_input_pcb = NULL; - 8007d62: 4b27 ldr r3, [pc, #156] ; (8007e00 ) - 8007d64: 2200 movs r2, #0 - 8007d66: 601a str r2, [r3, #0] + 8007d5e: 4b27 ldr r3, [pc, #156] ; (8007dfc ) + 8007d60: 2200 movs r2, #0 + 8007d62: 601a str r2, [r3, #0] recv_data = NULL; - 8007d68: 4b26 ldr r3, [pc, #152] ; (8007e04 ) - 8007d6a: 2200 movs r2, #0 - 8007d6c: 601a str r2, [r3, #0] + 8007d64: 4b26 ldr r3, [pc, #152] ; (8007e00 ) + 8007d66: 2200 movs r2, #0 + 8007d68: 601a str r2, [r3, #0] /* give up our reference to inseg.p */ if (inseg.p != NULL) { - 8007d6e: 4b26 ldr r3, [pc, #152] ; (8007e08 ) - 8007d70: 685b ldr r3, [r3, #4] - 8007d72: 2b00 cmp r3, #0 - 8007d74: d03f beq.n 8007df6 + 8007d6a: 4b26 ldr r3, [pc, #152] ; (8007e04 ) + 8007d6c: 685b ldr r3, [r3, #4] + 8007d6e: 2b00 cmp r3, #0 + 8007d70: d03f beq.n 8007df2 pbuf_free(inseg.p); - 8007d76: 4b24 ldr r3, [pc, #144] ; (8007e08 ) - 8007d78: 685b ldr r3, [r3, #4] - 8007d7a: 4618 mov r0, r3 - 8007d7c: f7fd fe0e bl 800599c + 8007d72: 4b24 ldr r3, [pc, #144] ; (8007e04 ) + 8007d74: 685b ldr r3, [r3, #4] + 8007d76: 4618 mov r0, r3 + 8007d78: f7fd fe0e bl 8005998 inseg.p = NULL; - 8007d80: 4b21 ldr r3, [pc, #132] ; (8007e08 ) - 8007d82: 2200 movs r2, #0 - 8007d84: 605a str r2, [r3, #4] + 8007d7c: 4b21 ldr r3, [pc, #132] ; (8007e04 ) + 8007d7e: 2200 movs r2, #0 + 8007d80: 605a str r2, [r3, #4] pbuf_free(p); } LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane()); PERF_STOP("tcp_input"); return; - 8007d86: e036 b.n 8007df6 + 8007d82: e036 b.n 8007df2 if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) { - 8007d88: 4b20 ldr r3, [pc, #128] ; (8007e0c ) - 8007d8a: 681b ldr r3, [r3, #0] - 8007d8c: 899b ldrh r3, [r3, #12] - 8007d8e: b29b uxth r3, r3 - 8007d90: 4618 mov r0, r3 - 8007d92: f7fc fa99 bl 80042c8 - 8007d96: 4603 mov r3, r0 - 8007d98: b2db uxtb r3, r3 - 8007d9a: f003 0304 and.w r3, r3, #4 - 8007d9e: 2b00 cmp r3, #0 - 8007da0: d118 bne.n 8007dd4 + 8007d84: 4b20 ldr r3, [pc, #128] ; (8007e08 ) + 8007d86: 681b ldr r3, [r3, #0] + 8007d88: 899b ldrh r3, [r3, #12] + 8007d8a: b29b uxth r3, r3 + 8007d8c: 4618 mov r0, r3 + 8007d8e: f7fc fa99 bl 80042c4 + 8007d92: 4603 mov r3, r0 + 8007d94: b2db uxtb r3, r3 + 8007d96: f003 0304 and.w r3, r3, #4 + 8007d9a: 2b00 cmp r3, #0 + 8007d9c: d118 bne.n 8007dd0 tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 8007da2: 4b1b ldr r3, [pc, #108] ; (8007e10 ) - 8007da4: 6819 ldr r1, [r3, #0] - 8007da6: 4b1b ldr r3, [pc, #108] ; (8007e14 ) - 8007da8: 881b ldrh r3, [r3, #0] - 8007daa: 461a mov r2, r3 - 8007dac: 4b1a ldr r3, [pc, #104] ; (8007e18 ) - 8007dae: 681b ldr r3, [r3, #0] - 8007db0: 18d0 adds r0, r2, r3 + 8007d9e: 4b1b ldr r3, [pc, #108] ; (8007e0c ) + 8007da0: 6819 ldr r1, [r3, #0] + 8007da2: 4b1b ldr r3, [pc, #108] ; (8007e10 ) + 8007da4: 881b ldrh r3, [r3, #0] + 8007da6: 461a mov r2, r3 + 8007da8: 4b1a ldr r3, [pc, #104] ; (8007e14 ) + 8007daa: 681b ldr r3, [r3, #0] + 8007dac: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8007db2: 4b16 ldr r3, [pc, #88] ; (8007e0c ) - 8007db4: 681b ldr r3, [r3, #0] + 8007dae: 4b16 ldr r3, [pc, #88] ; (8007e08 ) + 8007db0: 681b ldr r3, [r3, #0] tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 8007db6: 885b ldrh r3, [r3, #2] - 8007db8: b29b uxth r3, r3 + 8007db2: 885b ldrh r3, [r3, #2] + 8007db4: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8007dba: 4a14 ldr r2, [pc, #80] ; (8007e0c ) - 8007dbc: 6812 ldr r2, [r2, #0] + 8007db6: 4a14 ldr r2, [pc, #80] ; (8007e08 ) + 8007db8: 6812 ldr r2, [r2, #0] tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 8007dbe: 8812 ldrh r2, [r2, #0] - 8007dc0: b292 uxth r2, r2 - 8007dc2: 9202 str r2, [sp, #8] - 8007dc4: 9301 str r3, [sp, #4] - 8007dc6: 4b15 ldr r3, [pc, #84] ; (8007e1c ) - 8007dc8: 9300 str r3, [sp, #0] - 8007dca: 4b15 ldr r3, [pc, #84] ; (8007e20 ) - 8007dcc: 4602 mov r2, r0 - 8007dce: 2000 movs r0, #0 - 8007dd0: f003 f81c bl 800ae0c + 8007dba: 8812 ldrh r2, [r2, #0] + 8007dbc: b292 uxth r2, r2 + 8007dbe: 9202 str r2, [sp, #8] + 8007dc0: 9301 str r3, [sp, #4] + 8007dc2: 4b15 ldr r3, [pc, #84] ; (8007e18 ) + 8007dc4: 9300 str r3, [sp, #0] + 8007dc6: 4b15 ldr r3, [pc, #84] ; (8007e1c ) + 8007dc8: 4602 mov r2, r0 + 8007dca: 2000 movs r0, #0 + 8007dcc: f003 f81c bl 800ae08 pbuf_free(p); - 8007dd4: 6878 ldr r0, [r7, #4] - 8007dd6: f7fd fde1 bl 800599c + 8007dd0: 6878 ldr r0, [r7, #4] + 8007dd2: f7fd fde1 bl 8005998 return; - 8007dda: e00c b.n 8007df6 + 8007dd6: e00c b.n 8007df2 + goto dropped; + 8007dd8: bf00 nop + 8007dda: e006 b.n 8007dea goto dropped; 8007ddc: bf00 nop - 8007dde: e006 b.n 8007dee + 8007dde: e004 b.n 8007dea goto dropped; 8007de0: bf00 nop - 8007de2: e004 b.n 8007dee - goto dropped; + 8007de2: e002 b.n 8007dea + goto dropped; 8007de4: bf00 nop - 8007de6: e002 b.n 8007dee + 8007de6: e000 b.n 8007dea goto dropped; 8007de8: bf00 nop - 8007dea: e000 b.n 8007dee - goto dropped; - 8007dec: bf00 nop dropped: TCP_STATS_INC(tcp.drop); MIB2_STATS_INC(mib2.tcpinerrs); pbuf_free(p); - 8007dee: 6878 ldr r0, [r7, #4] - 8007df0: f7fd fdd4 bl 800599c - 8007df4: e000 b.n 8007df8 + 8007dea: 6878 ldr r0, [r7, #4] + 8007dec: f7fd fdd4 bl 8005998 + 8007df0: e000 b.n 8007df4 return; - 8007df6: bf00 nop + 8007df2: bf00 nop } - 8007df8: 3724 adds r7, #36 ; 0x24 - 8007dfa: 46bd mov sp, r7 - 8007dfc: bd90 pop {r4, r7, pc} - 8007dfe: bf00 nop - 8007e00: 20008c4c .word 0x20008c4c - 8007e04: 20008c48 .word 0x20008c48 - 8007e08: 20008c18 .word 0x20008c18 - 8007e0c: 20008c28 .word 0x20008c28 - 8007e10: 20008c3c .word 0x20008c3c - 8007e14: 20008c42 .word 0x20008c42 - 8007e18: 20008c38 .word 0x20008c38 - 8007e1c: 20005680 .word 0x20005680 - 8007e20: 20005684 .word 0x20005684 + 8007df4: 3724 adds r7, #36 ; 0x24 + 8007df6: 46bd mov sp, r7 + 8007df8: bd90 pop {r4, r7, pc} + 8007dfa: bf00 nop + 8007dfc: 20008c4c .word 0x20008c4c + 8007e00: 20008c48 .word 0x20008c48 + 8007e04: 20008c18 .word 0x20008c18 + 8007e08: 20008c28 .word 0x20008c28 + 8007e0c: 20008c3c .word 0x20008c3c + 8007e10: 20008c42 .word 0x20008c42 + 8007e14: 20008c38 .word 0x20008c38 + 8007e18: 20005680 .word 0x20005680 + 8007e1c: 20005684 .word 0x20005684 -08007e24 : +08007e20 : * any more. * @returns 1 if the pcb has been closed and deallocated, 0 otherwise */ static int tcp_input_delayed_close(struct tcp_pcb *pcb) { - 8007e24: b580 push {r7, lr} - 8007e26: b082 sub sp, #8 - 8007e28: af00 add r7, sp, #0 - 8007e2a: 6078 str r0, [r7, #4] + 8007e20: b580 push {r7, lr} + 8007e22: b082 sub sp, #8 + 8007e24: af00 add r7, sp, #0 + 8007e26: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_input_delayed_close: invalid pcb", pcb != NULL); - 8007e2c: 687b ldr r3, [r7, #4] - 8007e2e: 2b00 cmp r3, #0 - 8007e30: d106 bne.n 8007e40 - 8007e32: 4b17 ldr r3, [pc, #92] ; (8007e90 ) - 8007e34: f240 225a movw r2, #602 ; 0x25a - 8007e38: 4916 ldr r1, [pc, #88] ; (8007e94 ) - 8007e3a: 4817 ldr r0, [pc, #92] ; (8007e98 ) - 8007e3c: f008 faca bl 80103d4 + 8007e28: 687b ldr r3, [r7, #4] + 8007e2a: 2b00 cmp r3, #0 + 8007e2c: d106 bne.n 8007e3c + 8007e2e: 4b17 ldr r3, [pc, #92] ; (8007e8c ) + 8007e30: f240 225a movw r2, #602 ; 0x25a + 8007e34: 4916 ldr r1, [pc, #88] ; (8007e90 ) + 8007e36: 4817 ldr r0, [pc, #92] ; (8007e94 ) + 8007e38: f008 faca bl 80103d0 if (recv_flags & TF_CLOSED) { - 8007e40: 4b16 ldr r3, [pc, #88] ; (8007e9c ) - 8007e42: 781b ldrb r3, [r3, #0] - 8007e44: f003 0310 and.w r3, r3, #16 - 8007e48: 2b00 cmp r3, #0 - 8007e4a: d01c beq.n 8007e86 + 8007e3c: 4b16 ldr r3, [pc, #88] ; (8007e98 ) + 8007e3e: 781b ldrb r3, [r3, #0] + 8007e40: f003 0310 and.w r3, r3, #16 + 8007e44: 2b00 cmp r3, #0 + 8007e46: d01c beq.n 8007e82 /* The connection has been closed and we will deallocate the PCB. */ if (!(pcb->flags & TF_RXCLOSED)) { - 8007e4c: 687b ldr r3, [r7, #4] - 8007e4e: 8b5b ldrh r3, [r3, #26] - 8007e50: f003 0310 and.w r3, r3, #16 - 8007e54: 2b00 cmp r3, #0 - 8007e56: d10d bne.n 8007e74 + 8007e48: 687b ldr r3, [r7, #4] + 8007e4a: 8b5b ldrh r3, [r3, #26] + 8007e4c: f003 0310 and.w r3, r3, #16 + 8007e50: 2b00 cmp r3, #0 + 8007e52: d10d bne.n 8007e70 /* Connection closed although the application has only shut down the tx side: call the PCB's err callback and indicate the closure to ensure the application doesn't continue using the PCB. */ TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_CLSD); - 8007e58: 687b ldr r3, [r7, #4] - 8007e5a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8007e5e: 2b00 cmp r3, #0 - 8007e60: d008 beq.n 8007e74 - 8007e62: 687b ldr r3, [r7, #4] - 8007e64: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8007e68: 687a ldr r2, [r7, #4] - 8007e6a: 6912 ldr r2, [r2, #16] - 8007e6c: f06f 010e mvn.w r1, #14 - 8007e70: 4610 mov r0, r2 - 8007e72: 4798 blx r3 + 8007e54: 687b ldr r3, [r7, #4] + 8007e56: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8007e5a: 2b00 cmp r3, #0 + 8007e5c: d008 beq.n 8007e70 + 8007e5e: 687b ldr r3, [r7, #4] + 8007e60: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8007e64: 687a ldr r2, [r7, #4] + 8007e66: 6912 ldr r2, [r2, #16] + 8007e68: f06f 010e mvn.w r1, #14 + 8007e6c: 4610 mov r0, r2 + 8007e6e: 4798 blx r3 } tcp_pcb_remove(&tcp_active_pcbs, pcb); - 8007e74: 6879 ldr r1, [r7, #4] - 8007e76: 480a ldr r0, [pc, #40] ; (8007ea0 ) - 8007e78: f7ff fa50 bl 800731c + 8007e70: 6879 ldr r1, [r7, #4] + 8007e72: 480a ldr r0, [pc, #40] ; (8007e9c ) + 8007e74: f7ff fa50 bl 8007318 tcp_free(pcb); - 8007e7c: 6878 ldr r0, [r7, #4] - 8007e7e: f7fe f83d bl 8005efc + 8007e78: 6878 ldr r0, [r7, #4] + 8007e7a: f7fe f83d bl 8005ef8 return 1; - 8007e82: 2301 movs r3, #1 - 8007e84: e000 b.n 8007e88 + 8007e7e: 2301 movs r3, #1 + 8007e80: e000 b.n 8007e84 } return 0; - 8007e86: 2300 movs r3, #0 + 8007e82: 2300 movs r3, #0 } - 8007e88: 4618 mov r0, r3 - 8007e8a: 3708 adds r7, #8 - 8007e8c: 46bd mov sp, r7 - 8007e8e: bd80 pop {r7, pc} - 8007e90: 08016124 .word 0x08016124 - 8007e94: 080162f4 .word 0x080162f4 - 8007e98: 08016170 .word 0x08016170 - 8007e9c: 20008c45 .word 0x20008c45 - 8007ea0: 20008c0c .word 0x20008c0c + 8007e84: 4618 mov r0, r3 + 8007e86: 3708 adds r7, #8 + 8007e88: 46bd mov sp, r7 + 8007e8a: bd80 pop {r7, pc} + 8007e8c: 08016124 .word 0x08016124 + 8007e90: 080162f4 .word 0x080162f4 + 8007e94: 08016170 .word 0x08016170 + 8007e98: 20008c45 .word 0x20008c45 + 8007e9c: 20008c0c .word 0x20008c0c -08007ea4 : +08007ea0 : * @note the segment which arrived is saved in global variables, therefore only the pcb * involved is passed as a parameter to this function */ static void tcp_listen_input(struct tcp_pcb_listen *pcb) { - 8007ea4: b590 push {r4, r7, lr} - 8007ea6: b08b sub sp, #44 ; 0x2c - 8007ea8: af04 add r7, sp, #16 - 8007eaa: 6078 str r0, [r7, #4] + 8007ea0: b590 push {r4, r7, lr} + 8007ea2: b08b sub sp, #44 ; 0x2c + 8007ea4: af04 add r7, sp, #16 + 8007ea6: 6078 str r0, [r7, #4] struct tcp_pcb *npcb; u32_t iss; err_t rc; if (flags & TCP_RST) { - 8007eac: 4b6f ldr r3, [pc, #444] ; (800806c ) - 8007eae: 781b ldrb r3, [r3, #0] - 8007eb0: f003 0304 and.w r3, r3, #4 - 8007eb4: 2b00 cmp r3, #0 - 8007eb6: f040 80d2 bne.w 800805e + 8007ea8: 4b6f ldr r3, [pc, #444] ; (8008068 ) + 8007eaa: 781b ldrb r3, [r3, #0] + 8007eac: f003 0304 and.w r3, r3, #4 + 8007eb0: 2b00 cmp r3, #0 + 8007eb2: f040 80d2 bne.w 800805a /* An incoming RST should be ignored. Return. */ return; } LWIP_ASSERT("tcp_listen_input: invalid pcb", pcb != NULL); - 8007eba: 687b ldr r3, [r7, #4] - 8007ebc: 2b00 cmp r3, #0 - 8007ebe: d106 bne.n 8007ece - 8007ec0: 4b6b ldr r3, [pc, #428] ; (8008070 ) - 8007ec2: f240 2281 movw r2, #641 ; 0x281 - 8007ec6: 496b ldr r1, [pc, #428] ; (8008074 ) - 8007ec8: 486b ldr r0, [pc, #428] ; (8008078 ) - 8007eca: f008 fa83 bl 80103d4 + 8007eb6: 687b ldr r3, [r7, #4] + 8007eb8: 2b00 cmp r3, #0 + 8007eba: d106 bne.n 8007eca + 8007ebc: 4b6b ldr r3, [pc, #428] ; (800806c ) + 8007ebe: f240 2281 movw r2, #641 ; 0x281 + 8007ec2: 496b ldr r1, [pc, #428] ; (8008070 ) + 8007ec4: 486b ldr r0, [pc, #428] ; (8008074 ) + 8007ec6: f008 fa83 bl 80103d0 /* In the LISTEN state, we check for incoming SYN segments, creates a new PCB, and responds with a SYN|ACK. */ if (flags & TCP_ACK) { - 8007ece: 4b67 ldr r3, [pc, #412] ; (800806c ) - 8007ed0: 781b ldrb r3, [r3, #0] - 8007ed2: f003 0310 and.w r3, r3, #16 - 8007ed6: 2b00 cmp r3, #0 - 8007ed8: d019 beq.n 8007f0e + 8007eca: 4b67 ldr r3, [pc, #412] ; (8008068 ) + 8007ecc: 781b ldrb r3, [r3, #0] + 8007ece: f003 0310 and.w r3, r3, #16 + 8007ed2: 2b00 cmp r3, #0 + 8007ed4: d019 beq.n 8007f0a /* For incoming segments with the ACK flag set, respond with a RST. */ LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_listen_input: ACK in LISTEN, sending reset\n")); tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8007eda: 4b68 ldr r3, [pc, #416] ; (800807c ) - 8007edc: 6819 ldr r1, [r3, #0] - 8007ede: 4b68 ldr r3, [pc, #416] ; (8008080 ) - 8007ee0: 881b ldrh r3, [r3, #0] - 8007ee2: 461a mov r2, r3 - 8007ee4: 4b67 ldr r3, [pc, #412] ; (8008084 ) - 8007ee6: 681b ldr r3, [r3, #0] - 8007ee8: 18d0 adds r0, r2, r3 + 8007ed6: 4b68 ldr r3, [pc, #416] ; (8008078 ) + 8007ed8: 6819 ldr r1, [r3, #0] + 8007eda: 4b68 ldr r3, [pc, #416] ; (800807c ) + 8007edc: 881b ldrh r3, [r3, #0] + 8007ede: 461a mov r2, r3 + 8007ee0: 4b67 ldr r3, [pc, #412] ; (8008080 ) + 8007ee2: 681b ldr r3, [r3, #0] + 8007ee4: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8007eea: 4b67 ldr r3, [pc, #412] ; (8008088 ) - 8007eec: 681b ldr r3, [r3, #0] + 8007ee6: 4b67 ldr r3, [pc, #412] ; (8008084 ) + 8007ee8: 681b ldr r3, [r3, #0] tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8007eee: 885b ldrh r3, [r3, #2] - 8007ef0: b29b uxth r3, r3 + 8007eea: 885b ldrh r3, [r3, #2] + 8007eec: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8007ef2: 4a65 ldr r2, [pc, #404] ; (8008088 ) - 8007ef4: 6812 ldr r2, [r2, #0] + 8007eee: 4a65 ldr r2, [pc, #404] ; (8008084 ) + 8007ef0: 6812 ldr r2, [r2, #0] tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8007ef6: 8812 ldrh r2, [r2, #0] - 8007ef8: b292 uxth r2, r2 - 8007efa: 9202 str r2, [sp, #8] - 8007efc: 9301 str r3, [sp, #4] - 8007efe: 4b63 ldr r3, [pc, #396] ; (800808c ) - 8007f00: 9300 str r3, [sp, #0] - 8007f02: 4b63 ldr r3, [pc, #396] ; (8008090 ) - 8007f04: 4602 mov r2, r0 - 8007f06: 6878 ldr r0, [r7, #4] - 8007f08: f002 ff80 bl 800ae0c + 8007ef2: 8812 ldrh r2, [r2, #0] + 8007ef4: b292 uxth r2, r2 + 8007ef6: 9202 str r2, [sp, #8] + 8007ef8: 9301 str r3, [sp, #4] + 8007efa: 4b63 ldr r3, [pc, #396] ; (8008088 ) + 8007efc: 9300 str r3, [sp, #0] + 8007efe: 4b63 ldr r3, [pc, #396] ; (800808c ) + 8007f00: 4602 mov r2, r0 + 8007f02: 6878 ldr r0, [r7, #4] + 8007f04: f002 ff80 bl 800ae08 tcp_abandon(npcb, 0); return; } tcp_output(npcb); } return; - 8007f0c: e0a9 b.n 8008062 + 8007f08: e0a9 b.n 800805e } else if (flags & TCP_SYN) { - 8007f0e: 4b57 ldr r3, [pc, #348] ; (800806c ) - 8007f10: 781b ldrb r3, [r3, #0] - 8007f12: f003 0302 and.w r3, r3, #2 - 8007f16: 2b00 cmp r3, #0 - 8007f18: f000 80a3 beq.w 8008062 + 8007f0a: 4b57 ldr r3, [pc, #348] ; (8008068 ) + 8007f0c: 781b ldrb r3, [r3, #0] + 8007f0e: f003 0302 and.w r3, r3, #2 + 8007f12: 2b00 cmp r3, #0 + 8007f14: f000 80a3 beq.w 800805e npcb = tcp_alloc(pcb->prio); - 8007f1c: 687b ldr r3, [r7, #4] - 8007f1e: 7d5b ldrb r3, [r3, #21] - 8007f20: 4618 mov r0, r3 - 8007f22: f7ff f927 bl 8007174 - 8007f26: 6178 str r0, [r7, #20] + 8007f18: 687b ldr r3, [r7, #4] + 8007f1a: 7d5b ldrb r3, [r3, #21] + 8007f1c: 4618 mov r0, r3 + 8007f1e: f7ff f927 bl 8007170 + 8007f22: 6178 str r0, [r7, #20] if (npcb == NULL) { - 8007f28: 697b ldr r3, [r7, #20] - 8007f2a: 2b00 cmp r3, #0 - 8007f2c: d111 bne.n 8007f52 + 8007f24: 697b ldr r3, [r7, #20] + 8007f26: 2b00 cmp r3, #0 + 8007f28: d111 bne.n 8007f4e TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err); - 8007f2e: 687b ldr r3, [r7, #4] - 8007f30: 699b ldr r3, [r3, #24] - 8007f32: 2b00 cmp r3, #0 - 8007f34: d00a beq.n 8007f4c - 8007f36: 687b ldr r3, [r7, #4] - 8007f38: 699b ldr r3, [r3, #24] - 8007f3a: 687a ldr r2, [r7, #4] - 8007f3c: 6910 ldr r0, [r2, #16] - 8007f3e: f04f 32ff mov.w r2, #4294967295 - 8007f42: 2100 movs r1, #0 - 8007f44: 4798 blx r3 - 8007f46: 4603 mov r3, r0 - 8007f48: 73bb strb r3, [r7, #14] + 8007f2a: 687b ldr r3, [r7, #4] + 8007f2c: 699b ldr r3, [r3, #24] + 8007f2e: 2b00 cmp r3, #0 + 8007f30: d00a beq.n 8007f48 + 8007f32: 687b ldr r3, [r7, #4] + 8007f34: 699b ldr r3, [r3, #24] + 8007f36: 687a ldr r2, [r7, #4] + 8007f38: 6910 ldr r0, [r2, #16] + 8007f3a: f04f 32ff mov.w r2, #4294967295 + 8007f3e: 2100 movs r1, #0 + 8007f40: 4798 blx r3 + 8007f42: 4603 mov r3, r0 + 8007f44: 73bb strb r3, [r7, #14] return; - 8007f4a: e08b b.n 8008064 + 8007f46: e08b b.n 8008060 TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err); - 8007f4c: 23f0 movs r3, #240 ; 0xf0 - 8007f4e: 73bb strb r3, [r7, #14] + 8007f48: 23f0 movs r3, #240 ; 0xf0 + 8007f4a: 73bb strb r3, [r7, #14] return; - 8007f50: e088 b.n 8008064 + 8007f4c: e088 b.n 8008060 ip_addr_copy(npcb->local_ip, *ip_current_dest_addr()); - 8007f52: 4b50 ldr r3, [pc, #320] ; (8008094 ) - 8007f54: 695a ldr r2, [r3, #20] - 8007f56: 697b ldr r3, [r7, #20] - 8007f58: 601a str r2, [r3, #0] + 8007f4e: 4b50 ldr r3, [pc, #320] ; (8008090 ) + 8007f50: 695a ldr r2, [r3, #20] + 8007f52: 697b ldr r3, [r7, #20] + 8007f54: 601a str r2, [r3, #0] ip_addr_copy(npcb->remote_ip, *ip_current_src_addr()); - 8007f5a: 4b4e ldr r3, [pc, #312] ; (8008094 ) - 8007f5c: 691a ldr r2, [r3, #16] - 8007f5e: 697b ldr r3, [r7, #20] - 8007f60: 605a str r2, [r3, #4] + 8007f56: 4b4e ldr r3, [pc, #312] ; (8008090 ) + 8007f58: 691a ldr r2, [r3, #16] + 8007f5a: 697b ldr r3, [r7, #20] + 8007f5c: 605a str r2, [r3, #4] npcb->local_port = pcb->local_port; - 8007f62: 687b ldr r3, [r7, #4] - 8007f64: 8ada ldrh r2, [r3, #22] - 8007f66: 697b ldr r3, [r7, #20] - 8007f68: 82da strh r2, [r3, #22] + 8007f5e: 687b ldr r3, [r7, #4] + 8007f60: 8ada ldrh r2, [r3, #22] + 8007f62: 697b ldr r3, [r7, #20] + 8007f64: 82da strh r2, [r3, #22] npcb->remote_port = tcphdr->src; - 8007f6a: 4b47 ldr r3, [pc, #284] ; (8008088 ) - 8007f6c: 681b ldr r3, [r3, #0] - 8007f6e: 881b ldrh r3, [r3, #0] - 8007f70: b29a uxth r2, r3 - 8007f72: 697b ldr r3, [r7, #20] - 8007f74: 831a strh r2, [r3, #24] + 8007f66: 4b47 ldr r3, [pc, #284] ; (8008084 ) + 8007f68: 681b ldr r3, [r3, #0] + 8007f6a: 881b ldrh r3, [r3, #0] + 8007f6c: b29a uxth r2, r3 + 8007f6e: 697b ldr r3, [r7, #20] + 8007f70: 831a strh r2, [r3, #24] npcb->state = SYN_RCVD; - 8007f76: 697b ldr r3, [r7, #20] - 8007f78: 2203 movs r2, #3 - 8007f7a: 751a strb r2, [r3, #20] + 8007f72: 697b ldr r3, [r7, #20] + 8007f74: 2203 movs r2, #3 + 8007f76: 751a strb r2, [r3, #20] npcb->rcv_nxt = seqno + 1; - 8007f7c: 4b41 ldr r3, [pc, #260] ; (8008084 ) - 8007f7e: 681b ldr r3, [r3, #0] - 8007f80: 1c5a adds r2, r3, #1 - 8007f82: 697b ldr r3, [r7, #20] - 8007f84: 625a str r2, [r3, #36] ; 0x24 + 8007f78: 4b41 ldr r3, [pc, #260] ; (8008080 ) + 8007f7a: 681b ldr r3, [r3, #0] + 8007f7c: 1c5a adds r2, r3, #1 + 8007f7e: 697b ldr r3, [r7, #20] + 8007f80: 625a str r2, [r3, #36] ; 0x24 npcb->rcv_ann_right_edge = npcb->rcv_nxt; + 8007f82: 697b ldr r3, [r7, #20] + 8007f84: 6a5a ldr r2, [r3, #36] ; 0x24 8007f86: 697b ldr r3, [r7, #20] - 8007f88: 6a5a ldr r2, [r3, #36] ; 0x24 - 8007f8a: 697b ldr r3, [r7, #20] - 8007f8c: 62da str r2, [r3, #44] ; 0x2c + 8007f88: 62da str r2, [r3, #44] ; 0x2c iss = tcp_next_iss(npcb); - 8007f8e: 6978 ldr r0, [r7, #20] - 8007f90: f7ff fa58 bl 8007444 - 8007f94: 6138 str r0, [r7, #16] + 8007f8a: 6978 ldr r0, [r7, #20] + 8007f8c: f7ff fa58 bl 8007440 + 8007f90: 6138 str r0, [r7, #16] npcb->snd_wl2 = iss; - 8007f96: 697b ldr r3, [r7, #20] - 8007f98: 693a ldr r2, [r7, #16] - 8007f9a: 659a str r2, [r3, #88] ; 0x58 + 8007f92: 697b ldr r3, [r7, #20] + 8007f94: 693a ldr r2, [r7, #16] + 8007f96: 659a str r2, [r3, #88] ; 0x58 npcb->snd_nxt = iss; - 8007f9c: 697b ldr r3, [r7, #20] - 8007f9e: 693a ldr r2, [r7, #16] - 8007fa0: 651a str r2, [r3, #80] ; 0x50 + 8007f98: 697b ldr r3, [r7, #20] + 8007f9a: 693a ldr r2, [r7, #16] + 8007f9c: 651a str r2, [r3, #80] ; 0x50 npcb->lastack = iss; - 8007fa2: 697b ldr r3, [r7, #20] - 8007fa4: 693a ldr r2, [r7, #16] - 8007fa6: 645a str r2, [r3, #68] ; 0x44 + 8007f9e: 697b ldr r3, [r7, #20] + 8007fa0: 693a ldr r2, [r7, #16] + 8007fa2: 645a str r2, [r3, #68] ; 0x44 npcb->snd_lbb = iss; - 8007fa8: 697b ldr r3, [r7, #20] - 8007faa: 693a ldr r2, [r7, #16] - 8007fac: 65da str r2, [r3, #92] ; 0x5c + 8007fa4: 697b ldr r3, [r7, #20] + 8007fa6: 693a ldr r2, [r7, #16] + 8007fa8: 65da str r2, [r3, #92] ; 0x5c npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */ - 8007fae: 4b35 ldr r3, [pc, #212] ; (8008084 ) - 8007fb0: 681b ldr r3, [r3, #0] - 8007fb2: 1e5a subs r2, r3, #1 - 8007fb4: 697b ldr r3, [r7, #20] - 8007fb6: 655a str r2, [r3, #84] ; 0x54 + 8007faa: 4b35 ldr r3, [pc, #212] ; (8008080 ) + 8007fac: 681b ldr r3, [r3, #0] + 8007fae: 1e5a subs r2, r3, #1 + 8007fb0: 697b ldr r3, [r7, #20] + 8007fb2: 655a str r2, [r3, #84] ; 0x54 npcb->callback_arg = pcb->callback_arg; - 8007fb8: 687b ldr r3, [r7, #4] - 8007fba: 691a ldr r2, [r3, #16] - 8007fbc: 697b ldr r3, [r7, #20] - 8007fbe: 611a str r2, [r3, #16] + 8007fb4: 687b ldr r3, [r7, #4] + 8007fb6: 691a ldr r2, [r3, #16] + 8007fb8: 697b ldr r3, [r7, #20] + 8007fba: 611a str r2, [r3, #16] npcb->listener = pcb; - 8007fc0: 697b ldr r3, [r7, #20] - 8007fc2: 687a ldr r2, [r7, #4] - 8007fc4: 67da str r2, [r3, #124] ; 0x7c + 8007fbc: 697b ldr r3, [r7, #20] + 8007fbe: 687a ldr r2, [r7, #4] + 8007fc0: 67da str r2, [r3, #124] ; 0x7c npcb->so_options = pcb->so_options & SOF_INHERITED; - 8007fc6: 687b ldr r3, [r7, #4] - 8007fc8: 7a5b ldrb r3, [r3, #9] - 8007fca: f003 030c and.w r3, r3, #12 - 8007fce: b2da uxtb r2, r3 - 8007fd0: 697b ldr r3, [r7, #20] - 8007fd2: 725a strb r2, [r3, #9] + 8007fc2: 687b ldr r3, [r7, #4] + 8007fc4: 7a5b ldrb r3, [r3, #9] + 8007fc6: f003 030c and.w r3, r3, #12 + 8007fca: b2da uxtb r2, r3 + 8007fcc: 697b ldr r3, [r7, #20] + 8007fce: 725a strb r2, [r3, #9] npcb->netif_idx = pcb->netif_idx; - 8007fd4: 687b ldr r3, [r7, #4] - 8007fd6: 7a1a ldrb r2, [r3, #8] - 8007fd8: 697b ldr r3, [r7, #20] - 8007fda: 721a strb r2, [r3, #8] + 8007fd0: 687b ldr r3, [r7, #4] + 8007fd2: 7a1a ldrb r2, [r3, #8] + 8007fd4: 697b ldr r3, [r7, #20] + 8007fd6: 721a strb r2, [r3, #8] TCP_REG_ACTIVE(npcb); - 8007fdc: 4b2e ldr r3, [pc, #184] ; (8008098 ) - 8007fde: 681a ldr r2, [r3, #0] - 8007fe0: 697b ldr r3, [r7, #20] - 8007fe2: 60da str r2, [r3, #12] - 8007fe4: 4a2c ldr r2, [pc, #176] ; (8008098 ) - 8007fe6: 697b ldr r3, [r7, #20] - 8007fe8: 6013 str r3, [r2, #0] - 8007fea: f003 f8d1 bl 800b190 - 8007fee: 4b2b ldr r3, [pc, #172] ; (800809c ) - 8007ff0: 2201 movs r2, #1 - 8007ff2: 701a strb r2, [r3, #0] + 8007fd8: 4b2e ldr r3, [pc, #184] ; (8008094 ) + 8007fda: 681a ldr r2, [r3, #0] + 8007fdc: 697b ldr r3, [r7, #20] + 8007fde: 60da str r2, [r3, #12] + 8007fe0: 4a2c ldr r2, [pc, #176] ; (8008094 ) + 8007fe2: 697b ldr r3, [r7, #20] + 8007fe4: 6013 str r3, [r2, #0] + 8007fe6: f003 f8d1 bl 800b18c + 8007fea: 4b2b ldr r3, [pc, #172] ; (8008098 ) + 8007fec: 2201 movs r2, #1 + 8007fee: 701a strb r2, [r3, #0] tcp_parseopt(npcb); - 8007ff4: 6978 ldr r0, [r7, #20] - 8007ff6: f001 fd8f bl 8009b18 + 8007ff0: 6978 ldr r0, [r7, #20] + 8007ff2: f001 fd8f bl 8009b14 npcb->snd_wnd = tcphdr->wnd; - 8007ffa: 4b23 ldr r3, [pc, #140] ; (8008088 ) - 8007ffc: 681b ldr r3, [r3, #0] - 8007ffe: 89db ldrh r3, [r3, #14] - 8008000: b29a uxth r2, r3 - 8008002: 697b ldr r3, [r7, #20] - 8008004: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 + 8007ff6: 4b23 ldr r3, [pc, #140] ; (8008084 ) + 8007ff8: 681b ldr r3, [r3, #0] + 8007ffa: 89db ldrh r3, [r3, #14] + 8007ffc: b29a uxth r2, r3 + 8007ffe: 697b ldr r3, [r7, #20] + 8008000: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 npcb->snd_wnd_max = npcb->snd_wnd; - 8008008: 697b ldr r3, [r7, #20] - 800800a: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 800800e: 697b ldr r3, [r7, #20] - 8008010: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 + 8008004: 697b ldr r3, [r7, #20] + 8008006: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 800800a: 697b ldr r3, [r7, #20] + 800800c: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip); + 8008010: 697b ldr r3, [r7, #20] + 8008012: 8e5c ldrh r4, [r3, #50] ; 0x32 8008014: 697b ldr r3, [r7, #20] - 8008016: 8e5c ldrh r4, [r3, #50] ; 0x32 - 8008018: 697b ldr r3, [r7, #20] - 800801a: 3304 adds r3, #4 - 800801c: 4618 mov r0, r3 - 800801e: f006 fe2d bl 800ec7c - 8008022: 4601 mov r1, r0 - 8008024: 697b ldr r3, [r7, #20] - 8008026: 3304 adds r3, #4 - 8008028: 461a mov r2, r3 - 800802a: 4620 mov r0, r4 - 800802c: f7ff fa30 bl 8007490 - 8008030: 4603 mov r3, r0 - 8008032: 461a mov r2, r3 - 8008034: 697b ldr r3, [r7, #20] - 8008036: 865a strh r2, [r3, #50] ; 0x32 + 8008016: 3304 adds r3, #4 + 8008018: 4618 mov r0, r3 + 800801a: f006 fe2d bl 800ec78 + 800801e: 4601 mov r1, r0 + 8008020: 697b ldr r3, [r7, #20] + 8008022: 3304 adds r3, #4 + 8008024: 461a mov r2, r3 + 8008026: 4620 mov r0, r4 + 8008028: f7ff fa30 bl 800748c + 800802c: 4603 mov r3, r0 + 800802e: 461a mov r2, r3 + 8008030: 697b ldr r3, [r7, #20] + 8008032: 865a strh r2, [r3, #50] ; 0x32 rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK); - 8008038: 2112 movs r1, #18 - 800803a: 6978 ldr r0, [r7, #20] - 800803c: f002 f844 bl 800a0c8 - 8008040: 4603 mov r3, r0 - 8008042: 73fb strb r3, [r7, #15] + 8008034: 2112 movs r1, #18 + 8008036: 6978 ldr r0, [r7, #20] + 8008038: f002 f844 bl 800a0c4 + 800803c: 4603 mov r3, r0 + 800803e: 73fb strb r3, [r7, #15] if (rc != ERR_OK) { - 8008044: f997 300f ldrsb.w r3, [r7, #15] - 8008048: 2b00 cmp r3, #0 - 800804a: d004 beq.n 8008056 + 8008040: f997 300f ldrsb.w r3, [r7, #15] + 8008044: 2b00 cmp r3, #0 + 8008046: d004 beq.n 8008052 tcp_abandon(npcb, 0); - 800804c: 2100 movs r1, #0 - 800804e: 6978 ldr r0, [r7, #20] - 8008050: f7fe f97e bl 8006350 + 8008048: 2100 movs r1, #0 + 800804a: 6978 ldr r0, [r7, #20] + 800804c: f7fe f97e bl 800634c return; - 8008054: e006 b.n 8008064 + 8008050: e006 b.n 8008060 tcp_output(npcb); - 8008056: 6978 ldr r0, [r7, #20] - 8008058: f002 f924 bl 800a2a4 + 8008052: 6978 ldr r0, [r7, #20] + 8008054: f002 f924 bl 800a2a0 return; - 800805c: e001 b.n 8008062 + 8008058: e001 b.n 800805e return; - 800805e: bf00 nop - 8008060: e000 b.n 8008064 + 800805a: bf00 nop + 800805c: e000 b.n 8008060 return; - 8008062: bf00 nop + 800805e: bf00 nop } - 8008064: 371c adds r7, #28 - 8008066: 46bd mov sp, r7 - 8008068: bd90 pop {r4, r7, pc} - 800806a: bf00 nop - 800806c: 20008c44 .word 0x20008c44 - 8008070: 08016124 .word 0x08016124 - 8008074: 0801631c .word 0x0801631c - 8008078: 08016170 .word 0x08016170 - 800807c: 20008c3c .word 0x20008c3c - 8008080: 20008c42 .word 0x20008c42 - 8008084: 20008c38 .word 0x20008c38 - 8008088: 20008c28 .word 0x20008c28 - 800808c: 20005680 .word 0x20005680 - 8008090: 20005684 .word 0x20005684 - 8008094: 20005670 .word 0x20005670 - 8008098: 20008c0c .word 0x20008c0c - 800809c: 20008c14 .word 0x20008c14 + 8008060: 371c adds r7, #28 + 8008062: 46bd mov sp, r7 + 8008064: bd90 pop {r4, r7, pc} + 8008066: bf00 nop + 8008068: 20008c44 .word 0x20008c44 + 800806c: 08016124 .word 0x08016124 + 8008070: 0801631c .word 0x0801631c + 8008074: 08016170 .word 0x08016170 + 8008078: 20008c3c .word 0x20008c3c + 800807c: 20008c42 .word 0x20008c42 + 8008080: 20008c38 .word 0x20008c38 + 8008084: 20008c28 .word 0x20008c28 + 8008088: 20005680 .word 0x20005680 + 800808c: 20005684 .word 0x20005684 + 8008090: 20005670 .word 0x20005670 + 8008094: 20008c0c .word 0x20008c0c + 8008098: 20008c14 .word 0x20008c14 -080080a0 : +0800809c : * @note the segment which arrived is saved in global variables, therefore only the pcb * involved is passed as a parameter to this function */ static void tcp_timewait_input(struct tcp_pcb *pcb) { - 80080a0: b580 push {r7, lr} - 80080a2: b086 sub sp, #24 - 80080a4: af04 add r7, sp, #16 - 80080a6: 6078 str r0, [r7, #4] + 800809c: b580 push {r7, lr} + 800809e: b086 sub sp, #24 + 80080a0: af04 add r7, sp, #16 + 80080a2: 6078 str r0, [r7, #4] /* RFC 1337: in TIME_WAIT, ignore RST and ACK FINs + any 'acceptable' segments */ /* RFC 793 3.9 Event Processing - Segment Arrives: * - first check sequence number - we skip that one in TIME_WAIT (always * acceptable since we only send ACKs) * - second check the RST bit (... return) */ if (flags & TCP_RST) { - 80080a8: 4b2f ldr r3, [pc, #188] ; (8008168 ) - 80080aa: 781b ldrb r3, [r3, #0] - 80080ac: f003 0304 and.w r3, r3, #4 - 80080b0: 2b00 cmp r3, #0 - 80080b2: d153 bne.n 800815c + 80080a4: 4b2f ldr r3, [pc, #188] ; (8008164 ) + 80080a6: 781b ldrb r3, [r3, #0] + 80080a8: f003 0304 and.w r3, r3, #4 + 80080ac: 2b00 cmp r3, #0 + 80080ae: d153 bne.n 8008158 return; } LWIP_ASSERT("tcp_timewait_input: invalid pcb", pcb != NULL); - 80080b4: 687b ldr r3, [r7, #4] - 80080b6: 2b00 cmp r3, #0 - 80080b8: d106 bne.n 80080c8 - 80080ba: 4b2c ldr r3, [pc, #176] ; (800816c ) - 80080bc: f240 22ee movw r2, #750 ; 0x2ee - 80080c0: 492b ldr r1, [pc, #172] ; (8008170 ) - 80080c2: 482c ldr r0, [pc, #176] ; (8008174 ) - 80080c4: f008 f986 bl 80103d4 + 80080b0: 687b ldr r3, [r7, #4] + 80080b2: 2b00 cmp r3, #0 + 80080b4: d106 bne.n 80080c4 + 80080b6: 4b2c ldr r3, [pc, #176] ; (8008168 ) + 80080b8: f240 22ee movw r2, #750 ; 0x2ee + 80080bc: 492b ldr r1, [pc, #172] ; (800816c ) + 80080be: 482c ldr r0, [pc, #176] ; (8008170 ) + 80080c0: f008 f986 bl 80103d0 /* - fourth, check the SYN bit, */ if (flags & TCP_SYN) { - 80080c8: 4b27 ldr r3, [pc, #156] ; (8008168 ) - 80080ca: 781b ldrb r3, [r3, #0] - 80080cc: f003 0302 and.w r3, r3, #2 - 80080d0: 2b00 cmp r3, #0 - 80080d2: d02a beq.n 800812a + 80080c4: 4b27 ldr r3, [pc, #156] ; (8008164 ) + 80080c6: 781b ldrb r3, [r3, #0] + 80080c8: f003 0302 and.w r3, r3, #2 + 80080cc: 2b00 cmp r3, #0 + 80080ce: d02a beq.n 8008126 /* If an incoming segment is not acceptable, an acknowledgment should be sent in reply */ if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd)) { - 80080d4: 4b28 ldr r3, [pc, #160] ; (8008178 ) - 80080d6: 681a ldr r2, [r3, #0] - 80080d8: 687b ldr r3, [r7, #4] - 80080da: 6a5b ldr r3, [r3, #36] ; 0x24 - 80080dc: 1ad3 subs r3, r2, r3 - 80080de: 2b00 cmp r3, #0 - 80080e0: db2d blt.n 800813e - 80080e2: 4b25 ldr r3, [pc, #148] ; (8008178 ) - 80080e4: 681a ldr r2, [r3, #0] - 80080e6: 687b ldr r3, [r7, #4] - 80080e8: 6a5b ldr r3, [r3, #36] ; 0x24 - 80080ea: 6879 ldr r1, [r7, #4] - 80080ec: 8d09 ldrh r1, [r1, #40] ; 0x28 - 80080ee: 440b add r3, r1 - 80080f0: 1ad3 subs r3, r2, r3 - 80080f2: 2b00 cmp r3, #0 - 80080f4: dc23 bgt.n 800813e + 80080d0: 4b28 ldr r3, [pc, #160] ; (8008174 ) + 80080d2: 681a ldr r2, [r3, #0] + 80080d4: 687b ldr r3, [r7, #4] + 80080d6: 6a5b ldr r3, [r3, #36] ; 0x24 + 80080d8: 1ad3 subs r3, r2, r3 + 80080da: 2b00 cmp r3, #0 + 80080dc: db2d blt.n 800813a + 80080de: 4b25 ldr r3, [pc, #148] ; (8008174 ) + 80080e0: 681a ldr r2, [r3, #0] + 80080e2: 687b ldr r3, [r7, #4] + 80080e4: 6a5b ldr r3, [r3, #36] ; 0x24 + 80080e6: 6879 ldr r1, [r7, #4] + 80080e8: 8d09 ldrh r1, [r1, #40] ; 0x28 + 80080ea: 440b add r3, r1 + 80080ec: 1ad3 subs r3, r2, r3 + 80080ee: 2b00 cmp r3, #0 + 80080f0: dc23 bgt.n 800813a /* If the SYN is in the window it is an error, send a reset */ tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 80080f6: 4b21 ldr r3, [pc, #132] ; (800817c ) - 80080f8: 6819 ldr r1, [r3, #0] - 80080fa: 4b21 ldr r3, [pc, #132] ; (8008180 ) - 80080fc: 881b ldrh r3, [r3, #0] - 80080fe: 461a mov r2, r3 - 8008100: 4b1d ldr r3, [pc, #116] ; (8008178 ) - 8008102: 681b ldr r3, [r3, #0] - 8008104: 18d0 adds r0, r2, r3 + 80080f2: 4b21 ldr r3, [pc, #132] ; (8008178 ) + 80080f4: 6819 ldr r1, [r3, #0] + 80080f6: 4b21 ldr r3, [pc, #132] ; (800817c ) + 80080f8: 881b ldrh r3, [r3, #0] + 80080fa: 461a mov r2, r3 + 80080fc: 4b1d ldr r3, [pc, #116] ; (8008174 ) + 80080fe: 681b ldr r3, [r3, #0] + 8008100: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8008106: 4b1f ldr r3, [pc, #124] ; (8008184 ) - 8008108: 681b ldr r3, [r3, #0] + 8008102: 4b1f ldr r3, [pc, #124] ; (8008180 ) + 8008104: 681b ldr r3, [r3, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 800810a: 885b ldrh r3, [r3, #2] - 800810c: b29b uxth r3, r3 + 8008106: 885b ldrh r3, [r3, #2] + 8008108: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 800810e: 4a1d ldr r2, [pc, #116] ; (8008184 ) - 8008110: 6812 ldr r2, [r2, #0] + 800810a: 4a1d ldr r2, [pc, #116] ; (8008180 ) + 800810c: 6812 ldr r2, [r2, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8008112: 8812 ldrh r2, [r2, #0] - 8008114: b292 uxth r2, r2 - 8008116: 9202 str r2, [sp, #8] - 8008118: 9301 str r3, [sp, #4] - 800811a: 4b1b ldr r3, [pc, #108] ; (8008188 ) - 800811c: 9300 str r3, [sp, #0] - 800811e: 4b1b ldr r3, [pc, #108] ; (800818c ) - 8008120: 4602 mov r2, r0 - 8008122: 6878 ldr r0, [r7, #4] - 8008124: f002 fe72 bl 800ae0c + 800810e: 8812 ldrh r2, [r2, #0] + 8008110: b292 uxth r2, r2 + 8008112: 9202 str r2, [sp, #8] + 8008114: 9301 str r3, [sp, #4] + 8008116: 4b1b ldr r3, [pc, #108] ; (8008184 ) + 8008118: 9300 str r3, [sp, #0] + 800811a: 4b1b ldr r3, [pc, #108] ; (8008188 ) + 800811c: 4602 mov r2, r0 + 800811e: 6878 ldr r0, [r7, #4] + 8008120: f002 fe72 bl 800ae08 return; - 8008128: e01b b.n 8008162 + 8008124: e01b b.n 800815e } } else if (flags & TCP_FIN) { - 800812a: 4b0f ldr r3, [pc, #60] ; (8008168 ) - 800812c: 781b ldrb r3, [r3, #0] - 800812e: f003 0301 and.w r3, r3, #1 - 8008132: 2b00 cmp r3, #0 - 8008134: d003 beq.n 800813e + 8008126: 4b0f ldr r3, [pc, #60] ; (8008164 ) + 8008128: 781b ldrb r3, [r3, #0] + 800812a: f003 0301 and.w r3, r3, #1 + 800812e: 2b00 cmp r3, #0 + 8008130: d003 beq.n 800813a /* - eighth, check the FIN bit: Remain in the TIME-WAIT state. Restart the 2 MSL time-wait timeout.*/ pcb->tmr = tcp_ticks; - 8008136: 4b16 ldr r3, [pc, #88] ; (8008190 ) - 8008138: 681a ldr r2, [r3, #0] - 800813a: 687b ldr r3, [r7, #4] - 800813c: 621a str r2, [r3, #32] + 8008132: 4b16 ldr r3, [pc, #88] ; (800818c ) + 8008134: 681a ldr r2, [r3, #0] + 8008136: 687b ldr r3, [r7, #4] + 8008138: 621a str r2, [r3, #32] } if ((tcplen > 0)) { - 800813e: 4b10 ldr r3, [pc, #64] ; (8008180 ) - 8008140: 881b ldrh r3, [r3, #0] - 8008142: 2b00 cmp r3, #0 - 8008144: d00c beq.n 8008160 + 800813a: 4b10 ldr r3, [pc, #64] ; (800817c ) + 800813c: 881b ldrh r3, [r3, #0] + 800813e: 2b00 cmp r3, #0 + 8008140: d00c beq.n 800815c /* Acknowledge data, FIN or out-of-window SYN */ tcp_ack_now(pcb); - 8008146: 687b ldr r3, [r7, #4] - 8008148: 8b5b ldrh r3, [r3, #26] - 800814a: f043 0302 orr.w r3, r3, #2 - 800814e: b29a uxth r2, r3 - 8008150: 687b ldr r3, [r7, #4] - 8008152: 835a strh r2, [r3, #26] + 8008142: 687b ldr r3, [r7, #4] + 8008144: 8b5b ldrh r3, [r3, #26] + 8008146: f043 0302 orr.w r3, r3, #2 + 800814a: b29a uxth r2, r3 + 800814c: 687b ldr r3, [r7, #4] + 800814e: 835a strh r2, [r3, #26] tcp_output(pcb); - 8008154: 6878 ldr r0, [r7, #4] - 8008156: f002 f8a5 bl 800a2a4 + 8008150: 6878 ldr r0, [r7, #4] + 8008152: f002 f8a5 bl 800a2a0 } return; - 800815a: e001 b.n 8008160 + 8008156: e001 b.n 800815c return; - 800815c: bf00 nop - 800815e: e000 b.n 8008162 + 8008158: bf00 nop + 800815a: e000 b.n 800815e return; - 8008160: bf00 nop + 800815c: bf00 nop } - 8008162: 3708 adds r7, #8 - 8008164: 46bd mov sp, r7 - 8008166: bd80 pop {r7, pc} - 8008168: 20008c44 .word 0x20008c44 - 800816c: 08016124 .word 0x08016124 - 8008170: 0801633c .word 0x0801633c - 8008174: 08016170 .word 0x08016170 - 8008178: 20008c38 .word 0x20008c38 - 800817c: 20008c3c .word 0x20008c3c - 8008180: 20008c42 .word 0x20008c42 - 8008184: 20008c28 .word 0x20008c28 - 8008188: 20005680 .word 0x20005680 - 800818c: 20005684 .word 0x20005684 - 8008190: 20008c00 .word 0x20008c00 + 800815e: 3708 adds r7, #8 + 8008160: 46bd mov sp, r7 + 8008162: bd80 pop {r7, pc} + 8008164: 20008c44 .word 0x20008c44 + 8008168: 08016124 .word 0x08016124 + 800816c: 0801633c .word 0x0801633c + 8008170: 08016170 .word 0x08016170 + 8008174: 20008c38 .word 0x20008c38 + 8008178: 20008c3c .word 0x20008c3c + 800817c: 20008c42 .word 0x20008c42 + 8008180: 20008c28 .word 0x20008c28 + 8008184: 20005680 .word 0x20005680 + 8008188: 20005684 .word 0x20005684 + 800818c: 20008c00 .word 0x20008c00 -08008194 : +08008190 : * @note the segment which arrived is saved in global variables, therefore only the pcb * involved is passed as a parameter to this function */ static err_t tcp_process(struct tcp_pcb *pcb) { - 8008194: b590 push {r4, r7, lr} - 8008196: b08d sub sp, #52 ; 0x34 - 8008198: af04 add r7, sp, #16 - 800819a: 6078 str r0, [r7, #4] + 8008190: b590 push {r4, r7, lr} + 8008192: b08d sub sp, #52 ; 0x34 + 8008194: af04 add r7, sp, #16 + 8008196: 6078 str r0, [r7, #4] struct tcp_seg *rseg; u8_t acceptable = 0; - 800819c: 2300 movs r3, #0 - 800819e: 76fb strb r3, [r7, #27] + 8008198: 2300 movs r3, #0 + 800819a: 76fb strb r3, [r7, #27] err_t err; err = ERR_OK; - 80081a0: 2300 movs r3, #0 - 80081a2: 76bb strb r3, [r7, #26] + 800819c: 2300 movs r3, #0 + 800819e: 76bb strb r3, [r7, #26] LWIP_ASSERT("tcp_process: invalid pcb", pcb != NULL); - 80081a4: 687b ldr r3, [r7, #4] - 80081a6: 2b00 cmp r3, #0 - 80081a8: d106 bne.n 80081b8 - 80081aa: 4b9d ldr r3, [pc, #628] ; (8008420 ) - 80081ac: f44f 7247 mov.w r2, #796 ; 0x31c - 80081b0: 499c ldr r1, [pc, #624] ; (8008424 ) - 80081b2: 489d ldr r0, [pc, #628] ; (8008428 ) - 80081b4: f008 f90e bl 80103d4 + 80081a0: 687b ldr r3, [r7, #4] + 80081a2: 2b00 cmp r3, #0 + 80081a4: d106 bne.n 80081b4 + 80081a6: 4b9d ldr r3, [pc, #628] ; (800841c ) + 80081a8: f44f 7247 mov.w r2, #796 ; 0x31c + 80081ac: 499c ldr r1, [pc, #624] ; (8008420 ) + 80081ae: 489d ldr r0, [pc, #628] ; (8008424 ) + 80081b0: f008 f90e bl 80103d0 /* Process incoming RST segments. */ if (flags & TCP_RST) { - 80081b8: 4b9c ldr r3, [pc, #624] ; (800842c ) - 80081ba: 781b ldrb r3, [r3, #0] - 80081bc: f003 0304 and.w r3, r3, #4 - 80081c0: 2b00 cmp r3, #0 - 80081c2: d04e beq.n 8008262 + 80081b4: 4b9c ldr r3, [pc, #624] ; (8008428 ) + 80081b6: 781b ldrb r3, [r3, #0] + 80081b8: f003 0304 and.w r3, r3, #4 + 80081bc: 2b00 cmp r3, #0 + 80081be: d04e beq.n 800825e /* First, determine if the reset is acceptable. */ if (pcb->state == SYN_SENT) { - 80081c4: 687b ldr r3, [r7, #4] - 80081c6: 7d1b ldrb r3, [r3, #20] - 80081c8: 2b02 cmp r3, #2 - 80081ca: d108 bne.n 80081de + 80081c0: 687b ldr r3, [r7, #4] + 80081c2: 7d1b ldrb r3, [r3, #20] + 80081c4: 2b02 cmp r3, #2 + 80081c6: d108 bne.n 80081da /* "In the SYN-SENT state (a RST received in response to an initial SYN), the RST is acceptable if the ACK field acknowledges the SYN." */ if (ackno == pcb->snd_nxt) { - 80081cc: 687b ldr r3, [r7, #4] - 80081ce: 6d1a ldr r2, [r3, #80] ; 0x50 - 80081d0: 4b97 ldr r3, [pc, #604] ; (8008430 ) - 80081d2: 681b ldr r3, [r3, #0] - 80081d4: 429a cmp r2, r3 - 80081d6: d123 bne.n 8008220 + 80081c8: 687b ldr r3, [r7, #4] + 80081ca: 6d1a ldr r2, [r3, #80] ; 0x50 + 80081cc: 4b97 ldr r3, [pc, #604] ; (800842c ) + 80081ce: 681b ldr r3, [r3, #0] + 80081d0: 429a cmp r2, r3 + 80081d2: d123 bne.n 800821c acceptable = 1; - 80081d8: 2301 movs r3, #1 - 80081da: 76fb strb r3, [r7, #27] - 80081dc: e020 b.n 8008220 + 80081d4: 2301 movs r3, #1 + 80081d6: 76fb strb r3, [r7, #27] + 80081d8: e020 b.n 800821c } } else { /* "In all states except SYN-SENT, all reset (RST) segments are validated by checking their SEQ-fields." */ if (seqno == pcb->rcv_nxt) { - 80081de: 687b ldr r3, [r7, #4] - 80081e0: 6a5a ldr r2, [r3, #36] ; 0x24 - 80081e2: 4b94 ldr r3, [pc, #592] ; (8008434 ) - 80081e4: 681b ldr r3, [r3, #0] - 80081e6: 429a cmp r2, r3 - 80081e8: d102 bne.n 80081f0 + 80081da: 687b ldr r3, [r7, #4] + 80081dc: 6a5a ldr r2, [r3, #36] ; 0x24 + 80081de: 4b94 ldr r3, [pc, #592] ; (8008430 ) + 80081e0: 681b ldr r3, [r3, #0] + 80081e2: 429a cmp r2, r3 + 80081e4: d102 bne.n 80081ec acceptable = 1; - 80081ea: 2301 movs r3, #1 - 80081ec: 76fb strb r3, [r7, #27] - 80081ee: e017 b.n 8008220 + 80081e6: 2301 movs r3, #1 + 80081e8: 76fb strb r3, [r7, #27] + 80081ea: e017 b.n 800821c } else if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 80081f0: 4b90 ldr r3, [pc, #576] ; (8008434 ) - 80081f2: 681a ldr r2, [r3, #0] - 80081f4: 687b ldr r3, [r7, #4] - 80081f6: 6a5b ldr r3, [r3, #36] ; 0x24 - 80081f8: 1ad3 subs r3, r2, r3 - 80081fa: 2b00 cmp r3, #0 - 80081fc: db10 blt.n 8008220 - 80081fe: 4b8d ldr r3, [pc, #564] ; (8008434 ) - 8008200: 681a ldr r2, [r3, #0] - 8008202: 687b ldr r3, [r7, #4] - 8008204: 6a5b ldr r3, [r3, #36] ; 0x24 - 8008206: 6879 ldr r1, [r7, #4] - 8008208: 8d09 ldrh r1, [r1, #40] ; 0x28 - 800820a: 440b add r3, r1 - 800820c: 1ad3 subs r3, r2, r3 - 800820e: 2b00 cmp r3, #0 - 8008210: dc06 bgt.n 8008220 + 80081ec: 4b90 ldr r3, [pc, #576] ; (8008430 ) + 80081ee: 681a ldr r2, [r3, #0] + 80081f0: 687b ldr r3, [r7, #4] + 80081f2: 6a5b ldr r3, [r3, #36] ; 0x24 + 80081f4: 1ad3 subs r3, r2, r3 + 80081f6: 2b00 cmp r3, #0 + 80081f8: db10 blt.n 800821c + 80081fa: 4b8d ldr r3, [pc, #564] ; (8008430 ) + 80081fc: 681a ldr r2, [r3, #0] + 80081fe: 687b ldr r3, [r7, #4] + 8008200: 6a5b ldr r3, [r3, #36] ; 0x24 + 8008202: 6879 ldr r1, [r7, #4] + 8008204: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8008206: 440b add r3, r1 + 8008208: 1ad3 subs r3, r2, r3 + 800820a: 2b00 cmp r3, #0 + 800820c: dc06 bgt.n 800821c pcb->rcv_nxt + pcb->rcv_wnd)) { /* If the sequence number is inside the window, we send a challenge ACK and wait for a re-send with matching sequence number. This follows RFC 5961 section 3.2 and addresses CVE-2004-0230 (RST spoofing attack), which is present in RFC 793 RST handling. */ tcp_ack_now(pcb); - 8008212: 687b ldr r3, [r7, #4] - 8008214: 8b5b ldrh r3, [r3, #26] - 8008216: f043 0302 orr.w r3, r3, #2 - 800821a: b29a uxth r2, r3 - 800821c: 687b ldr r3, [r7, #4] - 800821e: 835a strh r2, [r3, #26] + 800820e: 687b ldr r3, [r7, #4] + 8008210: 8b5b ldrh r3, [r3, #26] + 8008212: f043 0302 orr.w r3, r3, #2 + 8008216: b29a uxth r2, r3 + 8008218: 687b ldr r3, [r7, #4] + 800821a: 835a strh r2, [r3, #26] } } if (acceptable) { - 8008220: 7efb ldrb r3, [r7, #27] - 8008222: 2b00 cmp r3, #0 - 8008224: d01b beq.n 800825e + 800821c: 7efb ldrb r3, [r7, #27] + 800821e: 2b00 cmp r3, #0 + 8008220: d01b beq.n 800825a LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: Connection RESET\n")); LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED); - 8008226: 687b ldr r3, [r7, #4] - 8008228: 7d1b ldrb r3, [r3, #20] - 800822a: 2b00 cmp r3, #0 - 800822c: d106 bne.n 800823c - 800822e: 4b7c ldr r3, [pc, #496] ; (8008420 ) - 8008230: f44f 724e mov.w r2, #824 ; 0x338 - 8008234: 4980 ldr r1, [pc, #512] ; (8008438 ) - 8008236: 487c ldr r0, [pc, #496] ; (8008428 ) - 8008238: f008 f8cc bl 80103d4 + 8008222: 687b ldr r3, [r7, #4] + 8008224: 7d1b ldrb r3, [r3, #20] + 8008226: 2b00 cmp r3, #0 + 8008228: d106 bne.n 8008238 + 800822a: 4b7c ldr r3, [pc, #496] ; (800841c ) + 800822c: f44f 724e mov.w r2, #824 ; 0x338 + 8008230: 4980 ldr r1, [pc, #512] ; (8008434 ) + 8008232: 487c ldr r0, [pc, #496] ; (8008424 ) + 8008234: f008 f8cc bl 80103d0 recv_flags |= TF_RESET; - 800823c: 4b7f ldr r3, [pc, #508] ; (800843c ) - 800823e: 781b ldrb r3, [r3, #0] - 8008240: f043 0308 orr.w r3, r3, #8 - 8008244: b2da uxtb r2, r3 - 8008246: 4b7d ldr r3, [pc, #500] ; (800843c ) - 8008248: 701a strb r2, [r3, #0] + 8008238: 4b7f ldr r3, [pc, #508] ; (8008438 ) + 800823a: 781b ldrb r3, [r3, #0] + 800823c: f043 0308 orr.w r3, r3, #8 + 8008240: b2da uxtb r2, r3 + 8008242: 4b7d ldr r3, [pc, #500] ; (8008438 ) + 8008244: 701a strb r2, [r3, #0] tcp_clear_flags(pcb, TF_ACK_DELAY); - 800824a: 687b ldr r3, [r7, #4] - 800824c: 8b5b ldrh r3, [r3, #26] - 800824e: f023 0301 bic.w r3, r3, #1 - 8008252: b29a uxth r2, r3 - 8008254: 687b ldr r3, [r7, #4] - 8008256: 835a strh r2, [r3, #26] + 8008246: 687b ldr r3, [r7, #4] + 8008248: 8b5b ldrh r3, [r3, #26] + 800824a: f023 0301 bic.w r3, r3, #1 + 800824e: b29a uxth r2, r3 + 8008250: 687b ldr r3, [r7, #4] + 8008252: 835a strh r2, [r3, #26] return ERR_RST; - 8008258: f06f 030d mvn.w r3, #13 - 800825c: e37a b.n 8008954 + 8008254: f06f 030d mvn.w r3, #13 + 8008258: e37a b.n 8008950 } else { LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n", seqno, pcb->rcv_nxt)); LWIP_DEBUGF(TCP_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n", seqno, pcb->rcv_nxt)); return ERR_OK; - 800825e: 2300 movs r3, #0 - 8008260: e378 b.n 8008954 + 800825a: 2300 movs r3, #0 + 800825c: e378 b.n 8008950 } } if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) { - 8008262: 4b72 ldr r3, [pc, #456] ; (800842c ) - 8008264: 781b ldrb r3, [r3, #0] - 8008266: f003 0302 and.w r3, r3, #2 - 800826a: 2b00 cmp r3, #0 - 800826c: d010 beq.n 8008290 - 800826e: 687b ldr r3, [r7, #4] - 8008270: 7d1b ldrb r3, [r3, #20] - 8008272: 2b02 cmp r3, #2 - 8008274: d00c beq.n 8008290 - 8008276: 687b ldr r3, [r7, #4] - 8008278: 7d1b ldrb r3, [r3, #20] - 800827a: 2b03 cmp r3, #3 - 800827c: d008 beq.n 8008290 + 800825e: 4b72 ldr r3, [pc, #456] ; (8008428 ) + 8008260: 781b ldrb r3, [r3, #0] + 8008262: f003 0302 and.w r3, r3, #2 + 8008266: 2b00 cmp r3, #0 + 8008268: d010 beq.n 800828c + 800826a: 687b ldr r3, [r7, #4] + 800826c: 7d1b ldrb r3, [r3, #20] + 800826e: 2b02 cmp r3, #2 + 8008270: d00c beq.n 800828c + 8008272: 687b ldr r3, [r7, #4] + 8008274: 7d1b ldrb r3, [r3, #20] + 8008276: 2b03 cmp r3, #3 + 8008278: d008 beq.n 800828c /* Cope with new connection attempt after remote end crashed */ tcp_ack_now(pcb); - 800827e: 687b ldr r3, [r7, #4] - 8008280: 8b5b ldrh r3, [r3, #26] - 8008282: f043 0302 orr.w r3, r3, #2 - 8008286: b29a uxth r2, r3 - 8008288: 687b ldr r3, [r7, #4] - 800828a: 835a strh r2, [r3, #26] + 800827a: 687b ldr r3, [r7, #4] + 800827c: 8b5b ldrh r3, [r3, #26] + 800827e: f043 0302 orr.w r3, r3, #2 + 8008282: b29a uxth r2, r3 + 8008284: 687b ldr r3, [r7, #4] + 8008286: 835a strh r2, [r3, #26] return ERR_OK; - 800828c: 2300 movs r3, #0 - 800828e: e361 b.n 8008954 + 8008288: 2300 movs r3, #0 + 800828a: e361 b.n 8008950 } if ((pcb->flags & TF_RXCLOSED) == 0) { - 8008290: 687b ldr r3, [r7, #4] - 8008292: 8b5b ldrh r3, [r3, #26] - 8008294: f003 0310 and.w r3, r3, #16 - 8008298: 2b00 cmp r3, #0 - 800829a: d103 bne.n 80082a4 + 800828c: 687b ldr r3, [r7, #4] + 800828e: 8b5b ldrh r3, [r3, #26] + 8008290: f003 0310 and.w r3, r3, #16 + 8008294: 2b00 cmp r3, #0 + 8008296: d103 bne.n 80082a0 /* Update the PCB (in)activity timer unless rx is closed (see tcp_shutdown) */ pcb->tmr = tcp_ticks; - 800829c: 4b68 ldr r3, [pc, #416] ; (8008440 ) - 800829e: 681a ldr r2, [r3, #0] - 80082a0: 687b ldr r3, [r7, #4] - 80082a2: 621a str r2, [r3, #32] + 8008298: 4b68 ldr r3, [pc, #416] ; (800843c ) + 800829a: 681a ldr r2, [r3, #0] + 800829c: 687b ldr r3, [r7, #4] + 800829e: 621a str r2, [r3, #32] } pcb->keep_cnt_sent = 0; - 80082a4: 687b ldr r3, [r7, #4] - 80082a6: 2200 movs r2, #0 - 80082a8: f883 209b strb.w r2, [r3, #155] ; 0x9b + 80082a0: 687b ldr r3, [r7, #4] + 80082a2: 2200 movs r2, #0 + 80082a4: f883 209b strb.w r2, [r3, #155] ; 0x9b pcb->persist_probe = 0; - 80082ac: 687b ldr r3, [r7, #4] - 80082ae: 2200 movs r2, #0 - 80082b0: f883 209a strb.w r2, [r3, #154] ; 0x9a + 80082a8: 687b ldr r3, [r7, #4] + 80082aa: 2200 movs r2, #0 + 80082ac: f883 209a strb.w r2, [r3, #154] ; 0x9a tcp_parseopt(pcb); - 80082b4: 6878 ldr r0, [r7, #4] - 80082b6: f001 fc2f bl 8009b18 + 80082b0: 6878 ldr r0, [r7, #4] + 80082b2: f001 fc2f bl 8009b14 /* Do different things depending on the TCP state. */ switch (pcb->state) { - 80082ba: 687b ldr r3, [r7, #4] - 80082bc: 7d1b ldrb r3, [r3, #20] - 80082be: 3b02 subs r3, #2 - 80082c0: 2b07 cmp r3, #7 - 80082c2: f200 8337 bhi.w 8008934 - 80082c6: a201 add r2, pc, #4 ; (adr r2, 80082cc ) - 80082c8: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80082cc: 080082ed .word 0x080082ed - 80082d0: 0800851d .word 0x0800851d - 80082d4: 08008695 .word 0x08008695 - 80082d8: 080086bf .word 0x080086bf - 80082dc: 080087e3 .word 0x080087e3 - 80082e0: 08008695 .word 0x08008695 - 80082e4: 0800886f .word 0x0800886f - 80082e8: 080088ff .word 0x080088ff + 80082b6: 687b ldr r3, [r7, #4] + 80082b8: 7d1b ldrb r3, [r3, #20] + 80082ba: 3b02 subs r3, #2 + 80082bc: 2b07 cmp r3, #7 + 80082be: f200 8337 bhi.w 8008930 + 80082c2: a201 add r2, pc, #4 ; (adr r2, 80082c8 ) + 80082c4: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80082c8: 080082e9 .word 0x080082e9 + 80082cc: 08008519 .word 0x08008519 + 80082d0: 08008691 .word 0x08008691 + 80082d4: 080086bb .word 0x080086bb + 80082d8: 080087df .word 0x080087df + 80082dc: 08008691 .word 0x08008691 + 80082e0: 0800886b .word 0x0800886b + 80082e4: 080088fb .word 0x080088fb case SYN_SENT: LWIP_DEBUGF(TCP_INPUT_DEBUG, ("SYN-SENT: ackno %"U32_F" pcb->snd_nxt %"U32_F" unacked %"U32_F"\n", ackno, pcb->snd_nxt, lwip_ntohl(pcb->unacked->tcphdr->seqno))); /* received SYN ACK with expected sequence number? */ if ((flags & TCP_ACK) && (flags & TCP_SYN) - 80082ec: 4b4f ldr r3, [pc, #316] ; (800842c ) - 80082ee: 781b ldrb r3, [r3, #0] - 80082f0: f003 0310 and.w r3, r3, #16 - 80082f4: 2b00 cmp r3, #0 - 80082f6: f000 80e4 beq.w 80084c2 - 80082fa: 4b4c ldr r3, [pc, #304] ; (800842c ) - 80082fc: 781b ldrb r3, [r3, #0] - 80082fe: f003 0302 and.w r3, r3, #2 - 8008302: 2b00 cmp r3, #0 - 8008304: f000 80dd beq.w 80084c2 + 80082e8: 4b4f ldr r3, [pc, #316] ; (8008428 ) + 80082ea: 781b ldrb r3, [r3, #0] + 80082ec: f003 0310 and.w r3, r3, #16 + 80082f0: 2b00 cmp r3, #0 + 80082f2: f000 80e4 beq.w 80084be + 80082f6: 4b4c ldr r3, [pc, #304] ; (8008428 ) + 80082f8: 781b ldrb r3, [r3, #0] + 80082fa: f003 0302 and.w r3, r3, #2 + 80082fe: 2b00 cmp r3, #0 + 8008300: f000 80dd beq.w 80084be && (ackno == pcb->lastack + 1)) { - 8008308: 687b ldr r3, [r7, #4] - 800830a: 6c5b ldr r3, [r3, #68] ; 0x44 - 800830c: 1c5a adds r2, r3, #1 - 800830e: 4b48 ldr r3, [pc, #288] ; (8008430 ) - 8008310: 681b ldr r3, [r3, #0] - 8008312: 429a cmp r2, r3 - 8008314: f040 80d5 bne.w 80084c2 + 8008304: 687b ldr r3, [r7, #4] + 8008306: 6c5b ldr r3, [r3, #68] ; 0x44 + 8008308: 1c5a adds r2, r3, #1 + 800830a: 4b48 ldr r3, [pc, #288] ; (800842c ) + 800830c: 681b ldr r3, [r3, #0] + 800830e: 429a cmp r2, r3 + 8008310: f040 80d5 bne.w 80084be pcb->rcv_nxt = seqno + 1; - 8008318: 4b46 ldr r3, [pc, #280] ; (8008434 ) - 800831a: 681b ldr r3, [r3, #0] - 800831c: 1c5a adds r2, r3, #1 - 800831e: 687b ldr r3, [r7, #4] - 8008320: 625a str r2, [r3, #36] ; 0x24 + 8008314: 4b46 ldr r3, [pc, #280] ; (8008430 ) + 8008316: 681b ldr r3, [r3, #0] + 8008318: 1c5a adds r2, r3, #1 + 800831a: 687b ldr r3, [r7, #4] + 800831c: 625a str r2, [r3, #36] ; 0x24 pcb->rcv_ann_right_edge = pcb->rcv_nxt; + 800831e: 687b ldr r3, [r7, #4] + 8008320: 6a5a ldr r2, [r3, #36] ; 0x24 8008322: 687b ldr r3, [r7, #4] - 8008324: 6a5a ldr r2, [r3, #36] ; 0x24 - 8008326: 687b ldr r3, [r7, #4] - 8008328: 62da str r2, [r3, #44] ; 0x2c + 8008324: 62da str r2, [r3, #44] ; 0x2c pcb->lastack = ackno; - 800832a: 4b41 ldr r3, [pc, #260] ; (8008430 ) - 800832c: 681a ldr r2, [r3, #0] - 800832e: 687b ldr r3, [r7, #4] - 8008330: 645a str r2, [r3, #68] ; 0x44 + 8008326: 4b41 ldr r3, [pc, #260] ; (800842c ) + 8008328: 681a ldr r2, [r3, #0] + 800832a: 687b ldr r3, [r7, #4] + 800832c: 645a str r2, [r3, #68] ; 0x44 pcb->snd_wnd = tcphdr->wnd; - 8008332: 4b44 ldr r3, [pc, #272] ; (8008444 ) - 8008334: 681b ldr r3, [r3, #0] - 8008336: 89db ldrh r3, [r3, #14] - 8008338: b29a uxth r2, r3 - 800833a: 687b ldr r3, [r7, #4] - 800833c: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 + 800832e: 4b44 ldr r3, [pc, #272] ; (8008440 ) + 8008330: 681b ldr r3, [r3, #0] + 8008332: 89db ldrh r3, [r3, #14] + 8008334: b29a uxth r2, r3 + 8008336: 687b ldr r3, [r7, #4] + 8008338: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 pcb->snd_wnd_max = pcb->snd_wnd; - 8008340: 687b ldr r3, [r7, #4] - 8008342: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 8008346: 687b ldr r3, [r7, #4] - 8008348: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 + 800833c: 687b ldr r3, [r7, #4] + 800833e: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 8008342: 687b ldr r3, [r7, #4] + 8008344: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 pcb->snd_wl1 = seqno - 1; /* initialise to seqno - 1 to force window update */ - 800834c: 4b39 ldr r3, [pc, #228] ; (8008434 ) - 800834e: 681b ldr r3, [r3, #0] - 8008350: 1e5a subs r2, r3, #1 - 8008352: 687b ldr r3, [r7, #4] - 8008354: 655a str r2, [r3, #84] ; 0x54 + 8008348: 4b39 ldr r3, [pc, #228] ; (8008430 ) + 800834a: 681b ldr r3, [r3, #0] + 800834c: 1e5a subs r2, r3, #1 + 800834e: 687b ldr r3, [r7, #4] + 8008350: 655a str r2, [r3, #84] ; 0x54 pcb->state = ESTABLISHED; - 8008356: 687b ldr r3, [r7, #4] - 8008358: 2204 movs r2, #4 - 800835a: 751a strb r2, [r3, #20] + 8008352: 687b ldr r3, [r7, #4] + 8008354: 2204 movs r2, #4 + 8008356: 751a strb r2, [r3, #20] #if TCP_CALCULATE_EFF_SEND_MSS pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip); + 8008358: 687b ldr r3, [r7, #4] + 800835a: 8e5c ldrh r4, [r3, #50] ; 0x32 800835c: 687b ldr r3, [r7, #4] - 800835e: 8e5c ldrh r4, [r3, #50] ; 0x32 - 8008360: 687b ldr r3, [r7, #4] - 8008362: 3304 adds r3, #4 - 8008364: 4618 mov r0, r3 - 8008366: f006 fc89 bl 800ec7c - 800836a: 4601 mov r1, r0 - 800836c: 687b ldr r3, [r7, #4] - 800836e: 3304 adds r3, #4 - 8008370: 461a mov r2, r3 - 8008372: 4620 mov r0, r4 - 8008374: f7ff f88c bl 8007490 - 8008378: 4603 mov r3, r0 - 800837a: 461a mov r2, r3 - 800837c: 687b ldr r3, [r7, #4] - 800837e: 865a strh r2, [r3, #50] ; 0x32 + 800835e: 3304 adds r3, #4 + 8008360: 4618 mov r0, r3 + 8008362: f006 fc89 bl 800ec78 + 8008366: 4601 mov r1, r0 + 8008368: 687b ldr r3, [r7, #4] + 800836a: 3304 adds r3, #4 + 800836c: 461a mov r2, r3 + 800836e: 4620 mov r0, r4 + 8008370: f7ff f88c bl 800748c + 8008374: 4603 mov r3, r0 + 8008376: 461a mov r2, r3 + 8008378: 687b ldr r3, [r7, #4] + 800837a: 865a strh r2, [r3, #50] ; 0x32 #endif /* TCP_CALCULATE_EFF_SEND_MSS */ pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss); - 8008380: 687b ldr r3, [r7, #4] - 8008382: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8008384: 009a lsls r2, r3, #2 - 8008386: 687b ldr r3, [r7, #4] - 8008388: 8e5b ldrh r3, [r3, #50] ; 0x32 - 800838a: 005b lsls r3, r3, #1 - 800838c: f241 111c movw r1, #4380 ; 0x111c - 8008390: 428b cmp r3, r1 - 8008392: bf38 it cc - 8008394: 460b movcc r3, r1 - 8008396: 429a cmp r2, r3 - 8008398: d204 bcs.n 80083a4 - 800839a: 687b ldr r3, [r7, #4] - 800839c: 8e5b ldrh r3, [r3, #50] ; 0x32 - 800839e: 009b lsls r3, r3, #2 - 80083a0: b29b uxth r3, r3 - 80083a2: e00d b.n 80083c0 - 80083a4: 687b ldr r3, [r7, #4] - 80083a6: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80083a8: 005b lsls r3, r3, #1 - 80083aa: f241 121c movw r2, #4380 ; 0x111c - 80083ae: 4293 cmp r3, r2 - 80083b0: d904 bls.n 80083bc - 80083b2: 687b ldr r3, [r7, #4] - 80083b4: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80083b6: 005b lsls r3, r3, #1 - 80083b8: b29b uxth r3, r3 - 80083ba: e001 b.n 80083c0 - 80083bc: f241 131c movw r3, #4380 ; 0x111c - 80083c0: 687a ldr r2, [r7, #4] - 80083c2: f8a2 3048 strh.w r3, [r2, #72] ; 0x48 + 800837c: 687b ldr r3, [r7, #4] + 800837e: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8008380: 009a lsls r2, r3, #2 + 8008382: 687b ldr r3, [r7, #4] + 8008384: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8008386: 005b lsls r3, r3, #1 + 8008388: f241 111c movw r1, #4380 ; 0x111c + 800838c: 428b cmp r3, r1 + 800838e: bf38 it cc + 8008390: 460b movcc r3, r1 + 8008392: 429a cmp r2, r3 + 8008394: d204 bcs.n 80083a0 + 8008396: 687b ldr r3, [r7, #4] + 8008398: 8e5b ldrh r3, [r3, #50] ; 0x32 + 800839a: 009b lsls r3, r3, #2 + 800839c: b29b uxth r3, r3 + 800839e: e00d b.n 80083bc + 80083a0: 687b ldr r3, [r7, #4] + 80083a2: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80083a4: 005b lsls r3, r3, #1 + 80083a6: f241 121c movw r2, #4380 ; 0x111c + 80083aa: 4293 cmp r3, r2 + 80083ac: d904 bls.n 80083b8 + 80083ae: 687b ldr r3, [r7, #4] + 80083b0: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80083b2: 005b lsls r3, r3, #1 + 80083b4: b29b uxth r3, r3 + 80083b6: e001 b.n 80083bc + 80083b8: f241 131c movw r3, #4380 ; 0x111c + 80083bc: 687a ldr r2, [r7, #4] + 80083be: f8a2 3048 strh.w r3, [r2, #72] ; 0x48 LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SENT): cwnd %"TCPWNDSIZE_F " ssthresh %"TCPWNDSIZE_F"\n", pcb->cwnd, pcb->ssthresh)); LWIP_ASSERT("pcb->snd_queuelen > 0", (pcb->snd_queuelen > 0)); - 80083c6: 687b ldr r3, [r7, #4] - 80083c8: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 80083cc: 2b00 cmp r3, #0 - 80083ce: d106 bne.n 80083de - 80083d0: 4b13 ldr r3, [pc, #76] ; (8008420 ) - 80083d2: f44f 725b mov.w r2, #876 ; 0x36c - 80083d6: 491c ldr r1, [pc, #112] ; (8008448 ) - 80083d8: 4813 ldr r0, [pc, #76] ; (8008428 ) - 80083da: f007 fffb bl 80103d4 + 80083c2: 687b ldr r3, [r7, #4] + 80083c4: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 80083c8: 2b00 cmp r3, #0 + 80083ca: d106 bne.n 80083da + 80083cc: 4b13 ldr r3, [pc, #76] ; (800841c ) + 80083ce: f44f 725b mov.w r2, #876 ; 0x36c + 80083d2: 491c ldr r1, [pc, #112] ; (8008444 ) + 80083d4: 4813 ldr r0, [pc, #76] ; (8008424 ) + 80083d6: f007 fffb bl 80103d0 --pcb->snd_queuelen; - 80083de: 687b ldr r3, [r7, #4] - 80083e0: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 80083e4: 3b01 subs r3, #1 - 80083e6: b29a uxth r2, r3 - 80083e8: 687b ldr r3, [r7, #4] - 80083ea: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 80083da: 687b ldr r3, [r7, #4] + 80083dc: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 80083e0: 3b01 subs r3, #1 + 80083e2: b29a uxth r2, r3 + 80083e4: 687b ldr r3, [r7, #4] + 80083e6: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_process: SYN-SENT --queuelen %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen)); rseg = pcb->unacked; - 80083ee: 687b ldr r3, [r7, #4] - 80083f0: 6f1b ldr r3, [r3, #112] ; 0x70 - 80083f2: 61fb str r3, [r7, #28] + 80083ea: 687b ldr r3, [r7, #4] + 80083ec: 6f1b ldr r3, [r3, #112] ; 0x70 + 80083ee: 61fb str r3, [r7, #28] if (rseg == NULL) { - 80083f4: 69fb ldr r3, [r7, #28] - 80083f6: 2b00 cmp r3, #0 - 80083f8: d12a bne.n 8008450 + 80083f0: 69fb ldr r3, [r7, #28] + 80083f2: 2b00 cmp r3, #0 + 80083f4: d12a bne.n 800844c /* might happen if tcp_output fails in tcp_rexmit_rto() in which case the segment is on the unsent list */ rseg = pcb->unsent; - 80083fa: 687b ldr r3, [r7, #4] - 80083fc: 6edb ldr r3, [r3, #108] ; 0x6c - 80083fe: 61fb str r3, [r7, #28] + 80083f6: 687b ldr r3, [r7, #4] + 80083f8: 6edb ldr r3, [r3, #108] ; 0x6c + 80083fa: 61fb str r3, [r7, #28] LWIP_ASSERT("no segment to free", rseg != NULL); - 8008400: 69fb ldr r3, [r7, #28] - 8008402: 2b00 cmp r3, #0 - 8008404: d106 bne.n 8008414 - 8008406: 4b06 ldr r3, [pc, #24] ; (8008420 ) - 8008408: f44f 725d mov.w r2, #884 ; 0x374 - 800840c: 490f ldr r1, [pc, #60] ; (800844c ) - 800840e: 4806 ldr r0, [pc, #24] ; (8008428 ) - 8008410: f007 ffe0 bl 80103d4 + 80083fc: 69fb ldr r3, [r7, #28] + 80083fe: 2b00 cmp r3, #0 + 8008400: d106 bne.n 8008410 + 8008402: 4b06 ldr r3, [pc, #24] ; (800841c ) + 8008404: f44f 725d mov.w r2, #884 ; 0x374 + 8008408: 490f ldr r1, [pc, #60] ; (8008448 ) + 800840a: 4806 ldr r0, [pc, #24] ; (8008424 ) + 800840c: f007 ffe0 bl 80103d0 pcb->unsent = rseg->next; - 8008414: 69fb ldr r3, [r7, #28] - 8008416: 681a ldr r2, [r3, #0] - 8008418: 687b ldr r3, [r7, #4] - 800841a: 66da str r2, [r3, #108] ; 0x6c - 800841c: e01c b.n 8008458 - 800841e: bf00 nop - 8008420: 08016124 .word 0x08016124 - 8008424: 0801635c .word 0x0801635c - 8008428: 08016170 .word 0x08016170 - 800842c: 20008c44 .word 0x20008c44 - 8008430: 20008c3c .word 0x20008c3c - 8008434: 20008c38 .word 0x20008c38 - 8008438: 08016378 .word 0x08016378 - 800843c: 20008c45 .word 0x20008c45 - 8008440: 20008c00 .word 0x20008c00 - 8008444: 20008c28 .word 0x20008c28 - 8008448: 08016398 .word 0x08016398 - 800844c: 080163b0 .word 0x080163b0 + 8008410: 69fb ldr r3, [r7, #28] + 8008412: 681a ldr r2, [r3, #0] + 8008414: 687b ldr r3, [r7, #4] + 8008416: 66da str r2, [r3, #108] ; 0x6c + 8008418: e01c b.n 8008454 + 800841a: bf00 nop + 800841c: 08016124 .word 0x08016124 + 8008420: 0801635c .word 0x0801635c + 8008424: 08016170 .word 0x08016170 + 8008428: 20008c44 .word 0x20008c44 + 800842c: 20008c3c .word 0x20008c3c + 8008430: 20008c38 .word 0x20008c38 + 8008434: 08016378 .word 0x08016378 + 8008438: 20008c45 .word 0x20008c45 + 800843c: 20008c00 .word 0x20008c00 + 8008440: 20008c28 .word 0x20008c28 + 8008444: 08016398 .word 0x08016398 + 8008448: 080163b0 .word 0x080163b0 } else { pcb->unacked = rseg->next; - 8008450: 69fb ldr r3, [r7, #28] - 8008452: 681a ldr r2, [r3, #0] - 8008454: 687b ldr r3, [r7, #4] - 8008456: 671a str r2, [r3, #112] ; 0x70 + 800844c: 69fb ldr r3, [r7, #28] + 800844e: 681a ldr r2, [r3, #0] + 8008450: 687b ldr r3, [r7, #4] + 8008452: 671a str r2, [r3, #112] ; 0x70 } tcp_seg_free(rseg); - 8008458: 69f8 ldr r0, [r7, #28] - 800845a: f7fe fd22 bl 8006ea2 + 8008454: 69f8 ldr r0, [r7, #28] + 8008456: f7fe fd22 bl 8006e9e /* If there's nothing left to acknowledge, stop the retransmit timer, otherwise reset it to start again */ if (pcb->unacked == NULL) { - 800845e: 687b ldr r3, [r7, #4] - 8008460: 6f1b ldr r3, [r3, #112] ; 0x70 - 8008462: 2b00 cmp r3, #0 - 8008464: d104 bne.n 8008470 + 800845a: 687b ldr r3, [r7, #4] + 800845c: 6f1b ldr r3, [r3, #112] ; 0x70 + 800845e: 2b00 cmp r3, #0 + 8008460: d104 bne.n 800846c pcb->rtime = -1; - 8008466: 687b ldr r3, [r7, #4] - 8008468: f64f 72ff movw r2, #65535 ; 0xffff - 800846c: 861a strh r2, [r3, #48] ; 0x30 - 800846e: e006 b.n 800847e + 8008462: 687b ldr r3, [r7, #4] + 8008464: f64f 72ff movw r2, #65535 ; 0xffff + 8008468: 861a strh r2, [r3, #48] ; 0x30 + 800846a: e006 b.n 800847a } else { pcb->rtime = 0; - 8008470: 687b ldr r3, [r7, #4] - 8008472: 2200 movs r2, #0 - 8008474: 861a strh r2, [r3, #48] ; 0x30 + 800846c: 687b ldr r3, [r7, #4] + 800846e: 2200 movs r2, #0 + 8008470: 861a strh r2, [r3, #48] ; 0x30 pcb->nrtx = 0; - 8008476: 687b ldr r3, [r7, #4] - 8008478: 2200 movs r2, #0 - 800847a: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8008472: 687b ldr r3, [r7, #4] + 8008474: 2200 movs r2, #0 + 8008476: f883 2042 strb.w r2, [r3, #66] ; 0x42 } /* Call the user specified function to call when successfully * connected. */ TCP_EVENT_CONNECTED(pcb, ERR_OK, err); - 800847e: 687b ldr r3, [r7, #4] - 8008480: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8008484: 2b00 cmp r3, #0 - 8008486: d00a beq.n 800849e - 8008488: 687b ldr r3, [r7, #4] - 800848a: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 800848e: 687a ldr r2, [r7, #4] - 8008490: 6910 ldr r0, [r2, #16] - 8008492: 2200 movs r2, #0 - 8008494: 6879 ldr r1, [r7, #4] - 8008496: 4798 blx r3 - 8008498: 4603 mov r3, r0 - 800849a: 76bb strb r3, [r7, #26] - 800849c: e001 b.n 80084a2 - 800849e: 2300 movs r3, #0 - 80084a0: 76bb strb r3, [r7, #26] + 800847a: 687b ldr r3, [r7, #4] + 800847c: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8008480: 2b00 cmp r3, #0 + 8008482: d00a beq.n 800849a + 8008484: 687b ldr r3, [r7, #4] + 8008486: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 800848a: 687a ldr r2, [r7, #4] + 800848c: 6910 ldr r0, [r2, #16] + 800848e: 2200 movs r2, #0 + 8008490: 6879 ldr r1, [r7, #4] + 8008492: 4798 blx r3 + 8008494: 4603 mov r3, r0 + 8008496: 76bb strb r3, [r7, #26] + 8008498: e001 b.n 800849e + 800849a: 2300 movs r3, #0 + 800849c: 76bb strb r3, [r7, #26] if (err == ERR_ABRT) { - 80084a2: f997 301a ldrsb.w r3, [r7, #26] - 80084a6: f113 0f0d cmn.w r3, #13 - 80084aa: d102 bne.n 80084b2 + 800849e: f997 301a ldrsb.w r3, [r7, #26] + 80084a2: f113 0f0d cmn.w r3, #13 + 80084a6: d102 bne.n 80084ae return ERR_ABRT; - 80084ac: f06f 030c mvn.w r3, #12 - 80084b0: e250 b.n 8008954 + 80084a8: f06f 030c mvn.w r3, #12 + 80084ac: e250 b.n 8008950 } tcp_ack_now(pcb); - 80084b2: 687b ldr r3, [r7, #4] - 80084b4: 8b5b ldrh r3, [r3, #26] - 80084b6: f043 0302 orr.w r3, r3, #2 - 80084ba: b29a uxth r2, r3 - 80084bc: 687b ldr r3, [r7, #4] - 80084be: 835a strh r2, [r3, #26] + 80084ae: 687b ldr r3, [r7, #4] + 80084b0: 8b5b ldrh r3, [r3, #26] + 80084b2: f043 0302 orr.w r3, r3, #2 + 80084b6: b29a uxth r2, r3 + 80084b8: 687b ldr r3, [r7, #4] + 80084ba: 835a strh r2, [r3, #26] if (pcb->nrtx < TCP_SYNMAXRTX) { pcb->rtime = 0; tcp_rexmit_rto(pcb); } } break; - 80084c0: e23a b.n 8008938 + 80084bc: e23a b.n 8008934 else if (flags & TCP_ACK) { - 80084c2: 4b98 ldr r3, [pc, #608] ; (8008724 ) - 80084c4: 781b ldrb r3, [r3, #0] - 80084c6: f003 0310 and.w r3, r3, #16 - 80084ca: 2b00 cmp r3, #0 - 80084cc: f000 8234 beq.w 8008938 + 80084be: 4b98 ldr r3, [pc, #608] ; (8008720 ) + 80084c0: 781b ldrb r3, [r3, #0] + 80084c2: f003 0310 and.w r3, r3, #16 + 80084c6: 2b00 cmp r3, #0 + 80084c8: f000 8234 beq.w 8008934 tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 80084d0: 4b95 ldr r3, [pc, #596] ; (8008728 ) - 80084d2: 6819 ldr r1, [r3, #0] - 80084d4: 4b95 ldr r3, [pc, #596] ; (800872c ) - 80084d6: 881b ldrh r3, [r3, #0] - 80084d8: 461a mov r2, r3 - 80084da: 4b95 ldr r3, [pc, #596] ; (8008730 ) - 80084dc: 681b ldr r3, [r3, #0] - 80084de: 18d0 adds r0, r2, r3 + 80084cc: 4b95 ldr r3, [pc, #596] ; (8008724 ) + 80084ce: 6819 ldr r1, [r3, #0] + 80084d0: 4b95 ldr r3, [pc, #596] ; (8008728 ) + 80084d2: 881b ldrh r3, [r3, #0] + 80084d4: 461a mov r2, r3 + 80084d6: 4b95 ldr r3, [pc, #596] ; (800872c ) + 80084d8: 681b ldr r3, [r3, #0] + 80084da: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 80084e0: 4b94 ldr r3, [pc, #592] ; (8008734 ) - 80084e2: 681b ldr r3, [r3, #0] + 80084dc: 4b94 ldr r3, [pc, #592] ; (8008730 ) + 80084de: 681b ldr r3, [r3, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 80084e4: 885b ldrh r3, [r3, #2] - 80084e6: b29b uxth r3, r3 + 80084e0: 885b ldrh r3, [r3, #2] + 80084e2: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 80084e8: 4a92 ldr r2, [pc, #584] ; (8008734 ) - 80084ea: 6812 ldr r2, [r2, #0] + 80084e4: 4a92 ldr r2, [pc, #584] ; (8008730 ) + 80084e6: 6812 ldr r2, [r2, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 80084ec: 8812 ldrh r2, [r2, #0] - 80084ee: b292 uxth r2, r2 - 80084f0: 9202 str r2, [sp, #8] - 80084f2: 9301 str r3, [sp, #4] - 80084f4: 4b90 ldr r3, [pc, #576] ; (8008738 ) - 80084f6: 9300 str r3, [sp, #0] - 80084f8: 4b90 ldr r3, [pc, #576] ; (800873c ) - 80084fa: 4602 mov r2, r0 - 80084fc: 6878 ldr r0, [r7, #4] - 80084fe: f002 fc85 bl 800ae0c + 80084e8: 8812 ldrh r2, [r2, #0] + 80084ea: b292 uxth r2, r2 + 80084ec: 9202 str r2, [sp, #8] + 80084ee: 9301 str r3, [sp, #4] + 80084f0: 4b90 ldr r3, [pc, #576] ; (8008734 ) + 80084f2: 9300 str r3, [sp, #0] + 80084f4: 4b90 ldr r3, [pc, #576] ; (8008738 ) + 80084f6: 4602 mov r2, r0 + 80084f8: 6878 ldr r0, [r7, #4] + 80084fa: f002 fc85 bl 800ae08 if (pcb->nrtx < TCP_SYNMAXRTX) { - 8008502: 687b ldr r3, [r7, #4] - 8008504: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8008508: 2b05 cmp r3, #5 - 800850a: f200 8215 bhi.w 8008938 + 80084fe: 687b ldr r3, [r7, #4] + 8008500: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 8008504: 2b05 cmp r3, #5 + 8008506: f200 8215 bhi.w 8008934 pcb->rtime = 0; - 800850e: 687b ldr r3, [r7, #4] - 8008510: 2200 movs r2, #0 - 8008512: 861a strh r2, [r3, #48] ; 0x30 + 800850a: 687b ldr r3, [r7, #4] + 800850c: 2200 movs r2, #0 + 800850e: 861a strh r2, [r3, #48] ; 0x30 tcp_rexmit_rto(pcb); - 8008514: 6878 ldr r0, [r7, #4] - 8008516: f002 fa4f bl 800a9b8 + 8008510: 6878 ldr r0, [r7, #4] + 8008512: f002 fa4f bl 800a9b4 break; - 800851a: e20d b.n 8008938 + 8008516: e20d b.n 8008934 case SYN_RCVD: if (flags & TCP_ACK) { - 800851c: 4b81 ldr r3, [pc, #516] ; (8008724 ) - 800851e: 781b ldrb r3, [r3, #0] - 8008520: f003 0310 and.w r3, r3, #16 - 8008524: 2b00 cmp r3, #0 - 8008526: f000 80a1 beq.w 800866c + 8008518: 4b81 ldr r3, [pc, #516] ; (8008720 ) + 800851a: 781b ldrb r3, [r3, #0] + 800851c: f003 0310 and.w r3, r3, #16 + 8008520: 2b00 cmp r3, #0 + 8008522: f000 80a1 beq.w 8008668 /* expected ACK number? */ if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 800852a: 4b7f ldr r3, [pc, #508] ; (8008728 ) - 800852c: 681a ldr r2, [r3, #0] - 800852e: 687b ldr r3, [r7, #4] - 8008530: 6c5b ldr r3, [r3, #68] ; 0x44 - 8008532: 1ad3 subs r3, r2, r3 - 8008534: 3b01 subs r3, #1 - 8008536: 2b00 cmp r3, #0 - 8008538: db7e blt.n 8008638 - 800853a: 4b7b ldr r3, [pc, #492] ; (8008728 ) - 800853c: 681a ldr r2, [r3, #0] - 800853e: 687b ldr r3, [r7, #4] - 8008540: 6d1b ldr r3, [r3, #80] ; 0x50 - 8008542: 1ad3 subs r3, r2, r3 - 8008544: 2b00 cmp r3, #0 - 8008546: dc77 bgt.n 8008638 + 8008526: 4b7f ldr r3, [pc, #508] ; (8008724 ) + 8008528: 681a ldr r2, [r3, #0] + 800852a: 687b ldr r3, [r7, #4] + 800852c: 6c5b ldr r3, [r3, #68] ; 0x44 + 800852e: 1ad3 subs r3, r2, r3 + 8008530: 3b01 subs r3, #1 + 8008532: 2b00 cmp r3, #0 + 8008534: db7e blt.n 8008634 + 8008536: 4b7b ldr r3, [pc, #492] ; (8008724 ) + 8008538: 681a ldr r2, [r3, #0] + 800853a: 687b ldr r3, [r7, #4] + 800853c: 6d1b ldr r3, [r3, #80] ; 0x50 + 800853e: 1ad3 subs r3, r2, r3 + 8008540: 2b00 cmp r3, #0 + 8008542: dc77 bgt.n 8008634 pcb->state = ESTABLISHED; - 8008548: 687b ldr r3, [r7, #4] - 800854a: 2204 movs r2, #4 - 800854c: 751a strb r2, [r3, #20] + 8008544: 687b ldr r3, [r7, #4] + 8008546: 2204 movs r2, #4 + 8008548: 751a strb r2, [r3, #20] LWIP_DEBUGF(TCP_DEBUG, ("TCP connection established %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG if (pcb->listener == NULL) { - 800854e: 687b ldr r3, [r7, #4] - 8008550: 6fdb ldr r3, [r3, #124] ; 0x7c - 8008552: 2b00 cmp r3, #0 - 8008554: d102 bne.n 800855c + 800854a: 687b ldr r3, [r7, #4] + 800854c: 6fdb ldr r3, [r3, #124] ; 0x7c + 800854e: 2b00 cmp r3, #0 + 8008550: d102 bne.n 8008558 /* listen pcb might be closed by now */ err = ERR_VAL; - 8008556: 23fa movs r3, #250 ; 0xfa - 8008558: 76bb strb r3, [r7, #26] - 800855a: e01d b.n 8008598 + 8008552: 23fa movs r3, #250 ; 0xfa + 8008554: 76bb strb r3, [r7, #26] + 8008556: e01d b.n 8008594 } else #endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */ { #if LWIP_CALLBACK_API LWIP_ASSERT("pcb->listener->accept != NULL", pcb->listener->accept != NULL); - 800855c: 687b ldr r3, [r7, #4] - 800855e: 6fdb ldr r3, [r3, #124] ; 0x7c - 8008560: 699b ldr r3, [r3, #24] - 8008562: 2b00 cmp r3, #0 - 8008564: d106 bne.n 8008574 - 8008566: 4b76 ldr r3, [pc, #472] ; (8008740 ) - 8008568: f44f 726a mov.w r2, #936 ; 0x3a8 - 800856c: 4975 ldr r1, [pc, #468] ; (8008744 ) - 800856e: 4876 ldr r0, [pc, #472] ; (8008748 ) - 8008570: f007 ff30 bl 80103d4 + 8008558: 687b ldr r3, [r7, #4] + 800855a: 6fdb ldr r3, [r3, #124] ; 0x7c + 800855c: 699b ldr r3, [r3, #24] + 800855e: 2b00 cmp r3, #0 + 8008560: d106 bne.n 8008570 + 8008562: 4b76 ldr r3, [pc, #472] ; (800873c ) + 8008564: f44f 726a mov.w r2, #936 ; 0x3a8 + 8008568: 4975 ldr r1, [pc, #468] ; (8008740 ) + 800856a: 4876 ldr r0, [pc, #472] ; (8008744 ) + 800856c: f007 ff30 bl 80103d0 #endif tcp_backlog_accepted(pcb); /* Call the accept function. */ TCP_EVENT_ACCEPT(pcb->listener, pcb, pcb->callback_arg, ERR_OK, err); - 8008574: 687b ldr r3, [r7, #4] - 8008576: 6fdb ldr r3, [r3, #124] ; 0x7c - 8008578: 699b ldr r3, [r3, #24] - 800857a: 2b00 cmp r3, #0 - 800857c: d00a beq.n 8008594 - 800857e: 687b ldr r3, [r7, #4] - 8008580: 6fdb ldr r3, [r3, #124] ; 0x7c - 8008582: 699b ldr r3, [r3, #24] - 8008584: 687a ldr r2, [r7, #4] - 8008586: 6910 ldr r0, [r2, #16] - 8008588: 2200 movs r2, #0 - 800858a: 6879 ldr r1, [r7, #4] - 800858c: 4798 blx r3 - 800858e: 4603 mov r3, r0 - 8008590: 76bb strb r3, [r7, #26] - 8008592: e001 b.n 8008598 - 8008594: 23f0 movs r3, #240 ; 0xf0 - 8008596: 76bb strb r3, [r7, #26] + 8008570: 687b ldr r3, [r7, #4] + 8008572: 6fdb ldr r3, [r3, #124] ; 0x7c + 8008574: 699b ldr r3, [r3, #24] + 8008576: 2b00 cmp r3, #0 + 8008578: d00a beq.n 8008590 + 800857a: 687b ldr r3, [r7, #4] + 800857c: 6fdb ldr r3, [r3, #124] ; 0x7c + 800857e: 699b ldr r3, [r3, #24] + 8008580: 687a ldr r2, [r7, #4] + 8008582: 6910 ldr r0, [r2, #16] + 8008584: 2200 movs r2, #0 + 8008586: 6879 ldr r1, [r7, #4] + 8008588: 4798 blx r3 + 800858a: 4603 mov r3, r0 + 800858c: 76bb strb r3, [r7, #26] + 800858e: e001 b.n 8008594 + 8008590: 23f0 movs r3, #240 ; 0xf0 + 8008592: 76bb strb r3, [r7, #26] } if (err != ERR_OK) { - 8008598: f997 301a ldrsb.w r3, [r7, #26] - 800859c: 2b00 cmp r3, #0 - 800859e: d00a beq.n 80085b6 + 8008594: f997 301a ldrsb.w r3, [r7, #26] + 8008598: 2b00 cmp r3, #0 + 800859a: d00a beq.n 80085b2 /* If the accept function returns with an error, we abort * the connection. */ /* Already aborted? */ if (err != ERR_ABRT) { - 80085a0: f997 301a ldrsb.w r3, [r7, #26] - 80085a4: f113 0f0d cmn.w r3, #13 - 80085a8: d002 beq.n 80085b0 + 800859c: f997 301a ldrsb.w r3, [r7, #26] + 80085a0: f113 0f0d cmn.w r3, #13 + 80085a4: d002 beq.n 80085ac tcp_abort(pcb); - 80085aa: 6878 ldr r0, [r7, #4] - 80085ac: f7fd ff8e bl 80064cc + 80085a6: 6878 ldr r0, [r7, #4] + 80085a8: f7fd ff8e bl 80064c8 } return ERR_ABRT; - 80085b0: f06f 030c mvn.w r3, #12 - 80085b4: e1ce b.n 8008954 + 80085ac: f06f 030c mvn.w r3, #12 + 80085b0: e1ce b.n 8008950 } /* If there was any data contained within this ACK, * we'd better pass it on to the application as well. */ tcp_receive(pcb); - 80085b6: 6878 ldr r0, [r7, #4] - 80085b8: f000 fae0 bl 8008b7c + 80085b2: 6878 ldr r0, [r7, #4] + 80085b4: f000 fae0 bl 8008b78 /* Prevent ACK for SYN to generate a sent event */ if (recv_acked != 0) { - 80085bc: 4b63 ldr r3, [pc, #396] ; (800874c ) - 80085be: 881b ldrh r3, [r3, #0] - 80085c0: 2b00 cmp r3, #0 - 80085c2: d005 beq.n 80085d0 + 80085b8: 4b63 ldr r3, [pc, #396] ; (8008748 ) + 80085ba: 881b ldrh r3, [r3, #0] + 80085bc: 2b00 cmp r3, #0 + 80085be: d005 beq.n 80085cc recv_acked--; - 80085c4: 4b61 ldr r3, [pc, #388] ; (800874c ) - 80085c6: 881b ldrh r3, [r3, #0] - 80085c8: 3b01 subs r3, #1 - 80085ca: b29a uxth r2, r3 - 80085cc: 4b5f ldr r3, [pc, #380] ; (800874c ) - 80085ce: 801a strh r2, [r3, #0] + 80085c0: 4b61 ldr r3, [pc, #388] ; (8008748 ) + 80085c2: 881b ldrh r3, [r3, #0] + 80085c4: 3b01 subs r3, #1 + 80085c6: b29a uxth r2, r3 + 80085c8: 4b5f ldr r3, [pc, #380] ; (8008748 ) + 80085ca: 801a strh r2, [r3, #0] } pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss); - 80085d0: 687b ldr r3, [r7, #4] - 80085d2: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80085d4: 009a lsls r2, r3, #2 - 80085d6: 687b ldr r3, [r7, #4] - 80085d8: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80085da: 005b lsls r3, r3, #1 - 80085dc: f241 111c movw r1, #4380 ; 0x111c - 80085e0: 428b cmp r3, r1 - 80085e2: bf38 it cc - 80085e4: 460b movcc r3, r1 - 80085e6: 429a cmp r2, r3 - 80085e8: d204 bcs.n 80085f4 - 80085ea: 687b ldr r3, [r7, #4] - 80085ec: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80085ee: 009b lsls r3, r3, #2 - 80085f0: b29b uxth r3, r3 - 80085f2: e00d b.n 8008610 - 80085f4: 687b ldr r3, [r7, #4] - 80085f6: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80085f8: 005b lsls r3, r3, #1 - 80085fa: f241 121c movw r2, #4380 ; 0x111c - 80085fe: 4293 cmp r3, r2 - 8008600: d904 bls.n 800860c - 8008602: 687b ldr r3, [r7, #4] - 8008604: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8008606: 005b lsls r3, r3, #1 - 8008608: b29b uxth r3, r3 - 800860a: e001 b.n 8008610 - 800860c: f241 131c movw r3, #4380 ; 0x111c - 8008610: 687a ldr r2, [r7, #4] - 8008612: f8a2 3048 strh.w r3, [r2, #72] ; 0x48 + 80085cc: 687b ldr r3, [r7, #4] + 80085ce: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80085d0: 009a lsls r2, r3, #2 + 80085d2: 687b ldr r3, [r7, #4] + 80085d4: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80085d6: 005b lsls r3, r3, #1 + 80085d8: f241 111c movw r1, #4380 ; 0x111c + 80085dc: 428b cmp r3, r1 + 80085de: bf38 it cc + 80085e0: 460b movcc r3, r1 + 80085e2: 429a cmp r2, r3 + 80085e4: d204 bcs.n 80085f0 + 80085e6: 687b ldr r3, [r7, #4] + 80085e8: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80085ea: 009b lsls r3, r3, #2 + 80085ec: b29b uxth r3, r3 + 80085ee: e00d b.n 800860c + 80085f0: 687b ldr r3, [r7, #4] + 80085f2: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80085f4: 005b lsls r3, r3, #1 + 80085f6: f241 121c movw r2, #4380 ; 0x111c + 80085fa: 4293 cmp r3, r2 + 80085fc: d904 bls.n 8008608 + 80085fe: 687b ldr r3, [r7, #4] + 8008600: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8008602: 005b lsls r3, r3, #1 + 8008604: b29b uxth r3, r3 + 8008606: e001 b.n 800860c + 8008608: f241 131c movw r3, #4380 ; 0x111c + 800860c: 687a ldr r2, [r7, #4] + 800860e: f8a2 3048 strh.w r3, [r2, #72] ; 0x48 LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SYN_RCVD): cwnd %"TCPWNDSIZE_F " ssthresh %"TCPWNDSIZE_F"\n", pcb->cwnd, pcb->ssthresh)); if (recv_flags & TF_GOT_FIN) { - 8008616: 4b4e ldr r3, [pc, #312] ; (8008750 ) - 8008618: 781b ldrb r3, [r3, #0] - 800861a: f003 0320 and.w r3, r3, #32 - 800861e: 2b00 cmp r3, #0 - 8008620: d037 beq.n 8008692 + 8008612: 4b4e ldr r3, [pc, #312] ; (800874c ) + 8008614: 781b ldrb r3, [r3, #0] + 8008616: f003 0320 and.w r3, r3, #32 + 800861a: 2b00 cmp r3, #0 + 800861c: d037 beq.n 800868e tcp_ack_now(pcb); - 8008622: 687b ldr r3, [r7, #4] - 8008624: 8b5b ldrh r3, [r3, #26] - 8008626: f043 0302 orr.w r3, r3, #2 - 800862a: b29a uxth r2, r3 - 800862c: 687b ldr r3, [r7, #4] - 800862e: 835a strh r2, [r3, #26] + 800861e: 687b ldr r3, [r7, #4] + 8008620: 8b5b ldrh r3, [r3, #26] + 8008622: f043 0302 orr.w r3, r3, #2 + 8008626: b29a uxth r2, r3 + 8008628: 687b ldr r3, [r7, #4] + 800862a: 835a strh r2, [r3, #26] pcb->state = CLOSE_WAIT; - 8008630: 687b ldr r3, [r7, #4] - 8008632: 2207 movs r2, #7 - 8008634: 751a strb r2, [r3, #20] + 800862c: 687b ldr r3, [r7, #4] + 800862e: 2207 movs r2, #7 + 8008630: 751a strb r2, [r3, #20] if (recv_flags & TF_GOT_FIN) { - 8008636: e02c b.n 8008692 + 8008632: e02c b.n 800868e } } else { /* incorrect ACK number, send RST */ tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8008638: 4b3b ldr r3, [pc, #236] ; (8008728 ) - 800863a: 6819 ldr r1, [r3, #0] - 800863c: 4b3b ldr r3, [pc, #236] ; (800872c ) - 800863e: 881b ldrh r3, [r3, #0] - 8008640: 461a mov r2, r3 - 8008642: 4b3b ldr r3, [pc, #236] ; (8008730 ) - 8008644: 681b ldr r3, [r3, #0] - 8008646: 18d0 adds r0, r2, r3 + 8008634: 4b3b ldr r3, [pc, #236] ; (8008724 ) + 8008636: 6819 ldr r1, [r3, #0] + 8008638: 4b3b ldr r3, [pc, #236] ; (8008728 ) + 800863a: 881b ldrh r3, [r3, #0] + 800863c: 461a mov r2, r3 + 800863e: 4b3b ldr r3, [pc, #236] ; (800872c ) + 8008640: 681b ldr r3, [r3, #0] + 8008642: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8008648: 4b3a ldr r3, [pc, #232] ; (8008734 ) - 800864a: 681b ldr r3, [r3, #0] + 8008644: 4b3a ldr r3, [pc, #232] ; (8008730 ) + 8008646: 681b ldr r3, [r3, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 800864c: 885b ldrh r3, [r3, #2] - 800864e: b29b uxth r3, r3 + 8008648: 885b ldrh r3, [r3, #2] + 800864a: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8008650: 4a38 ldr r2, [pc, #224] ; (8008734 ) - 8008652: 6812 ldr r2, [r2, #0] + 800864c: 4a38 ldr r2, [pc, #224] ; (8008730 ) + 800864e: 6812 ldr r2, [r2, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8008654: 8812 ldrh r2, [r2, #0] - 8008656: b292 uxth r2, r2 - 8008658: 9202 str r2, [sp, #8] - 800865a: 9301 str r3, [sp, #4] - 800865c: 4b36 ldr r3, [pc, #216] ; (8008738 ) - 800865e: 9300 str r3, [sp, #0] - 8008660: 4b36 ldr r3, [pc, #216] ; (800873c ) - 8008662: 4602 mov r2, r0 - 8008664: 6878 ldr r0, [r7, #4] - 8008666: f002 fbd1 bl 800ae0c + 8008650: 8812 ldrh r2, [r2, #0] + 8008652: b292 uxth r2, r2 + 8008654: 9202 str r2, [sp, #8] + 8008656: 9301 str r3, [sp, #4] + 8008658: 4b36 ldr r3, [pc, #216] ; (8008734 ) + 800865a: 9300 str r3, [sp, #0] + 800865c: 4b36 ldr r3, [pc, #216] ; (8008738 ) + 800865e: 4602 mov r2, r0 + 8008660: 6878 ldr r0, [r7, #4] + 8008662: f002 fbd1 bl 800ae08 } } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) { /* Looks like another copy of the SYN - retransmit our SYN-ACK */ tcp_rexmit(pcb); } break; - 800866a: e167 b.n 800893c + 8008666: e167 b.n 8008938 } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) { - 800866c: 4b2d ldr r3, [pc, #180] ; (8008724 ) - 800866e: 781b ldrb r3, [r3, #0] - 8008670: f003 0302 and.w r3, r3, #2 - 8008674: 2b00 cmp r3, #0 - 8008676: f000 8161 beq.w 800893c - 800867a: 687b ldr r3, [r7, #4] - 800867c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800867e: 1e5a subs r2, r3, #1 - 8008680: 4b2b ldr r3, [pc, #172] ; (8008730 ) - 8008682: 681b ldr r3, [r3, #0] - 8008684: 429a cmp r2, r3 - 8008686: f040 8159 bne.w 800893c + 8008668: 4b2d ldr r3, [pc, #180] ; (8008720 ) + 800866a: 781b ldrb r3, [r3, #0] + 800866c: f003 0302 and.w r3, r3, #2 + 8008670: 2b00 cmp r3, #0 + 8008672: f000 8161 beq.w 8008938 + 8008676: 687b ldr r3, [r7, #4] + 8008678: 6a5b ldr r3, [r3, #36] ; 0x24 + 800867a: 1e5a subs r2, r3, #1 + 800867c: 4b2b ldr r3, [pc, #172] ; (800872c ) + 800867e: 681b ldr r3, [r3, #0] + 8008680: 429a cmp r2, r3 + 8008682: f040 8159 bne.w 8008938 tcp_rexmit(pcb); - 800868a: 6878 ldr r0, [r7, #4] - 800868c: f002 f9b6 bl 800a9fc + 8008686: 6878 ldr r0, [r7, #4] + 8008688: f002 f9b6 bl 800a9f8 break; - 8008690: e154 b.n 800893c - 8008692: e153 b.n 800893c + 800868c: e154 b.n 8008938 + 800868e: e153 b.n 8008938 case CLOSE_WAIT: /* FALLTHROUGH */ case ESTABLISHED: tcp_receive(pcb); - 8008694: 6878 ldr r0, [r7, #4] - 8008696: f000 fa71 bl 8008b7c + 8008690: 6878 ldr r0, [r7, #4] + 8008692: f000 fa71 bl 8008b78 if (recv_flags & TF_GOT_FIN) { /* passive close */ - 800869a: 4b2d ldr r3, [pc, #180] ; (8008750 ) - 800869c: 781b ldrb r3, [r3, #0] - 800869e: f003 0320 and.w r3, r3, #32 - 80086a2: 2b00 cmp r3, #0 - 80086a4: f000 814c beq.w 8008940 + 8008696: 4b2d ldr r3, [pc, #180] ; (800874c ) + 8008698: 781b ldrb r3, [r3, #0] + 800869a: f003 0320 and.w r3, r3, #32 + 800869e: 2b00 cmp r3, #0 + 80086a0: f000 814c beq.w 800893c tcp_ack_now(pcb); - 80086a8: 687b ldr r3, [r7, #4] - 80086aa: 8b5b ldrh r3, [r3, #26] - 80086ac: f043 0302 orr.w r3, r3, #2 - 80086b0: b29a uxth r2, r3 - 80086b2: 687b ldr r3, [r7, #4] - 80086b4: 835a strh r2, [r3, #26] + 80086a4: 687b ldr r3, [r7, #4] + 80086a6: 8b5b ldrh r3, [r3, #26] + 80086a8: f043 0302 orr.w r3, r3, #2 + 80086ac: b29a uxth r2, r3 + 80086ae: 687b ldr r3, [r7, #4] + 80086b0: 835a strh r2, [r3, #26] pcb->state = CLOSE_WAIT; - 80086b6: 687b ldr r3, [r7, #4] - 80086b8: 2207 movs r2, #7 - 80086ba: 751a strb r2, [r3, #20] + 80086b2: 687b ldr r3, [r7, #4] + 80086b4: 2207 movs r2, #7 + 80086b6: 751a strb r2, [r3, #20] } break; - 80086bc: e140 b.n 8008940 + 80086b8: e140 b.n 800893c case FIN_WAIT_1: tcp_receive(pcb); - 80086be: 6878 ldr r0, [r7, #4] - 80086c0: f000 fa5c bl 8008b7c + 80086ba: 6878 ldr r0, [r7, #4] + 80086bc: f000 fa5c bl 8008b78 if (recv_flags & TF_GOT_FIN) { - 80086c4: 4b22 ldr r3, [pc, #136] ; (8008750 ) - 80086c6: 781b ldrb r3, [r3, #0] - 80086c8: f003 0320 and.w r3, r3, #32 - 80086cc: 2b00 cmp r3, #0 - 80086ce: d071 beq.n 80087b4 + 80086c0: 4b22 ldr r3, [pc, #136] ; (800874c ) + 80086c2: 781b ldrb r3, [r3, #0] + 80086c4: f003 0320 and.w r3, r3, #32 + 80086c8: 2b00 cmp r3, #0 + 80086ca: d071 beq.n 80087b0 if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 80086d0: 4b14 ldr r3, [pc, #80] ; (8008724 ) - 80086d2: 781b ldrb r3, [r3, #0] - 80086d4: f003 0310 and.w r3, r3, #16 - 80086d8: 2b00 cmp r3, #0 - 80086da: d060 beq.n 800879e - 80086dc: 687b ldr r3, [r7, #4] - 80086de: 6d1a ldr r2, [r3, #80] ; 0x50 - 80086e0: 4b11 ldr r3, [pc, #68] ; (8008728 ) - 80086e2: 681b ldr r3, [r3, #0] - 80086e4: 429a cmp r2, r3 - 80086e6: d15a bne.n 800879e + 80086cc: 4b14 ldr r3, [pc, #80] ; (8008720 ) + 80086ce: 781b ldrb r3, [r3, #0] + 80086d0: f003 0310 and.w r3, r3, #16 + 80086d4: 2b00 cmp r3, #0 + 80086d6: d060 beq.n 800879a + 80086d8: 687b ldr r3, [r7, #4] + 80086da: 6d1a ldr r2, [r3, #80] ; 0x50 + 80086dc: 4b11 ldr r3, [pc, #68] ; (8008724 ) + 80086de: 681b ldr r3, [r3, #0] + 80086e0: 429a cmp r2, r3 + 80086e2: d15a bne.n 800879a pcb->unsent == NULL) { - 80086e8: 687b ldr r3, [r7, #4] - 80086ea: 6edb ldr r3, [r3, #108] ; 0x6c + 80086e4: 687b ldr r3, [r7, #4] + 80086e6: 6edb ldr r3, [r3, #108] ; 0x6c if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 80086ec: 2b00 cmp r3, #0 - 80086ee: d156 bne.n 800879e + 80086e8: 2b00 cmp r3, #0 + 80086ea: d156 bne.n 800879a LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: FIN_WAIT_1 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); tcp_ack_now(pcb); - 80086f0: 687b ldr r3, [r7, #4] - 80086f2: 8b5b ldrh r3, [r3, #26] - 80086f4: f043 0302 orr.w r3, r3, #2 - 80086f8: b29a uxth r2, r3 - 80086fa: 687b ldr r3, [r7, #4] - 80086fc: 835a strh r2, [r3, #26] + 80086ec: 687b ldr r3, [r7, #4] + 80086ee: 8b5b ldrh r3, [r3, #26] + 80086f0: f043 0302 orr.w r3, r3, #2 + 80086f4: b29a uxth r2, r3 + 80086f6: 687b ldr r3, [r7, #4] + 80086f8: 835a strh r2, [r3, #26] tcp_pcb_purge(pcb); - 80086fe: 6878 ldr r0, [r7, #4] - 8008700: f7fe fdbc bl 800727c + 80086fa: 6878 ldr r0, [r7, #4] + 80086fc: f7fe fdbc bl 8007278 TCP_RMV_ACTIVE(pcb); - 8008704: 4b13 ldr r3, [pc, #76] ; (8008754 ) - 8008706: 681b ldr r3, [r3, #0] - 8008708: 687a ldr r2, [r7, #4] - 800870a: 429a cmp r2, r3 - 800870c: d105 bne.n 800871a - 800870e: 4b11 ldr r3, [pc, #68] ; (8008754 ) - 8008710: 681b ldr r3, [r3, #0] - 8008712: 68db ldr r3, [r3, #12] - 8008714: 4a0f ldr r2, [pc, #60] ; (8008754 ) - 8008716: 6013 str r3, [r2, #0] - 8008718: e02e b.n 8008778 - 800871a: 4b0e ldr r3, [pc, #56] ; (8008754 ) - 800871c: 681b ldr r3, [r3, #0] - 800871e: 617b str r3, [r7, #20] - 8008720: e027 b.n 8008772 - 8008722: bf00 nop - 8008724: 20008c44 .word 0x20008c44 - 8008728: 20008c3c .word 0x20008c3c - 800872c: 20008c42 .word 0x20008c42 - 8008730: 20008c38 .word 0x20008c38 - 8008734: 20008c28 .word 0x20008c28 - 8008738: 20005680 .word 0x20005680 - 800873c: 20005684 .word 0x20005684 - 8008740: 08016124 .word 0x08016124 - 8008744: 080163c4 .word 0x080163c4 - 8008748: 08016170 .word 0x08016170 - 800874c: 20008c40 .word 0x20008c40 - 8008750: 20008c45 .word 0x20008c45 - 8008754: 20008c0c .word 0x20008c0c - 8008758: 697b ldr r3, [r7, #20] - 800875a: 68db ldr r3, [r3, #12] - 800875c: 687a ldr r2, [r7, #4] - 800875e: 429a cmp r2, r3 - 8008760: d104 bne.n 800876c - 8008762: 687b ldr r3, [r7, #4] - 8008764: 68da ldr r2, [r3, #12] - 8008766: 697b ldr r3, [r7, #20] - 8008768: 60da str r2, [r3, #12] - 800876a: e005 b.n 8008778 - 800876c: 697b ldr r3, [r7, #20] - 800876e: 68db ldr r3, [r3, #12] - 8008770: 617b str r3, [r7, #20] - 8008772: 697b ldr r3, [r7, #20] - 8008774: 2b00 cmp r3, #0 - 8008776: d1ef bne.n 8008758 - 8008778: 687b ldr r3, [r7, #4] - 800877a: 2200 movs r2, #0 - 800877c: 60da str r2, [r3, #12] - 800877e: 4b77 ldr r3, [pc, #476] ; (800895c ) - 8008780: 2201 movs r2, #1 - 8008782: 701a strb r2, [r3, #0] + 8008700: 4b13 ldr r3, [pc, #76] ; (8008750 ) + 8008702: 681b ldr r3, [r3, #0] + 8008704: 687a ldr r2, [r7, #4] + 8008706: 429a cmp r2, r3 + 8008708: d105 bne.n 8008716 + 800870a: 4b11 ldr r3, [pc, #68] ; (8008750 ) + 800870c: 681b ldr r3, [r3, #0] + 800870e: 68db ldr r3, [r3, #12] + 8008710: 4a0f ldr r2, [pc, #60] ; (8008750 ) + 8008712: 6013 str r3, [r2, #0] + 8008714: e02e b.n 8008774 + 8008716: 4b0e ldr r3, [pc, #56] ; (8008750 ) + 8008718: 681b ldr r3, [r3, #0] + 800871a: 617b str r3, [r7, #20] + 800871c: e027 b.n 800876e + 800871e: bf00 nop + 8008720: 20008c44 .word 0x20008c44 + 8008724: 20008c3c .word 0x20008c3c + 8008728: 20008c42 .word 0x20008c42 + 800872c: 20008c38 .word 0x20008c38 + 8008730: 20008c28 .word 0x20008c28 + 8008734: 20005680 .word 0x20005680 + 8008738: 20005684 .word 0x20005684 + 800873c: 08016124 .word 0x08016124 + 8008740: 080163c4 .word 0x080163c4 + 8008744: 08016170 .word 0x08016170 + 8008748: 20008c40 .word 0x20008c40 + 800874c: 20008c45 .word 0x20008c45 + 8008750: 20008c0c .word 0x20008c0c + 8008754: 697b ldr r3, [r7, #20] + 8008756: 68db ldr r3, [r3, #12] + 8008758: 687a ldr r2, [r7, #4] + 800875a: 429a cmp r2, r3 + 800875c: d104 bne.n 8008768 + 800875e: 687b ldr r3, [r7, #4] + 8008760: 68da ldr r2, [r3, #12] + 8008762: 697b ldr r3, [r7, #20] + 8008764: 60da str r2, [r3, #12] + 8008766: e005 b.n 8008774 + 8008768: 697b ldr r3, [r7, #20] + 800876a: 68db ldr r3, [r3, #12] + 800876c: 617b str r3, [r7, #20] + 800876e: 697b ldr r3, [r7, #20] + 8008770: 2b00 cmp r3, #0 + 8008772: d1ef bne.n 8008754 + 8008774: 687b ldr r3, [r7, #4] + 8008776: 2200 movs r2, #0 + 8008778: 60da str r2, [r3, #12] + 800877a: 4b77 ldr r3, [pc, #476] ; (8008958 ) + 800877c: 2201 movs r2, #1 + 800877e: 701a strb r2, [r3, #0] pcb->state = TIME_WAIT; - 8008784: 687b ldr r3, [r7, #4] - 8008786: 220a movs r2, #10 - 8008788: 751a strb r2, [r3, #20] + 8008780: 687b ldr r3, [r7, #4] + 8008782: 220a movs r2, #10 + 8008784: 751a strb r2, [r3, #20] TCP_REG(&tcp_tw_pcbs, pcb); - 800878a: 4b75 ldr r3, [pc, #468] ; (8008960 ) - 800878c: 681a ldr r2, [r3, #0] - 800878e: 687b ldr r3, [r7, #4] - 8008790: 60da str r2, [r3, #12] - 8008792: 4a73 ldr r2, [pc, #460] ; (8008960 ) - 8008794: 687b ldr r3, [r7, #4] - 8008796: 6013 str r3, [r2, #0] - 8008798: f002 fcfa bl 800b190 + 8008786: 4b75 ldr r3, [pc, #468] ; (800895c ) + 8008788: 681a ldr r2, [r3, #0] + 800878a: 687b ldr r3, [r7, #4] + 800878c: 60da str r2, [r3, #12] + 800878e: 4a73 ldr r2, [pc, #460] ; (800895c ) + 8008790: 687b ldr r3, [r7, #4] + 8008792: 6013 str r3, [r2, #0] + 8008794: f002 fcfa bl 800b18c } } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && pcb->unsent == NULL) { pcb->state = FIN_WAIT_2; } break; - 800879c: e0d2 b.n 8008944 + 8008798: e0d2 b.n 8008940 tcp_ack_now(pcb); - 800879e: 687b ldr r3, [r7, #4] - 80087a0: 8b5b ldrh r3, [r3, #26] - 80087a2: f043 0302 orr.w r3, r3, #2 - 80087a6: b29a uxth r2, r3 - 80087a8: 687b ldr r3, [r7, #4] - 80087aa: 835a strh r2, [r3, #26] + 800879a: 687b ldr r3, [r7, #4] + 800879c: 8b5b ldrh r3, [r3, #26] + 800879e: f043 0302 orr.w r3, r3, #2 + 80087a2: b29a uxth r2, r3 + 80087a4: 687b ldr r3, [r7, #4] + 80087a6: 835a strh r2, [r3, #26] pcb->state = CLOSING; - 80087ac: 687b ldr r3, [r7, #4] - 80087ae: 2208 movs r2, #8 - 80087b0: 751a strb r2, [r3, #20] + 80087a8: 687b ldr r3, [r7, #4] + 80087aa: 2208 movs r2, #8 + 80087ac: 751a strb r2, [r3, #20] break; - 80087b2: e0c7 b.n 8008944 + 80087ae: e0c7 b.n 8008940 } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 80087b4: 4b6b ldr r3, [pc, #428] ; (8008964 ) - 80087b6: 781b ldrb r3, [r3, #0] - 80087b8: f003 0310 and.w r3, r3, #16 - 80087bc: 2b00 cmp r3, #0 - 80087be: f000 80c1 beq.w 8008944 - 80087c2: 687b ldr r3, [r7, #4] - 80087c4: 6d1a ldr r2, [r3, #80] ; 0x50 - 80087c6: 4b68 ldr r3, [pc, #416] ; (8008968 ) - 80087c8: 681b ldr r3, [r3, #0] - 80087ca: 429a cmp r2, r3 - 80087cc: f040 80ba bne.w 8008944 + 80087b0: 4b6b ldr r3, [pc, #428] ; (8008960 ) + 80087b2: 781b ldrb r3, [r3, #0] + 80087b4: f003 0310 and.w r3, r3, #16 + 80087b8: 2b00 cmp r3, #0 + 80087ba: f000 80c1 beq.w 8008940 + 80087be: 687b ldr r3, [r7, #4] + 80087c0: 6d1a ldr r2, [r3, #80] ; 0x50 + 80087c2: 4b68 ldr r3, [pc, #416] ; (8008964 ) + 80087c4: 681b ldr r3, [r3, #0] + 80087c6: 429a cmp r2, r3 + 80087c8: f040 80ba bne.w 8008940 pcb->unsent == NULL) { - 80087d0: 687b ldr r3, [r7, #4] - 80087d2: 6edb ldr r3, [r3, #108] ; 0x6c + 80087cc: 687b ldr r3, [r7, #4] + 80087ce: 6edb ldr r3, [r3, #108] ; 0x6c } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 80087d4: 2b00 cmp r3, #0 - 80087d6: f040 80b5 bne.w 8008944 + 80087d0: 2b00 cmp r3, #0 + 80087d2: f040 80b5 bne.w 8008940 pcb->state = FIN_WAIT_2; - 80087da: 687b ldr r3, [r7, #4] - 80087dc: 2206 movs r2, #6 - 80087de: 751a strb r2, [r3, #20] + 80087d6: 687b ldr r3, [r7, #4] + 80087d8: 2206 movs r2, #6 + 80087da: 751a strb r2, [r3, #20] break; - 80087e0: e0b0 b.n 8008944 + 80087dc: e0b0 b.n 8008940 case FIN_WAIT_2: tcp_receive(pcb); - 80087e2: 6878 ldr r0, [r7, #4] - 80087e4: f000 f9ca bl 8008b7c + 80087de: 6878 ldr r0, [r7, #4] + 80087e0: f000 f9ca bl 8008b78 if (recv_flags & TF_GOT_FIN) { - 80087e8: 4b60 ldr r3, [pc, #384] ; (800896c ) - 80087ea: 781b ldrb r3, [r3, #0] - 80087ec: f003 0320 and.w r3, r3, #32 - 80087f0: 2b00 cmp r3, #0 - 80087f2: f000 80a9 beq.w 8008948 + 80087e4: 4b60 ldr r3, [pc, #384] ; (8008968 ) + 80087e6: 781b ldrb r3, [r3, #0] + 80087e8: f003 0320 and.w r3, r3, #32 + 80087ec: 2b00 cmp r3, #0 + 80087ee: f000 80a9 beq.w 8008944 LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: FIN_WAIT_2 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); tcp_ack_now(pcb); - 80087f6: 687b ldr r3, [r7, #4] - 80087f8: 8b5b ldrh r3, [r3, #26] - 80087fa: f043 0302 orr.w r3, r3, #2 - 80087fe: b29a uxth r2, r3 - 8008800: 687b ldr r3, [r7, #4] - 8008802: 835a strh r2, [r3, #26] + 80087f2: 687b ldr r3, [r7, #4] + 80087f4: 8b5b ldrh r3, [r3, #26] + 80087f6: f043 0302 orr.w r3, r3, #2 + 80087fa: b29a uxth r2, r3 + 80087fc: 687b ldr r3, [r7, #4] + 80087fe: 835a strh r2, [r3, #26] tcp_pcb_purge(pcb); - 8008804: 6878 ldr r0, [r7, #4] - 8008806: f7fe fd39 bl 800727c + 8008800: 6878 ldr r0, [r7, #4] + 8008802: f7fe fd39 bl 8007278 TCP_RMV_ACTIVE(pcb); - 800880a: 4b59 ldr r3, [pc, #356] ; (8008970 ) - 800880c: 681b ldr r3, [r3, #0] - 800880e: 687a ldr r2, [r7, #4] - 8008810: 429a cmp r2, r3 - 8008812: d105 bne.n 8008820 - 8008814: 4b56 ldr r3, [pc, #344] ; (8008970 ) - 8008816: 681b ldr r3, [r3, #0] - 8008818: 68db ldr r3, [r3, #12] - 800881a: 4a55 ldr r2, [pc, #340] ; (8008970 ) - 800881c: 6013 str r3, [r2, #0] - 800881e: e013 b.n 8008848 - 8008820: 4b53 ldr r3, [pc, #332] ; (8008970 ) - 8008822: 681b ldr r3, [r3, #0] - 8008824: 613b str r3, [r7, #16] - 8008826: e00c b.n 8008842 - 8008828: 693b ldr r3, [r7, #16] - 800882a: 68db ldr r3, [r3, #12] - 800882c: 687a ldr r2, [r7, #4] - 800882e: 429a cmp r2, r3 - 8008830: d104 bne.n 800883c - 8008832: 687b ldr r3, [r7, #4] - 8008834: 68da ldr r2, [r3, #12] - 8008836: 693b ldr r3, [r7, #16] - 8008838: 60da str r2, [r3, #12] - 800883a: e005 b.n 8008848 - 800883c: 693b ldr r3, [r7, #16] - 800883e: 68db ldr r3, [r3, #12] - 8008840: 613b str r3, [r7, #16] - 8008842: 693b ldr r3, [r7, #16] - 8008844: 2b00 cmp r3, #0 - 8008846: d1ef bne.n 8008828 - 8008848: 687b ldr r3, [r7, #4] - 800884a: 2200 movs r2, #0 - 800884c: 60da str r2, [r3, #12] - 800884e: 4b43 ldr r3, [pc, #268] ; (800895c ) - 8008850: 2201 movs r2, #1 - 8008852: 701a strb r2, [r3, #0] + 8008806: 4b59 ldr r3, [pc, #356] ; (800896c ) + 8008808: 681b ldr r3, [r3, #0] + 800880a: 687a ldr r2, [r7, #4] + 800880c: 429a cmp r2, r3 + 800880e: d105 bne.n 800881c + 8008810: 4b56 ldr r3, [pc, #344] ; (800896c ) + 8008812: 681b ldr r3, [r3, #0] + 8008814: 68db ldr r3, [r3, #12] + 8008816: 4a55 ldr r2, [pc, #340] ; (800896c ) + 8008818: 6013 str r3, [r2, #0] + 800881a: e013 b.n 8008844 + 800881c: 4b53 ldr r3, [pc, #332] ; (800896c ) + 800881e: 681b ldr r3, [r3, #0] + 8008820: 613b str r3, [r7, #16] + 8008822: e00c b.n 800883e + 8008824: 693b ldr r3, [r7, #16] + 8008826: 68db ldr r3, [r3, #12] + 8008828: 687a ldr r2, [r7, #4] + 800882a: 429a cmp r2, r3 + 800882c: d104 bne.n 8008838 + 800882e: 687b ldr r3, [r7, #4] + 8008830: 68da ldr r2, [r3, #12] + 8008832: 693b ldr r3, [r7, #16] + 8008834: 60da str r2, [r3, #12] + 8008836: e005 b.n 8008844 + 8008838: 693b ldr r3, [r7, #16] + 800883a: 68db ldr r3, [r3, #12] + 800883c: 613b str r3, [r7, #16] + 800883e: 693b ldr r3, [r7, #16] + 8008840: 2b00 cmp r3, #0 + 8008842: d1ef bne.n 8008824 + 8008844: 687b ldr r3, [r7, #4] + 8008846: 2200 movs r2, #0 + 8008848: 60da str r2, [r3, #12] + 800884a: 4b43 ldr r3, [pc, #268] ; (8008958 ) + 800884c: 2201 movs r2, #1 + 800884e: 701a strb r2, [r3, #0] pcb->state = TIME_WAIT; - 8008854: 687b ldr r3, [r7, #4] - 8008856: 220a movs r2, #10 - 8008858: 751a strb r2, [r3, #20] + 8008850: 687b ldr r3, [r7, #4] + 8008852: 220a movs r2, #10 + 8008854: 751a strb r2, [r3, #20] TCP_REG(&tcp_tw_pcbs, pcb); - 800885a: 4b41 ldr r3, [pc, #260] ; (8008960 ) - 800885c: 681a ldr r2, [r3, #0] - 800885e: 687b ldr r3, [r7, #4] - 8008860: 60da str r2, [r3, #12] - 8008862: 4a3f ldr r2, [pc, #252] ; (8008960 ) - 8008864: 687b ldr r3, [r7, #4] - 8008866: 6013 str r3, [r2, #0] - 8008868: f002 fc92 bl 800b190 + 8008856: 4b41 ldr r3, [pc, #260] ; (800895c ) + 8008858: 681a ldr r2, [r3, #0] + 800885a: 687b ldr r3, [r7, #4] + 800885c: 60da str r2, [r3, #12] + 800885e: 4a3f ldr r2, [pc, #252] ; (800895c ) + 8008860: 687b ldr r3, [r7, #4] + 8008862: 6013 str r3, [r2, #0] + 8008864: f002 fc92 bl 800b18c } break; - 800886c: e06c b.n 8008948 + 8008868: e06c b.n 8008944 case CLOSING: tcp_receive(pcb); - 800886e: 6878 ldr r0, [r7, #4] - 8008870: f000 f984 bl 8008b7c + 800886a: 6878 ldr r0, [r7, #4] + 800886c: f000 f984 bl 8008b78 if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) { - 8008874: 4b3b ldr r3, [pc, #236] ; (8008964 ) - 8008876: 781b ldrb r3, [r3, #0] - 8008878: f003 0310 and.w r3, r3, #16 - 800887c: 2b00 cmp r3, #0 - 800887e: d065 beq.n 800894c - 8008880: 687b ldr r3, [r7, #4] - 8008882: 6d1a ldr r2, [r3, #80] ; 0x50 - 8008884: 4b38 ldr r3, [pc, #224] ; (8008968 ) - 8008886: 681b ldr r3, [r3, #0] - 8008888: 429a cmp r2, r3 - 800888a: d15f bne.n 800894c - 800888c: 687b ldr r3, [r7, #4] - 800888e: 6edb ldr r3, [r3, #108] ; 0x6c - 8008890: 2b00 cmp r3, #0 - 8008892: d15b bne.n 800894c + 8008870: 4b3b ldr r3, [pc, #236] ; (8008960 ) + 8008872: 781b ldrb r3, [r3, #0] + 8008874: f003 0310 and.w r3, r3, #16 + 8008878: 2b00 cmp r3, #0 + 800887a: d065 beq.n 8008948 + 800887c: 687b ldr r3, [r7, #4] + 800887e: 6d1a ldr r2, [r3, #80] ; 0x50 + 8008880: 4b38 ldr r3, [pc, #224] ; (8008964 ) + 8008882: 681b ldr r3, [r3, #0] + 8008884: 429a cmp r2, r3 + 8008886: d15f bne.n 8008948 + 8008888: 687b ldr r3, [r7, #4] + 800888a: 6edb ldr r3, [r3, #108] ; 0x6c + 800888c: 2b00 cmp r3, #0 + 800888e: d15b bne.n 8008948 LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); tcp_pcb_purge(pcb); - 8008894: 6878 ldr r0, [r7, #4] - 8008896: f7fe fcf1 bl 800727c + 8008890: 6878 ldr r0, [r7, #4] + 8008892: f7fe fcf1 bl 8007278 TCP_RMV_ACTIVE(pcb); - 800889a: 4b35 ldr r3, [pc, #212] ; (8008970 ) - 800889c: 681b ldr r3, [r3, #0] - 800889e: 687a ldr r2, [r7, #4] - 80088a0: 429a cmp r2, r3 - 80088a2: d105 bne.n 80088b0 - 80088a4: 4b32 ldr r3, [pc, #200] ; (8008970 ) - 80088a6: 681b ldr r3, [r3, #0] - 80088a8: 68db ldr r3, [r3, #12] - 80088aa: 4a31 ldr r2, [pc, #196] ; (8008970 ) - 80088ac: 6013 str r3, [r2, #0] - 80088ae: e013 b.n 80088d8 - 80088b0: 4b2f ldr r3, [pc, #188] ; (8008970 ) - 80088b2: 681b ldr r3, [r3, #0] - 80088b4: 60fb str r3, [r7, #12] - 80088b6: e00c b.n 80088d2 - 80088b8: 68fb ldr r3, [r7, #12] - 80088ba: 68db ldr r3, [r3, #12] - 80088bc: 687a ldr r2, [r7, #4] - 80088be: 429a cmp r2, r3 - 80088c0: d104 bne.n 80088cc - 80088c2: 687b ldr r3, [r7, #4] - 80088c4: 68da ldr r2, [r3, #12] - 80088c6: 68fb ldr r3, [r7, #12] - 80088c8: 60da str r2, [r3, #12] - 80088ca: e005 b.n 80088d8 - 80088cc: 68fb ldr r3, [r7, #12] - 80088ce: 68db ldr r3, [r3, #12] - 80088d0: 60fb str r3, [r7, #12] - 80088d2: 68fb ldr r3, [r7, #12] - 80088d4: 2b00 cmp r3, #0 - 80088d6: d1ef bne.n 80088b8 - 80088d8: 687b ldr r3, [r7, #4] - 80088da: 2200 movs r2, #0 - 80088dc: 60da str r2, [r3, #12] - 80088de: 4b1f ldr r3, [pc, #124] ; (800895c ) - 80088e0: 2201 movs r2, #1 - 80088e2: 701a strb r2, [r3, #0] + 8008896: 4b35 ldr r3, [pc, #212] ; (800896c ) + 8008898: 681b ldr r3, [r3, #0] + 800889a: 687a ldr r2, [r7, #4] + 800889c: 429a cmp r2, r3 + 800889e: d105 bne.n 80088ac + 80088a0: 4b32 ldr r3, [pc, #200] ; (800896c ) + 80088a2: 681b ldr r3, [r3, #0] + 80088a4: 68db ldr r3, [r3, #12] + 80088a6: 4a31 ldr r2, [pc, #196] ; (800896c ) + 80088a8: 6013 str r3, [r2, #0] + 80088aa: e013 b.n 80088d4 + 80088ac: 4b2f ldr r3, [pc, #188] ; (800896c ) + 80088ae: 681b ldr r3, [r3, #0] + 80088b0: 60fb str r3, [r7, #12] + 80088b2: e00c b.n 80088ce + 80088b4: 68fb ldr r3, [r7, #12] + 80088b6: 68db ldr r3, [r3, #12] + 80088b8: 687a ldr r2, [r7, #4] + 80088ba: 429a cmp r2, r3 + 80088bc: d104 bne.n 80088c8 + 80088be: 687b ldr r3, [r7, #4] + 80088c0: 68da ldr r2, [r3, #12] + 80088c2: 68fb ldr r3, [r7, #12] + 80088c4: 60da str r2, [r3, #12] + 80088c6: e005 b.n 80088d4 + 80088c8: 68fb ldr r3, [r7, #12] + 80088ca: 68db ldr r3, [r3, #12] + 80088cc: 60fb str r3, [r7, #12] + 80088ce: 68fb ldr r3, [r7, #12] + 80088d0: 2b00 cmp r3, #0 + 80088d2: d1ef bne.n 80088b4 + 80088d4: 687b ldr r3, [r7, #4] + 80088d6: 2200 movs r2, #0 + 80088d8: 60da str r2, [r3, #12] + 80088da: 4b1f ldr r3, [pc, #124] ; (8008958 ) + 80088dc: 2201 movs r2, #1 + 80088de: 701a strb r2, [r3, #0] pcb->state = TIME_WAIT; - 80088e4: 687b ldr r3, [r7, #4] - 80088e6: 220a movs r2, #10 - 80088e8: 751a strb r2, [r3, #20] + 80088e0: 687b ldr r3, [r7, #4] + 80088e2: 220a movs r2, #10 + 80088e4: 751a strb r2, [r3, #20] TCP_REG(&tcp_tw_pcbs, pcb); - 80088ea: 4b1d ldr r3, [pc, #116] ; (8008960 ) - 80088ec: 681a ldr r2, [r3, #0] - 80088ee: 687b ldr r3, [r7, #4] - 80088f0: 60da str r2, [r3, #12] - 80088f2: 4a1b ldr r2, [pc, #108] ; (8008960 ) - 80088f4: 687b ldr r3, [r7, #4] - 80088f6: 6013 str r3, [r2, #0] - 80088f8: f002 fc4a bl 800b190 + 80088e6: 4b1d ldr r3, [pc, #116] ; (800895c ) + 80088e8: 681a ldr r2, [r3, #0] + 80088ea: 687b ldr r3, [r7, #4] + 80088ec: 60da str r2, [r3, #12] + 80088ee: 4a1b ldr r2, [pc, #108] ; (800895c ) + 80088f0: 687b ldr r3, [r7, #4] + 80088f2: 6013 str r3, [r2, #0] + 80088f4: f002 fc4a bl 800b18c } break; - 80088fc: e026 b.n 800894c + 80088f8: e026 b.n 8008948 case LAST_ACK: tcp_receive(pcb); - 80088fe: 6878 ldr r0, [r7, #4] - 8008900: f000 f93c bl 8008b7c + 80088fa: 6878 ldr r0, [r7, #4] + 80088fc: f000 f93c bl 8008b78 if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) { - 8008904: 4b17 ldr r3, [pc, #92] ; (8008964 ) - 8008906: 781b ldrb r3, [r3, #0] - 8008908: f003 0310 and.w r3, r3, #16 - 800890c: 2b00 cmp r3, #0 - 800890e: d01f beq.n 8008950 - 8008910: 687b ldr r3, [r7, #4] - 8008912: 6d1a ldr r2, [r3, #80] ; 0x50 - 8008914: 4b14 ldr r3, [pc, #80] ; (8008968 ) - 8008916: 681b ldr r3, [r3, #0] - 8008918: 429a cmp r2, r3 - 800891a: d119 bne.n 8008950 - 800891c: 687b ldr r3, [r7, #4] - 800891e: 6edb ldr r3, [r3, #108] ; 0x6c - 8008920: 2b00 cmp r3, #0 - 8008922: d115 bne.n 8008950 + 8008900: 4b17 ldr r3, [pc, #92] ; (8008960 ) + 8008902: 781b ldrb r3, [r3, #0] + 8008904: f003 0310 and.w r3, r3, #16 + 8008908: 2b00 cmp r3, #0 + 800890a: d01f beq.n 800894c + 800890c: 687b ldr r3, [r7, #4] + 800890e: 6d1a ldr r2, [r3, #80] ; 0x50 + 8008910: 4b14 ldr r3, [pc, #80] ; (8008964 ) + 8008912: 681b ldr r3, [r3, #0] + 8008914: 429a cmp r2, r3 + 8008916: d119 bne.n 800894c + 8008918: 687b ldr r3, [r7, #4] + 800891a: 6edb ldr r3, [r3, #108] ; 0x6c + 800891c: 2b00 cmp r3, #0 + 800891e: d115 bne.n 800894c LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: LAST_ACK %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); /* bugfix #21699: don't set pcb->state to CLOSED here or we risk leaking segments */ recv_flags |= TF_CLOSED; - 8008924: 4b11 ldr r3, [pc, #68] ; (800896c ) - 8008926: 781b ldrb r3, [r3, #0] - 8008928: f043 0310 orr.w r3, r3, #16 - 800892c: b2da uxtb r2, r3 - 800892e: 4b0f ldr r3, [pc, #60] ; (800896c ) - 8008930: 701a strb r2, [r3, #0] + 8008920: 4b11 ldr r3, [pc, #68] ; (8008968 ) + 8008922: 781b ldrb r3, [r3, #0] + 8008924: f043 0310 orr.w r3, r3, #16 + 8008928: b2da uxtb r2, r3 + 800892a: 4b0f ldr r3, [pc, #60] ; (8008968 ) + 800892c: 701a strb r2, [r3, #0] } break; - 8008932: e00d b.n 8008950 + 800892e: e00d b.n 800894c default: break; + 8008930: bf00 nop + 8008932: e00c b.n 800894e + break; 8008934: bf00 nop - 8008936: e00c b.n 8008952 + 8008936: e00a b.n 800894e break; 8008938: bf00 nop - 800893a: e00a b.n 8008952 + 800893a: e008 b.n 800894e break; 800893c: bf00 nop - 800893e: e008 b.n 8008952 + 800893e: e006 b.n 800894e break; 8008940: bf00 nop - 8008942: e006 b.n 8008952 + 8008942: e004 b.n 800894e break; 8008944: bf00 nop - 8008946: e004 b.n 8008952 + 8008946: e002 b.n 800894e break; 8008948: bf00 nop - 800894a: e002 b.n 8008952 + 800894a: e000 b.n 800894e break; 800894c: bf00 nop - 800894e: e000 b.n 8008952 - break; - 8008950: bf00 nop } return ERR_OK; - 8008952: 2300 movs r3, #0 + 800894e: 2300 movs r3, #0 } - 8008954: 4618 mov r0, r3 - 8008956: 3724 adds r7, #36 ; 0x24 - 8008958: 46bd mov sp, r7 - 800895a: bd90 pop {r4, r7, pc} - 800895c: 20008c14 .word 0x20008c14 - 8008960: 20008c10 .word 0x20008c10 - 8008964: 20008c44 .word 0x20008c44 - 8008968: 20008c3c .word 0x20008c3c - 800896c: 20008c45 .word 0x20008c45 - 8008970: 20008c0c .word 0x20008c0c + 8008950: 4618 mov r0, r3 + 8008952: 3724 adds r7, #36 ; 0x24 + 8008954: 46bd mov sp, r7 + 8008956: bd90 pop {r4, r7, pc} + 8008958: 20008c14 .word 0x20008c14 + 800895c: 20008c10 .word 0x20008c10 + 8008960: 20008c44 .word 0x20008c44 + 8008964: 20008c3c .word 0x20008c3c + 8008968: 20008c45 .word 0x20008c45 + 800896c: 20008c0c .word 0x20008c0c -08008974 : +08008970 : * * Called from tcp_receive() */ static void tcp_oos_insert_segment(struct tcp_seg *cseg, struct tcp_seg *next) { - 8008974: b590 push {r4, r7, lr} - 8008976: b085 sub sp, #20 - 8008978: af00 add r7, sp, #0 - 800897a: 6078 str r0, [r7, #4] - 800897c: 6039 str r1, [r7, #0] + 8008970: b590 push {r4, r7, lr} + 8008972: b085 sub sp, #20 + 8008974: af00 add r7, sp, #0 + 8008976: 6078 str r0, [r7, #4] + 8008978: 6039 str r1, [r7, #0] struct tcp_seg *old_seg; LWIP_ASSERT("tcp_oos_insert_segment: invalid cseg", cseg != NULL); - 800897e: 687b ldr r3, [r7, #4] - 8008980: 2b00 cmp r3, #0 - 8008982: d106 bne.n 8008992 - 8008984: 4b3b ldr r3, [pc, #236] ; (8008a74 ) - 8008986: f240 421f movw r2, #1055 ; 0x41f - 800898a: 493b ldr r1, [pc, #236] ; (8008a78 ) - 800898c: 483b ldr r0, [pc, #236] ; (8008a7c ) - 800898e: f007 fd21 bl 80103d4 + 800897a: 687b ldr r3, [r7, #4] + 800897c: 2b00 cmp r3, #0 + 800897e: d106 bne.n 800898e + 8008980: 4b3b ldr r3, [pc, #236] ; (8008a70 ) + 8008982: f240 421f movw r2, #1055 ; 0x41f + 8008986: 493b ldr r1, [pc, #236] ; (8008a74 ) + 8008988: 483b ldr r0, [pc, #236] ; (8008a78 ) + 800898a: f007 fd21 bl 80103d0 if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { - 8008992: 687b ldr r3, [r7, #4] - 8008994: 68db ldr r3, [r3, #12] - 8008996: 899b ldrh r3, [r3, #12] - 8008998: b29b uxth r3, r3 - 800899a: 4618 mov r0, r3 - 800899c: f7fb fc94 bl 80042c8 - 80089a0: 4603 mov r3, r0 - 80089a2: b2db uxtb r3, r3 - 80089a4: f003 0301 and.w r3, r3, #1 - 80089a8: 2b00 cmp r3, #0 - 80089aa: d028 beq.n 80089fe + 800898e: 687b ldr r3, [r7, #4] + 8008990: 68db ldr r3, [r3, #12] + 8008992: 899b ldrh r3, [r3, #12] + 8008994: b29b uxth r3, r3 + 8008996: 4618 mov r0, r3 + 8008998: f7fb fc94 bl 80042c4 + 800899c: 4603 mov r3, r0 + 800899e: b2db uxtb r3, r3 + 80089a0: f003 0301 and.w r3, r3, #1 + 80089a4: 2b00 cmp r3, #0 + 80089a6: d028 beq.n 80089fa /* received segment overlaps all following segments */ tcp_segs_free(next); - 80089ac: 6838 ldr r0, [r7, #0] - 80089ae: f7fe fa63 bl 8006e78 + 80089a8: 6838 ldr r0, [r7, #0] + 80089aa: f7fe fa63 bl 8006e74 next = NULL; - 80089b2: 2300 movs r3, #0 - 80089b4: 603b str r3, [r7, #0] - 80089b6: e056 b.n 8008a66 + 80089ae: 2300 movs r3, #0 + 80089b0: 603b str r3, [r7, #0] + 80089b2: e056 b.n 8008a62 oos queue may have segments with FIN flag */ while (next && TCP_SEQ_GEQ((seqno + cseg->len), (next->tcphdr->seqno + next->len))) { /* cseg with FIN already processed */ if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) { - 80089b8: 683b ldr r3, [r7, #0] - 80089ba: 68db ldr r3, [r3, #12] - 80089bc: 899b ldrh r3, [r3, #12] - 80089be: b29b uxth r3, r3 - 80089c0: 4618 mov r0, r3 - 80089c2: f7fb fc81 bl 80042c8 - 80089c6: 4603 mov r3, r0 - 80089c8: b2db uxtb r3, r3 - 80089ca: f003 0301 and.w r3, r3, #1 - 80089ce: 2b00 cmp r3, #0 - 80089d0: d00d beq.n 80089ee + 80089b4: 683b ldr r3, [r7, #0] + 80089b6: 68db ldr r3, [r3, #12] + 80089b8: 899b ldrh r3, [r3, #12] + 80089ba: b29b uxth r3, r3 + 80089bc: 4618 mov r0, r3 + 80089be: f7fb fc81 bl 80042c4 + 80089c2: 4603 mov r3, r0 + 80089c4: b2db uxtb r3, r3 + 80089c6: f003 0301 and.w r3, r3, #1 + 80089ca: 2b00 cmp r3, #0 + 80089cc: d00d beq.n 80089ea TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN); - 80089d2: 687b ldr r3, [r7, #4] - 80089d4: 68db ldr r3, [r3, #12] - 80089d6: 899b ldrh r3, [r3, #12] - 80089d8: b29c uxth r4, r3 - 80089da: 2001 movs r0, #1 - 80089dc: f7fb fc74 bl 80042c8 - 80089e0: 4603 mov r3, r0 - 80089e2: 461a mov r2, r3 - 80089e4: 687b ldr r3, [r7, #4] - 80089e6: 68db ldr r3, [r3, #12] - 80089e8: 4322 orrs r2, r4 - 80089ea: b292 uxth r2, r2 - 80089ec: 819a strh r2, [r3, #12] + 80089ce: 687b ldr r3, [r7, #4] + 80089d0: 68db ldr r3, [r3, #12] + 80089d2: 899b ldrh r3, [r3, #12] + 80089d4: b29c uxth r4, r3 + 80089d6: 2001 movs r0, #1 + 80089d8: f7fb fc74 bl 80042c4 + 80089dc: 4603 mov r3, r0 + 80089de: 461a mov r2, r3 + 80089e0: 687b ldr r3, [r7, #4] + 80089e2: 68db ldr r3, [r3, #12] + 80089e4: 4322 orrs r2, r4 + 80089e6: b292 uxth r2, r2 + 80089e8: 819a strh r2, [r3, #12] } old_seg = next; - 80089ee: 683b ldr r3, [r7, #0] - 80089f0: 60fb str r3, [r7, #12] + 80089ea: 683b ldr r3, [r7, #0] + 80089ec: 60fb str r3, [r7, #12] next = next->next; - 80089f2: 683b ldr r3, [r7, #0] - 80089f4: 681b ldr r3, [r3, #0] - 80089f6: 603b str r3, [r7, #0] + 80089ee: 683b ldr r3, [r7, #0] + 80089f0: 681b ldr r3, [r3, #0] + 80089f2: 603b str r3, [r7, #0] tcp_seg_free(old_seg); - 80089f8: 68f8 ldr r0, [r7, #12] - 80089fa: f7fe fa52 bl 8006ea2 + 80089f4: 68f8 ldr r0, [r7, #12] + 80089f6: f7fe fa52 bl 8006e9e while (next && - 80089fe: 683b ldr r3, [r7, #0] - 8008a00: 2b00 cmp r3, #0 - 8008a02: d00e beq.n 8008a22 + 80089fa: 683b ldr r3, [r7, #0] + 80089fc: 2b00 cmp r3, #0 + 80089fe: d00e beq.n 8008a1e TCP_SEQ_GEQ((seqno + cseg->len), - 8008a04: 687b ldr r3, [r7, #4] - 8008a06: 891b ldrh r3, [r3, #8] - 8008a08: 461a mov r2, r3 - 8008a0a: 4b1d ldr r3, [pc, #116] ; (8008a80 ) - 8008a0c: 681b ldr r3, [r3, #0] - 8008a0e: 441a add r2, r3 - 8008a10: 683b ldr r3, [r7, #0] - 8008a12: 68db ldr r3, [r3, #12] - 8008a14: 685b ldr r3, [r3, #4] - 8008a16: 6839 ldr r1, [r7, #0] - 8008a18: 8909 ldrh r1, [r1, #8] - 8008a1a: 440b add r3, r1 - 8008a1c: 1ad3 subs r3, r2, r3 + 8008a00: 687b ldr r3, [r7, #4] + 8008a02: 891b ldrh r3, [r3, #8] + 8008a04: 461a mov r2, r3 + 8008a06: 4b1d ldr r3, [pc, #116] ; (8008a7c ) + 8008a08: 681b ldr r3, [r3, #0] + 8008a0a: 441a add r2, r3 + 8008a0c: 683b ldr r3, [r7, #0] + 8008a0e: 68db ldr r3, [r3, #12] + 8008a10: 685b ldr r3, [r3, #4] + 8008a12: 6839 ldr r1, [r7, #0] + 8008a14: 8909 ldrh r1, [r1, #8] + 8008a16: 440b add r3, r1 + 8008a18: 1ad3 subs r3, r2, r3 while (next && - 8008a1e: 2b00 cmp r3, #0 - 8008a20: daca bge.n 80089b8 + 8008a1a: 2b00 cmp r3, #0 + 8008a1c: daca bge.n 80089b4 } if (next && - 8008a22: 683b ldr r3, [r7, #0] - 8008a24: 2b00 cmp r3, #0 - 8008a26: d01e beq.n 8008a66 + 8008a1e: 683b ldr r3, [r7, #0] + 8008a20: 2b00 cmp r3, #0 + 8008a22: d01e beq.n 8008a62 TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) { - 8008a28: 687b ldr r3, [r7, #4] - 8008a2a: 891b ldrh r3, [r3, #8] - 8008a2c: 461a mov r2, r3 - 8008a2e: 4b14 ldr r3, [pc, #80] ; (8008a80 ) - 8008a30: 681b ldr r3, [r3, #0] - 8008a32: 441a add r2, r3 - 8008a34: 683b ldr r3, [r7, #0] - 8008a36: 68db ldr r3, [r3, #12] - 8008a38: 685b ldr r3, [r3, #4] - 8008a3a: 1ad3 subs r3, r2, r3 + 8008a24: 687b ldr r3, [r7, #4] + 8008a26: 891b ldrh r3, [r3, #8] + 8008a28: 461a mov r2, r3 + 8008a2a: 4b14 ldr r3, [pc, #80] ; (8008a7c ) + 8008a2c: 681b ldr r3, [r3, #0] + 8008a2e: 441a add r2, r3 + 8008a30: 683b ldr r3, [r7, #0] + 8008a32: 68db ldr r3, [r3, #12] + 8008a34: 685b ldr r3, [r3, #4] + 8008a36: 1ad3 subs r3, r2, r3 if (next && - 8008a3c: 2b00 cmp r3, #0 - 8008a3e: dd12 ble.n 8008a66 + 8008a38: 2b00 cmp r3, #0 + 8008a3a: dd12 ble.n 8008a62 /* We need to trim the incoming segment. */ cseg->len = (u16_t)(next->tcphdr->seqno - seqno); - 8008a40: 683b ldr r3, [r7, #0] - 8008a42: 68db ldr r3, [r3, #12] - 8008a44: 685b ldr r3, [r3, #4] - 8008a46: b29a uxth r2, r3 - 8008a48: 4b0d ldr r3, [pc, #52] ; (8008a80 ) - 8008a4a: 681b ldr r3, [r3, #0] - 8008a4c: b29b uxth r3, r3 - 8008a4e: 1ad3 subs r3, r2, r3 - 8008a50: b29a uxth r2, r3 - 8008a52: 687b ldr r3, [r7, #4] - 8008a54: 811a strh r2, [r3, #8] + 8008a3c: 683b ldr r3, [r7, #0] + 8008a3e: 68db ldr r3, [r3, #12] + 8008a40: 685b ldr r3, [r3, #4] + 8008a42: b29a uxth r2, r3 + 8008a44: 4b0d ldr r3, [pc, #52] ; (8008a7c ) + 8008a46: 681b ldr r3, [r3, #0] + 8008a48: b29b uxth r3, r3 + 8008a4a: 1ad3 subs r3, r2, r3 + 8008a4c: b29a uxth r2, r3 + 8008a4e: 687b ldr r3, [r7, #4] + 8008a50: 811a strh r2, [r3, #8] pbuf_realloc(cseg->p, cseg->len); + 8008a52: 687b ldr r3, [r7, #4] + 8008a54: 685a ldr r2, [r3, #4] 8008a56: 687b ldr r3, [r7, #4] - 8008a58: 685a ldr r2, [r3, #4] - 8008a5a: 687b ldr r3, [r7, #4] - 8008a5c: 891b ldrh r3, [r3, #8] - 8008a5e: 4619 mov r1, r3 - 8008a60: 4610 mov r0, r2 - 8008a62: f7fc fe15 bl 8005690 + 8008a58: 891b ldrh r3, [r3, #8] + 8008a5a: 4619 mov r1, r3 + 8008a5c: 4610 mov r0, r2 + 8008a5e: f7fc fe15 bl 800568c } } cseg->next = next; - 8008a66: 687b ldr r3, [r7, #4] - 8008a68: 683a ldr r2, [r7, #0] - 8008a6a: 601a str r2, [r3, #0] + 8008a62: 687b ldr r3, [r7, #4] + 8008a64: 683a ldr r2, [r7, #0] + 8008a66: 601a str r2, [r3, #0] } - 8008a6c: bf00 nop - 8008a6e: 3714 adds r7, #20 - 8008a70: 46bd mov sp, r7 - 8008a72: bd90 pop {r4, r7, pc} - 8008a74: 08016124 .word 0x08016124 - 8008a78: 080163e4 .word 0x080163e4 - 8008a7c: 08016170 .word 0x08016170 - 8008a80: 20008c38 .word 0x20008c38 + 8008a68: bf00 nop + 8008a6a: 3714 adds r7, #20 + 8008a6c: 46bd mov sp, r7 + 8008a6e: bd90 pop {r4, r7, pc} + 8008a70: 08016124 .word 0x08016124 + 8008a74: 080163e4 .word 0x080163e4 + 8008a78: 08016170 .word 0x08016170 + 8008a7c: 20008c38 .word 0x20008c38 -08008a84 : +08008a80 : /** Remove segments from a list if the incoming ACK acknowledges them */ static struct tcp_seg * tcp_free_acked_segments(struct tcp_pcb *pcb, struct tcp_seg *seg_list, const char *dbg_list_name, struct tcp_seg *dbg_other_seg_list) { - 8008a84: b5b0 push {r4, r5, r7, lr} - 8008a86: b086 sub sp, #24 - 8008a88: af00 add r7, sp, #0 - 8008a8a: 60f8 str r0, [r7, #12] - 8008a8c: 60b9 str r1, [r7, #8] - 8008a8e: 607a str r2, [r7, #4] - 8008a90: 603b str r3, [r7, #0] + 8008a80: b5b0 push {r4, r5, r7, lr} + 8008a82: b086 sub sp, #24 + 8008a84: af00 add r7, sp, #0 + 8008a86: 60f8 str r0, [r7, #12] + 8008a88: 60b9 str r1, [r7, #8] + 8008a8a: 607a str r2, [r7, #4] + 8008a8c: 603b str r3, [r7, #0] u16_t clen; LWIP_UNUSED_ARG(dbg_list_name); LWIP_UNUSED_ARG(dbg_other_seg_list); while (seg_list != NULL && - 8008a92: e03e b.n 8008b12 + 8008a8e: e03e b.n 8008b0e LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: removing %"U32_F":%"U32_F" from pcb->%s\n", lwip_ntohl(seg_list->tcphdr->seqno), lwip_ntohl(seg_list->tcphdr->seqno) + TCP_TCPLEN(seg_list), dbg_list_name)); next = seg_list; - 8008a94: 68bb ldr r3, [r7, #8] - 8008a96: 617b str r3, [r7, #20] + 8008a90: 68bb ldr r3, [r7, #8] + 8008a92: 617b str r3, [r7, #20] seg_list = seg_list->next; - 8008a98: 68bb ldr r3, [r7, #8] - 8008a9a: 681b ldr r3, [r3, #0] - 8008a9c: 60bb str r3, [r7, #8] + 8008a94: 68bb ldr r3, [r7, #8] + 8008a96: 681b ldr r3, [r3, #0] + 8008a98: 60bb str r3, [r7, #8] clen = pbuf_clen(next->p); - 8008a9e: 697b ldr r3, [r7, #20] - 8008aa0: 685b ldr r3, [r3, #4] - 8008aa2: 4618 mov r0, r3 - 8008aa4: f7fd f802 bl 8005aac - 8008aa8: 4603 mov r3, r0 - 8008aaa: 827b strh r3, [r7, #18] + 8008a9a: 697b ldr r3, [r7, #20] + 8008a9c: 685b ldr r3, [r3, #4] + 8008a9e: 4618 mov r0, r3 + 8008aa0: f7fd f802 bl 8005aa8 + 8008aa4: 4603 mov r3, r0 + 8008aa6: 827b strh r3, [r7, #18] LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_receive: queuelen %"TCPWNDSIZE_F" ... ", (tcpwnd_size_t)pcb->snd_queuelen)); LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= clen)); - 8008aac: 68fb ldr r3, [r7, #12] - 8008aae: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8008ab2: 8a7a ldrh r2, [r7, #18] - 8008ab4: 429a cmp r2, r3 - 8008ab6: d906 bls.n 8008ac6 - 8008ab8: 4b2a ldr r3, [pc, #168] ; (8008b64 ) - 8008aba: f240 4257 movw r2, #1111 ; 0x457 - 8008abe: 492a ldr r1, [pc, #168] ; (8008b68 ) - 8008ac0: 482a ldr r0, [pc, #168] ; (8008b6c ) - 8008ac2: f007 fc87 bl 80103d4 + 8008aa8: 68fb ldr r3, [r7, #12] + 8008aaa: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 8008aae: 8a7a ldrh r2, [r7, #18] + 8008ab0: 429a cmp r2, r3 + 8008ab2: d906 bls.n 8008ac2 + 8008ab4: 4b2a ldr r3, [pc, #168] ; (8008b60 ) + 8008ab6: f240 4257 movw r2, #1111 ; 0x457 + 8008aba: 492a ldr r1, [pc, #168] ; (8008b64 ) + 8008abc: 482a ldr r0, [pc, #168] ; (8008b68 ) + 8008abe: f007 fc87 bl 80103d0 pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen); - 8008ac6: 68fb ldr r3, [r7, #12] - 8008ac8: f8b3 2066 ldrh.w r2, [r3, #102] ; 0x66 - 8008acc: 8a7b ldrh r3, [r7, #18] - 8008ace: 1ad3 subs r3, r2, r3 - 8008ad0: b29a uxth r2, r3 - 8008ad2: 68fb ldr r3, [r7, #12] - 8008ad4: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 8008ac2: 68fb ldr r3, [r7, #12] + 8008ac4: f8b3 2066 ldrh.w r2, [r3, #102] ; 0x66 + 8008ac8: 8a7b ldrh r3, [r7, #18] + 8008aca: 1ad3 subs r3, r2, r3 + 8008acc: b29a uxth r2, r3 + 8008ace: 68fb ldr r3, [r7, #12] + 8008ad0: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 recv_acked = (tcpwnd_size_t)(recv_acked + next->len); - 8008ad8: 697b ldr r3, [r7, #20] - 8008ada: 891a ldrh r2, [r3, #8] - 8008adc: 4b24 ldr r3, [pc, #144] ; (8008b70 ) - 8008ade: 881b ldrh r3, [r3, #0] - 8008ae0: 4413 add r3, r2 - 8008ae2: b29a uxth r2, r3 - 8008ae4: 4b22 ldr r3, [pc, #136] ; (8008b70 ) - 8008ae6: 801a strh r2, [r3, #0] + 8008ad4: 697b ldr r3, [r7, #20] + 8008ad6: 891a ldrh r2, [r3, #8] + 8008ad8: 4b24 ldr r3, [pc, #144] ; (8008b6c ) + 8008ada: 881b ldrh r3, [r3, #0] + 8008adc: 4413 add r3, r2 + 8008ade: b29a uxth r2, r3 + 8008ae0: 4b22 ldr r3, [pc, #136] ; (8008b6c ) + 8008ae2: 801a strh r2, [r3, #0] tcp_seg_free(next); - 8008ae8: 6978 ldr r0, [r7, #20] - 8008aea: f7fe f9da bl 8006ea2 + 8008ae4: 6978 ldr r0, [r7, #20] + 8008ae6: f7fe f9da bl 8006e9e LWIP_DEBUGF(TCP_QLEN_DEBUG, ("%"TCPWNDSIZE_F" (after freeing %s)\n", (tcpwnd_size_t)pcb->snd_queuelen, dbg_list_name)); if (pcb->snd_queuelen != 0) { - 8008aee: 68fb ldr r3, [r7, #12] - 8008af0: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8008af4: 2b00 cmp r3, #0 - 8008af6: d00c beq.n 8008b12 + 8008aea: 68fb ldr r3, [r7, #12] + 8008aec: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 8008af0: 2b00 cmp r3, #0 + 8008af2: d00c beq.n 8008b0e LWIP_ASSERT("tcp_receive: valid queue length", - 8008af8: 68bb ldr r3, [r7, #8] - 8008afa: 2b00 cmp r3, #0 - 8008afc: d109 bne.n 8008b12 - 8008afe: 683b ldr r3, [r7, #0] - 8008b00: 2b00 cmp r3, #0 - 8008b02: d106 bne.n 8008b12 - 8008b04: 4b17 ldr r3, [pc, #92] ; (8008b64 ) - 8008b06: f240 4261 movw r2, #1121 ; 0x461 - 8008b0a: 491a ldr r1, [pc, #104] ; (8008b74 ) - 8008b0c: 4817 ldr r0, [pc, #92] ; (8008b6c ) - 8008b0e: f007 fc61 bl 80103d4 + 8008af4: 68bb ldr r3, [r7, #8] + 8008af6: 2b00 cmp r3, #0 + 8008af8: d109 bne.n 8008b0e + 8008afa: 683b ldr r3, [r7, #0] + 8008afc: 2b00 cmp r3, #0 + 8008afe: d106 bne.n 8008b0e + 8008b00: 4b17 ldr r3, [pc, #92] ; (8008b60 ) + 8008b02: f240 4261 movw r2, #1121 ; 0x461 + 8008b06: 491a ldr r1, [pc, #104] ; (8008b70 ) + 8008b08: 4817 ldr r0, [pc, #92] ; (8008b68 ) + 8008b0a: f007 fc61 bl 80103d0 while (seg_list != NULL && - 8008b12: 68bb ldr r3, [r7, #8] - 8008b14: 2b00 cmp r3, #0 - 8008b16: d020 beq.n 8008b5a + 8008b0e: 68bb ldr r3, [r7, #8] + 8008b10: 2b00 cmp r3, #0 + 8008b12: d020 beq.n 8008b56 TCP_SEQ_LEQ(lwip_ntohl(seg_list->tcphdr->seqno) + - 8008b18: 68bb ldr r3, [r7, #8] - 8008b1a: 68db ldr r3, [r3, #12] - 8008b1c: 685b ldr r3, [r3, #4] - 8008b1e: 4618 mov r0, r3 - 8008b20: f7fb fbe7 bl 80042f2 - 8008b24: 4604 mov r4, r0 - 8008b26: 68bb ldr r3, [r7, #8] - 8008b28: 891b ldrh r3, [r3, #8] - 8008b2a: 461d mov r5, r3 - 8008b2c: 68bb ldr r3, [r7, #8] - 8008b2e: 68db ldr r3, [r3, #12] - 8008b30: 899b ldrh r3, [r3, #12] - 8008b32: b29b uxth r3, r3 - 8008b34: 4618 mov r0, r3 - 8008b36: f7fb fbc7 bl 80042c8 - 8008b3a: 4603 mov r3, r0 - 8008b3c: b2db uxtb r3, r3 - 8008b3e: f003 0303 and.w r3, r3, #3 - 8008b42: 2b00 cmp r3, #0 - 8008b44: d001 beq.n 8008b4a - 8008b46: 2301 movs r3, #1 - 8008b48: e000 b.n 8008b4c - 8008b4a: 2300 movs r3, #0 - 8008b4c: 442b add r3, r5 - 8008b4e: 18e2 adds r2, r4, r3 - 8008b50: 4b09 ldr r3, [pc, #36] ; (8008b78 ) - 8008b52: 681b ldr r3, [r3, #0] - 8008b54: 1ad3 subs r3, r2, r3 + 8008b14: 68bb ldr r3, [r7, #8] + 8008b16: 68db ldr r3, [r3, #12] + 8008b18: 685b ldr r3, [r3, #4] + 8008b1a: 4618 mov r0, r3 + 8008b1c: f7fb fbe7 bl 80042ee + 8008b20: 4604 mov r4, r0 + 8008b22: 68bb ldr r3, [r7, #8] + 8008b24: 891b ldrh r3, [r3, #8] + 8008b26: 461d mov r5, r3 + 8008b28: 68bb ldr r3, [r7, #8] + 8008b2a: 68db ldr r3, [r3, #12] + 8008b2c: 899b ldrh r3, [r3, #12] + 8008b2e: b29b uxth r3, r3 + 8008b30: 4618 mov r0, r3 + 8008b32: f7fb fbc7 bl 80042c4 + 8008b36: 4603 mov r3, r0 + 8008b38: b2db uxtb r3, r3 + 8008b3a: f003 0303 and.w r3, r3, #3 + 8008b3e: 2b00 cmp r3, #0 + 8008b40: d001 beq.n 8008b46 + 8008b42: 2301 movs r3, #1 + 8008b44: e000 b.n 8008b48 + 8008b46: 2300 movs r3, #0 + 8008b48: 442b add r3, r5 + 8008b4a: 18e2 adds r2, r4, r3 + 8008b4c: 4b09 ldr r3, [pc, #36] ; (8008b74 ) + 8008b4e: 681b ldr r3, [r3, #0] + 8008b50: 1ad3 subs r3, r2, r3 while (seg_list != NULL && - 8008b56: 2b00 cmp r3, #0 - 8008b58: dd9c ble.n 8008a94 + 8008b52: 2b00 cmp r3, #0 + 8008b54: dd9c ble.n 8008a90 seg_list != NULL || dbg_other_seg_list != NULL); } } return seg_list; - 8008b5a: 68bb ldr r3, [r7, #8] + 8008b56: 68bb ldr r3, [r7, #8] } - 8008b5c: 4618 mov r0, r3 - 8008b5e: 3718 adds r7, #24 - 8008b60: 46bd mov sp, r7 - 8008b62: bdb0 pop {r4, r5, r7, pc} - 8008b64: 08016124 .word 0x08016124 - 8008b68: 0801640c .word 0x0801640c - 8008b6c: 08016170 .word 0x08016170 - 8008b70: 20008c40 .word 0x20008c40 - 8008b74: 08016434 .word 0x08016434 - 8008b78: 20008c3c .word 0x20008c3c + 8008b58: 4618 mov r0, r3 + 8008b5a: 3718 adds r7, #24 + 8008b5c: 46bd mov sp, r7 + 8008b5e: bdb0 pop {r4, r5, r7, pc} + 8008b60: 08016124 .word 0x08016124 + 8008b64: 0801640c .word 0x0801640c + 8008b68: 08016170 .word 0x08016170 + 8008b6c: 20008c40 .word 0x20008c40 + 8008b70: 08016434 .word 0x08016434 + 8008b74: 20008c3c .word 0x20008c3c -08008b7c : +08008b78 : * * Called from tcp_process(). */ static void tcp_receive(struct tcp_pcb *pcb) { - 8008b7c: b5b0 push {r4, r5, r7, lr} - 8008b7e: b094 sub sp, #80 ; 0x50 - 8008b80: af00 add r7, sp, #0 - 8008b82: 6078 str r0, [r7, #4] + 8008b78: b5b0 push {r4, r5, r7, lr} + 8008b7a: b094 sub sp, #80 ; 0x50 + 8008b7c: af00 add r7, sp, #0 + 8008b7e: 6078 str r0, [r7, #4] s16_t m; u32_t right_wnd_edge; int found_dupack = 0; - 8008b84: 2300 movs r3, #0 - 8008b86: 64bb str r3, [r7, #72] ; 0x48 + 8008b80: 2300 movs r3, #0 + 8008b82: 64bb str r3, [r7, #72] ; 0x48 LWIP_ASSERT("tcp_receive: invalid pcb", pcb != NULL); - 8008b88: 687b ldr r3, [r7, #4] - 8008b8a: 2b00 cmp r3, #0 - 8008b8c: d106 bne.n 8008b9c - 8008b8e: 4b91 ldr r3, [pc, #580] ; (8008dd4 ) - 8008b90: f240 427b movw r2, #1147 ; 0x47b - 8008b94: 4990 ldr r1, [pc, #576] ; (8008dd8 ) - 8008b96: 4891 ldr r0, [pc, #580] ; (8008ddc ) - 8008b98: f007 fc1c bl 80103d4 + 8008b84: 687b ldr r3, [r7, #4] + 8008b86: 2b00 cmp r3, #0 + 8008b88: d106 bne.n 8008b98 + 8008b8a: 4b91 ldr r3, [pc, #580] ; (8008dd0 ) + 8008b8c: f240 427b movw r2, #1147 ; 0x47b + 8008b90: 4990 ldr r1, [pc, #576] ; (8008dd4 ) + 8008b92: 4891 ldr r0, [pc, #580] ; (8008dd8 ) + 8008b94: f007 fc1c bl 80103d0 LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED); - 8008b9c: 687b ldr r3, [r7, #4] - 8008b9e: 7d1b ldrb r3, [r3, #20] - 8008ba0: 2b03 cmp r3, #3 - 8008ba2: d806 bhi.n 8008bb2 - 8008ba4: 4b8b ldr r3, [pc, #556] ; (8008dd4 ) - 8008ba6: f240 427c movw r2, #1148 ; 0x47c - 8008baa: 498d ldr r1, [pc, #564] ; (8008de0 ) - 8008bac: 488b ldr r0, [pc, #556] ; (8008ddc ) - 8008bae: f007 fc11 bl 80103d4 + 8008b98: 687b ldr r3, [r7, #4] + 8008b9a: 7d1b ldrb r3, [r3, #20] + 8008b9c: 2b03 cmp r3, #3 + 8008b9e: d806 bhi.n 8008bae + 8008ba0: 4b8b ldr r3, [pc, #556] ; (8008dd0 ) + 8008ba2: f240 427c movw r2, #1148 ; 0x47c + 8008ba6: 498d ldr r1, [pc, #564] ; (8008ddc ) + 8008ba8: 488b ldr r0, [pc, #556] ; (8008dd8 ) + 8008baa: f007 fc11 bl 80103d0 if (flags & TCP_ACK) { - 8008bb2: 4b8c ldr r3, [pc, #560] ; (8008de4 ) - 8008bb4: 781b ldrb r3, [r3, #0] - 8008bb6: f003 0310 and.w r3, r3, #16 - 8008bba: 2b00 cmp r3, #0 - 8008bbc: f000 8264 beq.w 8009088 + 8008bae: 4b8c ldr r3, [pc, #560] ; (8008de0 ) + 8008bb0: 781b ldrb r3, [r3, #0] + 8008bb2: f003 0310 and.w r3, r3, #16 + 8008bb6: 2b00 cmp r3, #0 + 8008bb8: f000 8264 beq.w 8009084 right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2; - 8008bc0: 687b ldr r3, [r7, #4] - 8008bc2: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8008bc6: 461a mov r2, r3 - 8008bc8: 687b ldr r3, [r7, #4] - 8008bca: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008bcc: 4413 add r3, r2 - 8008bce: 633b str r3, [r7, #48] ; 0x30 + 8008bbc: 687b ldr r3, [r7, #4] + 8008bbe: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8008bc2: 461a mov r2, r3 + 8008bc4: 687b ldr r3, [r7, #4] + 8008bc6: 6d9b ldr r3, [r3, #88] ; 0x58 + 8008bc8: 4413 add r3, r2 + 8008bca: 633b str r3, [r7, #48] ; 0x30 /* Update window. */ if (TCP_SEQ_LT(pcb->snd_wl1, seqno) || - 8008bd0: 687b ldr r3, [r7, #4] - 8008bd2: 6d5a ldr r2, [r3, #84] ; 0x54 - 8008bd4: 4b84 ldr r3, [pc, #528] ; (8008de8 ) - 8008bd6: 681b ldr r3, [r3, #0] - 8008bd8: 1ad3 subs r3, r2, r3 - 8008bda: 2b00 cmp r3, #0 - 8008bdc: db1b blt.n 8008c16 + 8008bcc: 687b ldr r3, [r7, #4] + 8008bce: 6d5a ldr r2, [r3, #84] ; 0x54 + 8008bd0: 4b84 ldr r3, [pc, #528] ; (8008de4 ) + 8008bd2: 681b ldr r3, [r3, #0] + 8008bd4: 1ad3 subs r3, r2, r3 + 8008bd6: 2b00 cmp r3, #0 + 8008bd8: db1b blt.n 8008c12 (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 8008bde: 687b ldr r3, [r7, #4] - 8008be0: 6d5a ldr r2, [r3, #84] ; 0x54 - 8008be2: 4b81 ldr r3, [pc, #516] ; (8008de8 ) - 8008be4: 681b ldr r3, [r3, #0] + 8008bda: 687b ldr r3, [r7, #4] + 8008bdc: 6d5a ldr r2, [r3, #84] ; 0x54 + 8008bde: 4b81 ldr r3, [pc, #516] ; (8008de4 ) + 8008be0: 681b ldr r3, [r3, #0] if (TCP_SEQ_LT(pcb->snd_wl1, seqno) || - 8008be6: 429a cmp r2, r3 - 8008be8: d106 bne.n 8008bf8 + 8008be2: 429a cmp r2, r3 + 8008be4: d106 bne.n 8008bf4 (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 8008bea: 687b ldr r3, [r7, #4] - 8008bec: 6d9a ldr r2, [r3, #88] ; 0x58 - 8008bee: 4b7f ldr r3, [pc, #508] ; (8008dec ) - 8008bf0: 681b ldr r3, [r3, #0] - 8008bf2: 1ad3 subs r3, r2, r3 - 8008bf4: 2b00 cmp r3, #0 - 8008bf6: db0e blt.n 8008c16 + 8008be6: 687b ldr r3, [r7, #4] + 8008be8: 6d9a ldr r2, [r3, #88] ; 0x58 + 8008bea: 4b7f ldr r3, [pc, #508] ; (8008de8 ) + 8008bec: 681b ldr r3, [r3, #0] + 8008bee: 1ad3 subs r3, r2, r3 + 8008bf0: 2b00 cmp r3, #0 + 8008bf2: db0e blt.n 8008c12 (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) { - 8008bf8: 687b ldr r3, [r7, #4] - 8008bfa: 6d9a ldr r2, [r3, #88] ; 0x58 - 8008bfc: 4b7b ldr r3, [pc, #492] ; (8008dec ) - 8008bfe: 681b ldr r3, [r3, #0] + 8008bf4: 687b ldr r3, [r7, #4] + 8008bf6: 6d9a ldr r2, [r3, #88] ; 0x58 + 8008bf8: 4b7b ldr r3, [pc, #492] ; (8008de8 ) + 8008bfa: 681b ldr r3, [r3, #0] (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 8008c00: 429a cmp r2, r3 - 8008c02: d125 bne.n 8008c50 + 8008bfc: 429a cmp r2, r3 + 8008bfe: d125 bne.n 8008c4c (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) { - 8008c04: 4b7a ldr r3, [pc, #488] ; (8008df0 ) - 8008c06: 681b ldr r3, [r3, #0] - 8008c08: 89db ldrh r3, [r3, #14] - 8008c0a: b29a uxth r2, r3 - 8008c0c: 687b ldr r3, [r7, #4] - 8008c0e: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8008c12: 429a cmp r2, r3 - 8008c14: d91c bls.n 8008c50 + 8008c00: 4b7a ldr r3, [pc, #488] ; (8008dec ) + 8008c02: 681b ldr r3, [r3, #0] + 8008c04: 89db ldrh r3, [r3, #14] + 8008c06: b29a uxth r2, r3 + 8008c08: 687b ldr r3, [r7, #4] + 8008c0a: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8008c0e: 429a cmp r2, r3 + 8008c10: d91c bls.n 8008c4c pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd); - 8008c16: 4b76 ldr r3, [pc, #472] ; (8008df0 ) - 8008c18: 681b ldr r3, [r3, #0] - 8008c1a: 89db ldrh r3, [r3, #14] - 8008c1c: b29a uxth r2, r3 - 8008c1e: 687b ldr r3, [r7, #4] - 8008c20: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 + 8008c12: 4b76 ldr r3, [pc, #472] ; (8008dec ) + 8008c14: 681b ldr r3, [r3, #0] + 8008c16: 89db ldrh r3, [r3, #14] + 8008c18: b29a uxth r2, r3 + 8008c1a: 687b ldr r3, [r7, #4] + 8008c1c: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 /* keep track of the biggest window announced by the remote host to calculate the maximum segment size */ if (pcb->snd_wnd_max < pcb->snd_wnd) { - 8008c24: 687b ldr r3, [r7, #4] - 8008c26: f8b3 2062 ldrh.w r2, [r3, #98] ; 0x62 - 8008c2a: 687b ldr r3, [r7, #4] - 8008c2c: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8008c30: 429a cmp r2, r3 - 8008c32: d205 bcs.n 8008c40 + 8008c20: 687b ldr r3, [r7, #4] + 8008c22: f8b3 2062 ldrh.w r2, [r3, #98] ; 0x62 + 8008c26: 687b ldr r3, [r7, #4] + 8008c28: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8008c2c: 429a cmp r2, r3 + 8008c2e: d205 bcs.n 8008c3c pcb->snd_wnd_max = pcb->snd_wnd; - 8008c34: 687b ldr r3, [r7, #4] - 8008c36: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 8008c3a: 687b ldr r3, [r7, #4] - 8008c3c: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 + 8008c30: 687b ldr r3, [r7, #4] + 8008c32: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 8008c36: 687b ldr r3, [r7, #4] + 8008c38: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 } pcb->snd_wl1 = seqno; - 8008c40: 4b69 ldr r3, [pc, #420] ; (8008de8 ) - 8008c42: 681a ldr r2, [r3, #0] - 8008c44: 687b ldr r3, [r7, #4] - 8008c46: 655a str r2, [r3, #84] ; 0x54 + 8008c3c: 4b69 ldr r3, [pc, #420] ; (8008de4 ) + 8008c3e: 681a ldr r2, [r3, #0] + 8008c40: 687b ldr r3, [r7, #4] + 8008c42: 655a str r2, [r3, #84] ; 0x54 pcb->snd_wl2 = ackno; - 8008c48: 4b68 ldr r3, [pc, #416] ; (8008dec ) - 8008c4a: 681a ldr r2, [r3, #0] - 8008c4c: 687b ldr r3, [r7, #4] - 8008c4e: 659a str r2, [r3, #88] ; 0x58 + 8008c44: 4b68 ldr r3, [pc, #416] ; (8008de8 ) + 8008c46: 681a ldr r2, [r3, #0] + 8008c48: 687b ldr r3, [r7, #4] + 8008c4a: 659a str r2, [r3, #88] ; 0x58 * If it only passes 1, should reset dupack counter * */ /* Clause 1 */ if (TCP_SEQ_LEQ(ackno, pcb->lastack)) { - 8008c50: 4b66 ldr r3, [pc, #408] ; (8008dec ) - 8008c52: 681a ldr r2, [r3, #0] - 8008c54: 687b ldr r3, [r7, #4] - 8008c56: 6c5b ldr r3, [r3, #68] ; 0x44 - 8008c58: 1ad3 subs r3, r2, r3 - 8008c5a: 2b00 cmp r3, #0 - 8008c5c: dc58 bgt.n 8008d10 + 8008c4c: 4b66 ldr r3, [pc, #408] ; (8008de8 ) + 8008c4e: 681a ldr r2, [r3, #0] + 8008c50: 687b ldr r3, [r7, #4] + 8008c52: 6c5b ldr r3, [r3, #68] ; 0x44 + 8008c54: 1ad3 subs r3, r2, r3 + 8008c56: 2b00 cmp r3, #0 + 8008c58: dc58 bgt.n 8008d0c /* Clause 2 */ if (tcplen == 0) { - 8008c5e: 4b65 ldr r3, [pc, #404] ; (8008df4 ) - 8008c60: 881b ldrh r3, [r3, #0] - 8008c62: 2b00 cmp r3, #0 - 8008c64: d14b bne.n 8008cfe + 8008c5a: 4b65 ldr r3, [pc, #404] ; (8008df0 ) + 8008c5c: 881b ldrh r3, [r3, #0] + 8008c5e: 2b00 cmp r3, #0 + 8008c60: d14b bne.n 8008cfa /* Clause 3 */ if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge) { - 8008c66: 687b ldr r3, [r7, #4] - 8008c68: 6d9b ldr r3, [r3, #88] ; 0x58 - 8008c6a: 687a ldr r2, [r7, #4] - 8008c6c: f8b2 2060 ldrh.w r2, [r2, #96] ; 0x60 - 8008c70: 4413 add r3, r2 - 8008c72: 6b3a ldr r2, [r7, #48] ; 0x30 - 8008c74: 429a cmp r2, r3 - 8008c76: d142 bne.n 8008cfe + 8008c62: 687b ldr r3, [r7, #4] + 8008c64: 6d9b ldr r3, [r3, #88] ; 0x58 + 8008c66: 687a ldr r2, [r7, #4] + 8008c68: f8b2 2060 ldrh.w r2, [r2, #96] ; 0x60 + 8008c6c: 4413 add r3, r2 + 8008c6e: 6b3a ldr r2, [r7, #48] ; 0x30 + 8008c70: 429a cmp r2, r3 + 8008c72: d142 bne.n 8008cfa /* Clause 4 */ if (pcb->rtime >= 0) { - 8008c78: 687b ldr r3, [r7, #4] - 8008c7a: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8008c7e: 2b00 cmp r3, #0 - 8008c80: db3d blt.n 8008cfe + 8008c74: 687b ldr r3, [r7, #4] + 8008c76: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 8008c7a: 2b00 cmp r3, #0 + 8008c7c: db3d blt.n 8008cfa /* Clause 5 */ if (pcb->lastack == ackno) { - 8008c82: 687b ldr r3, [r7, #4] - 8008c84: 6c5a ldr r2, [r3, #68] ; 0x44 - 8008c86: 4b59 ldr r3, [pc, #356] ; (8008dec ) - 8008c88: 681b ldr r3, [r3, #0] - 8008c8a: 429a cmp r2, r3 - 8008c8c: d137 bne.n 8008cfe + 8008c7e: 687b ldr r3, [r7, #4] + 8008c80: 6c5a ldr r2, [r3, #68] ; 0x44 + 8008c82: 4b59 ldr r3, [pc, #356] ; (8008de8 ) + 8008c84: 681b ldr r3, [r3, #0] + 8008c86: 429a cmp r2, r3 + 8008c88: d137 bne.n 8008cfa found_dupack = 1; - 8008c8e: 2301 movs r3, #1 - 8008c90: 64bb str r3, [r7, #72] ; 0x48 + 8008c8a: 2301 movs r3, #1 + 8008c8c: 64bb str r3, [r7, #72] ; 0x48 if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) { - 8008c92: 687b ldr r3, [r7, #4] - 8008c94: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 8008c98: 2bff cmp r3, #255 ; 0xff - 8008c9a: d007 beq.n 8008cac + 8008c8e: 687b ldr r3, [r7, #4] + 8008c90: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 + 8008c94: 2bff cmp r3, #255 ; 0xff + 8008c96: d007 beq.n 8008ca8 ++pcb->dupacks; - 8008c9c: 687b ldr r3, [r7, #4] - 8008c9e: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 8008ca2: 3301 adds r3, #1 - 8008ca4: b2da uxtb r2, r3 - 8008ca6: 687b ldr r3, [r7, #4] - 8008ca8: f883 2043 strb.w r2, [r3, #67] ; 0x43 + 8008c98: 687b ldr r3, [r7, #4] + 8008c9a: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 + 8008c9e: 3301 adds r3, #1 + 8008ca0: b2da uxtb r2, r3 + 8008ca2: 687b ldr r3, [r7, #4] + 8008ca4: f883 2043 strb.w r2, [r3, #67] ; 0x43 } if (pcb->dupacks > 3) { - 8008cac: 687b ldr r3, [r7, #4] - 8008cae: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 8008cb2: 2b03 cmp r3, #3 - 8008cb4: d91b bls.n 8008cee + 8008ca8: 687b ldr r3, [r7, #4] + 8008caa: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 + 8008cae: 2b03 cmp r3, #3 + 8008cb0: d91b bls.n 8008cea /* Inflate the congestion window */ TCP_WND_INC(pcb->cwnd, pcb->mss); - 8008cb6: 687b ldr r3, [r7, #4] - 8008cb8: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8008cbc: 687b ldr r3, [r7, #4] - 8008cbe: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8008cc0: 4413 add r3, r2 - 8008cc2: b29a uxth r2, r3 - 8008cc4: 687b ldr r3, [r7, #4] - 8008cc6: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8008cca: 429a cmp r2, r3 - 8008ccc: d30a bcc.n 8008ce4 - 8008cce: 687b ldr r3, [r7, #4] - 8008cd0: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8008cd4: 687b ldr r3, [r7, #4] - 8008cd6: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8008cd8: 4413 add r3, r2 - 8008cda: b29a uxth r2, r3 - 8008cdc: 687b ldr r3, [r7, #4] - 8008cde: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 8008ce2: e004 b.n 8008cee - 8008ce4: 687b ldr r3, [r7, #4] - 8008ce6: f64f 72ff movw r2, #65535 ; 0xffff - 8008cea: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8008cb2: 687b ldr r3, [r7, #4] + 8008cb4: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8008cb8: 687b ldr r3, [r7, #4] + 8008cba: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8008cbc: 4413 add r3, r2 + 8008cbe: b29a uxth r2, r3 + 8008cc0: 687b ldr r3, [r7, #4] + 8008cc2: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8008cc6: 429a cmp r2, r3 + 8008cc8: d30a bcc.n 8008ce0 + 8008cca: 687b ldr r3, [r7, #4] + 8008ccc: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8008cd0: 687b ldr r3, [r7, #4] + 8008cd2: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8008cd4: 4413 add r3, r2 + 8008cd6: b29a uxth r2, r3 + 8008cd8: 687b ldr r3, [r7, #4] + 8008cda: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8008cde: e004 b.n 8008cea + 8008ce0: 687b ldr r3, [r7, #4] + 8008ce2: f64f 72ff movw r2, #65535 ; 0xffff + 8008ce6: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 } if (pcb->dupacks >= 3) { - 8008cee: 687b ldr r3, [r7, #4] - 8008cf0: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 8008cf4: 2b02 cmp r3, #2 - 8008cf6: d902 bls.n 8008cfe + 8008cea: 687b ldr r3, [r7, #4] + 8008cec: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 + 8008cf0: 2b02 cmp r3, #2 + 8008cf2: d902 bls.n 8008cfa /* Do fast retransmit (checked via TF_INFR, not via dupacks count) */ tcp_rexmit_fast(pcb); - 8008cf8: 6878 ldr r0, [r7, #4] - 8008cfa: f001 feeb bl 800aad4 + 8008cf4: 6878 ldr r0, [r7, #4] + 8008cf6: f001 feeb bl 800aad0 } } } /* If Clause (1) or more is true, but not a duplicate ack, reset * count of consecutive duplicate acks */ if (!found_dupack) { - 8008cfe: 6cbb ldr r3, [r7, #72] ; 0x48 - 8008d00: 2b00 cmp r3, #0 - 8008d02: f040 8161 bne.w 8008fc8 + 8008cfa: 6cbb ldr r3, [r7, #72] ; 0x48 + 8008cfc: 2b00 cmp r3, #0 + 8008cfe: f040 8161 bne.w 8008fc4 pcb->dupacks = 0; - 8008d06: 687b ldr r3, [r7, #4] - 8008d08: 2200 movs r2, #0 - 8008d0a: f883 2043 strb.w r2, [r3, #67] ; 0x43 - 8008d0e: e15b b.n 8008fc8 + 8008d02: 687b ldr r3, [r7, #4] + 8008d04: 2200 movs r2, #0 + 8008d06: f883 2043 strb.w r2, [r3, #67] ; 0x43 + 8008d0a: e15b b.n 8008fc4 } } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 8008d10: 4b36 ldr r3, [pc, #216] ; (8008dec ) - 8008d12: 681a ldr r2, [r3, #0] - 8008d14: 687b ldr r3, [r7, #4] - 8008d16: 6c5b ldr r3, [r3, #68] ; 0x44 - 8008d18: 1ad3 subs r3, r2, r3 - 8008d1a: 3b01 subs r3, #1 - 8008d1c: 2b00 cmp r3, #0 - 8008d1e: f2c0 814e blt.w 8008fbe - 8008d22: 4b32 ldr r3, [pc, #200] ; (8008dec ) - 8008d24: 681a ldr r2, [r3, #0] - 8008d26: 687b ldr r3, [r7, #4] - 8008d28: 6d1b ldr r3, [r3, #80] ; 0x50 - 8008d2a: 1ad3 subs r3, r2, r3 - 8008d2c: 2b00 cmp r3, #0 - 8008d2e: f300 8146 bgt.w 8008fbe + 8008d0c: 4b36 ldr r3, [pc, #216] ; (8008de8 ) + 8008d0e: 681a ldr r2, [r3, #0] + 8008d10: 687b ldr r3, [r7, #4] + 8008d12: 6c5b ldr r3, [r3, #68] ; 0x44 + 8008d14: 1ad3 subs r3, r2, r3 + 8008d16: 3b01 subs r3, #1 + 8008d18: 2b00 cmp r3, #0 + 8008d1a: f2c0 814e blt.w 8008fba + 8008d1e: 4b32 ldr r3, [pc, #200] ; (8008de8 ) + 8008d20: 681a ldr r2, [r3, #0] + 8008d22: 687b ldr r3, [r7, #4] + 8008d24: 6d1b ldr r3, [r3, #80] ; 0x50 + 8008d26: 1ad3 subs r3, r2, r3 + 8008d28: 2b00 cmp r3, #0 + 8008d2a: f300 8146 bgt.w 8008fba tcpwnd_size_t acked; /* Reset the "IN Fast Retransmit" flag, since we are no longer in fast retransmit. Also reset the congestion window to the slow start threshold. */ if (pcb->flags & TF_INFR) { - 8008d32: 687b ldr r3, [r7, #4] - 8008d34: 8b5b ldrh r3, [r3, #26] - 8008d36: f003 0304 and.w r3, r3, #4 - 8008d3a: 2b00 cmp r3, #0 - 8008d3c: d010 beq.n 8008d60 + 8008d2e: 687b ldr r3, [r7, #4] + 8008d30: 8b5b ldrh r3, [r3, #26] + 8008d32: f003 0304 and.w r3, r3, #4 + 8008d36: 2b00 cmp r3, #0 + 8008d38: d010 beq.n 8008d5c tcp_clear_flags(pcb, TF_INFR); - 8008d3e: 687b ldr r3, [r7, #4] - 8008d40: 8b5b ldrh r3, [r3, #26] - 8008d42: f023 0304 bic.w r3, r3, #4 - 8008d46: b29a uxth r2, r3 - 8008d48: 687b ldr r3, [r7, #4] - 8008d4a: 835a strh r2, [r3, #26] + 8008d3a: 687b ldr r3, [r7, #4] + 8008d3c: 8b5b ldrh r3, [r3, #26] + 8008d3e: f023 0304 bic.w r3, r3, #4 + 8008d42: b29a uxth r2, r3 + 8008d44: 687b ldr r3, [r7, #4] + 8008d46: 835a strh r2, [r3, #26] pcb->cwnd = pcb->ssthresh; - 8008d4c: 687b ldr r3, [r7, #4] - 8008d4e: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 8008d52: 687b ldr r3, [r7, #4] - 8008d54: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8008d48: 687b ldr r3, [r7, #4] + 8008d4a: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a + 8008d4e: 687b ldr r3, [r7, #4] + 8008d50: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 pcb->bytes_acked = 0; - 8008d58: 687b ldr r3, [r7, #4] - 8008d5a: 2200 movs r2, #0 - 8008d5c: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + 8008d54: 687b ldr r3, [r7, #4] + 8008d56: 2200 movs r2, #0 + 8008d58: f8a3 206a strh.w r2, [r3, #106] ; 0x6a } /* Reset the number of retransmissions. */ pcb->nrtx = 0; - 8008d60: 687b ldr r3, [r7, #4] - 8008d62: 2200 movs r2, #0 - 8008d64: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8008d5c: 687b ldr r3, [r7, #4] + 8008d5e: 2200 movs r2, #0 + 8008d60: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Reset the retransmission time-out. */ pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); - 8008d68: 687b ldr r3, [r7, #4] - 8008d6a: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8008d6e: 10db asrs r3, r3, #3 - 8008d70: b21b sxth r3, r3 - 8008d72: b29a uxth r2, r3 - 8008d74: 687b ldr r3, [r7, #4] - 8008d76: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 8008d64: 687b ldr r3, [r7, #4] + 8008d66: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 8008d6a: 10db asrs r3, r3, #3 + 8008d6c: b21b sxth r3, r3 + 8008d6e: b29a uxth r2, r3 + 8008d70: 687b ldr r3, [r7, #4] + 8008d72: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 8008d76: b29b uxth r3, r3 + 8008d78: 4413 add r3, r2 8008d7a: b29b uxth r3, r3 - 8008d7c: 4413 add r3, r2 - 8008d7e: b29b uxth r3, r3 - 8008d80: b21a sxth r2, r3 - 8008d82: 687b ldr r3, [r7, #4] - 8008d84: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 + 8008d7c: b21a sxth r2, r3 + 8008d7e: 687b ldr r3, [r7, #4] + 8008d80: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 /* Record how much data this ACK acks */ acked = (tcpwnd_size_t)(ackno - pcb->lastack); - 8008d88: 4b18 ldr r3, [pc, #96] ; (8008dec ) - 8008d8a: 681b ldr r3, [r3, #0] - 8008d8c: b29a uxth r2, r3 - 8008d8e: 687b ldr r3, [r7, #4] - 8008d90: 6c5b ldr r3, [r3, #68] ; 0x44 - 8008d92: b29b uxth r3, r3 - 8008d94: 1ad3 subs r3, r2, r3 - 8008d96: 85fb strh r3, [r7, #46] ; 0x2e + 8008d84: 4b18 ldr r3, [pc, #96] ; (8008de8 ) + 8008d86: 681b ldr r3, [r3, #0] + 8008d88: b29a uxth r2, r3 + 8008d8a: 687b ldr r3, [r7, #4] + 8008d8c: 6c5b ldr r3, [r3, #68] ; 0x44 + 8008d8e: b29b uxth r3, r3 + 8008d90: 1ad3 subs r3, r2, r3 + 8008d92: 85fb strh r3, [r7, #46] ; 0x2e /* Reset the fast retransmit variables. */ pcb->dupacks = 0; - 8008d98: 687b ldr r3, [r7, #4] - 8008d9a: 2200 movs r2, #0 - 8008d9c: f883 2043 strb.w r2, [r3, #67] ; 0x43 + 8008d94: 687b ldr r3, [r7, #4] + 8008d96: 2200 movs r2, #0 + 8008d98: f883 2043 strb.w r2, [r3, #67] ; 0x43 pcb->lastack = ackno; - 8008da0: 4b12 ldr r3, [pc, #72] ; (8008dec ) - 8008da2: 681a ldr r2, [r3, #0] - 8008da4: 687b ldr r3, [r7, #4] - 8008da6: 645a str r2, [r3, #68] ; 0x44 + 8008d9c: 4b12 ldr r3, [pc, #72] ; (8008de8 ) + 8008d9e: 681a ldr r2, [r3, #0] + 8008da0: 687b ldr r3, [r7, #4] + 8008da2: 645a str r2, [r3, #68] ; 0x44 /* Update the congestion control variables (cwnd and ssthresh). */ if (pcb->state >= ESTABLISHED) { - 8008da8: 687b ldr r3, [r7, #4] - 8008daa: 7d1b ldrb r3, [r3, #20] - 8008dac: 2b03 cmp r3, #3 - 8008dae: f240 8097 bls.w 8008ee0 + 8008da4: 687b ldr r3, [r7, #4] + 8008da6: 7d1b ldrb r3, [r3, #20] + 8008da8: 2b03 cmp r3, #3 + 8008daa: f240 8097 bls.w 8008edc if (pcb->cwnd < pcb->ssthresh) { - 8008db2: 687b ldr r3, [r7, #4] - 8008db4: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8008db8: 687b ldr r3, [r7, #4] - 8008dba: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a - 8008dbe: 429a cmp r2, r3 - 8008dc0: d245 bcs.n 8008e4e + 8008dae: 687b ldr r3, [r7, #4] + 8008db0: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8008db4: 687b ldr r3, [r7, #4] + 8008db6: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a + 8008dba: 429a cmp r2, r3 + 8008dbc: d245 bcs.n 8008e4a tcpwnd_size_t increase; /* limit to 1 SMSS segment during period following RTO */ u8_t num_seg = (pcb->flags & TF_RTO) ? 1 : 2; - 8008dc2: 687b ldr r3, [r7, #4] - 8008dc4: 8b5b ldrh r3, [r3, #26] - 8008dc6: f403 6300 and.w r3, r3, #2048 ; 0x800 - 8008dca: 2b00 cmp r3, #0 - 8008dcc: d014 beq.n 8008df8 - 8008dce: 2301 movs r3, #1 - 8008dd0: e013 b.n 8008dfa - 8008dd2: bf00 nop - 8008dd4: 08016124 .word 0x08016124 - 8008dd8: 08016454 .word 0x08016454 - 8008ddc: 08016170 .word 0x08016170 - 8008de0: 08016470 .word 0x08016470 - 8008de4: 20008c44 .word 0x20008c44 - 8008de8: 20008c38 .word 0x20008c38 - 8008dec: 20008c3c .word 0x20008c3c - 8008df0: 20008c28 .word 0x20008c28 - 8008df4: 20008c42 .word 0x20008c42 - 8008df8: 2302 movs r3, #2 - 8008dfa: f887 302d strb.w r3, [r7, #45] ; 0x2d + 8008dbe: 687b ldr r3, [r7, #4] + 8008dc0: 8b5b ldrh r3, [r3, #26] + 8008dc2: f403 6300 and.w r3, r3, #2048 ; 0x800 + 8008dc6: 2b00 cmp r3, #0 + 8008dc8: d014 beq.n 8008df4 + 8008dca: 2301 movs r3, #1 + 8008dcc: e013 b.n 8008df6 + 8008dce: bf00 nop + 8008dd0: 08016124 .word 0x08016124 + 8008dd4: 08016454 .word 0x08016454 + 8008dd8: 08016170 .word 0x08016170 + 8008ddc: 08016470 .word 0x08016470 + 8008de0: 20008c44 .word 0x20008c44 + 8008de4: 20008c38 .word 0x20008c38 + 8008de8: 20008c3c .word 0x20008c3c + 8008dec: 20008c28 .word 0x20008c28 + 8008df0: 20008c42 .word 0x20008c42 + 8008df4: 2302 movs r3, #2 + 8008df6: f887 302d strb.w r3, [r7, #45] ; 0x2d /* RFC 3465, section 2.2 Slow Start */ increase = LWIP_MIN(acked, (tcpwnd_size_t)(num_seg * pcb->mss)); - 8008dfe: f897 302d ldrb.w r3, [r7, #45] ; 0x2d - 8008e02: b29a uxth r2, r3 - 8008e04: 687b ldr r3, [r7, #4] - 8008e06: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8008e08: fb12 f303 smulbb r3, r2, r3 - 8008e0c: b29b uxth r3, r3 - 8008e0e: 8dfa ldrh r2, [r7, #46] ; 0x2e - 8008e10: 4293 cmp r3, r2 - 8008e12: bf28 it cs - 8008e14: 4613 movcs r3, r2 - 8008e16: 857b strh r3, [r7, #42] ; 0x2a + 8008dfa: f897 302d ldrb.w r3, [r7, #45] ; 0x2d + 8008dfe: b29a uxth r2, r3 + 8008e00: 687b ldr r3, [r7, #4] + 8008e02: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8008e04: fb12 f303 smulbb r3, r2, r3 + 8008e08: b29b uxth r3, r3 + 8008e0a: 8dfa ldrh r2, [r7, #46] ; 0x2e + 8008e0c: 4293 cmp r3, r2 + 8008e0e: bf28 it cs + 8008e10: 4613 movcs r3, r2 + 8008e12: 857b strh r3, [r7, #42] ; 0x2a TCP_WND_INC(pcb->cwnd, increase); - 8008e18: 687b ldr r3, [r7, #4] - 8008e1a: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8008e1e: 8d7b ldrh r3, [r7, #42] ; 0x2a - 8008e20: 4413 add r3, r2 - 8008e22: b29a uxth r2, r3 - 8008e24: 687b ldr r3, [r7, #4] - 8008e26: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8008e2a: 429a cmp r2, r3 - 8008e2c: d309 bcc.n 8008e42 - 8008e2e: 687b ldr r3, [r7, #4] - 8008e30: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8008e34: 8d7b ldrh r3, [r7, #42] ; 0x2a - 8008e36: 4413 add r3, r2 - 8008e38: b29a uxth r2, r3 - 8008e3a: 687b ldr r3, [r7, #4] - 8008e3c: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 8008e40: e04e b.n 8008ee0 - 8008e42: 687b ldr r3, [r7, #4] - 8008e44: f64f 72ff movw r2, #65535 ; 0xffff - 8008e48: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 8008e4c: e048 b.n 8008ee0 + 8008e14: 687b ldr r3, [r7, #4] + 8008e16: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8008e1a: 8d7b ldrh r3, [r7, #42] ; 0x2a + 8008e1c: 4413 add r3, r2 + 8008e1e: b29a uxth r2, r3 + 8008e20: 687b ldr r3, [r7, #4] + 8008e22: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8008e26: 429a cmp r2, r3 + 8008e28: d309 bcc.n 8008e3e + 8008e2a: 687b ldr r3, [r7, #4] + 8008e2c: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8008e30: 8d7b ldrh r3, [r7, #42] ; 0x2a + 8008e32: 4413 add r3, r2 + 8008e34: b29a uxth r2, r3 + 8008e36: 687b ldr r3, [r7, #4] + 8008e38: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8008e3c: e04e b.n 8008edc + 8008e3e: 687b ldr r3, [r7, #4] + 8008e40: f64f 72ff movw r2, #65535 ; 0xffff + 8008e44: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8008e48: e048 b.n 8008edc LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_receive: slow start cwnd %"TCPWNDSIZE_F"\n", pcb->cwnd)); } else { /* RFC 3465, section 2.1 Congestion Avoidance */ TCP_WND_INC(pcb->bytes_acked, acked); - 8008e4e: 687b ldr r3, [r7, #4] - 8008e50: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 8008e54: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8008e56: 4413 add r3, r2 - 8008e58: b29a uxth r2, r3 - 8008e5a: 687b ldr r3, [r7, #4] - 8008e5c: f8b3 306a ldrh.w r3, [r3, #106] ; 0x6a - 8008e60: 429a cmp r2, r3 - 8008e62: d309 bcc.n 8008e78 - 8008e64: 687b ldr r3, [r7, #4] - 8008e66: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 8008e6a: 8dfb ldrh r3, [r7, #46] ; 0x2e - 8008e6c: 4413 add r3, r2 - 8008e6e: b29a uxth r2, r3 - 8008e70: 687b ldr r3, [r7, #4] - 8008e72: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - 8008e76: e004 b.n 8008e82 - 8008e78: 687b ldr r3, [r7, #4] - 8008e7a: f64f 72ff movw r2, #65535 ; 0xffff - 8008e7e: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + 8008e4a: 687b ldr r3, [r7, #4] + 8008e4c: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a + 8008e50: 8dfb ldrh r3, [r7, #46] ; 0x2e + 8008e52: 4413 add r3, r2 + 8008e54: b29a uxth r2, r3 + 8008e56: 687b ldr r3, [r7, #4] + 8008e58: f8b3 306a ldrh.w r3, [r3, #106] ; 0x6a + 8008e5c: 429a cmp r2, r3 + 8008e5e: d309 bcc.n 8008e74 + 8008e60: 687b ldr r3, [r7, #4] + 8008e62: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a + 8008e66: 8dfb ldrh r3, [r7, #46] ; 0x2e + 8008e68: 4413 add r3, r2 + 8008e6a: b29a uxth r2, r3 + 8008e6c: 687b ldr r3, [r7, #4] + 8008e6e: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + 8008e72: e004 b.n 8008e7e + 8008e74: 687b ldr r3, [r7, #4] + 8008e76: f64f 72ff movw r2, #65535 ; 0xffff + 8008e7a: f8a3 206a strh.w r2, [r3, #106] ; 0x6a if (pcb->bytes_acked >= pcb->cwnd) { - 8008e82: 687b ldr r3, [r7, #4] - 8008e84: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 8008e88: 687b ldr r3, [r7, #4] - 8008e8a: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8008e8e: 429a cmp r2, r3 - 8008e90: d326 bcc.n 8008ee0 + 8008e7e: 687b ldr r3, [r7, #4] + 8008e80: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a + 8008e84: 687b ldr r3, [r7, #4] + 8008e86: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8008e8a: 429a cmp r2, r3 + 8008e8c: d326 bcc.n 8008edc pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd); - 8008e92: 687b ldr r3, [r7, #4] - 8008e94: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 8008e98: 687b ldr r3, [r7, #4] - 8008e9a: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8008e9e: 1ad3 subs r3, r2, r3 - 8008ea0: b29a uxth r2, r3 - 8008ea2: 687b ldr r3, [r7, #4] - 8008ea4: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + 8008e8e: 687b ldr r3, [r7, #4] + 8008e90: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a + 8008e94: 687b ldr r3, [r7, #4] + 8008e96: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8008e9a: 1ad3 subs r3, r2, r3 + 8008e9c: b29a uxth r2, r3 + 8008e9e: 687b ldr r3, [r7, #4] + 8008ea0: f8a3 206a strh.w r2, [r3, #106] ; 0x6a TCP_WND_INC(pcb->cwnd, pcb->mss); - 8008ea8: 687b ldr r3, [r7, #4] - 8008eaa: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8008eae: 687b ldr r3, [r7, #4] - 8008eb0: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8008eb2: 4413 add r3, r2 - 8008eb4: b29a uxth r2, r3 - 8008eb6: 687b ldr r3, [r7, #4] - 8008eb8: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8008ebc: 429a cmp r2, r3 - 8008ebe: d30a bcc.n 8008ed6 - 8008ec0: 687b ldr r3, [r7, #4] - 8008ec2: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8008ec6: 687b ldr r3, [r7, #4] - 8008ec8: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8008eca: 4413 add r3, r2 - 8008ecc: b29a uxth r2, r3 - 8008ece: 687b ldr r3, [r7, #4] - 8008ed0: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 8008ed4: e004 b.n 8008ee0 - 8008ed6: 687b ldr r3, [r7, #4] - 8008ed8: f64f 72ff movw r2, #65535 ; 0xffff - 8008edc: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8008ea4: 687b ldr r3, [r7, #4] + 8008ea6: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8008eaa: 687b ldr r3, [r7, #4] + 8008eac: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8008eae: 4413 add r3, r2 + 8008eb0: b29a uxth r2, r3 + 8008eb2: 687b ldr r3, [r7, #4] + 8008eb4: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8008eb8: 429a cmp r2, r3 + 8008eba: d30a bcc.n 8008ed2 + 8008ebc: 687b ldr r3, [r7, #4] + 8008ebe: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8008ec2: 687b ldr r3, [r7, #4] + 8008ec4: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8008ec6: 4413 add r3, r2 + 8008ec8: b29a uxth r2, r3 + 8008eca: 687b ldr r3, [r7, #4] + 8008ecc: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8008ed0: e004 b.n 8008edc + 8008ed2: 687b ldr r3, [r7, #4] + 8008ed4: f64f 72ff movw r2, #65535 ; 0xffff + 8008ed8: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 pcb->unacked != NULL ? lwip_ntohl(pcb->unacked->tcphdr->seqno) + TCP_TCPLEN(pcb->unacked) : 0)); /* Remove segment from the unacknowledged list if the incoming ACK acknowledges them. */ pcb->unacked = tcp_free_acked_segments(pcb, pcb->unacked, "unacked", pcb->unsent); + 8008edc: 687b ldr r3, [r7, #4] + 8008ede: 6f19 ldr r1, [r3, #112] ; 0x70 8008ee0: 687b ldr r3, [r7, #4] - 8008ee2: 6f19 ldr r1, [r3, #112] ; 0x70 - 8008ee4: 687b ldr r3, [r7, #4] - 8008ee6: 6edb ldr r3, [r3, #108] ; 0x6c - 8008ee8: 4a98 ldr r2, [pc, #608] ; (800914c ) - 8008eea: 6878 ldr r0, [r7, #4] - 8008eec: f7ff fdca bl 8008a84 - 8008ef0: 4602 mov r2, r0 - 8008ef2: 687b ldr r3, [r7, #4] - 8008ef4: 671a str r2, [r3, #112] ; 0x70 + 8008ee2: 6edb ldr r3, [r3, #108] ; 0x6c + 8008ee4: 4a98 ldr r2, [pc, #608] ; (8009148 ) + 8008ee6: 6878 ldr r0, [r7, #4] + 8008ee8: f7ff fdca bl 8008a80 + 8008eec: 4602 mov r2, r0 + 8008eee: 687b ldr r3, [r7, #4] + 8008ef0: 671a str r2, [r3, #112] ; 0x70 on the list are acknowledged by the ACK. This may seem strange since an "unsent" segment shouldn't be acked. The rationale is that lwIP puts all outstanding segments on the ->unsent list after a retransmission, so these segments may in fact have been sent once. */ pcb->unsent = tcp_free_acked_segments(pcb, pcb->unsent, "unsent", pcb->unacked); + 8008ef2: 687b ldr r3, [r7, #4] + 8008ef4: 6ed9 ldr r1, [r3, #108] ; 0x6c 8008ef6: 687b ldr r3, [r7, #4] - 8008ef8: 6ed9 ldr r1, [r3, #108] ; 0x6c - 8008efa: 687b ldr r3, [r7, #4] - 8008efc: 6f1b ldr r3, [r3, #112] ; 0x70 - 8008efe: 4a94 ldr r2, [pc, #592] ; (8009150 ) - 8008f00: 6878 ldr r0, [r7, #4] - 8008f02: f7ff fdbf bl 8008a84 - 8008f06: 4602 mov r2, r0 - 8008f08: 687b ldr r3, [r7, #4] - 8008f0a: 66da str r2, [r3, #108] ; 0x6c + 8008ef8: 6f1b ldr r3, [r3, #112] ; 0x70 + 8008efa: 4a94 ldr r2, [pc, #592] ; (800914c ) + 8008efc: 6878 ldr r0, [r7, #4] + 8008efe: f7ff fdbf bl 8008a80 + 8008f02: 4602 mov r2, r0 + 8008f04: 687b ldr r3, [r7, #4] + 8008f06: 66da str r2, [r3, #108] ; 0x6c /* If there's nothing left to acknowledge, stop the retransmit timer, otherwise reset it to start again */ if (pcb->unacked == NULL) { - 8008f0c: 687b ldr r3, [r7, #4] - 8008f0e: 6f1b ldr r3, [r3, #112] ; 0x70 - 8008f10: 2b00 cmp r3, #0 - 8008f12: d104 bne.n 8008f1e + 8008f08: 687b ldr r3, [r7, #4] + 8008f0a: 6f1b ldr r3, [r3, #112] ; 0x70 + 8008f0c: 2b00 cmp r3, #0 + 8008f0e: d104 bne.n 8008f1a pcb->rtime = -1; - 8008f14: 687b ldr r3, [r7, #4] - 8008f16: f64f 72ff movw r2, #65535 ; 0xffff - 8008f1a: 861a strh r2, [r3, #48] ; 0x30 - 8008f1c: e002 b.n 8008f24 + 8008f10: 687b ldr r3, [r7, #4] + 8008f12: f64f 72ff movw r2, #65535 ; 0xffff + 8008f16: 861a strh r2, [r3, #48] ; 0x30 + 8008f18: e002 b.n 8008f20 } else { pcb->rtime = 0; - 8008f1e: 687b ldr r3, [r7, #4] - 8008f20: 2200 movs r2, #0 - 8008f22: 861a strh r2, [r3, #48] ; 0x30 + 8008f1a: 687b ldr r3, [r7, #4] + 8008f1c: 2200 movs r2, #0 + 8008f1e: 861a strh r2, [r3, #48] ; 0x30 } pcb->polltmr = 0; - 8008f24: 687b ldr r3, [r7, #4] - 8008f26: 2200 movs r2, #0 - 8008f28: 771a strb r2, [r3, #28] + 8008f20: 687b ldr r3, [r7, #4] + 8008f22: 2200 movs r2, #0 + 8008f24: 771a strb r2, [r3, #28] #if TCP_OVERSIZE if (pcb->unsent == NULL) { - 8008f2a: 687b ldr r3, [r7, #4] - 8008f2c: 6edb ldr r3, [r3, #108] ; 0x6c - 8008f2e: 2b00 cmp r3, #0 - 8008f30: d103 bne.n 8008f3a + 8008f26: 687b ldr r3, [r7, #4] + 8008f28: 6edb ldr r3, [r3, #108] ; 0x6c + 8008f2a: 2b00 cmp r3, #0 + 8008f2c: d103 bne.n 8008f36 pcb->unsent_oversize = 0; - 8008f32: 687b ldr r3, [r7, #4] - 8008f34: 2200 movs r2, #0 - 8008f36: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 8008f2e: 687b ldr r3, [r7, #4] + 8008f30: 2200 movs r2, #0 + 8008f32: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 /* Inform neighbor reachability of forward progress. */ nd6_reachability_hint(ip6_current_src_addr()); } #endif /* LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS*/ pcb->snd_buf = (tcpwnd_size_t)(pcb->snd_buf + recv_acked); - 8008f3a: 687b ldr r3, [r7, #4] - 8008f3c: f8b3 2064 ldrh.w r2, [r3, #100] ; 0x64 - 8008f40: 4b84 ldr r3, [pc, #528] ; (8009154 ) - 8008f42: 881b ldrh r3, [r3, #0] - 8008f44: 4413 add r3, r2 - 8008f46: b29a uxth r2, r3 - 8008f48: 687b ldr r3, [r7, #4] - 8008f4a: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 + 8008f36: 687b ldr r3, [r7, #4] + 8008f38: f8b3 2064 ldrh.w r2, [r3, #100] ; 0x64 + 8008f3c: 4b84 ldr r3, [pc, #528] ; (8009150 ) + 8008f3e: 881b ldrh r3, [r3, #0] + 8008f40: 4413 add r3, r2 + 8008f42: b29a uxth r2, r3 + 8008f44: 687b ldr r3, [r7, #4] + 8008f46: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 /* check if this ACK ends our retransmission of in-flight data */ if (pcb->flags & TF_RTO) { - 8008f4e: 687b ldr r3, [r7, #4] - 8008f50: 8b5b ldrh r3, [r3, #26] - 8008f52: f403 6300 and.w r3, r3, #2048 ; 0x800 - 8008f56: 2b00 cmp r3, #0 - 8008f58: d035 beq.n 8008fc6 + 8008f4a: 687b ldr r3, [r7, #4] + 8008f4c: 8b5b ldrh r3, [r3, #26] + 8008f4e: f403 6300 and.w r3, r3, #2048 ; 0x800 + 8008f52: 2b00 cmp r3, #0 + 8008f54: d035 beq.n 8008fc2 /* RTO is done if 1) both queues are empty or 2) unacked is empty and unsent head contains data not part of RTO or 3) unacked head contains data not part of RTO */ if (pcb->unacked == NULL) { - 8008f5a: 687b ldr r3, [r7, #4] - 8008f5c: 6f1b ldr r3, [r3, #112] ; 0x70 - 8008f5e: 2b00 cmp r3, #0 - 8008f60: d118 bne.n 8008f94 + 8008f56: 687b ldr r3, [r7, #4] + 8008f58: 6f1b ldr r3, [r3, #112] ; 0x70 + 8008f5a: 2b00 cmp r3, #0 + 8008f5c: d118 bne.n 8008f90 if ((pcb->unsent == NULL) || - 8008f62: 687b ldr r3, [r7, #4] - 8008f64: 6edb ldr r3, [r3, #108] ; 0x6c - 8008f66: 2b00 cmp r3, #0 - 8008f68: d00c beq.n 8008f84 + 8008f5e: 687b ldr r3, [r7, #4] + 8008f60: 6edb ldr r3, [r3, #108] ; 0x6c + 8008f62: 2b00 cmp r3, #0 + 8008f64: d00c beq.n 8008f80 (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unsent->tcphdr->seqno)))) { + 8008f66: 687b ldr r3, [r7, #4] + 8008f68: 6cdc ldr r4, [r3, #76] ; 0x4c 8008f6a: 687b ldr r3, [r7, #4] - 8008f6c: 6cdc ldr r4, [r3, #76] ; 0x4c - 8008f6e: 687b ldr r3, [r7, #4] - 8008f70: 6edb ldr r3, [r3, #108] ; 0x6c - 8008f72: 68db ldr r3, [r3, #12] - 8008f74: 685b ldr r3, [r3, #4] - 8008f76: 4618 mov r0, r3 - 8008f78: f7fb f9bb bl 80042f2 - 8008f7c: 4603 mov r3, r0 - 8008f7e: 1ae3 subs r3, r4, r3 + 8008f6c: 6edb ldr r3, [r3, #108] ; 0x6c + 8008f6e: 68db ldr r3, [r3, #12] + 8008f70: 685b ldr r3, [r3, #4] + 8008f72: 4618 mov r0, r3 + 8008f74: f7fb f9bb bl 80042ee + 8008f78: 4603 mov r3, r0 + 8008f7a: 1ae3 subs r3, r4, r3 if ((pcb->unsent == NULL) || - 8008f80: 2b00 cmp r3, #0 - 8008f82: dc20 bgt.n 8008fc6 + 8008f7c: 2b00 cmp r3, #0 + 8008f7e: dc20 bgt.n 8008fc2 tcp_clear_flags(pcb, TF_RTO); - 8008f84: 687b ldr r3, [r7, #4] - 8008f86: 8b5b ldrh r3, [r3, #26] - 8008f88: f423 6300 bic.w r3, r3, #2048 ; 0x800 - 8008f8c: b29a uxth r2, r3 - 8008f8e: 687b ldr r3, [r7, #4] - 8008f90: 835a strh r2, [r3, #26] + 8008f80: 687b ldr r3, [r7, #4] + 8008f82: 8b5b ldrh r3, [r3, #26] + 8008f84: f423 6300 bic.w r3, r3, #2048 ; 0x800 + 8008f88: b29a uxth r2, r3 + 8008f8a: 687b ldr r3, [r7, #4] + 8008f8c: 835a strh r2, [r3, #26] } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 8008f92: e018 b.n 8008fc6 + 8008f8e: e018 b.n 8008fc2 } } else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) { + 8008f90: 687b ldr r3, [r7, #4] + 8008f92: 6cdc ldr r4, [r3, #76] ; 0x4c 8008f94: 687b ldr r3, [r7, #4] - 8008f96: 6cdc ldr r4, [r3, #76] ; 0x4c - 8008f98: 687b ldr r3, [r7, #4] - 8008f9a: 6f1b ldr r3, [r3, #112] ; 0x70 - 8008f9c: 68db ldr r3, [r3, #12] - 8008f9e: 685b ldr r3, [r3, #4] - 8008fa0: 4618 mov r0, r3 - 8008fa2: f7fb f9a6 bl 80042f2 - 8008fa6: 4603 mov r3, r0 - 8008fa8: 1ae3 subs r3, r4, r3 - 8008faa: 2b00 cmp r3, #0 - 8008fac: dc0b bgt.n 8008fc6 + 8008f96: 6f1b ldr r3, [r3, #112] ; 0x70 + 8008f98: 68db ldr r3, [r3, #12] + 8008f9a: 685b ldr r3, [r3, #4] + 8008f9c: 4618 mov r0, r3 + 8008f9e: f7fb f9a6 bl 80042ee + 8008fa2: 4603 mov r3, r0 + 8008fa4: 1ae3 subs r3, r4, r3 + 8008fa6: 2b00 cmp r3, #0 + 8008fa8: dc0b bgt.n 8008fc2 tcp_clear_flags(pcb, TF_RTO); - 8008fae: 687b ldr r3, [r7, #4] - 8008fb0: 8b5b ldrh r3, [r3, #26] - 8008fb2: f423 6300 bic.w r3, r3, #2048 ; 0x800 - 8008fb6: b29a uxth r2, r3 - 8008fb8: 687b ldr r3, [r7, #4] - 8008fba: 835a strh r2, [r3, #26] + 8008faa: 687b ldr r3, [r7, #4] + 8008fac: 8b5b ldrh r3, [r3, #26] + 8008fae: f423 6300 bic.w r3, r3, #2048 ; 0x800 + 8008fb2: b29a uxth r2, r3 + 8008fb4: 687b ldr r3, [r7, #4] + 8008fb6: 835a strh r2, [r3, #26] } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 8008fbc: e003 b.n 8008fc6 + 8008fb8: e003 b.n 8008fc2 } } /* End of ACK for new data processing. */ } else { /* Out of sequence ACK, didn't really ack anything */ tcp_send_empty_ack(pcb); - 8008fbe: 6878 ldr r0, [r7, #4] - 8008fc0: f001 ff76 bl 800aeb0 - 8008fc4: e000 b.n 8008fc8 + 8008fba: 6878 ldr r0, [r7, #4] + 8008fbc: f001 ff76 bl 800aeac + 8008fc0: e000 b.n 8008fc4 } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 8008fc6: bf00 nop + 8008fc2: bf00 nop pcb->rttest, pcb->rtseq, ackno)); /* RTT estimation calculations. This is done by checking if the incoming segment acknowledges the segment we use to take a round-trip time measurement. */ if (pcb->rttest && TCP_SEQ_LT(pcb->rtseq, ackno)) { - 8008fc8: 687b ldr r3, [r7, #4] - 8008fca: 6b5b ldr r3, [r3, #52] ; 0x34 - 8008fcc: 2b00 cmp r3, #0 - 8008fce: d05b beq.n 8009088 - 8008fd0: 687b ldr r3, [r7, #4] - 8008fd2: 6b9a ldr r2, [r3, #56] ; 0x38 - 8008fd4: 4b60 ldr r3, [pc, #384] ; (8009158 ) - 8008fd6: 681b ldr r3, [r3, #0] - 8008fd8: 1ad3 subs r3, r2, r3 - 8008fda: 2b00 cmp r3, #0 - 8008fdc: da54 bge.n 8009088 + 8008fc4: 687b ldr r3, [r7, #4] + 8008fc6: 6b5b ldr r3, [r3, #52] ; 0x34 + 8008fc8: 2b00 cmp r3, #0 + 8008fca: d05b beq.n 8009084 + 8008fcc: 687b ldr r3, [r7, #4] + 8008fce: 6b9a ldr r2, [r3, #56] ; 0x38 + 8008fd0: 4b60 ldr r3, [pc, #384] ; (8009154 ) + 8008fd2: 681b ldr r3, [r3, #0] + 8008fd4: 1ad3 subs r3, r2, r3 + 8008fd6: 2b00 cmp r3, #0 + 8008fd8: da54 bge.n 8009084 /* diff between this shouldn't exceed 32K since this are tcp timer ticks and a round-trip shouldn't be that long... */ m = (s16_t)(tcp_ticks - pcb->rttest); - 8008fde: 4b5f ldr r3, [pc, #380] ; (800915c ) - 8008fe0: 681b ldr r3, [r3, #0] - 8008fe2: b29a uxth r2, r3 - 8008fe4: 687b ldr r3, [r7, #4] - 8008fe6: 6b5b ldr r3, [r3, #52] ; 0x34 + 8008fda: 4b5f ldr r3, [pc, #380] ; (8009158 ) + 8008fdc: 681b ldr r3, [r3, #0] + 8008fde: b29a uxth r2, r3 + 8008fe0: 687b ldr r3, [r7, #4] + 8008fe2: 6b5b ldr r3, [r3, #52] ; 0x34 + 8008fe4: b29b uxth r3, r3 + 8008fe6: 1ad3 subs r3, r2, r3 8008fe8: b29b uxth r3, r3 - 8008fea: 1ad3 subs r3, r2, r3 - 8008fec: b29b uxth r3, r3 - 8008fee: f8a7 304e strh.w r3, [r7, #78] ; 0x4e + 8008fea: f8a7 304e strh.w r3, [r7, #78] ; 0x4e LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: experienced rtt %"U16_F" ticks (%"U16_F" msec).\n", m, (u16_t)(m * TCP_SLOW_INTERVAL))); /* This is taken directly from VJs original code in his paper */ m = (s16_t)(m - (pcb->sa >> 3)); - 8008ff2: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e - 8008ff6: 687b ldr r3, [r7, #4] - 8008ff8: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8008ffc: 10db asrs r3, r3, #3 - 8008ffe: b21b sxth r3, r3 + 8008fee: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e + 8008ff2: 687b ldr r3, [r7, #4] + 8008ff4: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 8008ff8: 10db asrs r3, r3, #3 + 8008ffa: b21b sxth r3, r3 + 8008ffc: b29b uxth r3, r3 + 8008ffe: 1ad3 subs r3, r2, r3 8009000: b29b uxth r3, r3 - 8009002: 1ad3 subs r3, r2, r3 - 8009004: b29b uxth r3, r3 - 8009006: f8a7 304e strh.w r3, [r7, #78] ; 0x4e + 8009002: f8a7 304e strh.w r3, [r7, #78] ; 0x4e pcb->sa = (s16_t)(pcb->sa + m); - 800900a: 687b ldr r3, [r7, #4] - 800900c: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8009010: b29a uxth r2, r3 - 8009012: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 8009016: 4413 add r3, r2 - 8009018: b29b uxth r3, r3 - 800901a: b21a sxth r2, r3 - 800901c: 687b ldr r3, [r7, #4] - 800901e: 879a strh r2, [r3, #60] ; 0x3c + 8009006: 687b ldr r3, [r7, #4] + 8009008: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 800900c: b29a uxth r2, r3 + 800900e: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e + 8009012: 4413 add r3, r2 + 8009014: b29b uxth r3, r3 + 8009016: b21a sxth r2, r3 + 8009018: 687b ldr r3, [r7, #4] + 800901a: 879a strh r2, [r3, #60] ; 0x3c if (m < 0) { - 8009020: f9b7 304e ldrsh.w r3, [r7, #78] ; 0x4e - 8009024: 2b00 cmp r3, #0 - 8009026: da05 bge.n 8009034 + 800901c: f9b7 304e ldrsh.w r3, [r7, #78] ; 0x4e + 8009020: 2b00 cmp r3, #0 + 8009022: da05 bge.n 8009030 m = (s16_t) - m; - 8009028: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 800902c: 425b negs r3, r3 - 800902e: b29b uxth r3, r3 - 8009030: f8a7 304e strh.w r3, [r7, #78] ; 0x4e + 8009024: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e + 8009028: 425b negs r3, r3 + 800902a: b29b uxth r3, r3 + 800902c: f8a7 304e strh.w r3, [r7, #78] ; 0x4e } m = (s16_t)(m - (pcb->sv >> 2)); - 8009034: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e - 8009038: 687b ldr r3, [r7, #4] - 800903a: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 800903e: 109b asrs r3, r3, #2 - 8009040: b21b sxth r3, r3 + 8009030: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e + 8009034: 687b ldr r3, [r7, #4] + 8009036: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 800903a: 109b asrs r3, r3, #2 + 800903c: b21b sxth r3, r3 + 800903e: b29b uxth r3, r3 + 8009040: 1ad3 subs r3, r2, r3 8009042: b29b uxth r3, r3 - 8009044: 1ad3 subs r3, r2, r3 - 8009046: b29b uxth r3, r3 - 8009048: f8a7 304e strh.w r3, [r7, #78] ; 0x4e + 8009044: f8a7 304e strh.w r3, [r7, #78] ; 0x4e pcb->sv = (s16_t)(pcb->sv + m); - 800904c: 687b ldr r3, [r7, #4] - 800904e: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 8009052: b29a uxth r2, r3 - 8009054: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 8009058: 4413 add r3, r2 - 800905a: b29b uxth r3, r3 - 800905c: b21a sxth r2, r3 - 800905e: 687b ldr r3, [r7, #4] - 8009060: 87da strh r2, [r3, #62] ; 0x3e + 8009048: 687b ldr r3, [r7, #4] + 800904a: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 800904e: b29a uxth r2, r3 + 8009050: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e + 8009054: 4413 add r3, r2 + 8009056: b29b uxth r3, r3 + 8009058: b21a sxth r2, r3 + 800905a: 687b ldr r3, [r7, #4] + 800905c: 87da strh r2, [r3, #62] ; 0x3e pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); - 8009062: 687b ldr r3, [r7, #4] - 8009064: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8009068: 10db asrs r3, r3, #3 - 800906a: b21b sxth r3, r3 - 800906c: b29a uxth r2, r3 - 800906e: 687b ldr r3, [r7, #4] - 8009070: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 800905e: 687b ldr r3, [r7, #4] + 8009060: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 8009064: 10db asrs r3, r3, #3 + 8009066: b21b sxth r3, r3 + 8009068: b29a uxth r2, r3 + 800906a: 687b ldr r3, [r7, #4] + 800906c: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 8009070: b29b uxth r3, r3 + 8009072: 4413 add r3, r2 8009074: b29b uxth r3, r3 - 8009076: 4413 add r3, r2 - 8009078: b29b uxth r3, r3 - 800907a: b21a sxth r2, r3 - 800907c: 687b ldr r3, [r7, #4] - 800907e: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 + 8009076: b21a sxth r2, r3 + 8009078: 687b ldr r3, [r7, #4] + 800907a: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: RTO %"U16_F" (%"U16_F" milliseconds)\n", pcb->rto, (u16_t)(pcb->rto * TCP_SLOW_INTERVAL))); pcb->rttest = 0; - 8009082: 687b ldr r3, [r7, #4] - 8009084: 2200 movs r2, #0 - 8009086: 635a str r2, [r3, #52] ; 0x34 + 800907e: 687b ldr r3, [r7, #4] + 8009080: 2200 movs r2, #0 + 8009082: 635a str r2, [r3, #52] ; 0x34 /* If the incoming segment contains data, we must process it further unless the pcb already received a FIN. (RFC 793, chapter 3.9, "SEGMENT ARRIVES" in states CLOSE-WAIT, CLOSING, LAST-ACK and TIME-WAIT: "Ignore the segment text.") */ if ((tcplen > 0) && (pcb->state < CLOSE_WAIT)) { - 8009088: 4b35 ldr r3, [pc, #212] ; (8009160 ) - 800908a: 881b ldrh r3, [r3, #0] - 800908c: 2b00 cmp r3, #0 - 800908e: f000 84e2 beq.w 8009a56 - 8009092: 687b ldr r3, [r7, #4] - 8009094: 7d1b ldrb r3, [r3, #20] - 8009096: 2b06 cmp r3, #6 - 8009098: f200 84dd bhi.w 8009a56 + 8009084: 4b35 ldr r3, [pc, #212] ; (800915c ) + 8009086: 881b ldrh r3, [r3, #0] + 8009088: 2b00 cmp r3, #0 + 800908a: f000 84e2 beq.w 8009a52 + 800908e: 687b ldr r3, [r7, #4] + 8009090: 7d1b ldrb r3, [r3, #20] + 8009092: 2b06 cmp r3, #6 + 8009094: f200 84dd bhi.w 8009a52 this if the sequence number of the incoming segment is less than rcv_nxt, and the sequence number plus the length of the segment is larger than rcv_nxt. */ /* if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) { if (TCP_SEQ_LT(pcb->rcv_nxt, seqno + tcplen)) {*/ if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) { - 800909c: 687b ldr r3, [r7, #4] - 800909e: 6a5a ldr r2, [r3, #36] ; 0x24 - 80090a0: 4b30 ldr r3, [pc, #192] ; (8009164 ) - 80090a2: 681b ldr r3, [r3, #0] - 80090a4: 1ad3 subs r3, r2, r3 - 80090a6: 3b01 subs r3, #1 - 80090a8: 2b00 cmp r3, #0 - 80090aa: f2c0 808f blt.w 80091cc - 80090ae: 687b ldr r3, [r7, #4] - 80090b0: 6a5a ldr r2, [r3, #36] ; 0x24 - 80090b2: 4b2b ldr r3, [pc, #172] ; (8009160 ) - 80090b4: 881b ldrh r3, [r3, #0] - 80090b6: 4619 mov r1, r3 - 80090b8: 4b2a ldr r3, [pc, #168] ; (8009164 ) - 80090ba: 681b ldr r3, [r3, #0] - 80090bc: 440b add r3, r1 - 80090be: 1ad3 subs r3, r2, r3 - 80090c0: 3301 adds r3, #1 - 80090c2: 2b00 cmp r3, #0 - 80090c4: f300 8082 bgt.w 80091cc + 8009098: 687b ldr r3, [r7, #4] + 800909a: 6a5a ldr r2, [r3, #36] ; 0x24 + 800909c: 4b30 ldr r3, [pc, #192] ; (8009160 ) + 800909e: 681b ldr r3, [r3, #0] + 80090a0: 1ad3 subs r3, r2, r3 + 80090a2: 3b01 subs r3, #1 + 80090a4: 2b00 cmp r3, #0 + 80090a6: f2c0 808f blt.w 80091c8 + 80090aa: 687b ldr r3, [r7, #4] + 80090ac: 6a5a ldr r2, [r3, #36] ; 0x24 + 80090ae: 4b2b ldr r3, [pc, #172] ; (800915c ) + 80090b0: 881b ldrh r3, [r3, #0] + 80090b2: 4619 mov r1, r3 + 80090b4: 4b2a ldr r3, [pc, #168] ; (8009160 ) + 80090b6: 681b ldr r3, [r3, #0] + 80090b8: 440b add r3, r1 + 80090ba: 1ad3 subs r3, r2, r3 + 80090bc: 3301 adds r3, #1 + 80090be: 2b00 cmp r3, #0 + 80090c0: f300 8082 bgt.w 80091c8 After we are done with adjusting the pbuf pointers we must adjust the ->data pointer in the seg and the segment length.*/ struct pbuf *p = inseg.p; - 80090c8: 4b27 ldr r3, [pc, #156] ; (8009168 ) - 80090ca: 685b ldr r3, [r3, #4] - 80090cc: 647b str r3, [r7, #68] ; 0x44 + 80090c4: 4b27 ldr r3, [pc, #156] ; (8009164 ) + 80090c6: 685b ldr r3, [r3, #4] + 80090c8: 647b str r3, [r7, #68] ; 0x44 u32_t off32 = pcb->rcv_nxt - seqno; - 80090ce: 687b ldr r3, [r7, #4] - 80090d0: 6a5a ldr r2, [r3, #36] ; 0x24 - 80090d2: 4b24 ldr r3, [pc, #144] ; (8009164 ) - 80090d4: 681b ldr r3, [r3, #0] - 80090d6: 1ad3 subs r3, r2, r3 - 80090d8: 627b str r3, [r7, #36] ; 0x24 + 80090ca: 687b ldr r3, [r7, #4] + 80090cc: 6a5a ldr r2, [r3, #36] ; 0x24 + 80090ce: 4b24 ldr r3, [pc, #144] ; (8009160 ) + 80090d0: 681b ldr r3, [r3, #0] + 80090d2: 1ad3 subs r3, r2, r3 + 80090d4: 627b str r3, [r7, #36] ; 0x24 u16_t new_tot_len, off; LWIP_ASSERT("inseg.p != NULL", inseg.p); - 80090da: 4b23 ldr r3, [pc, #140] ; (8009168 ) - 80090dc: 685b ldr r3, [r3, #4] - 80090de: 2b00 cmp r3, #0 - 80090e0: d106 bne.n 80090f0 - 80090e2: 4b22 ldr r3, [pc, #136] ; (800916c ) - 80090e4: f240 5294 movw r2, #1428 ; 0x594 - 80090e8: 4921 ldr r1, [pc, #132] ; (8009170 ) - 80090ea: 4822 ldr r0, [pc, #136] ; (8009174 ) - 80090ec: f007 f972 bl 80103d4 + 80090d6: 4b23 ldr r3, [pc, #140] ; (8009164 ) + 80090d8: 685b ldr r3, [r3, #4] + 80090da: 2b00 cmp r3, #0 + 80090dc: d106 bne.n 80090ec + 80090de: 4b22 ldr r3, [pc, #136] ; (8009168 ) + 80090e0: f240 5294 movw r2, #1428 ; 0x594 + 80090e4: 4921 ldr r1, [pc, #132] ; (800916c ) + 80090e6: 4822 ldr r0, [pc, #136] ; (8009170 ) + 80090e8: f007 f972 bl 80103d0 LWIP_ASSERT("insane offset!", (off32 < 0xffff)); - 80090f0: 6a7b ldr r3, [r7, #36] ; 0x24 - 80090f2: f64f 72fe movw r2, #65534 ; 0xfffe - 80090f6: 4293 cmp r3, r2 - 80090f8: d906 bls.n 8009108 - 80090fa: 4b1c ldr r3, [pc, #112] ; (800916c ) - 80090fc: f240 5295 movw r2, #1429 ; 0x595 - 8009100: 491d ldr r1, [pc, #116] ; (8009178 ) - 8009102: 481c ldr r0, [pc, #112] ; (8009174 ) - 8009104: f007 f966 bl 80103d4 + 80090ec: 6a7b ldr r3, [r7, #36] ; 0x24 + 80090ee: f64f 72fe movw r2, #65534 ; 0xfffe + 80090f2: 4293 cmp r3, r2 + 80090f4: d906 bls.n 8009104 + 80090f6: 4b1c ldr r3, [pc, #112] ; (8009168 ) + 80090f8: f240 5295 movw r2, #1429 ; 0x595 + 80090fc: 491d ldr r1, [pc, #116] ; (8009174 ) + 80090fe: 481c ldr r0, [pc, #112] ; (8009170 ) + 8009100: f007 f966 bl 80103d0 off = (u16_t)off32; - 8009108: 6a7b ldr r3, [r7, #36] ; 0x24 - 800910a: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 + 8009104: 6a7b ldr r3, [r7, #36] ; 0x24 + 8009106: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off)); - 800910e: 4b16 ldr r3, [pc, #88] ; (8009168 ) - 8009110: 685b ldr r3, [r3, #4] - 8009112: 891b ldrh r3, [r3, #8] - 8009114: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 8009118: 429a cmp r2, r3 - 800911a: d906 bls.n 800912a - 800911c: 4b13 ldr r3, [pc, #76] ; (800916c ) - 800911e: f240 5297 movw r2, #1431 ; 0x597 - 8009122: 4916 ldr r1, [pc, #88] ; (800917c ) - 8009124: 4813 ldr r0, [pc, #76] ; (8009174 ) - 8009126: f007 f955 bl 80103d4 + 800910a: 4b16 ldr r3, [pc, #88] ; (8009164 ) + 800910c: 685b ldr r3, [r3, #4] + 800910e: 891b ldrh r3, [r3, #8] + 8009110: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 8009114: 429a cmp r2, r3 + 8009116: d906 bls.n 8009126 + 8009118: 4b13 ldr r3, [pc, #76] ; (8009168 ) + 800911a: f240 5297 movw r2, #1431 ; 0x597 + 800911e: 4916 ldr r1, [pc, #88] ; (8009178 ) + 8009120: 4813 ldr r0, [pc, #76] ; (8009170 ) + 8009122: f007 f955 bl 80103d0 inseg.len -= off; - 800912a: 4b0f ldr r3, [pc, #60] ; (8009168 ) - 800912c: 891a ldrh r2, [r3, #8] - 800912e: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 8009132: 1ad3 subs r3, r2, r3 - 8009134: b29a uxth r2, r3 - 8009136: 4b0c ldr r3, [pc, #48] ; (8009168 ) - 8009138: 811a strh r2, [r3, #8] + 8009126: 4b0f ldr r3, [pc, #60] ; (8009164 ) + 8009128: 891a ldrh r2, [r3, #8] + 800912a: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 800912e: 1ad3 subs r3, r2, r3 + 8009130: b29a uxth r2, r3 + 8009132: 4b0c ldr r3, [pc, #48] ; (8009164 ) + 8009134: 811a strh r2, [r3, #8] new_tot_len = (u16_t)(inseg.p->tot_len - off); - 800913a: 4b0b ldr r3, [pc, #44] ; (8009168 ) - 800913c: 685b ldr r3, [r3, #4] - 800913e: 891a ldrh r2, [r3, #8] - 8009140: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 8009144: 1ad3 subs r3, r2, r3 - 8009146: 847b strh r3, [r7, #34] ; 0x22 + 8009136: 4b0b ldr r3, [pc, #44] ; (8009164 ) + 8009138: 685b ldr r3, [r3, #4] + 800913a: 891a ldrh r2, [r3, #8] + 800913c: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 8009140: 1ad3 subs r3, r2, r3 + 8009142: 847b strh r3, [r7, #34] ; 0x22 while (p->len < off) { - 8009148: e02a b.n 80091a0 - 800914a: bf00 nop - 800914c: 0801648c .word 0x0801648c - 8009150: 08016494 .word 0x08016494 - 8009154: 20008c40 .word 0x20008c40 - 8009158: 20008c3c .word 0x20008c3c - 800915c: 20008c00 .word 0x20008c00 - 8009160: 20008c42 .word 0x20008c42 - 8009164: 20008c38 .word 0x20008c38 - 8009168: 20008c18 .word 0x20008c18 - 800916c: 08016124 .word 0x08016124 - 8009170: 0801649c .word 0x0801649c - 8009174: 08016170 .word 0x08016170 - 8009178: 080164ac .word 0x080164ac - 800917c: 080164bc .word 0x080164bc + 8009144: e02a b.n 800919c + 8009146: bf00 nop + 8009148: 0801648c .word 0x0801648c + 800914c: 08016494 .word 0x08016494 + 8009150: 20008c40 .word 0x20008c40 + 8009154: 20008c3c .word 0x20008c3c + 8009158: 20008c00 .word 0x20008c00 + 800915c: 20008c42 .word 0x20008c42 + 8009160: 20008c38 .word 0x20008c38 + 8009164: 20008c18 .word 0x20008c18 + 8009168: 08016124 .word 0x08016124 + 800916c: 0801649c .word 0x0801649c + 8009170: 08016170 .word 0x08016170 + 8009174: 080164ac .word 0x080164ac + 8009178: 080164bc .word 0x080164bc off -= p->len; - 8009180: 6c7b ldr r3, [r7, #68] ; 0x44 - 8009182: 895b ldrh r3, [r3, #10] - 8009184: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 8009188: 1ad3 subs r3, r2, r3 - 800918a: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 + 800917c: 6c7b ldr r3, [r7, #68] ; 0x44 + 800917e: 895b ldrh r3, [r3, #10] + 8009180: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 8009184: 1ad3 subs r3, r2, r3 + 8009186: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 /* all pbufs up to and including this one have len==0, so tot_len is equal */ p->tot_len = new_tot_len; - 800918e: 6c7b ldr r3, [r7, #68] ; 0x44 - 8009190: 8c7a ldrh r2, [r7, #34] ; 0x22 - 8009192: 811a strh r2, [r3, #8] + 800918a: 6c7b ldr r3, [r7, #68] ; 0x44 + 800918c: 8c7a ldrh r2, [r7, #34] ; 0x22 + 800918e: 811a strh r2, [r3, #8] p->len = 0; - 8009194: 6c7b ldr r3, [r7, #68] ; 0x44 - 8009196: 2200 movs r2, #0 - 8009198: 815a strh r2, [r3, #10] + 8009190: 6c7b ldr r3, [r7, #68] ; 0x44 + 8009192: 2200 movs r2, #0 + 8009194: 815a strh r2, [r3, #10] p = p->next; - 800919a: 6c7b ldr r3, [r7, #68] ; 0x44 - 800919c: 681b ldr r3, [r3, #0] - 800919e: 647b str r3, [r7, #68] ; 0x44 + 8009196: 6c7b ldr r3, [r7, #68] ; 0x44 + 8009198: 681b ldr r3, [r3, #0] + 800919a: 647b str r3, [r7, #68] ; 0x44 while (p->len < off) { - 80091a0: 6c7b ldr r3, [r7, #68] ; 0x44 - 80091a2: 895b ldrh r3, [r3, #10] - 80091a4: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 80091a8: 429a cmp r2, r3 - 80091aa: d8e9 bhi.n 8009180 + 800919c: 6c7b ldr r3, [r7, #68] ; 0x44 + 800919e: 895b ldrh r3, [r3, #10] + 80091a0: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 80091a4: 429a cmp r2, r3 + 80091a6: d8e9 bhi.n 800917c } /* cannot fail... */ pbuf_remove_header(p, off); - 80091ac: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 80091b0: 4619 mov r1, r3 - 80091b2: 6c78 ldr r0, [r7, #68] ; 0x44 - 80091b4: f7fc fb6c bl 8005890 + 80091a8: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 80091ac: 4619 mov r1, r3 + 80091ae: 6c78 ldr r0, [r7, #68] ; 0x44 + 80091b0: f7fc fb6c bl 800588c inseg.tcphdr->seqno = seqno = pcb->rcv_nxt; - 80091b8: 687b ldr r3, [r7, #4] - 80091ba: 6a5b ldr r3, [r3, #36] ; 0x24 - 80091bc: 4a91 ldr r2, [pc, #580] ; (8009404 ) - 80091be: 6013 str r3, [r2, #0] - 80091c0: 4b91 ldr r3, [pc, #580] ; (8009408 ) - 80091c2: 68db ldr r3, [r3, #12] - 80091c4: 4a8f ldr r2, [pc, #572] ; (8009404 ) - 80091c6: 6812 ldr r2, [r2, #0] - 80091c8: 605a str r2, [r3, #4] + 80091b4: 687b ldr r3, [r7, #4] + 80091b6: 6a5b ldr r3, [r3, #36] ; 0x24 + 80091b8: 4a91 ldr r2, [pc, #580] ; (8009400 ) + 80091ba: 6013 str r3, [r2, #0] + 80091bc: 4b91 ldr r3, [pc, #580] ; (8009404 ) + 80091be: 68db ldr r3, [r3, #12] + 80091c0: 4a8f ldr r2, [pc, #572] ; (8009400 ) + 80091c2: 6812 ldr r2, [r2, #0] + 80091c4: 605a str r2, [r3, #4] if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) { - 80091ca: e00d b.n 80091e8 + 80091c6: e00d b.n 80091e4 } else { if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) { - 80091cc: 4b8d ldr r3, [pc, #564] ; (8009404 ) - 80091ce: 681a ldr r2, [r3, #0] - 80091d0: 687b ldr r3, [r7, #4] - 80091d2: 6a5b ldr r3, [r3, #36] ; 0x24 - 80091d4: 1ad3 subs r3, r2, r3 - 80091d6: 2b00 cmp r3, #0 - 80091d8: da06 bge.n 80091e8 + 80091c8: 4b8d ldr r3, [pc, #564] ; (8009400 ) + 80091ca: 681a ldr r2, [r3, #0] + 80091cc: 687b ldr r3, [r7, #4] + 80091ce: 6a5b ldr r3, [r3, #36] ; 0x24 + 80091d0: 1ad3 subs r3, r2, r3 + 80091d2: 2b00 cmp r3, #0 + 80091d4: da06 bge.n 80091e4 /* the whole segment is < rcv_nxt */ /* must be a duplicate of a packet that has already been correctly handled */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: duplicate seqno %"U32_F"\n", seqno)); tcp_ack_now(pcb); - 80091da: 687b ldr r3, [r7, #4] - 80091dc: 8b5b ldrh r3, [r3, #26] - 80091de: f043 0302 orr.w r3, r3, #2 - 80091e2: b29a uxth r2, r3 - 80091e4: 687b ldr r3, [r7, #4] - 80091e6: 835a strh r2, [r3, #26] + 80091d6: 687b ldr r3, [r7, #4] + 80091d8: 8b5b ldrh r3, [r3, #26] + 80091da: f043 0302 orr.w r3, r3, #2 + 80091de: b29a uxth r2, r3 + 80091e0: 687b ldr r3, [r7, #4] + 80091e2: 835a strh r2, [r3, #26] } /* The sequence number must be within the window (above rcv_nxt and below rcv_nxt + rcv_wnd) in order to be further processed. */ if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 80091e8: 4b86 ldr r3, [pc, #536] ; (8009404 ) - 80091ea: 681a ldr r2, [r3, #0] - 80091ec: 687b ldr r3, [r7, #4] - 80091ee: 6a5b ldr r3, [r3, #36] ; 0x24 - 80091f0: 1ad3 subs r3, r2, r3 - 80091f2: 2b00 cmp r3, #0 - 80091f4: f2c0 842a blt.w 8009a4c - 80091f8: 4b82 ldr r3, [pc, #520] ; (8009404 ) - 80091fa: 681a ldr r2, [r3, #0] - 80091fc: 687b ldr r3, [r7, #4] - 80091fe: 6a5b ldr r3, [r3, #36] ; 0x24 - 8009200: 6879 ldr r1, [r7, #4] - 8009202: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8009204: 440b add r3, r1 - 8009206: 1ad3 subs r3, r2, r3 - 8009208: 3301 adds r3, #1 - 800920a: 2b00 cmp r3, #0 - 800920c: f300 841e bgt.w 8009a4c + 80091e4: 4b86 ldr r3, [pc, #536] ; (8009400 ) + 80091e6: 681a ldr r2, [r3, #0] + 80091e8: 687b ldr r3, [r7, #4] + 80091ea: 6a5b ldr r3, [r3, #36] ; 0x24 + 80091ec: 1ad3 subs r3, r2, r3 + 80091ee: 2b00 cmp r3, #0 + 80091f0: f2c0 842a blt.w 8009a48 + 80091f4: 4b82 ldr r3, [pc, #520] ; (8009400 ) + 80091f6: 681a ldr r2, [r3, #0] + 80091f8: 687b ldr r3, [r7, #4] + 80091fa: 6a5b ldr r3, [r3, #36] ; 0x24 + 80091fc: 6879 ldr r1, [r7, #4] + 80091fe: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8009200: 440b add r3, r1 + 8009202: 1ad3 subs r3, r2, r3 + 8009204: 3301 adds r3, #1 + 8009206: 2b00 cmp r3, #0 + 8009208: f300 841e bgt.w 8009a48 pcb->rcv_nxt + pcb->rcv_wnd - 1)) { if (pcb->rcv_nxt == seqno) { - 8009210: 687b ldr r3, [r7, #4] - 8009212: 6a5a ldr r2, [r3, #36] ; 0x24 - 8009214: 4b7b ldr r3, [pc, #492] ; (8009404 ) - 8009216: 681b ldr r3, [r3, #0] - 8009218: 429a cmp r2, r3 - 800921a: f040 829a bne.w 8009752 + 800920c: 687b ldr r3, [r7, #4] + 800920e: 6a5a ldr r2, [r3, #36] ; 0x24 + 8009210: 4b7b ldr r3, [pc, #492] ; (8009400 ) + 8009212: 681b ldr r3, [r3, #0] + 8009214: 429a cmp r2, r3 + 8009216: f040 829a bne.w 800974e /* The incoming segment is the next in sequence. We check if we have to trim the end of the segment and update rcv_nxt and pass the data to the application. */ tcplen = TCP_TCPLEN(&inseg); - 800921e: 4b7a ldr r3, [pc, #488] ; (8009408 ) - 8009220: 891c ldrh r4, [r3, #8] - 8009222: 4b79 ldr r3, [pc, #484] ; (8009408 ) - 8009224: 68db ldr r3, [r3, #12] - 8009226: 899b ldrh r3, [r3, #12] - 8009228: b29b uxth r3, r3 - 800922a: 4618 mov r0, r3 - 800922c: f7fb f84c bl 80042c8 - 8009230: 4603 mov r3, r0 - 8009232: b2db uxtb r3, r3 - 8009234: f003 0303 and.w r3, r3, #3 - 8009238: 2b00 cmp r3, #0 - 800923a: d001 beq.n 8009240 - 800923c: 2301 movs r3, #1 - 800923e: e000 b.n 8009242 - 8009240: 2300 movs r3, #0 - 8009242: 4423 add r3, r4 - 8009244: b29a uxth r2, r3 - 8009246: 4b71 ldr r3, [pc, #452] ; (800940c ) - 8009248: 801a strh r2, [r3, #0] + 800921a: 4b7a ldr r3, [pc, #488] ; (8009404 ) + 800921c: 891c ldrh r4, [r3, #8] + 800921e: 4b79 ldr r3, [pc, #484] ; (8009404 ) + 8009220: 68db ldr r3, [r3, #12] + 8009222: 899b ldrh r3, [r3, #12] + 8009224: b29b uxth r3, r3 + 8009226: 4618 mov r0, r3 + 8009228: f7fb f84c bl 80042c4 + 800922c: 4603 mov r3, r0 + 800922e: b2db uxtb r3, r3 + 8009230: f003 0303 and.w r3, r3, #3 + 8009234: 2b00 cmp r3, #0 + 8009236: d001 beq.n 800923c + 8009238: 2301 movs r3, #1 + 800923a: e000 b.n 800923e + 800923c: 2300 movs r3, #0 + 800923e: 4423 add r3, r4 + 8009240: b29a uxth r2, r3 + 8009242: 4b71 ldr r3, [pc, #452] ; (8009408 ) + 8009244: 801a strh r2, [r3, #0] if (tcplen > pcb->rcv_wnd) { - 800924a: 687b ldr r3, [r7, #4] - 800924c: 8d1a ldrh r2, [r3, #40] ; 0x28 - 800924e: 4b6f ldr r3, [pc, #444] ; (800940c ) - 8009250: 881b ldrh r3, [r3, #0] - 8009252: 429a cmp r2, r3 - 8009254: d275 bcs.n 8009342 + 8009246: 687b ldr r3, [r7, #4] + 8009248: 8d1a ldrh r2, [r3, #40] ; 0x28 + 800924a: 4b6f ldr r3, [pc, #444] ; (8009408 ) + 800924c: 881b ldrh r3, [r3, #0] + 800924e: 429a cmp r2, r3 + 8009250: d275 bcs.n 800933e LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: other end overran receive window" "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n", seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd)); if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 8009256: 4b6c ldr r3, [pc, #432] ; (8009408 ) - 8009258: 68db ldr r3, [r3, #12] - 800925a: 899b ldrh r3, [r3, #12] - 800925c: b29b uxth r3, r3 - 800925e: 4618 mov r0, r3 - 8009260: f7fb f832 bl 80042c8 - 8009264: 4603 mov r3, r0 - 8009266: b2db uxtb r3, r3 - 8009268: f003 0301 and.w r3, r3, #1 - 800926c: 2b00 cmp r3, #0 - 800926e: d01f beq.n 80092b0 + 8009252: 4b6c ldr r3, [pc, #432] ; (8009404 ) + 8009254: 68db ldr r3, [r3, #12] + 8009256: 899b ldrh r3, [r3, #12] + 8009258: b29b uxth r3, r3 + 800925a: 4618 mov r0, r3 + 800925c: f7fb f832 bl 80042c4 + 8009260: 4603 mov r3, r0 + 8009262: b2db uxtb r3, r3 + 8009264: f003 0301 and.w r3, r3, #1 + 8009268: 2b00 cmp r3, #0 + 800926a: d01f beq.n 80092ac /* Must remove the FIN from the header as we're trimming * that byte of sequence-space from the packet */ TCPH_FLAGS_SET(inseg.tcphdr, TCPH_FLAGS(inseg.tcphdr) & ~(unsigned int)TCP_FIN); - 8009270: 4b65 ldr r3, [pc, #404] ; (8009408 ) - 8009272: 68db ldr r3, [r3, #12] - 8009274: 899b ldrh r3, [r3, #12] - 8009276: b29b uxth r3, r3 - 8009278: b21b sxth r3, r3 - 800927a: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 800927e: b21c sxth r4, r3 - 8009280: 4b61 ldr r3, [pc, #388] ; (8009408 ) - 8009282: 68db ldr r3, [r3, #12] - 8009284: 899b ldrh r3, [r3, #12] - 8009286: b29b uxth r3, r3 - 8009288: 4618 mov r0, r3 - 800928a: f7fb f81d bl 80042c8 - 800928e: 4603 mov r3, r0 - 8009290: b2db uxtb r3, r3 - 8009292: b29b uxth r3, r3 - 8009294: f003 033e and.w r3, r3, #62 ; 0x3e - 8009298: b29b uxth r3, r3 - 800929a: 4618 mov r0, r3 - 800929c: f7fb f814 bl 80042c8 - 80092a0: 4603 mov r3, r0 - 80092a2: b21b sxth r3, r3 - 80092a4: 4323 orrs r3, r4 - 80092a6: b21a sxth r2, r3 - 80092a8: 4b57 ldr r3, [pc, #348] ; (8009408 ) - 80092aa: 68db ldr r3, [r3, #12] - 80092ac: b292 uxth r2, r2 - 80092ae: 819a strh r2, [r3, #12] + 800926c: 4b65 ldr r3, [pc, #404] ; (8009404 ) + 800926e: 68db ldr r3, [r3, #12] + 8009270: 899b ldrh r3, [r3, #12] + 8009272: b29b uxth r3, r3 + 8009274: b21b sxth r3, r3 + 8009276: f423 537c bic.w r3, r3, #16128 ; 0x3f00 + 800927a: b21c sxth r4, r3 + 800927c: 4b61 ldr r3, [pc, #388] ; (8009404 ) + 800927e: 68db ldr r3, [r3, #12] + 8009280: 899b ldrh r3, [r3, #12] + 8009282: b29b uxth r3, r3 + 8009284: 4618 mov r0, r3 + 8009286: f7fb f81d bl 80042c4 + 800928a: 4603 mov r3, r0 + 800928c: b2db uxtb r3, r3 + 800928e: b29b uxth r3, r3 + 8009290: f003 033e and.w r3, r3, #62 ; 0x3e + 8009294: b29b uxth r3, r3 + 8009296: 4618 mov r0, r3 + 8009298: f7fb f814 bl 80042c4 + 800929c: 4603 mov r3, r0 + 800929e: b21b sxth r3, r3 + 80092a0: 4323 orrs r3, r4 + 80092a2: b21a sxth r2, r3 + 80092a4: 4b57 ldr r3, [pc, #348] ; (8009404 ) + 80092a6: 68db ldr r3, [r3, #12] + 80092a8: b292 uxth r2, r2 + 80092aa: 819a strh r2, [r3, #12] } /* Adjust length of segment to fit in the window. */ TCPWND_CHECK16(pcb->rcv_wnd); inseg.len = (u16_t)pcb->rcv_wnd; - 80092b0: 687b ldr r3, [r7, #4] - 80092b2: 8d1a ldrh r2, [r3, #40] ; 0x28 - 80092b4: 4b54 ldr r3, [pc, #336] ; (8009408 ) - 80092b6: 811a strh r2, [r3, #8] + 80092ac: 687b ldr r3, [r7, #4] + 80092ae: 8d1a ldrh r2, [r3, #40] ; 0x28 + 80092b0: 4b54 ldr r3, [pc, #336] ; (8009404 ) + 80092b2: 811a strh r2, [r3, #8] if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { - 80092b8: 4b53 ldr r3, [pc, #332] ; (8009408 ) - 80092ba: 68db ldr r3, [r3, #12] - 80092bc: 899b ldrh r3, [r3, #12] - 80092be: b29b uxth r3, r3 - 80092c0: 4618 mov r0, r3 - 80092c2: f7fb f801 bl 80042c8 - 80092c6: 4603 mov r3, r0 - 80092c8: b2db uxtb r3, r3 - 80092ca: f003 0302 and.w r3, r3, #2 - 80092ce: 2b00 cmp r3, #0 - 80092d0: d005 beq.n 80092de + 80092b4: 4b53 ldr r3, [pc, #332] ; (8009404 ) + 80092b6: 68db ldr r3, [r3, #12] + 80092b8: 899b ldrh r3, [r3, #12] + 80092ba: b29b uxth r3, r3 + 80092bc: 4618 mov r0, r3 + 80092be: f7fb f801 bl 80042c4 + 80092c2: 4603 mov r3, r0 + 80092c4: b2db uxtb r3, r3 + 80092c6: f003 0302 and.w r3, r3, #2 + 80092ca: 2b00 cmp r3, #0 + 80092cc: d005 beq.n 80092da inseg.len -= 1; - 80092d2: 4b4d ldr r3, [pc, #308] ; (8009408 ) - 80092d4: 891b ldrh r3, [r3, #8] - 80092d6: 3b01 subs r3, #1 - 80092d8: b29a uxth r2, r3 - 80092da: 4b4b ldr r3, [pc, #300] ; (8009408 ) - 80092dc: 811a strh r2, [r3, #8] + 80092ce: 4b4d ldr r3, [pc, #308] ; (8009404 ) + 80092d0: 891b ldrh r3, [r3, #8] + 80092d2: 3b01 subs r3, #1 + 80092d4: b29a uxth r2, r3 + 80092d6: 4b4b ldr r3, [pc, #300] ; (8009404 ) + 80092d8: 811a strh r2, [r3, #8] } pbuf_realloc(inseg.p, inseg.len); - 80092de: 4b4a ldr r3, [pc, #296] ; (8009408 ) - 80092e0: 685b ldr r3, [r3, #4] - 80092e2: 4a49 ldr r2, [pc, #292] ; (8009408 ) - 80092e4: 8912 ldrh r2, [r2, #8] - 80092e6: 4611 mov r1, r2 - 80092e8: 4618 mov r0, r3 - 80092ea: f7fc f9d1 bl 8005690 + 80092da: 4b4a ldr r3, [pc, #296] ; (8009404 ) + 80092dc: 685b ldr r3, [r3, #4] + 80092de: 4a49 ldr r2, [pc, #292] ; (8009404 ) + 80092e0: 8912 ldrh r2, [r2, #8] + 80092e2: 4611 mov r1, r2 + 80092e4: 4618 mov r0, r3 + 80092e6: f7fc f9d1 bl 800568c tcplen = TCP_TCPLEN(&inseg); - 80092ee: 4b46 ldr r3, [pc, #280] ; (8009408 ) - 80092f0: 891c ldrh r4, [r3, #8] - 80092f2: 4b45 ldr r3, [pc, #276] ; (8009408 ) - 80092f4: 68db ldr r3, [r3, #12] - 80092f6: 899b ldrh r3, [r3, #12] - 80092f8: b29b uxth r3, r3 - 80092fa: 4618 mov r0, r3 - 80092fc: f7fa ffe4 bl 80042c8 - 8009300: 4603 mov r3, r0 - 8009302: b2db uxtb r3, r3 - 8009304: f003 0303 and.w r3, r3, #3 - 8009308: 2b00 cmp r3, #0 - 800930a: d001 beq.n 8009310 - 800930c: 2301 movs r3, #1 - 800930e: e000 b.n 8009312 - 8009310: 2300 movs r3, #0 - 8009312: 4423 add r3, r4 - 8009314: b29a uxth r2, r3 - 8009316: 4b3d ldr r3, [pc, #244] ; (800940c ) - 8009318: 801a strh r2, [r3, #0] + 80092ea: 4b46 ldr r3, [pc, #280] ; (8009404 ) + 80092ec: 891c ldrh r4, [r3, #8] + 80092ee: 4b45 ldr r3, [pc, #276] ; (8009404 ) + 80092f0: 68db ldr r3, [r3, #12] + 80092f2: 899b ldrh r3, [r3, #12] + 80092f4: b29b uxth r3, r3 + 80092f6: 4618 mov r0, r3 + 80092f8: f7fa ffe4 bl 80042c4 + 80092fc: 4603 mov r3, r0 + 80092fe: b2db uxtb r3, r3 + 8009300: f003 0303 and.w r3, r3, #3 + 8009304: 2b00 cmp r3, #0 + 8009306: d001 beq.n 800930c + 8009308: 2301 movs r3, #1 + 800930a: e000 b.n 800930e + 800930c: 2300 movs r3, #0 + 800930e: 4423 add r3, r4 + 8009310: b29a uxth r2, r3 + 8009312: 4b3d ldr r3, [pc, #244] ; (8009408 ) + 8009314: 801a strh r2, [r3, #0] LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n", - 800931a: 4b3c ldr r3, [pc, #240] ; (800940c ) - 800931c: 881b ldrh r3, [r3, #0] - 800931e: 461a mov r2, r3 - 8009320: 4b38 ldr r3, [pc, #224] ; (8009404 ) - 8009322: 681b ldr r3, [r3, #0] - 8009324: 441a add r2, r3 - 8009326: 687b ldr r3, [r7, #4] - 8009328: 6a5b ldr r3, [r3, #36] ; 0x24 - 800932a: 6879 ldr r1, [r7, #4] - 800932c: 8d09 ldrh r1, [r1, #40] ; 0x28 - 800932e: 440b add r3, r1 - 8009330: 429a cmp r2, r3 - 8009332: d006 beq.n 8009342 - 8009334: 4b36 ldr r3, [pc, #216] ; (8009410 ) - 8009336: f240 52cb movw r2, #1483 ; 0x5cb - 800933a: 4936 ldr r1, [pc, #216] ; (8009414 ) - 800933c: 4836 ldr r0, [pc, #216] ; (8009418 ) - 800933e: f007 f849 bl 80103d4 + 8009316: 4b3c ldr r3, [pc, #240] ; (8009408 ) + 8009318: 881b ldrh r3, [r3, #0] + 800931a: 461a mov r2, r3 + 800931c: 4b38 ldr r3, [pc, #224] ; (8009400 ) + 800931e: 681b ldr r3, [r3, #0] + 8009320: 441a add r2, r3 + 8009322: 687b ldr r3, [r7, #4] + 8009324: 6a5b ldr r3, [r3, #36] ; 0x24 + 8009326: 6879 ldr r1, [r7, #4] + 8009328: 8d09 ldrh r1, [r1, #40] ; 0x28 + 800932a: 440b add r3, r1 + 800932c: 429a cmp r2, r3 + 800932e: d006 beq.n 800933e + 8009330: 4b36 ldr r3, [pc, #216] ; (800940c ) + 8009332: f240 52cb movw r2, #1483 ; 0x5cb + 8009336: 4936 ldr r1, [pc, #216] ; (8009410 ) + 8009338: 4836 ldr r0, [pc, #216] ; (8009414 ) + 800933a: f007 f849 bl 80103d0 } #if TCP_QUEUE_OOSEQ /* Received in-sequence data, adjust ooseq data if: - FIN has been received or - inseq overlaps with ooseq */ if (pcb->ooseq != NULL) { - 8009342: 687b ldr r3, [r7, #4] - 8009344: 6f5b ldr r3, [r3, #116] ; 0x74 - 8009346: 2b00 cmp r3, #0 - 8009348: f000 80e7 beq.w 800951a + 800933e: 687b ldr r3, [r7, #4] + 8009340: 6f5b ldr r3, [r3, #116] ; 0x74 + 8009342: 2b00 cmp r3, #0 + 8009344: f000 80e7 beq.w 8009516 if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 800934c: 4b2e ldr r3, [pc, #184] ; (8009408 ) - 800934e: 68db ldr r3, [r3, #12] - 8009350: 899b ldrh r3, [r3, #12] - 8009352: b29b uxth r3, r3 - 8009354: 4618 mov r0, r3 - 8009356: f7fa ffb7 bl 80042c8 - 800935a: 4603 mov r3, r0 - 800935c: b2db uxtb r3, r3 - 800935e: f003 0301 and.w r3, r3, #1 - 8009362: 2b00 cmp r3, #0 - 8009364: d010 beq.n 8009388 + 8009348: 4b2e ldr r3, [pc, #184] ; (8009404 ) + 800934a: 68db ldr r3, [r3, #12] + 800934c: 899b ldrh r3, [r3, #12] + 800934e: b29b uxth r3, r3 + 8009350: 4618 mov r0, r3 + 8009352: f7fa ffb7 bl 80042c4 + 8009356: 4603 mov r3, r0 + 8009358: b2db uxtb r3, r3 + 800935a: f003 0301 and.w r3, r3, #1 + 800935e: 2b00 cmp r3, #0 + 8009360: d010 beq.n 8009384 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received in-order FIN, binning ooseq queue\n")); /* Received in-order FIN means anything that was received * out of order must now have been received in-order, so * bin the ooseq queue */ while (pcb->ooseq != NULL) { - 8009366: e00a b.n 800937e + 8009362: e00a b.n 800937a struct tcp_seg *old_ooseq = pcb->ooseq; - 8009368: 687b ldr r3, [r7, #4] - 800936a: 6f5b ldr r3, [r3, #116] ; 0x74 - 800936c: 60fb str r3, [r7, #12] + 8009364: 687b ldr r3, [r7, #4] + 8009366: 6f5b ldr r3, [r3, #116] ; 0x74 + 8009368: 60fb str r3, [r7, #12] pcb->ooseq = pcb->ooseq->next; - 800936e: 687b ldr r3, [r7, #4] - 8009370: 6f5b ldr r3, [r3, #116] ; 0x74 - 8009372: 681a ldr r2, [r3, #0] - 8009374: 687b ldr r3, [r7, #4] - 8009376: 675a str r2, [r3, #116] ; 0x74 + 800936a: 687b ldr r3, [r7, #4] + 800936c: 6f5b ldr r3, [r3, #116] ; 0x74 + 800936e: 681a ldr r2, [r3, #0] + 8009370: 687b ldr r3, [r7, #4] + 8009372: 675a str r2, [r3, #116] ; 0x74 tcp_seg_free(old_ooseq); - 8009378: 68f8 ldr r0, [r7, #12] - 800937a: f7fd fd92 bl 8006ea2 + 8009374: 68f8 ldr r0, [r7, #12] + 8009376: f7fd fd92 bl 8006e9e while (pcb->ooseq != NULL) { - 800937e: 687b ldr r3, [r7, #4] - 8009380: 6f5b ldr r3, [r3, #116] ; 0x74 - 8009382: 2b00 cmp r3, #0 - 8009384: d1f0 bne.n 8009368 - 8009386: e0c8 b.n 800951a + 800937a: 687b ldr r3, [r7, #4] + 800937c: 6f5b ldr r3, [r3, #116] ; 0x74 + 800937e: 2b00 cmp r3, #0 + 8009380: d1f0 bne.n 8009364 + 8009382: e0c8 b.n 8009516 } } else { struct tcp_seg *next = pcb->ooseq; - 8009388: 687b ldr r3, [r7, #4] - 800938a: 6f5b ldr r3, [r3, #116] ; 0x74 - 800938c: 63fb str r3, [r7, #60] ; 0x3c + 8009384: 687b ldr r3, [r7, #4] + 8009386: 6f5b ldr r3, [r3, #116] ; 0x74 + 8009388: 63fb str r3, [r7, #60] ; 0x3c /* Remove all segments on ooseq that are covered by inseg already. * FIN is copied from ooseq to inseg if present. */ while (next && - 800938e: e052 b.n 8009436 + 800938a: e052 b.n 8009432 TCP_SEQ_GEQ(seqno + tcplen, next->tcphdr->seqno + next->len)) { struct tcp_seg *tmp; /* inseg cannot have FIN here (already processed above) */ if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 && - 8009390: 6bfb ldr r3, [r7, #60] ; 0x3c - 8009392: 68db ldr r3, [r3, #12] - 8009394: 899b ldrh r3, [r3, #12] - 8009396: b29b uxth r3, r3 - 8009398: 4618 mov r0, r3 - 800939a: f7fa ff95 bl 80042c8 - 800939e: 4603 mov r3, r0 - 80093a0: b2db uxtb r3, r3 - 80093a2: f003 0301 and.w r3, r3, #1 - 80093a6: 2b00 cmp r3, #0 - 80093a8: d03d beq.n 8009426 + 800938c: 6bfb ldr r3, [r7, #60] ; 0x3c + 800938e: 68db ldr r3, [r3, #12] + 8009390: 899b ldrh r3, [r3, #12] + 8009392: b29b uxth r3, r3 + 8009394: 4618 mov r0, r3 + 8009396: f7fa ff95 bl 80042c4 + 800939a: 4603 mov r3, r0 + 800939c: b2db uxtb r3, r3 + 800939e: f003 0301 and.w r3, r3, #1 + 80093a2: 2b00 cmp r3, #0 + 80093a4: d03d beq.n 8009422 (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) == 0) { - 80093aa: 4b17 ldr r3, [pc, #92] ; (8009408 ) - 80093ac: 68db ldr r3, [r3, #12] - 80093ae: 899b ldrh r3, [r3, #12] - 80093b0: b29b uxth r3, r3 - 80093b2: 4618 mov r0, r3 - 80093b4: f7fa ff88 bl 80042c8 - 80093b8: 4603 mov r3, r0 - 80093ba: b2db uxtb r3, r3 - 80093bc: f003 0302 and.w r3, r3, #2 + 80093a6: 4b17 ldr r3, [pc, #92] ; (8009404 ) + 80093a8: 68db ldr r3, [r3, #12] + 80093aa: 899b ldrh r3, [r3, #12] + 80093ac: b29b uxth r3, r3 + 80093ae: 4618 mov r0, r3 + 80093b0: f7fa ff88 bl 80042c4 + 80093b4: 4603 mov r3, r0 + 80093b6: b2db uxtb r3, r3 + 80093b8: f003 0302 and.w r3, r3, #2 if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 && - 80093c0: 2b00 cmp r3, #0 - 80093c2: d130 bne.n 8009426 + 80093bc: 2b00 cmp r3, #0 + 80093be: d130 bne.n 8009422 TCPH_SET_FLAG(inseg.tcphdr, TCP_FIN); - 80093c4: 4b10 ldr r3, [pc, #64] ; (8009408 ) - 80093c6: 68db ldr r3, [r3, #12] - 80093c8: 899b ldrh r3, [r3, #12] - 80093ca: b29c uxth r4, r3 - 80093cc: 2001 movs r0, #1 - 80093ce: f7fa ff7b bl 80042c8 - 80093d2: 4603 mov r3, r0 - 80093d4: 461a mov r2, r3 - 80093d6: 4b0c ldr r3, [pc, #48] ; (8009408 ) - 80093d8: 68db ldr r3, [r3, #12] - 80093da: 4322 orrs r2, r4 - 80093dc: b292 uxth r2, r2 - 80093de: 819a strh r2, [r3, #12] + 80093c0: 4b10 ldr r3, [pc, #64] ; (8009404 ) + 80093c2: 68db ldr r3, [r3, #12] + 80093c4: 899b ldrh r3, [r3, #12] + 80093c6: b29c uxth r4, r3 + 80093c8: 2001 movs r0, #1 + 80093ca: f7fa ff7b bl 80042c4 + 80093ce: 4603 mov r3, r0 + 80093d0: 461a mov r2, r3 + 80093d2: 4b0c ldr r3, [pc, #48] ; (8009404 ) + 80093d4: 68db ldr r3, [r3, #12] + 80093d6: 4322 orrs r2, r4 + 80093d8: b292 uxth r2, r2 + 80093da: 819a strh r2, [r3, #12] tcplen = TCP_TCPLEN(&inseg); - 80093e0: 4b09 ldr r3, [pc, #36] ; (8009408 ) - 80093e2: 891c ldrh r4, [r3, #8] - 80093e4: 4b08 ldr r3, [pc, #32] ; (8009408 ) - 80093e6: 68db ldr r3, [r3, #12] - 80093e8: 899b ldrh r3, [r3, #12] - 80093ea: b29b uxth r3, r3 - 80093ec: 4618 mov r0, r3 - 80093ee: f7fa ff6b bl 80042c8 - 80093f2: 4603 mov r3, r0 - 80093f4: b2db uxtb r3, r3 - 80093f6: f003 0303 and.w r3, r3, #3 - 80093fa: 2b00 cmp r3, #0 - 80093fc: d00e beq.n 800941c - 80093fe: 2301 movs r3, #1 - 8009400: e00d b.n 800941e - 8009402: bf00 nop - 8009404: 20008c38 .word 0x20008c38 - 8009408: 20008c18 .word 0x20008c18 - 800940c: 20008c42 .word 0x20008c42 - 8009410: 08016124 .word 0x08016124 - 8009414: 080164cc .word 0x080164cc - 8009418: 08016170 .word 0x08016170 - 800941c: 2300 movs r3, #0 - 800941e: 4423 add r3, r4 - 8009420: b29a uxth r2, r3 - 8009422: 4b98 ldr r3, [pc, #608] ; (8009684 ) - 8009424: 801a strh r2, [r3, #0] + 80093dc: 4b09 ldr r3, [pc, #36] ; (8009404 ) + 80093de: 891c ldrh r4, [r3, #8] + 80093e0: 4b08 ldr r3, [pc, #32] ; (8009404 ) + 80093e2: 68db ldr r3, [r3, #12] + 80093e4: 899b ldrh r3, [r3, #12] + 80093e6: b29b uxth r3, r3 + 80093e8: 4618 mov r0, r3 + 80093ea: f7fa ff6b bl 80042c4 + 80093ee: 4603 mov r3, r0 + 80093f0: b2db uxtb r3, r3 + 80093f2: f003 0303 and.w r3, r3, #3 + 80093f6: 2b00 cmp r3, #0 + 80093f8: d00e beq.n 8009418 + 80093fa: 2301 movs r3, #1 + 80093fc: e00d b.n 800941a + 80093fe: bf00 nop + 8009400: 20008c38 .word 0x20008c38 + 8009404: 20008c18 .word 0x20008c18 + 8009408: 20008c42 .word 0x20008c42 + 800940c: 08016124 .word 0x08016124 + 8009410: 080164cc .word 0x080164cc + 8009414: 08016170 .word 0x08016170 + 8009418: 2300 movs r3, #0 + 800941a: 4423 add r3, r4 + 800941c: b29a uxth r2, r3 + 800941e: 4b98 ldr r3, [pc, #608] ; (8009680 ) + 8009420: 801a strh r2, [r3, #0] } tmp = next; - 8009426: 6bfb ldr r3, [r7, #60] ; 0x3c - 8009428: 613b str r3, [r7, #16] + 8009422: 6bfb ldr r3, [r7, #60] ; 0x3c + 8009424: 613b str r3, [r7, #16] next = next->next; - 800942a: 6bfb ldr r3, [r7, #60] ; 0x3c - 800942c: 681b ldr r3, [r3, #0] - 800942e: 63fb str r3, [r7, #60] ; 0x3c + 8009426: 6bfb ldr r3, [r7, #60] ; 0x3c + 8009428: 681b ldr r3, [r3, #0] + 800942a: 63fb str r3, [r7, #60] ; 0x3c tcp_seg_free(tmp); - 8009430: 6938 ldr r0, [r7, #16] - 8009432: f7fd fd36 bl 8006ea2 + 800942c: 6938 ldr r0, [r7, #16] + 800942e: f7fd fd36 bl 8006e9e while (next && - 8009436: 6bfb ldr r3, [r7, #60] ; 0x3c - 8009438: 2b00 cmp r3, #0 - 800943a: d00e beq.n 800945a + 8009432: 6bfb ldr r3, [r7, #60] ; 0x3c + 8009434: 2b00 cmp r3, #0 + 8009436: d00e beq.n 8009456 TCP_SEQ_GEQ(seqno + tcplen, - 800943c: 4b91 ldr r3, [pc, #580] ; (8009684 ) - 800943e: 881b ldrh r3, [r3, #0] - 8009440: 461a mov r2, r3 - 8009442: 4b91 ldr r3, [pc, #580] ; (8009688 ) - 8009444: 681b ldr r3, [r3, #0] - 8009446: 441a add r2, r3 - 8009448: 6bfb ldr r3, [r7, #60] ; 0x3c - 800944a: 68db ldr r3, [r3, #12] - 800944c: 685b ldr r3, [r3, #4] - 800944e: 6bf9 ldr r1, [r7, #60] ; 0x3c - 8009450: 8909 ldrh r1, [r1, #8] - 8009452: 440b add r3, r1 - 8009454: 1ad3 subs r3, r2, r3 + 8009438: 4b91 ldr r3, [pc, #580] ; (8009680 ) + 800943a: 881b ldrh r3, [r3, #0] + 800943c: 461a mov r2, r3 + 800943e: 4b91 ldr r3, [pc, #580] ; (8009684 ) + 8009440: 681b ldr r3, [r3, #0] + 8009442: 441a add r2, r3 + 8009444: 6bfb ldr r3, [r7, #60] ; 0x3c + 8009446: 68db ldr r3, [r3, #12] + 8009448: 685b ldr r3, [r3, #4] + 800944a: 6bf9 ldr r1, [r7, #60] ; 0x3c + 800944c: 8909 ldrh r1, [r1, #8] + 800944e: 440b add r3, r1 + 8009450: 1ad3 subs r3, r2, r3 while (next && - 8009456: 2b00 cmp r3, #0 - 8009458: da9a bge.n 8009390 + 8009452: 2b00 cmp r3, #0 + 8009454: da9a bge.n 800938c } /* Now trim right side of inseg if it overlaps with the first * segment on ooseq */ if (next && - 800945a: 6bfb ldr r3, [r7, #60] ; 0x3c - 800945c: 2b00 cmp r3, #0 - 800945e: d059 beq.n 8009514 + 8009456: 6bfb ldr r3, [r7, #60] ; 0x3c + 8009458: 2b00 cmp r3, #0 + 800945a: d059 beq.n 8009510 TCP_SEQ_GT(seqno + tcplen, - 8009460: 4b88 ldr r3, [pc, #544] ; (8009684 ) - 8009462: 881b ldrh r3, [r3, #0] - 8009464: 461a mov r2, r3 - 8009466: 4b88 ldr r3, [pc, #544] ; (8009688 ) - 8009468: 681b ldr r3, [r3, #0] - 800946a: 441a add r2, r3 - 800946c: 6bfb ldr r3, [r7, #60] ; 0x3c - 800946e: 68db ldr r3, [r3, #12] - 8009470: 685b ldr r3, [r3, #4] - 8009472: 1ad3 subs r3, r2, r3 + 800945c: 4b88 ldr r3, [pc, #544] ; (8009680 ) + 800945e: 881b ldrh r3, [r3, #0] + 8009460: 461a mov r2, r3 + 8009462: 4b88 ldr r3, [pc, #544] ; (8009684 ) + 8009464: 681b ldr r3, [r3, #0] + 8009466: 441a add r2, r3 + 8009468: 6bfb ldr r3, [r7, #60] ; 0x3c + 800946a: 68db ldr r3, [r3, #12] + 800946c: 685b ldr r3, [r3, #4] + 800946e: 1ad3 subs r3, r2, r3 if (next && - 8009474: 2b00 cmp r3, #0 - 8009476: dd4d ble.n 8009514 + 8009470: 2b00 cmp r3, #0 + 8009472: dd4d ble.n 8009510 next->tcphdr->seqno)) { /* inseg cannot have FIN here (already processed above) */ inseg.len = (u16_t)(next->tcphdr->seqno - seqno); - 8009478: 6bfb ldr r3, [r7, #60] ; 0x3c - 800947a: 68db ldr r3, [r3, #12] - 800947c: 685b ldr r3, [r3, #4] - 800947e: b29a uxth r2, r3 - 8009480: 4b81 ldr r3, [pc, #516] ; (8009688 ) - 8009482: 681b ldr r3, [r3, #0] - 8009484: b29b uxth r3, r3 - 8009486: 1ad3 subs r3, r2, r3 - 8009488: b29a uxth r2, r3 - 800948a: 4b80 ldr r3, [pc, #512] ; (800968c ) - 800948c: 811a strh r2, [r3, #8] + 8009474: 6bfb ldr r3, [r7, #60] ; 0x3c + 8009476: 68db ldr r3, [r3, #12] + 8009478: 685b ldr r3, [r3, #4] + 800947a: b29a uxth r2, r3 + 800947c: 4b81 ldr r3, [pc, #516] ; (8009684 ) + 800947e: 681b ldr r3, [r3, #0] + 8009480: b29b uxth r3, r3 + 8009482: 1ad3 subs r3, r2, r3 + 8009484: b29a uxth r2, r3 + 8009486: 4b80 ldr r3, [pc, #512] ; (8009688 ) + 8009488: 811a strh r2, [r3, #8] if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { - 800948e: 4b7f ldr r3, [pc, #508] ; (800968c ) - 8009490: 68db ldr r3, [r3, #12] - 8009492: 899b ldrh r3, [r3, #12] - 8009494: b29b uxth r3, r3 - 8009496: 4618 mov r0, r3 - 8009498: f7fa ff16 bl 80042c8 - 800949c: 4603 mov r3, r0 - 800949e: b2db uxtb r3, r3 - 80094a0: f003 0302 and.w r3, r3, #2 - 80094a4: 2b00 cmp r3, #0 - 80094a6: d005 beq.n 80094b4 + 800948a: 4b7f ldr r3, [pc, #508] ; (8009688 ) + 800948c: 68db ldr r3, [r3, #12] + 800948e: 899b ldrh r3, [r3, #12] + 8009490: b29b uxth r3, r3 + 8009492: 4618 mov r0, r3 + 8009494: f7fa ff16 bl 80042c4 + 8009498: 4603 mov r3, r0 + 800949a: b2db uxtb r3, r3 + 800949c: f003 0302 and.w r3, r3, #2 + 80094a0: 2b00 cmp r3, #0 + 80094a2: d005 beq.n 80094b0 inseg.len -= 1; - 80094a8: 4b78 ldr r3, [pc, #480] ; (800968c ) - 80094aa: 891b ldrh r3, [r3, #8] - 80094ac: 3b01 subs r3, #1 - 80094ae: b29a uxth r2, r3 - 80094b0: 4b76 ldr r3, [pc, #472] ; (800968c ) - 80094b2: 811a strh r2, [r3, #8] + 80094a4: 4b78 ldr r3, [pc, #480] ; (8009688 ) + 80094a6: 891b ldrh r3, [r3, #8] + 80094a8: 3b01 subs r3, #1 + 80094aa: b29a uxth r2, r3 + 80094ac: 4b76 ldr r3, [pc, #472] ; (8009688 ) + 80094ae: 811a strh r2, [r3, #8] } pbuf_realloc(inseg.p, inseg.len); - 80094b4: 4b75 ldr r3, [pc, #468] ; (800968c ) - 80094b6: 685b ldr r3, [r3, #4] - 80094b8: 4a74 ldr r2, [pc, #464] ; (800968c ) - 80094ba: 8912 ldrh r2, [r2, #8] - 80094bc: 4611 mov r1, r2 - 80094be: 4618 mov r0, r3 - 80094c0: f7fc f8e6 bl 8005690 + 80094b0: 4b75 ldr r3, [pc, #468] ; (8009688 ) + 80094b2: 685b ldr r3, [r3, #4] + 80094b4: 4a74 ldr r2, [pc, #464] ; (8009688 ) + 80094b6: 8912 ldrh r2, [r2, #8] + 80094b8: 4611 mov r1, r2 + 80094ba: 4618 mov r0, r3 + 80094bc: f7fc f8e6 bl 800568c tcplen = TCP_TCPLEN(&inseg); - 80094c4: 4b71 ldr r3, [pc, #452] ; (800968c ) - 80094c6: 891c ldrh r4, [r3, #8] - 80094c8: 4b70 ldr r3, [pc, #448] ; (800968c ) - 80094ca: 68db ldr r3, [r3, #12] - 80094cc: 899b ldrh r3, [r3, #12] - 80094ce: b29b uxth r3, r3 - 80094d0: 4618 mov r0, r3 - 80094d2: f7fa fef9 bl 80042c8 - 80094d6: 4603 mov r3, r0 - 80094d8: b2db uxtb r3, r3 - 80094da: f003 0303 and.w r3, r3, #3 - 80094de: 2b00 cmp r3, #0 - 80094e0: d001 beq.n 80094e6 - 80094e2: 2301 movs r3, #1 - 80094e4: e000 b.n 80094e8 - 80094e6: 2300 movs r3, #0 - 80094e8: 4423 add r3, r4 - 80094ea: b29a uxth r2, r3 - 80094ec: 4b65 ldr r3, [pc, #404] ; (8009684 ) - 80094ee: 801a strh r2, [r3, #0] + 80094c0: 4b71 ldr r3, [pc, #452] ; (8009688 ) + 80094c2: 891c ldrh r4, [r3, #8] + 80094c4: 4b70 ldr r3, [pc, #448] ; (8009688 ) + 80094c6: 68db ldr r3, [r3, #12] + 80094c8: 899b ldrh r3, [r3, #12] + 80094ca: b29b uxth r3, r3 + 80094cc: 4618 mov r0, r3 + 80094ce: f7fa fef9 bl 80042c4 + 80094d2: 4603 mov r3, r0 + 80094d4: b2db uxtb r3, r3 + 80094d6: f003 0303 and.w r3, r3, #3 + 80094da: 2b00 cmp r3, #0 + 80094dc: d001 beq.n 80094e2 + 80094de: 2301 movs r3, #1 + 80094e0: e000 b.n 80094e4 + 80094e2: 2300 movs r3, #0 + 80094e4: 4423 add r3, r4 + 80094e6: b29a uxth r2, r3 + 80094e8: 4b65 ldr r3, [pc, #404] ; (8009680 ) + 80094ea: 801a strh r2, [r3, #0] LWIP_ASSERT("tcp_receive: segment not trimmed correctly to ooseq queue\n", - 80094f0: 4b64 ldr r3, [pc, #400] ; (8009684 ) - 80094f2: 881b ldrh r3, [r3, #0] - 80094f4: 461a mov r2, r3 - 80094f6: 4b64 ldr r3, [pc, #400] ; (8009688 ) - 80094f8: 681b ldr r3, [r3, #0] - 80094fa: 441a add r2, r3 - 80094fc: 6bfb ldr r3, [r7, #60] ; 0x3c - 80094fe: 68db ldr r3, [r3, #12] - 8009500: 685b ldr r3, [r3, #4] - 8009502: 429a cmp r2, r3 - 8009504: d006 beq.n 8009514 - 8009506: 4b62 ldr r3, [pc, #392] ; (8009690 ) - 8009508: f240 52fc movw r2, #1532 ; 0x5fc - 800950c: 4961 ldr r1, [pc, #388] ; (8009694 ) - 800950e: 4862 ldr r0, [pc, #392] ; (8009698 ) - 8009510: f006 ff60 bl 80103d4 + 80094ec: 4b64 ldr r3, [pc, #400] ; (8009680 ) + 80094ee: 881b ldrh r3, [r3, #0] + 80094f0: 461a mov r2, r3 + 80094f2: 4b64 ldr r3, [pc, #400] ; (8009684 ) + 80094f4: 681b ldr r3, [r3, #0] + 80094f6: 441a add r2, r3 + 80094f8: 6bfb ldr r3, [r7, #60] ; 0x3c + 80094fa: 68db ldr r3, [r3, #12] + 80094fc: 685b ldr r3, [r3, #4] + 80094fe: 429a cmp r2, r3 + 8009500: d006 beq.n 8009510 + 8009502: 4b62 ldr r3, [pc, #392] ; (800968c ) + 8009504: f240 52fc movw r2, #1532 ; 0x5fc + 8009508: 4961 ldr r1, [pc, #388] ; (8009690 ) + 800950a: 4862 ldr r0, [pc, #392] ; (8009694 ) + 800950c: f006 ff60 bl 80103d0 (seqno + tcplen) == next->tcphdr->seqno); } pcb->ooseq = next; - 8009514: 687b ldr r3, [r7, #4] - 8009516: 6bfa ldr r2, [r7, #60] ; 0x3c - 8009518: 675a str r2, [r3, #116] ; 0x74 + 8009510: 687b ldr r3, [r7, #4] + 8009512: 6bfa ldr r2, [r7, #60] ; 0x3c + 8009514: 675a str r2, [r3, #116] ; 0x74 } } #endif /* TCP_QUEUE_OOSEQ */ pcb->rcv_nxt = seqno + tcplen; - 800951a: 4b5a ldr r3, [pc, #360] ; (8009684 ) - 800951c: 881b ldrh r3, [r3, #0] - 800951e: 461a mov r2, r3 - 8009520: 4b59 ldr r3, [pc, #356] ; (8009688 ) - 8009522: 681b ldr r3, [r3, #0] - 8009524: 441a add r2, r3 - 8009526: 687b ldr r3, [r7, #4] - 8009528: 625a str r2, [r3, #36] ; 0x24 + 8009516: 4b5a ldr r3, [pc, #360] ; (8009680 ) + 8009518: 881b ldrh r3, [r3, #0] + 800951a: 461a mov r2, r3 + 800951c: 4b59 ldr r3, [pc, #356] ; (8009684 ) + 800951e: 681b ldr r3, [r3, #0] + 8009520: 441a add r2, r3 + 8009522: 687b ldr r3, [r7, #4] + 8009524: 625a str r2, [r3, #36] ; 0x24 /* Update the receiver's (our) window. */ LWIP_ASSERT("tcp_receive: tcplen > rcv_wnd\n", pcb->rcv_wnd >= tcplen); - 800952a: 687b ldr r3, [r7, #4] - 800952c: 8d1a ldrh r2, [r3, #40] ; 0x28 - 800952e: 4b55 ldr r3, [pc, #340] ; (8009684 ) - 8009530: 881b ldrh r3, [r3, #0] - 8009532: 429a cmp r2, r3 - 8009534: d206 bcs.n 8009544 - 8009536: 4b56 ldr r3, [pc, #344] ; (8009690 ) - 8009538: f240 6207 movw r2, #1543 ; 0x607 - 800953c: 4957 ldr r1, [pc, #348] ; (800969c ) - 800953e: 4856 ldr r0, [pc, #344] ; (8009698 ) - 8009540: f006 ff48 bl 80103d4 + 8009526: 687b ldr r3, [r7, #4] + 8009528: 8d1a ldrh r2, [r3, #40] ; 0x28 + 800952a: 4b55 ldr r3, [pc, #340] ; (8009680 ) + 800952c: 881b ldrh r3, [r3, #0] + 800952e: 429a cmp r2, r3 + 8009530: d206 bcs.n 8009540 + 8009532: 4b56 ldr r3, [pc, #344] ; (800968c ) + 8009534: f240 6207 movw r2, #1543 ; 0x607 + 8009538: 4957 ldr r1, [pc, #348] ; (8009698 ) + 800953a: 4856 ldr r0, [pc, #344] ; (8009694 ) + 800953c: f006 ff48 bl 80103d0 pcb->rcv_wnd -= tcplen; - 8009544: 687b ldr r3, [r7, #4] - 8009546: 8d1a ldrh r2, [r3, #40] ; 0x28 - 8009548: 4b4e ldr r3, [pc, #312] ; (8009684 ) - 800954a: 881b ldrh r3, [r3, #0] - 800954c: 1ad3 subs r3, r2, r3 - 800954e: b29a uxth r2, r3 - 8009550: 687b ldr r3, [r7, #4] - 8009552: 851a strh r2, [r3, #40] ; 0x28 + 8009540: 687b ldr r3, [r7, #4] + 8009542: 8d1a ldrh r2, [r3, #40] ; 0x28 + 8009544: 4b4e ldr r3, [pc, #312] ; (8009680 ) + 8009546: 881b ldrh r3, [r3, #0] + 8009548: 1ad3 subs r3, r2, r3 + 800954a: b29a uxth r2, r3 + 800954c: 687b ldr r3, [r7, #4] + 800954e: 851a strh r2, [r3, #40] ; 0x28 tcp_update_rcv_ann_wnd(pcb); - 8009554: 6878 ldr r0, [r7, #4] - 8009556: f7fc ffc5 bl 80064e4 + 8009550: 6878 ldr r0, [r7, #4] + 8009552: f7fc ffc5 bl 80064e0 chains its data on this pbuf as well. If the segment was a FIN, we set the TF_GOT_FIN flag that will be used to indicate to the application that the remote side has closed its end of the connection. */ if (inseg.p->tot_len > 0) { - 800955a: 4b4c ldr r3, [pc, #304] ; (800968c ) - 800955c: 685b ldr r3, [r3, #4] - 800955e: 891b ldrh r3, [r3, #8] - 8009560: 2b00 cmp r3, #0 - 8009562: d006 beq.n 8009572 + 8009556: 4b4c ldr r3, [pc, #304] ; (8009688 ) + 8009558: 685b ldr r3, [r3, #4] + 800955a: 891b ldrh r3, [r3, #8] + 800955c: 2b00 cmp r3, #0 + 800955e: d006 beq.n 800956e recv_data = inseg.p; - 8009564: 4b49 ldr r3, [pc, #292] ; (800968c ) - 8009566: 685b ldr r3, [r3, #4] - 8009568: 4a4d ldr r2, [pc, #308] ; (80096a0 ) - 800956a: 6013 str r3, [r2, #0] + 8009560: 4b49 ldr r3, [pc, #292] ; (8009688 ) + 8009562: 685b ldr r3, [r3, #4] + 8009564: 4a4d ldr r2, [pc, #308] ; (800969c ) + 8009566: 6013 str r3, [r2, #0] /* Since this pbuf now is the responsibility of the application, we delete our reference to it so that we won't (mistakingly) deallocate it. */ inseg.p = NULL; - 800956c: 4b47 ldr r3, [pc, #284] ; (800968c ) - 800956e: 2200 movs r2, #0 - 8009570: 605a str r2, [r3, #4] + 8009568: 4b47 ldr r3, [pc, #284] ; (8009688 ) + 800956a: 2200 movs r2, #0 + 800956c: 605a str r2, [r3, #4] } if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 8009572: 4b46 ldr r3, [pc, #280] ; (800968c ) - 8009574: 68db ldr r3, [r3, #12] - 8009576: 899b ldrh r3, [r3, #12] - 8009578: b29b uxth r3, r3 - 800957a: 4618 mov r0, r3 - 800957c: f7fa fea4 bl 80042c8 - 8009580: 4603 mov r3, r0 - 8009582: b2db uxtb r3, r3 - 8009584: f003 0301 and.w r3, r3, #1 - 8009588: 2b00 cmp r3, #0 - 800958a: f000 80b8 beq.w 80096fe + 800956e: 4b46 ldr r3, [pc, #280] ; (8009688 ) + 8009570: 68db ldr r3, [r3, #12] + 8009572: 899b ldrh r3, [r3, #12] + 8009574: b29b uxth r3, r3 + 8009576: 4618 mov r0, r3 + 8009578: f7fa fea4 bl 80042c4 + 800957c: 4603 mov r3, r0 + 800957e: b2db uxtb r3, r3 + 8009580: f003 0301 and.w r3, r3, #1 + 8009584: 2b00 cmp r3, #0 + 8009586: f000 80b8 beq.w 80096fa LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received FIN.\n")); recv_flags |= TF_GOT_FIN; - 800958e: 4b45 ldr r3, [pc, #276] ; (80096a4 ) - 8009590: 781b ldrb r3, [r3, #0] - 8009592: f043 0320 orr.w r3, r3, #32 - 8009596: b2da uxtb r2, r3 - 8009598: 4b42 ldr r3, [pc, #264] ; (80096a4 ) - 800959a: 701a strb r2, [r3, #0] + 800958a: 4b45 ldr r3, [pc, #276] ; (80096a0 ) + 800958c: 781b ldrb r3, [r3, #0] + 800958e: f043 0320 orr.w r3, r3, #32 + 8009592: b2da uxtb r2, r3 + 8009594: 4b42 ldr r3, [pc, #264] ; (80096a0 ) + 8009596: 701a strb r2, [r3, #0] } #if TCP_QUEUE_OOSEQ /* We now check if we have segments on the ->ooseq queue that are now in sequence. */ while (pcb->ooseq != NULL && - 800959c: e0af b.n 80096fe + 8009598: e0af b.n 80096fa pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) { struct tcp_seg *cseg = pcb->ooseq; - 800959e: 687b ldr r3, [r7, #4] - 80095a0: 6f5b ldr r3, [r3, #116] ; 0x74 - 80095a2: 60bb str r3, [r7, #8] + 800959a: 687b ldr r3, [r7, #4] + 800959c: 6f5b ldr r3, [r3, #116] ; 0x74 + 800959e: 60bb str r3, [r7, #8] seqno = pcb->ooseq->tcphdr->seqno; - 80095a4: 687b ldr r3, [r7, #4] - 80095a6: 6f5b ldr r3, [r3, #116] ; 0x74 - 80095a8: 68db ldr r3, [r3, #12] - 80095aa: 685b ldr r3, [r3, #4] - 80095ac: 4a36 ldr r2, [pc, #216] ; (8009688 ) - 80095ae: 6013 str r3, [r2, #0] + 80095a0: 687b ldr r3, [r7, #4] + 80095a2: 6f5b ldr r3, [r3, #116] ; 0x74 + 80095a4: 68db ldr r3, [r3, #12] + 80095a6: 685b ldr r3, [r3, #4] + 80095a8: 4a36 ldr r2, [pc, #216] ; (8009684 ) + 80095aa: 6013 str r3, [r2, #0] pcb->rcv_nxt += TCP_TCPLEN(cseg); - 80095b0: 68bb ldr r3, [r7, #8] - 80095b2: 891b ldrh r3, [r3, #8] - 80095b4: 461c mov r4, r3 - 80095b6: 68bb ldr r3, [r7, #8] - 80095b8: 68db ldr r3, [r3, #12] - 80095ba: 899b ldrh r3, [r3, #12] - 80095bc: b29b uxth r3, r3 - 80095be: 4618 mov r0, r3 - 80095c0: f7fa fe82 bl 80042c8 - 80095c4: 4603 mov r3, r0 - 80095c6: b2db uxtb r3, r3 - 80095c8: f003 0303 and.w r3, r3, #3 - 80095cc: 2b00 cmp r3, #0 - 80095ce: d001 beq.n 80095d4 - 80095d0: 2301 movs r3, #1 - 80095d2: e000 b.n 80095d6 - 80095d4: 2300 movs r3, #0 - 80095d6: 191a adds r2, r3, r4 - 80095d8: 687b ldr r3, [r7, #4] - 80095da: 6a5b ldr r3, [r3, #36] ; 0x24 - 80095dc: 441a add r2, r3 - 80095de: 687b ldr r3, [r7, #4] - 80095e0: 625a str r2, [r3, #36] ; 0x24 + 80095ac: 68bb ldr r3, [r7, #8] + 80095ae: 891b ldrh r3, [r3, #8] + 80095b0: 461c mov r4, r3 + 80095b2: 68bb ldr r3, [r7, #8] + 80095b4: 68db ldr r3, [r3, #12] + 80095b6: 899b ldrh r3, [r3, #12] + 80095b8: b29b uxth r3, r3 + 80095ba: 4618 mov r0, r3 + 80095bc: f7fa fe82 bl 80042c4 + 80095c0: 4603 mov r3, r0 + 80095c2: b2db uxtb r3, r3 + 80095c4: f003 0303 and.w r3, r3, #3 + 80095c8: 2b00 cmp r3, #0 + 80095ca: d001 beq.n 80095d0 + 80095cc: 2301 movs r3, #1 + 80095ce: e000 b.n 80095d2 + 80095d0: 2300 movs r3, #0 + 80095d2: 191a adds r2, r3, r4 + 80095d4: 687b ldr r3, [r7, #4] + 80095d6: 6a5b ldr r3, [r3, #36] ; 0x24 + 80095d8: 441a add r2, r3 + 80095da: 687b ldr r3, [r7, #4] + 80095dc: 625a str r2, [r3, #36] ; 0x24 LWIP_ASSERT("tcp_receive: ooseq tcplen > rcv_wnd\n", - 80095e2: 687b ldr r3, [r7, #4] - 80095e4: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80095e6: 461c mov r4, r3 - 80095e8: 68bb ldr r3, [r7, #8] - 80095ea: 891b ldrh r3, [r3, #8] - 80095ec: 461d mov r5, r3 - 80095ee: 68bb ldr r3, [r7, #8] - 80095f0: 68db ldr r3, [r3, #12] - 80095f2: 899b ldrh r3, [r3, #12] - 80095f4: b29b uxth r3, r3 - 80095f6: 4618 mov r0, r3 - 80095f8: f7fa fe66 bl 80042c8 - 80095fc: 4603 mov r3, r0 - 80095fe: b2db uxtb r3, r3 - 8009600: f003 0303 and.w r3, r3, #3 - 8009604: 2b00 cmp r3, #0 - 8009606: d001 beq.n 800960c - 8009608: 2301 movs r3, #1 - 800960a: e000 b.n 800960e - 800960c: 2300 movs r3, #0 - 800960e: 442b add r3, r5 - 8009610: 429c cmp r4, r3 - 8009612: d206 bcs.n 8009622 - 8009614: 4b1e ldr r3, [pc, #120] ; (8009690 ) - 8009616: f240 622b movw r2, #1579 ; 0x62b - 800961a: 4923 ldr r1, [pc, #140] ; (80096a8 ) - 800961c: 481e ldr r0, [pc, #120] ; (8009698 ) - 800961e: f006 fed9 bl 80103d4 + 80095de: 687b ldr r3, [r7, #4] + 80095e0: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80095e2: 461c mov r4, r3 + 80095e4: 68bb ldr r3, [r7, #8] + 80095e6: 891b ldrh r3, [r3, #8] + 80095e8: 461d mov r5, r3 + 80095ea: 68bb ldr r3, [r7, #8] + 80095ec: 68db ldr r3, [r3, #12] + 80095ee: 899b ldrh r3, [r3, #12] + 80095f0: b29b uxth r3, r3 + 80095f2: 4618 mov r0, r3 + 80095f4: f7fa fe66 bl 80042c4 + 80095f8: 4603 mov r3, r0 + 80095fa: b2db uxtb r3, r3 + 80095fc: f003 0303 and.w r3, r3, #3 + 8009600: 2b00 cmp r3, #0 + 8009602: d001 beq.n 8009608 + 8009604: 2301 movs r3, #1 + 8009606: e000 b.n 800960a + 8009608: 2300 movs r3, #0 + 800960a: 442b add r3, r5 + 800960c: 429c cmp r4, r3 + 800960e: d206 bcs.n 800961e + 8009610: 4b1e ldr r3, [pc, #120] ; (800968c ) + 8009612: f240 622b movw r2, #1579 ; 0x62b + 8009616: 4923 ldr r1, [pc, #140] ; (80096a4 ) + 8009618: 481e ldr r0, [pc, #120] ; (8009694 ) + 800961a: f006 fed9 bl 80103d0 pcb->rcv_wnd >= TCP_TCPLEN(cseg)); pcb->rcv_wnd -= TCP_TCPLEN(cseg); - 8009622: 68bb ldr r3, [r7, #8] - 8009624: 891b ldrh r3, [r3, #8] - 8009626: 461c mov r4, r3 - 8009628: 68bb ldr r3, [r7, #8] - 800962a: 68db ldr r3, [r3, #12] - 800962c: 899b ldrh r3, [r3, #12] - 800962e: b29b uxth r3, r3 - 8009630: 4618 mov r0, r3 - 8009632: f7fa fe49 bl 80042c8 - 8009636: 4603 mov r3, r0 - 8009638: b2db uxtb r3, r3 - 800963a: f003 0303 and.w r3, r3, #3 - 800963e: 2b00 cmp r3, #0 - 8009640: d001 beq.n 8009646 - 8009642: 2301 movs r3, #1 - 8009644: e000 b.n 8009648 - 8009646: 2300 movs r3, #0 - 8009648: 1919 adds r1, r3, r4 - 800964a: 687b ldr r3, [r7, #4] - 800964c: 8d1a ldrh r2, [r3, #40] ; 0x28 - 800964e: b28b uxth r3, r1 - 8009650: 1ad3 subs r3, r2, r3 - 8009652: b29a uxth r2, r3 - 8009654: 687b ldr r3, [r7, #4] - 8009656: 851a strh r2, [r3, #40] ; 0x28 + 800961e: 68bb ldr r3, [r7, #8] + 8009620: 891b ldrh r3, [r3, #8] + 8009622: 461c mov r4, r3 + 8009624: 68bb ldr r3, [r7, #8] + 8009626: 68db ldr r3, [r3, #12] + 8009628: 899b ldrh r3, [r3, #12] + 800962a: b29b uxth r3, r3 + 800962c: 4618 mov r0, r3 + 800962e: f7fa fe49 bl 80042c4 + 8009632: 4603 mov r3, r0 + 8009634: b2db uxtb r3, r3 + 8009636: f003 0303 and.w r3, r3, #3 + 800963a: 2b00 cmp r3, #0 + 800963c: d001 beq.n 8009642 + 800963e: 2301 movs r3, #1 + 8009640: e000 b.n 8009644 + 8009642: 2300 movs r3, #0 + 8009644: 1919 adds r1, r3, r4 + 8009646: 687b ldr r3, [r7, #4] + 8009648: 8d1a ldrh r2, [r3, #40] ; 0x28 + 800964a: b28b uxth r3, r1 + 800964c: 1ad3 subs r3, r2, r3 + 800964e: b29a uxth r2, r3 + 8009650: 687b ldr r3, [r7, #4] + 8009652: 851a strh r2, [r3, #40] ; 0x28 tcp_update_rcv_ann_wnd(pcb); - 8009658: 6878 ldr r0, [r7, #4] - 800965a: f7fc ff43 bl 80064e4 + 8009654: 6878 ldr r0, [r7, #4] + 8009656: f7fc ff43 bl 80064e0 if (cseg->p->tot_len > 0) { - 800965e: 68bb ldr r3, [r7, #8] - 8009660: 685b ldr r3, [r3, #4] - 8009662: 891b ldrh r3, [r3, #8] - 8009664: 2b00 cmp r3, #0 - 8009666: d028 beq.n 80096ba + 800965a: 68bb ldr r3, [r7, #8] + 800965c: 685b ldr r3, [r3, #4] + 800965e: 891b ldrh r3, [r3, #8] + 8009660: 2b00 cmp r3, #0 + 8009662: d028 beq.n 80096b6 /* Chain this pbuf onto the pbuf that we will pass to the application. */ /* With window scaling, this can overflow recv_data->tot_len, but that's not a problem since we explicitly fix that before passing recv_data to the application. */ if (recv_data) { - 8009668: 4b0d ldr r3, [pc, #52] ; (80096a0 ) - 800966a: 681b ldr r3, [r3, #0] - 800966c: 2b00 cmp r3, #0 - 800966e: d01d beq.n 80096ac + 8009664: 4b0d ldr r3, [pc, #52] ; (800969c ) + 8009666: 681b ldr r3, [r3, #0] + 8009668: 2b00 cmp r3, #0 + 800966a: d01d beq.n 80096a8 pbuf_cat(recv_data, cseg->p); - 8009670: 4b0b ldr r3, [pc, #44] ; (80096a0 ) - 8009672: 681a ldr r2, [r3, #0] - 8009674: 68bb ldr r3, [r7, #8] - 8009676: 685b ldr r3, [r3, #4] - 8009678: 4619 mov r1, r3 - 800967a: 4610 mov r0, r2 - 800967c: f7fc fa50 bl 8005b20 - 8009680: e018 b.n 80096b4 - 8009682: bf00 nop - 8009684: 20008c42 .word 0x20008c42 - 8009688: 20008c38 .word 0x20008c38 - 800968c: 20008c18 .word 0x20008c18 - 8009690: 08016124 .word 0x08016124 - 8009694: 08016504 .word 0x08016504 - 8009698: 08016170 .word 0x08016170 - 800969c: 08016540 .word 0x08016540 - 80096a0: 20008c48 .word 0x20008c48 - 80096a4: 20008c45 .word 0x20008c45 - 80096a8: 08016560 .word 0x08016560 + 800966c: 4b0b ldr r3, [pc, #44] ; (800969c ) + 800966e: 681a ldr r2, [r3, #0] + 8009670: 68bb ldr r3, [r7, #8] + 8009672: 685b ldr r3, [r3, #4] + 8009674: 4619 mov r1, r3 + 8009676: 4610 mov r0, r2 + 8009678: f7fc fa50 bl 8005b1c + 800967c: e018 b.n 80096b0 + 800967e: bf00 nop + 8009680: 20008c42 .word 0x20008c42 + 8009684: 20008c38 .word 0x20008c38 + 8009688: 20008c18 .word 0x20008c18 + 800968c: 08016124 .word 0x08016124 + 8009690: 08016504 .word 0x08016504 + 8009694: 08016170 .word 0x08016170 + 8009698: 08016540 .word 0x08016540 + 800969c: 20008c48 .word 0x20008c48 + 80096a0: 20008c45 .word 0x20008c45 + 80096a4: 08016560 .word 0x08016560 } else { recv_data = cseg->p; - 80096ac: 68bb ldr r3, [r7, #8] - 80096ae: 685b ldr r3, [r3, #4] - 80096b0: 4a70 ldr r2, [pc, #448] ; (8009874 ) - 80096b2: 6013 str r3, [r2, #0] + 80096a8: 68bb ldr r3, [r7, #8] + 80096aa: 685b ldr r3, [r3, #4] + 80096ac: 4a70 ldr r2, [pc, #448] ; (8009870 ) + 80096ae: 6013 str r3, [r2, #0] } cseg->p = NULL; - 80096b4: 68bb ldr r3, [r7, #8] - 80096b6: 2200 movs r2, #0 - 80096b8: 605a str r2, [r3, #4] + 80096b0: 68bb ldr r3, [r7, #8] + 80096b2: 2200 movs r2, #0 + 80096b4: 605a str r2, [r3, #4] } if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { - 80096ba: 68bb ldr r3, [r7, #8] - 80096bc: 68db ldr r3, [r3, #12] - 80096be: 899b ldrh r3, [r3, #12] - 80096c0: b29b uxth r3, r3 - 80096c2: 4618 mov r0, r3 - 80096c4: f7fa fe00 bl 80042c8 - 80096c8: 4603 mov r3, r0 - 80096ca: b2db uxtb r3, r3 - 80096cc: f003 0301 and.w r3, r3, #1 - 80096d0: 2b00 cmp r3, #0 - 80096d2: d00d beq.n 80096f0 + 80096b6: 68bb ldr r3, [r7, #8] + 80096b8: 68db ldr r3, [r3, #12] + 80096ba: 899b ldrh r3, [r3, #12] + 80096bc: b29b uxth r3, r3 + 80096be: 4618 mov r0, r3 + 80096c0: f7fa fe00 bl 80042c4 + 80096c4: 4603 mov r3, r0 + 80096c6: b2db uxtb r3, r3 + 80096c8: f003 0301 and.w r3, r3, #1 + 80096cc: 2b00 cmp r3, #0 + 80096ce: d00d beq.n 80096ec LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n")); recv_flags |= TF_GOT_FIN; - 80096d4: 4b68 ldr r3, [pc, #416] ; (8009878 ) - 80096d6: 781b ldrb r3, [r3, #0] - 80096d8: f043 0320 orr.w r3, r3, #32 - 80096dc: b2da uxtb r2, r3 - 80096de: 4b66 ldr r3, [pc, #408] ; (8009878 ) - 80096e0: 701a strb r2, [r3, #0] + 80096d0: 4b68 ldr r3, [pc, #416] ; (8009874 ) + 80096d2: 781b ldrb r3, [r3, #0] + 80096d4: f043 0320 orr.w r3, r3, #32 + 80096d8: b2da uxtb r2, r3 + 80096da: 4b66 ldr r3, [pc, #408] ; (8009874 ) + 80096dc: 701a strb r2, [r3, #0] if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */ - 80096e2: 687b ldr r3, [r7, #4] - 80096e4: 7d1b ldrb r3, [r3, #20] - 80096e6: 2b04 cmp r3, #4 - 80096e8: d102 bne.n 80096f0 + 80096de: 687b ldr r3, [r7, #4] + 80096e0: 7d1b ldrb r3, [r3, #20] + 80096e2: 2b04 cmp r3, #4 + 80096e4: d102 bne.n 80096ec pcb->state = CLOSE_WAIT; - 80096ea: 687b ldr r3, [r7, #4] - 80096ec: 2207 movs r2, #7 - 80096ee: 751a strb r2, [r3, #20] + 80096e6: 687b ldr r3, [r7, #4] + 80096e8: 2207 movs r2, #7 + 80096ea: 751a strb r2, [r3, #20] } } pcb->ooseq = cseg->next; - 80096f0: 68bb ldr r3, [r7, #8] - 80096f2: 681a ldr r2, [r3, #0] - 80096f4: 687b ldr r3, [r7, #4] - 80096f6: 675a str r2, [r3, #116] ; 0x74 + 80096ec: 68bb ldr r3, [r7, #8] + 80096ee: 681a ldr r2, [r3, #0] + 80096f0: 687b ldr r3, [r7, #4] + 80096f2: 675a str r2, [r3, #116] ; 0x74 tcp_seg_free(cseg); - 80096f8: 68b8 ldr r0, [r7, #8] - 80096fa: f7fd fbd2 bl 8006ea2 + 80096f4: 68b8 ldr r0, [r7, #8] + 80096f6: f7fd fbd2 bl 8006e9e while (pcb->ooseq != NULL && - 80096fe: 687b ldr r3, [r7, #4] - 8009700: 6f5b ldr r3, [r3, #116] ; 0x74 - 8009702: 2b00 cmp r3, #0 - 8009704: d008 beq.n 8009718 + 80096fa: 687b ldr r3, [r7, #4] + 80096fc: 6f5b ldr r3, [r3, #116] ; 0x74 + 80096fe: 2b00 cmp r3, #0 + 8009700: d008 beq.n 8009714 pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) { - 8009706: 687b ldr r3, [r7, #4] - 8009708: 6f5b ldr r3, [r3, #116] ; 0x74 - 800970a: 68db ldr r3, [r3, #12] - 800970c: 685a ldr r2, [r3, #4] - 800970e: 687b ldr r3, [r7, #4] - 8009710: 6a5b ldr r3, [r3, #36] ; 0x24 + 8009702: 687b ldr r3, [r7, #4] + 8009704: 6f5b ldr r3, [r3, #116] ; 0x74 + 8009706: 68db ldr r3, [r3, #12] + 8009708: 685a ldr r2, [r3, #4] + 800970a: 687b ldr r3, [r7, #4] + 800970c: 6a5b ldr r3, [r3, #36] ; 0x24 while (pcb->ooseq != NULL && - 8009712: 429a cmp r2, r3 - 8009714: f43f af43 beq.w 800959e + 800970e: 429a cmp r2, r3 + 8009710: f43f af43 beq.w 800959a #endif /* LWIP_TCP_SACK_OUT */ #endif /* TCP_QUEUE_OOSEQ */ /* Acknowledge the segment(s). */ tcp_ack(pcb); - 8009718: 687b ldr r3, [r7, #4] - 800971a: 8b5b ldrh r3, [r3, #26] - 800971c: f003 0301 and.w r3, r3, #1 - 8009720: 2b00 cmp r3, #0 - 8009722: d00e beq.n 8009742 - 8009724: 687b ldr r3, [r7, #4] - 8009726: 8b5b ldrh r3, [r3, #26] - 8009728: f023 0301 bic.w r3, r3, #1 - 800972c: b29a uxth r2, r3 + 8009714: 687b ldr r3, [r7, #4] + 8009716: 8b5b ldrh r3, [r3, #26] + 8009718: f003 0301 and.w r3, r3, #1 + 800971c: 2b00 cmp r3, #0 + 800971e: d00e beq.n 800973e + 8009720: 687b ldr r3, [r7, #4] + 8009722: 8b5b ldrh r3, [r3, #26] + 8009724: f023 0301 bic.w r3, r3, #1 + 8009728: b29a uxth r2, r3 + 800972a: 687b ldr r3, [r7, #4] + 800972c: 835a strh r2, [r3, #26] 800972e: 687b ldr r3, [r7, #4] - 8009730: 835a strh r2, [r3, #26] - 8009732: 687b ldr r3, [r7, #4] - 8009734: 8b5b ldrh r3, [r3, #26] - 8009736: f043 0302 orr.w r3, r3, #2 - 800973a: b29a uxth r2, r3 - 800973c: 687b ldr r3, [r7, #4] - 800973e: 835a strh r2, [r3, #26] + 8009730: 8b5b ldrh r3, [r3, #26] + 8009732: f043 0302 orr.w r3, r3, #2 + 8009736: b29a uxth r2, r3 + 8009738: 687b ldr r3, [r7, #4] + 800973a: 835a strh r2, [r3, #26] if (pcb->rcv_nxt == seqno) { - 8009740: e188 b.n 8009a54 + 800973c: e188 b.n 8009a50 tcp_ack(pcb); - 8009742: 687b ldr r3, [r7, #4] - 8009744: 8b5b ldrh r3, [r3, #26] - 8009746: f043 0301 orr.w r3, r3, #1 - 800974a: b29a uxth r2, r3 - 800974c: 687b ldr r3, [r7, #4] - 800974e: 835a strh r2, [r3, #26] + 800973e: 687b ldr r3, [r7, #4] + 8009740: 8b5b ldrh r3, [r3, #26] + 8009742: f043 0301 orr.w r3, r3, #1 + 8009746: b29a uxth r2, r3 + 8009748: 687b ldr r3, [r7, #4] + 800974a: 835a strh r2, [r3, #26] if (pcb->rcv_nxt == seqno) { - 8009750: e180 b.n 8009a54 + 800974c: e180 b.n 8009a50 } else { /* We get here if the incoming segment is out-of-sequence. */ #if TCP_QUEUE_OOSEQ /* We queue the segment on the ->ooseq queue. */ if (pcb->ooseq == NULL) { - 8009752: 687b ldr r3, [r7, #4] - 8009754: 6f5b ldr r3, [r3, #116] ; 0x74 - 8009756: 2b00 cmp r3, #0 - 8009758: d106 bne.n 8009768 + 800974e: 687b ldr r3, [r7, #4] + 8009750: 6f5b ldr r3, [r3, #116] ; 0x74 + 8009752: 2b00 cmp r3, #0 + 8009754: d106 bne.n 8009764 pcb->ooseq = tcp_seg_copy(&inseg); - 800975a: 4848 ldr r0, [pc, #288] ; (800987c ) - 800975c: f7fd fbba bl 8006ed4 - 8009760: 4602 mov r2, r0 - 8009762: 687b ldr r3, [r7, #4] - 8009764: 675a str r2, [r3, #116] ; 0x74 - 8009766: e16d b.n 8009a44 + 8009756: 4848 ldr r0, [pc, #288] ; (8009878 ) + 8009758: f7fd fbba bl 8006ed0 + 800975c: 4602 mov r2, r0 + 800975e: 687b ldr r3, [r7, #4] + 8009760: 675a str r2, [r3, #116] ; 0x74 + 8009762: e16d b.n 8009a40 #if LWIP_TCP_SACK_OUT /* This is the left edge of the lowest possible SACK range. It may start before the newly received segment (possibly adjusted below). */ u32_t sackbeg = TCP_SEQ_LT(seqno, pcb->ooseq->tcphdr->seqno) ? seqno : pcb->ooseq->tcphdr->seqno; #endif /* LWIP_TCP_SACK_OUT */ struct tcp_seg *next, *prev = NULL; - 8009768: 2300 movs r3, #0 - 800976a: 637b str r3, [r7, #52] ; 0x34 + 8009764: 2300 movs r3, #0 + 8009766: 637b str r3, [r7, #52] ; 0x34 for (next = pcb->ooseq; next != NULL; next = next->next) { - 800976c: 687b ldr r3, [r7, #4] - 800976e: 6f5b ldr r3, [r3, #116] ; 0x74 - 8009770: 63bb str r3, [r7, #56] ; 0x38 - 8009772: e157 b.n 8009a24 + 8009768: 687b ldr r3, [r7, #4] + 800976a: 6f5b ldr r3, [r3, #116] ; 0x74 + 800976c: 63bb str r3, [r7, #56] ; 0x38 + 800976e: e157 b.n 8009a20 if (seqno == next->tcphdr->seqno) { - 8009774: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009776: 68db ldr r3, [r3, #12] - 8009778: 685a ldr r2, [r3, #4] - 800977a: 4b41 ldr r3, [pc, #260] ; (8009880 ) - 800977c: 681b ldr r3, [r3, #0] - 800977e: 429a cmp r2, r3 - 8009780: d11d bne.n 80097be + 8009770: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009772: 68db ldr r3, [r3, #12] + 8009774: 685a ldr r2, [r3, #4] + 8009776: 4b41 ldr r3, [pc, #260] ; (800987c ) + 8009778: 681b ldr r3, [r3, #0] + 800977a: 429a cmp r2, r3 + 800977c: d11d bne.n 80097ba /* The sequence number of the incoming segment is the same as the sequence number of the segment on ->ooseq. We check the lengths to see which one to discard. */ if (inseg.len > next->len) { - 8009782: 4b3e ldr r3, [pc, #248] ; (800987c ) - 8009784: 891a ldrh r2, [r3, #8] - 8009786: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009788: 891b ldrh r3, [r3, #8] - 800978a: 429a cmp r2, r3 - 800978c: f240 814f bls.w 8009a2e + 800977e: 4b3e ldr r3, [pc, #248] ; (8009878 ) + 8009780: 891a ldrh r2, [r3, #8] + 8009782: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009784: 891b ldrh r3, [r3, #8] + 8009786: 429a cmp r2, r3 + 8009788: f240 814f bls.w 8009a2a /* The incoming segment is larger than the old segment. We replace some segments with the new one. */ struct tcp_seg *cseg = tcp_seg_copy(&inseg); - 8009790: 483a ldr r0, [pc, #232] ; (800987c ) - 8009792: f7fd fb9f bl 8006ed4 - 8009796: 6178 str r0, [r7, #20] + 800978c: 483a ldr r0, [pc, #232] ; (8009878 ) + 800978e: f7fd fb9f bl 8006ed0 + 8009792: 6178 str r0, [r7, #20] if (cseg != NULL) { - 8009798: 697b ldr r3, [r7, #20] - 800979a: 2b00 cmp r3, #0 - 800979c: f000 8149 beq.w 8009a32 + 8009794: 697b ldr r3, [r7, #20] + 8009796: 2b00 cmp r3, #0 + 8009798: f000 8149 beq.w 8009a2e if (prev != NULL) { - 80097a0: 6b7b ldr r3, [r7, #52] ; 0x34 - 80097a2: 2b00 cmp r3, #0 - 80097a4: d003 beq.n 80097ae + 800979c: 6b7b ldr r3, [r7, #52] ; 0x34 + 800979e: 2b00 cmp r3, #0 + 80097a0: d003 beq.n 80097aa prev->next = cseg; - 80097a6: 6b7b ldr r3, [r7, #52] ; 0x34 - 80097a8: 697a ldr r2, [r7, #20] - 80097aa: 601a str r2, [r3, #0] - 80097ac: e002 b.n 80097b4 + 80097a2: 6b7b ldr r3, [r7, #52] ; 0x34 + 80097a4: 697a ldr r2, [r7, #20] + 80097a6: 601a str r2, [r3, #0] + 80097a8: e002 b.n 80097b0 } else { pcb->ooseq = cseg; - 80097ae: 687b ldr r3, [r7, #4] - 80097b0: 697a ldr r2, [r7, #20] - 80097b2: 675a str r2, [r3, #116] ; 0x74 + 80097aa: 687b ldr r3, [r7, #4] + 80097ac: 697a ldr r2, [r7, #20] + 80097ae: 675a str r2, [r3, #116] ; 0x74 } tcp_oos_insert_segment(cseg, next); - 80097b4: 6bb9 ldr r1, [r7, #56] ; 0x38 - 80097b6: 6978 ldr r0, [r7, #20] - 80097b8: f7ff f8dc bl 8008974 + 80097b0: 6bb9 ldr r1, [r7, #56] ; 0x38 + 80097b2: 6978 ldr r0, [r7, #20] + 80097b4: f7ff f8dc bl 8008970 } break; - 80097bc: e139 b.n 8009a32 + 80097b8: e139 b.n 8009a2e segment was smaller than the old one; in either case, we ditch the incoming segment. */ break; } } else { if (prev == NULL) { - 80097be: 6b7b ldr r3, [r7, #52] ; 0x34 - 80097c0: 2b00 cmp r3, #0 - 80097c2: d117 bne.n 80097f4 + 80097ba: 6b7b ldr r3, [r7, #52] ; 0x34 + 80097bc: 2b00 cmp r3, #0 + 80097be: d117 bne.n 80097f0 if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) { - 80097c4: 4b2e ldr r3, [pc, #184] ; (8009880 ) - 80097c6: 681a ldr r2, [r3, #0] - 80097c8: 6bbb ldr r3, [r7, #56] ; 0x38 - 80097ca: 68db ldr r3, [r3, #12] - 80097cc: 685b ldr r3, [r3, #4] - 80097ce: 1ad3 subs r3, r2, r3 - 80097d0: 2b00 cmp r3, #0 - 80097d2: da57 bge.n 8009884 + 80097c0: 4b2e ldr r3, [pc, #184] ; (800987c ) + 80097c2: 681a ldr r2, [r3, #0] + 80097c4: 6bbb ldr r3, [r7, #56] ; 0x38 + 80097c6: 68db ldr r3, [r3, #12] + 80097c8: 685b ldr r3, [r3, #4] + 80097ca: 1ad3 subs r3, r2, r3 + 80097cc: 2b00 cmp r3, #0 + 80097ce: da57 bge.n 8009880 /* The sequence number of the incoming segment is lower than the sequence number of the first segment on the queue. We put the incoming segment first on the queue. */ struct tcp_seg *cseg = tcp_seg_copy(&inseg); - 80097d4: 4829 ldr r0, [pc, #164] ; (800987c ) - 80097d6: f7fd fb7d bl 8006ed4 - 80097da: 61b8 str r0, [r7, #24] + 80097d0: 4829 ldr r0, [pc, #164] ; (8009878 ) + 80097d2: f7fd fb7d bl 8006ed0 + 80097d6: 61b8 str r0, [r7, #24] if (cseg != NULL) { - 80097dc: 69bb ldr r3, [r7, #24] - 80097de: 2b00 cmp r3, #0 - 80097e0: f000 8129 beq.w 8009a36 + 80097d8: 69bb ldr r3, [r7, #24] + 80097da: 2b00 cmp r3, #0 + 80097dc: f000 8129 beq.w 8009a32 pcb->ooseq = cseg; - 80097e4: 687b ldr r3, [r7, #4] - 80097e6: 69ba ldr r2, [r7, #24] - 80097e8: 675a str r2, [r3, #116] ; 0x74 + 80097e0: 687b ldr r3, [r7, #4] + 80097e2: 69ba ldr r2, [r7, #24] + 80097e4: 675a str r2, [r3, #116] ; 0x74 tcp_oos_insert_segment(cseg, next); - 80097ea: 6bb9 ldr r1, [r7, #56] ; 0x38 - 80097ec: 69b8 ldr r0, [r7, #24] - 80097ee: f7ff f8c1 bl 8008974 + 80097e6: 6bb9 ldr r1, [r7, #56] ; 0x38 + 80097e8: 69b8 ldr r0, [r7, #24] + 80097ea: f7ff f8c1 bl 8008970 } break; - 80097f2: e120 b.n 8009a36 + 80097ee: e120 b.n 8009a32 } } else { /*if (TCP_SEQ_LT(prev->tcphdr->seqno, seqno) && TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {*/ if (TCP_SEQ_BETWEEN(seqno, prev->tcphdr->seqno + 1, next->tcphdr->seqno - 1)) { - 80097f4: 4b22 ldr r3, [pc, #136] ; (8009880 ) - 80097f6: 681a ldr r2, [r3, #0] - 80097f8: 6b7b ldr r3, [r7, #52] ; 0x34 - 80097fa: 68db ldr r3, [r3, #12] - 80097fc: 685b ldr r3, [r3, #4] - 80097fe: 1ad3 subs r3, r2, r3 - 8009800: 3b01 subs r3, #1 - 8009802: 2b00 cmp r3, #0 - 8009804: db3e blt.n 8009884 - 8009806: 4b1e ldr r3, [pc, #120] ; (8009880 ) - 8009808: 681a ldr r2, [r3, #0] - 800980a: 6bbb ldr r3, [r7, #56] ; 0x38 - 800980c: 68db ldr r3, [r3, #12] - 800980e: 685b ldr r3, [r3, #4] - 8009810: 1ad3 subs r3, r2, r3 - 8009812: 3301 adds r3, #1 - 8009814: 2b00 cmp r3, #0 - 8009816: dc35 bgt.n 8009884 + 80097f0: 4b22 ldr r3, [pc, #136] ; (800987c ) + 80097f2: 681a ldr r2, [r3, #0] + 80097f4: 6b7b ldr r3, [r7, #52] ; 0x34 + 80097f6: 68db ldr r3, [r3, #12] + 80097f8: 685b ldr r3, [r3, #4] + 80097fa: 1ad3 subs r3, r2, r3 + 80097fc: 3b01 subs r3, #1 + 80097fe: 2b00 cmp r3, #0 + 8009800: db3e blt.n 8009880 + 8009802: 4b1e ldr r3, [pc, #120] ; (800987c ) + 8009804: 681a ldr r2, [r3, #0] + 8009806: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009808: 68db ldr r3, [r3, #12] + 800980a: 685b ldr r3, [r3, #4] + 800980c: 1ad3 subs r3, r2, r3 + 800980e: 3301 adds r3, #1 + 8009810: 2b00 cmp r3, #0 + 8009812: dc35 bgt.n 8009880 /* The sequence number of the incoming segment is in between the sequence numbers of the previous and the next segment on ->ooseq. We trim trim the previous segment, delete next segments that included in received segment and trim received, if needed. */ struct tcp_seg *cseg = tcp_seg_copy(&inseg); - 8009818: 4818 ldr r0, [pc, #96] ; (800987c ) - 800981a: f7fd fb5b bl 8006ed4 - 800981e: 61f8 str r0, [r7, #28] + 8009814: 4818 ldr r0, [pc, #96] ; (8009878 ) + 8009816: f7fd fb5b bl 8006ed0 + 800981a: 61f8 str r0, [r7, #28] if (cseg != NULL) { - 8009820: 69fb ldr r3, [r7, #28] - 8009822: 2b00 cmp r3, #0 - 8009824: f000 8109 beq.w 8009a3a + 800981c: 69fb ldr r3, [r7, #28] + 800981e: 2b00 cmp r3, #0 + 8009820: f000 8109 beq.w 8009a36 if (TCP_SEQ_GT(prev->tcphdr->seqno + prev->len, seqno)) { - 8009828: 6b7b ldr r3, [r7, #52] ; 0x34 - 800982a: 68db ldr r3, [r3, #12] - 800982c: 685b ldr r3, [r3, #4] - 800982e: 6b7a ldr r2, [r7, #52] ; 0x34 - 8009830: 8912 ldrh r2, [r2, #8] - 8009832: 441a add r2, r3 - 8009834: 4b12 ldr r3, [pc, #72] ; (8009880 ) - 8009836: 681b ldr r3, [r3, #0] - 8009838: 1ad3 subs r3, r2, r3 - 800983a: 2b00 cmp r3, #0 - 800983c: dd12 ble.n 8009864 + 8009824: 6b7b ldr r3, [r7, #52] ; 0x34 + 8009826: 68db ldr r3, [r3, #12] + 8009828: 685b ldr r3, [r3, #4] + 800982a: 6b7a ldr r2, [r7, #52] ; 0x34 + 800982c: 8912 ldrh r2, [r2, #8] + 800982e: 441a add r2, r3 + 8009830: 4b12 ldr r3, [pc, #72] ; (800987c ) + 8009832: 681b ldr r3, [r3, #0] + 8009834: 1ad3 subs r3, r2, r3 + 8009836: 2b00 cmp r3, #0 + 8009838: dd12 ble.n 8009860 /* We need to trim the prev segment. */ prev->len = (u16_t)(seqno - prev->tcphdr->seqno); - 800983e: 4b10 ldr r3, [pc, #64] ; (8009880 ) - 8009840: 681b ldr r3, [r3, #0] - 8009842: b29a uxth r2, r3 - 8009844: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009846: 68db ldr r3, [r3, #12] - 8009848: 685b ldr r3, [r3, #4] - 800984a: b29b uxth r3, r3 - 800984c: 1ad3 subs r3, r2, r3 - 800984e: b29a uxth r2, r3 - 8009850: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009852: 811a strh r2, [r3, #8] + 800983a: 4b10 ldr r3, [pc, #64] ; (800987c ) + 800983c: 681b ldr r3, [r3, #0] + 800983e: b29a uxth r2, r3 + 8009840: 6b7b ldr r3, [r7, #52] ; 0x34 + 8009842: 68db ldr r3, [r3, #12] + 8009844: 685b ldr r3, [r3, #4] + 8009846: b29b uxth r3, r3 + 8009848: 1ad3 subs r3, r2, r3 + 800984a: b29a uxth r2, r3 + 800984c: 6b7b ldr r3, [r7, #52] ; 0x34 + 800984e: 811a strh r2, [r3, #8] pbuf_realloc(prev->p, prev->len); + 8009850: 6b7b ldr r3, [r7, #52] ; 0x34 + 8009852: 685a ldr r2, [r3, #4] 8009854: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009856: 685a ldr r2, [r3, #4] - 8009858: 6b7b ldr r3, [r7, #52] ; 0x34 - 800985a: 891b ldrh r3, [r3, #8] - 800985c: 4619 mov r1, r3 - 800985e: 4610 mov r0, r2 - 8009860: f7fb ff16 bl 8005690 + 8009856: 891b ldrh r3, [r3, #8] + 8009858: 4619 mov r1, r3 + 800985a: 4610 mov r0, r2 + 800985c: f7fb ff16 bl 800568c } prev->next = cseg; - 8009864: 6b7b ldr r3, [r7, #52] ; 0x34 - 8009866: 69fa ldr r2, [r7, #28] - 8009868: 601a str r2, [r3, #0] + 8009860: 6b7b ldr r3, [r7, #52] ; 0x34 + 8009862: 69fa ldr r2, [r7, #28] + 8009864: 601a str r2, [r3, #0] tcp_oos_insert_segment(cseg, next); - 800986a: 6bb9 ldr r1, [r7, #56] ; 0x38 - 800986c: 69f8 ldr r0, [r7, #28] - 800986e: f7ff f881 bl 8008974 + 8009866: 6bb9 ldr r1, [r7, #56] ; 0x38 + 8009868: 69f8 ldr r0, [r7, #28] + 800986a: f7ff f881 bl 8008970 } break; - 8009872: e0e2 b.n 8009a3a - 8009874: 20008c48 .word 0x20008c48 - 8009878: 20008c45 .word 0x20008c45 - 800987c: 20008c18 .word 0x20008c18 - 8009880: 20008c38 .word 0x20008c38 + 800986e: e0e2 b.n 8009a36 + 8009870: 20008c48 .word 0x20008c48 + 8009874: 20008c45 .word 0x20008c45 + 8009878: 20008c18 .word 0x20008c18 + 800987c: 20008c38 .word 0x20008c38 #endif /* LWIP_TCP_SACK_OUT */ /* We don't use 'prev' below, so let's set it to current 'next'. This way even if we break the loop below, 'prev' will be pointing at the segment right in front of the newly added one. */ prev = next; - 8009884: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009886: 637b str r3, [r7, #52] ; 0x34 + 8009880: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009882: 637b str r3, [r7, #52] ; 0x34 /* If the "next" segment is the last segment on the ooseq queue, we add the incoming segment to the end of the list. */ if (next->next == NULL && - 8009888: 6bbb ldr r3, [r7, #56] ; 0x38 - 800988a: 681b ldr r3, [r3, #0] - 800988c: 2b00 cmp r3, #0 - 800988e: f040 80c6 bne.w 8009a1e + 8009884: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009886: 681b ldr r3, [r3, #0] + 8009888: 2b00 cmp r3, #0 + 800988a: f040 80c6 bne.w 8009a1a TCP_SEQ_GT(seqno, next->tcphdr->seqno)) { - 8009892: 4b80 ldr r3, [pc, #512] ; (8009a94 ) - 8009894: 681a ldr r2, [r3, #0] - 8009896: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009898: 68db ldr r3, [r3, #12] - 800989a: 685b ldr r3, [r3, #4] - 800989c: 1ad3 subs r3, r2, r3 + 800988e: 4b80 ldr r3, [pc, #512] ; (8009a90 ) + 8009890: 681a ldr r2, [r3, #0] + 8009892: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009894: 68db ldr r3, [r3, #12] + 8009896: 685b ldr r3, [r3, #4] + 8009898: 1ad3 subs r3, r2, r3 if (next->next == NULL && - 800989e: 2b00 cmp r3, #0 - 80098a0: f340 80bd ble.w 8009a1e + 800989a: 2b00 cmp r3, #0 + 800989c: f340 80bd ble.w 8009a1a if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) { - 80098a4: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098a6: 68db ldr r3, [r3, #12] - 80098a8: 899b ldrh r3, [r3, #12] - 80098aa: b29b uxth r3, r3 - 80098ac: 4618 mov r0, r3 - 80098ae: f7fa fd0b bl 80042c8 - 80098b2: 4603 mov r3, r0 - 80098b4: b2db uxtb r3, r3 - 80098b6: f003 0301 and.w r3, r3, #1 - 80098ba: 2b00 cmp r3, #0 - 80098bc: f040 80bf bne.w 8009a3e + 80098a0: 6bbb ldr r3, [r7, #56] ; 0x38 + 80098a2: 68db ldr r3, [r3, #12] + 80098a4: 899b ldrh r3, [r3, #12] + 80098a6: b29b uxth r3, r3 + 80098a8: 4618 mov r0, r3 + 80098aa: f7fa fd0b bl 80042c4 + 80098ae: 4603 mov r3, r0 + 80098b0: b2db uxtb r3, r3 + 80098b2: f003 0301 and.w r3, r3, #1 + 80098b6: 2b00 cmp r3, #0 + 80098b8: f040 80bf bne.w 8009a3a /* segment "next" already contains all data */ break; } next->next = tcp_seg_copy(&inseg); - 80098c0: 4875 ldr r0, [pc, #468] ; (8009a98 ) - 80098c2: f7fd fb07 bl 8006ed4 - 80098c6: 4602 mov r2, r0 - 80098c8: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098ca: 601a str r2, [r3, #0] + 80098bc: 4875 ldr r0, [pc, #468] ; (8009a94 ) + 80098be: f7fd fb07 bl 8006ed0 + 80098c2: 4602 mov r2, r0 + 80098c4: 6bbb ldr r3, [r7, #56] ; 0x38 + 80098c6: 601a str r2, [r3, #0] if (next->next != NULL) { - 80098cc: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098ce: 681b ldr r3, [r3, #0] - 80098d0: 2b00 cmp r3, #0 - 80098d2: f000 80b6 beq.w 8009a42 + 80098c8: 6bbb ldr r3, [r7, #56] ; 0x38 + 80098ca: 681b ldr r3, [r3, #0] + 80098cc: 2b00 cmp r3, #0 + 80098ce: f000 80b6 beq.w 8009a3e if (TCP_SEQ_GT(next->tcphdr->seqno + next->len, seqno)) { - 80098d6: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098d8: 68db ldr r3, [r3, #12] - 80098da: 685b ldr r3, [r3, #4] - 80098dc: 6bba ldr r2, [r7, #56] ; 0x38 - 80098de: 8912 ldrh r2, [r2, #8] - 80098e0: 441a add r2, r3 - 80098e2: 4b6c ldr r3, [pc, #432] ; (8009a94 ) - 80098e4: 681b ldr r3, [r3, #0] - 80098e6: 1ad3 subs r3, r2, r3 - 80098e8: 2b00 cmp r3, #0 - 80098ea: dd12 ble.n 8009912 + 80098d2: 6bbb ldr r3, [r7, #56] ; 0x38 + 80098d4: 68db ldr r3, [r3, #12] + 80098d6: 685b ldr r3, [r3, #4] + 80098d8: 6bba ldr r2, [r7, #56] ; 0x38 + 80098da: 8912 ldrh r2, [r2, #8] + 80098dc: 441a add r2, r3 + 80098de: 4b6c ldr r3, [pc, #432] ; (8009a90 ) + 80098e0: 681b ldr r3, [r3, #0] + 80098e2: 1ad3 subs r3, r2, r3 + 80098e4: 2b00 cmp r3, #0 + 80098e6: dd12 ble.n 800990e /* We need to trim the last segment. */ next->len = (u16_t)(seqno - next->tcphdr->seqno); - 80098ec: 4b69 ldr r3, [pc, #420] ; (8009a94 ) - 80098ee: 681b ldr r3, [r3, #0] - 80098f0: b29a uxth r2, r3 - 80098f2: 6bbb ldr r3, [r7, #56] ; 0x38 - 80098f4: 68db ldr r3, [r3, #12] - 80098f6: 685b ldr r3, [r3, #4] - 80098f8: b29b uxth r3, r3 - 80098fa: 1ad3 subs r3, r2, r3 - 80098fc: b29a uxth r2, r3 - 80098fe: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009900: 811a strh r2, [r3, #8] + 80098e8: 4b69 ldr r3, [pc, #420] ; (8009a90 ) + 80098ea: 681b ldr r3, [r3, #0] + 80098ec: b29a uxth r2, r3 + 80098ee: 6bbb ldr r3, [r7, #56] ; 0x38 + 80098f0: 68db ldr r3, [r3, #12] + 80098f2: 685b ldr r3, [r3, #4] + 80098f4: b29b uxth r3, r3 + 80098f6: 1ad3 subs r3, r2, r3 + 80098f8: b29a uxth r2, r3 + 80098fa: 6bbb ldr r3, [r7, #56] ; 0x38 + 80098fc: 811a strh r2, [r3, #8] pbuf_realloc(next->p, next->len); + 80098fe: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009900: 685a ldr r2, [r3, #4] 8009902: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009904: 685a ldr r2, [r3, #4] - 8009906: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009908: 891b ldrh r3, [r3, #8] - 800990a: 4619 mov r1, r3 - 800990c: 4610 mov r0, r2 - 800990e: f7fb febf bl 8005690 + 8009904: 891b ldrh r3, [r3, #8] + 8009906: 4619 mov r1, r3 + 8009908: 4610 mov r0, r2 + 800990a: f7fb febf bl 800568c } /* check if the remote side overruns our receive window */ if (TCP_SEQ_GT((u32_t)tcplen + seqno, pcb->rcv_nxt + (u32_t)pcb->rcv_wnd)) { - 8009912: 4b62 ldr r3, [pc, #392] ; (8009a9c ) - 8009914: 881b ldrh r3, [r3, #0] - 8009916: 461a mov r2, r3 - 8009918: 4b5e ldr r3, [pc, #376] ; (8009a94 ) - 800991a: 681b ldr r3, [r3, #0] - 800991c: 441a add r2, r3 - 800991e: 687b ldr r3, [r7, #4] - 8009920: 6a5b ldr r3, [r3, #36] ; 0x24 - 8009922: 6879 ldr r1, [r7, #4] - 8009924: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8009926: 440b add r3, r1 - 8009928: 1ad3 subs r3, r2, r3 - 800992a: 2b00 cmp r3, #0 - 800992c: f340 8089 ble.w 8009a42 + 800990e: 4b62 ldr r3, [pc, #392] ; (8009a98 ) + 8009910: 881b ldrh r3, [r3, #0] + 8009912: 461a mov r2, r3 + 8009914: 4b5e ldr r3, [pc, #376] ; (8009a90 ) + 8009916: 681b ldr r3, [r3, #0] + 8009918: 441a add r2, r3 + 800991a: 687b ldr r3, [r7, #4] + 800991c: 6a5b ldr r3, [r3, #36] ; 0x24 + 800991e: 6879 ldr r1, [r7, #4] + 8009920: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8009922: 440b add r3, r1 + 8009924: 1ad3 subs r3, r2, r3 + 8009926: 2b00 cmp r3, #0 + 8009928: f340 8089 ble.w 8009a3e LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: other end overran receive window" "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n", seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd)); if (TCPH_FLAGS(next->next->tcphdr) & TCP_FIN) { - 8009930: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009932: 681b ldr r3, [r3, #0] - 8009934: 68db ldr r3, [r3, #12] - 8009936: 899b ldrh r3, [r3, #12] - 8009938: b29b uxth r3, r3 - 800993a: 4618 mov r0, r3 - 800993c: f7fa fcc4 bl 80042c8 - 8009940: 4603 mov r3, r0 - 8009942: b2db uxtb r3, r3 - 8009944: f003 0301 and.w r3, r3, #1 - 8009948: 2b00 cmp r3, #0 - 800994a: d022 beq.n 8009992 + 800992c: 6bbb ldr r3, [r7, #56] ; 0x38 + 800992e: 681b ldr r3, [r3, #0] + 8009930: 68db ldr r3, [r3, #12] + 8009932: 899b ldrh r3, [r3, #12] + 8009934: b29b uxth r3, r3 + 8009936: 4618 mov r0, r3 + 8009938: f7fa fcc4 bl 80042c4 + 800993c: 4603 mov r3, r0 + 800993e: b2db uxtb r3, r3 + 8009940: f003 0301 and.w r3, r3, #1 + 8009944: 2b00 cmp r3, #0 + 8009946: d022 beq.n 800998e /* Must remove the FIN from the header as we're trimming * that byte of sequence-space from the packet */ TCPH_FLAGS_SET(next->next->tcphdr, TCPH_FLAGS(next->next->tcphdr) & ~TCP_FIN); - 800994c: 6bbb ldr r3, [r7, #56] ; 0x38 - 800994e: 681b ldr r3, [r3, #0] - 8009950: 68db ldr r3, [r3, #12] - 8009952: 899b ldrh r3, [r3, #12] - 8009954: b29b uxth r3, r3 - 8009956: b21b sxth r3, r3 - 8009958: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 800995c: b21c sxth r4, r3 - 800995e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009960: 681b ldr r3, [r3, #0] - 8009962: 68db ldr r3, [r3, #12] - 8009964: 899b ldrh r3, [r3, #12] - 8009966: b29b uxth r3, r3 - 8009968: 4618 mov r0, r3 - 800996a: f7fa fcad bl 80042c8 - 800996e: 4603 mov r3, r0 - 8009970: b2db uxtb r3, r3 - 8009972: b29b uxth r3, r3 - 8009974: f003 033e and.w r3, r3, #62 ; 0x3e - 8009978: b29b uxth r3, r3 - 800997a: 4618 mov r0, r3 - 800997c: f7fa fca4 bl 80042c8 - 8009980: 4603 mov r3, r0 - 8009982: b21b sxth r3, r3 - 8009984: 4323 orrs r3, r4 - 8009986: b21a sxth r2, r3 - 8009988: 6bbb ldr r3, [r7, #56] ; 0x38 - 800998a: 681b ldr r3, [r3, #0] - 800998c: 68db ldr r3, [r3, #12] - 800998e: b292 uxth r2, r2 - 8009990: 819a strh r2, [r3, #12] + 8009948: 6bbb ldr r3, [r7, #56] ; 0x38 + 800994a: 681b ldr r3, [r3, #0] + 800994c: 68db ldr r3, [r3, #12] + 800994e: 899b ldrh r3, [r3, #12] + 8009950: b29b uxth r3, r3 + 8009952: b21b sxth r3, r3 + 8009954: f423 537c bic.w r3, r3, #16128 ; 0x3f00 + 8009958: b21c sxth r4, r3 + 800995a: 6bbb ldr r3, [r7, #56] ; 0x38 + 800995c: 681b ldr r3, [r3, #0] + 800995e: 68db ldr r3, [r3, #12] + 8009960: 899b ldrh r3, [r3, #12] + 8009962: b29b uxth r3, r3 + 8009964: 4618 mov r0, r3 + 8009966: f7fa fcad bl 80042c4 + 800996a: 4603 mov r3, r0 + 800996c: b2db uxtb r3, r3 + 800996e: b29b uxth r3, r3 + 8009970: f003 033e and.w r3, r3, #62 ; 0x3e + 8009974: b29b uxth r3, r3 + 8009976: 4618 mov r0, r3 + 8009978: f7fa fca4 bl 80042c4 + 800997c: 4603 mov r3, r0 + 800997e: b21b sxth r3, r3 + 8009980: 4323 orrs r3, r4 + 8009982: b21a sxth r2, r3 + 8009984: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009986: 681b ldr r3, [r3, #0] + 8009988: 68db ldr r3, [r3, #12] + 800998a: b292 uxth r2, r2 + 800998c: 819a strh r2, [r3, #12] } /* Adjust length of segment to fit in the window. */ next->next->len = (u16_t)(pcb->rcv_nxt + pcb->rcv_wnd - seqno); - 8009992: 687b ldr r3, [r7, #4] - 8009994: 6a5b ldr r3, [r3, #36] ; 0x24 - 8009996: b29a uxth r2, r3 - 8009998: 687b ldr r3, [r7, #4] - 800999a: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800999c: 4413 add r3, r2 - 800999e: b299 uxth r1, r3 - 80099a0: 4b3c ldr r3, [pc, #240] ; (8009a94 ) - 80099a2: 681b ldr r3, [r3, #0] - 80099a4: b29a uxth r2, r3 - 80099a6: 6bbb ldr r3, [r7, #56] ; 0x38 - 80099a8: 681b ldr r3, [r3, #0] - 80099aa: 1a8a subs r2, r1, r2 - 80099ac: b292 uxth r2, r2 - 80099ae: 811a strh r2, [r3, #8] + 800998e: 687b ldr r3, [r7, #4] + 8009990: 6a5b ldr r3, [r3, #36] ; 0x24 + 8009992: b29a uxth r2, r3 + 8009994: 687b ldr r3, [r7, #4] + 8009996: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8009998: 4413 add r3, r2 + 800999a: b299 uxth r1, r3 + 800999c: 4b3c ldr r3, [pc, #240] ; (8009a90 ) + 800999e: 681b ldr r3, [r3, #0] + 80099a0: b29a uxth r2, r3 + 80099a2: 6bbb ldr r3, [r7, #56] ; 0x38 + 80099a4: 681b ldr r3, [r3, #0] + 80099a6: 1a8a subs r2, r1, r2 + 80099a8: b292 uxth r2, r2 + 80099aa: 811a strh r2, [r3, #8] pbuf_realloc(next->next->p, next->next->len); - 80099b0: 6bbb ldr r3, [r7, #56] ; 0x38 - 80099b2: 681b ldr r3, [r3, #0] - 80099b4: 685a ldr r2, [r3, #4] - 80099b6: 6bbb ldr r3, [r7, #56] ; 0x38 - 80099b8: 681b ldr r3, [r3, #0] - 80099ba: 891b ldrh r3, [r3, #8] - 80099bc: 4619 mov r1, r3 - 80099be: 4610 mov r0, r2 - 80099c0: f7fb fe66 bl 8005690 + 80099ac: 6bbb ldr r3, [r7, #56] ; 0x38 + 80099ae: 681b ldr r3, [r3, #0] + 80099b0: 685a ldr r2, [r3, #4] + 80099b2: 6bbb ldr r3, [r7, #56] ; 0x38 + 80099b4: 681b ldr r3, [r3, #0] + 80099b6: 891b ldrh r3, [r3, #8] + 80099b8: 4619 mov r1, r3 + 80099ba: 4610 mov r0, r2 + 80099bc: f7fb fe66 bl 800568c tcplen = TCP_TCPLEN(next->next); - 80099c4: 6bbb ldr r3, [r7, #56] ; 0x38 - 80099c6: 681b ldr r3, [r3, #0] - 80099c8: 891c ldrh r4, [r3, #8] - 80099ca: 6bbb ldr r3, [r7, #56] ; 0x38 - 80099cc: 681b ldr r3, [r3, #0] - 80099ce: 68db ldr r3, [r3, #12] - 80099d0: 899b ldrh r3, [r3, #12] - 80099d2: b29b uxth r3, r3 - 80099d4: 4618 mov r0, r3 - 80099d6: f7fa fc77 bl 80042c8 - 80099da: 4603 mov r3, r0 - 80099dc: b2db uxtb r3, r3 - 80099de: f003 0303 and.w r3, r3, #3 - 80099e2: 2b00 cmp r3, #0 - 80099e4: d001 beq.n 80099ea - 80099e6: 2301 movs r3, #1 - 80099e8: e000 b.n 80099ec - 80099ea: 2300 movs r3, #0 - 80099ec: 4423 add r3, r4 - 80099ee: b29a uxth r2, r3 - 80099f0: 4b2a ldr r3, [pc, #168] ; (8009a9c ) - 80099f2: 801a strh r2, [r3, #0] + 80099c0: 6bbb ldr r3, [r7, #56] ; 0x38 + 80099c2: 681b ldr r3, [r3, #0] + 80099c4: 891c ldrh r4, [r3, #8] + 80099c6: 6bbb ldr r3, [r7, #56] ; 0x38 + 80099c8: 681b ldr r3, [r3, #0] + 80099ca: 68db ldr r3, [r3, #12] + 80099cc: 899b ldrh r3, [r3, #12] + 80099ce: b29b uxth r3, r3 + 80099d0: 4618 mov r0, r3 + 80099d2: f7fa fc77 bl 80042c4 + 80099d6: 4603 mov r3, r0 + 80099d8: b2db uxtb r3, r3 + 80099da: f003 0303 and.w r3, r3, #3 + 80099de: 2b00 cmp r3, #0 + 80099e0: d001 beq.n 80099e6 + 80099e2: 2301 movs r3, #1 + 80099e4: e000 b.n 80099e8 + 80099e6: 2300 movs r3, #0 + 80099e8: 4423 add r3, r4 + 80099ea: b29a uxth r2, r3 + 80099ec: 4b2a ldr r3, [pc, #168] ; (8009a98 ) + 80099ee: 801a strh r2, [r3, #0] LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n", - 80099f4: 4b29 ldr r3, [pc, #164] ; (8009a9c ) - 80099f6: 881b ldrh r3, [r3, #0] - 80099f8: 461a mov r2, r3 - 80099fa: 4b26 ldr r3, [pc, #152] ; (8009a94 ) - 80099fc: 681b ldr r3, [r3, #0] - 80099fe: 441a add r2, r3 - 8009a00: 687b ldr r3, [r7, #4] - 8009a02: 6a5b ldr r3, [r3, #36] ; 0x24 - 8009a04: 6879 ldr r1, [r7, #4] - 8009a06: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8009a08: 440b add r3, r1 - 8009a0a: 429a cmp r2, r3 - 8009a0c: d019 beq.n 8009a42 - 8009a0e: 4b24 ldr r3, [pc, #144] ; (8009aa0 ) - 8009a10: f44f 62df mov.w r2, #1784 ; 0x6f8 - 8009a14: 4923 ldr r1, [pc, #140] ; (8009aa4 ) - 8009a16: 4824 ldr r0, [pc, #144] ; (8009aa8 ) - 8009a18: f006 fcdc bl 80103d4 + 80099f0: 4b29 ldr r3, [pc, #164] ; (8009a98 ) + 80099f2: 881b ldrh r3, [r3, #0] + 80099f4: 461a mov r2, r3 + 80099f6: 4b26 ldr r3, [pc, #152] ; (8009a90 ) + 80099f8: 681b ldr r3, [r3, #0] + 80099fa: 441a add r2, r3 + 80099fc: 687b ldr r3, [r7, #4] + 80099fe: 6a5b ldr r3, [r3, #36] ; 0x24 + 8009a00: 6879 ldr r1, [r7, #4] + 8009a02: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8009a04: 440b add r3, r1 + 8009a06: 429a cmp r2, r3 + 8009a08: d019 beq.n 8009a3e + 8009a0a: 4b24 ldr r3, [pc, #144] ; (8009a9c ) + 8009a0c: f44f 62df mov.w r2, #1784 ; 0x6f8 + 8009a10: 4923 ldr r1, [pc, #140] ; (8009aa0 ) + 8009a12: 4824 ldr r0, [pc, #144] ; (8009aa4 ) + 8009a14: f006 fcdc bl 80103d0 (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd)); } } break; - 8009a1c: e011 b.n 8009a42 + 8009a18: e011 b.n 8009a3e for (next = pcb->ooseq; next != NULL; next = next->next) { - 8009a1e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009a20: 681b ldr r3, [r3, #0] - 8009a22: 63bb str r3, [r7, #56] ; 0x38 - 8009a24: 6bbb ldr r3, [r7, #56] ; 0x38 - 8009a26: 2b00 cmp r3, #0 - 8009a28: f47f aea4 bne.w 8009774 - 8009a2c: e00a b.n 8009a44 + 8009a1a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009a1c: 681b ldr r3, [r3, #0] + 8009a1e: 63bb str r3, [r7, #56] ; 0x38 + 8009a20: 6bbb ldr r3, [r7, #56] ; 0x38 + 8009a22: 2b00 cmp r3, #0 + 8009a24: f47f aea4 bne.w 8009770 + 8009a28: e00a b.n 8009a40 + break; + 8009a2a: bf00 nop + 8009a2c: e008 b.n 8009a40 break; 8009a2e: bf00 nop - 8009a30: e008 b.n 8009a44 - break; + 8009a30: e006 b.n 8009a40 + break; 8009a32: bf00 nop - 8009a34: e006 b.n 8009a44 + 8009a34: e004 b.n 8009a40 break; 8009a36: bf00 nop - 8009a38: e004 b.n 8009a44 + 8009a38: e002 b.n 8009a40 break; 8009a3a: bf00 nop - 8009a3c: e002 b.n 8009a44 - break; - 8009a3e: bf00 nop - 8009a40: e000 b.n 8009a44 + 8009a3c: e000 b.n 8009a40 break; - 8009a42: bf00 nop + 8009a3e: bf00 nop #endif /* TCP_OOSEQ_BYTES_LIMIT || TCP_OOSEQ_PBUFS_LIMIT */ #endif /* TCP_QUEUE_OOSEQ */ /* We send the ACK packet after we've (potentially) dealt with SACKs, so they can be included in the acknowledgment. */ tcp_send_empty_ack(pcb); - 8009a44: 6878 ldr r0, [r7, #4] - 8009a46: f001 fa33 bl 800aeb0 + 8009a40: 6878 ldr r0, [r7, #4] + 8009a42: f001 fa33 bl 800aeac if (pcb->rcv_nxt == seqno) { - 8009a4a: e003 b.n 8009a54 + 8009a46: e003 b.n 8009a50 } } else { /* The incoming segment is not within the window. */ tcp_send_empty_ack(pcb); - 8009a4c: 6878 ldr r0, [r7, #4] - 8009a4e: f001 fa2f bl 800aeb0 + 8009a48: 6878 ldr r0, [r7, #4] + 8009a4a: f001 fa2f bl 800aeac if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 8009a52: e01a b.n 8009a8a - 8009a54: e019 b.n 8009a8a + 8009a4e: e01a b.n 8009a86 + 8009a50: e019 b.n 8009a86 } } else { /* Segments with length 0 is taken care of here. Segments that fall out of the window are ACKed. */ if (!TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd - 1)) { - 8009a56: 4b0f ldr r3, [pc, #60] ; (8009a94 ) - 8009a58: 681a ldr r2, [r3, #0] - 8009a5a: 687b ldr r3, [r7, #4] - 8009a5c: 6a5b ldr r3, [r3, #36] ; 0x24 - 8009a5e: 1ad3 subs r3, r2, r3 - 8009a60: 2b00 cmp r3, #0 - 8009a62: db0a blt.n 8009a7a - 8009a64: 4b0b ldr r3, [pc, #44] ; (8009a94 ) - 8009a66: 681a ldr r2, [r3, #0] - 8009a68: 687b ldr r3, [r7, #4] - 8009a6a: 6a5b ldr r3, [r3, #36] ; 0x24 - 8009a6c: 6879 ldr r1, [r7, #4] - 8009a6e: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8009a70: 440b add r3, r1 - 8009a72: 1ad3 subs r3, r2, r3 - 8009a74: 3301 adds r3, #1 - 8009a76: 2b00 cmp r3, #0 - 8009a78: dd07 ble.n 8009a8a + 8009a52: 4b0f ldr r3, [pc, #60] ; (8009a90 ) + 8009a54: 681a ldr r2, [r3, #0] + 8009a56: 687b ldr r3, [r7, #4] + 8009a58: 6a5b ldr r3, [r3, #36] ; 0x24 + 8009a5a: 1ad3 subs r3, r2, r3 + 8009a5c: 2b00 cmp r3, #0 + 8009a5e: db0a blt.n 8009a76 + 8009a60: 4b0b ldr r3, [pc, #44] ; (8009a90 ) + 8009a62: 681a ldr r2, [r3, #0] + 8009a64: 687b ldr r3, [r7, #4] + 8009a66: 6a5b ldr r3, [r3, #36] ; 0x24 + 8009a68: 6879 ldr r1, [r7, #4] + 8009a6a: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8009a6c: 440b add r3, r1 + 8009a6e: 1ad3 subs r3, r2, r3 + 8009a70: 3301 adds r3, #1 + 8009a72: 2b00 cmp r3, #0 + 8009a74: dd07 ble.n 8009a86 tcp_ack_now(pcb); - 8009a7a: 687b ldr r3, [r7, #4] - 8009a7c: 8b5b ldrh r3, [r3, #26] - 8009a7e: f043 0302 orr.w r3, r3, #2 - 8009a82: b29a uxth r2, r3 - 8009a84: 687b ldr r3, [r7, #4] - 8009a86: 835a strh r2, [r3, #26] + 8009a76: 687b ldr r3, [r7, #4] + 8009a78: 8b5b ldrh r3, [r3, #26] + 8009a7a: f043 0302 orr.w r3, r3, #2 + 8009a7e: b29a uxth r2, r3 + 8009a80: 687b ldr r3, [r7, #4] + 8009a82: 835a strh r2, [r3, #26] } } } - 8009a88: e7ff b.n 8009a8a - 8009a8a: bf00 nop - 8009a8c: 3750 adds r7, #80 ; 0x50 - 8009a8e: 46bd mov sp, r7 - 8009a90: bdb0 pop {r4, r5, r7, pc} - 8009a92: bf00 nop - 8009a94: 20008c38 .word 0x20008c38 - 8009a98: 20008c18 .word 0x20008c18 - 8009a9c: 20008c42 .word 0x20008c42 - 8009aa0: 08016124 .word 0x08016124 - 8009aa4: 080164cc .word 0x080164cc - 8009aa8: 08016170 .word 0x08016170 + 8009a84: e7ff b.n 8009a86 + 8009a86: bf00 nop + 8009a88: 3750 adds r7, #80 ; 0x50 + 8009a8a: 46bd mov sp, r7 + 8009a8c: bdb0 pop {r4, r5, r7, pc} + 8009a8e: bf00 nop + 8009a90: 20008c38 .word 0x20008c38 + 8009a94: 20008c18 .word 0x20008c18 + 8009a98: 20008c42 .word 0x20008c42 + 8009a9c: 08016124 .word 0x08016124 + 8009aa0: 080164cc .word 0x080164cc + 8009aa4: 08016170 .word 0x08016170 -08009aac : +08009aa8 : static u8_t tcp_get_next_optbyte(void) { - 8009aac: b480 push {r7} - 8009aae: b083 sub sp, #12 - 8009ab0: af00 add r7, sp, #0 + 8009aa8: b480 push {r7} + 8009aaa: b083 sub sp, #12 + 8009aac: af00 add r7, sp, #0 u16_t optidx = tcp_optidx++; - 8009ab2: 4b15 ldr r3, [pc, #84] ; (8009b08 ) - 8009ab4: 881b ldrh r3, [r3, #0] - 8009ab6: 1c5a adds r2, r3, #1 - 8009ab8: b291 uxth r1, r2 - 8009aba: 4a13 ldr r2, [pc, #76] ; (8009b08 ) - 8009abc: 8011 strh r1, [r2, #0] - 8009abe: 80fb strh r3, [r7, #6] + 8009aae: 4b15 ldr r3, [pc, #84] ; (8009b04 ) + 8009ab0: 881b ldrh r3, [r3, #0] + 8009ab2: 1c5a adds r2, r3, #1 + 8009ab4: b291 uxth r1, r2 + 8009ab6: 4a13 ldr r2, [pc, #76] ; (8009b04 ) + 8009ab8: 8011 strh r1, [r2, #0] + 8009aba: 80fb strh r3, [r7, #6] if ((tcphdr_opt2 == NULL) || (optidx < tcphdr_opt1len)) { - 8009ac0: 4b12 ldr r3, [pc, #72] ; (8009b0c ) - 8009ac2: 681b ldr r3, [r3, #0] - 8009ac4: 2b00 cmp r3, #0 - 8009ac6: d004 beq.n 8009ad2 - 8009ac8: 4b11 ldr r3, [pc, #68] ; (8009b10 ) - 8009aca: 881b ldrh r3, [r3, #0] - 8009acc: 88fa ldrh r2, [r7, #6] - 8009ace: 429a cmp r2, r3 - 8009ad0: d208 bcs.n 8009ae4 + 8009abc: 4b12 ldr r3, [pc, #72] ; (8009b08 ) + 8009abe: 681b ldr r3, [r3, #0] + 8009ac0: 2b00 cmp r3, #0 + 8009ac2: d004 beq.n 8009ace + 8009ac4: 4b11 ldr r3, [pc, #68] ; (8009b0c ) + 8009ac6: 881b ldrh r3, [r3, #0] + 8009ac8: 88fa ldrh r2, [r7, #6] + 8009aca: 429a cmp r2, r3 + 8009acc: d208 bcs.n 8009ae0 u8_t *opts = (u8_t *)tcphdr + TCP_HLEN; - 8009ad2: 4b10 ldr r3, [pc, #64] ; (8009b14 ) - 8009ad4: 681b ldr r3, [r3, #0] - 8009ad6: 3314 adds r3, #20 - 8009ad8: 603b str r3, [r7, #0] + 8009ace: 4b10 ldr r3, [pc, #64] ; (8009b10 ) + 8009ad0: 681b ldr r3, [r3, #0] + 8009ad2: 3314 adds r3, #20 + 8009ad4: 603b str r3, [r7, #0] return opts[optidx]; - 8009ada: 88fb ldrh r3, [r7, #6] - 8009adc: 683a ldr r2, [r7, #0] - 8009ade: 4413 add r3, r2 - 8009ae0: 781b ldrb r3, [r3, #0] - 8009ae2: e00b b.n 8009afc + 8009ad6: 88fb ldrh r3, [r7, #6] + 8009ad8: 683a ldr r2, [r7, #0] + 8009ada: 4413 add r3, r2 + 8009adc: 781b ldrb r3, [r3, #0] + 8009ade: e00b b.n 8009af8 } else { u8_t idx = (u8_t)(optidx - tcphdr_opt1len); - 8009ae4: 88fb ldrh r3, [r7, #6] - 8009ae6: b2da uxtb r2, r3 - 8009ae8: 4b09 ldr r3, [pc, #36] ; (8009b10 ) - 8009aea: 881b ldrh r3, [r3, #0] - 8009aec: b2db uxtb r3, r3 - 8009aee: 1ad3 subs r3, r2, r3 - 8009af0: 717b strb r3, [r7, #5] + 8009ae0: 88fb ldrh r3, [r7, #6] + 8009ae2: b2da uxtb r2, r3 + 8009ae4: 4b09 ldr r3, [pc, #36] ; (8009b0c ) + 8009ae6: 881b ldrh r3, [r3, #0] + 8009ae8: b2db uxtb r3, r3 + 8009aea: 1ad3 subs r3, r2, r3 + 8009aec: 717b strb r3, [r7, #5] return tcphdr_opt2[idx]; - 8009af2: 4b06 ldr r3, [pc, #24] ; (8009b0c ) - 8009af4: 681a ldr r2, [r3, #0] - 8009af6: 797b ldrb r3, [r7, #5] - 8009af8: 4413 add r3, r2 - 8009afa: 781b ldrb r3, [r3, #0] + 8009aee: 4b06 ldr r3, [pc, #24] ; (8009b08 ) + 8009af0: 681a ldr r2, [r3, #0] + 8009af2: 797b ldrb r3, [r7, #5] + 8009af4: 4413 add r3, r2 + 8009af6: 781b ldrb r3, [r3, #0] } } - 8009afc: 4618 mov r0, r3 - 8009afe: 370c adds r7, #12 - 8009b00: 46bd mov sp, r7 - 8009b02: f85d 7b04 ldr.w r7, [sp], #4 - 8009b06: 4770 bx lr - 8009b08: 20008c34 .word 0x20008c34 - 8009b0c: 20008c30 .word 0x20008c30 - 8009b10: 20008c2e .word 0x20008c2e - 8009b14: 20008c28 .word 0x20008c28 + 8009af8: 4618 mov r0, r3 + 8009afa: 370c adds r7, #12 + 8009afc: 46bd mov sp, r7 + 8009afe: f85d 7b04 ldr.w r7, [sp], #4 + 8009b02: 4770 bx lr + 8009b04: 20008c34 .word 0x20008c34 + 8009b08: 20008c30 .word 0x20008c30 + 8009b0c: 20008c2e .word 0x20008c2e + 8009b10: 20008c28 .word 0x20008c28 -08009b18 : +08009b14 : * * @param pcb the tcp_pcb for which a segment arrived */ static void tcp_parseopt(struct tcp_pcb *pcb) { - 8009b18: b580 push {r7, lr} - 8009b1a: b084 sub sp, #16 - 8009b1c: af00 add r7, sp, #0 - 8009b1e: 6078 str r0, [r7, #4] + 8009b14: b580 push {r7, lr} + 8009b16: b084 sub sp, #16 + 8009b18: af00 add r7, sp, #0 + 8009b1a: 6078 str r0, [r7, #4] u16_t mss; #if LWIP_TCP_TIMESTAMPS u32_t tsval; #endif LWIP_ASSERT("tcp_parseopt: invalid pcb", pcb != NULL); - 8009b20: 687b ldr r3, [r7, #4] - 8009b22: 2b00 cmp r3, #0 - 8009b24: d106 bne.n 8009b34 - 8009b26: 4b32 ldr r3, [pc, #200] ; (8009bf0 ) - 8009b28: f240 727d movw r2, #1917 ; 0x77d - 8009b2c: 4931 ldr r1, [pc, #196] ; (8009bf4 ) - 8009b2e: 4832 ldr r0, [pc, #200] ; (8009bf8 ) - 8009b30: f006 fc50 bl 80103d4 + 8009b1c: 687b ldr r3, [r7, #4] + 8009b1e: 2b00 cmp r3, #0 + 8009b20: d106 bne.n 8009b30 + 8009b22: 4b32 ldr r3, [pc, #200] ; (8009bec ) + 8009b24: f240 727d movw r2, #1917 ; 0x77d + 8009b28: 4931 ldr r1, [pc, #196] ; (8009bf0 ) + 8009b2a: 4832 ldr r0, [pc, #200] ; (8009bf4 ) + 8009b2c: f006 fc50 bl 80103d0 /* Parse the TCP MSS option, if present. */ if (tcphdr_optlen != 0) { - 8009b34: 4b31 ldr r3, [pc, #196] ; (8009bfc ) - 8009b36: 881b ldrh r3, [r3, #0] - 8009b38: 2b00 cmp r3, #0 - 8009b3a: d055 beq.n 8009be8 + 8009b30: 4b31 ldr r3, [pc, #196] ; (8009bf8 ) + 8009b32: 881b ldrh r3, [r3, #0] + 8009b34: 2b00 cmp r3, #0 + 8009b36: d055 beq.n 8009be4 for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) { - 8009b3c: 4b30 ldr r3, [pc, #192] ; (8009c00 ) - 8009b3e: 2200 movs r2, #0 - 8009b40: 801a strh r2, [r3, #0] - 8009b42: e045 b.n 8009bd0 + 8009b38: 4b30 ldr r3, [pc, #192] ; (8009bfc ) + 8009b3a: 2200 movs r2, #0 + 8009b3c: 801a strh r2, [r3, #0] + 8009b3e: e045 b.n 8009bcc u8_t opt = tcp_get_next_optbyte(); - 8009b44: f7ff ffb2 bl 8009aac - 8009b48: 4603 mov r3, r0 - 8009b4a: 73fb strb r3, [r7, #15] + 8009b40: f7ff ffb2 bl 8009aa8 + 8009b44: 4603 mov r3, r0 + 8009b46: 73fb strb r3, [r7, #15] switch (opt) { - 8009b4c: 7bfb ldrb r3, [r7, #15] + 8009b48: 7bfb ldrb r3, [r7, #15] + 8009b4a: 2b02 cmp r3, #2 + 8009b4c: d006 beq.n 8009b5c 8009b4e: 2b02 cmp r3, #2 - 8009b50: d006 beq.n 8009b60 - 8009b52: 2b02 cmp r3, #2 - 8009b54: dc2b bgt.n 8009bae - 8009b56: 2b00 cmp r3, #0 - 8009b58: d041 beq.n 8009bde - 8009b5a: 2b01 cmp r3, #1 - 8009b5c: d127 bne.n 8009bae + 8009b50: dc2b bgt.n 8009baa + 8009b52: 2b00 cmp r3, #0 + 8009b54: d041 beq.n 8009bda + 8009b56: 2b01 cmp r3, #1 + 8009b58: d127 bne.n 8009baa LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: EOL\n")); return; case LWIP_TCP_OPT_NOP: /* NOP option. */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: NOP\n")); break; - 8009b5e: e037 b.n 8009bd0 + 8009b5a: e037 b.n 8009bcc case LWIP_TCP_OPT_MSS: LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: MSS\n")); if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_MSS || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_MSS) > tcphdr_optlen) { - 8009b60: f7ff ffa4 bl 8009aac - 8009b64: 4603 mov r3, r0 - 8009b66: 2b04 cmp r3, #4 - 8009b68: d13b bne.n 8009be2 - 8009b6a: 4b25 ldr r3, [pc, #148] ; (8009c00 ) - 8009b6c: 881b ldrh r3, [r3, #0] - 8009b6e: 3301 adds r3, #1 - 8009b70: 4a22 ldr r2, [pc, #136] ; (8009bfc ) - 8009b72: 8812 ldrh r2, [r2, #0] - 8009b74: 4293 cmp r3, r2 - 8009b76: da34 bge.n 8009be2 + 8009b5c: f7ff ffa4 bl 8009aa8 + 8009b60: 4603 mov r3, r0 + 8009b62: 2b04 cmp r3, #4 + 8009b64: d13b bne.n 8009bde + 8009b66: 4b25 ldr r3, [pc, #148] ; (8009bfc ) + 8009b68: 881b ldrh r3, [r3, #0] + 8009b6a: 3301 adds r3, #1 + 8009b6c: 4a22 ldr r2, [pc, #136] ; (8009bf8 ) + 8009b6e: 8812 ldrh r2, [r2, #0] + 8009b70: 4293 cmp r3, r2 + 8009b72: da34 bge.n 8009bde /* Bad length */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n")); return; } /* An MSS option with the right option length. */ mss = (u16_t)(tcp_get_next_optbyte() << 8); - 8009b78: f7ff ff98 bl 8009aac - 8009b7c: 4603 mov r3, r0 - 8009b7e: b29b uxth r3, r3 - 8009b80: 021b lsls r3, r3, #8 - 8009b82: 81bb strh r3, [r7, #12] + 8009b74: f7ff ff98 bl 8009aa8 + 8009b78: 4603 mov r3, r0 + 8009b7a: b29b uxth r3, r3 + 8009b7c: 021b lsls r3, r3, #8 + 8009b7e: 81bb strh r3, [r7, #12] mss |= tcp_get_next_optbyte(); - 8009b84: f7ff ff92 bl 8009aac - 8009b88: 4603 mov r3, r0 - 8009b8a: b29a uxth r2, r3 - 8009b8c: 89bb ldrh r3, [r7, #12] - 8009b8e: 4313 orrs r3, r2 - 8009b90: 81bb strh r3, [r7, #12] + 8009b80: f7ff ff92 bl 8009aa8 + 8009b84: 4603 mov r3, r0 + 8009b86: b29a uxth r2, r3 + 8009b88: 89bb ldrh r3, [r7, #12] + 8009b8a: 4313 orrs r3, r2 + 8009b8c: 81bb strh r3, [r7, #12] /* Limit the mss to the configured TCP_MSS and prevent division by zero */ pcb->mss = ((mss > TCP_MSS) || (mss == 0)) ? TCP_MSS : mss; - 8009b92: 89bb ldrh r3, [r7, #12] - 8009b94: f5b3 7f06 cmp.w r3, #536 ; 0x218 - 8009b98: d804 bhi.n 8009ba4 - 8009b9a: 89bb ldrh r3, [r7, #12] - 8009b9c: 2b00 cmp r3, #0 - 8009b9e: d001 beq.n 8009ba4 - 8009ba0: 89ba ldrh r2, [r7, #12] - 8009ba2: e001 b.n 8009ba8 - 8009ba4: f44f 7206 mov.w r2, #536 ; 0x218 - 8009ba8: 687b ldr r3, [r7, #4] - 8009baa: 865a strh r2, [r3, #50] ; 0x32 + 8009b8e: 89bb ldrh r3, [r7, #12] + 8009b90: f5b3 7f06 cmp.w r3, #536 ; 0x218 + 8009b94: d804 bhi.n 8009ba0 + 8009b96: 89bb ldrh r3, [r7, #12] + 8009b98: 2b00 cmp r3, #0 + 8009b9a: d001 beq.n 8009ba0 + 8009b9c: 89ba ldrh r2, [r7, #12] + 8009b9e: e001 b.n 8009ba4 + 8009ba0: f44f 7206 mov.w r2, #536 ; 0x218 + 8009ba4: 687b ldr r3, [r7, #4] + 8009ba6: 865a strh r2, [r3, #50] ; 0x32 break; - 8009bac: e010 b.n 8009bd0 + 8009ba8: e010 b.n 8009bcc } break; #endif /* LWIP_TCP_SACK_OUT */ default: LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: other\n")); data = tcp_get_next_optbyte(); - 8009bae: f7ff ff7d bl 8009aac - 8009bb2: 4603 mov r3, r0 - 8009bb4: 72fb strb r3, [r7, #11] + 8009baa: f7ff ff7d bl 8009aa8 + 8009bae: 4603 mov r3, r0 + 8009bb0: 72fb strb r3, [r7, #11] if (data < 2) { - 8009bb6: 7afb ldrb r3, [r7, #11] - 8009bb8: 2b01 cmp r3, #1 - 8009bba: d914 bls.n 8009be6 + 8009bb2: 7afb ldrb r3, [r7, #11] + 8009bb4: 2b01 cmp r3, #1 + 8009bb6: d914 bls.n 8009be2 and we don't process them further. */ return; } /* All other options have a length field, so that we easily can skip past them. */ tcp_optidx += data - 2; - 8009bbc: 7afb ldrb r3, [r7, #11] - 8009bbe: b29a uxth r2, r3 - 8009bc0: 4b0f ldr r3, [pc, #60] ; (8009c00 ) - 8009bc2: 881b ldrh r3, [r3, #0] - 8009bc4: 4413 add r3, r2 - 8009bc6: b29b uxth r3, r3 - 8009bc8: 3b02 subs r3, #2 - 8009bca: b29a uxth r2, r3 - 8009bcc: 4b0c ldr r3, [pc, #48] ; (8009c00 ) - 8009bce: 801a strh r2, [r3, #0] + 8009bb8: 7afb ldrb r3, [r7, #11] + 8009bba: b29a uxth r2, r3 + 8009bbc: 4b0f ldr r3, [pc, #60] ; (8009bfc ) + 8009bbe: 881b ldrh r3, [r3, #0] + 8009bc0: 4413 add r3, r2 + 8009bc2: b29b uxth r3, r3 + 8009bc4: 3b02 subs r3, #2 + 8009bc6: b29a uxth r2, r3 + 8009bc8: 4b0c ldr r3, [pc, #48] ; (8009bfc ) + 8009bca: 801a strh r2, [r3, #0] for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) { - 8009bd0: 4b0b ldr r3, [pc, #44] ; (8009c00 ) - 8009bd2: 881a ldrh r2, [r3, #0] - 8009bd4: 4b09 ldr r3, [pc, #36] ; (8009bfc ) - 8009bd6: 881b ldrh r3, [r3, #0] - 8009bd8: 429a cmp r2, r3 - 8009bda: d3b3 bcc.n 8009b44 - 8009bdc: e004 b.n 8009be8 + 8009bcc: 4b0b ldr r3, [pc, #44] ; (8009bfc ) + 8009bce: 881a ldrh r2, [r3, #0] + 8009bd0: 4b09 ldr r3, [pc, #36] ; (8009bf8 ) + 8009bd2: 881b ldrh r3, [r3, #0] + 8009bd4: 429a cmp r2, r3 + 8009bd6: d3b3 bcc.n 8009b40 + 8009bd8: e004 b.n 8009be4 return; + 8009bda: bf00 nop + 8009bdc: e002 b.n 8009be4 + return; 8009bde: bf00 nop - 8009be0: e002 b.n 8009be8 + 8009be0: e000 b.n 8009be4 return; 8009be2: bf00 nop - 8009be4: e000 b.n 8009be8 - return; - 8009be6: bf00 nop } } } } - 8009be8: 3710 adds r7, #16 - 8009bea: 46bd mov sp, r7 - 8009bec: bd80 pop {r7, pc} - 8009bee: bf00 nop - 8009bf0: 08016124 .word 0x08016124 - 8009bf4: 08016588 .word 0x08016588 - 8009bf8: 08016170 .word 0x08016170 - 8009bfc: 20008c2c .word 0x20008c2c - 8009c00: 20008c34 .word 0x20008c34 + 8009be4: 3710 adds r7, #16 + 8009be6: 46bd mov sp, r7 + 8009be8: bd80 pop {r7, pc} + 8009bea: bf00 nop + 8009bec: 08016124 .word 0x08016124 + 8009bf0: 08016588 .word 0x08016588 + 8009bf4: 08016170 .word 0x08016170 + 8009bf8: 20008c2c .word 0x20008c2c + 8009bfc: 20008c34 .word 0x20008c34 -08009c04 : +08009c00 : void tcp_trigger_input_pcb_close(void) { - 8009c04: b480 push {r7} - 8009c06: af00 add r7, sp, #0 + 8009c00: b480 push {r7} + 8009c02: af00 add r7, sp, #0 recv_flags |= TF_CLOSED; - 8009c08: 4b05 ldr r3, [pc, #20] ; (8009c20 ) - 8009c0a: 781b ldrb r3, [r3, #0] - 8009c0c: f043 0310 orr.w r3, r3, #16 - 8009c10: b2da uxtb r2, r3 - 8009c12: 4b03 ldr r3, [pc, #12] ; (8009c20 ) - 8009c14: 701a strb r2, [r3, #0] + 8009c04: 4b05 ldr r3, [pc, #20] ; (8009c1c ) + 8009c06: 781b ldrb r3, [r3, #0] + 8009c08: f043 0310 orr.w r3, r3, #16 + 8009c0c: b2da uxtb r2, r3 + 8009c0e: 4b03 ldr r3, [pc, #12] ; (8009c1c ) + 8009c10: 701a strb r2, [r3, #0] } - 8009c16: bf00 nop - 8009c18: 46bd mov sp, r7 - 8009c1a: f85d 7b04 ldr.w r7, [sp], #4 - 8009c1e: 4770 bx lr - 8009c20: 20008c45 .word 0x20008c45 + 8009c12: bf00 nop + 8009c14: 46bd mov sp, r7 + 8009c16: f85d 7b04 ldr.w r7, [sp], #4 + 8009c1a: 4770 bx lr + 8009c1c: 20008c45 .word 0x20008c45 -08009c24 : +08009c20 : static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif); /* tcp_route: common code that returns a fixed bound netif or calls ip_route */ static struct netif * tcp_route(const struct tcp_pcb *pcb, const ip_addr_t *src, const ip_addr_t *dst) { - 8009c24: b580 push {r7, lr} - 8009c26: b084 sub sp, #16 - 8009c28: af00 add r7, sp, #0 - 8009c2a: 60f8 str r0, [r7, #12] - 8009c2c: 60b9 str r1, [r7, #8] - 8009c2e: 607a str r2, [r7, #4] + 8009c20: b580 push {r7, lr} + 8009c22: b084 sub sp, #16 + 8009c24: af00 add r7, sp, #0 + 8009c26: 60f8 str r0, [r7, #12] + 8009c28: 60b9 str r1, [r7, #8] + 8009c2a: 607a str r2, [r7, #4] LWIP_UNUSED_ARG(src); /* in case IPv4-only and source-based routing is disabled */ if ((pcb != NULL) && (pcb->netif_idx != NETIF_NO_INDEX)) { - 8009c30: 68fb ldr r3, [r7, #12] - 8009c32: 2b00 cmp r3, #0 - 8009c34: d00a beq.n 8009c4c - 8009c36: 68fb ldr r3, [r7, #12] - 8009c38: 7a1b ldrb r3, [r3, #8] - 8009c3a: 2b00 cmp r3, #0 - 8009c3c: d006 beq.n 8009c4c + 8009c2c: 68fb ldr r3, [r7, #12] + 8009c2e: 2b00 cmp r3, #0 + 8009c30: d00a beq.n 8009c48 + 8009c32: 68fb ldr r3, [r7, #12] + 8009c34: 7a1b ldrb r3, [r3, #8] + 8009c36: 2b00 cmp r3, #0 + 8009c38: d006 beq.n 8009c48 return netif_get_by_index(pcb->netif_idx); - 8009c3e: 68fb ldr r3, [r7, #12] - 8009c40: 7a1b ldrb r3, [r3, #8] - 8009c42: 4618 mov r0, r3 - 8009c44: f7fb fb4a bl 80052dc - 8009c48: 4603 mov r3, r0 - 8009c4a: e003 b.n 8009c54 + 8009c3a: 68fb ldr r3, [r7, #12] + 8009c3c: 7a1b ldrb r3, [r3, #8] + 8009c3e: 4618 mov r0, r3 + 8009c40: f7fb fb4a bl 80052d8 + 8009c44: 4603 mov r3, r0 + 8009c46: e003 b.n 8009c50 } else { return ip_route(src, dst); - 8009c4c: 6878 ldr r0, [r7, #4] - 8009c4e: f005 f815 bl 800ec7c - 8009c52: 4603 mov r3, r0 + 8009c48: 6878 ldr r0, [r7, #4] + 8009c4a: f005 f815 bl 800ec78 + 8009c4e: 4603 mov r3, r0 } } - 8009c54: 4618 mov r0, r3 - 8009c56: 3710 adds r7, #16 - 8009c58: 46bd mov sp, r7 - 8009c5a: bd80 pop {r7, pc} + 8009c50: 4618 mov r0, r3 + 8009c52: 3710 adds r7, #16 + 8009c54: 46bd mov sp, r7 + 8009c56: bd80 pop {r7, pc} -08009c5c : +08009c58 : * The TCP header is filled in except ackno and wnd. * p is freed on failure. */ static struct tcp_seg * tcp_create_segment(const struct tcp_pcb *pcb, struct pbuf *p, u8_t hdrflags, u32_t seqno, u8_t optflags) { - 8009c5c: b590 push {r4, r7, lr} - 8009c5e: b087 sub sp, #28 - 8009c60: af00 add r7, sp, #0 - 8009c62: 60f8 str r0, [r7, #12] - 8009c64: 60b9 str r1, [r7, #8] - 8009c66: 603b str r3, [r7, #0] - 8009c68: 4613 mov r3, r2 - 8009c6a: 71fb strb r3, [r7, #7] + 8009c58: b590 push {r4, r7, lr} + 8009c5a: b087 sub sp, #28 + 8009c5c: af00 add r7, sp, #0 + 8009c5e: 60f8 str r0, [r7, #12] + 8009c60: 60b9 str r1, [r7, #8] + 8009c62: 603b str r3, [r7, #0] + 8009c64: 4613 mov r3, r2 + 8009c66: 71fb strb r3, [r7, #7] struct tcp_seg *seg; u8_t optlen; LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL); - 8009c6c: 68fb ldr r3, [r7, #12] - 8009c6e: 2b00 cmp r3, #0 - 8009c70: d105 bne.n 8009c7e - 8009c72: 4b44 ldr r3, [pc, #272] ; (8009d84 ) - 8009c74: 22a3 movs r2, #163 ; 0xa3 - 8009c76: 4944 ldr r1, [pc, #272] ; (8009d88 ) - 8009c78: 4844 ldr r0, [pc, #272] ; (8009d8c ) - 8009c7a: f006 fbab bl 80103d4 + 8009c68: 68fb ldr r3, [r7, #12] + 8009c6a: 2b00 cmp r3, #0 + 8009c6c: d105 bne.n 8009c7a + 8009c6e: 4b44 ldr r3, [pc, #272] ; (8009d80 ) + 8009c70: 22a3 movs r2, #163 ; 0xa3 + 8009c72: 4944 ldr r1, [pc, #272] ; (8009d84 ) + 8009c74: 4844 ldr r0, [pc, #272] ; (8009d88 ) + 8009c76: f006 fbab bl 80103d0 LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL); - 8009c7e: 68bb ldr r3, [r7, #8] - 8009c80: 2b00 cmp r3, #0 - 8009c82: d105 bne.n 8009c90 - 8009c84: 4b3f ldr r3, [pc, #252] ; (8009d84 ) - 8009c86: 22a4 movs r2, #164 ; 0xa4 - 8009c88: 4941 ldr r1, [pc, #260] ; (8009d90 ) - 8009c8a: 4840 ldr r0, [pc, #256] ; (8009d8c ) - 8009c8c: f006 fba2 bl 80103d4 + 8009c7a: 68bb ldr r3, [r7, #8] + 8009c7c: 2b00 cmp r3, #0 + 8009c7e: d105 bne.n 8009c8c + 8009c80: 4b3f ldr r3, [pc, #252] ; (8009d80 ) + 8009c82: 22a4 movs r2, #164 ; 0xa4 + 8009c84: 4941 ldr r1, [pc, #260] ; (8009d8c ) + 8009c86: 4840 ldr r0, [pc, #256] ; (8009d88 ) + 8009c88: f006 fba2 bl 80103d0 optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - 8009c90: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 - 8009c94: 009b lsls r3, r3, #2 - 8009c96: b2db uxtb r3, r3 - 8009c98: f003 0304 and.w r3, r3, #4 - 8009c9c: 75fb strb r3, [r7, #23] + 8009c8c: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 + 8009c90: 009b lsls r3, r3, #2 + 8009c92: b2db uxtb r3, r3 + 8009c94: f003 0304 and.w r3, r3, #4 + 8009c98: 75fb strb r3, [r7, #23] if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) { - 8009c9e: 2003 movs r0, #3 - 8009ca0: f7fa ff8a bl 8004bb8 - 8009ca4: 6138 str r0, [r7, #16] - 8009ca6: 693b ldr r3, [r7, #16] - 8009ca8: 2b00 cmp r3, #0 - 8009caa: d104 bne.n 8009cb6 + 8009c9a: 2003 movs r0, #3 + 8009c9c: f7fa ff8a bl 8004bb4 + 8009ca0: 6138 str r0, [r7, #16] + 8009ca2: 693b ldr r3, [r7, #16] + 8009ca4: 2b00 cmp r3, #0 + 8009ca6: d104 bne.n 8009cb2 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no memory.\n")); pbuf_free(p); - 8009cac: 68b8 ldr r0, [r7, #8] - 8009cae: f7fb fe75 bl 800599c + 8009ca8: 68b8 ldr r0, [r7, #8] + 8009caa: f7fb fe75 bl 8005998 return NULL; - 8009cb2: 2300 movs r3, #0 - 8009cb4: e061 b.n 8009d7a + 8009cae: 2300 movs r3, #0 + 8009cb0: e061 b.n 8009d76 } seg->flags = optflags; - 8009cb6: 693b ldr r3, [r7, #16] - 8009cb8: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 - 8009cbc: 729a strb r2, [r3, #10] + 8009cb2: 693b ldr r3, [r7, #16] + 8009cb4: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 + 8009cb8: 729a strb r2, [r3, #10] seg->next = NULL; - 8009cbe: 693b ldr r3, [r7, #16] - 8009cc0: 2200 movs r2, #0 - 8009cc2: 601a str r2, [r3, #0] + 8009cba: 693b ldr r3, [r7, #16] + 8009cbc: 2200 movs r2, #0 + 8009cbe: 601a str r2, [r3, #0] seg->p = p; - 8009cc4: 693b ldr r3, [r7, #16] - 8009cc6: 68ba ldr r2, [r7, #8] - 8009cc8: 605a str r2, [r3, #4] + 8009cc0: 693b ldr r3, [r7, #16] + 8009cc2: 68ba ldr r2, [r7, #8] + 8009cc4: 605a str r2, [r3, #4] LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); - 8009cca: 68bb ldr r3, [r7, #8] - 8009ccc: 891a ldrh r2, [r3, #8] - 8009cce: 7dfb ldrb r3, [r7, #23] - 8009cd0: b29b uxth r3, r3 - 8009cd2: 429a cmp r2, r3 - 8009cd4: d205 bcs.n 8009ce2 - 8009cd6: 4b2b ldr r3, [pc, #172] ; (8009d84 ) - 8009cd8: 22b0 movs r2, #176 ; 0xb0 - 8009cda: 492e ldr r1, [pc, #184] ; (8009d94 ) - 8009cdc: 482b ldr r0, [pc, #172] ; (8009d8c ) - 8009cde: f006 fb79 bl 80103d4 + 8009cc6: 68bb ldr r3, [r7, #8] + 8009cc8: 891a ldrh r2, [r3, #8] + 8009cca: 7dfb ldrb r3, [r7, #23] + 8009ccc: b29b uxth r3, r3 + 8009cce: 429a cmp r2, r3 + 8009cd0: d205 bcs.n 8009cde + 8009cd2: 4b2b ldr r3, [pc, #172] ; (8009d80 ) + 8009cd4: 22b0 movs r2, #176 ; 0xb0 + 8009cd6: 492e ldr r1, [pc, #184] ; (8009d90 ) + 8009cd8: 482b ldr r0, [pc, #172] ; (8009d88 ) + 8009cda: f006 fb79 bl 80103d0 seg->len = p->tot_len - optlen; - 8009ce2: 68bb ldr r3, [r7, #8] - 8009ce4: 891a ldrh r2, [r3, #8] - 8009ce6: 7dfb ldrb r3, [r7, #23] - 8009ce8: b29b uxth r3, r3 - 8009cea: 1ad3 subs r3, r2, r3 - 8009cec: b29a uxth r2, r3 - 8009cee: 693b ldr r3, [r7, #16] - 8009cf0: 811a strh r2, [r3, #8] + 8009cde: 68bb ldr r3, [r7, #8] + 8009ce0: 891a ldrh r2, [r3, #8] + 8009ce2: 7dfb ldrb r3, [r7, #23] + 8009ce4: b29b uxth r3, r3 + 8009ce6: 1ad3 subs r3, r2, r3 + 8009ce8: b29a uxth r2, r3 + 8009cea: 693b ldr r3, [r7, #16] + 8009cec: 811a strh r2, [r3, #8] LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED", (optflags & TF_SEG_DATA_CHECKSUMMED) == 0); #endif /* TCP_CHECKSUM_ON_COPY */ /* build TCP header */ if (pbuf_add_header(p, TCP_HLEN)) { - 8009cf2: 2114 movs r1, #20 - 8009cf4: 68b8 ldr r0, [r7, #8] - 8009cf6: f7fb fdbb bl 8005870 - 8009cfa: 4603 mov r3, r0 - 8009cfc: 2b00 cmp r3, #0 - 8009cfe: d004 beq.n 8009d0a + 8009cee: 2114 movs r1, #20 + 8009cf0: 68b8 ldr r0, [r7, #8] + 8009cf2: f7fb fdbb bl 800586c + 8009cf6: 4603 mov r3, r0 + 8009cf8: 2b00 cmp r3, #0 + 8009cfa: d004 beq.n 8009d06 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no room for TCP header in pbuf.\n")); TCP_STATS_INC(tcp.err); tcp_seg_free(seg); - 8009d00: 6938 ldr r0, [r7, #16] - 8009d02: f7fd f8ce bl 8006ea2 + 8009cfc: 6938 ldr r0, [r7, #16] + 8009cfe: f7fd f8ce bl 8006e9e return NULL; - 8009d06: 2300 movs r3, #0 - 8009d08: e037 b.n 8009d7a + 8009d02: 2300 movs r3, #0 + 8009d04: e037 b.n 8009d76 } seg->tcphdr = (struct tcp_hdr *)seg->p->payload; - 8009d0a: 693b ldr r3, [r7, #16] - 8009d0c: 685b ldr r3, [r3, #4] - 8009d0e: 685a ldr r2, [r3, #4] - 8009d10: 693b ldr r3, [r7, #16] - 8009d12: 60da str r2, [r3, #12] + 8009d06: 693b ldr r3, [r7, #16] + 8009d08: 685b ldr r3, [r3, #4] + 8009d0a: 685a ldr r2, [r3, #4] + 8009d0c: 693b ldr r3, [r7, #16] + 8009d0e: 60da str r2, [r3, #12] seg->tcphdr->src = lwip_htons(pcb->local_port); - 8009d14: 68fb ldr r3, [r7, #12] - 8009d16: 8ada ldrh r2, [r3, #22] - 8009d18: 693b ldr r3, [r7, #16] - 8009d1a: 68dc ldr r4, [r3, #12] - 8009d1c: 4610 mov r0, r2 - 8009d1e: f7fa fad3 bl 80042c8 - 8009d22: 4603 mov r3, r0 - 8009d24: 8023 strh r3, [r4, #0] + 8009d10: 68fb ldr r3, [r7, #12] + 8009d12: 8ada ldrh r2, [r3, #22] + 8009d14: 693b ldr r3, [r7, #16] + 8009d16: 68dc ldr r4, [r3, #12] + 8009d18: 4610 mov r0, r2 + 8009d1a: f7fa fad3 bl 80042c4 + 8009d1e: 4603 mov r3, r0 + 8009d20: 8023 strh r3, [r4, #0] seg->tcphdr->dest = lwip_htons(pcb->remote_port); - 8009d26: 68fb ldr r3, [r7, #12] - 8009d28: 8b1a ldrh r2, [r3, #24] - 8009d2a: 693b ldr r3, [r7, #16] - 8009d2c: 68dc ldr r4, [r3, #12] - 8009d2e: 4610 mov r0, r2 - 8009d30: f7fa faca bl 80042c8 - 8009d34: 4603 mov r3, r0 - 8009d36: 8063 strh r3, [r4, #2] + 8009d22: 68fb ldr r3, [r7, #12] + 8009d24: 8b1a ldrh r2, [r3, #24] + 8009d26: 693b ldr r3, [r7, #16] + 8009d28: 68dc ldr r4, [r3, #12] + 8009d2a: 4610 mov r0, r2 + 8009d2c: f7fa faca bl 80042c4 + 8009d30: 4603 mov r3, r0 + 8009d32: 8063 strh r3, [r4, #2] seg->tcphdr->seqno = lwip_htonl(seqno); - 8009d38: 693b ldr r3, [r7, #16] - 8009d3a: 68dc ldr r4, [r3, #12] - 8009d3c: 6838 ldr r0, [r7, #0] - 8009d3e: f7fa fad8 bl 80042f2 - 8009d42: 4603 mov r3, r0 - 8009d44: 6063 str r3, [r4, #4] + 8009d34: 693b ldr r3, [r7, #16] + 8009d36: 68dc ldr r4, [r3, #12] + 8009d38: 6838 ldr r0, [r7, #0] + 8009d3a: f7fa fad8 bl 80042ee + 8009d3e: 4603 mov r3, r0 + 8009d40: 6063 str r3, [r4, #4] /* ackno is set in tcp_output */ TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags); - 8009d46: 7dfb ldrb r3, [r7, #23] - 8009d48: 089b lsrs r3, r3, #2 - 8009d4a: b2db uxtb r3, r3 + 8009d42: 7dfb ldrb r3, [r7, #23] + 8009d44: 089b lsrs r3, r3, #2 + 8009d46: b2db uxtb r3, r3 + 8009d48: b29b uxth r3, r3 + 8009d4a: 3305 adds r3, #5 8009d4c: b29b uxth r3, r3 - 8009d4e: 3305 adds r3, #5 - 8009d50: b29b uxth r3, r3 - 8009d52: 031b lsls r3, r3, #12 - 8009d54: b29a uxth r2, r3 - 8009d56: 79fb ldrb r3, [r7, #7] - 8009d58: b29b uxth r3, r3 - 8009d5a: 4313 orrs r3, r2 - 8009d5c: b29a uxth r2, r3 - 8009d5e: 693b ldr r3, [r7, #16] - 8009d60: 68dc ldr r4, [r3, #12] - 8009d62: 4610 mov r0, r2 - 8009d64: f7fa fab0 bl 80042c8 - 8009d68: 4603 mov r3, r0 - 8009d6a: 81a3 strh r3, [r4, #12] + 8009d4e: 031b lsls r3, r3, #12 + 8009d50: b29a uxth r2, r3 + 8009d52: 79fb ldrb r3, [r7, #7] + 8009d54: b29b uxth r3, r3 + 8009d56: 4313 orrs r3, r2 + 8009d58: b29a uxth r2, r3 + 8009d5a: 693b ldr r3, [r7, #16] + 8009d5c: 68dc ldr r4, [r3, #12] + 8009d5e: 4610 mov r0, r2 + 8009d60: f7fa fab0 bl 80042c4 + 8009d64: 4603 mov r3, r0 + 8009d66: 81a3 strh r3, [r4, #12] /* wnd and chksum are set in tcp_output */ seg->tcphdr->urgp = 0; - 8009d6c: 693b ldr r3, [r7, #16] - 8009d6e: 68db ldr r3, [r3, #12] + 8009d68: 693b ldr r3, [r7, #16] + 8009d6a: 68db ldr r3, [r3, #12] + 8009d6c: 2200 movs r2, #0 + 8009d6e: 749a strb r2, [r3, #18] 8009d70: 2200 movs r2, #0 - 8009d72: 749a strb r2, [r3, #18] - 8009d74: 2200 movs r2, #0 - 8009d76: 74da strb r2, [r3, #19] + 8009d72: 74da strb r2, [r3, #19] return seg; - 8009d78: 693b ldr r3, [r7, #16] + 8009d74: 693b ldr r3, [r7, #16] } - 8009d7a: 4618 mov r0, r3 - 8009d7c: 371c adds r7, #28 - 8009d7e: 46bd mov sp, r7 - 8009d80: bd90 pop {r4, r7, pc} - 8009d82: bf00 nop - 8009d84: 080165a4 .word 0x080165a4 - 8009d88: 080165d8 .word 0x080165d8 - 8009d8c: 080165f8 .word 0x080165f8 - 8009d90: 08016620 .word 0x08016620 - 8009d94: 08016644 .word 0x08016644 + 8009d76: 4618 mov r0, r3 + 8009d78: 371c adds r7, #28 + 8009d7a: 46bd mov sp, r7 + 8009d7c: bd90 pop {r4, r7, pc} + 8009d7e: bf00 nop + 8009d80: 080165a4 .word 0x080165a4 + 8009d84: 080165d8 .word 0x080165d8 + 8009d88: 080165f8 .word 0x080165f8 + 8009d8c: 08016620 .word 0x08016620 + 8009d90: 08016644 .word 0x08016644 -08009d98 : +08009d94 : * @param pcb the tcp_pcb for which to split the unsent head * @param split the amount of payload to remain in the head */ err_t tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split) { - 8009d98: b590 push {r4, r7, lr} - 8009d9a: b08b sub sp, #44 ; 0x2c - 8009d9c: af02 add r7, sp, #8 - 8009d9e: 6078 str r0, [r7, #4] - 8009da0: 460b mov r3, r1 - 8009da2: 807b strh r3, [r7, #2] + 8009d94: b590 push {r4, r7, lr} + 8009d96: b08b sub sp, #44 ; 0x2c + 8009d98: af02 add r7, sp, #8 + 8009d9a: 6078 str r0, [r7, #4] + 8009d9c: 460b mov r3, r1 + 8009d9e: 807b strh r3, [r7, #2] struct tcp_seg *seg = NULL, *useg = NULL; + 8009da0: 2300 movs r3, #0 + 8009da2: 61fb str r3, [r7, #28] 8009da4: 2300 movs r3, #0 - 8009da6: 61fb str r3, [r7, #28] - 8009da8: 2300 movs r3, #0 - 8009daa: 617b str r3, [r7, #20] + 8009da6: 617b str r3, [r7, #20] struct pbuf *p = NULL; - 8009dac: 2300 movs r3, #0 - 8009dae: 613b str r3, [r7, #16] + 8009da8: 2300 movs r3, #0 + 8009daa: 613b str r3, [r7, #16] u16_t chksum = 0; u8_t chksum_swapped = 0; struct pbuf *q; #endif /* TCP_CHECKSUM_ON_COPY */ LWIP_ASSERT("tcp_split_unsent_seg: invalid pcb", pcb != NULL); - 8009db0: 687b ldr r3, [r7, #4] - 8009db2: 2b00 cmp r3, #0 - 8009db4: d106 bne.n 8009dc4 - 8009db6: 4b95 ldr r3, [pc, #596] ; (800a00c ) - 8009db8: f240 324b movw r2, #843 ; 0x34b - 8009dbc: 4994 ldr r1, [pc, #592] ; (800a010 ) - 8009dbe: 4895 ldr r0, [pc, #596] ; (800a014 ) - 8009dc0: f006 fb08 bl 80103d4 + 8009dac: 687b ldr r3, [r7, #4] + 8009dae: 2b00 cmp r3, #0 + 8009db0: d106 bne.n 8009dc0 + 8009db2: 4b95 ldr r3, [pc, #596] ; (800a008 ) + 8009db4: f240 324b movw r2, #843 ; 0x34b + 8009db8: 4994 ldr r1, [pc, #592] ; (800a00c ) + 8009dba: 4895 ldr r0, [pc, #596] ; (800a010 ) + 8009dbc: f006 fb08 bl 80103d0 useg = pcb->unsent; - 8009dc4: 687b ldr r3, [r7, #4] - 8009dc6: 6edb ldr r3, [r3, #108] ; 0x6c - 8009dc8: 617b str r3, [r7, #20] + 8009dc0: 687b ldr r3, [r7, #4] + 8009dc2: 6edb ldr r3, [r3, #108] ; 0x6c + 8009dc4: 617b str r3, [r7, #20] if (useg == NULL) { - 8009dca: 697b ldr r3, [r7, #20] - 8009dcc: 2b00 cmp r3, #0 - 8009dce: d102 bne.n 8009dd6 + 8009dc6: 697b ldr r3, [r7, #20] + 8009dc8: 2b00 cmp r3, #0 + 8009dca: d102 bne.n 8009dd2 return ERR_MEM; - 8009dd0: f04f 33ff mov.w r3, #4294967295 - 8009dd4: e116 b.n 800a004 + 8009dcc: f04f 33ff mov.w r3, #4294967295 + 8009dd0: e116 b.n 800a000 } if (split == 0) { - 8009dd6: 887b ldrh r3, [r7, #2] - 8009dd8: 2b00 cmp r3, #0 - 8009dda: d109 bne.n 8009df0 + 8009dd2: 887b ldrh r3, [r7, #2] + 8009dd4: 2b00 cmp r3, #0 + 8009dd6: d109 bne.n 8009dec LWIP_ASSERT("Can't split segment into length 0", 0); - 8009ddc: 4b8b ldr r3, [pc, #556] ; (800a00c ) - 8009dde: f240 3253 movw r2, #851 ; 0x353 - 8009de2: 498d ldr r1, [pc, #564] ; (800a018 ) - 8009de4: 488b ldr r0, [pc, #556] ; (800a014 ) - 8009de6: f006 faf5 bl 80103d4 + 8009dd8: 4b8b ldr r3, [pc, #556] ; (800a008 ) + 8009dda: f240 3253 movw r2, #851 ; 0x353 + 8009dde: 498d ldr r1, [pc, #564] ; (800a014 ) + 8009de0: 488b ldr r0, [pc, #556] ; (800a010 ) + 8009de2: f006 faf5 bl 80103d0 return ERR_VAL; - 8009dea: f06f 0305 mvn.w r3, #5 - 8009dee: e109 b.n 800a004 + 8009de6: f06f 0305 mvn.w r3, #5 + 8009dea: e109 b.n 800a000 } if (useg->len <= split) { - 8009df0: 697b ldr r3, [r7, #20] - 8009df2: 891b ldrh r3, [r3, #8] - 8009df4: 887a ldrh r2, [r7, #2] - 8009df6: 429a cmp r2, r3 - 8009df8: d301 bcc.n 8009dfe + 8009dec: 697b ldr r3, [r7, #20] + 8009dee: 891b ldrh r3, [r3, #8] + 8009df0: 887a ldrh r2, [r7, #2] + 8009df2: 429a cmp r2, r3 + 8009df4: d301 bcc.n 8009dfa return ERR_OK; - 8009dfa: 2300 movs r3, #0 - 8009dfc: e102 b.n 800a004 + 8009df6: 2300 movs r3, #0 + 8009df8: e102 b.n 800a000 } LWIP_ASSERT("split <= mss", split <= pcb->mss); - 8009dfe: 687b ldr r3, [r7, #4] - 8009e00: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8009e02: 887a ldrh r2, [r7, #2] - 8009e04: 429a cmp r2, r3 - 8009e06: d906 bls.n 8009e16 - 8009e08: 4b80 ldr r3, [pc, #512] ; (800a00c ) - 8009e0a: f240 325b movw r2, #859 ; 0x35b - 8009e0e: 4983 ldr r1, [pc, #524] ; (800a01c ) - 8009e10: 4880 ldr r0, [pc, #512] ; (800a014 ) - 8009e12: f006 fadf bl 80103d4 + 8009dfa: 687b ldr r3, [r7, #4] + 8009dfc: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8009dfe: 887a ldrh r2, [r7, #2] + 8009e00: 429a cmp r2, r3 + 8009e02: d906 bls.n 8009e12 + 8009e04: 4b80 ldr r3, [pc, #512] ; (800a008 ) + 8009e06: f240 325b movw r2, #859 ; 0x35b + 8009e0a: 4983 ldr r1, [pc, #524] ; (800a018 ) + 8009e0c: 4880 ldr r0, [pc, #512] ; (800a010 ) + 8009e0e: f006 fadf bl 80103d0 LWIP_ASSERT("useg->len > 0", useg->len > 0); - 8009e16: 697b ldr r3, [r7, #20] - 8009e18: 891b ldrh r3, [r3, #8] - 8009e1a: 2b00 cmp r3, #0 - 8009e1c: d106 bne.n 8009e2c - 8009e1e: 4b7b ldr r3, [pc, #492] ; (800a00c ) - 8009e20: f44f 7257 mov.w r2, #860 ; 0x35c - 8009e24: 497e ldr r1, [pc, #504] ; (800a020 ) - 8009e26: 487b ldr r0, [pc, #492] ; (800a014 ) - 8009e28: f006 fad4 bl 80103d4 + 8009e12: 697b ldr r3, [r7, #20] + 8009e14: 891b ldrh r3, [r3, #8] + 8009e16: 2b00 cmp r3, #0 + 8009e18: d106 bne.n 8009e28 + 8009e1a: 4b7b ldr r3, [pc, #492] ; (800a008 ) + 8009e1c: f44f 7257 mov.w r2, #860 ; 0x35c + 8009e20: 497e ldr r1, [pc, #504] ; (800a01c ) + 8009e22: 487b ldr r0, [pc, #492] ; (800a010 ) + 8009e24: f006 fad4 bl 80103d0 * to split this packet so we may actually exceed the max value by * one! */ LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue: split_unsent_seg: %u\n", (unsigned int)pcb->snd_queuelen)); optflags = useg->flags; - 8009e2c: 697b ldr r3, [r7, #20] - 8009e2e: 7a9b ldrb r3, [r3, #10] - 8009e30: 73fb strb r3, [r7, #15] + 8009e28: 697b ldr r3, [r7, #20] + 8009e2a: 7a9b ldrb r3, [r3, #10] + 8009e2c: 73fb strb r3, [r7, #15] #if TCP_CHECKSUM_ON_COPY /* Remove since checksum is not stored until after tcp_create_segment() */ optflags &= ~TF_SEG_DATA_CHECKSUMMED; #endif /* TCP_CHECKSUM_ON_COPY */ optlen = LWIP_TCP_OPT_LENGTH(optflags); - 8009e32: 7bfb ldrb r3, [r7, #15] - 8009e34: 009b lsls r3, r3, #2 - 8009e36: b2db uxtb r3, r3 - 8009e38: f003 0304 and.w r3, r3, #4 - 8009e3c: 73bb strb r3, [r7, #14] + 8009e2e: 7bfb ldrb r3, [r7, #15] + 8009e30: 009b lsls r3, r3, #2 + 8009e32: b2db uxtb r3, r3 + 8009e34: f003 0304 and.w r3, r3, #4 + 8009e38: 73bb strb r3, [r7, #14] remainder = useg->len - split; - 8009e3e: 697b ldr r3, [r7, #20] - 8009e40: 891a ldrh r2, [r3, #8] - 8009e42: 887b ldrh r3, [r7, #2] - 8009e44: 1ad3 subs r3, r2, r3 - 8009e46: 81bb strh r3, [r7, #12] + 8009e3a: 697b ldr r3, [r7, #20] + 8009e3c: 891a ldrh r2, [r3, #8] + 8009e3e: 887b ldrh r3, [r7, #2] + 8009e40: 1ad3 subs r3, r2, r3 + 8009e42: 81bb strh r3, [r7, #12] /* Create new pbuf for the remainder of the split */ p = pbuf_alloc(PBUF_TRANSPORT, remainder + optlen, PBUF_RAM); - 8009e48: 7bbb ldrb r3, [r7, #14] - 8009e4a: b29a uxth r2, r3 - 8009e4c: 89bb ldrh r3, [r7, #12] - 8009e4e: 4413 add r3, r2 - 8009e50: b29b uxth r3, r3 - 8009e52: f44f 7220 mov.w r2, #640 ; 0x280 - 8009e56: 4619 mov r1, r3 - 8009e58: 2036 movs r0, #54 ; 0x36 - 8009e5a: f7fb fabb bl 80053d4 - 8009e5e: 6138 str r0, [r7, #16] + 8009e44: 7bbb ldrb r3, [r7, #14] + 8009e46: b29a uxth r2, r3 + 8009e48: 89bb ldrh r3, [r7, #12] + 8009e4a: 4413 add r3, r2 + 8009e4c: b29b uxth r3, r3 + 8009e4e: f44f 7220 mov.w r2, #640 ; 0x280 + 8009e52: 4619 mov r1, r3 + 8009e54: 2036 movs r0, #54 ; 0x36 + 8009e56: f7fb fabb bl 80053d0 + 8009e5a: 6138 str r0, [r7, #16] if (p == NULL) { - 8009e60: 693b ldr r3, [r7, #16] - 8009e62: 2b00 cmp r3, #0 - 8009e64: f000 80b7 beq.w 8009fd6 + 8009e5c: 693b ldr r3, [r7, #16] + 8009e5e: 2b00 cmp r3, #0 + 8009e60: f000 80b7 beq.w 8009fd2 ("tcp_split_unsent_seg: could not allocate memory for pbuf remainder %u\n", remainder)); goto memerr; } /* Offset into the original pbuf is past TCP/IP headers, options, and split amount */ offset = useg->p->tot_len - useg->len + split; - 8009e68: 697b ldr r3, [r7, #20] - 8009e6a: 685b ldr r3, [r3, #4] - 8009e6c: 891a ldrh r2, [r3, #8] - 8009e6e: 697b ldr r3, [r7, #20] - 8009e70: 891b ldrh r3, [r3, #8] - 8009e72: 1ad3 subs r3, r2, r3 - 8009e74: b29a uxth r2, r3 - 8009e76: 887b ldrh r3, [r7, #2] - 8009e78: 4413 add r3, r2 - 8009e7a: 817b strh r3, [r7, #10] + 8009e64: 697b ldr r3, [r7, #20] + 8009e66: 685b ldr r3, [r3, #4] + 8009e68: 891a ldrh r2, [r3, #8] + 8009e6a: 697b ldr r3, [r7, #20] + 8009e6c: 891b ldrh r3, [r3, #8] + 8009e6e: 1ad3 subs r3, r2, r3 + 8009e70: b29a uxth r2, r3 + 8009e72: 887b ldrh r3, [r7, #2] + 8009e74: 4413 add r3, r2 + 8009e76: 817b strh r3, [r7, #10] /* Copy remainder into new pbuf, headers and options will not be filled out */ if (pbuf_copy_partial(useg->p, (u8_t *)p->payload + optlen, remainder, offset ) != remainder) { - 8009e7c: 697b ldr r3, [r7, #20] - 8009e7e: 6858 ldr r0, [r3, #4] - 8009e80: 693b ldr r3, [r7, #16] - 8009e82: 685a ldr r2, [r3, #4] - 8009e84: 7bbb ldrb r3, [r7, #14] - 8009e86: 18d1 adds r1, r2, r3 - 8009e88: 897b ldrh r3, [r7, #10] - 8009e8a: 89ba ldrh r2, [r7, #12] - 8009e8c: f7fb ff80 bl 8005d90 - 8009e90: 4603 mov r3, r0 - 8009e92: 461a mov r2, r3 - 8009e94: 89bb ldrh r3, [r7, #12] - 8009e96: 4293 cmp r3, r2 - 8009e98: f040 809f bne.w 8009fda + 8009e78: 697b ldr r3, [r7, #20] + 8009e7a: 6858 ldr r0, [r3, #4] + 8009e7c: 693b ldr r3, [r7, #16] + 8009e7e: 685a ldr r2, [r3, #4] + 8009e80: 7bbb ldrb r3, [r7, #14] + 8009e82: 18d1 adds r1, r2, r3 + 8009e84: 897b ldrh r3, [r7, #10] + 8009e86: 89ba ldrh r2, [r7, #12] + 8009e88: f7fb ff80 bl 8005d8c + 8009e8c: 4603 mov r3, r0 + 8009e8e: 461a mov r2, r3 + 8009e90: 89bb ldrh r3, [r7, #12] + 8009e92: 4293 cmp r3, r2 + 8009e94: f040 809f bne.w 8009fd6 #endif /* TCP_CHECKSUM_ON_COPY */ /* Options are created when calling tcp_output() */ /* Migrate flags from original segment */ split_flags = TCPH_FLAGS(useg->tcphdr); - 8009e9c: 697b ldr r3, [r7, #20] - 8009e9e: 68db ldr r3, [r3, #12] - 8009ea0: 899b ldrh r3, [r3, #12] - 8009ea2: b29b uxth r3, r3 - 8009ea4: 4618 mov r0, r3 - 8009ea6: f7fa fa0f bl 80042c8 - 8009eaa: 4603 mov r3, r0 - 8009eac: b2db uxtb r3, r3 - 8009eae: f003 033f and.w r3, r3, #63 ; 0x3f - 8009eb2: 76fb strb r3, [r7, #27] + 8009e98: 697b ldr r3, [r7, #20] + 8009e9a: 68db ldr r3, [r3, #12] + 8009e9c: 899b ldrh r3, [r3, #12] + 8009e9e: b29b uxth r3, r3 + 8009ea0: 4618 mov r0, r3 + 8009ea2: f7fa fa0f bl 80042c4 + 8009ea6: 4603 mov r3, r0 + 8009ea8: b2db uxtb r3, r3 + 8009eaa: f003 033f and.w r3, r3, #63 ; 0x3f + 8009eae: 76fb strb r3, [r7, #27] remainder_flags = 0; /* ACK added in tcp_output() */ - 8009eb4: 2300 movs r3, #0 - 8009eb6: 76bb strb r3, [r7, #26] + 8009eb0: 2300 movs r3, #0 + 8009eb2: 76bb strb r3, [r7, #26] if (split_flags & TCP_PSH) { - 8009eb8: 7efb ldrb r3, [r7, #27] - 8009eba: f003 0308 and.w r3, r3, #8 - 8009ebe: 2b00 cmp r3, #0 - 8009ec0: d007 beq.n 8009ed2 + 8009eb4: 7efb ldrb r3, [r7, #27] + 8009eb6: f003 0308 and.w r3, r3, #8 + 8009eba: 2b00 cmp r3, #0 + 8009ebc: d007 beq.n 8009ece split_flags &= ~TCP_PSH; - 8009ec2: 7efb ldrb r3, [r7, #27] - 8009ec4: f023 0308 bic.w r3, r3, #8 - 8009ec8: 76fb strb r3, [r7, #27] + 8009ebe: 7efb ldrb r3, [r7, #27] + 8009ec0: f023 0308 bic.w r3, r3, #8 + 8009ec4: 76fb strb r3, [r7, #27] remainder_flags |= TCP_PSH; - 8009eca: 7ebb ldrb r3, [r7, #26] - 8009ecc: f043 0308 orr.w r3, r3, #8 - 8009ed0: 76bb strb r3, [r7, #26] + 8009ec6: 7ebb ldrb r3, [r7, #26] + 8009ec8: f043 0308 orr.w r3, r3, #8 + 8009ecc: 76bb strb r3, [r7, #26] } if (split_flags & TCP_FIN) { - 8009ed2: 7efb ldrb r3, [r7, #27] - 8009ed4: f003 0301 and.w r3, r3, #1 - 8009ed8: 2b00 cmp r3, #0 - 8009eda: d007 beq.n 8009eec + 8009ece: 7efb ldrb r3, [r7, #27] + 8009ed0: f003 0301 and.w r3, r3, #1 + 8009ed4: 2b00 cmp r3, #0 + 8009ed6: d007 beq.n 8009ee8 split_flags &= ~TCP_FIN; - 8009edc: 7efb ldrb r3, [r7, #27] - 8009ede: f023 0301 bic.w r3, r3, #1 - 8009ee2: 76fb strb r3, [r7, #27] + 8009ed8: 7efb ldrb r3, [r7, #27] + 8009eda: f023 0301 bic.w r3, r3, #1 + 8009ede: 76fb strb r3, [r7, #27] remainder_flags |= TCP_FIN; - 8009ee4: 7ebb ldrb r3, [r7, #26] - 8009ee6: f043 0301 orr.w r3, r3, #1 - 8009eea: 76bb strb r3, [r7, #26] + 8009ee0: 7ebb ldrb r3, [r7, #26] + 8009ee2: f043 0301 orr.w r3, r3, #1 + 8009ee6: 76bb strb r3, [r7, #26] } /* SYN should be left on split, RST should not be present with data */ seg = tcp_create_segment(pcb, p, remainder_flags, lwip_ntohl(useg->tcphdr->seqno) + split, optflags); - 8009eec: 697b ldr r3, [r7, #20] - 8009eee: 68db ldr r3, [r3, #12] - 8009ef0: 685b ldr r3, [r3, #4] - 8009ef2: 4618 mov r0, r3 - 8009ef4: f7fa f9fd bl 80042f2 - 8009ef8: 4602 mov r2, r0 - 8009efa: 887b ldrh r3, [r7, #2] - 8009efc: 18d1 adds r1, r2, r3 - 8009efe: 7eba ldrb r2, [r7, #26] - 8009f00: 7bfb ldrb r3, [r7, #15] - 8009f02: 9300 str r3, [sp, #0] - 8009f04: 460b mov r3, r1 - 8009f06: 6939 ldr r1, [r7, #16] - 8009f08: 6878 ldr r0, [r7, #4] - 8009f0a: f7ff fea7 bl 8009c5c - 8009f0e: 61f8 str r0, [r7, #28] + 8009ee8: 697b ldr r3, [r7, #20] + 8009eea: 68db ldr r3, [r3, #12] + 8009eec: 685b ldr r3, [r3, #4] + 8009eee: 4618 mov r0, r3 + 8009ef0: f7fa f9fd bl 80042ee + 8009ef4: 4602 mov r2, r0 + 8009ef6: 887b ldrh r3, [r7, #2] + 8009ef8: 18d1 adds r1, r2, r3 + 8009efa: 7eba ldrb r2, [r7, #26] + 8009efc: 7bfb ldrb r3, [r7, #15] + 8009efe: 9300 str r3, [sp, #0] + 8009f00: 460b mov r3, r1 + 8009f02: 6939 ldr r1, [r7, #16] + 8009f04: 6878 ldr r0, [r7, #4] + 8009f06: f7ff fea7 bl 8009c58 + 8009f0a: 61f8 str r0, [r7, #28] if (seg == NULL) { - 8009f10: 69fb ldr r3, [r7, #28] - 8009f12: 2b00 cmp r3, #0 - 8009f14: d063 beq.n 8009fde + 8009f0c: 69fb ldr r3, [r7, #28] + 8009f0e: 2b00 cmp r3, #0 + 8009f10: d063 beq.n 8009fda seg->chksum_swapped = chksum_swapped; seg->flags |= TF_SEG_DATA_CHECKSUMMED; #endif /* TCP_CHECKSUM_ON_COPY */ /* Remove this segment from the queue since trimming it may free pbufs */ pcb->snd_queuelen -= pbuf_clen(useg->p); - 8009f16: 697b ldr r3, [r7, #20] - 8009f18: 685b ldr r3, [r3, #4] - 8009f1a: 4618 mov r0, r3 - 8009f1c: f7fb fdc6 bl 8005aac - 8009f20: 4603 mov r3, r0 - 8009f22: 461a mov r2, r3 - 8009f24: 687b ldr r3, [r7, #4] - 8009f26: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8009f2a: 1a9b subs r3, r3, r2 - 8009f2c: b29a uxth r2, r3 - 8009f2e: 687b ldr r3, [r7, #4] - 8009f30: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 8009f12: 697b ldr r3, [r7, #20] + 8009f14: 685b ldr r3, [r3, #4] + 8009f16: 4618 mov r0, r3 + 8009f18: f7fb fdc6 bl 8005aa8 + 8009f1c: 4603 mov r3, r0 + 8009f1e: 461a mov r2, r3 + 8009f20: 687b ldr r3, [r7, #4] + 8009f22: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 8009f26: 1a9b subs r3, r3, r2 + 8009f28: b29a uxth r2, r3 + 8009f2a: 687b ldr r3, [r7, #4] + 8009f2c: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 /* Trim the original pbuf into our split size. At this point our remainder segment must be setup successfully because we are modifying the original segment */ pbuf_realloc(useg->p, useg->p->tot_len - remainder); + 8009f30: 697b ldr r3, [r7, #20] + 8009f32: 6858 ldr r0, [r3, #4] 8009f34: 697b ldr r3, [r7, #20] - 8009f36: 6858 ldr r0, [r3, #4] - 8009f38: 697b ldr r3, [r7, #20] - 8009f3a: 685b ldr r3, [r3, #4] - 8009f3c: 891a ldrh r2, [r3, #8] - 8009f3e: 89bb ldrh r3, [r7, #12] - 8009f40: 1ad3 subs r3, r2, r3 - 8009f42: b29b uxth r3, r3 - 8009f44: 4619 mov r1, r3 - 8009f46: f7fb fba3 bl 8005690 + 8009f36: 685b ldr r3, [r3, #4] + 8009f38: 891a ldrh r2, [r3, #8] + 8009f3a: 89bb ldrh r3, [r7, #12] + 8009f3c: 1ad3 subs r3, r2, r3 + 8009f3e: b29b uxth r3, r3 + 8009f40: 4619 mov r1, r3 + 8009f42: f7fb fba3 bl 800568c useg->len -= remainder; - 8009f4a: 697b ldr r3, [r7, #20] - 8009f4c: 891a ldrh r2, [r3, #8] - 8009f4e: 89bb ldrh r3, [r7, #12] - 8009f50: 1ad3 subs r3, r2, r3 - 8009f52: b29a uxth r2, r3 - 8009f54: 697b ldr r3, [r7, #20] - 8009f56: 811a strh r2, [r3, #8] + 8009f46: 697b ldr r3, [r7, #20] + 8009f48: 891a ldrh r2, [r3, #8] + 8009f4a: 89bb ldrh r3, [r7, #12] + 8009f4c: 1ad3 subs r3, r2, r3 + 8009f4e: b29a uxth r2, r3 + 8009f50: 697b ldr r3, [r7, #20] + 8009f52: 811a strh r2, [r3, #8] TCPH_SET_FLAG(useg->tcphdr, split_flags); - 8009f58: 697b ldr r3, [r7, #20] - 8009f5a: 68db ldr r3, [r3, #12] - 8009f5c: 899b ldrh r3, [r3, #12] - 8009f5e: b29c uxth r4, r3 - 8009f60: 7efb ldrb r3, [r7, #27] - 8009f62: b29b uxth r3, r3 - 8009f64: 4618 mov r0, r3 - 8009f66: f7fa f9af bl 80042c8 - 8009f6a: 4603 mov r3, r0 - 8009f6c: 461a mov r2, r3 - 8009f6e: 697b ldr r3, [r7, #20] - 8009f70: 68db ldr r3, [r3, #12] - 8009f72: 4322 orrs r2, r4 - 8009f74: b292 uxth r2, r2 - 8009f76: 819a strh r2, [r3, #12] + 8009f54: 697b ldr r3, [r7, #20] + 8009f56: 68db ldr r3, [r3, #12] + 8009f58: 899b ldrh r3, [r3, #12] + 8009f5a: b29c uxth r4, r3 + 8009f5c: 7efb ldrb r3, [r7, #27] + 8009f5e: b29b uxth r3, r3 + 8009f60: 4618 mov r0, r3 + 8009f62: f7fa f9af bl 80042c4 + 8009f66: 4603 mov r3, r0 + 8009f68: 461a mov r2, r3 + 8009f6a: 697b ldr r3, [r7, #20] + 8009f6c: 68db ldr r3, [r3, #12] + 8009f6e: 4322 orrs r2, r4 + 8009f70: b292 uxth r2, r2 + 8009f72: 819a strh r2, [r3, #12] /* By trimming, realloc may have actually shrunk the pbuf, so clear oversize_left */ useg->oversize_left = 0; #endif /* TCP_OVERSIZE_DBGCHECK */ /* Add back to the queue with new trimmed pbuf */ pcb->snd_queuelen += pbuf_clen(useg->p); - 8009f78: 697b ldr r3, [r7, #20] - 8009f7a: 685b ldr r3, [r3, #4] - 8009f7c: 4618 mov r0, r3 - 8009f7e: f7fb fd95 bl 8005aac - 8009f82: 4603 mov r3, r0 - 8009f84: 461a mov r2, r3 - 8009f86: 687b ldr r3, [r7, #4] - 8009f88: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8009f8c: 4413 add r3, r2 - 8009f8e: b29a uxth r2, r3 - 8009f90: 687b ldr r3, [r7, #4] - 8009f92: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 8009f74: 697b ldr r3, [r7, #20] + 8009f76: 685b ldr r3, [r3, #4] + 8009f78: 4618 mov r0, r3 + 8009f7a: f7fb fd95 bl 8005aa8 + 8009f7e: 4603 mov r3, r0 + 8009f80: 461a mov r2, r3 + 8009f82: 687b ldr r3, [r7, #4] + 8009f84: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 8009f88: 4413 add r3, r2 + 8009f8a: b29a uxth r2, r3 + 8009f8c: 687b ldr r3, [r7, #4] + 8009f8e: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 #endif /* TCP_CHECKSUM_ON_COPY */ /* Update number of segments on the queues. Note that length now may * exceed TCP_SND_QUEUELEN! We don't have to touch pcb->snd_buf * because the total amount of data is constant when packet is split */ pcb->snd_queuelen += pbuf_clen(seg->p); - 8009f96: 69fb ldr r3, [r7, #28] - 8009f98: 685b ldr r3, [r3, #4] - 8009f9a: 4618 mov r0, r3 - 8009f9c: f7fb fd86 bl 8005aac - 8009fa0: 4603 mov r3, r0 - 8009fa2: 461a mov r2, r3 - 8009fa4: 687b ldr r3, [r7, #4] - 8009fa6: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8009faa: 4413 add r3, r2 - 8009fac: b29a uxth r2, r3 - 8009fae: 687b ldr r3, [r7, #4] - 8009fb0: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 8009f92: 69fb ldr r3, [r7, #28] + 8009f94: 685b ldr r3, [r3, #4] + 8009f96: 4618 mov r0, r3 + 8009f98: f7fb fd86 bl 8005aa8 + 8009f9c: 4603 mov r3, r0 + 8009f9e: 461a mov r2, r3 + 8009fa0: 687b ldr r3, [r7, #4] + 8009fa2: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 8009fa6: 4413 add r3, r2 + 8009fa8: b29a uxth r2, r3 + 8009faa: 687b ldr r3, [r7, #4] + 8009fac: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 /* Finally insert remainder into queue after split (which stays head) */ seg->next = useg->next; - 8009fb4: 697b ldr r3, [r7, #20] - 8009fb6: 681a ldr r2, [r3, #0] - 8009fb8: 69fb ldr r3, [r7, #28] - 8009fba: 601a str r2, [r3, #0] + 8009fb0: 697b ldr r3, [r7, #20] + 8009fb2: 681a ldr r2, [r3, #0] + 8009fb4: 69fb ldr r3, [r7, #28] + 8009fb6: 601a str r2, [r3, #0] useg->next = seg; - 8009fbc: 697b ldr r3, [r7, #20] - 8009fbe: 69fa ldr r2, [r7, #28] - 8009fc0: 601a str r2, [r3, #0] + 8009fb8: 697b ldr r3, [r7, #20] + 8009fba: 69fa ldr r2, [r7, #28] + 8009fbc: 601a str r2, [r3, #0] #if TCP_OVERSIZE /* If remainder is last segment on the unsent, ensure we clear the oversize amount * because the remainder is always sized to the exact remaining amount */ if (seg->next == NULL) { - 8009fc2: 69fb ldr r3, [r7, #28] - 8009fc4: 681b ldr r3, [r3, #0] - 8009fc6: 2b00 cmp r3, #0 - 8009fc8: d103 bne.n 8009fd2 + 8009fbe: 69fb ldr r3, [r7, #28] + 8009fc0: 681b ldr r3, [r3, #0] + 8009fc2: 2b00 cmp r3, #0 + 8009fc4: d103 bne.n 8009fce pcb->unsent_oversize = 0; - 8009fca: 687b ldr r3, [r7, #4] - 8009fcc: 2200 movs r2, #0 - 8009fce: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 8009fc6: 687b ldr r3, [r7, #4] + 8009fc8: 2200 movs r2, #0 + 8009fca: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 } #endif /* TCP_OVERSIZE */ return ERR_OK; - 8009fd2: 2300 movs r3, #0 - 8009fd4: e016 b.n 800a004 + 8009fce: 2300 movs r3, #0 + 8009fd0: e016 b.n 800a000 + goto memerr; + 8009fd2: bf00 nop + 8009fd4: e002 b.n 8009fdc goto memerr; 8009fd6: bf00 nop - 8009fd8: e002 b.n 8009fe0 + 8009fd8: e000 b.n 8009fdc goto memerr; 8009fda: bf00 nop - 8009fdc: e000 b.n 8009fe0 - goto memerr; - 8009fde: bf00 nop memerr: TCP_STATS_INC(tcp.memerr); LWIP_ASSERT("seg == NULL", seg == NULL); - 8009fe0: 69fb ldr r3, [r7, #28] - 8009fe2: 2b00 cmp r3, #0 - 8009fe4: d006 beq.n 8009ff4 - 8009fe6: 4b09 ldr r3, [pc, #36] ; (800a00c ) - 8009fe8: f44f 7276 mov.w r2, #984 ; 0x3d8 - 8009fec: 490d ldr r1, [pc, #52] ; (800a024 ) - 8009fee: 4809 ldr r0, [pc, #36] ; (800a014 ) - 8009ff0: f006 f9f0 bl 80103d4 + 8009fdc: 69fb ldr r3, [r7, #28] + 8009fde: 2b00 cmp r3, #0 + 8009fe0: d006 beq.n 8009ff0 + 8009fe2: 4b09 ldr r3, [pc, #36] ; (800a008 ) + 8009fe4: f44f 7276 mov.w r2, #984 ; 0x3d8 + 8009fe8: 490d ldr r1, [pc, #52] ; (800a020 ) + 8009fea: 4809 ldr r0, [pc, #36] ; (800a010 ) + 8009fec: f006 f9f0 bl 80103d0 if (p != NULL) { - 8009ff4: 693b ldr r3, [r7, #16] - 8009ff6: 2b00 cmp r3, #0 - 8009ff8: d002 beq.n 800a000 + 8009ff0: 693b ldr r3, [r7, #16] + 8009ff2: 2b00 cmp r3, #0 + 8009ff4: d002 beq.n 8009ffc pbuf_free(p); - 8009ffa: 6938 ldr r0, [r7, #16] - 8009ffc: f7fb fcce bl 800599c + 8009ff6: 6938 ldr r0, [r7, #16] + 8009ff8: f7fb fcce bl 8005998 } return ERR_MEM; - 800a000: f04f 33ff mov.w r3, #4294967295 + 8009ffc: f04f 33ff mov.w r3, #4294967295 } - 800a004: 4618 mov r0, r3 - 800a006: 3724 adds r7, #36 ; 0x24 - 800a008: 46bd mov sp, r7 - 800a00a: bd90 pop {r4, r7, pc} - 800a00c: 080165a4 .word 0x080165a4 - 800a010: 08016938 .word 0x08016938 - 800a014: 080165f8 .word 0x080165f8 - 800a018: 0801695c .word 0x0801695c - 800a01c: 08016980 .word 0x08016980 - 800a020: 08016990 .word 0x08016990 - 800a024: 080169a0 .word 0x080169a0 + 800a000: 4618 mov r0, r3 + 800a002: 3724 adds r7, #36 ; 0x24 + 800a004: 46bd mov sp, r7 + 800a006: bd90 pop {r4, r7, pc} + 800a008: 080165a4 .word 0x080165a4 + 800a00c: 08016938 .word 0x08016938 + 800a010: 080165f8 .word 0x080165f8 + 800a014: 0801695c .word 0x0801695c + 800a018: 08016980 .word 0x08016980 + 800a01c: 08016990 .word 0x08016990 + 800a020: 080169a0 .word 0x080169a0 -0800a028 : +0800a024 : * @param pcb the tcp_pcb over which to send a segment * @return ERR_OK if sent, another err_t otherwise */ err_t tcp_send_fin(struct tcp_pcb *pcb) { - 800a028: b590 push {r4, r7, lr} - 800a02a: b085 sub sp, #20 - 800a02c: af00 add r7, sp, #0 - 800a02e: 6078 str r0, [r7, #4] + 800a024: b590 push {r4, r7, lr} + 800a026: b085 sub sp, #20 + 800a028: af00 add r7, sp, #0 + 800a02a: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_send_fin: invalid pcb", pcb != NULL); - 800a030: 687b ldr r3, [r7, #4] - 800a032: 2b00 cmp r3, #0 - 800a034: d106 bne.n 800a044 - 800a036: 4b21 ldr r3, [pc, #132] ; (800a0bc ) - 800a038: f240 32eb movw r2, #1003 ; 0x3eb - 800a03c: 4920 ldr r1, [pc, #128] ; (800a0c0 ) - 800a03e: 4821 ldr r0, [pc, #132] ; (800a0c4 ) - 800a040: f006 f9c8 bl 80103d4 + 800a02c: 687b ldr r3, [r7, #4] + 800a02e: 2b00 cmp r3, #0 + 800a030: d106 bne.n 800a040 + 800a032: 4b21 ldr r3, [pc, #132] ; (800a0b8 ) + 800a034: f240 32eb movw r2, #1003 ; 0x3eb + 800a038: 4920 ldr r1, [pc, #128] ; (800a0bc ) + 800a03a: 4821 ldr r0, [pc, #132] ; (800a0c0 ) + 800a03c: f006 f9c8 bl 80103d0 /* first, try to add the fin to the last unsent segment */ if (pcb->unsent != NULL) { - 800a044: 687b ldr r3, [r7, #4] - 800a046: 6edb ldr r3, [r3, #108] ; 0x6c - 800a048: 2b00 cmp r3, #0 - 800a04a: d02e beq.n 800a0aa + 800a040: 687b ldr r3, [r7, #4] + 800a042: 6edb ldr r3, [r3, #108] ; 0x6c + 800a044: 2b00 cmp r3, #0 + 800a046: d02e beq.n 800a0a6 struct tcp_seg *last_unsent; for (last_unsent = pcb->unsent; last_unsent->next != NULL; - 800a04c: 687b ldr r3, [r7, #4] - 800a04e: 6edb ldr r3, [r3, #108] ; 0x6c - 800a050: 60fb str r3, [r7, #12] - 800a052: e002 b.n 800a05a + 800a048: 687b ldr r3, [r7, #4] + 800a04a: 6edb ldr r3, [r3, #108] ; 0x6c + 800a04c: 60fb str r3, [r7, #12] + 800a04e: e002 b.n 800a056 last_unsent = last_unsent->next); - 800a054: 68fb ldr r3, [r7, #12] - 800a056: 681b ldr r3, [r3, #0] - 800a058: 60fb str r3, [r7, #12] + 800a050: 68fb ldr r3, [r7, #12] + 800a052: 681b ldr r3, [r3, #0] + 800a054: 60fb str r3, [r7, #12] for (last_unsent = pcb->unsent; last_unsent->next != NULL; - 800a05a: 68fb ldr r3, [r7, #12] - 800a05c: 681b ldr r3, [r3, #0] - 800a05e: 2b00 cmp r3, #0 - 800a060: d1f8 bne.n 800a054 + 800a056: 68fb ldr r3, [r7, #12] + 800a058: 681b ldr r3, [r3, #0] + 800a05a: 2b00 cmp r3, #0 + 800a05c: d1f8 bne.n 800a050 if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) { - 800a062: 68fb ldr r3, [r7, #12] - 800a064: 68db ldr r3, [r3, #12] - 800a066: 899b ldrh r3, [r3, #12] - 800a068: b29b uxth r3, r3 - 800a06a: 4618 mov r0, r3 - 800a06c: f7fa f92c bl 80042c8 - 800a070: 4603 mov r3, r0 - 800a072: b2db uxtb r3, r3 - 800a074: f003 0307 and.w r3, r3, #7 - 800a078: 2b00 cmp r3, #0 - 800a07a: d116 bne.n 800a0aa + 800a05e: 68fb ldr r3, [r7, #12] + 800a060: 68db ldr r3, [r3, #12] + 800a062: 899b ldrh r3, [r3, #12] + 800a064: b29b uxth r3, r3 + 800a066: 4618 mov r0, r3 + 800a068: f7fa f92c bl 80042c4 + 800a06c: 4603 mov r3, r0 + 800a06e: b2db uxtb r3, r3 + 800a070: f003 0307 and.w r3, r3, #7 + 800a074: 2b00 cmp r3, #0 + 800a076: d116 bne.n 800a0a6 /* no SYN/FIN/RST flag in the header, we can add the FIN flag */ TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN); - 800a07c: 68fb ldr r3, [r7, #12] - 800a07e: 68db ldr r3, [r3, #12] - 800a080: 899b ldrh r3, [r3, #12] - 800a082: b29c uxth r4, r3 - 800a084: 2001 movs r0, #1 - 800a086: f7fa f91f bl 80042c8 - 800a08a: 4603 mov r3, r0 - 800a08c: 461a mov r2, r3 - 800a08e: 68fb ldr r3, [r7, #12] - 800a090: 68db ldr r3, [r3, #12] - 800a092: 4322 orrs r2, r4 - 800a094: b292 uxth r2, r2 - 800a096: 819a strh r2, [r3, #12] + 800a078: 68fb ldr r3, [r7, #12] + 800a07a: 68db ldr r3, [r3, #12] + 800a07c: 899b ldrh r3, [r3, #12] + 800a07e: b29c uxth r4, r3 + 800a080: 2001 movs r0, #1 + 800a082: f7fa f91f bl 80042c4 + 800a086: 4603 mov r3, r0 + 800a088: 461a mov r2, r3 + 800a08a: 68fb ldr r3, [r7, #12] + 800a08c: 68db ldr r3, [r3, #12] + 800a08e: 4322 orrs r2, r4 + 800a090: b292 uxth r2, r2 + 800a092: 819a strh r2, [r3, #12] tcp_set_flags(pcb, TF_FIN); - 800a098: 687b ldr r3, [r7, #4] - 800a09a: 8b5b ldrh r3, [r3, #26] - 800a09c: f043 0320 orr.w r3, r3, #32 - 800a0a0: b29a uxth r2, r3 - 800a0a2: 687b ldr r3, [r7, #4] - 800a0a4: 835a strh r2, [r3, #26] + 800a094: 687b ldr r3, [r7, #4] + 800a096: 8b5b ldrh r3, [r3, #26] + 800a098: f043 0320 orr.w r3, r3, #32 + 800a09c: b29a uxth r2, r3 + 800a09e: 687b ldr r3, [r7, #4] + 800a0a0: 835a strh r2, [r3, #26] return ERR_OK; - 800a0a6: 2300 movs r3, #0 - 800a0a8: e004 b.n 800a0b4 + 800a0a2: 2300 movs r3, #0 + 800a0a4: e004 b.n 800a0b0 } } /* no data, no length, flags, copy=1, no optdata */ return tcp_enqueue_flags(pcb, TCP_FIN); - 800a0aa: 2101 movs r1, #1 - 800a0ac: 6878 ldr r0, [r7, #4] - 800a0ae: f000 f80b bl 800a0c8 - 800a0b2: 4603 mov r3, r0 + 800a0a6: 2101 movs r1, #1 + 800a0a8: 6878 ldr r0, [r7, #4] + 800a0aa: f000 f80b bl 800a0c4 + 800a0ae: 4603 mov r3, r0 } - 800a0b4: 4618 mov r0, r3 - 800a0b6: 3714 adds r7, #20 - 800a0b8: 46bd mov sp, r7 - 800a0ba: bd90 pop {r4, r7, pc} - 800a0bc: 080165a4 .word 0x080165a4 - 800a0c0: 080169ac .word 0x080169ac - 800a0c4: 080165f8 .word 0x080165f8 + 800a0b0: 4618 mov r0, r3 + 800a0b2: 3714 adds r7, #20 + 800a0b4: 46bd mov sp, r7 + 800a0b6: bd90 pop {r4, r7, pc} + 800a0b8: 080165a4 .word 0x080165a4 + 800a0bc: 080169ac .word 0x080169ac + 800a0c0: 080165f8 .word 0x080165f8 -0800a0c8 : +0800a0c4 : * @param pcb Protocol control block for the TCP connection. * @param flags TCP header flags to set in the outgoing segment. */ err_t tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags) { - 800a0c8: b580 push {r7, lr} - 800a0ca: b08a sub sp, #40 ; 0x28 - 800a0cc: af02 add r7, sp, #8 - 800a0ce: 6078 str r0, [r7, #4] - 800a0d0: 460b mov r3, r1 - 800a0d2: 70fb strb r3, [r7, #3] + 800a0c4: b580 push {r7, lr} + 800a0c6: b08a sub sp, #40 ; 0x28 + 800a0c8: af02 add r7, sp, #8 + 800a0ca: 6078 str r0, [r7, #4] + 800a0cc: 460b mov r3, r1 + 800a0ce: 70fb strb r3, [r7, #3] struct pbuf *p; struct tcp_seg *seg; u8_t optflags = 0; - 800a0d4: 2300 movs r3, #0 - 800a0d6: 77fb strb r3, [r7, #31] + 800a0d0: 2300 movs r3, #0 + 800a0d2: 77fb strb r3, [r7, #31] u8_t optlen = 0; - 800a0d8: 2300 movs r3, #0 - 800a0da: 75fb strb r3, [r7, #23] + 800a0d4: 2300 movs r3, #0 + 800a0d6: 75fb strb r3, [r7, #23] LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: queuelen: %"U16_F"\n", (u16_t)pcb->snd_queuelen)); LWIP_ASSERT("tcp_enqueue_flags: need either TCP_SYN or TCP_FIN in flags (programmer violates API)", - 800a0dc: 78fb ldrb r3, [r7, #3] - 800a0de: f003 0303 and.w r3, r3, #3 - 800a0e2: 2b00 cmp r3, #0 - 800a0e4: d106 bne.n 800a0f4 - 800a0e6: 4b67 ldr r3, [pc, #412] ; (800a284 ) - 800a0e8: f240 4211 movw r2, #1041 ; 0x411 - 800a0ec: 4966 ldr r1, [pc, #408] ; (800a288 ) - 800a0ee: 4867 ldr r0, [pc, #412] ; (800a28c ) - 800a0f0: f006 f970 bl 80103d4 + 800a0d8: 78fb ldrb r3, [r7, #3] + 800a0da: f003 0303 and.w r3, r3, #3 + 800a0de: 2b00 cmp r3, #0 + 800a0e0: d106 bne.n 800a0f0 + 800a0e2: 4b67 ldr r3, [pc, #412] ; (800a280 ) + 800a0e4: f240 4211 movw r2, #1041 ; 0x411 + 800a0e8: 4966 ldr r1, [pc, #408] ; (800a284 ) + 800a0ea: 4867 ldr r0, [pc, #412] ; (800a288 ) + 800a0ec: f006 f970 bl 80103d0 (flags & (TCP_SYN | TCP_FIN)) != 0); LWIP_ASSERT("tcp_enqueue_flags: invalid pcb", pcb != NULL); - 800a0f4: 687b ldr r3, [r7, #4] - 800a0f6: 2b00 cmp r3, #0 - 800a0f8: d106 bne.n 800a108 - 800a0fa: 4b62 ldr r3, [pc, #392] ; (800a284 ) - 800a0fc: f240 4213 movw r2, #1043 ; 0x413 - 800a100: 4963 ldr r1, [pc, #396] ; (800a290 ) - 800a102: 4862 ldr r0, [pc, #392] ; (800a28c ) - 800a104: f006 f966 bl 80103d4 + 800a0f0: 687b ldr r3, [r7, #4] + 800a0f2: 2b00 cmp r3, #0 + 800a0f4: d106 bne.n 800a104 + 800a0f6: 4b62 ldr r3, [pc, #392] ; (800a280 ) + 800a0f8: f240 4213 movw r2, #1043 ; 0x413 + 800a0fc: 4963 ldr r1, [pc, #396] ; (800a28c ) + 800a0fe: 4862 ldr r0, [pc, #392] ; (800a288 ) + 800a100: f006 f966 bl 80103d0 /* No need to check pcb->snd_queuelen if only SYN or FIN are allowed! */ /* Get options for this segment. This is a special case since this is the only place where a SYN can be sent. */ if (flags & TCP_SYN) { - 800a108: 78fb ldrb r3, [r7, #3] - 800a10a: f003 0302 and.w r3, r3, #2 - 800a10e: 2b00 cmp r3, #0 - 800a110: d001 beq.n 800a116 + 800a104: 78fb ldrb r3, [r7, #3] + 800a106: f003 0302 and.w r3, r3, #2 + 800a10a: 2b00 cmp r3, #0 + 800a10c: d001 beq.n 800a112 optflags = TF_SEG_OPTS_MSS; - 800a112: 2301 movs r3, #1 - 800a114: 77fb strb r3, [r7, #31] + 800a10e: 2301 movs r3, #1 + 800a110: 77fb strb r3, [r7, #31] /* Make sure the timestamp option is only included in data segments if we agreed about it with the remote host (and in active open SYN segments). */ optflags |= TF_SEG_OPTS_TS; } #endif /* LWIP_TCP_TIMESTAMPS */ optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - 800a116: 7ffb ldrb r3, [r7, #31] - 800a118: 009b lsls r3, r3, #2 - 800a11a: b2db uxtb r3, r3 - 800a11c: f003 0304 and.w r3, r3, #4 - 800a120: 75fb strb r3, [r7, #23] + 800a112: 7ffb ldrb r3, [r7, #31] + 800a114: 009b lsls r3, r3, #2 + 800a116: b2db uxtb r3, r3 + 800a118: f003 0304 and.w r3, r3, #4 + 800a11c: 75fb strb r3, [r7, #23] /* Allocate pbuf with room for TCP header + options */ if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) { - 800a122: 7dfb ldrb r3, [r7, #23] - 800a124: b29b uxth r3, r3 - 800a126: f44f 7220 mov.w r2, #640 ; 0x280 - 800a12a: 4619 mov r1, r3 - 800a12c: 2036 movs r0, #54 ; 0x36 - 800a12e: f7fb f951 bl 80053d4 - 800a132: 6138 str r0, [r7, #16] - 800a134: 693b ldr r3, [r7, #16] - 800a136: 2b00 cmp r3, #0 - 800a138: d109 bne.n 800a14e + 800a11e: 7dfb ldrb r3, [r7, #23] + 800a120: b29b uxth r3, r3 + 800a122: f44f 7220 mov.w r2, #640 ; 0x280 + 800a126: 4619 mov r1, r3 + 800a128: 2036 movs r0, #54 ; 0x36 + 800a12a: f7fb f951 bl 80053d0 + 800a12e: 6138 str r0, [r7, #16] + 800a130: 693b ldr r3, [r7, #16] + 800a132: 2b00 cmp r3, #0 + 800a134: d109 bne.n 800a14a tcp_set_flags(pcb, TF_NAGLEMEMERR); - 800a13a: 687b ldr r3, [r7, #4] - 800a13c: 8b5b ldrh r3, [r3, #26] - 800a13e: f043 0380 orr.w r3, r3, #128 ; 0x80 - 800a142: b29a uxth r2, r3 - 800a144: 687b ldr r3, [r7, #4] - 800a146: 835a strh r2, [r3, #26] + 800a136: 687b ldr r3, [r7, #4] + 800a138: 8b5b ldrh r3, [r3, #26] + 800a13a: f043 0380 orr.w r3, r3, #128 ; 0x80 + 800a13e: b29a uxth r2, r3 + 800a140: 687b ldr r3, [r7, #4] + 800a142: 835a strh r2, [r3, #26] TCP_STATS_INC(tcp.memerr); return ERR_MEM; - 800a148: f04f 33ff mov.w r3, #4294967295 - 800a14c: e095 b.n 800a27a + 800a144: f04f 33ff mov.w r3, #4294967295 + 800a148: e095 b.n 800a276 } LWIP_ASSERT("tcp_enqueue_flags: check that first pbuf can hold optlen", - 800a14e: 693b ldr r3, [r7, #16] - 800a150: 895a ldrh r2, [r3, #10] - 800a152: 7dfb ldrb r3, [r7, #23] - 800a154: b29b uxth r3, r3 - 800a156: 429a cmp r2, r3 - 800a158: d206 bcs.n 800a168 - 800a15a: 4b4a ldr r3, [pc, #296] ; (800a284 ) - 800a15c: f240 4239 movw r2, #1081 ; 0x439 - 800a160: 494c ldr r1, [pc, #304] ; (800a294 ) - 800a162: 484a ldr r0, [pc, #296] ; (800a28c ) - 800a164: f006 f936 bl 80103d4 + 800a14a: 693b ldr r3, [r7, #16] + 800a14c: 895a ldrh r2, [r3, #10] + 800a14e: 7dfb ldrb r3, [r7, #23] + 800a150: b29b uxth r3, r3 + 800a152: 429a cmp r2, r3 + 800a154: d206 bcs.n 800a164 + 800a156: 4b4a ldr r3, [pc, #296] ; (800a280 ) + 800a158: f240 4239 movw r2, #1081 ; 0x439 + 800a15c: 494c ldr r1, [pc, #304] ; (800a290 ) + 800a15e: 484a ldr r0, [pc, #296] ; (800a288 ) + 800a160: f006 f936 bl 80103d0 (p->len >= optlen)); /* Allocate memory for tcp_seg, and fill in fields. */ if ((seg = tcp_create_segment(pcb, p, flags, pcb->snd_lbb, optflags)) == NULL) { - 800a168: 687b ldr r3, [r7, #4] - 800a16a: 6dd9 ldr r1, [r3, #92] ; 0x5c - 800a16c: 78fa ldrb r2, [r7, #3] - 800a16e: 7ffb ldrb r3, [r7, #31] - 800a170: 9300 str r3, [sp, #0] - 800a172: 460b mov r3, r1 - 800a174: 6939 ldr r1, [r7, #16] - 800a176: 6878 ldr r0, [r7, #4] - 800a178: f7ff fd70 bl 8009c5c - 800a17c: 60f8 str r0, [r7, #12] - 800a17e: 68fb ldr r3, [r7, #12] - 800a180: 2b00 cmp r3, #0 - 800a182: d109 bne.n 800a198 + 800a164: 687b ldr r3, [r7, #4] + 800a166: 6dd9 ldr r1, [r3, #92] ; 0x5c + 800a168: 78fa ldrb r2, [r7, #3] + 800a16a: 7ffb ldrb r3, [r7, #31] + 800a16c: 9300 str r3, [sp, #0] + 800a16e: 460b mov r3, r1 + 800a170: 6939 ldr r1, [r7, #16] + 800a172: 6878 ldr r0, [r7, #4] + 800a174: f7ff fd70 bl 8009c58 + 800a178: 60f8 str r0, [r7, #12] + 800a17a: 68fb ldr r3, [r7, #12] + 800a17c: 2b00 cmp r3, #0 + 800a17e: d109 bne.n 800a194 tcp_set_flags(pcb, TF_NAGLEMEMERR); - 800a184: 687b ldr r3, [r7, #4] - 800a186: 8b5b ldrh r3, [r3, #26] - 800a188: f043 0380 orr.w r3, r3, #128 ; 0x80 - 800a18c: b29a uxth r2, r3 - 800a18e: 687b ldr r3, [r7, #4] - 800a190: 835a strh r2, [r3, #26] + 800a180: 687b ldr r3, [r7, #4] + 800a182: 8b5b ldrh r3, [r3, #26] + 800a184: f043 0380 orr.w r3, r3, #128 ; 0x80 + 800a188: b29a uxth r2, r3 + 800a18a: 687b ldr r3, [r7, #4] + 800a18c: 835a strh r2, [r3, #26] TCP_STATS_INC(tcp.memerr); return ERR_MEM; - 800a192: f04f 33ff mov.w r3, #4294967295 - 800a196: e070 b.n 800a27a + 800a18e: f04f 33ff mov.w r3, #4294967295 + 800a192: e070 b.n 800a276 } LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0); - 800a198: 68fb ldr r3, [r7, #12] - 800a19a: 68db ldr r3, [r3, #12] - 800a19c: f003 0303 and.w r3, r3, #3 - 800a1a0: 2b00 cmp r3, #0 - 800a1a2: d006 beq.n 800a1b2 - 800a1a4: 4b37 ldr r3, [pc, #220] ; (800a284 ) - 800a1a6: f240 4242 movw r2, #1090 ; 0x442 - 800a1aa: 493b ldr r1, [pc, #236] ; (800a298 ) - 800a1ac: 4837 ldr r0, [pc, #220] ; (800a28c ) - 800a1ae: f006 f911 bl 80103d4 + 800a194: 68fb ldr r3, [r7, #12] + 800a196: 68db ldr r3, [r3, #12] + 800a198: f003 0303 and.w r3, r3, #3 + 800a19c: 2b00 cmp r3, #0 + 800a19e: d006 beq.n 800a1ae + 800a1a0: 4b37 ldr r3, [pc, #220] ; (800a280 ) + 800a1a2: f240 4242 movw r2, #1090 ; 0x442 + 800a1a6: 493b ldr r1, [pc, #236] ; (800a294 ) + 800a1a8: 4837 ldr r0, [pc, #220] ; (800a288 ) + 800a1aa: f006 f911 bl 80103d0 LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0); - 800a1b2: 68fb ldr r3, [r7, #12] - 800a1b4: 891b ldrh r3, [r3, #8] - 800a1b6: 2b00 cmp r3, #0 - 800a1b8: d006 beq.n 800a1c8 - 800a1ba: 4b32 ldr r3, [pc, #200] ; (800a284 ) - 800a1bc: f240 4243 movw r2, #1091 ; 0x443 - 800a1c0: 4936 ldr r1, [pc, #216] ; (800a29c ) - 800a1c2: 4832 ldr r0, [pc, #200] ; (800a28c ) - 800a1c4: f006 f906 bl 80103d4 + 800a1ae: 68fb ldr r3, [r7, #12] + 800a1b0: 891b ldrh r3, [r3, #8] + 800a1b2: 2b00 cmp r3, #0 + 800a1b4: d006 beq.n 800a1c4 + 800a1b6: 4b32 ldr r3, [pc, #200] ; (800a280 ) + 800a1b8: f240 4243 movw r2, #1091 ; 0x443 + 800a1bc: 4936 ldr r1, [pc, #216] ; (800a298 ) + 800a1be: 4832 ldr r0, [pc, #200] ; (800a288 ) + 800a1c0: f006 f906 bl 80103d0 lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg), (u16_t)flags)); /* Now append seg to pcb->unsent queue */ if (pcb->unsent == NULL) { - 800a1c8: 687b ldr r3, [r7, #4] - 800a1ca: 6edb ldr r3, [r3, #108] ; 0x6c - 800a1cc: 2b00 cmp r3, #0 - 800a1ce: d103 bne.n 800a1d8 + 800a1c4: 687b ldr r3, [r7, #4] + 800a1c6: 6edb ldr r3, [r3, #108] ; 0x6c + 800a1c8: 2b00 cmp r3, #0 + 800a1ca: d103 bne.n 800a1d4 pcb->unsent = seg; - 800a1d0: 687b ldr r3, [r7, #4] - 800a1d2: 68fa ldr r2, [r7, #12] - 800a1d4: 66da str r2, [r3, #108] ; 0x6c - 800a1d6: e00d b.n 800a1f4 + 800a1cc: 687b ldr r3, [r7, #4] + 800a1ce: 68fa ldr r2, [r7, #12] + 800a1d0: 66da str r2, [r3, #108] ; 0x6c + 800a1d2: e00d b.n 800a1f0 } else { struct tcp_seg *useg; for (useg = pcb->unsent; useg->next != NULL; useg = useg->next); - 800a1d8: 687b ldr r3, [r7, #4] - 800a1da: 6edb ldr r3, [r3, #108] ; 0x6c - 800a1dc: 61bb str r3, [r7, #24] - 800a1de: e002 b.n 800a1e6 - 800a1e0: 69bb ldr r3, [r7, #24] - 800a1e2: 681b ldr r3, [r3, #0] - 800a1e4: 61bb str r3, [r7, #24] - 800a1e6: 69bb ldr r3, [r7, #24] - 800a1e8: 681b ldr r3, [r3, #0] - 800a1ea: 2b00 cmp r3, #0 - 800a1ec: d1f8 bne.n 800a1e0 + 800a1d4: 687b ldr r3, [r7, #4] + 800a1d6: 6edb ldr r3, [r3, #108] ; 0x6c + 800a1d8: 61bb str r3, [r7, #24] + 800a1da: e002 b.n 800a1e2 + 800a1dc: 69bb ldr r3, [r7, #24] + 800a1de: 681b ldr r3, [r3, #0] + 800a1e0: 61bb str r3, [r7, #24] + 800a1e2: 69bb ldr r3, [r7, #24] + 800a1e4: 681b ldr r3, [r3, #0] + 800a1e6: 2b00 cmp r3, #0 + 800a1e8: d1f8 bne.n 800a1dc useg->next = seg; - 800a1ee: 69bb ldr r3, [r7, #24] - 800a1f0: 68fa ldr r2, [r7, #12] - 800a1f2: 601a str r2, [r3, #0] + 800a1ea: 69bb ldr r3, [r7, #24] + 800a1ec: 68fa ldr r2, [r7, #12] + 800a1ee: 601a str r2, [r3, #0] } #if TCP_OVERSIZE /* The new unsent tail has no space */ pcb->unsent_oversize = 0; - 800a1f4: 687b ldr r3, [r7, #4] - 800a1f6: 2200 movs r2, #0 - 800a1f8: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 800a1f0: 687b ldr r3, [r7, #4] + 800a1f2: 2200 movs r2, #0 + 800a1f4: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 #endif /* TCP_OVERSIZE */ /* SYN and FIN bump the sequence number */ if ((flags & TCP_SYN) || (flags & TCP_FIN)) { - 800a1fc: 78fb ldrb r3, [r7, #3] - 800a1fe: f003 0302 and.w r3, r3, #2 - 800a202: 2b00 cmp r3, #0 - 800a204: d104 bne.n 800a210 - 800a206: 78fb ldrb r3, [r7, #3] - 800a208: f003 0301 and.w r3, r3, #1 - 800a20c: 2b00 cmp r3, #0 - 800a20e: d004 beq.n 800a21a + 800a1f8: 78fb ldrb r3, [r7, #3] + 800a1fa: f003 0302 and.w r3, r3, #2 + 800a1fe: 2b00 cmp r3, #0 + 800a200: d104 bne.n 800a20c + 800a202: 78fb ldrb r3, [r7, #3] + 800a204: f003 0301 and.w r3, r3, #1 + 800a208: 2b00 cmp r3, #0 + 800a20a: d004 beq.n 800a216 pcb->snd_lbb++; - 800a210: 687b ldr r3, [r7, #4] - 800a212: 6ddb ldr r3, [r3, #92] ; 0x5c - 800a214: 1c5a adds r2, r3, #1 - 800a216: 687b ldr r3, [r7, #4] - 800a218: 65da str r2, [r3, #92] ; 0x5c + 800a20c: 687b ldr r3, [r7, #4] + 800a20e: 6ddb ldr r3, [r3, #92] ; 0x5c + 800a210: 1c5a adds r2, r3, #1 + 800a212: 687b ldr r3, [r7, #4] + 800a214: 65da str r2, [r3, #92] ; 0x5c /* optlen does not influence snd_buf */ } if (flags & TCP_FIN) { - 800a21a: 78fb ldrb r3, [r7, #3] - 800a21c: f003 0301 and.w r3, r3, #1 - 800a220: 2b00 cmp r3, #0 - 800a222: d006 beq.n 800a232 + 800a216: 78fb ldrb r3, [r7, #3] + 800a218: f003 0301 and.w r3, r3, #1 + 800a21c: 2b00 cmp r3, #0 + 800a21e: d006 beq.n 800a22e tcp_set_flags(pcb, TF_FIN); - 800a224: 687b ldr r3, [r7, #4] - 800a226: 8b5b ldrh r3, [r3, #26] - 800a228: f043 0320 orr.w r3, r3, #32 - 800a22c: b29a uxth r2, r3 - 800a22e: 687b ldr r3, [r7, #4] - 800a230: 835a strh r2, [r3, #26] + 800a220: 687b ldr r3, [r7, #4] + 800a222: 8b5b ldrh r3, [r3, #26] + 800a224: f043 0320 orr.w r3, r3, #32 + 800a228: b29a uxth r2, r3 + 800a22a: 687b ldr r3, [r7, #4] + 800a22c: 835a strh r2, [r3, #26] } /* update number of segments on the queues */ pcb->snd_queuelen += pbuf_clen(seg->p); - 800a232: 68fb ldr r3, [r7, #12] - 800a234: 685b ldr r3, [r3, #4] - 800a236: 4618 mov r0, r3 - 800a238: f7fb fc38 bl 8005aac - 800a23c: 4603 mov r3, r0 - 800a23e: 461a mov r2, r3 - 800a240: 687b ldr r3, [r7, #4] - 800a242: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 800a246: 4413 add r3, r2 - 800a248: b29a uxth r2, r3 - 800a24a: 687b ldr r3, [r7, #4] - 800a24c: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 800a22e: 68fb ldr r3, [r7, #12] + 800a230: 685b ldr r3, [r3, #4] + 800a232: 4618 mov r0, r3 + 800a234: f7fb fc38 bl 8005aa8 + 800a238: 4603 mov r3, r0 + 800a23a: 461a mov r2, r3 + 800a23c: 687b ldr r3, [r7, #4] + 800a23e: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 800a242: 4413 add r3, r2 + 800a244: b29a uxth r2, r3 + 800a246: 687b ldr r3, [r7, #4] + 800a248: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: %"S16_F" (after enqueued)\n", pcb->snd_queuelen)); if (pcb->snd_queuelen != 0) { - 800a250: 687b ldr r3, [r7, #4] - 800a252: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 800a256: 2b00 cmp r3, #0 - 800a258: d00e beq.n 800a278 + 800a24c: 687b ldr r3, [r7, #4] + 800a24e: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 800a252: 2b00 cmp r3, #0 + 800a254: d00e beq.n 800a274 LWIP_ASSERT("tcp_enqueue_flags: invalid queue length", - 800a25a: 687b ldr r3, [r7, #4] - 800a25c: 6f1b ldr r3, [r3, #112] ; 0x70 - 800a25e: 2b00 cmp r3, #0 - 800a260: d10a bne.n 800a278 - 800a262: 687b ldr r3, [r7, #4] - 800a264: 6edb ldr r3, [r3, #108] ; 0x6c - 800a266: 2b00 cmp r3, #0 - 800a268: d106 bne.n 800a278 - 800a26a: 4b06 ldr r3, [pc, #24] ; (800a284 ) - 800a26c: f240 4265 movw r2, #1125 ; 0x465 - 800a270: 490b ldr r1, [pc, #44] ; (800a2a0 ) - 800a272: 4806 ldr r0, [pc, #24] ; (800a28c ) - 800a274: f006 f8ae bl 80103d4 + 800a256: 687b ldr r3, [r7, #4] + 800a258: 6f1b ldr r3, [r3, #112] ; 0x70 + 800a25a: 2b00 cmp r3, #0 + 800a25c: d10a bne.n 800a274 + 800a25e: 687b ldr r3, [r7, #4] + 800a260: 6edb ldr r3, [r3, #108] ; 0x6c + 800a262: 2b00 cmp r3, #0 + 800a264: d106 bne.n 800a274 + 800a266: 4b06 ldr r3, [pc, #24] ; (800a280 ) + 800a268: f240 4265 movw r2, #1125 ; 0x465 + 800a26c: 490b ldr r1, [pc, #44] ; (800a29c ) + 800a26e: 4806 ldr r0, [pc, #24] ; (800a288 ) + 800a270: f006 f8ae bl 80103d0 pcb->unacked != NULL || pcb->unsent != NULL); } return ERR_OK; - 800a278: 2300 movs r3, #0 + 800a274: 2300 movs r3, #0 } - 800a27a: 4618 mov r0, r3 - 800a27c: 3720 adds r7, #32 - 800a27e: 46bd mov sp, r7 - 800a280: bd80 pop {r7, pc} - 800a282: bf00 nop - 800a284: 080165a4 .word 0x080165a4 - 800a288: 080169c8 .word 0x080169c8 - 800a28c: 080165f8 .word 0x080165f8 - 800a290: 08016a20 .word 0x08016a20 - 800a294: 08016a40 .word 0x08016a40 - 800a298: 08016a7c .word 0x08016a7c - 800a29c: 08016a94 .word 0x08016a94 - 800a2a0: 08016ac0 .word 0x08016ac0 + 800a276: 4618 mov r0, r3 + 800a278: 3720 adds r7, #32 + 800a27a: 46bd mov sp, r7 + 800a27c: bd80 pop {r7, pc} + 800a27e: bf00 nop + 800a280: 080165a4 .word 0x080165a4 + 800a284: 080169c8 .word 0x080169c8 + 800a288: 080165f8 .word 0x080165f8 + 800a28c: 08016a20 .word 0x08016a20 + 800a290: 08016a40 .word 0x08016a40 + 800a294: 08016a7c .word 0x08016a7c + 800a298: 08016a94 .word 0x08016a94 + 800a29c: 08016ac0 .word 0x08016ac0 -0800a2a4 : +0800a2a0 : * @return ERR_OK if data has been sent or nothing to send * another err_t on error */ err_t tcp_output(struct tcp_pcb *pcb) { - 800a2a4: b5b0 push {r4, r5, r7, lr} - 800a2a6: b08a sub sp, #40 ; 0x28 - 800a2a8: af00 add r7, sp, #0 - 800a2aa: 6078 str r0, [r7, #4] + 800a2a0: b5b0 push {r4, r5, r7, lr} + 800a2a2: b08a sub sp, #40 ; 0x28 + 800a2a4: af00 add r7, sp, #0 + 800a2a6: 6078 str r0, [r7, #4] s16_t i = 0; #endif /* TCP_CWND_DEBUG */ LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("tcp_output: invalid pcb", pcb != NULL); - 800a2ac: 687b ldr r3, [r7, #4] - 800a2ae: 2b00 cmp r3, #0 - 800a2b0: d106 bne.n 800a2c0 - 800a2b2: 4b8a ldr r3, [pc, #552] ; (800a4dc ) - 800a2b4: f240 42e1 movw r2, #1249 ; 0x4e1 - 800a2b8: 4989 ldr r1, [pc, #548] ; (800a4e0 ) - 800a2ba: 488a ldr r0, [pc, #552] ; (800a4e4 ) - 800a2bc: f006 f88a bl 80103d4 + 800a2a8: 687b ldr r3, [r7, #4] + 800a2aa: 2b00 cmp r3, #0 + 800a2ac: d106 bne.n 800a2bc + 800a2ae: 4b8a ldr r3, [pc, #552] ; (800a4d8 ) + 800a2b0: f240 42e1 movw r2, #1249 ; 0x4e1 + 800a2b4: 4989 ldr r1, [pc, #548] ; (800a4dc ) + 800a2b6: 488a ldr r0, [pc, #552] ; (800a4e0 ) + 800a2b8: f006 f88a bl 80103d0 /* pcb->state LISTEN not allowed here */ LWIP_ASSERT("don't call tcp_output for listen-pcbs", - 800a2c0: 687b ldr r3, [r7, #4] - 800a2c2: 7d1b ldrb r3, [r3, #20] - 800a2c4: 2b01 cmp r3, #1 - 800a2c6: d106 bne.n 800a2d6 - 800a2c8: 4b84 ldr r3, [pc, #528] ; (800a4dc ) - 800a2ca: f240 42e3 movw r2, #1251 ; 0x4e3 - 800a2ce: 4986 ldr r1, [pc, #536] ; (800a4e8 ) - 800a2d0: 4884 ldr r0, [pc, #528] ; (800a4e4 ) - 800a2d2: f006 f87f bl 80103d4 + 800a2bc: 687b ldr r3, [r7, #4] + 800a2be: 7d1b ldrb r3, [r3, #20] + 800a2c0: 2b01 cmp r3, #1 + 800a2c2: d106 bne.n 800a2d2 + 800a2c4: 4b84 ldr r3, [pc, #528] ; (800a4d8 ) + 800a2c6: f240 42e3 movw r2, #1251 ; 0x4e3 + 800a2ca: 4986 ldr r1, [pc, #536] ; (800a4e4 ) + 800a2cc: 4884 ldr r0, [pc, #528] ; (800a4e0 ) + 800a2ce: f006 f87f bl 80103d0 /* First, check if we are invoked by the TCP input processing code. If so, we do not output anything. Instead, we rely on the input processing code to call us when input processing is done with. */ if (tcp_input_pcb == pcb) { - 800a2d6: 4b85 ldr r3, [pc, #532] ; (800a4ec ) - 800a2d8: 681b ldr r3, [r3, #0] - 800a2da: 687a ldr r2, [r7, #4] - 800a2dc: 429a cmp r2, r3 - 800a2de: d101 bne.n 800a2e4 + 800a2d2: 4b85 ldr r3, [pc, #532] ; (800a4e8 ) + 800a2d4: 681b ldr r3, [r3, #0] + 800a2d6: 687a ldr r2, [r7, #4] + 800a2d8: 429a cmp r2, r3 + 800a2da: d101 bne.n 800a2e0 return ERR_OK; - 800a2e0: 2300 movs r3, #0 - 800a2e2: e1ce b.n 800a682 + 800a2dc: 2300 movs r3, #0 + 800a2de: e1ce b.n 800a67e } wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd); - 800a2e4: 687b ldr r3, [r7, #4] - 800a2e6: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 800a2ea: 687b ldr r3, [r7, #4] - 800a2ec: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 800a2f0: 4293 cmp r3, r2 - 800a2f2: bf28 it cs - 800a2f4: 4613 movcs r3, r2 - 800a2f6: b29b uxth r3, r3 - 800a2f8: 61bb str r3, [r7, #24] + 800a2e0: 687b ldr r3, [r7, #4] + 800a2e2: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 800a2e6: 687b ldr r3, [r7, #4] + 800a2e8: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 800a2ec: 4293 cmp r3, r2 + 800a2ee: bf28 it cs + 800a2f0: 4613 movcs r3, r2 + 800a2f2: b29b uxth r3, r3 + 800a2f4: 61bb str r3, [r7, #24] seg = pcb->unsent; - 800a2fa: 687b ldr r3, [r7, #4] - 800a2fc: 6edb ldr r3, [r3, #108] ; 0x6c - 800a2fe: 627b str r3, [r7, #36] ; 0x24 + 800a2f6: 687b ldr r3, [r7, #4] + 800a2f8: 6edb ldr r3, [r3, #108] ; 0x6c + 800a2fa: 627b str r3, [r7, #36] ; 0x24 if (seg == NULL) { - 800a300: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a302: 2b00 cmp r3, #0 - 800a304: d10b bne.n 800a31e + 800a2fc: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a2fe: 2b00 cmp r3, #0 + 800a300: d10b bne.n 800a31a ", seg == NULL, ack %"U32_F"\n", pcb->snd_wnd, pcb->cwnd, wnd, pcb->lastack)); /* If the TF_ACK_NOW flag is set and the ->unsent queue is empty, construct * an empty ACK segment and send it. */ if (pcb->flags & TF_ACK_NOW) { - 800a306: 687b ldr r3, [r7, #4] - 800a308: 8b5b ldrh r3, [r3, #26] - 800a30a: f003 0302 and.w r3, r3, #2 - 800a30e: 2b00 cmp r3, #0 - 800a310: f000 81aa beq.w 800a668 + 800a302: 687b ldr r3, [r7, #4] + 800a304: 8b5b ldrh r3, [r3, #26] + 800a306: f003 0302 and.w r3, r3, #2 + 800a30a: 2b00 cmp r3, #0 + 800a30c: f000 81aa beq.w 800a664 return tcp_send_empty_ack(pcb); - 800a314: 6878 ldr r0, [r7, #4] - 800a316: f000 fdcb bl 800aeb0 - 800a31a: 4603 mov r3, r0 - 800a31c: e1b1 b.n 800a682 + 800a310: 6878 ldr r0, [r7, #4] + 800a312: f000 fdcb bl 800aeac + 800a316: 4603 mov r3, r0 + 800a318: e1b1 b.n 800a67e pcb->snd_wnd, pcb->cwnd, wnd, lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len, lwip_ntohl(seg->tcphdr->seqno), pcb->lastack)); } netif = tcp_route(pcb, &pcb->local_ip, &pcb->remote_ip); - 800a31e: 6879 ldr r1, [r7, #4] - 800a320: 687b ldr r3, [r7, #4] - 800a322: 3304 adds r3, #4 - 800a324: 461a mov r2, r3 - 800a326: 6878 ldr r0, [r7, #4] - 800a328: f7ff fc7c bl 8009c24 - 800a32c: 6178 str r0, [r7, #20] + 800a31a: 6879 ldr r1, [r7, #4] + 800a31c: 687b ldr r3, [r7, #4] + 800a31e: 3304 adds r3, #4 + 800a320: 461a mov r2, r3 + 800a322: 6878 ldr r0, [r7, #4] + 800a324: f7ff fc7c bl 8009c20 + 800a328: 6178 str r0, [r7, #20] if (netif == NULL) { - 800a32e: 697b ldr r3, [r7, #20] - 800a330: 2b00 cmp r3, #0 - 800a332: d102 bne.n 800a33a + 800a32a: 697b ldr r3, [r7, #20] + 800a32c: 2b00 cmp r3, #0 + 800a32e: d102 bne.n 800a336 return ERR_RTE; - 800a334: f06f 0303 mvn.w r3, #3 - 800a338: e1a3 b.n 800a682 + 800a330: f06f 0303 mvn.w r3, #3 + 800a334: e1a3 b.n 800a67e } /* If we don't have a local IP address, we get one from netif */ if (ip_addr_isany(&pcb->local_ip)) { - 800a33a: 687b ldr r3, [r7, #4] - 800a33c: 2b00 cmp r3, #0 - 800a33e: d003 beq.n 800a348 - 800a340: 687b ldr r3, [r7, #4] - 800a342: 681b ldr r3, [r3, #0] - 800a344: 2b00 cmp r3, #0 - 800a346: d111 bne.n 800a36c + 800a336: 687b ldr r3, [r7, #4] + 800a338: 2b00 cmp r3, #0 + 800a33a: d003 beq.n 800a344 + 800a33c: 687b ldr r3, [r7, #4] + 800a33e: 681b ldr r3, [r3, #0] + 800a340: 2b00 cmp r3, #0 + 800a342: d111 bne.n 800a368 const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip); - 800a348: 697b ldr r3, [r7, #20] - 800a34a: 2b00 cmp r3, #0 - 800a34c: d002 beq.n 800a354 - 800a34e: 697b ldr r3, [r7, #20] - 800a350: 3304 adds r3, #4 - 800a352: e000 b.n 800a356 - 800a354: 2300 movs r3, #0 - 800a356: 613b str r3, [r7, #16] + 800a344: 697b ldr r3, [r7, #20] + 800a346: 2b00 cmp r3, #0 + 800a348: d002 beq.n 800a350 + 800a34a: 697b ldr r3, [r7, #20] + 800a34c: 3304 adds r3, #4 + 800a34e: e000 b.n 800a352 + 800a350: 2300 movs r3, #0 + 800a352: 613b str r3, [r7, #16] if (local_ip == NULL) { - 800a358: 693b ldr r3, [r7, #16] - 800a35a: 2b00 cmp r3, #0 - 800a35c: d102 bne.n 800a364 + 800a354: 693b ldr r3, [r7, #16] + 800a356: 2b00 cmp r3, #0 + 800a358: d102 bne.n 800a360 return ERR_RTE; - 800a35e: f06f 0303 mvn.w r3, #3 - 800a362: e18e b.n 800a682 + 800a35a: f06f 0303 mvn.w r3, #3 + 800a35e: e18e b.n 800a67e } ip_addr_copy(pcb->local_ip, *local_ip); - 800a364: 693b ldr r3, [r7, #16] - 800a366: 681a ldr r2, [r3, #0] - 800a368: 687b ldr r3, [r7, #4] - 800a36a: 601a str r2, [r3, #0] + 800a360: 693b ldr r3, [r7, #16] + 800a362: 681a ldr r2, [r3, #0] + 800a364: 687b ldr r3, [r7, #4] + 800a366: 601a str r2, [r3, #0] } /* Handle the current segment not fitting within the window */ if (lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len > wnd) { - 800a36c: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a36e: 68db ldr r3, [r3, #12] - 800a370: 685b ldr r3, [r3, #4] - 800a372: 4618 mov r0, r3 - 800a374: f7f9 ffbd bl 80042f2 - 800a378: 4602 mov r2, r0 - 800a37a: 687b ldr r3, [r7, #4] - 800a37c: 6c5b ldr r3, [r3, #68] ; 0x44 - 800a37e: 1ad3 subs r3, r2, r3 - 800a380: 6a7a ldr r2, [r7, #36] ; 0x24 - 800a382: 8912 ldrh r2, [r2, #8] - 800a384: 4413 add r3, r2 - 800a386: 69ba ldr r2, [r7, #24] - 800a388: 429a cmp r2, r3 - 800a38a: d227 bcs.n 800a3dc + 800a368: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a36a: 68db ldr r3, [r3, #12] + 800a36c: 685b ldr r3, [r3, #4] + 800a36e: 4618 mov r0, r3 + 800a370: f7f9 ffbd bl 80042ee + 800a374: 4602 mov r2, r0 + 800a376: 687b ldr r3, [r7, #4] + 800a378: 6c5b ldr r3, [r3, #68] ; 0x44 + 800a37a: 1ad3 subs r3, r2, r3 + 800a37c: 6a7a ldr r2, [r7, #36] ; 0x24 + 800a37e: 8912 ldrh r2, [r2, #8] + 800a380: 4413 add r3, r2 + 800a382: 69ba ldr r2, [r7, #24] + 800a384: 429a cmp r2, r3 + 800a386: d227 bcs.n 800a3d8 * within the remaining (could be 0) send window and RTO timer is not running (we * have no in-flight data). If window is still too small after persist timer fires, * then we split the segment. We don't consider the congestion window since a cwnd * smaller than 1 SMSS implies in-flight data */ if (wnd == pcb->snd_wnd && pcb->unacked == NULL && pcb->persist_backoff == 0) { - 800a38c: 687b ldr r3, [r7, #4] - 800a38e: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 800a392: 461a mov r2, r3 - 800a394: 69bb ldr r3, [r7, #24] - 800a396: 4293 cmp r3, r2 - 800a398: d114 bne.n 800a3c4 - 800a39a: 687b ldr r3, [r7, #4] - 800a39c: 6f1b ldr r3, [r3, #112] ; 0x70 - 800a39e: 2b00 cmp r3, #0 - 800a3a0: d110 bne.n 800a3c4 - 800a3a2: 687b ldr r3, [r7, #4] - 800a3a4: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 800a3a8: 2b00 cmp r3, #0 - 800a3aa: d10b bne.n 800a3c4 + 800a388: 687b ldr r3, [r7, #4] + 800a38a: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 800a38e: 461a mov r2, r3 + 800a390: 69bb ldr r3, [r7, #24] + 800a392: 4293 cmp r3, r2 + 800a394: d114 bne.n 800a3c0 + 800a396: 687b ldr r3, [r7, #4] + 800a398: 6f1b ldr r3, [r3, #112] ; 0x70 + 800a39a: 2b00 cmp r3, #0 + 800a39c: d110 bne.n 800a3c0 + 800a39e: 687b ldr r3, [r7, #4] + 800a3a0: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 800a3a4: 2b00 cmp r3, #0 + 800a3a6: d10b bne.n 800a3c0 pcb->persist_cnt = 0; - 800a3ac: 687b ldr r3, [r7, #4] - 800a3ae: 2200 movs r2, #0 - 800a3b0: f883 2098 strb.w r2, [r3, #152] ; 0x98 + 800a3a8: 687b ldr r3, [r7, #4] + 800a3aa: 2200 movs r2, #0 + 800a3ac: f883 2098 strb.w r2, [r3, #152] ; 0x98 pcb->persist_backoff = 1; - 800a3b4: 687b ldr r3, [r7, #4] - 800a3b6: 2201 movs r2, #1 - 800a3b8: f883 2099 strb.w r2, [r3, #153] ; 0x99 + 800a3b0: 687b ldr r3, [r7, #4] + 800a3b2: 2201 movs r2, #1 + 800a3b4: f883 2099 strb.w r2, [r3, #153] ; 0x99 pcb->persist_probe = 0; - 800a3bc: 687b ldr r3, [r7, #4] - 800a3be: 2200 movs r2, #0 - 800a3c0: f883 209a strb.w r2, [r3, #154] ; 0x9a + 800a3b8: 687b ldr r3, [r7, #4] + 800a3ba: 2200 movs r2, #0 + 800a3bc: f883 209a strb.w r2, [r3, #154] ; 0x9a } /* We need an ACK, but can't send data now, so send an empty ACK */ if (pcb->flags & TF_ACK_NOW) { - 800a3c4: 687b ldr r3, [r7, #4] - 800a3c6: 8b5b ldrh r3, [r3, #26] - 800a3c8: f003 0302 and.w r3, r3, #2 - 800a3cc: 2b00 cmp r3, #0 - 800a3ce: f000 814d beq.w 800a66c + 800a3c0: 687b ldr r3, [r7, #4] + 800a3c2: 8b5b ldrh r3, [r3, #26] + 800a3c4: f003 0302 and.w r3, r3, #2 + 800a3c8: 2b00 cmp r3, #0 + 800a3ca: f000 814d beq.w 800a668 return tcp_send_empty_ack(pcb); - 800a3d2: 6878 ldr r0, [r7, #4] - 800a3d4: f000 fd6c bl 800aeb0 - 800a3d8: 4603 mov r3, r0 - 800a3da: e152 b.n 800a682 + 800a3ce: 6878 ldr r0, [r7, #4] + 800a3d0: f000 fd6c bl 800aeac + 800a3d4: 4603 mov r3, r0 + 800a3d6: e152 b.n 800a67e } goto output_done; } /* Stop persist timer, above conditions are not active */ pcb->persist_backoff = 0; - 800a3dc: 687b ldr r3, [r7, #4] - 800a3de: 2200 movs r2, #0 - 800a3e0: f883 2099 strb.w r2, [r3, #153] ; 0x99 + 800a3d8: 687b ldr r3, [r7, #4] + 800a3da: 2200 movs r2, #0 + 800a3dc: f883 2099 strb.w r2, [r3, #153] ; 0x99 /* useg should point to last segment on unacked queue */ useg = pcb->unacked; - 800a3e4: 687b ldr r3, [r7, #4] - 800a3e6: 6f1b ldr r3, [r3, #112] ; 0x70 - 800a3e8: 623b str r3, [r7, #32] + 800a3e0: 687b ldr r3, [r7, #4] + 800a3e2: 6f1b ldr r3, [r3, #112] ; 0x70 + 800a3e4: 623b str r3, [r7, #32] if (useg != NULL) { - 800a3ea: 6a3b ldr r3, [r7, #32] - 800a3ec: 2b00 cmp r3, #0 - 800a3ee: f000 811c beq.w 800a62a + 800a3e6: 6a3b ldr r3, [r7, #32] + 800a3e8: 2b00 cmp r3, #0 + 800a3ea: f000 811c beq.w 800a626 for (; useg->next != NULL; useg = useg->next); - 800a3f2: e002 b.n 800a3fa - 800a3f4: 6a3b ldr r3, [r7, #32] - 800a3f6: 681b ldr r3, [r3, #0] - 800a3f8: 623b str r3, [r7, #32] - 800a3fa: 6a3b ldr r3, [r7, #32] - 800a3fc: 681b ldr r3, [r3, #0] - 800a3fe: 2b00 cmp r3, #0 - 800a400: d1f8 bne.n 800a3f4 + 800a3ee: e002 b.n 800a3f6 + 800a3f0: 6a3b ldr r3, [r7, #32] + 800a3f2: 681b ldr r3, [r3, #0] + 800a3f4: 623b str r3, [r7, #32] + 800a3f6: 6a3b ldr r3, [r7, #32] + 800a3f8: 681b ldr r3, [r3, #0] + 800a3fa: 2b00 cmp r3, #0 + 800a3fc: d1f8 bne.n 800a3f0 } /* data available and window allows it to be sent? */ while (seg != NULL && - 800a402: e112 b.n 800a62a + 800a3fe: e112 b.n 800a626 lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) { LWIP_ASSERT("RST not expected here!", - 800a404: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a406: 68db ldr r3, [r3, #12] - 800a408: 899b ldrh r3, [r3, #12] - 800a40a: b29b uxth r3, r3 - 800a40c: 4618 mov r0, r3 - 800a40e: f7f9 ff5b bl 80042c8 - 800a412: 4603 mov r3, r0 - 800a414: b2db uxtb r3, r3 - 800a416: f003 0304 and.w r3, r3, #4 - 800a41a: 2b00 cmp r3, #0 - 800a41c: d006 beq.n 800a42c - 800a41e: 4b2f ldr r3, [pc, #188] ; (800a4dc ) - 800a420: f240 5236 movw r2, #1334 ; 0x536 - 800a424: 4932 ldr r1, [pc, #200] ; (800a4f0 ) - 800a426: 482f ldr r0, [pc, #188] ; (800a4e4 ) - 800a428: f005 ffd4 bl 80103d4 + 800a400: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a402: 68db ldr r3, [r3, #12] + 800a404: 899b ldrh r3, [r3, #12] + 800a406: b29b uxth r3, r3 + 800a408: 4618 mov r0, r3 + 800a40a: f7f9 ff5b bl 80042c4 + 800a40e: 4603 mov r3, r0 + 800a410: b2db uxtb r3, r3 + 800a412: f003 0304 and.w r3, r3, #4 + 800a416: 2b00 cmp r3, #0 + 800a418: d006 beq.n 800a428 + 800a41a: 4b2f ldr r3, [pc, #188] ; (800a4d8 ) + 800a41c: f240 5236 movw r2, #1334 ; 0x536 + 800a420: 4932 ldr r1, [pc, #200] ; (800a4ec ) + 800a422: 482f ldr r0, [pc, #188] ; (800a4e0 ) + 800a424: f005 ffd4 bl 80103d0 * - if tcp_write had a memory error before (prevent delayed ACK timeout) or * - if FIN was already enqueued for this PCB (SYN is always alone in a segment - * either seg->next != NULL or pcb->unacked == NULL; * RST is no sent using tcp_write/tcp_output. */ if ((tcp_do_output_nagle(pcb) == 0) && - 800a42c: 687b ldr r3, [r7, #4] - 800a42e: 6f1b ldr r3, [r3, #112] ; 0x70 - 800a430: 2b00 cmp r3, #0 - 800a432: d01f beq.n 800a474 - 800a434: 687b ldr r3, [r7, #4] - 800a436: 8b5b ldrh r3, [r3, #26] - 800a438: f003 0344 and.w r3, r3, #68 ; 0x44 - 800a43c: 2b00 cmp r3, #0 - 800a43e: d119 bne.n 800a474 - 800a440: 687b ldr r3, [r7, #4] - 800a442: 6edb ldr r3, [r3, #108] ; 0x6c - 800a444: 2b00 cmp r3, #0 - 800a446: d00b beq.n 800a460 - 800a448: 687b ldr r3, [r7, #4] - 800a44a: 6edb ldr r3, [r3, #108] ; 0x6c - 800a44c: 681b ldr r3, [r3, #0] - 800a44e: 2b00 cmp r3, #0 - 800a450: d110 bne.n 800a474 - 800a452: 687b ldr r3, [r7, #4] - 800a454: 6edb ldr r3, [r3, #108] ; 0x6c - 800a456: 891a ldrh r2, [r3, #8] - 800a458: 687b ldr r3, [r7, #4] - 800a45a: 8e5b ldrh r3, [r3, #50] ; 0x32 - 800a45c: 429a cmp r2, r3 - 800a45e: d209 bcs.n 800a474 - 800a460: 687b ldr r3, [r7, #4] - 800a462: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 - 800a466: 2b00 cmp r3, #0 - 800a468: d004 beq.n 800a474 - 800a46a: 687b ldr r3, [r7, #4] - 800a46c: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 800a470: 2b08 cmp r3, #8 - 800a472: d901 bls.n 800a478 - 800a474: 2301 movs r3, #1 - 800a476: e000 b.n 800a47a - 800a478: 2300 movs r3, #0 - 800a47a: 2b00 cmp r3, #0 - 800a47c: d106 bne.n 800a48c + 800a428: 687b ldr r3, [r7, #4] + 800a42a: 6f1b ldr r3, [r3, #112] ; 0x70 + 800a42c: 2b00 cmp r3, #0 + 800a42e: d01f beq.n 800a470 + 800a430: 687b ldr r3, [r7, #4] + 800a432: 8b5b ldrh r3, [r3, #26] + 800a434: f003 0344 and.w r3, r3, #68 ; 0x44 + 800a438: 2b00 cmp r3, #0 + 800a43a: d119 bne.n 800a470 + 800a43c: 687b ldr r3, [r7, #4] + 800a43e: 6edb ldr r3, [r3, #108] ; 0x6c + 800a440: 2b00 cmp r3, #0 + 800a442: d00b beq.n 800a45c + 800a444: 687b ldr r3, [r7, #4] + 800a446: 6edb ldr r3, [r3, #108] ; 0x6c + 800a448: 681b ldr r3, [r3, #0] + 800a44a: 2b00 cmp r3, #0 + 800a44c: d110 bne.n 800a470 + 800a44e: 687b ldr r3, [r7, #4] + 800a450: 6edb ldr r3, [r3, #108] ; 0x6c + 800a452: 891a ldrh r2, [r3, #8] + 800a454: 687b ldr r3, [r7, #4] + 800a456: 8e5b ldrh r3, [r3, #50] ; 0x32 + 800a458: 429a cmp r2, r3 + 800a45a: d209 bcs.n 800a470 + 800a45c: 687b ldr r3, [r7, #4] + 800a45e: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 + 800a462: 2b00 cmp r3, #0 + 800a464: d004 beq.n 800a470 + 800a466: 687b ldr r3, [r7, #4] + 800a468: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 800a46c: 2b08 cmp r3, #8 + 800a46e: d901 bls.n 800a474 + 800a470: 2301 movs r3, #1 + 800a472: e000 b.n 800a476 + 800a474: 2300 movs r3, #0 + 800a476: 2b00 cmp r3, #0 + 800a478: d106 bne.n 800a488 ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)) { - 800a47e: 687b ldr r3, [r7, #4] - 800a480: 8b5b ldrh r3, [r3, #26] - 800a482: f003 03a0 and.w r3, r3, #160 ; 0xa0 + 800a47a: 687b ldr r3, [r7, #4] + 800a47c: 8b5b ldrh r3, [r3, #26] + 800a47e: f003 03a0 and.w r3, r3, #160 ; 0xa0 if ((tcp_do_output_nagle(pcb) == 0) && - 800a486: 2b00 cmp r3, #0 - 800a488: f000 80e4 beq.w 800a654 + 800a482: 2b00 cmp r3, #0 + 800a484: f000 80e4 beq.w 800a650 pcb->lastack, lwip_ntohl(seg->tcphdr->seqno), pcb->lastack, i)); ++i; #endif /* TCP_CWND_DEBUG */ if (pcb->state != SYN_SENT) { - 800a48c: 687b ldr r3, [r7, #4] - 800a48e: 7d1b ldrb r3, [r3, #20] - 800a490: 2b02 cmp r3, #2 - 800a492: d00d beq.n 800a4b0 + 800a488: 687b ldr r3, [r7, #4] + 800a48a: 7d1b ldrb r3, [r3, #20] + 800a48c: 2b02 cmp r3, #2 + 800a48e: d00d beq.n 800a4ac TCPH_SET_FLAG(seg->tcphdr, TCP_ACK); - 800a494: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a496: 68db ldr r3, [r3, #12] - 800a498: 899b ldrh r3, [r3, #12] - 800a49a: b29c uxth r4, r3 - 800a49c: 2010 movs r0, #16 - 800a49e: f7f9 ff13 bl 80042c8 - 800a4a2: 4603 mov r3, r0 - 800a4a4: 461a mov r2, r3 - 800a4a6: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a4a8: 68db ldr r3, [r3, #12] - 800a4aa: 4322 orrs r2, r4 - 800a4ac: b292 uxth r2, r2 - 800a4ae: 819a strh r2, [r3, #12] + 800a490: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a492: 68db ldr r3, [r3, #12] + 800a494: 899b ldrh r3, [r3, #12] + 800a496: b29c uxth r4, r3 + 800a498: 2010 movs r0, #16 + 800a49a: f7f9 ff13 bl 80042c4 + 800a49e: 4603 mov r3, r0 + 800a4a0: 461a mov r2, r3 + 800a4a2: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a4a4: 68db ldr r3, [r3, #12] + 800a4a6: 4322 orrs r2, r4 + 800a4a8: b292 uxth r2, r2 + 800a4aa: 819a strh r2, [r3, #12] } err = tcp_output_segment(seg, pcb, netif); - 800a4b0: 697a ldr r2, [r7, #20] - 800a4b2: 6879 ldr r1, [r7, #4] - 800a4b4: 6a78 ldr r0, [r7, #36] ; 0x24 - 800a4b6: f000 f909 bl 800a6cc - 800a4ba: 4603 mov r3, r0 - 800a4bc: 73fb strb r3, [r7, #15] + 800a4ac: 697a ldr r2, [r7, #20] + 800a4ae: 6879 ldr r1, [r7, #4] + 800a4b0: 6a78 ldr r0, [r7, #36] ; 0x24 + 800a4b2: f000 f909 bl 800a6c8 + 800a4b6: 4603 mov r3, r0 + 800a4b8: 73fb strb r3, [r7, #15] if (err != ERR_OK) { - 800a4be: f997 300f ldrsb.w r3, [r7, #15] - 800a4c2: 2b00 cmp r3, #0 - 800a4c4: d016 beq.n 800a4f4 + 800a4ba: f997 300f ldrsb.w r3, [r7, #15] + 800a4be: 2b00 cmp r3, #0 + 800a4c0: d016 beq.n 800a4f0 /* segment could not be sent, for whatever reason */ tcp_set_flags(pcb, TF_NAGLEMEMERR); - 800a4c6: 687b ldr r3, [r7, #4] - 800a4c8: 8b5b ldrh r3, [r3, #26] - 800a4ca: f043 0380 orr.w r3, r3, #128 ; 0x80 - 800a4ce: b29a uxth r2, r3 - 800a4d0: 687b ldr r3, [r7, #4] - 800a4d2: 835a strh r2, [r3, #26] + 800a4c2: 687b ldr r3, [r7, #4] + 800a4c4: 8b5b ldrh r3, [r3, #26] + 800a4c6: f043 0380 orr.w r3, r3, #128 ; 0x80 + 800a4ca: b29a uxth r2, r3 + 800a4cc: 687b ldr r3, [r7, #4] + 800a4ce: 835a strh r2, [r3, #26] return err; - 800a4d4: f997 300f ldrsb.w r3, [r7, #15] - 800a4d8: e0d3 b.n 800a682 - 800a4da: bf00 nop - 800a4dc: 080165a4 .word 0x080165a4 - 800a4e0: 08016ae8 .word 0x08016ae8 - 800a4e4: 080165f8 .word 0x080165f8 - 800a4e8: 08016b00 .word 0x08016b00 - 800a4ec: 20008c4c .word 0x20008c4c - 800a4f0: 08016b28 .word 0x08016b28 + 800a4d0: f997 300f ldrsb.w r3, [r7, #15] + 800a4d4: e0d3 b.n 800a67e + 800a4d6: bf00 nop + 800a4d8: 080165a4 .word 0x080165a4 + 800a4dc: 08016ae8 .word 0x08016ae8 + 800a4e0: 080165f8 .word 0x080165f8 + 800a4e4: 08016b00 .word 0x08016b00 + 800a4e8: 20008c4c .word 0x20008c4c + 800a4ec: 08016b28 .word 0x08016b28 } #if TCP_OVERSIZE_DBGCHECK seg->oversize_left = 0; #endif /* TCP_OVERSIZE_DBGCHECK */ pcb->unsent = seg->next; - 800a4f4: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a4f6: 681a ldr r2, [r3, #0] - 800a4f8: 687b ldr r3, [r7, #4] - 800a4fa: 66da str r2, [r3, #108] ; 0x6c + 800a4f0: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a4f2: 681a ldr r2, [r3, #0] + 800a4f4: 687b ldr r3, [r7, #4] + 800a4f6: 66da str r2, [r3, #108] ; 0x6c if (pcb->state != SYN_SENT) { - 800a4fc: 687b ldr r3, [r7, #4] - 800a4fe: 7d1b ldrb r3, [r3, #20] - 800a500: 2b02 cmp r3, #2 - 800a502: d006 beq.n 800a512 + 800a4f8: 687b ldr r3, [r7, #4] + 800a4fa: 7d1b ldrb r3, [r3, #20] + 800a4fc: 2b02 cmp r3, #2 + 800a4fe: d006 beq.n 800a50e tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 800a504: 687b ldr r3, [r7, #4] - 800a506: 8b5b ldrh r3, [r3, #26] - 800a508: f023 0303 bic.w r3, r3, #3 - 800a50c: b29a uxth r2, r3 - 800a50e: 687b ldr r3, [r7, #4] - 800a510: 835a strh r2, [r3, #26] + 800a500: 687b ldr r3, [r7, #4] + 800a502: 8b5b ldrh r3, [r3, #26] + 800a504: f023 0303 bic.w r3, r3, #3 + 800a508: b29a uxth r2, r3 + 800a50a: 687b ldr r3, [r7, #4] + 800a50c: 835a strh r2, [r3, #26] } snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg); - 800a512: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a514: 68db ldr r3, [r3, #12] - 800a516: 685b ldr r3, [r3, #4] - 800a518: 4618 mov r0, r3 - 800a51a: f7f9 feea bl 80042f2 - 800a51e: 4604 mov r4, r0 - 800a520: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a522: 891b ldrh r3, [r3, #8] - 800a524: 461d mov r5, r3 - 800a526: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a528: 68db ldr r3, [r3, #12] - 800a52a: 899b ldrh r3, [r3, #12] - 800a52c: b29b uxth r3, r3 - 800a52e: 4618 mov r0, r3 - 800a530: f7f9 feca bl 80042c8 - 800a534: 4603 mov r3, r0 - 800a536: b2db uxtb r3, r3 - 800a538: f003 0303 and.w r3, r3, #3 - 800a53c: 2b00 cmp r3, #0 - 800a53e: d001 beq.n 800a544 - 800a540: 2301 movs r3, #1 - 800a542: e000 b.n 800a546 - 800a544: 2300 movs r3, #0 - 800a546: 442b add r3, r5 - 800a548: 4423 add r3, r4 - 800a54a: 60bb str r3, [r7, #8] + 800a50e: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a510: 68db ldr r3, [r3, #12] + 800a512: 685b ldr r3, [r3, #4] + 800a514: 4618 mov r0, r3 + 800a516: f7f9 feea bl 80042ee + 800a51a: 4604 mov r4, r0 + 800a51c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a51e: 891b ldrh r3, [r3, #8] + 800a520: 461d mov r5, r3 + 800a522: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a524: 68db ldr r3, [r3, #12] + 800a526: 899b ldrh r3, [r3, #12] + 800a528: b29b uxth r3, r3 + 800a52a: 4618 mov r0, r3 + 800a52c: f7f9 feca bl 80042c4 + 800a530: 4603 mov r3, r0 + 800a532: b2db uxtb r3, r3 + 800a534: f003 0303 and.w r3, r3, #3 + 800a538: 2b00 cmp r3, #0 + 800a53a: d001 beq.n 800a540 + 800a53c: 2301 movs r3, #1 + 800a53e: e000 b.n 800a542 + 800a540: 2300 movs r3, #0 + 800a542: 442b add r3, r5 + 800a544: 4423 add r3, r4 + 800a546: 60bb str r3, [r7, #8] if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) { - 800a54c: 687b ldr r3, [r7, #4] - 800a54e: 6d1a ldr r2, [r3, #80] ; 0x50 - 800a550: 68bb ldr r3, [r7, #8] - 800a552: 1ad3 subs r3, r2, r3 - 800a554: 2b00 cmp r3, #0 - 800a556: da02 bge.n 800a55e + 800a548: 687b ldr r3, [r7, #4] + 800a54a: 6d1a ldr r2, [r3, #80] ; 0x50 + 800a54c: 68bb ldr r3, [r7, #8] + 800a54e: 1ad3 subs r3, r2, r3 + 800a550: 2b00 cmp r3, #0 + 800a552: da02 bge.n 800a55a pcb->snd_nxt = snd_nxt; - 800a558: 687b ldr r3, [r7, #4] - 800a55a: 68ba ldr r2, [r7, #8] - 800a55c: 651a str r2, [r3, #80] ; 0x50 + 800a554: 687b ldr r3, [r7, #4] + 800a556: 68ba ldr r2, [r7, #8] + 800a558: 651a str r2, [r3, #80] ; 0x50 } /* put segment on unacknowledged list if length > 0 */ if (TCP_TCPLEN(seg) > 0) { - 800a55e: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a560: 891b ldrh r3, [r3, #8] - 800a562: 461c mov r4, r3 - 800a564: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a566: 68db ldr r3, [r3, #12] - 800a568: 899b ldrh r3, [r3, #12] - 800a56a: b29b uxth r3, r3 - 800a56c: 4618 mov r0, r3 - 800a56e: f7f9 feab bl 80042c8 - 800a572: 4603 mov r3, r0 - 800a574: b2db uxtb r3, r3 - 800a576: f003 0303 and.w r3, r3, #3 - 800a57a: 2b00 cmp r3, #0 - 800a57c: d001 beq.n 800a582 - 800a57e: 2301 movs r3, #1 - 800a580: e000 b.n 800a584 - 800a582: 2300 movs r3, #0 - 800a584: 4423 add r3, r4 - 800a586: 2b00 cmp r3, #0 - 800a588: d049 beq.n 800a61e + 800a55a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a55c: 891b ldrh r3, [r3, #8] + 800a55e: 461c mov r4, r3 + 800a560: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a562: 68db ldr r3, [r3, #12] + 800a564: 899b ldrh r3, [r3, #12] + 800a566: b29b uxth r3, r3 + 800a568: 4618 mov r0, r3 + 800a56a: f7f9 feab bl 80042c4 + 800a56e: 4603 mov r3, r0 + 800a570: b2db uxtb r3, r3 + 800a572: f003 0303 and.w r3, r3, #3 + 800a576: 2b00 cmp r3, #0 + 800a578: d001 beq.n 800a57e + 800a57a: 2301 movs r3, #1 + 800a57c: e000 b.n 800a580 + 800a57e: 2300 movs r3, #0 + 800a580: 4423 add r3, r4 + 800a582: 2b00 cmp r3, #0 + 800a584: d049 beq.n 800a61a seg->next = NULL; - 800a58a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a58c: 2200 movs r2, #0 - 800a58e: 601a str r2, [r3, #0] + 800a586: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a588: 2200 movs r2, #0 + 800a58a: 601a str r2, [r3, #0] /* unacked list is empty? */ if (pcb->unacked == NULL) { - 800a590: 687b ldr r3, [r7, #4] - 800a592: 6f1b ldr r3, [r3, #112] ; 0x70 - 800a594: 2b00 cmp r3, #0 - 800a596: d105 bne.n 800a5a4 + 800a58c: 687b ldr r3, [r7, #4] + 800a58e: 6f1b ldr r3, [r3, #112] ; 0x70 + 800a590: 2b00 cmp r3, #0 + 800a592: d105 bne.n 800a5a0 pcb->unacked = seg; - 800a598: 687b ldr r3, [r7, #4] - 800a59a: 6a7a ldr r2, [r7, #36] ; 0x24 - 800a59c: 671a str r2, [r3, #112] ; 0x70 + 800a594: 687b ldr r3, [r7, #4] + 800a596: 6a7a ldr r2, [r7, #36] ; 0x24 + 800a598: 671a str r2, [r3, #112] ; 0x70 useg = seg; - 800a59e: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a5a0: 623b str r3, [r7, #32] - 800a5a2: e03f b.n 800a624 + 800a59a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a59c: 623b str r3, [r7, #32] + 800a59e: e03f b.n 800a620 /* unacked list is not empty? */ } else { /* In the case of fast retransmit, the packet should not go to the tail * of the unacked queue, but rather somewhere before it. We need to check for * this case. -STJ Jul 27, 2004 */ if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) { - 800a5a4: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a5a6: 68db ldr r3, [r3, #12] - 800a5a8: 685b ldr r3, [r3, #4] - 800a5aa: 4618 mov r0, r3 - 800a5ac: f7f9 fea1 bl 80042f2 - 800a5b0: 4604 mov r4, r0 - 800a5b2: 6a3b ldr r3, [r7, #32] - 800a5b4: 68db ldr r3, [r3, #12] - 800a5b6: 685b ldr r3, [r3, #4] - 800a5b8: 4618 mov r0, r3 - 800a5ba: f7f9 fe9a bl 80042f2 - 800a5be: 4603 mov r3, r0 - 800a5c0: 1ae3 subs r3, r4, r3 - 800a5c2: 2b00 cmp r3, #0 - 800a5c4: da24 bge.n 800a610 + 800a5a0: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a5a2: 68db ldr r3, [r3, #12] + 800a5a4: 685b ldr r3, [r3, #4] + 800a5a6: 4618 mov r0, r3 + 800a5a8: f7f9 fea1 bl 80042ee + 800a5ac: 4604 mov r4, r0 + 800a5ae: 6a3b ldr r3, [r7, #32] + 800a5b0: 68db ldr r3, [r3, #12] + 800a5b2: 685b ldr r3, [r3, #4] + 800a5b4: 4618 mov r0, r3 + 800a5b6: f7f9 fe9a bl 80042ee + 800a5ba: 4603 mov r3, r0 + 800a5bc: 1ae3 subs r3, r4, r3 + 800a5be: 2b00 cmp r3, #0 + 800a5c0: da24 bge.n 800a60c /* add segment to before tail of unacked list, keeping the list sorted */ struct tcp_seg **cur_seg = &(pcb->unacked); - 800a5c6: 687b ldr r3, [r7, #4] - 800a5c8: 3370 adds r3, #112 ; 0x70 - 800a5ca: 61fb str r3, [r7, #28] + 800a5c2: 687b ldr r3, [r7, #4] + 800a5c4: 3370 adds r3, #112 ; 0x70 + 800a5c6: 61fb str r3, [r7, #28] while (*cur_seg && - 800a5cc: e002 b.n 800a5d4 + 800a5c8: e002 b.n 800a5d0 TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { cur_seg = &((*cur_seg)->next ); - 800a5ce: 69fb ldr r3, [r7, #28] - 800a5d0: 681b ldr r3, [r3, #0] - 800a5d2: 61fb str r3, [r7, #28] + 800a5ca: 69fb ldr r3, [r7, #28] + 800a5cc: 681b ldr r3, [r3, #0] + 800a5ce: 61fb str r3, [r7, #28] while (*cur_seg && - 800a5d4: 69fb ldr r3, [r7, #28] - 800a5d6: 681b ldr r3, [r3, #0] - 800a5d8: 2b00 cmp r3, #0 - 800a5da: d011 beq.n 800a600 + 800a5d0: 69fb ldr r3, [r7, #28] + 800a5d2: 681b ldr r3, [r3, #0] + 800a5d4: 2b00 cmp r3, #0 + 800a5d6: d011 beq.n 800a5fc TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - 800a5dc: 69fb ldr r3, [r7, #28] - 800a5de: 681b ldr r3, [r3, #0] - 800a5e0: 68db ldr r3, [r3, #12] - 800a5e2: 685b ldr r3, [r3, #4] - 800a5e4: 4618 mov r0, r3 - 800a5e6: f7f9 fe84 bl 80042f2 - 800a5ea: 4604 mov r4, r0 - 800a5ec: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a5ee: 68db ldr r3, [r3, #12] - 800a5f0: 685b ldr r3, [r3, #4] - 800a5f2: 4618 mov r0, r3 - 800a5f4: f7f9 fe7d bl 80042f2 - 800a5f8: 4603 mov r3, r0 - 800a5fa: 1ae3 subs r3, r4, r3 + 800a5d8: 69fb ldr r3, [r7, #28] + 800a5da: 681b ldr r3, [r3, #0] + 800a5dc: 68db ldr r3, [r3, #12] + 800a5de: 685b ldr r3, [r3, #4] + 800a5e0: 4618 mov r0, r3 + 800a5e2: f7f9 fe84 bl 80042ee + 800a5e6: 4604 mov r4, r0 + 800a5e8: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a5ea: 68db ldr r3, [r3, #12] + 800a5ec: 685b ldr r3, [r3, #4] + 800a5ee: 4618 mov r0, r3 + 800a5f0: f7f9 fe7d bl 80042ee + 800a5f4: 4603 mov r3, r0 + 800a5f6: 1ae3 subs r3, r4, r3 while (*cur_seg && - 800a5fc: 2b00 cmp r3, #0 - 800a5fe: dbe6 blt.n 800a5ce + 800a5f8: 2b00 cmp r3, #0 + 800a5fa: dbe6 blt.n 800a5ca } seg->next = (*cur_seg); - 800a600: 69fb ldr r3, [r7, #28] - 800a602: 681a ldr r2, [r3, #0] - 800a604: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a606: 601a str r2, [r3, #0] + 800a5fc: 69fb ldr r3, [r7, #28] + 800a5fe: 681a ldr r2, [r3, #0] + 800a600: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a602: 601a str r2, [r3, #0] (*cur_seg) = seg; - 800a608: 69fb ldr r3, [r7, #28] - 800a60a: 6a7a ldr r2, [r7, #36] ; 0x24 - 800a60c: 601a str r2, [r3, #0] - 800a60e: e009 b.n 800a624 + 800a604: 69fb ldr r3, [r7, #28] + 800a606: 6a7a ldr r2, [r7, #36] ; 0x24 + 800a608: 601a str r2, [r3, #0] + 800a60a: e009 b.n 800a620 } else { /* add segment to tail of unacked list */ useg->next = seg; - 800a610: 6a3b ldr r3, [r7, #32] - 800a612: 6a7a ldr r2, [r7, #36] ; 0x24 - 800a614: 601a str r2, [r3, #0] + 800a60c: 6a3b ldr r3, [r7, #32] + 800a60e: 6a7a ldr r2, [r7, #36] ; 0x24 + 800a610: 601a str r2, [r3, #0] useg = useg->next; - 800a616: 6a3b ldr r3, [r7, #32] - 800a618: 681b ldr r3, [r3, #0] - 800a61a: 623b str r3, [r7, #32] - 800a61c: e002 b.n 800a624 + 800a612: 6a3b ldr r3, [r7, #32] + 800a614: 681b ldr r3, [r3, #0] + 800a616: 623b str r3, [r7, #32] + 800a618: e002 b.n 800a620 } } /* do not queue empty segments on the unacked list */ } else { tcp_seg_free(seg); - 800a61e: 6a78 ldr r0, [r7, #36] ; 0x24 - 800a620: f7fc fc3f bl 8006ea2 + 800a61a: 6a78 ldr r0, [r7, #36] ; 0x24 + 800a61c: f7fc fc3f bl 8006e9e } seg = pcb->unsent; - 800a624: 687b ldr r3, [r7, #4] - 800a626: 6edb ldr r3, [r3, #108] ; 0x6c - 800a628: 627b str r3, [r7, #36] ; 0x24 + 800a620: 687b ldr r3, [r7, #4] + 800a622: 6edb ldr r3, [r3, #108] ; 0x6c + 800a624: 627b str r3, [r7, #36] ; 0x24 while (seg != NULL && - 800a62a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a62c: 2b00 cmp r3, #0 - 800a62e: d012 beq.n 800a656 + 800a626: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a628: 2b00 cmp r3, #0 + 800a62a: d012 beq.n 800a652 lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) { - 800a630: 6a7b ldr r3, [r7, #36] ; 0x24 - 800a632: 68db ldr r3, [r3, #12] - 800a634: 685b ldr r3, [r3, #4] - 800a636: 4618 mov r0, r3 - 800a638: f7f9 fe5b bl 80042f2 - 800a63c: 4602 mov r2, r0 - 800a63e: 687b ldr r3, [r7, #4] - 800a640: 6c5b ldr r3, [r3, #68] ; 0x44 - 800a642: 1ad3 subs r3, r2, r3 - 800a644: 6a7a ldr r2, [r7, #36] ; 0x24 - 800a646: 8912 ldrh r2, [r2, #8] - 800a648: 4413 add r3, r2 + 800a62c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800a62e: 68db ldr r3, [r3, #12] + 800a630: 685b ldr r3, [r3, #4] + 800a632: 4618 mov r0, r3 + 800a634: f7f9 fe5b bl 80042ee + 800a638: 4602 mov r2, r0 + 800a63a: 687b ldr r3, [r7, #4] + 800a63c: 6c5b ldr r3, [r3, #68] ; 0x44 + 800a63e: 1ad3 subs r3, r2, r3 + 800a640: 6a7a ldr r2, [r7, #36] ; 0x24 + 800a642: 8912 ldrh r2, [r2, #8] + 800a644: 4413 add r3, r2 while (seg != NULL && - 800a64a: 69ba ldr r2, [r7, #24] - 800a64c: 429a cmp r2, r3 - 800a64e: f4bf aed9 bcs.w 800a404 - 800a652: e000 b.n 800a656 + 800a646: 69ba ldr r2, [r7, #24] + 800a648: 429a cmp r2, r3 + 800a64a: f4bf aed9 bcs.w 800a400 + 800a64e: e000 b.n 800a652 break; - 800a654: bf00 nop + 800a650: bf00 nop } #if TCP_OVERSIZE if (pcb->unsent == NULL) { - 800a656: 687b ldr r3, [r7, #4] - 800a658: 6edb ldr r3, [r3, #108] ; 0x6c - 800a65a: 2b00 cmp r3, #0 - 800a65c: d108 bne.n 800a670 + 800a652: 687b ldr r3, [r7, #4] + 800a654: 6edb ldr r3, [r3, #108] ; 0x6c + 800a656: 2b00 cmp r3, #0 + 800a658: d108 bne.n 800a66c /* last unsent has been removed, reset unsent_oversize */ pcb->unsent_oversize = 0; - 800a65e: 687b ldr r3, [r7, #4] - 800a660: 2200 movs r2, #0 - 800a662: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - 800a666: e004 b.n 800a672 + 800a65a: 687b ldr r3, [r7, #4] + 800a65c: 2200 movs r2, #0 + 800a65e: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 800a662: e004 b.n 800a66e + goto output_done; + 800a664: bf00 nop + 800a666: e002 b.n 800a66e goto output_done; 800a668: bf00 nop - 800a66a: e002 b.n 800a672 - goto output_done; - 800a66c: bf00 nop - 800a66e: e000 b.n 800a672 + 800a66a: e000 b.n 800a66e } #endif /* TCP_OVERSIZE */ output_done: - 800a670: bf00 nop + 800a66c: bf00 nop tcp_clear_flags(pcb, TF_NAGLEMEMERR); - 800a672: 687b ldr r3, [r7, #4] - 800a674: 8b5b ldrh r3, [r3, #26] - 800a676: f023 0380 bic.w r3, r3, #128 ; 0x80 - 800a67a: b29a uxth r2, r3 - 800a67c: 687b ldr r3, [r7, #4] - 800a67e: 835a strh r2, [r3, #26] + 800a66e: 687b ldr r3, [r7, #4] + 800a670: 8b5b ldrh r3, [r3, #26] + 800a672: f023 0380 bic.w r3, r3, #128 ; 0x80 + 800a676: b29a uxth r2, r3 + 800a678: 687b ldr r3, [r7, #4] + 800a67a: 835a strh r2, [r3, #26] return ERR_OK; - 800a680: 2300 movs r3, #0 + 800a67c: 2300 movs r3, #0 } - 800a682: 4618 mov r0, r3 - 800a684: 3728 adds r7, #40 ; 0x28 - 800a686: 46bd mov sp, r7 - 800a688: bdb0 pop {r4, r5, r7, pc} - 800a68a: bf00 nop + 800a67e: 4618 mov r0, r3 + 800a680: 3728 adds r7, #40 ; 0x28 + 800a682: 46bd mov sp, r7 + 800a684: bdb0 pop {r4, r5, r7, pc} + 800a686: bf00 nop -0800a68c : +0800a688 : * @arg seg the tcp segment to check * @return 1 if ref != 1, 0 if ref == 1 */ static int tcp_output_segment_busy(const struct tcp_seg *seg) { - 800a68c: b580 push {r7, lr} - 800a68e: b082 sub sp, #8 - 800a690: af00 add r7, sp, #0 - 800a692: 6078 str r0, [r7, #4] + 800a688: b580 push {r7, lr} + 800a68a: b082 sub sp, #8 + 800a68c: af00 add r7, sp, #0 + 800a68e: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_output_segment_busy: invalid seg", seg != NULL); - 800a694: 687b ldr r3, [r7, #4] - 800a696: 2b00 cmp r3, #0 - 800a698: d106 bne.n 800a6a8 - 800a69a: 4b09 ldr r3, [pc, #36] ; (800a6c0 ) - 800a69c: f240 529a movw r2, #1434 ; 0x59a - 800a6a0: 4908 ldr r1, [pc, #32] ; (800a6c4 ) - 800a6a2: 4809 ldr r0, [pc, #36] ; (800a6c8 ) - 800a6a4: f005 fe96 bl 80103d4 + 800a690: 687b ldr r3, [r7, #4] + 800a692: 2b00 cmp r3, #0 + 800a694: d106 bne.n 800a6a4 + 800a696: 4b09 ldr r3, [pc, #36] ; (800a6bc ) + 800a698: f240 529a movw r2, #1434 ; 0x59a + 800a69c: 4908 ldr r1, [pc, #32] ; (800a6c0 ) + 800a69e: 4809 ldr r0, [pc, #36] ; (800a6c4 ) + 800a6a0: f005 fe96 bl 80103d0 /* We only need to check the first pbuf here: If a pbuf is queued for transmission, a driver calls pbuf_ref(), which only changes the ref count of the first pbuf */ if (seg->p->ref != 1) { - 800a6a8: 687b ldr r3, [r7, #4] - 800a6aa: 685b ldr r3, [r3, #4] - 800a6ac: 7b9b ldrb r3, [r3, #14] - 800a6ae: 2b01 cmp r3, #1 - 800a6b0: d001 beq.n 800a6b6 + 800a6a4: 687b ldr r3, [r7, #4] + 800a6a6: 685b ldr r3, [r3, #4] + 800a6a8: 7b9b ldrb r3, [r3, #14] + 800a6aa: 2b01 cmp r3, #1 + 800a6ac: d001 beq.n 800a6b2 /* other reference found */ return 1; - 800a6b2: 2301 movs r3, #1 - 800a6b4: e000 b.n 800a6b8 + 800a6ae: 2301 movs r3, #1 + 800a6b0: e000 b.n 800a6b4 } /* no other references found */ return 0; - 800a6b6: 2300 movs r3, #0 + 800a6b2: 2300 movs r3, #0 } - 800a6b8: 4618 mov r0, r3 - 800a6ba: 3708 adds r7, #8 - 800a6bc: 46bd mov sp, r7 - 800a6be: bd80 pop {r7, pc} - 800a6c0: 080165a4 .word 0x080165a4 - 800a6c4: 08016b40 .word 0x08016b40 - 800a6c8: 080165f8 .word 0x080165f8 + 800a6b4: 4618 mov r0, r3 + 800a6b6: 3708 adds r7, #8 + 800a6b8: 46bd mov sp, r7 + 800a6ba: bd80 pop {r7, pc} + 800a6bc: 080165a4 .word 0x080165a4 + 800a6c0: 08016b40 .word 0x08016b40 + 800a6c4: 080165f8 .word 0x080165f8 -0800a6cc : +0800a6c8 : * @param pcb the tcp_pcb for the TCP connection used to send the segment * @param netif the netif used to send the segment */ static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif) { - 800a6cc: b5b0 push {r4, r5, r7, lr} - 800a6ce: b08c sub sp, #48 ; 0x30 - 800a6d0: af04 add r7, sp, #16 - 800a6d2: 60f8 str r0, [r7, #12] - 800a6d4: 60b9 str r1, [r7, #8] - 800a6d6: 607a str r2, [r7, #4] + 800a6c8: b5b0 push {r4, r5, r7, lr} + 800a6ca: b08c sub sp, #48 ; 0x30 + 800a6cc: af04 add r7, sp, #16 + 800a6ce: 60f8 str r0, [r7, #12] + 800a6d0: 60b9 str r1, [r7, #8] + 800a6d2: 607a str r2, [r7, #4] u32_t *opts; #if TCP_CHECKSUM_ON_COPY int seg_chksum_was_swapped = 0; #endif LWIP_ASSERT("tcp_output_segment: invalid seg", seg != NULL); - 800a6d8: 68fb ldr r3, [r7, #12] - 800a6da: 2b00 cmp r3, #0 - 800a6dc: d106 bne.n 800a6ec - 800a6de: 4b63 ldr r3, [pc, #396] ; (800a86c ) - 800a6e0: f44f 62b7 mov.w r2, #1464 ; 0x5b8 - 800a6e4: 4962 ldr r1, [pc, #392] ; (800a870 ) - 800a6e6: 4863 ldr r0, [pc, #396] ; (800a874 ) - 800a6e8: f005 fe74 bl 80103d4 + 800a6d4: 68fb ldr r3, [r7, #12] + 800a6d6: 2b00 cmp r3, #0 + 800a6d8: d106 bne.n 800a6e8 + 800a6da: 4b63 ldr r3, [pc, #396] ; (800a868 ) + 800a6dc: f44f 62b7 mov.w r2, #1464 ; 0x5b8 + 800a6e0: 4962 ldr r1, [pc, #392] ; (800a86c ) + 800a6e2: 4863 ldr r0, [pc, #396] ; (800a870 ) + 800a6e4: f005 fe74 bl 80103d0 LWIP_ASSERT("tcp_output_segment: invalid pcb", pcb != NULL); - 800a6ec: 68bb ldr r3, [r7, #8] - 800a6ee: 2b00 cmp r3, #0 - 800a6f0: d106 bne.n 800a700 - 800a6f2: 4b5e ldr r3, [pc, #376] ; (800a86c ) - 800a6f4: f240 52b9 movw r2, #1465 ; 0x5b9 - 800a6f8: 495f ldr r1, [pc, #380] ; (800a878 ) - 800a6fa: 485e ldr r0, [pc, #376] ; (800a874 ) - 800a6fc: f005 fe6a bl 80103d4 + 800a6e8: 68bb ldr r3, [r7, #8] + 800a6ea: 2b00 cmp r3, #0 + 800a6ec: d106 bne.n 800a6fc + 800a6ee: 4b5e ldr r3, [pc, #376] ; (800a868 ) + 800a6f0: f240 52b9 movw r2, #1465 ; 0x5b9 + 800a6f4: 495f ldr r1, [pc, #380] ; (800a874 ) + 800a6f6: 485e ldr r0, [pc, #376] ; (800a870 ) + 800a6f8: f005 fe6a bl 80103d0 LWIP_ASSERT("tcp_output_segment: invalid netif", netif != NULL); - 800a700: 687b ldr r3, [r7, #4] - 800a702: 2b00 cmp r3, #0 - 800a704: d106 bne.n 800a714 - 800a706: 4b59 ldr r3, [pc, #356] ; (800a86c ) - 800a708: f240 52ba movw r2, #1466 ; 0x5ba - 800a70c: 495b ldr r1, [pc, #364] ; (800a87c ) - 800a70e: 4859 ldr r0, [pc, #356] ; (800a874 ) - 800a710: f005 fe60 bl 80103d4 + 800a6fc: 687b ldr r3, [r7, #4] + 800a6fe: 2b00 cmp r3, #0 + 800a700: d106 bne.n 800a710 + 800a702: 4b59 ldr r3, [pc, #356] ; (800a868 ) + 800a704: f240 52ba movw r2, #1466 ; 0x5ba + 800a708: 495b ldr r1, [pc, #364] ; (800a878 ) + 800a70a: 4859 ldr r0, [pc, #356] ; (800a870 ) + 800a70c: f005 fe60 bl 80103d0 if (tcp_output_segment_busy(seg)) { - 800a714: 68f8 ldr r0, [r7, #12] - 800a716: f7ff ffb9 bl 800a68c - 800a71a: 4603 mov r3, r0 - 800a71c: 2b00 cmp r3, #0 - 800a71e: d001 beq.n 800a724 + 800a710: 68f8 ldr r0, [r7, #12] + 800a712: f7ff ffb9 bl 800a688 + 800a716: 4603 mov r3, r0 + 800a718: 2b00 cmp r3, #0 + 800a71a: d001 beq.n 800a720 /* This should not happen: rexmit functions should have checked this. However, since this function modifies p->len, we must not continue in this case. */ LWIP_DEBUGF(TCP_RTO_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_output_segment: segment busy\n")); return ERR_OK; - 800a720: 2300 movs r3, #0 - 800a722: e09f b.n 800a864 + 800a71c: 2300 movs r3, #0 + 800a71e: e09f b.n 800a860 } /* The TCP header has already been constructed, but the ackno and wnd fields remain. */ seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt); - 800a724: 68bb ldr r3, [r7, #8] - 800a726: 6a5a ldr r2, [r3, #36] ; 0x24 - 800a728: 68fb ldr r3, [r7, #12] - 800a72a: 68dc ldr r4, [r3, #12] - 800a72c: 4610 mov r0, r2 - 800a72e: f7f9 fde0 bl 80042f2 - 800a732: 4603 mov r3, r0 - 800a734: 60a3 str r3, [r4, #8] + 800a720: 68bb ldr r3, [r7, #8] + 800a722: 6a5a ldr r2, [r3, #36] ; 0x24 + 800a724: 68fb ldr r3, [r7, #12] + 800a726: 68dc ldr r4, [r3, #12] + 800a728: 4610 mov r0, r2 + 800a72a: f7f9 fde0 bl 80042ee + 800a72e: 4603 mov r3, r0 + 800a730: 60a3 str r3, [r4, #8] the window scale option) is never scaled. */ seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(pcb->rcv_ann_wnd)); } else #endif /* LWIP_WND_SCALE */ { seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd))); - 800a736: 68bb ldr r3, [r7, #8] - 800a738: 8d5a ldrh r2, [r3, #42] ; 0x2a - 800a73a: 68fb ldr r3, [r7, #12] - 800a73c: 68dc ldr r4, [r3, #12] - 800a73e: 4610 mov r0, r2 - 800a740: f7f9 fdc2 bl 80042c8 - 800a744: 4603 mov r3, r0 - 800a746: 81e3 strh r3, [r4, #14] + 800a732: 68bb ldr r3, [r7, #8] + 800a734: 8d5a ldrh r2, [r3, #42] ; 0x2a + 800a736: 68fb ldr r3, [r7, #12] + 800a738: 68dc ldr r4, [r3, #12] + 800a73a: 4610 mov r0, r2 + 800a73c: f7f9 fdc2 bl 80042c4 + 800a740: 4603 mov r3, r0 + 800a742: 81e3 strh r3, [r4, #14] } pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; - 800a748: 68bb ldr r3, [r7, #8] - 800a74a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800a74c: 68ba ldr r2, [r7, #8] - 800a74e: 8d52 ldrh r2, [r2, #42] ; 0x2a - 800a750: 441a add r2, r3 - 800a752: 68bb ldr r3, [r7, #8] - 800a754: 62da str r2, [r3, #44] ; 0x2c + 800a744: 68bb ldr r3, [r7, #8] + 800a746: 6a5b ldr r3, [r3, #36] ; 0x24 + 800a748: 68ba ldr r2, [r7, #8] + 800a74a: 8d52 ldrh r2, [r2, #42] ; 0x2a + 800a74c: 441a add r2, r3 + 800a74e: 68bb ldr r3, [r7, #8] + 800a750: 62da str r2, [r3, #44] ; 0x2c /* Add any requested options. NB MSS option is only set on SYN packets, so ignore it here */ /* cast through void* to get rid of alignment warnings */ opts = (u32_t *)(void *)(seg->tcphdr + 1); - 800a756: 68fb ldr r3, [r7, #12] - 800a758: 68db ldr r3, [r3, #12] - 800a75a: 3314 adds r3, #20 - 800a75c: 61fb str r3, [r7, #28] + 800a752: 68fb ldr r3, [r7, #12] + 800a754: 68db ldr r3, [r3, #12] + 800a756: 3314 adds r3, #20 + 800a758: 61fb str r3, [r7, #28] if (seg->flags & TF_SEG_OPTS_MSS) { - 800a75e: 68fb ldr r3, [r7, #12] - 800a760: 7a9b ldrb r3, [r3, #10] - 800a762: f003 0301 and.w r3, r3, #1 - 800a766: 2b00 cmp r3, #0 - 800a768: d015 beq.n 800a796 + 800a75a: 68fb ldr r3, [r7, #12] + 800a75c: 7a9b ldrb r3, [r3, #10] + 800a75e: f003 0301 and.w r3, r3, #1 + 800a762: 2b00 cmp r3, #0 + 800a764: d015 beq.n 800a792 u16_t mss; #if TCP_CALCULATE_EFF_SEND_MSS mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip); - 800a76a: 68bb ldr r3, [r7, #8] - 800a76c: 3304 adds r3, #4 - 800a76e: 461a mov r2, r3 - 800a770: 6879 ldr r1, [r7, #4] - 800a772: f44f 7006 mov.w r0, #536 ; 0x218 - 800a776: f7fc fe8b bl 8007490 - 800a77a: 4603 mov r3, r0 - 800a77c: 837b strh r3, [r7, #26] + 800a766: 68bb ldr r3, [r7, #8] + 800a768: 3304 adds r3, #4 + 800a76a: 461a mov r2, r3 + 800a76c: 6879 ldr r1, [r7, #4] + 800a76e: f44f 7006 mov.w r0, #536 ; 0x218 + 800a772: f7fc fe8b bl 800748c + 800a776: 4603 mov r3, r0 + 800a778: 837b strh r3, [r7, #26] #else /* TCP_CALCULATE_EFF_SEND_MSS */ mss = TCP_MSS; #endif /* TCP_CALCULATE_EFF_SEND_MSS */ *opts = TCP_BUILD_MSS_OPTION(mss); - 800a77e: 8b7b ldrh r3, [r7, #26] - 800a780: f043 7301 orr.w r3, r3, #33816576 ; 0x2040000 - 800a784: 4618 mov r0, r3 - 800a786: f7f9 fdb4 bl 80042f2 - 800a78a: 4602 mov r2, r0 - 800a78c: 69fb ldr r3, [r7, #28] - 800a78e: 601a str r2, [r3, #0] + 800a77a: 8b7b ldrh r3, [r7, #26] + 800a77c: f043 7301 orr.w r3, r3, #33816576 ; 0x2040000 + 800a780: 4618 mov r0, r3 + 800a782: f7f9 fdb4 bl 80042ee + 800a786: 4602 mov r2, r0 + 800a788: 69fb ldr r3, [r7, #28] + 800a78a: 601a str r2, [r3, #0] opts += 1; - 800a790: 69fb ldr r3, [r7, #28] - 800a792: 3304 adds r3, #4 - 800a794: 61fb str r3, [r7, #28] + 800a78c: 69fb ldr r3, [r7, #28] + 800a78e: 3304 adds r3, #4 + 800a790: 61fb str r3, [r7, #28] } #endif /* Set retransmission timer running if it is not currently enabled This must be set before checking the route. */ if (pcb->rtime < 0) { - 800a796: 68bb ldr r3, [r7, #8] - 800a798: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 800a79c: 2b00 cmp r3, #0 - 800a79e: da02 bge.n 800a7a6 + 800a792: 68bb ldr r3, [r7, #8] + 800a794: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 800a798: 2b00 cmp r3, #0 + 800a79a: da02 bge.n 800a7a2 pcb->rtime = 0; - 800a7a0: 68bb ldr r3, [r7, #8] - 800a7a2: 2200 movs r2, #0 - 800a7a4: 861a strh r2, [r3, #48] ; 0x30 + 800a79c: 68bb ldr r3, [r7, #8] + 800a79e: 2200 movs r2, #0 + 800a7a0: 861a strh r2, [r3, #48] ; 0x30 } if (pcb->rttest == 0) { - 800a7a6: 68bb ldr r3, [r7, #8] - 800a7a8: 6b5b ldr r3, [r3, #52] ; 0x34 - 800a7aa: 2b00 cmp r3, #0 - 800a7ac: d10c bne.n 800a7c8 + 800a7a2: 68bb ldr r3, [r7, #8] + 800a7a4: 6b5b ldr r3, [r3, #52] ; 0x34 + 800a7a6: 2b00 cmp r3, #0 + 800a7a8: d10c bne.n 800a7c4 pcb->rttest = tcp_ticks; - 800a7ae: 4b34 ldr r3, [pc, #208] ; (800a880 ) - 800a7b0: 681a ldr r2, [r3, #0] - 800a7b2: 68bb ldr r3, [r7, #8] - 800a7b4: 635a str r2, [r3, #52] ; 0x34 + 800a7aa: 4b34 ldr r3, [pc, #208] ; (800a87c ) + 800a7ac: 681a ldr r2, [r3, #0] + 800a7ae: 68bb ldr r3, [r7, #8] + 800a7b0: 635a str r2, [r3, #52] ; 0x34 pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno); - 800a7b6: 68fb ldr r3, [r7, #12] - 800a7b8: 68db ldr r3, [r3, #12] - 800a7ba: 685b ldr r3, [r3, #4] - 800a7bc: 4618 mov r0, r3 - 800a7be: f7f9 fd98 bl 80042f2 - 800a7c2: 4602 mov r2, r0 - 800a7c4: 68bb ldr r3, [r7, #8] - 800a7c6: 639a str r2, [r3, #56] ; 0x38 + 800a7b2: 68fb ldr r3, [r7, #12] + 800a7b4: 68db ldr r3, [r3, #12] + 800a7b6: 685b ldr r3, [r3, #4] + 800a7b8: 4618 mov r0, r3 + 800a7ba: f7f9 fd98 bl 80042ee + 800a7be: 4602 mov r2, r0 + 800a7c0: 68bb ldr r3, [r7, #8] + 800a7c2: 639a str r2, [r3, #56] ; 0x38 } LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output_segment: %"U32_F":%"U32_F"\n", lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) + seg->len)); len = (u16_t)((u8_t *)seg->tcphdr - (u8_t *)seg->p->payload); + 800a7c4: 68fb ldr r3, [r7, #12] + 800a7c6: 68da ldr r2, [r3, #12] 800a7c8: 68fb ldr r3, [r7, #12] - 800a7ca: 68da ldr r2, [r3, #12] - 800a7cc: 68fb ldr r3, [r7, #12] - 800a7ce: 685b ldr r3, [r3, #4] - 800a7d0: 685b ldr r3, [r3, #4] - 800a7d2: 1ad3 subs r3, r2, r3 - 800a7d4: 833b strh r3, [r7, #24] + 800a7ca: 685b ldr r3, [r3, #4] + 800a7cc: 685b ldr r3, [r3, #4] + 800a7ce: 1ad3 subs r3, r2, r3 + 800a7d0: 833b strh r3, [r7, #24] if (len == 0) { /** Exclude retransmitted segments from this count. */ MIB2_STATS_INC(mib2.tcpoutsegs); } seg->p->len -= len; - 800a7d6: 68fb ldr r3, [r7, #12] - 800a7d8: 685b ldr r3, [r3, #4] - 800a7da: 8959 ldrh r1, [r3, #10] - 800a7dc: 68fb ldr r3, [r7, #12] - 800a7de: 685b ldr r3, [r3, #4] - 800a7e0: 8b3a ldrh r2, [r7, #24] - 800a7e2: 1a8a subs r2, r1, r2 - 800a7e4: b292 uxth r2, r2 - 800a7e6: 815a strh r2, [r3, #10] + 800a7d2: 68fb ldr r3, [r7, #12] + 800a7d4: 685b ldr r3, [r3, #4] + 800a7d6: 8959 ldrh r1, [r3, #10] + 800a7d8: 68fb ldr r3, [r7, #12] + 800a7da: 685b ldr r3, [r3, #4] + 800a7dc: 8b3a ldrh r2, [r7, #24] + 800a7de: 1a8a subs r2, r1, r2 + 800a7e0: b292 uxth r2, r2 + 800a7e2: 815a strh r2, [r3, #10] seg->p->tot_len -= len; - 800a7e8: 68fb ldr r3, [r7, #12] - 800a7ea: 685b ldr r3, [r3, #4] - 800a7ec: 8919 ldrh r1, [r3, #8] - 800a7ee: 68fb ldr r3, [r7, #12] - 800a7f0: 685b ldr r3, [r3, #4] - 800a7f2: 8b3a ldrh r2, [r7, #24] - 800a7f4: 1a8a subs r2, r1, r2 - 800a7f6: b292 uxth r2, r2 - 800a7f8: 811a strh r2, [r3, #8] + 800a7e4: 68fb ldr r3, [r7, #12] + 800a7e6: 685b ldr r3, [r3, #4] + 800a7e8: 8919 ldrh r1, [r3, #8] + 800a7ea: 68fb ldr r3, [r7, #12] + 800a7ec: 685b ldr r3, [r3, #4] + 800a7ee: 8b3a ldrh r2, [r7, #24] + 800a7f0: 1a8a subs r2, r1, r2 + 800a7f2: b292 uxth r2, r2 + 800a7f4: 811a strh r2, [r3, #8] seg->p->payload = seg->tcphdr; - 800a7fa: 68fb ldr r3, [r7, #12] - 800a7fc: 685b ldr r3, [r3, #4] - 800a7fe: 68fa ldr r2, [r7, #12] - 800a800: 68d2 ldr r2, [r2, #12] - 800a802: 605a str r2, [r3, #4] + 800a7f6: 68fb ldr r3, [r7, #12] + 800a7f8: 685b ldr r3, [r3, #4] + 800a7fa: 68fa ldr r2, [r7, #12] + 800a7fc: 68d2 ldr r2, [r2, #12] + 800a7fe: 605a str r2, [r3, #4] seg->tcphdr->chksum = 0; - 800a804: 68fb ldr r3, [r7, #12] - 800a806: 68db ldr r3, [r3, #12] + 800a800: 68fb ldr r3, [r7, #12] + 800a802: 68db ldr r3, [r3, #12] + 800a804: 2200 movs r2, #0 + 800a806: 741a strb r2, [r3, #16] 800a808: 2200 movs r2, #0 - 800a80a: 741a strb r2, [r3, #16] - 800a80c: 2200 movs r2, #0 - 800a80e: 745a strb r2, [r3, #17] + 800a80a: 745a strb r2, [r3, #17] #ifdef LWIP_HOOK_TCP_OUT_ADD_TCPOPTS opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(seg->p, seg->tcphdr, pcb, opts); #endif LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(seg->tcphdr + 1)) + LWIP_TCP_OPT_LENGTH_SEGMENT(seg->flags, pcb)); - 800a810: 68fb ldr r3, [r7, #12] - 800a812: 68db ldr r3, [r3, #12] - 800a814: f103 0214 add.w r2, r3, #20 - 800a818: 68fb ldr r3, [r7, #12] - 800a81a: 7a9b ldrb r3, [r3, #10] - 800a81c: 009b lsls r3, r3, #2 - 800a81e: f003 0304 and.w r3, r3, #4 - 800a822: 4413 add r3, r2 - 800a824: 69fa ldr r2, [r7, #28] - 800a826: 429a cmp r2, r3 - 800a828: d006 beq.n 800a838 - 800a82a: 4b10 ldr r3, [pc, #64] ; (800a86c ) - 800a82c: f240 621c movw r2, #1564 ; 0x61c - 800a830: 4914 ldr r1, [pc, #80] ; (800a884 ) - 800a832: 4810 ldr r0, [pc, #64] ; (800a874 ) - 800a834: f005 fdce bl 80103d4 + 800a80c: 68fb ldr r3, [r7, #12] + 800a80e: 68db ldr r3, [r3, #12] + 800a810: f103 0214 add.w r2, r3, #20 + 800a814: 68fb ldr r3, [r7, #12] + 800a816: 7a9b ldrb r3, [r3, #10] + 800a818: 009b lsls r3, r3, #2 + 800a81a: f003 0304 and.w r3, r3, #4 + 800a81e: 4413 add r3, r2 + 800a820: 69fa ldr r2, [r7, #28] + 800a822: 429a cmp r2, r3 + 800a824: d006 beq.n 800a834 + 800a826: 4b10 ldr r3, [pc, #64] ; (800a868 ) + 800a828: f240 621c movw r2, #1564 ; 0x61c + 800a82c: 4914 ldr r1, [pc, #80] ; (800a880 ) + 800a82e: 4810 ldr r0, [pc, #64] ; (800a870 ) + 800a830: f005 fdce bl 80103d0 } #endif /* CHECKSUM_GEN_TCP */ TCP_STATS_INC(tcp.xmit); NETIF_SET_HINTS(netif, &(pcb->netif_hints)); err = ip_output_if(seg->p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl, - 800a838: 68fb ldr r3, [r7, #12] - 800a83a: 6858 ldr r0, [r3, #4] - 800a83c: 68b9 ldr r1, [r7, #8] + 800a834: 68fb ldr r3, [r7, #12] + 800a836: 6858 ldr r0, [r3, #4] + 800a838: 68b9 ldr r1, [r7, #8] + 800a83a: 68bb ldr r3, [r7, #8] + 800a83c: 1d1c adds r4, r3, #4 800a83e: 68bb ldr r3, [r7, #8] - 800a840: 1d1c adds r4, r3, #4 + 800a840: 7add ldrb r5, [r3, #11] 800a842: 68bb ldr r3, [r7, #8] - 800a844: 7add ldrb r5, [r3, #11] - 800a846: 68bb ldr r3, [r7, #8] - 800a848: 7a9b ldrb r3, [r3, #10] - 800a84a: 687a ldr r2, [r7, #4] - 800a84c: 9202 str r2, [sp, #8] - 800a84e: 2206 movs r2, #6 - 800a850: 9201 str r2, [sp, #4] - 800a852: 9300 str r3, [sp, #0] - 800a854: 462b mov r3, r5 - 800a856: 4622 mov r2, r4 - 800a858: f004 fbec bl 800f034 - 800a85c: 4603 mov r3, r0 - 800a85e: 75fb strb r3, [r7, #23] + 800a844: 7a9b ldrb r3, [r3, #10] + 800a846: 687a ldr r2, [r7, #4] + 800a848: 9202 str r2, [sp, #8] + 800a84a: 2206 movs r2, #6 + 800a84c: 9201 str r2, [sp, #4] + 800a84e: 9300 str r3, [sp, #0] + 800a850: 462b mov r3, r5 + 800a852: 4622 mov r2, r4 + 800a854: f004 fbec bl 800f030 + 800a858: 4603 mov r3, r0 + 800a85a: 75fb strb r3, [r7, #23] seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum); seg->chksum_swapped = 1; } #endif return err; - 800a860: f997 3017 ldrsb.w r3, [r7, #23] + 800a85c: f997 3017 ldrsb.w r3, [r7, #23] } - 800a864: 4618 mov r0, r3 - 800a866: 3720 adds r7, #32 - 800a868: 46bd mov sp, r7 - 800a86a: bdb0 pop {r4, r5, r7, pc} - 800a86c: 080165a4 .word 0x080165a4 - 800a870: 08016b68 .word 0x08016b68 - 800a874: 080165f8 .word 0x080165f8 - 800a878: 08016b88 .word 0x08016b88 - 800a87c: 08016ba8 .word 0x08016ba8 - 800a880: 20008c00 .word 0x20008c00 - 800a884: 08016bcc .word 0x08016bcc + 800a860: 4618 mov r0, r3 + 800a862: 3720 adds r7, #32 + 800a864: 46bd mov sp, r7 + 800a866: bdb0 pop {r4, r5, r7, pc} + 800a868: 080165a4 .word 0x080165a4 + 800a86c: 08016b68 .word 0x08016b68 + 800a870: 080165f8 .word 0x080165f8 + 800a874: 08016b88 .word 0x08016b88 + 800a878: 08016ba8 .word 0x08016ba8 + 800a87c: 20008c00 .word 0x20008c00 + 800a880: 08016bcc .word 0x08016bcc -0800a888 : +0800a884 : * * @param pcb the tcp_pcb for which to re-enqueue all unacked segments */ err_t tcp_rexmit_rto_prepare(struct tcp_pcb *pcb) { - 800a888: b5b0 push {r4, r5, r7, lr} - 800a88a: b084 sub sp, #16 - 800a88c: af00 add r7, sp, #0 - 800a88e: 6078 str r0, [r7, #4] + 800a884: b5b0 push {r4, r5, r7, lr} + 800a886: b084 sub sp, #16 + 800a888: af00 add r7, sp, #0 + 800a88a: 6078 str r0, [r7, #4] struct tcp_seg *seg; LWIP_ASSERT("tcp_rexmit_rto_prepare: invalid pcb", pcb != NULL); - 800a890: 687b ldr r3, [r7, #4] - 800a892: 2b00 cmp r3, #0 - 800a894: d106 bne.n 800a8a4 - 800a896: 4b31 ldr r3, [pc, #196] ; (800a95c ) - 800a898: f240 6263 movw r2, #1635 ; 0x663 - 800a89c: 4930 ldr r1, [pc, #192] ; (800a960 ) - 800a89e: 4831 ldr r0, [pc, #196] ; (800a964 ) - 800a8a0: f005 fd98 bl 80103d4 + 800a88c: 687b ldr r3, [r7, #4] + 800a88e: 2b00 cmp r3, #0 + 800a890: d106 bne.n 800a8a0 + 800a892: 4b31 ldr r3, [pc, #196] ; (800a958 ) + 800a894: f240 6263 movw r2, #1635 ; 0x663 + 800a898: 4930 ldr r1, [pc, #192] ; (800a95c ) + 800a89a: 4831 ldr r0, [pc, #196] ; (800a960 ) + 800a89c: f005 fd98 bl 80103d0 if (pcb->unacked == NULL) { - 800a8a4: 687b ldr r3, [r7, #4] - 800a8a6: 6f1b ldr r3, [r3, #112] ; 0x70 - 800a8a8: 2b00 cmp r3, #0 - 800a8aa: d102 bne.n 800a8b2 + 800a8a0: 687b ldr r3, [r7, #4] + 800a8a2: 6f1b ldr r3, [r3, #112] ; 0x70 + 800a8a4: 2b00 cmp r3, #0 + 800a8a6: d102 bne.n 800a8ae return ERR_VAL; - 800a8ac: f06f 0305 mvn.w r3, #5 - 800a8b0: e050 b.n 800a954 + 800a8a8: f06f 0305 mvn.w r3, #5 + 800a8ac: e050 b.n 800a950 /* Move all unacked segments to the head of the unsent queue. However, give up if any of the unsent pbufs are still referenced by the netif driver due to deferred transmission. No point loading the link further if it is struggling to flush its buffered writes. */ for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) { - 800a8b2: 687b ldr r3, [r7, #4] - 800a8b4: 6f1b ldr r3, [r3, #112] ; 0x70 - 800a8b6: 60fb str r3, [r7, #12] - 800a8b8: e00b b.n 800a8d2 + 800a8ae: 687b ldr r3, [r7, #4] + 800a8b0: 6f1b ldr r3, [r3, #112] ; 0x70 + 800a8b2: 60fb str r3, [r7, #12] + 800a8b4: e00b b.n 800a8ce if (tcp_output_segment_busy(seg)) { - 800a8ba: 68f8 ldr r0, [r7, #12] - 800a8bc: f7ff fee6 bl 800a68c - 800a8c0: 4603 mov r3, r0 - 800a8c2: 2b00 cmp r3, #0 - 800a8c4: d002 beq.n 800a8cc + 800a8b6: 68f8 ldr r0, [r7, #12] + 800a8b8: f7ff fee6 bl 800a688 + 800a8bc: 4603 mov r3, r0 + 800a8be: 2b00 cmp r3, #0 + 800a8c0: d002 beq.n 800a8c8 LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n")); return ERR_VAL; - 800a8c6: f06f 0305 mvn.w r3, #5 - 800a8ca: e043 b.n 800a954 + 800a8c2: f06f 0305 mvn.w r3, #5 + 800a8c6: e043 b.n 800a950 for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) { - 800a8cc: 68fb ldr r3, [r7, #12] - 800a8ce: 681b ldr r3, [r3, #0] - 800a8d0: 60fb str r3, [r7, #12] - 800a8d2: 68fb ldr r3, [r7, #12] - 800a8d4: 681b ldr r3, [r3, #0] - 800a8d6: 2b00 cmp r3, #0 - 800a8d8: d1ef bne.n 800a8ba + 800a8c8: 68fb ldr r3, [r7, #12] + 800a8ca: 681b ldr r3, [r3, #0] + 800a8cc: 60fb str r3, [r7, #12] + 800a8ce: 68fb ldr r3, [r7, #12] + 800a8d0: 681b ldr r3, [r3, #0] + 800a8d2: 2b00 cmp r3, #0 + 800a8d4: d1ef bne.n 800a8b6 } } if (tcp_output_segment_busy(seg)) { - 800a8da: 68f8 ldr r0, [r7, #12] - 800a8dc: f7ff fed6 bl 800a68c - 800a8e0: 4603 mov r3, r0 - 800a8e2: 2b00 cmp r3, #0 - 800a8e4: d002 beq.n 800a8ec + 800a8d6: 68f8 ldr r0, [r7, #12] + 800a8d8: f7ff fed6 bl 800a688 + 800a8dc: 4603 mov r3, r0 + 800a8de: 2b00 cmp r3, #0 + 800a8e0: d002 beq.n 800a8e8 LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n")); return ERR_VAL; - 800a8e6: f06f 0305 mvn.w r3, #5 - 800a8ea: e033 b.n 800a954 + 800a8e2: f06f 0305 mvn.w r3, #5 + 800a8e6: e033 b.n 800a950 } /* concatenate unsent queue after unacked queue */ seg->next = pcb->unsent; - 800a8ec: 687b ldr r3, [r7, #4] - 800a8ee: 6eda ldr r2, [r3, #108] ; 0x6c - 800a8f0: 68fb ldr r3, [r7, #12] - 800a8f2: 601a str r2, [r3, #0] + 800a8e8: 687b ldr r3, [r7, #4] + 800a8ea: 6eda ldr r2, [r3, #108] ; 0x6c + 800a8ec: 68fb ldr r3, [r7, #12] + 800a8ee: 601a str r2, [r3, #0] if (pcb->unsent == NULL) { pcb->unsent_oversize = seg->oversize_left; } #endif /* TCP_OVERSIZE_DBGCHECK */ /* unsent queue is the concatenated queue (of unacked, unsent) */ pcb->unsent = pcb->unacked; + 800a8f0: 687b ldr r3, [r7, #4] + 800a8f2: 6f1a ldr r2, [r3, #112] ; 0x70 800a8f4: 687b ldr r3, [r7, #4] - 800a8f6: 6f1a ldr r2, [r3, #112] ; 0x70 - 800a8f8: 687b ldr r3, [r7, #4] - 800a8fa: 66da str r2, [r3, #108] ; 0x6c + 800a8f6: 66da str r2, [r3, #108] ; 0x6c /* unacked queue is now empty */ pcb->unacked = NULL; - 800a8fc: 687b ldr r3, [r7, #4] - 800a8fe: 2200 movs r2, #0 - 800a900: 671a str r2, [r3, #112] ; 0x70 + 800a8f8: 687b ldr r3, [r7, #4] + 800a8fa: 2200 movs r2, #0 + 800a8fc: 671a str r2, [r3, #112] ; 0x70 /* Mark RTO in-progress */ tcp_set_flags(pcb, TF_RTO); - 800a902: 687b ldr r3, [r7, #4] - 800a904: 8b5b ldrh r3, [r3, #26] - 800a906: f443 6300 orr.w r3, r3, #2048 ; 0x800 - 800a90a: b29a uxth r2, r3 - 800a90c: 687b ldr r3, [r7, #4] - 800a90e: 835a strh r2, [r3, #26] + 800a8fe: 687b ldr r3, [r7, #4] + 800a900: 8b5b ldrh r3, [r3, #26] + 800a902: f443 6300 orr.w r3, r3, #2048 ; 0x800 + 800a906: b29a uxth r2, r3 + 800a908: 687b ldr r3, [r7, #4] + 800a90a: 835a strh r2, [r3, #26] /* Record the next byte following retransmit */ pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg); - 800a910: 68fb ldr r3, [r7, #12] - 800a912: 68db ldr r3, [r3, #12] - 800a914: 685b ldr r3, [r3, #4] - 800a916: 4618 mov r0, r3 - 800a918: f7f9 fceb bl 80042f2 - 800a91c: 4604 mov r4, r0 - 800a91e: 68fb ldr r3, [r7, #12] - 800a920: 891b ldrh r3, [r3, #8] - 800a922: 461d mov r5, r3 - 800a924: 68fb ldr r3, [r7, #12] - 800a926: 68db ldr r3, [r3, #12] - 800a928: 899b ldrh r3, [r3, #12] - 800a92a: b29b uxth r3, r3 - 800a92c: 4618 mov r0, r3 - 800a92e: f7f9 fccb bl 80042c8 - 800a932: 4603 mov r3, r0 - 800a934: b2db uxtb r3, r3 - 800a936: f003 0303 and.w r3, r3, #3 - 800a93a: 2b00 cmp r3, #0 - 800a93c: d001 beq.n 800a942 - 800a93e: 2301 movs r3, #1 - 800a940: e000 b.n 800a944 - 800a942: 2300 movs r3, #0 - 800a944: 442b add r3, r5 - 800a946: 18e2 adds r2, r4, r3 - 800a948: 687b ldr r3, [r7, #4] - 800a94a: 64da str r2, [r3, #76] ; 0x4c + 800a90c: 68fb ldr r3, [r7, #12] + 800a90e: 68db ldr r3, [r3, #12] + 800a910: 685b ldr r3, [r3, #4] + 800a912: 4618 mov r0, r3 + 800a914: f7f9 fceb bl 80042ee + 800a918: 4604 mov r4, r0 + 800a91a: 68fb ldr r3, [r7, #12] + 800a91c: 891b ldrh r3, [r3, #8] + 800a91e: 461d mov r5, r3 + 800a920: 68fb ldr r3, [r7, #12] + 800a922: 68db ldr r3, [r3, #12] + 800a924: 899b ldrh r3, [r3, #12] + 800a926: b29b uxth r3, r3 + 800a928: 4618 mov r0, r3 + 800a92a: f7f9 fccb bl 80042c4 + 800a92e: 4603 mov r3, r0 + 800a930: b2db uxtb r3, r3 + 800a932: f003 0303 and.w r3, r3, #3 + 800a936: 2b00 cmp r3, #0 + 800a938: d001 beq.n 800a93e + 800a93a: 2301 movs r3, #1 + 800a93c: e000 b.n 800a940 + 800a93e: 2300 movs r3, #0 + 800a940: 442b add r3, r5 + 800a942: 18e2 adds r2, r4, r3 + 800a944: 687b ldr r3, [r7, #4] + 800a946: 64da str r2, [r3, #76] ; 0x4c /* Don't take any RTT measurements after retransmitting. */ pcb->rttest = 0; - 800a94c: 687b ldr r3, [r7, #4] - 800a94e: 2200 movs r2, #0 - 800a950: 635a str r2, [r3, #52] ; 0x34 + 800a948: 687b ldr r3, [r7, #4] + 800a94a: 2200 movs r2, #0 + 800a94c: 635a str r2, [r3, #52] ; 0x34 return ERR_OK; - 800a952: 2300 movs r3, #0 + 800a94e: 2300 movs r3, #0 } - 800a954: 4618 mov r0, r3 - 800a956: 3710 adds r7, #16 - 800a958: 46bd mov sp, r7 - 800a95a: bdb0 pop {r4, r5, r7, pc} - 800a95c: 080165a4 .word 0x080165a4 - 800a960: 08016be0 .word 0x08016be0 - 800a964: 080165f8 .word 0x080165f8 + 800a950: 4618 mov r0, r3 + 800a952: 3710 adds r7, #16 + 800a954: 46bd mov sp, r7 + 800a956: bdb0 pop {r4, r5, r7, pc} + 800a958: 080165a4 .word 0x080165a4 + 800a95c: 08016be0 .word 0x08016be0 + 800a960: 080165f8 .word 0x080165f8 -0800a968 : +0800a964 : * * @param pcb the tcp_pcb for which to re-enqueue all unacked segments */ void tcp_rexmit_rto_commit(struct tcp_pcb *pcb) { - 800a968: b580 push {r7, lr} - 800a96a: b082 sub sp, #8 - 800a96c: af00 add r7, sp, #0 - 800a96e: 6078 str r0, [r7, #4] + 800a964: b580 push {r7, lr} + 800a966: b082 sub sp, #8 + 800a968: af00 add r7, sp, #0 + 800a96a: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL); - 800a970: 687b ldr r3, [r7, #4] - 800a972: 2b00 cmp r3, #0 - 800a974: d106 bne.n 800a984 - 800a976: 4b0d ldr r3, [pc, #52] ; (800a9ac ) - 800a978: f44f 62d3 mov.w r2, #1688 ; 0x698 - 800a97c: 490c ldr r1, [pc, #48] ; (800a9b0 ) - 800a97e: 480d ldr r0, [pc, #52] ; (800a9b4 ) - 800a980: f005 fd28 bl 80103d4 + 800a96c: 687b ldr r3, [r7, #4] + 800a96e: 2b00 cmp r3, #0 + 800a970: d106 bne.n 800a980 + 800a972: 4b0d ldr r3, [pc, #52] ; (800a9a8 ) + 800a974: f44f 62d3 mov.w r2, #1688 ; 0x698 + 800a978: 490c ldr r1, [pc, #48] ; (800a9ac ) + 800a97a: 480d ldr r0, [pc, #52] ; (800a9b0 ) + 800a97c: f005 fd28 bl 80103d0 /* increment number of retransmissions */ if (pcb->nrtx < 0xFF) { - 800a984: 687b ldr r3, [r7, #4] - 800a986: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 800a98a: 2bff cmp r3, #255 ; 0xff - 800a98c: d007 beq.n 800a99e + 800a980: 687b ldr r3, [r7, #4] + 800a982: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 800a986: 2bff cmp r3, #255 ; 0xff + 800a988: d007 beq.n 800a99a ++pcb->nrtx; - 800a98e: 687b ldr r3, [r7, #4] - 800a990: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 800a994: 3301 adds r3, #1 - 800a996: b2da uxtb r2, r3 - 800a998: 687b ldr r3, [r7, #4] - 800a99a: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 800a98a: 687b ldr r3, [r7, #4] + 800a98c: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 800a990: 3301 adds r3, #1 + 800a992: b2da uxtb r2, r3 + 800a994: 687b ldr r3, [r7, #4] + 800a996: f883 2042 strb.w r2, [r3, #66] ; 0x42 } /* Do the actual retransmission */ tcp_output(pcb); - 800a99e: 6878 ldr r0, [r7, #4] - 800a9a0: f7ff fc80 bl 800a2a4 + 800a99a: 6878 ldr r0, [r7, #4] + 800a99c: f7ff fc80 bl 800a2a0 } - 800a9a4: bf00 nop - 800a9a6: 3708 adds r7, #8 - 800a9a8: 46bd mov sp, r7 - 800a9aa: bd80 pop {r7, pc} - 800a9ac: 080165a4 .word 0x080165a4 - 800a9b0: 08016c04 .word 0x08016c04 - 800a9b4: 080165f8 .word 0x080165f8 + 800a9a0: bf00 nop + 800a9a2: 3708 adds r7, #8 + 800a9a4: 46bd mov sp, r7 + 800a9a6: bd80 pop {r7, pc} + 800a9a8: 080165a4 .word 0x080165a4 + 800a9ac: 08016c04 .word 0x08016c04 + 800a9b0: 080165f8 .word 0x080165f8 -0800a9b8 : +0800a9b4 : * * @param pcb the tcp_pcb for which to re-enqueue all unacked segments */ void tcp_rexmit_rto(struct tcp_pcb *pcb) { - 800a9b8: b580 push {r7, lr} - 800a9ba: b082 sub sp, #8 - 800a9bc: af00 add r7, sp, #0 - 800a9be: 6078 str r0, [r7, #4] + 800a9b4: b580 push {r7, lr} + 800a9b6: b082 sub sp, #8 + 800a9b8: af00 add r7, sp, #0 + 800a9ba: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_rexmit_rto: invalid pcb", pcb != NULL); - 800a9c0: 687b ldr r3, [r7, #4] - 800a9c2: 2b00 cmp r3, #0 - 800a9c4: d106 bne.n 800a9d4 - 800a9c6: 4b0a ldr r3, [pc, #40] ; (800a9f0 ) - 800a9c8: f240 62ad movw r2, #1709 ; 0x6ad - 800a9cc: 4909 ldr r1, [pc, #36] ; (800a9f4 ) - 800a9ce: 480a ldr r0, [pc, #40] ; (800a9f8 ) - 800a9d0: f005 fd00 bl 80103d4 + 800a9bc: 687b ldr r3, [r7, #4] + 800a9be: 2b00 cmp r3, #0 + 800a9c0: d106 bne.n 800a9d0 + 800a9c2: 4b0a ldr r3, [pc, #40] ; (800a9ec ) + 800a9c4: f240 62ad movw r2, #1709 ; 0x6ad + 800a9c8: 4909 ldr r1, [pc, #36] ; (800a9f0 ) + 800a9ca: 480a ldr r0, [pc, #40] ; (800a9f4 ) + 800a9cc: f005 fd00 bl 80103d0 if (tcp_rexmit_rto_prepare(pcb) == ERR_OK) { - 800a9d4: 6878 ldr r0, [r7, #4] - 800a9d6: f7ff ff57 bl 800a888 - 800a9da: 4603 mov r3, r0 - 800a9dc: 2b00 cmp r3, #0 - 800a9de: d102 bne.n 800a9e6 + 800a9d0: 6878 ldr r0, [r7, #4] + 800a9d2: f7ff ff57 bl 800a884 + 800a9d6: 4603 mov r3, r0 + 800a9d8: 2b00 cmp r3, #0 + 800a9da: d102 bne.n 800a9e2 tcp_rexmit_rto_commit(pcb); - 800a9e0: 6878 ldr r0, [r7, #4] - 800a9e2: f7ff ffc1 bl 800a968 + 800a9dc: 6878 ldr r0, [r7, #4] + 800a9de: f7ff ffc1 bl 800a964 } } - 800a9e6: bf00 nop - 800a9e8: 3708 adds r7, #8 - 800a9ea: 46bd mov sp, r7 - 800a9ec: bd80 pop {r7, pc} - 800a9ee: bf00 nop - 800a9f0: 080165a4 .word 0x080165a4 - 800a9f4: 08016c28 .word 0x08016c28 - 800a9f8: 080165f8 .word 0x080165f8 + 800a9e2: bf00 nop + 800a9e4: 3708 adds r7, #8 + 800a9e6: 46bd mov sp, r7 + 800a9e8: bd80 pop {r7, pc} + 800a9ea: bf00 nop + 800a9ec: 080165a4 .word 0x080165a4 + 800a9f0: 08016c28 .word 0x08016c28 + 800a9f4: 080165f8 .word 0x080165f8 -0800a9fc : +0800a9f8 : * * @param pcb the tcp_pcb for which to retransmit the first unacked segment */ err_t tcp_rexmit(struct tcp_pcb *pcb) { - 800a9fc: b590 push {r4, r7, lr} - 800a9fe: b085 sub sp, #20 - 800aa00: af00 add r7, sp, #0 - 800aa02: 6078 str r0, [r7, #4] + 800a9f8: b590 push {r4, r7, lr} + 800a9fa: b085 sub sp, #20 + 800a9fc: af00 add r7, sp, #0 + 800a9fe: 6078 str r0, [r7, #4] struct tcp_seg *seg; struct tcp_seg **cur_seg; LWIP_ASSERT("tcp_rexmit: invalid pcb", pcb != NULL); - 800aa04: 687b ldr r3, [r7, #4] - 800aa06: 2b00 cmp r3, #0 - 800aa08: d106 bne.n 800aa18 - 800aa0a: 4b2f ldr r3, [pc, #188] ; (800aac8 ) - 800aa0c: f240 62c1 movw r2, #1729 ; 0x6c1 - 800aa10: 492e ldr r1, [pc, #184] ; (800aacc ) - 800aa12: 482f ldr r0, [pc, #188] ; (800aad0 ) - 800aa14: f005 fcde bl 80103d4 + 800aa00: 687b ldr r3, [r7, #4] + 800aa02: 2b00 cmp r3, #0 + 800aa04: d106 bne.n 800aa14 + 800aa06: 4b2f ldr r3, [pc, #188] ; (800aac4 ) + 800aa08: f240 62c1 movw r2, #1729 ; 0x6c1 + 800aa0c: 492e ldr r1, [pc, #184] ; (800aac8 ) + 800aa0e: 482f ldr r0, [pc, #188] ; (800aacc ) + 800aa10: f005 fcde bl 80103d0 if (pcb->unacked == NULL) { - 800aa18: 687b ldr r3, [r7, #4] - 800aa1a: 6f1b ldr r3, [r3, #112] ; 0x70 - 800aa1c: 2b00 cmp r3, #0 - 800aa1e: d102 bne.n 800aa26 + 800aa14: 687b ldr r3, [r7, #4] + 800aa16: 6f1b ldr r3, [r3, #112] ; 0x70 + 800aa18: 2b00 cmp r3, #0 + 800aa1a: d102 bne.n 800aa22 return ERR_VAL; - 800aa20: f06f 0305 mvn.w r3, #5 - 800aa24: e04c b.n 800aac0 + 800aa1c: f06f 0305 mvn.w r3, #5 + 800aa20: e04c b.n 800aabc } seg = pcb->unacked; - 800aa26: 687b ldr r3, [r7, #4] - 800aa28: 6f1b ldr r3, [r3, #112] ; 0x70 - 800aa2a: 60bb str r3, [r7, #8] + 800aa22: 687b ldr r3, [r7, #4] + 800aa24: 6f1b ldr r3, [r3, #112] ; 0x70 + 800aa26: 60bb str r3, [r7, #8] /* Give up if the segment is still referenced by the netif driver due to deferred transmission. */ if (tcp_output_segment_busy(seg)) { - 800aa2c: 68b8 ldr r0, [r7, #8] - 800aa2e: f7ff fe2d bl 800a68c - 800aa32: 4603 mov r3, r0 - 800aa34: 2b00 cmp r3, #0 - 800aa36: d002 beq.n 800aa3e + 800aa28: 68b8 ldr r0, [r7, #8] + 800aa2a: f7ff fe2d bl 800a688 + 800aa2e: 4603 mov r3, r0 + 800aa30: 2b00 cmp r3, #0 + 800aa32: d002 beq.n 800aa3a LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit busy\n")); return ERR_VAL; - 800aa38: f06f 0305 mvn.w r3, #5 - 800aa3c: e040 b.n 800aac0 + 800aa34: f06f 0305 mvn.w r3, #5 + 800aa38: e040 b.n 800aabc } /* Move the first unacked segment to the unsent queue */ /* Keep the unsent queue sorted. */ pcb->unacked = seg->next; - 800aa3e: 68bb ldr r3, [r7, #8] - 800aa40: 681a ldr r2, [r3, #0] - 800aa42: 687b ldr r3, [r7, #4] - 800aa44: 671a str r2, [r3, #112] ; 0x70 + 800aa3a: 68bb ldr r3, [r7, #8] + 800aa3c: 681a ldr r2, [r3, #0] + 800aa3e: 687b ldr r3, [r7, #4] + 800aa40: 671a str r2, [r3, #112] ; 0x70 cur_seg = &(pcb->unsent); - 800aa46: 687b ldr r3, [r7, #4] - 800aa48: 336c adds r3, #108 ; 0x6c - 800aa4a: 60fb str r3, [r7, #12] + 800aa42: 687b ldr r3, [r7, #4] + 800aa44: 336c adds r3, #108 ; 0x6c + 800aa46: 60fb str r3, [r7, #12] while (*cur_seg && - 800aa4c: e002 b.n 800aa54 + 800aa48: e002 b.n 800aa50 TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { cur_seg = &((*cur_seg)->next ); - 800aa4e: 68fb ldr r3, [r7, #12] - 800aa50: 681b ldr r3, [r3, #0] - 800aa52: 60fb str r3, [r7, #12] + 800aa4a: 68fb ldr r3, [r7, #12] + 800aa4c: 681b ldr r3, [r3, #0] + 800aa4e: 60fb str r3, [r7, #12] while (*cur_seg && - 800aa54: 68fb ldr r3, [r7, #12] - 800aa56: 681b ldr r3, [r3, #0] - 800aa58: 2b00 cmp r3, #0 - 800aa5a: d011 beq.n 800aa80 + 800aa50: 68fb ldr r3, [r7, #12] + 800aa52: 681b ldr r3, [r3, #0] + 800aa54: 2b00 cmp r3, #0 + 800aa56: d011 beq.n 800aa7c TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - 800aa5c: 68fb ldr r3, [r7, #12] - 800aa5e: 681b ldr r3, [r3, #0] - 800aa60: 68db ldr r3, [r3, #12] - 800aa62: 685b ldr r3, [r3, #4] - 800aa64: 4618 mov r0, r3 - 800aa66: f7f9 fc44 bl 80042f2 - 800aa6a: 4604 mov r4, r0 - 800aa6c: 68bb ldr r3, [r7, #8] - 800aa6e: 68db ldr r3, [r3, #12] - 800aa70: 685b ldr r3, [r3, #4] - 800aa72: 4618 mov r0, r3 - 800aa74: f7f9 fc3d bl 80042f2 - 800aa78: 4603 mov r3, r0 - 800aa7a: 1ae3 subs r3, r4, r3 + 800aa58: 68fb ldr r3, [r7, #12] + 800aa5a: 681b ldr r3, [r3, #0] + 800aa5c: 68db ldr r3, [r3, #12] + 800aa5e: 685b ldr r3, [r3, #4] + 800aa60: 4618 mov r0, r3 + 800aa62: f7f9 fc44 bl 80042ee + 800aa66: 4604 mov r4, r0 + 800aa68: 68bb ldr r3, [r7, #8] + 800aa6a: 68db ldr r3, [r3, #12] + 800aa6c: 685b ldr r3, [r3, #4] + 800aa6e: 4618 mov r0, r3 + 800aa70: f7f9 fc3d bl 80042ee + 800aa74: 4603 mov r3, r0 + 800aa76: 1ae3 subs r3, r4, r3 while (*cur_seg && - 800aa7c: 2b00 cmp r3, #0 - 800aa7e: dbe6 blt.n 800aa4e + 800aa78: 2b00 cmp r3, #0 + 800aa7a: dbe6 blt.n 800aa4a } seg->next = *cur_seg; - 800aa80: 68fb ldr r3, [r7, #12] - 800aa82: 681a ldr r2, [r3, #0] - 800aa84: 68bb ldr r3, [r7, #8] - 800aa86: 601a str r2, [r3, #0] + 800aa7c: 68fb ldr r3, [r7, #12] + 800aa7e: 681a ldr r2, [r3, #0] + 800aa80: 68bb ldr r3, [r7, #8] + 800aa82: 601a str r2, [r3, #0] *cur_seg = seg; - 800aa88: 68fb ldr r3, [r7, #12] - 800aa8a: 68ba ldr r2, [r7, #8] - 800aa8c: 601a str r2, [r3, #0] + 800aa84: 68fb ldr r3, [r7, #12] + 800aa86: 68ba ldr r2, [r7, #8] + 800aa88: 601a str r2, [r3, #0] #if TCP_OVERSIZE if (seg->next == NULL) { - 800aa8e: 68bb ldr r3, [r7, #8] - 800aa90: 681b ldr r3, [r3, #0] - 800aa92: 2b00 cmp r3, #0 - 800aa94: d103 bne.n 800aa9e + 800aa8a: 68bb ldr r3, [r7, #8] + 800aa8c: 681b ldr r3, [r3, #0] + 800aa8e: 2b00 cmp r3, #0 + 800aa90: d103 bne.n 800aa9a /* the retransmitted segment is last in unsent, so reset unsent_oversize */ pcb->unsent_oversize = 0; - 800aa96: 687b ldr r3, [r7, #4] - 800aa98: 2200 movs r2, #0 - 800aa9a: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 800aa92: 687b ldr r3, [r7, #4] + 800aa94: 2200 movs r2, #0 + 800aa96: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 } #endif /* TCP_OVERSIZE */ if (pcb->nrtx < 0xFF) { - 800aa9e: 687b ldr r3, [r7, #4] - 800aaa0: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 800aaa4: 2bff cmp r3, #255 ; 0xff - 800aaa6: d007 beq.n 800aab8 + 800aa9a: 687b ldr r3, [r7, #4] + 800aa9c: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 800aaa0: 2bff cmp r3, #255 ; 0xff + 800aaa2: d007 beq.n 800aab4 ++pcb->nrtx; - 800aaa8: 687b ldr r3, [r7, #4] - 800aaaa: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 800aaae: 3301 adds r3, #1 - 800aab0: b2da uxtb r2, r3 - 800aab2: 687b ldr r3, [r7, #4] - 800aab4: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 800aaa4: 687b ldr r3, [r7, #4] + 800aaa6: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 800aaaa: 3301 adds r3, #1 + 800aaac: b2da uxtb r2, r3 + 800aaae: 687b ldr r3, [r7, #4] + 800aab0: f883 2042 strb.w r2, [r3, #66] ; 0x42 } /* Don't take any rtt measurements after retransmitting. */ pcb->rttest = 0; - 800aab8: 687b ldr r3, [r7, #4] - 800aaba: 2200 movs r2, #0 - 800aabc: 635a str r2, [r3, #52] ; 0x34 + 800aab4: 687b ldr r3, [r7, #4] + 800aab6: 2200 movs r2, #0 + 800aab8: 635a str r2, [r3, #52] ; 0x34 /* Do the actual retransmission. */ MIB2_STATS_INC(mib2.tcpretranssegs); /* No need to call tcp_output: we are always called from tcp_input() and thus tcp_output directly returns. */ return ERR_OK; - 800aabe: 2300 movs r3, #0 + 800aaba: 2300 movs r3, #0 } - 800aac0: 4618 mov r0, r3 - 800aac2: 3714 adds r7, #20 - 800aac4: 46bd mov sp, r7 - 800aac6: bd90 pop {r4, r7, pc} - 800aac8: 080165a4 .word 0x080165a4 - 800aacc: 08016c44 .word 0x08016c44 - 800aad0: 080165f8 .word 0x080165f8 + 800aabc: 4618 mov r0, r3 + 800aabe: 3714 adds r7, #20 + 800aac0: 46bd mov sp, r7 + 800aac2: bd90 pop {r4, r7, pc} + 800aac4: 080165a4 .word 0x080165a4 + 800aac8: 08016c44 .word 0x08016c44 + 800aacc: 080165f8 .word 0x080165f8 -0800aad4 : +0800aad0 : * * @param pcb the tcp_pcb for which to retransmit the first unacked segment */ void tcp_rexmit_fast(struct tcp_pcb *pcb) { - 800aad4: b580 push {r7, lr} - 800aad6: b082 sub sp, #8 - 800aad8: af00 add r7, sp, #0 - 800aada: 6078 str r0, [r7, #4] + 800aad0: b580 push {r7, lr} + 800aad2: b082 sub sp, #8 + 800aad4: af00 add r7, sp, #0 + 800aad6: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_rexmit_fast: invalid pcb", pcb != NULL); - 800aadc: 687b ldr r3, [r7, #4] - 800aade: 2b00 cmp r3, #0 - 800aae0: d106 bne.n 800aaf0 - 800aae2: 4b2a ldr r3, [pc, #168] ; (800ab8c ) - 800aae4: f240 62f9 movw r2, #1785 ; 0x6f9 - 800aae8: 4929 ldr r1, [pc, #164] ; (800ab90 ) - 800aaea: 482a ldr r0, [pc, #168] ; (800ab94 ) - 800aaec: f005 fc72 bl 80103d4 + 800aad8: 687b ldr r3, [r7, #4] + 800aada: 2b00 cmp r3, #0 + 800aadc: d106 bne.n 800aaec + 800aade: 4b2a ldr r3, [pc, #168] ; (800ab88 ) + 800aae0: f240 62f9 movw r2, #1785 ; 0x6f9 + 800aae4: 4929 ldr r1, [pc, #164] ; (800ab8c ) + 800aae6: 482a ldr r0, [pc, #168] ; (800ab90 ) + 800aae8: f005 fc72 bl 80103d0 if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) { - 800aaf0: 687b ldr r3, [r7, #4] - 800aaf2: 6f1b ldr r3, [r3, #112] ; 0x70 - 800aaf4: 2b00 cmp r3, #0 - 800aaf6: d044 beq.n 800ab82 - 800aaf8: 687b ldr r3, [r7, #4] - 800aafa: 8b5b ldrh r3, [r3, #26] - 800aafc: f003 0304 and.w r3, r3, #4 - 800ab00: 2b00 cmp r3, #0 - 800ab02: d13e bne.n 800ab82 + 800aaec: 687b ldr r3, [r7, #4] + 800aaee: 6f1b ldr r3, [r3, #112] ; 0x70 + 800aaf0: 2b00 cmp r3, #0 + 800aaf2: d044 beq.n 800ab7e + 800aaf4: 687b ldr r3, [r7, #4] + 800aaf6: 8b5b ldrh r3, [r3, #26] + 800aaf8: f003 0304 and.w r3, r3, #4 + 800aafc: 2b00 cmp r3, #0 + 800aafe: d13e bne.n 800ab7e LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupacks %"U16_F" (%"U32_F "), fast retransmit %"U32_F"\n", (u16_t)pcb->dupacks, pcb->lastack, lwip_ntohl(pcb->unacked->tcphdr->seqno))); if (tcp_rexmit(pcb) == ERR_OK) { - 800ab04: 6878 ldr r0, [r7, #4] - 800ab06: f7ff ff79 bl 800a9fc - 800ab0a: 4603 mov r3, r0 - 800ab0c: 2b00 cmp r3, #0 - 800ab0e: d138 bne.n 800ab82 + 800ab00: 6878 ldr r0, [r7, #4] + 800ab02: f7ff ff79 bl 800a9f8 + 800ab06: 4603 mov r3, r0 + 800ab08: 2b00 cmp r3, #0 + 800ab0a: d138 bne.n 800ab7e /* Set ssthresh to half of the minimum of the current * cwnd and the advertised window */ pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2; - 800ab10: 687b ldr r3, [r7, #4] - 800ab12: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 800ab16: 687b ldr r3, [r7, #4] - 800ab18: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 800ab1c: 4293 cmp r3, r2 - 800ab1e: bf28 it cs - 800ab20: 4613 movcs r3, r2 - 800ab22: b29b uxth r3, r3 - 800ab24: 0fda lsrs r2, r3, #31 - 800ab26: 4413 add r3, r2 - 800ab28: 105b asrs r3, r3, #1 - 800ab2a: b29a uxth r2, r3 - 800ab2c: 687b ldr r3, [r7, #4] - 800ab2e: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 800ab0c: 687b ldr r3, [r7, #4] + 800ab0e: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 800ab12: 687b ldr r3, [r7, #4] + 800ab14: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 800ab18: 4293 cmp r3, r2 + 800ab1a: bf28 it cs + 800ab1c: 4613 movcs r3, r2 + 800ab1e: b29b uxth r3, r3 + 800ab20: 0fda lsrs r2, r3, #31 + 800ab22: 4413 add r3, r2 + 800ab24: 105b asrs r3, r3, #1 + 800ab26: b29a uxth r2, r3 + 800ab28: 687b ldr r3, [r7, #4] + 800ab2a: f8a3 204a strh.w r2, [r3, #74] ; 0x4a /* The minimum value for ssthresh should be 2 MSS */ if (pcb->ssthresh < (2U * pcb->mss)) { - 800ab32: 687b ldr r3, [r7, #4] - 800ab34: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a - 800ab38: 461a mov r2, r3 - 800ab3a: 687b ldr r3, [r7, #4] - 800ab3c: 8e5b ldrh r3, [r3, #50] ; 0x32 - 800ab3e: 005b lsls r3, r3, #1 - 800ab40: 429a cmp r2, r3 - 800ab42: d206 bcs.n 800ab52 + 800ab2e: 687b ldr r3, [r7, #4] + 800ab30: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a + 800ab34: 461a mov r2, r3 + 800ab36: 687b ldr r3, [r7, #4] + 800ab38: 8e5b ldrh r3, [r3, #50] ; 0x32 + 800ab3a: 005b lsls r3, r3, #1 + 800ab3c: 429a cmp r2, r3 + 800ab3e: d206 bcs.n 800ab4e LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: The minimum value for ssthresh %"TCPWNDSIZE_F " should be min 2 mss %"U16_F"...\n", pcb->ssthresh, (u16_t)(2 * pcb->mss))); pcb->ssthresh = 2 * pcb->mss; - 800ab44: 687b ldr r3, [r7, #4] - 800ab46: 8e5b ldrh r3, [r3, #50] ; 0x32 - 800ab48: 005b lsls r3, r3, #1 - 800ab4a: b29a uxth r2, r3 - 800ab4c: 687b ldr r3, [r7, #4] - 800ab4e: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 800ab40: 687b ldr r3, [r7, #4] + 800ab42: 8e5b ldrh r3, [r3, #50] ; 0x32 + 800ab44: 005b lsls r3, r3, #1 + 800ab46: b29a uxth r2, r3 + 800ab48: 687b ldr r3, [r7, #4] + 800ab4a: f8a3 204a strh.w r2, [r3, #74] ; 0x4a } pcb->cwnd = pcb->ssthresh + 3 * pcb->mss; - 800ab52: 687b ldr r3, [r7, #4] - 800ab54: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 800ab58: 687b ldr r3, [r7, #4] - 800ab5a: 8e5b ldrh r3, [r3, #50] ; 0x32 - 800ab5c: 4619 mov r1, r3 - 800ab5e: 0049 lsls r1, r1, #1 - 800ab60: 440b add r3, r1 - 800ab62: b29b uxth r3, r3 - 800ab64: 4413 add r3, r2 - 800ab66: b29a uxth r2, r3 - 800ab68: 687b ldr r3, [r7, #4] - 800ab6a: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 800ab4e: 687b ldr r3, [r7, #4] + 800ab50: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a + 800ab54: 687b ldr r3, [r7, #4] + 800ab56: 8e5b ldrh r3, [r3, #50] ; 0x32 + 800ab58: 4619 mov r1, r3 + 800ab5a: 0049 lsls r1, r1, #1 + 800ab5c: 440b add r3, r1 + 800ab5e: b29b uxth r3, r3 + 800ab60: 4413 add r3, r2 + 800ab62: b29a uxth r2, r3 + 800ab64: 687b ldr r3, [r7, #4] + 800ab66: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 tcp_set_flags(pcb, TF_INFR); - 800ab6e: 687b ldr r3, [r7, #4] - 800ab70: 8b5b ldrh r3, [r3, #26] - 800ab72: f043 0304 orr.w r3, r3, #4 - 800ab76: b29a uxth r2, r3 - 800ab78: 687b ldr r3, [r7, #4] - 800ab7a: 835a strh r2, [r3, #26] + 800ab6a: 687b ldr r3, [r7, #4] + 800ab6c: 8b5b ldrh r3, [r3, #26] + 800ab6e: f043 0304 orr.w r3, r3, #4 + 800ab72: b29a uxth r2, r3 + 800ab74: 687b ldr r3, [r7, #4] + 800ab76: 835a strh r2, [r3, #26] /* Reset the retransmission timer to prevent immediate rto retransmissions */ pcb->rtime = 0; - 800ab7c: 687b ldr r3, [r7, #4] - 800ab7e: 2200 movs r2, #0 - 800ab80: 861a strh r2, [r3, #48] ; 0x30 + 800ab78: 687b ldr r3, [r7, #4] + 800ab7a: 2200 movs r2, #0 + 800ab7c: 861a strh r2, [r3, #48] ; 0x30 } } } - 800ab82: bf00 nop - 800ab84: 3708 adds r7, #8 - 800ab86: 46bd mov sp, r7 - 800ab88: bd80 pop {r7, pc} - 800ab8a: bf00 nop - 800ab8c: 080165a4 .word 0x080165a4 - 800ab90: 08016c5c .word 0x08016c5c - 800ab94: 080165f8 .word 0x080165f8 + 800ab7e: bf00 nop + 800ab80: 3708 adds r7, #8 + 800ab82: 46bd mov sp, r7 + 800ab84: bd80 pop {r7, pc} + 800ab86: bf00 nop + 800ab88: 080165a4 .word 0x080165a4 + 800ab8c: 08016c5c .word 0x08016c5c + 800ab90: 080165f8 .word 0x080165f8 -0800ab98 : +0800ab94 : static struct pbuf * tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen, u32_t seqno_be /* already in network byte order */, u16_t src_port, u16_t dst_port, u8_t flags, u16_t wnd) { - 800ab98: b580 push {r7, lr} - 800ab9a: b086 sub sp, #24 - 800ab9c: af00 add r7, sp, #0 - 800ab9e: 60f8 str r0, [r7, #12] - 800aba0: 607b str r3, [r7, #4] - 800aba2: 460b mov r3, r1 - 800aba4: 817b strh r3, [r7, #10] - 800aba6: 4613 mov r3, r2 - 800aba8: 813b strh r3, [r7, #8] + 800ab94: b580 push {r7, lr} + 800ab96: b086 sub sp, #24 + 800ab98: af00 add r7, sp, #0 + 800ab9a: 60f8 str r0, [r7, #12] + 800ab9c: 607b str r3, [r7, #4] + 800ab9e: 460b mov r3, r1 + 800aba0: 817b strh r3, [r7, #10] + 800aba2: 4613 mov r3, r2 + 800aba4: 813b strh r3, [r7, #8] struct tcp_hdr *tcphdr; struct pbuf *p; p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM); - 800abaa: 897a ldrh r2, [r7, #10] - 800abac: 893b ldrh r3, [r7, #8] - 800abae: 4413 add r3, r2 + 800aba6: 897a ldrh r2, [r7, #10] + 800aba8: 893b ldrh r3, [r7, #8] + 800abaa: 4413 add r3, r2 + 800abac: b29b uxth r3, r3 + 800abae: 3314 adds r3, #20 800abb0: b29b uxth r3, r3 - 800abb2: 3314 adds r3, #20 - 800abb4: b29b uxth r3, r3 - 800abb6: f44f 7220 mov.w r2, #640 ; 0x280 - 800abba: 4619 mov r1, r3 - 800abbc: 2022 movs r0, #34 ; 0x22 - 800abbe: f7fa fc09 bl 80053d4 - 800abc2: 6178 str r0, [r7, #20] + 800abb2: f44f 7220 mov.w r2, #640 ; 0x280 + 800abb6: 4619 mov r1, r3 + 800abb8: 2022 movs r0, #34 ; 0x22 + 800abba: f7fa fc09 bl 80053d0 + 800abbe: 6178 str r0, [r7, #20] if (p != NULL) { - 800abc4: 697b ldr r3, [r7, #20] - 800abc6: 2b00 cmp r3, #0 - 800abc8: d04d beq.n 800ac66 + 800abc0: 697b ldr r3, [r7, #20] + 800abc2: 2b00 cmp r3, #0 + 800abc4: d04d beq.n 800ac62 LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr", - 800abca: 897b ldrh r3, [r7, #10] - 800abcc: 3313 adds r3, #19 - 800abce: 697a ldr r2, [r7, #20] - 800abd0: 8952 ldrh r2, [r2, #10] - 800abd2: 4293 cmp r3, r2 - 800abd4: db06 blt.n 800abe4 - 800abd6: 4b26 ldr r3, [pc, #152] ; (800ac70 ) - 800abd8: f240 7223 movw r2, #1827 ; 0x723 - 800abdc: 4925 ldr r1, [pc, #148] ; (800ac74 ) - 800abde: 4826 ldr r0, [pc, #152] ; (800ac78 ) - 800abe0: f005 fbf8 bl 80103d4 + 800abc6: 897b ldrh r3, [r7, #10] + 800abc8: 3313 adds r3, #19 + 800abca: 697a ldr r2, [r7, #20] + 800abcc: 8952 ldrh r2, [r2, #10] + 800abce: 4293 cmp r3, r2 + 800abd0: db06 blt.n 800abe0 + 800abd2: 4b26 ldr r3, [pc, #152] ; (800ac6c ) + 800abd4: f240 7223 movw r2, #1827 ; 0x723 + 800abd8: 4925 ldr r1, [pc, #148] ; (800ac70 ) + 800abda: 4826 ldr r0, [pc, #152] ; (800ac74 ) + 800abdc: f005 fbf8 bl 80103d0 (p->len >= TCP_HLEN + optlen)); tcphdr = (struct tcp_hdr *)p->payload; - 800abe4: 697b ldr r3, [r7, #20] - 800abe6: 685b ldr r3, [r3, #4] - 800abe8: 613b str r3, [r7, #16] + 800abe0: 697b ldr r3, [r7, #20] + 800abe2: 685b ldr r3, [r3, #4] + 800abe4: 613b str r3, [r7, #16] tcphdr->src = lwip_htons(src_port); - 800abea: 8c3b ldrh r3, [r7, #32] - 800abec: 4618 mov r0, r3 - 800abee: f7f9 fb6b bl 80042c8 - 800abf2: 4603 mov r3, r0 - 800abf4: 461a mov r2, r3 - 800abf6: 693b ldr r3, [r7, #16] - 800abf8: 801a strh r2, [r3, #0] + 800abe6: 8c3b ldrh r3, [r7, #32] + 800abe8: 4618 mov r0, r3 + 800abea: f7f9 fb6b bl 80042c4 + 800abee: 4603 mov r3, r0 + 800abf0: 461a mov r2, r3 + 800abf2: 693b ldr r3, [r7, #16] + 800abf4: 801a strh r2, [r3, #0] tcphdr->dest = lwip_htons(dst_port); - 800abfa: 8cbb ldrh r3, [r7, #36] ; 0x24 - 800abfc: 4618 mov r0, r3 - 800abfe: f7f9 fb63 bl 80042c8 - 800ac02: 4603 mov r3, r0 - 800ac04: 461a mov r2, r3 - 800ac06: 693b ldr r3, [r7, #16] - 800ac08: 805a strh r2, [r3, #2] + 800abf6: 8cbb ldrh r3, [r7, #36] ; 0x24 + 800abf8: 4618 mov r0, r3 + 800abfa: f7f9 fb63 bl 80042c4 + 800abfe: 4603 mov r3, r0 + 800ac00: 461a mov r2, r3 + 800ac02: 693b ldr r3, [r7, #16] + 800ac04: 805a strh r2, [r3, #2] tcphdr->seqno = seqno_be; - 800ac0a: 693b ldr r3, [r7, #16] - 800ac0c: 687a ldr r2, [r7, #4] - 800ac0e: 605a str r2, [r3, #4] + 800ac06: 693b ldr r3, [r7, #16] + 800ac08: 687a ldr r2, [r7, #4] + 800ac0a: 605a str r2, [r3, #4] tcphdr->ackno = lwip_htonl(ackno); - 800ac10: 68f8 ldr r0, [r7, #12] - 800ac12: f7f9 fb6e bl 80042f2 - 800ac16: 4602 mov r2, r0 - 800ac18: 693b ldr r3, [r7, #16] - 800ac1a: 609a str r2, [r3, #8] + 800ac0c: 68f8 ldr r0, [r7, #12] + 800ac0e: f7f9 fb6e bl 80042ee + 800ac12: 4602 mov r2, r0 + 800ac14: 693b ldr r3, [r7, #16] + 800ac16: 609a str r2, [r3, #8] TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), flags); - 800ac1c: 897b ldrh r3, [r7, #10] - 800ac1e: 089b lsrs r3, r3, #2 + 800ac18: 897b ldrh r3, [r7, #10] + 800ac1a: 089b lsrs r3, r3, #2 + 800ac1c: b29b uxth r3, r3 + 800ac1e: 3305 adds r3, #5 800ac20: b29b uxth r3, r3 - 800ac22: 3305 adds r3, #5 - 800ac24: b29b uxth r3, r3 - 800ac26: 031b lsls r3, r3, #12 - 800ac28: b29a uxth r2, r3 - 800ac2a: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 + 800ac22: 031b lsls r3, r3, #12 + 800ac24: b29a uxth r2, r3 + 800ac26: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 + 800ac2a: b29b uxth r3, r3 + 800ac2c: 4313 orrs r3, r2 800ac2e: b29b uxth r3, r3 - 800ac30: 4313 orrs r3, r2 - 800ac32: b29b uxth r3, r3 - 800ac34: 4618 mov r0, r3 - 800ac36: f7f9 fb47 bl 80042c8 - 800ac3a: 4603 mov r3, r0 - 800ac3c: 461a mov r2, r3 - 800ac3e: 693b ldr r3, [r7, #16] - 800ac40: 819a strh r2, [r3, #12] + 800ac30: 4618 mov r0, r3 + 800ac32: f7f9 fb47 bl 80042c4 + 800ac36: 4603 mov r3, r0 + 800ac38: 461a mov r2, r3 + 800ac3a: 693b ldr r3, [r7, #16] + 800ac3c: 819a strh r2, [r3, #12] tcphdr->wnd = lwip_htons(wnd); - 800ac42: 8dbb ldrh r3, [r7, #44] ; 0x2c - 800ac44: 4618 mov r0, r3 - 800ac46: f7f9 fb3f bl 80042c8 - 800ac4a: 4603 mov r3, r0 - 800ac4c: 461a mov r2, r3 - 800ac4e: 693b ldr r3, [r7, #16] - 800ac50: 81da strh r2, [r3, #14] + 800ac3e: 8dbb ldrh r3, [r7, #44] ; 0x2c + 800ac40: 4618 mov r0, r3 + 800ac42: f7f9 fb3f bl 80042c4 + 800ac46: 4603 mov r3, r0 + 800ac48: 461a mov r2, r3 + 800ac4a: 693b ldr r3, [r7, #16] + 800ac4c: 81da strh r2, [r3, #14] tcphdr->chksum = 0; - 800ac52: 693b ldr r3, [r7, #16] + 800ac4e: 693b ldr r3, [r7, #16] + 800ac50: 2200 movs r2, #0 + 800ac52: 741a strb r2, [r3, #16] 800ac54: 2200 movs r2, #0 - 800ac56: 741a strb r2, [r3, #16] - 800ac58: 2200 movs r2, #0 - 800ac5a: 745a strb r2, [r3, #17] + 800ac56: 745a strb r2, [r3, #17] tcphdr->urgp = 0; - 800ac5c: 693b ldr r3, [r7, #16] + 800ac58: 693b ldr r3, [r7, #16] + 800ac5a: 2200 movs r2, #0 + 800ac5c: 749a strb r2, [r3, #18] 800ac5e: 2200 movs r2, #0 - 800ac60: 749a strb r2, [r3, #18] - 800ac62: 2200 movs r2, #0 - 800ac64: 74da strb r2, [r3, #19] + 800ac60: 74da strb r2, [r3, #19] } return p; - 800ac66: 697b ldr r3, [r7, #20] + 800ac62: 697b ldr r3, [r7, #20] } - 800ac68: 4618 mov r0, r3 - 800ac6a: 3718 adds r7, #24 - 800ac6c: 46bd mov sp, r7 - 800ac6e: bd80 pop {r7, pc} - 800ac70: 080165a4 .word 0x080165a4 - 800ac74: 08016c7c .word 0x08016c7c - 800ac78: 080165f8 .word 0x080165f8 + 800ac64: 4618 mov r0, r3 + 800ac66: 3718 adds r7, #24 + 800ac68: 46bd mov sp, r7 + 800ac6a: bd80 pop {r7, pc} + 800ac6c: 080165a4 .word 0x080165a4 + 800ac70: 08016c7c .word 0x08016c7c + 800ac74: 080165f8 .word 0x080165f8 -0800ac7c : +0800ac78 : * @return pbuf with p->payload being the tcp_hdr */ static struct pbuf * tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen, u32_t seqno_be /* already in network byte order */) { - 800ac7c: b5b0 push {r4, r5, r7, lr} - 800ac7e: b08a sub sp, #40 ; 0x28 - 800ac80: af04 add r7, sp, #16 - 800ac82: 60f8 str r0, [r7, #12] - 800ac84: 607b str r3, [r7, #4] - 800ac86: 460b mov r3, r1 - 800ac88: 817b strh r3, [r7, #10] - 800ac8a: 4613 mov r3, r2 - 800ac8c: 813b strh r3, [r7, #8] + 800ac78: b5b0 push {r4, r5, r7, lr} + 800ac7a: b08a sub sp, #40 ; 0x28 + 800ac7c: af04 add r7, sp, #16 + 800ac7e: 60f8 str r0, [r7, #12] + 800ac80: 607b str r3, [r7, #4] + 800ac82: 460b mov r3, r1 + 800ac84: 817b strh r3, [r7, #10] + 800ac86: 4613 mov r3, r2 + 800ac88: 813b strh r3, [r7, #8] struct pbuf *p; LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL); - 800ac8e: 68fb ldr r3, [r7, #12] - 800ac90: 2b00 cmp r3, #0 - 800ac92: d106 bne.n 800aca2 - 800ac94: 4b15 ldr r3, [pc, #84] ; (800acec ) - 800ac96: f240 7242 movw r2, #1858 ; 0x742 - 800ac9a: 4915 ldr r1, [pc, #84] ; (800acf0 ) - 800ac9c: 4815 ldr r0, [pc, #84] ; (800acf4 ) - 800ac9e: f005 fb99 bl 80103d4 + 800ac8a: 68fb ldr r3, [r7, #12] + 800ac8c: 2b00 cmp r3, #0 + 800ac8e: d106 bne.n 800ac9e + 800ac90: 4b15 ldr r3, [pc, #84] ; (800ace8 ) + 800ac92: f240 7242 movw r2, #1858 ; 0x742 + 800ac96: 4915 ldr r1, [pc, #84] ; (800acec ) + 800ac98: 4815 ldr r0, [pc, #84] ; (800acf0 ) + 800ac9a: f005 fb99 bl 80103d0 p = tcp_output_alloc_header_common(pcb->rcv_nxt, optlen, datalen, + 800ac9e: 68fb ldr r3, [r7, #12] + 800aca0: 6a58 ldr r0, [r3, #36] ; 0x24 800aca2: 68fb ldr r3, [r7, #12] - 800aca4: 6a58 ldr r0, [r3, #36] ; 0x24 - 800aca6: 68fb ldr r3, [r7, #12] - 800aca8: 8adb ldrh r3, [r3, #22] - 800acaa: 68fa ldr r2, [r7, #12] - 800acac: 8b12 ldrh r2, [r2, #24] - 800acae: 68f9 ldr r1, [r7, #12] - 800acb0: 8d49 ldrh r1, [r1, #42] ; 0x2a - 800acb2: 893d ldrh r5, [r7, #8] - 800acb4: 897c ldrh r4, [r7, #10] - 800acb6: 9103 str r1, [sp, #12] - 800acb8: 2110 movs r1, #16 - 800acba: 9102 str r1, [sp, #8] - 800acbc: 9201 str r2, [sp, #4] - 800acbe: 9300 str r3, [sp, #0] - 800acc0: 687b ldr r3, [r7, #4] - 800acc2: 462a mov r2, r5 - 800acc4: 4621 mov r1, r4 - 800acc6: f7ff ff67 bl 800ab98 - 800acca: 6178 str r0, [r7, #20] + 800aca4: 8adb ldrh r3, [r3, #22] + 800aca6: 68fa ldr r2, [r7, #12] + 800aca8: 8b12 ldrh r2, [r2, #24] + 800acaa: 68f9 ldr r1, [r7, #12] + 800acac: 8d49 ldrh r1, [r1, #42] ; 0x2a + 800acae: 893d ldrh r5, [r7, #8] + 800acb0: 897c ldrh r4, [r7, #10] + 800acb2: 9103 str r1, [sp, #12] + 800acb4: 2110 movs r1, #16 + 800acb6: 9102 str r1, [sp, #8] + 800acb8: 9201 str r2, [sp, #4] + 800acba: 9300 str r3, [sp, #0] + 800acbc: 687b ldr r3, [r7, #4] + 800acbe: 462a mov r2, r5 + 800acc0: 4621 mov r1, r4 + 800acc2: f7ff ff67 bl 800ab94 + 800acc6: 6178 str r0, [r7, #20] seqno_be, pcb->local_port, pcb->remote_port, TCP_ACK, TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd))); if (p != NULL) { - 800accc: 697b ldr r3, [r7, #20] - 800acce: 2b00 cmp r3, #0 - 800acd0: d006 beq.n 800ace0 + 800acc8: 697b ldr r3, [r7, #20] + 800acca: 2b00 cmp r3, #0 + 800accc: d006 beq.n 800acdc /* If we're sending a packet, update the announced right window edge */ pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; - 800acd2: 68fb ldr r3, [r7, #12] - 800acd4: 6a5b ldr r3, [r3, #36] ; 0x24 - 800acd6: 68fa ldr r2, [r7, #12] - 800acd8: 8d52 ldrh r2, [r2, #42] ; 0x2a - 800acda: 441a add r2, r3 - 800acdc: 68fb ldr r3, [r7, #12] - 800acde: 62da str r2, [r3, #44] ; 0x2c + 800acce: 68fb ldr r3, [r7, #12] + 800acd0: 6a5b ldr r3, [r3, #36] ; 0x24 + 800acd2: 68fa ldr r2, [r7, #12] + 800acd4: 8d52 ldrh r2, [r2, #42] ; 0x2a + 800acd6: 441a add r2, r3 + 800acd8: 68fb ldr r3, [r7, #12] + 800acda: 62da str r2, [r3, #44] ; 0x2c } return p; - 800ace0: 697b ldr r3, [r7, #20] + 800acdc: 697b ldr r3, [r7, #20] } - 800ace2: 4618 mov r0, r3 - 800ace4: 3718 adds r7, #24 - 800ace6: 46bd mov sp, r7 - 800ace8: bdb0 pop {r4, r5, r7, pc} - 800acea: bf00 nop - 800acec: 080165a4 .word 0x080165a4 - 800acf0: 08016cac .word 0x08016cac - 800acf4: 080165f8 .word 0x080165f8 + 800acde: 4618 mov r0, r3 + 800ace0: 3718 adds r7, #24 + 800ace2: 46bd mov sp, r7 + 800ace4: bdb0 pop {r4, r5, r7, pc} + 800ace6: bf00 nop + 800ace8: 080165a4 .word 0x080165a4 + 800acec: 08016cac .word 0x08016cac + 800acf0: 080165f8 .word 0x080165f8 -0800acf8 : +0800acf4 : /* Fill in options for control segments */ static void tcp_output_fill_options(const struct tcp_pcb *pcb, struct pbuf *p, u8_t optflags, u8_t num_sacks) { - 800acf8: b580 push {r7, lr} - 800acfa: b088 sub sp, #32 - 800acfc: af00 add r7, sp, #0 - 800acfe: 60f8 str r0, [r7, #12] - 800ad00: 60b9 str r1, [r7, #8] - 800ad02: 4611 mov r1, r2 - 800ad04: 461a mov r2, r3 - 800ad06: 460b mov r3, r1 - 800ad08: 71fb strb r3, [r7, #7] - 800ad0a: 4613 mov r3, r2 - 800ad0c: 71bb strb r3, [r7, #6] + 800acf4: b580 push {r7, lr} + 800acf6: b088 sub sp, #32 + 800acf8: af00 add r7, sp, #0 + 800acfa: 60f8 str r0, [r7, #12] + 800acfc: 60b9 str r1, [r7, #8] + 800acfe: 4611 mov r1, r2 + 800ad00: 461a mov r2, r3 + 800ad02: 460b mov r3, r1 + 800ad04: 71fb strb r3, [r7, #7] + 800ad06: 4613 mov r3, r2 + 800ad08: 71bb strb r3, [r7, #6] struct tcp_hdr *tcphdr; u32_t *opts; u16_t sacks_len = 0; - 800ad0e: 2300 movs r3, #0 - 800ad10: 83fb strh r3, [r7, #30] + 800ad0a: 2300 movs r3, #0 + 800ad0c: 83fb strh r3, [r7, #30] LWIP_ASSERT("tcp_output_fill_options: invalid pbuf", p != NULL); - 800ad12: 68bb ldr r3, [r7, #8] - 800ad14: 2b00 cmp r3, #0 - 800ad16: d106 bne.n 800ad26 - 800ad18: 4b13 ldr r3, [pc, #76] ; (800ad68 ) - 800ad1a: f240 7256 movw r2, #1878 ; 0x756 - 800ad1e: 4913 ldr r1, [pc, #76] ; (800ad6c ) - 800ad20: 4813 ldr r0, [pc, #76] ; (800ad70 ) - 800ad22: f005 fb57 bl 80103d4 + 800ad0e: 68bb ldr r3, [r7, #8] + 800ad10: 2b00 cmp r3, #0 + 800ad12: d106 bne.n 800ad22 + 800ad14: 4b13 ldr r3, [pc, #76] ; (800ad64 ) + 800ad16: f240 7256 movw r2, #1878 ; 0x756 + 800ad1a: 4913 ldr r1, [pc, #76] ; (800ad68 ) + 800ad1c: 4813 ldr r0, [pc, #76] ; (800ad6c ) + 800ad1e: f005 fb57 bl 80103d0 tcphdr = (struct tcp_hdr *)p->payload; - 800ad26: 68bb ldr r3, [r7, #8] - 800ad28: 685b ldr r3, [r3, #4] - 800ad2a: 61bb str r3, [r7, #24] + 800ad22: 68bb ldr r3, [r7, #8] + 800ad24: 685b ldr r3, [r3, #4] + 800ad26: 61bb str r3, [r7, #24] opts = (u32_t *)(void *)(tcphdr + 1); - 800ad2c: 69bb ldr r3, [r7, #24] - 800ad2e: 3314 adds r3, #20 - 800ad30: 617b str r3, [r7, #20] + 800ad28: 69bb ldr r3, [r7, #24] + 800ad2a: 3314 adds r3, #20 + 800ad2c: 617b str r3, [r7, #20] opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, tcphdr, pcb, opts); #endif LWIP_UNUSED_ARG(pcb); LWIP_UNUSED_ARG(sacks_len); LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(tcphdr + 1)) + sacks_len * 4 + LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb)); - 800ad32: 69bb ldr r3, [r7, #24] - 800ad34: f103 0214 add.w r2, r3, #20 - 800ad38: 8bfb ldrh r3, [r7, #30] - 800ad3a: 009b lsls r3, r3, #2 - 800ad3c: 4619 mov r1, r3 - 800ad3e: 79fb ldrb r3, [r7, #7] - 800ad40: 009b lsls r3, r3, #2 - 800ad42: f003 0304 and.w r3, r3, #4 - 800ad46: 440b add r3, r1 - 800ad48: 4413 add r3, r2 - 800ad4a: 697a ldr r2, [r7, #20] - 800ad4c: 429a cmp r2, r3 - 800ad4e: d006 beq.n 800ad5e - 800ad50: 4b05 ldr r3, [pc, #20] ; (800ad68 ) - 800ad52: f240 7275 movw r2, #1909 ; 0x775 - 800ad56: 4907 ldr r1, [pc, #28] ; (800ad74 ) - 800ad58: 4805 ldr r0, [pc, #20] ; (800ad70 ) - 800ad5a: f005 fb3b bl 80103d4 + 800ad2e: 69bb ldr r3, [r7, #24] + 800ad30: f103 0214 add.w r2, r3, #20 + 800ad34: 8bfb ldrh r3, [r7, #30] + 800ad36: 009b lsls r3, r3, #2 + 800ad38: 4619 mov r1, r3 + 800ad3a: 79fb ldrb r3, [r7, #7] + 800ad3c: 009b lsls r3, r3, #2 + 800ad3e: f003 0304 and.w r3, r3, #4 + 800ad42: 440b add r3, r1 + 800ad44: 4413 add r3, r2 + 800ad46: 697a ldr r2, [r7, #20] + 800ad48: 429a cmp r2, r3 + 800ad4a: d006 beq.n 800ad5a + 800ad4c: 4b05 ldr r3, [pc, #20] ; (800ad64 ) + 800ad4e: f240 7275 movw r2, #1909 ; 0x775 + 800ad52: 4907 ldr r1, [pc, #28] ; (800ad70 ) + 800ad54: 4805 ldr r0, [pc, #20] ; (800ad6c ) + 800ad56: f005 fb3b bl 80103d0 LWIP_UNUSED_ARG(optflags); /* for LWIP_NOASSERT */ LWIP_UNUSED_ARG(opts); /* for LWIP_NOASSERT */ } - 800ad5e: bf00 nop - 800ad60: 3720 adds r7, #32 - 800ad62: 46bd mov sp, r7 - 800ad64: bd80 pop {r7, pc} - 800ad66: bf00 nop - 800ad68: 080165a4 .word 0x080165a4 - 800ad6c: 08016cd4 .word 0x08016cd4 - 800ad70: 080165f8 .word 0x080165f8 - 800ad74: 08016bcc .word 0x08016bcc + 800ad5a: bf00 nop + 800ad5c: 3720 adds r7, #32 + 800ad5e: 46bd mov sp, r7 + 800ad60: bd80 pop {r7, pc} + 800ad62: bf00 nop + 800ad64: 080165a4 .word 0x080165a4 + 800ad68: 08016cd4 .word 0x08016cd4 + 800ad6c: 080165f8 .word 0x080165f8 + 800ad70: 08016bcc .word 0x08016bcc -0800ad78 : +0800ad74 : * header checksum and calling ip_output_if while handling netif hints and stats. */ static err_t tcp_output_control_segment(const struct tcp_pcb *pcb, struct pbuf *p, const ip_addr_t *src, const ip_addr_t *dst) { - 800ad78: b580 push {r7, lr} - 800ad7a: b08a sub sp, #40 ; 0x28 - 800ad7c: af04 add r7, sp, #16 - 800ad7e: 60f8 str r0, [r7, #12] - 800ad80: 60b9 str r1, [r7, #8] - 800ad82: 607a str r2, [r7, #4] - 800ad84: 603b str r3, [r7, #0] + 800ad74: b580 push {r7, lr} + 800ad76: b08a sub sp, #40 ; 0x28 + 800ad78: af04 add r7, sp, #16 + 800ad7a: 60f8 str r0, [r7, #12] + 800ad7c: 60b9 str r1, [r7, #8] + 800ad7e: 607a str r2, [r7, #4] + 800ad80: 603b str r3, [r7, #0] err_t err; struct netif *netif; LWIP_ASSERT("tcp_output_control_segment: invalid pbuf", p != NULL); - 800ad86: 68bb ldr r3, [r7, #8] - 800ad88: 2b00 cmp r3, #0 - 800ad8a: d106 bne.n 800ad9a - 800ad8c: 4b1c ldr r3, [pc, #112] ; (800ae00 ) - 800ad8e: f240 7287 movw r2, #1927 ; 0x787 - 800ad92: 491c ldr r1, [pc, #112] ; (800ae04 ) - 800ad94: 481c ldr r0, [pc, #112] ; (800ae08 ) - 800ad96: f005 fb1d bl 80103d4 + 800ad82: 68bb ldr r3, [r7, #8] + 800ad84: 2b00 cmp r3, #0 + 800ad86: d106 bne.n 800ad96 + 800ad88: 4b1c ldr r3, [pc, #112] ; (800adfc ) + 800ad8a: f240 7287 movw r2, #1927 ; 0x787 + 800ad8e: 491c ldr r1, [pc, #112] ; (800ae00 ) + 800ad90: 481c ldr r0, [pc, #112] ; (800ae04 ) + 800ad92: f005 fb1d bl 80103d0 netif = tcp_route(pcb, src, dst); - 800ad9a: 683a ldr r2, [r7, #0] - 800ad9c: 6879 ldr r1, [r7, #4] - 800ad9e: 68f8 ldr r0, [r7, #12] - 800ada0: f7fe ff40 bl 8009c24 - 800ada4: 6138 str r0, [r7, #16] + 800ad96: 683a ldr r2, [r7, #0] + 800ad98: 6879 ldr r1, [r7, #4] + 800ad9a: 68f8 ldr r0, [r7, #12] + 800ad9c: f7fe ff40 bl 8009c20 + 800ada0: 6138 str r0, [r7, #16] if (netif == NULL) { - 800ada6: 693b ldr r3, [r7, #16] - 800ada8: 2b00 cmp r3, #0 - 800adaa: d102 bne.n 800adb2 + 800ada2: 693b ldr r3, [r7, #16] + 800ada4: 2b00 cmp r3, #0 + 800ada6: d102 bne.n 800adae err = ERR_RTE; - 800adac: 23fc movs r3, #252 ; 0xfc - 800adae: 75fb strb r3, [r7, #23] - 800adb0: e01c b.n 800adec + 800ada8: 23fc movs r3, #252 ; 0xfc + 800adaa: 75fb strb r3, [r7, #23] + 800adac: e01c b.n 800ade8 struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload; tcphdr->chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len, src, dst); } #endif if (pcb != NULL) { - 800adb2: 68fb ldr r3, [r7, #12] - 800adb4: 2b00 cmp r3, #0 - 800adb6: d006 beq.n 800adc6 + 800adae: 68fb ldr r3, [r7, #12] + 800adb0: 2b00 cmp r3, #0 + 800adb2: d006 beq.n 800adc2 NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints))); ttl = pcb->ttl; - 800adb8: 68fb ldr r3, [r7, #12] - 800adba: 7adb ldrb r3, [r3, #11] - 800adbc: 75bb strb r3, [r7, #22] + 800adb4: 68fb ldr r3, [r7, #12] + 800adb6: 7adb ldrb r3, [r3, #11] + 800adb8: 75bb strb r3, [r7, #22] tos = pcb->tos; - 800adbe: 68fb ldr r3, [r7, #12] - 800adc0: 7a9b ldrb r3, [r3, #10] - 800adc2: 757b strb r3, [r7, #21] - 800adc4: e003 b.n 800adce + 800adba: 68fb ldr r3, [r7, #12] + 800adbc: 7a9b ldrb r3, [r3, #10] + 800adbe: 757b strb r3, [r7, #21] + 800adc0: e003 b.n 800adca } else { /* Send output with hardcoded TTL/HL since we have no access to the pcb */ ttl = TCP_TTL; - 800adc6: 23ff movs r3, #255 ; 0xff - 800adc8: 75bb strb r3, [r7, #22] + 800adc2: 23ff movs r3, #255 ; 0xff + 800adc4: 75bb strb r3, [r7, #22] tos = 0; - 800adca: 2300 movs r3, #0 - 800adcc: 757b strb r3, [r7, #21] + 800adc6: 2300 movs r3, #0 + 800adc8: 757b strb r3, [r7, #21] } TCP_STATS_INC(tcp.xmit); err = ip_output_if(p, src, dst, ttl, tos, IP_PROTO_TCP, netif); - 800adce: 7dba ldrb r2, [r7, #22] - 800add0: 693b ldr r3, [r7, #16] - 800add2: 9302 str r3, [sp, #8] - 800add4: 2306 movs r3, #6 - 800add6: 9301 str r3, [sp, #4] - 800add8: 7d7b ldrb r3, [r7, #21] - 800adda: 9300 str r3, [sp, #0] - 800addc: 4613 mov r3, r2 - 800adde: 683a ldr r2, [r7, #0] - 800ade0: 6879 ldr r1, [r7, #4] - 800ade2: 68b8 ldr r0, [r7, #8] - 800ade4: f004 f926 bl 800f034 - 800ade8: 4603 mov r3, r0 - 800adea: 75fb strb r3, [r7, #23] + 800adca: 7dba ldrb r2, [r7, #22] + 800adcc: 693b ldr r3, [r7, #16] + 800adce: 9302 str r3, [sp, #8] + 800add0: 2306 movs r3, #6 + 800add2: 9301 str r3, [sp, #4] + 800add4: 7d7b ldrb r3, [r7, #21] + 800add6: 9300 str r3, [sp, #0] + 800add8: 4613 mov r3, r2 + 800adda: 683a ldr r2, [r7, #0] + 800addc: 6879 ldr r1, [r7, #4] + 800adde: 68b8 ldr r0, [r7, #8] + 800ade0: f004 f926 bl 800f030 + 800ade4: 4603 mov r3, r0 + 800ade6: 75fb strb r3, [r7, #23] NETIF_RESET_HINTS(netif); } pbuf_free(p); - 800adec: 68b8 ldr r0, [r7, #8] - 800adee: f7fa fdd5 bl 800599c + 800ade8: 68b8 ldr r0, [r7, #8] + 800adea: f7fa fdd5 bl 8005998 return err; - 800adf2: f997 3017 ldrsb.w r3, [r7, #23] + 800adee: f997 3017 ldrsb.w r3, [r7, #23] } - 800adf6: 4618 mov r0, r3 - 800adf8: 3718 adds r7, #24 - 800adfa: 46bd mov sp, r7 - 800adfc: bd80 pop {r7, pc} - 800adfe: bf00 nop - 800ae00: 080165a4 .word 0x080165a4 - 800ae04: 08016cfc .word 0x08016cfc - 800ae08: 080165f8 .word 0x080165f8 + 800adf2: 4618 mov r0, r3 + 800adf4: 3718 adds r7, #24 + 800adf6: 46bd mov sp, r7 + 800adf8: bd80 pop {r7, pc} + 800adfa: bf00 nop + 800adfc: 080165a4 .word 0x080165a4 + 800ae00: 08016cfc .word 0x08016cfc + 800ae04: 080165f8 .word 0x080165f8 -0800ae0c : +0800ae08 : */ void tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno, const ip_addr_t *local_ip, const ip_addr_t *remote_ip, u16_t local_port, u16_t remote_port) { - 800ae0c: b590 push {r4, r7, lr} - 800ae0e: b08b sub sp, #44 ; 0x2c - 800ae10: af04 add r7, sp, #16 - 800ae12: 60f8 str r0, [r7, #12] - 800ae14: 60b9 str r1, [r7, #8] - 800ae16: 607a str r2, [r7, #4] - 800ae18: 603b str r3, [r7, #0] + 800ae08: b590 push {r4, r7, lr} + 800ae0a: b08b sub sp, #44 ; 0x2c + 800ae0c: af04 add r7, sp, #16 + 800ae0e: 60f8 str r0, [r7, #12] + 800ae10: 60b9 str r1, [r7, #8] + 800ae12: 607a str r2, [r7, #4] + 800ae14: 603b str r3, [r7, #0] struct pbuf *p; u16_t wnd; u8_t optlen; LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL); - 800ae1a: 683b ldr r3, [r7, #0] - 800ae1c: 2b00 cmp r3, #0 - 800ae1e: d106 bne.n 800ae2e - 800ae20: 4b1f ldr r3, [pc, #124] ; (800aea0 ) - 800ae22: f240 72c4 movw r2, #1988 ; 0x7c4 - 800ae26: 491f ldr r1, [pc, #124] ; (800aea4 ) - 800ae28: 481f ldr r0, [pc, #124] ; (800aea8 ) - 800ae2a: f005 fad3 bl 80103d4 + 800ae16: 683b ldr r3, [r7, #0] + 800ae18: 2b00 cmp r3, #0 + 800ae1a: d106 bne.n 800ae2a + 800ae1c: 4b1f ldr r3, [pc, #124] ; (800ae9c ) + 800ae1e: f240 72c4 movw r2, #1988 ; 0x7c4 + 800ae22: 491f ldr r1, [pc, #124] ; (800aea0 ) + 800ae24: 481f ldr r0, [pc, #124] ; (800aea4 ) + 800ae26: f005 fad3 bl 80103d0 LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL); - 800ae2e: 6abb ldr r3, [r7, #40] ; 0x28 - 800ae30: 2b00 cmp r3, #0 - 800ae32: d106 bne.n 800ae42 - 800ae34: 4b1a ldr r3, [pc, #104] ; (800aea0 ) - 800ae36: f240 72c5 movw r2, #1989 ; 0x7c5 - 800ae3a: 491c ldr r1, [pc, #112] ; (800aeac ) - 800ae3c: 481a ldr r0, [pc, #104] ; (800aea8 ) - 800ae3e: f005 fac9 bl 80103d4 + 800ae2a: 6abb ldr r3, [r7, #40] ; 0x28 + 800ae2c: 2b00 cmp r3, #0 + 800ae2e: d106 bne.n 800ae3e + 800ae30: 4b1a ldr r3, [pc, #104] ; (800ae9c ) + 800ae32: f240 72c5 movw r2, #1989 ; 0x7c5 + 800ae36: 491c ldr r1, [pc, #112] ; (800aea8 ) + 800ae38: 481a ldr r0, [pc, #104] ; (800aea4 ) + 800ae3a: f005 fac9 bl 80103d0 optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 800ae42: 2300 movs r3, #0 - 800ae44: 75fb strb r3, [r7, #23] + 800ae3e: 2300 movs r3, #0 + 800ae40: 75fb strb r3, [r7, #23] #if LWIP_WND_SCALE wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF)); #else wnd = PP_HTONS(TCP_WND); - 800ae46: f246 0308 movw r3, #24584 ; 0x6008 - 800ae4a: 82bb strh r3, [r7, #20] + 800ae42: f246 0308 movw r3, #24584 ; 0x6008 + 800ae46: 82bb strh r3, [r7, #20] #endif p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port, - 800ae4c: 7dfb ldrb r3, [r7, #23] - 800ae4e: b29c uxth r4, r3 - 800ae50: 68b8 ldr r0, [r7, #8] - 800ae52: f7f9 fa4e bl 80042f2 - 800ae56: 4602 mov r2, r0 - 800ae58: 8abb ldrh r3, [r7, #20] - 800ae5a: 9303 str r3, [sp, #12] - 800ae5c: 2314 movs r3, #20 - 800ae5e: 9302 str r3, [sp, #8] - 800ae60: 8e3b ldrh r3, [r7, #48] ; 0x30 - 800ae62: 9301 str r3, [sp, #4] - 800ae64: 8dbb ldrh r3, [r7, #44] ; 0x2c - 800ae66: 9300 str r3, [sp, #0] - 800ae68: 4613 mov r3, r2 - 800ae6a: 2200 movs r2, #0 - 800ae6c: 4621 mov r1, r4 - 800ae6e: 6878 ldr r0, [r7, #4] - 800ae70: f7ff fe92 bl 800ab98 - 800ae74: 6138 str r0, [r7, #16] + 800ae48: 7dfb ldrb r3, [r7, #23] + 800ae4a: b29c uxth r4, r3 + 800ae4c: 68b8 ldr r0, [r7, #8] + 800ae4e: f7f9 fa4e bl 80042ee + 800ae52: 4602 mov r2, r0 + 800ae54: 8abb ldrh r3, [r7, #20] + 800ae56: 9303 str r3, [sp, #12] + 800ae58: 2314 movs r3, #20 + 800ae5a: 9302 str r3, [sp, #8] + 800ae5c: 8e3b ldrh r3, [r7, #48] ; 0x30 + 800ae5e: 9301 str r3, [sp, #4] + 800ae60: 8dbb ldrh r3, [r7, #44] ; 0x2c + 800ae62: 9300 str r3, [sp, #0] + 800ae64: 4613 mov r3, r2 + 800ae66: 2200 movs r2, #0 + 800ae68: 4621 mov r1, r4 + 800ae6a: 6878 ldr r0, [r7, #4] + 800ae6c: f7ff fe92 bl 800ab94 + 800ae70: 6138 str r0, [r7, #16] remote_port, TCP_RST | TCP_ACK, wnd); if (p == NULL) { - 800ae76: 693b ldr r3, [r7, #16] - 800ae78: 2b00 cmp r3, #0 - 800ae7a: d00c beq.n 800ae96 + 800ae72: 693b ldr r3, [r7, #16] + 800ae74: 2b00 cmp r3, #0 + 800ae76: d00c beq.n 800ae92 LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n")); return; } tcp_output_fill_options(pcb, p, 0, optlen); - 800ae7c: 7dfb ldrb r3, [r7, #23] - 800ae7e: 2200 movs r2, #0 - 800ae80: 6939 ldr r1, [r7, #16] - 800ae82: 68f8 ldr r0, [r7, #12] - 800ae84: f7ff ff38 bl 800acf8 + 800ae78: 7dfb ldrb r3, [r7, #23] + 800ae7a: 2200 movs r2, #0 + 800ae7c: 6939 ldr r1, [r7, #16] + 800ae7e: 68f8 ldr r0, [r7, #12] + 800ae80: f7ff ff38 bl 800acf4 MIB2_STATS_INC(mib2.tcpoutrsts); tcp_output_control_segment(pcb, p, local_ip, remote_ip); - 800ae88: 6abb ldr r3, [r7, #40] ; 0x28 - 800ae8a: 683a ldr r2, [r7, #0] - 800ae8c: 6939 ldr r1, [r7, #16] - 800ae8e: 68f8 ldr r0, [r7, #12] - 800ae90: f7ff ff72 bl 800ad78 - 800ae94: e000 b.n 800ae98 + 800ae84: 6abb ldr r3, [r7, #40] ; 0x28 + 800ae86: 683a ldr r2, [r7, #0] + 800ae88: 6939 ldr r1, [r7, #16] + 800ae8a: 68f8 ldr r0, [r7, #12] + 800ae8c: f7ff ff72 bl 800ad74 + 800ae90: e000 b.n 800ae94 return; - 800ae96: bf00 nop + 800ae92: bf00 nop LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_rst: seqno %"U32_F" ackno %"U32_F".\n", seqno, ackno)); } - 800ae98: 371c adds r7, #28 - 800ae9a: 46bd mov sp, r7 - 800ae9c: bd90 pop {r4, r7, pc} - 800ae9e: bf00 nop - 800aea0: 080165a4 .word 0x080165a4 - 800aea4: 08016d28 .word 0x08016d28 - 800aea8: 080165f8 .word 0x080165f8 - 800aeac: 08016d44 .word 0x08016d44 + 800ae94: 371c adds r7, #28 + 800ae96: 46bd mov sp, r7 + 800ae98: bd90 pop {r4, r7, pc} + 800ae9a: bf00 nop + 800ae9c: 080165a4 .word 0x080165a4 + 800aea0: 08016d28 .word 0x08016d28 + 800aea4: 080165f8 .word 0x080165f8 + 800aea8: 08016d44 .word 0x08016d44 -0800aeb0 : +0800aeac : * * @param pcb Protocol control block for the TCP connection to send the ACK */ err_t tcp_send_empty_ack(struct tcp_pcb *pcb) { - 800aeb0: b590 push {r4, r7, lr} - 800aeb2: b087 sub sp, #28 - 800aeb4: af00 add r7, sp, #0 - 800aeb6: 6078 str r0, [r7, #4] + 800aeac: b590 push {r4, r7, lr} + 800aeae: b087 sub sp, #28 + 800aeb0: af00 add r7, sp, #0 + 800aeb2: 6078 str r0, [r7, #4] err_t err; struct pbuf *p; u8_t optlen, optflags = 0; - 800aeb8: 2300 movs r3, #0 - 800aeba: 75fb strb r3, [r7, #23] + 800aeb4: 2300 movs r3, #0 + 800aeb6: 75fb strb r3, [r7, #23] u8_t num_sacks = 0; - 800aebc: 2300 movs r3, #0 - 800aebe: 75bb strb r3, [r7, #22] + 800aeb8: 2300 movs r3, #0 + 800aeba: 75bb strb r3, [r7, #22] LWIP_ASSERT("tcp_send_empty_ack: invalid pcb", pcb != NULL); - 800aec0: 687b ldr r3, [r7, #4] - 800aec2: 2b00 cmp r3, #0 - 800aec4: d106 bne.n 800aed4 - 800aec6: 4b28 ldr r3, [pc, #160] ; (800af68 ) - 800aec8: f240 72ea movw r2, #2026 ; 0x7ea - 800aecc: 4927 ldr r1, [pc, #156] ; (800af6c ) - 800aece: 4828 ldr r0, [pc, #160] ; (800af70 ) - 800aed0: f005 fa80 bl 80103d4 + 800aebc: 687b ldr r3, [r7, #4] + 800aebe: 2b00 cmp r3, #0 + 800aec0: d106 bne.n 800aed0 + 800aec2: 4b28 ldr r3, [pc, #160] ; (800af64 ) + 800aec4: f240 72ea movw r2, #2026 ; 0x7ea + 800aec8: 4927 ldr r1, [pc, #156] ; (800af68 ) + 800aeca: 4828 ldr r0, [pc, #160] ; (800af6c ) + 800aecc: f005 fa80 bl 80103d0 #if LWIP_TCP_TIMESTAMPS if (pcb->flags & TF_TIMESTAMP) { optflags = TF_SEG_OPTS_TS; } #endif optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - 800aed4: 7dfb ldrb r3, [r7, #23] - 800aed6: 009b lsls r3, r3, #2 - 800aed8: b2db uxtb r3, r3 - 800aeda: f003 0304 and.w r3, r3, #4 - 800aede: 757b strb r3, [r7, #21] + 800aed0: 7dfb ldrb r3, [r7, #23] + 800aed2: 009b lsls r3, r3, #2 + 800aed4: b2db uxtb r3, r3 + 800aed6: f003 0304 and.w r3, r3, #4 + 800aeda: 757b strb r3, [r7, #21] if ((num_sacks = tcp_get_num_sacks(pcb, optlen)) > 0) { optlen += 4 + num_sacks * 8; /* 4 bytes for header (including 2*NOP), plus 8B for each SACK */ } #endif p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt)); - 800aee0: 7d7b ldrb r3, [r7, #21] - 800aee2: b29c uxth r4, r3 - 800aee4: 687b ldr r3, [r7, #4] - 800aee6: 6d1b ldr r3, [r3, #80] ; 0x50 - 800aee8: 4618 mov r0, r3 - 800aeea: f7f9 fa02 bl 80042f2 - 800aeee: 4603 mov r3, r0 - 800aef0: 2200 movs r2, #0 - 800aef2: 4621 mov r1, r4 - 800aef4: 6878 ldr r0, [r7, #4] - 800aef6: f7ff fec1 bl 800ac7c - 800aefa: 6138 str r0, [r7, #16] + 800aedc: 7d7b ldrb r3, [r7, #21] + 800aede: b29c uxth r4, r3 + 800aee0: 687b ldr r3, [r7, #4] + 800aee2: 6d1b ldr r3, [r3, #80] ; 0x50 + 800aee4: 4618 mov r0, r3 + 800aee6: f7f9 fa02 bl 80042ee + 800aeea: 4603 mov r3, r0 + 800aeec: 2200 movs r2, #0 + 800aeee: 4621 mov r1, r4 + 800aef0: 6878 ldr r0, [r7, #4] + 800aef2: f7ff fec1 bl 800ac78 + 800aef6: 6138 str r0, [r7, #16] if (p == NULL) { - 800aefc: 693b ldr r3, [r7, #16] - 800aefe: 2b00 cmp r3, #0 - 800af00: d109 bne.n 800af16 + 800aef8: 693b ldr r3, [r7, #16] + 800aefa: 2b00 cmp r3, #0 + 800aefc: d109 bne.n 800af12 /* let tcp_fasttmr retry sending this ACK */ tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 800af02: 687b ldr r3, [r7, #4] - 800af04: 8b5b ldrh r3, [r3, #26] - 800af06: f043 0303 orr.w r3, r3, #3 - 800af0a: b29a uxth r2, r3 - 800af0c: 687b ldr r3, [r7, #4] - 800af0e: 835a strh r2, [r3, #26] + 800aefe: 687b ldr r3, [r7, #4] + 800af00: 8b5b ldrh r3, [r3, #26] + 800af02: f043 0303 orr.w r3, r3, #3 + 800af06: b29a uxth r2, r3 + 800af08: 687b ldr r3, [r7, #4] + 800af0a: 835a strh r2, [r3, #26] LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: (ACK) could not allocate pbuf\n")); return ERR_BUF; - 800af10: f06f 0301 mvn.w r3, #1 - 800af14: e023 b.n 800af5e + 800af0c: f06f 0301 mvn.w r3, #1 + 800af10: e023 b.n 800af5a } tcp_output_fill_options(pcb, p, optflags, num_sacks); - 800af16: 7dbb ldrb r3, [r7, #22] - 800af18: 7dfa ldrb r2, [r7, #23] - 800af1a: 6939 ldr r1, [r7, #16] - 800af1c: 6878 ldr r0, [r7, #4] - 800af1e: f7ff feeb bl 800acf8 + 800af12: 7dbb ldrb r3, [r7, #22] + 800af14: 7dfa ldrb r2, [r7, #23] + 800af16: 6939 ldr r1, [r7, #16] + 800af18: 6878 ldr r0, [r7, #4] + 800af1a: f7ff feeb bl 800acf4 pcb->ts_lastacksent = pcb->rcv_nxt; #endif LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: sending ACK for %"U32_F"\n", pcb->rcv_nxt)); err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - 800af22: 687a ldr r2, [r7, #4] - 800af24: 687b ldr r3, [r7, #4] - 800af26: 3304 adds r3, #4 - 800af28: 6939 ldr r1, [r7, #16] - 800af2a: 6878 ldr r0, [r7, #4] - 800af2c: f7ff ff24 bl 800ad78 - 800af30: 4603 mov r3, r0 - 800af32: 73fb strb r3, [r7, #15] + 800af1e: 687a ldr r2, [r7, #4] + 800af20: 687b ldr r3, [r7, #4] + 800af22: 3304 adds r3, #4 + 800af24: 6939 ldr r1, [r7, #16] + 800af26: 6878 ldr r0, [r7, #4] + 800af28: f7ff ff24 bl 800ad74 + 800af2c: 4603 mov r3, r0 + 800af2e: 73fb strb r3, [r7, #15] if (err != ERR_OK) { - 800af34: f997 300f ldrsb.w r3, [r7, #15] - 800af38: 2b00 cmp r3, #0 - 800af3a: d007 beq.n 800af4c + 800af30: f997 300f ldrsb.w r3, [r7, #15] + 800af34: 2b00 cmp r3, #0 + 800af36: d007 beq.n 800af48 /* let tcp_fasttmr retry sending this ACK */ tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 800af3c: 687b ldr r3, [r7, #4] - 800af3e: 8b5b ldrh r3, [r3, #26] - 800af40: f043 0303 orr.w r3, r3, #3 - 800af44: b29a uxth r2, r3 - 800af46: 687b ldr r3, [r7, #4] - 800af48: 835a strh r2, [r3, #26] - 800af4a: e006 b.n 800af5a + 800af38: 687b ldr r3, [r7, #4] + 800af3a: 8b5b ldrh r3, [r3, #26] + 800af3c: f043 0303 orr.w r3, r3, #3 + 800af40: b29a uxth r2, r3 + 800af42: 687b ldr r3, [r7, #4] + 800af44: 835a strh r2, [r3, #26] + 800af46: e006 b.n 800af56 } else { /* remove ACK flags from the PCB, as we sent an empty ACK now */ tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 800af4c: 687b ldr r3, [r7, #4] - 800af4e: 8b5b ldrh r3, [r3, #26] - 800af50: f023 0303 bic.w r3, r3, #3 - 800af54: b29a uxth r2, r3 - 800af56: 687b ldr r3, [r7, #4] - 800af58: 835a strh r2, [r3, #26] + 800af48: 687b ldr r3, [r7, #4] + 800af4a: 8b5b ldrh r3, [r3, #26] + 800af4c: f023 0303 bic.w r3, r3, #3 + 800af50: b29a uxth r2, r3 + 800af52: 687b ldr r3, [r7, #4] + 800af54: 835a strh r2, [r3, #26] } return err; - 800af5a: f997 300f ldrsb.w r3, [r7, #15] + 800af56: f997 300f ldrsb.w r3, [r7, #15] } - 800af5e: 4618 mov r0, r3 - 800af60: 371c adds r7, #28 - 800af62: 46bd mov sp, r7 - 800af64: bd90 pop {r4, r7, pc} - 800af66: bf00 nop - 800af68: 080165a4 .word 0x080165a4 - 800af6c: 08016d60 .word 0x08016d60 - 800af70: 080165f8 .word 0x080165f8 + 800af5a: 4618 mov r0, r3 + 800af5c: 371c adds r7, #28 + 800af5e: 46bd mov sp, r7 + 800af60: bd90 pop {r4, r7, pc} + 800af62: bf00 nop + 800af64: 080165a4 .word 0x080165a4 + 800af68: 08016d60 .word 0x08016d60 + 800af6c: 080165f8 .word 0x080165f8 -0800af74 : +0800af70 : * * @param pcb the tcp_pcb for which to send a keepalive packet */ err_t tcp_keepalive(struct tcp_pcb *pcb) { - 800af74: b590 push {r4, r7, lr} - 800af76: b087 sub sp, #28 - 800af78: af00 add r7, sp, #0 - 800af7a: 6078 str r0, [r7, #4] + 800af70: b590 push {r4, r7, lr} + 800af72: b087 sub sp, #28 + 800af74: af00 add r7, sp, #0 + 800af76: 6078 str r0, [r7, #4] err_t err; struct pbuf *p; u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 800af7c: 2300 movs r3, #0 - 800af7e: 75fb strb r3, [r7, #23] + 800af78: 2300 movs r3, #0 + 800af7a: 75fb strb r3, [r7, #23] LWIP_ASSERT("tcp_keepalive: invalid pcb", pcb != NULL); - 800af80: 687b ldr r3, [r7, #4] - 800af82: 2b00 cmp r3, #0 - 800af84: d106 bne.n 800af94 - 800af86: 4b18 ldr r3, [pc, #96] ; (800afe8 ) - 800af88: f640 0224 movw r2, #2084 ; 0x824 - 800af8c: 4917 ldr r1, [pc, #92] ; (800afec ) - 800af8e: 4818 ldr r0, [pc, #96] ; (800aff0 ) - 800af90: f005 fa20 bl 80103d4 + 800af7c: 687b ldr r3, [r7, #4] + 800af7e: 2b00 cmp r3, #0 + 800af80: d106 bne.n 800af90 + 800af82: 4b18 ldr r3, [pc, #96] ; (800afe4 ) + 800af84: f640 0224 movw r2, #2084 ; 0x824 + 800af88: 4917 ldr r1, [pc, #92] ; (800afe8 ) + 800af8a: 4818 ldr r0, [pc, #96] ; (800afec ) + 800af8c: f005 fa20 bl 80103d0 LWIP_DEBUGF(TCP_DEBUG, ("\n")); LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: tcp_ticks %"U32_F" pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n", tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent)); p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt - 1)); - 800af94: 7dfb ldrb r3, [r7, #23] - 800af96: b29c uxth r4, r3 - 800af98: 687b ldr r3, [r7, #4] - 800af9a: 6d1b ldr r3, [r3, #80] ; 0x50 - 800af9c: 3b01 subs r3, #1 - 800af9e: 4618 mov r0, r3 - 800afa0: f7f9 f9a7 bl 80042f2 - 800afa4: 4603 mov r3, r0 - 800afa6: 2200 movs r2, #0 - 800afa8: 4621 mov r1, r4 - 800afaa: 6878 ldr r0, [r7, #4] - 800afac: f7ff fe66 bl 800ac7c - 800afb0: 6138 str r0, [r7, #16] + 800af90: 7dfb ldrb r3, [r7, #23] + 800af92: b29c uxth r4, r3 + 800af94: 687b ldr r3, [r7, #4] + 800af96: 6d1b ldr r3, [r3, #80] ; 0x50 + 800af98: 3b01 subs r3, #1 + 800af9a: 4618 mov r0, r3 + 800af9c: f7f9 f9a7 bl 80042ee + 800afa0: 4603 mov r3, r0 + 800afa2: 2200 movs r2, #0 + 800afa4: 4621 mov r1, r4 + 800afa6: 6878 ldr r0, [r7, #4] + 800afa8: f7ff fe66 bl 800ac78 + 800afac: 6138 str r0, [r7, #16] if (p == NULL) { - 800afb2: 693b ldr r3, [r7, #16] - 800afb4: 2b00 cmp r3, #0 - 800afb6: d102 bne.n 800afbe + 800afae: 693b ldr r3, [r7, #16] + 800afb0: 2b00 cmp r3, #0 + 800afb2: d102 bne.n 800afba LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: could not allocate memory for pbuf\n")); return ERR_MEM; - 800afb8: f04f 33ff mov.w r3, #4294967295 - 800afbc: e010 b.n 800afe0 + 800afb4: f04f 33ff mov.w r3, #4294967295 + 800afb8: e010 b.n 800afdc } tcp_output_fill_options(pcb, p, 0, optlen); - 800afbe: 7dfb ldrb r3, [r7, #23] - 800afc0: 2200 movs r2, #0 - 800afc2: 6939 ldr r1, [r7, #16] - 800afc4: 6878 ldr r0, [r7, #4] - 800afc6: f7ff fe97 bl 800acf8 + 800afba: 7dfb ldrb r3, [r7, #23] + 800afbc: 2200 movs r2, #0 + 800afbe: 6939 ldr r1, [r7, #16] + 800afc0: 6878 ldr r0, [r7, #4] + 800afc2: f7ff fe97 bl 800acf4 err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - 800afca: 687a ldr r2, [r7, #4] - 800afcc: 687b ldr r3, [r7, #4] - 800afce: 3304 adds r3, #4 - 800afd0: 6939 ldr r1, [r7, #16] - 800afd2: 6878 ldr r0, [r7, #4] - 800afd4: f7ff fed0 bl 800ad78 - 800afd8: 4603 mov r3, r0 - 800afda: 73fb strb r3, [r7, #15] + 800afc6: 687a ldr r2, [r7, #4] + 800afc8: 687b ldr r3, [r7, #4] + 800afca: 3304 adds r3, #4 + 800afcc: 6939 ldr r1, [r7, #16] + 800afce: 6878 ldr r0, [r7, #4] + 800afd0: f7ff fed0 bl 800ad74 + 800afd4: 4603 mov r3, r0 + 800afd6: 73fb strb r3, [r7, #15] LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: seqno %"U32_F" ackno %"U32_F" err %d.\n", pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err)); return err; - 800afdc: f997 300f ldrsb.w r3, [r7, #15] + 800afd8: f997 300f ldrsb.w r3, [r7, #15] } - 800afe0: 4618 mov r0, r3 - 800afe2: 371c adds r7, #28 - 800afe4: 46bd mov sp, r7 - 800afe6: bd90 pop {r4, r7, pc} - 800afe8: 080165a4 .word 0x080165a4 - 800afec: 08016d80 .word 0x08016d80 - 800aff0: 080165f8 .word 0x080165f8 + 800afdc: 4618 mov r0, r3 + 800afde: 371c adds r7, #28 + 800afe0: 46bd mov sp, r7 + 800afe2: bd90 pop {r4, r7, pc} + 800afe4: 080165a4 .word 0x080165a4 + 800afe8: 08016d80 .word 0x08016d80 + 800afec: 080165f8 .word 0x080165f8 -0800aff4 : +0800aff0 : * * @param pcb the tcp_pcb for which to send a zero-window probe packet */ err_t tcp_zero_window_probe(struct tcp_pcb *pcb) { - 800aff4: b590 push {r4, r7, lr} - 800aff6: b08b sub sp, #44 ; 0x2c - 800aff8: af00 add r7, sp, #0 - 800affa: 6078 str r0, [r7, #4] + 800aff0: b590 push {r4, r7, lr} + 800aff2: b08b sub sp, #44 ; 0x2c + 800aff4: af00 add r7, sp, #0 + 800aff6: 6078 str r0, [r7, #4] struct tcp_hdr *tcphdr; struct tcp_seg *seg; u16_t len; u8_t is_fin; u32_t snd_nxt; u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 800affc: 2300 movs r3, #0 - 800affe: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800aff8: 2300 movs r3, #0 + 800affa: f887 3027 strb.w r3, [r7, #39] ; 0x27 LWIP_ASSERT("tcp_zero_window_probe: invalid pcb", pcb != NULL); - 800b002: 687b ldr r3, [r7, #4] - 800b004: 2b00 cmp r3, #0 - 800b006: d106 bne.n 800b016 - 800b008: 4b4c ldr r3, [pc, #304] ; (800b13c ) - 800b00a: f640 024f movw r2, #2127 ; 0x84f - 800b00e: 494c ldr r1, [pc, #304] ; (800b140 ) - 800b010: 484c ldr r0, [pc, #304] ; (800b144 ) - 800b012: f005 f9df bl 80103d4 + 800affe: 687b ldr r3, [r7, #4] + 800b000: 2b00 cmp r3, #0 + 800b002: d106 bne.n 800b012 + 800b004: 4b4c ldr r3, [pc, #304] ; (800b138 ) + 800b006: f640 024f movw r2, #2127 ; 0x84f + 800b00a: 494c ldr r1, [pc, #304] ; (800b13c ) + 800b00c: 484c ldr r0, [pc, #304] ; (800b140 ) + 800b00e: f005 f9df bl 80103d0 ("tcp_zero_window_probe: tcp_ticks %"U32_F " pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n", tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent)); /* Only consider unsent, persist timer should be off when there is data in-flight */ seg = pcb->unsent; - 800b016: 687b ldr r3, [r7, #4] - 800b018: 6edb ldr r3, [r3, #108] ; 0x6c - 800b01a: 623b str r3, [r7, #32] + 800b012: 687b ldr r3, [r7, #4] + 800b014: 6edb ldr r3, [r3, #108] ; 0x6c + 800b016: 623b str r3, [r7, #32] if (seg == NULL) { - 800b01c: 6a3b ldr r3, [r7, #32] - 800b01e: 2b00 cmp r3, #0 - 800b020: d101 bne.n 800b026 + 800b018: 6a3b ldr r3, [r7, #32] + 800b01a: 2b00 cmp r3, #0 + 800b01c: d101 bne.n 800b022 /* Not expected, persist timer should be off when the send buffer is empty */ return ERR_OK; - 800b022: 2300 movs r3, #0 - 800b024: e086 b.n 800b134 + 800b01e: 2300 movs r3, #0 + 800b020: e086 b.n 800b130 /* increment probe count. NOTE: we record probe even if it fails to actually transmit due to an error. This ensures memory exhaustion/ routing problem doesn't leave a zero-window pcb as an indefinite zombie. RTO mechanism has similar behavior, see pcb->nrtx */ if (pcb->persist_probe < 0xFF) { - 800b026: 687b ldr r3, [r7, #4] - 800b028: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 800b02c: 2bff cmp r3, #255 ; 0xff - 800b02e: d007 beq.n 800b040 + 800b022: 687b ldr r3, [r7, #4] + 800b024: f893 309a ldrb.w r3, [r3, #154] ; 0x9a + 800b028: 2bff cmp r3, #255 ; 0xff + 800b02a: d007 beq.n 800b03c ++pcb->persist_probe; - 800b030: 687b ldr r3, [r7, #4] - 800b032: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 800b036: 3301 adds r3, #1 - 800b038: b2da uxtb r2, r3 - 800b03a: 687b ldr r3, [r7, #4] - 800b03c: f883 209a strb.w r2, [r3, #154] ; 0x9a + 800b02c: 687b ldr r3, [r7, #4] + 800b02e: f893 309a ldrb.w r3, [r3, #154] ; 0x9a + 800b032: 3301 adds r3, #1 + 800b034: b2da uxtb r2, r3 + 800b036: 687b ldr r3, [r7, #4] + 800b038: f883 209a strb.w r2, [r3, #154] ; 0x9a } is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0); - 800b040: 6a3b ldr r3, [r7, #32] - 800b042: 68db ldr r3, [r3, #12] - 800b044: 899b ldrh r3, [r3, #12] - 800b046: b29b uxth r3, r3 - 800b048: 4618 mov r0, r3 - 800b04a: f7f9 f93d bl 80042c8 - 800b04e: 4603 mov r3, r0 - 800b050: b2db uxtb r3, r3 - 800b052: f003 0301 and.w r3, r3, #1 - 800b056: 2b00 cmp r3, #0 - 800b058: d005 beq.n 800b066 - 800b05a: 6a3b ldr r3, [r7, #32] - 800b05c: 891b ldrh r3, [r3, #8] - 800b05e: 2b00 cmp r3, #0 - 800b060: d101 bne.n 800b066 - 800b062: 2301 movs r3, #1 - 800b064: e000 b.n 800b068 - 800b066: 2300 movs r3, #0 - 800b068: 77fb strb r3, [r7, #31] + 800b03c: 6a3b ldr r3, [r7, #32] + 800b03e: 68db ldr r3, [r3, #12] + 800b040: 899b ldrh r3, [r3, #12] + 800b042: b29b uxth r3, r3 + 800b044: 4618 mov r0, r3 + 800b046: f7f9 f93d bl 80042c4 + 800b04a: 4603 mov r3, r0 + 800b04c: b2db uxtb r3, r3 + 800b04e: f003 0301 and.w r3, r3, #1 + 800b052: 2b00 cmp r3, #0 + 800b054: d005 beq.n 800b062 + 800b056: 6a3b ldr r3, [r7, #32] + 800b058: 891b ldrh r3, [r3, #8] + 800b05a: 2b00 cmp r3, #0 + 800b05c: d101 bne.n 800b062 + 800b05e: 2301 movs r3, #1 + 800b060: e000 b.n 800b064 + 800b062: 2300 movs r3, #0 + 800b064: 77fb strb r3, [r7, #31] /* we want to send one seqno: either FIN or data (no options) */ len = is_fin ? 0 : 1; - 800b06a: 7ffb ldrb r3, [r7, #31] - 800b06c: 2b00 cmp r3, #0 - 800b06e: bf0c ite eq - 800b070: 2301 moveq r3, #1 - 800b072: 2300 movne r3, #0 - 800b074: b2db uxtb r3, r3 - 800b076: 83bb strh r3, [r7, #28] + 800b066: 7ffb ldrb r3, [r7, #31] + 800b068: 2b00 cmp r3, #0 + 800b06a: bf0c ite eq + 800b06c: 2301 moveq r3, #1 + 800b06e: 2300 movne r3, #0 + 800b070: b2db uxtb r3, r3 + 800b072: 83bb strh r3, [r7, #28] p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno); - 800b078: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800b07c: b299 uxth r1, r3 - 800b07e: 6a3b ldr r3, [r7, #32] - 800b080: 68db ldr r3, [r3, #12] - 800b082: 685b ldr r3, [r3, #4] - 800b084: 8bba ldrh r2, [r7, #28] - 800b086: 6878 ldr r0, [r7, #4] - 800b088: f7ff fdf8 bl 800ac7c - 800b08c: 61b8 str r0, [r7, #24] + 800b074: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800b078: b299 uxth r1, r3 + 800b07a: 6a3b ldr r3, [r7, #32] + 800b07c: 68db ldr r3, [r3, #12] + 800b07e: 685b ldr r3, [r3, #4] + 800b080: 8bba ldrh r2, [r7, #28] + 800b082: 6878 ldr r0, [r7, #4] + 800b084: f7ff fdf8 bl 800ac78 + 800b088: 61b8 str r0, [r7, #24] if (p == NULL) { - 800b08e: 69bb ldr r3, [r7, #24] - 800b090: 2b00 cmp r3, #0 - 800b092: d102 bne.n 800b09a + 800b08a: 69bb ldr r3, [r7, #24] + 800b08c: 2b00 cmp r3, #0 + 800b08e: d102 bne.n 800b096 LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: no memory for pbuf\n")); return ERR_MEM; - 800b094: f04f 33ff mov.w r3, #4294967295 - 800b098: e04c b.n 800b134 + 800b090: f04f 33ff mov.w r3, #4294967295 + 800b094: e04c b.n 800b130 } tcphdr = (struct tcp_hdr *)p->payload; - 800b09a: 69bb ldr r3, [r7, #24] - 800b09c: 685b ldr r3, [r3, #4] - 800b09e: 617b str r3, [r7, #20] + 800b096: 69bb ldr r3, [r7, #24] + 800b098: 685b ldr r3, [r3, #4] + 800b09a: 617b str r3, [r7, #20] if (is_fin) { - 800b0a0: 7ffb ldrb r3, [r7, #31] - 800b0a2: 2b00 cmp r3, #0 - 800b0a4: d011 beq.n 800b0ca + 800b09c: 7ffb ldrb r3, [r7, #31] + 800b09e: 2b00 cmp r3, #0 + 800b0a0: d011 beq.n 800b0c6 /* FIN segment, no data */ TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN); - 800b0a6: 697b ldr r3, [r7, #20] - 800b0a8: 899b ldrh r3, [r3, #12] - 800b0aa: b29b uxth r3, r3 - 800b0ac: b21b sxth r3, r3 - 800b0ae: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 800b0b2: b21c sxth r4, r3 - 800b0b4: 2011 movs r0, #17 - 800b0b6: f7f9 f907 bl 80042c8 - 800b0ba: 4603 mov r3, r0 + 800b0a2: 697b ldr r3, [r7, #20] + 800b0a4: 899b ldrh r3, [r3, #12] + 800b0a6: b29b uxth r3, r3 + 800b0a8: b21b sxth r3, r3 + 800b0aa: f423 537c bic.w r3, r3, #16128 ; 0x3f00 + 800b0ae: b21c sxth r4, r3 + 800b0b0: 2011 movs r0, #17 + 800b0b2: f7f9 f907 bl 80042c4 + 800b0b6: 4603 mov r3, r0 + 800b0b8: b21b sxth r3, r3 + 800b0ba: 4323 orrs r3, r4 800b0bc: b21b sxth r3, r3 - 800b0be: 4323 orrs r3, r4 - 800b0c0: b21b sxth r3, r3 - 800b0c2: b29a uxth r2, r3 - 800b0c4: 697b ldr r3, [r7, #20] - 800b0c6: 819a strh r2, [r3, #12] - 800b0c8: e010 b.n 800b0ec + 800b0be: b29a uxth r2, r3 + 800b0c0: 697b ldr r3, [r7, #20] + 800b0c2: 819a strh r2, [r3, #12] + 800b0c4: e010 b.n 800b0e8 } else { /* Data segment, copy in one byte from the head of the unacked queue */ char *d = ((char *)p->payload + TCP_HLEN); - 800b0ca: 69bb ldr r3, [r7, #24] - 800b0cc: 685b ldr r3, [r3, #4] - 800b0ce: 3314 adds r3, #20 - 800b0d0: 613b str r3, [r7, #16] + 800b0c6: 69bb ldr r3, [r7, #24] + 800b0c8: 685b ldr r3, [r3, #4] + 800b0ca: 3314 adds r3, #20 + 800b0cc: 613b str r3, [r7, #16] /* Depending on whether the segment has already been sent (unacked) or not (unsent), seg->p->payload points to the IP header or TCP header. Ensure we copy the first TCP data byte: */ pbuf_copy_partial(seg->p, d, 1, seg->p->tot_len - seg->len); + 800b0ce: 6a3b ldr r3, [r7, #32] + 800b0d0: 6858 ldr r0, [r3, #4] 800b0d2: 6a3b ldr r3, [r7, #32] - 800b0d4: 6858 ldr r0, [r3, #4] - 800b0d6: 6a3b ldr r3, [r7, #32] - 800b0d8: 685b ldr r3, [r3, #4] - 800b0da: 891a ldrh r2, [r3, #8] - 800b0dc: 6a3b ldr r3, [r7, #32] - 800b0de: 891b ldrh r3, [r3, #8] - 800b0e0: 1ad3 subs r3, r2, r3 - 800b0e2: b29b uxth r3, r3 - 800b0e4: 2201 movs r2, #1 - 800b0e6: 6939 ldr r1, [r7, #16] - 800b0e8: f7fa fe52 bl 8005d90 + 800b0d4: 685b ldr r3, [r3, #4] + 800b0d6: 891a ldrh r2, [r3, #8] + 800b0d8: 6a3b ldr r3, [r7, #32] + 800b0da: 891b ldrh r3, [r3, #8] + 800b0dc: 1ad3 subs r3, r2, r3 + 800b0de: b29b uxth r3, r3 + 800b0e0: 2201 movs r2, #1 + 800b0e2: 6939 ldr r1, [r7, #16] + 800b0e4: f7fa fe52 bl 8005d8c } /* The byte may be acknowledged without the window being opened. */ snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1; - 800b0ec: 6a3b ldr r3, [r7, #32] - 800b0ee: 68db ldr r3, [r3, #12] - 800b0f0: 685b ldr r3, [r3, #4] - 800b0f2: 4618 mov r0, r3 - 800b0f4: f7f9 f8fd bl 80042f2 - 800b0f8: 4603 mov r3, r0 - 800b0fa: 3301 adds r3, #1 - 800b0fc: 60fb str r3, [r7, #12] + 800b0e8: 6a3b ldr r3, [r7, #32] + 800b0ea: 68db ldr r3, [r3, #12] + 800b0ec: 685b ldr r3, [r3, #4] + 800b0ee: 4618 mov r0, r3 + 800b0f0: f7f9 f8fd bl 80042ee + 800b0f4: 4603 mov r3, r0 + 800b0f6: 3301 adds r3, #1 + 800b0f8: 60fb str r3, [r7, #12] if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) { - 800b0fe: 687b ldr r3, [r7, #4] - 800b100: 6d1a ldr r2, [r3, #80] ; 0x50 - 800b102: 68fb ldr r3, [r7, #12] - 800b104: 1ad3 subs r3, r2, r3 - 800b106: 2b00 cmp r3, #0 - 800b108: da02 bge.n 800b110 + 800b0fa: 687b ldr r3, [r7, #4] + 800b0fc: 6d1a ldr r2, [r3, #80] ; 0x50 + 800b0fe: 68fb ldr r3, [r7, #12] + 800b100: 1ad3 subs r3, r2, r3 + 800b102: 2b00 cmp r3, #0 + 800b104: da02 bge.n 800b10c pcb->snd_nxt = snd_nxt; - 800b10a: 687b ldr r3, [r7, #4] - 800b10c: 68fa ldr r2, [r7, #12] - 800b10e: 651a str r2, [r3, #80] ; 0x50 + 800b106: 687b ldr r3, [r7, #4] + 800b108: 68fa ldr r2, [r7, #12] + 800b10a: 651a str r2, [r3, #80] ; 0x50 } tcp_output_fill_options(pcb, p, 0, optlen); - 800b110: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800b114: 2200 movs r2, #0 - 800b116: 69b9 ldr r1, [r7, #24] - 800b118: 6878 ldr r0, [r7, #4] - 800b11a: f7ff fded bl 800acf8 + 800b10c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800b110: 2200 movs r2, #0 + 800b112: 69b9 ldr r1, [r7, #24] + 800b114: 6878 ldr r0, [r7, #4] + 800b116: f7ff fded bl 800acf4 err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - 800b11e: 687a ldr r2, [r7, #4] - 800b120: 687b ldr r3, [r7, #4] - 800b122: 3304 adds r3, #4 - 800b124: 69b9 ldr r1, [r7, #24] - 800b126: 6878 ldr r0, [r7, #4] - 800b128: f7ff fe26 bl 800ad78 - 800b12c: 4603 mov r3, r0 - 800b12e: 72fb strb r3, [r7, #11] + 800b11a: 687a ldr r2, [r7, #4] + 800b11c: 687b ldr r3, [r7, #4] + 800b11e: 3304 adds r3, #4 + 800b120: 69b9 ldr r1, [r7, #24] + 800b122: 6878 ldr r0, [r7, #4] + 800b124: f7ff fe26 bl 800ad74 + 800b128: 4603 mov r3, r0 + 800b12a: 72fb strb r3, [r7, #11] LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: seqno %"U32_F " ackno %"U32_F" err %d.\n", pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err)); return err; - 800b130: f997 300b ldrsb.w r3, [r7, #11] + 800b12c: f997 300b ldrsb.w r3, [r7, #11] } - 800b134: 4618 mov r0, r3 - 800b136: 372c adds r7, #44 ; 0x2c - 800b138: 46bd mov sp, r7 - 800b13a: bd90 pop {r4, r7, pc} - 800b13c: 080165a4 .word 0x080165a4 - 800b140: 08016d9c .word 0x08016d9c - 800b144: 080165f8 .word 0x080165f8 + 800b130: 4618 mov r0, r3 + 800b132: 372c adds r7, #44 ; 0x2c + 800b134: 46bd mov sp, r7 + 800b136: bd90 pop {r4, r7, pc} + 800b138: 080165a4 .word 0x080165a4 + 800b13c: 08016d9c .word 0x08016d9c + 800b140: 080165f8 .word 0x080165f8 -0800b148 : +0800b144 : * * @param arg unused argument */ static void tcpip_tcp_timer(void *arg) { - 800b148: b580 push {r7, lr} - 800b14a: b082 sub sp, #8 - 800b14c: af00 add r7, sp, #0 - 800b14e: 6078 str r0, [r7, #4] + 800b144: b580 push {r7, lr} + 800b146: b082 sub sp, #8 + 800b148: af00 add r7, sp, #0 + 800b14a: 6078 str r0, [r7, #4] LWIP_UNUSED_ARG(arg); /* call TCP timer handler */ tcp_tmr(); - 800b150: f7fa ff0c bl 8005f6c + 800b14c: f7fa ff0c bl 8005f68 /* timer still needed? */ if (tcp_active_pcbs || tcp_tw_pcbs) { - 800b154: 4b0a ldr r3, [pc, #40] ; (800b180 ) - 800b156: 681b ldr r3, [r3, #0] - 800b158: 2b00 cmp r3, #0 - 800b15a: d103 bne.n 800b164 - 800b15c: 4b09 ldr r3, [pc, #36] ; (800b184 ) - 800b15e: 681b ldr r3, [r3, #0] - 800b160: 2b00 cmp r3, #0 - 800b162: d005 beq.n 800b170 + 800b150: 4b0a ldr r3, [pc, #40] ; (800b17c ) + 800b152: 681b ldr r3, [r3, #0] + 800b154: 2b00 cmp r3, #0 + 800b156: d103 bne.n 800b160 + 800b158: 4b09 ldr r3, [pc, #36] ; (800b180 ) + 800b15a: 681b ldr r3, [r3, #0] + 800b15c: 2b00 cmp r3, #0 + 800b15e: d005 beq.n 800b16c /* restart timer */ sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); - 800b164: 2200 movs r2, #0 - 800b166: 4908 ldr r1, [pc, #32] ; (800b188 ) - 800b168: 20fa movs r0, #250 ; 0xfa - 800b16a: f000 f8f3 bl 800b354 - 800b16e: e003 b.n 800b178 + 800b160: 2200 movs r2, #0 + 800b162: 4908 ldr r1, [pc, #32] ; (800b184 ) + 800b164: 20fa movs r0, #250 ; 0xfa + 800b166: f000 f8f3 bl 800b350 + 800b16a: e003 b.n 800b174 } else { /* disable timer */ tcpip_tcp_timer_active = 0; - 800b170: 4b06 ldr r3, [pc, #24] ; (800b18c ) - 800b172: 2200 movs r2, #0 - 800b174: 601a str r2, [r3, #0] + 800b16c: 4b06 ldr r3, [pc, #24] ; (800b188 ) + 800b16e: 2200 movs r2, #0 + 800b170: 601a str r2, [r3, #0] } } - 800b176: bf00 nop - 800b178: bf00 nop - 800b17a: 3708 adds r7, #8 - 800b17c: 46bd mov sp, r7 - 800b17e: bd80 pop {r7, pc} - 800b180: 20008c0c .word 0x20008c0c - 800b184: 20008c10 .word 0x20008c10 - 800b188: 0800b149 .word 0x0800b149 - 800b18c: 20008c58 .word 0x20008c58 + 800b172: bf00 nop + 800b174: bf00 nop + 800b176: 3708 adds r7, #8 + 800b178: 46bd mov sp, r7 + 800b17a: bd80 pop {r7, pc} + 800b17c: 20008c0c .word 0x20008c0c + 800b180: 20008c10 .word 0x20008c10 + 800b184: 0800b145 .word 0x0800b145 + 800b188: 20008c58 .word 0x20008c58 -0800b190 : +0800b18c : * the reason is to have the TCP timer only running when * there are active (or time-wait) PCBs. */ void tcp_timer_needed(void) { - 800b190: b580 push {r7, lr} - 800b192: af00 add r7, sp, #0 + 800b18c: b580 push {r7, lr} + 800b18e: af00 add r7, sp, #0 LWIP_ASSERT_CORE_LOCKED(); /* timer is off but needed again? */ if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) { - 800b194: 4b0a ldr r3, [pc, #40] ; (800b1c0 ) - 800b196: 681b ldr r3, [r3, #0] - 800b198: 2b00 cmp r3, #0 - 800b19a: d10f bne.n 800b1bc - 800b19c: 4b09 ldr r3, [pc, #36] ; (800b1c4 ) - 800b19e: 681b ldr r3, [r3, #0] - 800b1a0: 2b00 cmp r3, #0 - 800b1a2: d103 bne.n 800b1ac - 800b1a4: 4b08 ldr r3, [pc, #32] ; (800b1c8 ) - 800b1a6: 681b ldr r3, [r3, #0] - 800b1a8: 2b00 cmp r3, #0 - 800b1aa: d007 beq.n 800b1bc + 800b190: 4b0a ldr r3, [pc, #40] ; (800b1bc ) + 800b192: 681b ldr r3, [r3, #0] + 800b194: 2b00 cmp r3, #0 + 800b196: d10f bne.n 800b1b8 + 800b198: 4b09 ldr r3, [pc, #36] ; (800b1c0 ) + 800b19a: 681b ldr r3, [r3, #0] + 800b19c: 2b00 cmp r3, #0 + 800b19e: d103 bne.n 800b1a8 + 800b1a0: 4b08 ldr r3, [pc, #32] ; (800b1c4 ) + 800b1a2: 681b ldr r3, [r3, #0] + 800b1a4: 2b00 cmp r3, #0 + 800b1a6: d007 beq.n 800b1b8 /* enable and start timer */ tcpip_tcp_timer_active = 1; - 800b1ac: 4b04 ldr r3, [pc, #16] ; (800b1c0 ) - 800b1ae: 2201 movs r2, #1 - 800b1b0: 601a str r2, [r3, #0] + 800b1a8: 4b04 ldr r3, [pc, #16] ; (800b1bc ) + 800b1aa: 2201 movs r2, #1 + 800b1ac: 601a str r2, [r3, #0] sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); - 800b1b2: 2200 movs r2, #0 - 800b1b4: 4905 ldr r1, [pc, #20] ; (800b1cc ) - 800b1b6: 20fa movs r0, #250 ; 0xfa - 800b1b8: f000 f8cc bl 800b354 + 800b1ae: 2200 movs r2, #0 + 800b1b0: 4905 ldr r1, [pc, #20] ; (800b1c8 ) + 800b1b2: 20fa movs r0, #250 ; 0xfa + 800b1b4: f000 f8cc bl 800b350 } } - 800b1bc: bf00 nop - 800b1be: bd80 pop {r7, pc} - 800b1c0: 20008c58 .word 0x20008c58 - 800b1c4: 20008c0c .word 0x20008c0c - 800b1c8: 20008c10 .word 0x20008c10 - 800b1cc: 0800b149 .word 0x0800b149 + 800b1b8: bf00 nop + 800b1ba: bd80 pop {r7, pc} + 800b1bc: 20008c58 .word 0x20008c58 + 800b1c0: 20008c0c .word 0x20008c0c + 800b1c4: 20008c10 .word 0x20008c10 + 800b1c8: 0800b145 .word 0x0800b145 -0800b1d0 : +0800b1cc : #if LWIP_DEBUG_TIMERNAMES sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg, const char *handler_name) #else /* LWIP_DEBUG_TIMERNAMES */ sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg) #endif { - 800b1d0: b580 push {r7, lr} - 800b1d2: b086 sub sp, #24 - 800b1d4: af00 add r7, sp, #0 - 800b1d6: 60f8 str r0, [r7, #12] - 800b1d8: 60b9 str r1, [r7, #8] - 800b1da: 607a str r2, [r7, #4] + 800b1cc: b580 push {r7, lr} + 800b1ce: b086 sub sp, #24 + 800b1d0: af00 add r7, sp, #0 + 800b1d2: 60f8 str r0, [r7, #12] + 800b1d4: 60b9 str r1, [r7, #8] + 800b1d6: 607a str r2, [r7, #4] struct sys_timeo *timeout, *t; timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); - 800b1dc: 2006 movs r0, #6 - 800b1de: f7f9 fceb bl 8004bb8 - 800b1e2: 6138 str r0, [r7, #16] + 800b1d8: 2006 movs r0, #6 + 800b1da: f7f9 fceb bl 8004bb4 + 800b1de: 6138 str r0, [r7, #16] if (timeout == NULL) { - 800b1e4: 693b ldr r3, [r7, #16] - 800b1e6: 2b00 cmp r3, #0 - 800b1e8: d109 bne.n 800b1fe + 800b1e0: 693b ldr r3, [r7, #16] + 800b1e2: 2b00 cmp r3, #0 + 800b1e4: d109 bne.n 800b1fa LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); - 800b1ea: 693b ldr r3, [r7, #16] - 800b1ec: 2b00 cmp r3, #0 - 800b1ee: d151 bne.n 800b294 - 800b1f0: 4b2a ldr r3, [pc, #168] ; (800b29c ) - 800b1f2: 22be movs r2, #190 ; 0xbe - 800b1f4: 492a ldr r1, [pc, #168] ; (800b2a0 ) - 800b1f6: 482b ldr r0, [pc, #172] ; (800b2a4 ) - 800b1f8: f005 f8ec bl 80103d4 + 800b1e6: 693b ldr r3, [r7, #16] + 800b1e8: 2b00 cmp r3, #0 + 800b1ea: d151 bne.n 800b290 + 800b1ec: 4b2a ldr r3, [pc, #168] ; (800b298 ) + 800b1ee: 22be movs r2, #190 ; 0xbe + 800b1f0: 492a ldr r1, [pc, #168] ; (800b29c ) + 800b1f2: 482b ldr r0, [pc, #172] ; (800b2a0 ) + 800b1f4: f005 f8ec bl 80103d0 return; - 800b1fc: e04a b.n 800b294 + 800b1f8: e04a b.n 800b290 } timeout->next = NULL; - 800b1fe: 693b ldr r3, [r7, #16] - 800b200: 2200 movs r2, #0 - 800b202: 601a str r2, [r3, #0] + 800b1fa: 693b ldr r3, [r7, #16] + 800b1fc: 2200 movs r2, #0 + 800b1fe: 601a str r2, [r3, #0] timeout->h = handler; - 800b204: 693b ldr r3, [r7, #16] - 800b206: 68ba ldr r2, [r7, #8] - 800b208: 609a str r2, [r3, #8] + 800b200: 693b ldr r3, [r7, #16] + 800b202: 68ba ldr r2, [r7, #8] + 800b204: 609a str r2, [r3, #8] timeout->arg = arg; - 800b20a: 693b ldr r3, [r7, #16] - 800b20c: 687a ldr r2, [r7, #4] - 800b20e: 60da str r2, [r3, #12] + 800b206: 693b ldr r3, [r7, #16] + 800b208: 687a ldr r2, [r7, #4] + 800b20a: 60da str r2, [r3, #12] timeout->time = abs_time; - 800b210: 693b ldr r3, [r7, #16] - 800b212: 68fa ldr r2, [r7, #12] - 800b214: 605a str r2, [r3, #4] + 800b20c: 693b ldr r3, [r7, #16] + 800b20e: 68fa ldr r2, [r7, #12] + 800b210: 605a str r2, [r3, #4] timeout->handler_name = handler_name; LWIP_DEBUGF(TIMERS_DEBUG, ("sys_timeout: %p abs_time=%"U32_F" handler=%s arg=%p\n", (void *)timeout, abs_time, handler_name, (void *)arg)); #endif /* LWIP_DEBUG_TIMERNAMES */ if (next_timeout == NULL) { - 800b216: 4b24 ldr r3, [pc, #144] ; (800b2a8 ) - 800b218: 681b ldr r3, [r3, #0] - 800b21a: 2b00 cmp r3, #0 - 800b21c: d103 bne.n 800b226 + 800b212: 4b24 ldr r3, [pc, #144] ; (800b2a4 ) + 800b214: 681b ldr r3, [r3, #0] + 800b216: 2b00 cmp r3, #0 + 800b218: d103 bne.n 800b222 next_timeout = timeout; - 800b21e: 4a22 ldr r2, [pc, #136] ; (800b2a8 ) - 800b220: 693b ldr r3, [r7, #16] - 800b222: 6013 str r3, [r2, #0] + 800b21a: 4a22 ldr r2, [pc, #136] ; (800b2a4 ) + 800b21c: 693b ldr r3, [r7, #16] + 800b21e: 6013 str r3, [r2, #0] return; - 800b224: e037 b.n 800b296 + 800b220: e037 b.n 800b292 } if (TIME_LESS_THAN(timeout->time, next_timeout->time)) { - 800b226: 693b ldr r3, [r7, #16] - 800b228: 685a ldr r2, [r3, #4] - 800b22a: 4b1f ldr r3, [pc, #124] ; (800b2a8 ) - 800b22c: 681b ldr r3, [r3, #0] - 800b22e: 685b ldr r3, [r3, #4] - 800b230: 1ad3 subs r3, r2, r3 - 800b232: 0fdb lsrs r3, r3, #31 - 800b234: f003 0301 and.w r3, r3, #1 - 800b238: b2db uxtb r3, r3 - 800b23a: 2b00 cmp r3, #0 - 800b23c: d007 beq.n 800b24e + 800b222: 693b ldr r3, [r7, #16] + 800b224: 685a ldr r2, [r3, #4] + 800b226: 4b1f ldr r3, [pc, #124] ; (800b2a4 ) + 800b228: 681b ldr r3, [r3, #0] + 800b22a: 685b ldr r3, [r3, #4] + 800b22c: 1ad3 subs r3, r2, r3 + 800b22e: 0fdb lsrs r3, r3, #31 + 800b230: f003 0301 and.w r3, r3, #1 + 800b234: b2db uxtb r3, r3 + 800b236: 2b00 cmp r3, #0 + 800b238: d007 beq.n 800b24a timeout->next = next_timeout; - 800b23e: 4b1a ldr r3, [pc, #104] ; (800b2a8 ) - 800b240: 681a ldr r2, [r3, #0] - 800b242: 693b ldr r3, [r7, #16] - 800b244: 601a str r2, [r3, #0] + 800b23a: 4b1a ldr r3, [pc, #104] ; (800b2a4 ) + 800b23c: 681a ldr r2, [r3, #0] + 800b23e: 693b ldr r3, [r7, #16] + 800b240: 601a str r2, [r3, #0] next_timeout = timeout; - 800b246: 4a18 ldr r2, [pc, #96] ; (800b2a8 ) - 800b248: 693b ldr r3, [r7, #16] - 800b24a: 6013 str r3, [r2, #0] - 800b24c: e023 b.n 800b296 + 800b242: 4a18 ldr r2, [pc, #96] ; (800b2a4 ) + 800b244: 693b ldr r3, [r7, #16] + 800b246: 6013 str r3, [r2, #0] + 800b248: e023 b.n 800b292 } else { for (t = next_timeout; t != NULL; t = t->next) { - 800b24e: 4b16 ldr r3, [pc, #88] ; (800b2a8 ) - 800b250: 681b ldr r3, [r3, #0] - 800b252: 617b str r3, [r7, #20] - 800b254: e01a b.n 800b28c + 800b24a: 4b16 ldr r3, [pc, #88] ; (800b2a4 ) + 800b24c: 681b ldr r3, [r3, #0] + 800b24e: 617b str r3, [r7, #20] + 800b250: e01a b.n 800b288 if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) { - 800b256: 697b ldr r3, [r7, #20] - 800b258: 681b ldr r3, [r3, #0] - 800b25a: 2b00 cmp r3, #0 - 800b25c: d00b beq.n 800b276 - 800b25e: 693b ldr r3, [r7, #16] - 800b260: 685a ldr r2, [r3, #4] - 800b262: 697b ldr r3, [r7, #20] - 800b264: 681b ldr r3, [r3, #0] - 800b266: 685b ldr r3, [r3, #4] - 800b268: 1ad3 subs r3, r2, r3 - 800b26a: 0fdb lsrs r3, r3, #31 - 800b26c: f003 0301 and.w r3, r3, #1 - 800b270: b2db uxtb r3, r3 - 800b272: 2b00 cmp r3, #0 - 800b274: d007 beq.n 800b286 + 800b252: 697b ldr r3, [r7, #20] + 800b254: 681b ldr r3, [r3, #0] + 800b256: 2b00 cmp r3, #0 + 800b258: d00b beq.n 800b272 + 800b25a: 693b ldr r3, [r7, #16] + 800b25c: 685a ldr r2, [r3, #4] + 800b25e: 697b ldr r3, [r7, #20] + 800b260: 681b ldr r3, [r3, #0] + 800b262: 685b ldr r3, [r3, #4] + 800b264: 1ad3 subs r3, r2, r3 + 800b266: 0fdb lsrs r3, r3, #31 + 800b268: f003 0301 and.w r3, r3, #1 + 800b26c: b2db uxtb r3, r3 + 800b26e: 2b00 cmp r3, #0 + 800b270: d007 beq.n 800b282 timeout->next = t->next; - 800b276: 697b ldr r3, [r7, #20] - 800b278: 681a ldr r2, [r3, #0] - 800b27a: 693b ldr r3, [r7, #16] - 800b27c: 601a str r2, [r3, #0] + 800b272: 697b ldr r3, [r7, #20] + 800b274: 681a ldr r2, [r3, #0] + 800b276: 693b ldr r3, [r7, #16] + 800b278: 601a str r2, [r3, #0] t->next = timeout; - 800b27e: 697b ldr r3, [r7, #20] - 800b280: 693a ldr r2, [r7, #16] - 800b282: 601a str r2, [r3, #0] + 800b27a: 697b ldr r3, [r7, #20] + 800b27c: 693a ldr r2, [r7, #16] + 800b27e: 601a str r2, [r3, #0] break; - 800b284: e007 b.n 800b296 + 800b280: e007 b.n 800b292 for (t = next_timeout; t != NULL; t = t->next) { - 800b286: 697b ldr r3, [r7, #20] - 800b288: 681b ldr r3, [r3, #0] - 800b28a: 617b str r3, [r7, #20] - 800b28c: 697b ldr r3, [r7, #20] - 800b28e: 2b00 cmp r3, #0 - 800b290: d1e1 bne.n 800b256 - 800b292: e000 b.n 800b296 + 800b282: 697b ldr r3, [r7, #20] + 800b284: 681b ldr r3, [r3, #0] + 800b286: 617b str r3, [r7, #20] + 800b288: 697b ldr r3, [r7, #20] + 800b28a: 2b00 cmp r3, #0 + 800b28c: d1e1 bne.n 800b252 + 800b28e: e000 b.n 800b292 return; - 800b294: bf00 nop + 800b290: bf00 nop } } } } - 800b296: 3718 adds r7, #24 - 800b298: 46bd mov sp, r7 - 800b29a: bd80 pop {r7, pc} - 800b29c: 08016dc0 .word 0x08016dc0 - 800b2a0: 08016df4 .word 0x08016df4 - 800b2a4: 08016e34 .word 0x08016e34 - 800b2a8: 20008c50 .word 0x20008c50 + 800b292: 3718 adds r7, #24 + 800b294: 46bd mov sp, r7 + 800b296: bd80 pop {r7, pc} + 800b298: 08016dc0 .word 0x08016dc0 + 800b29c: 08016df4 .word 0x08016df4 + 800b2a0: 08016e34 .word 0x08016e34 + 800b2a4: 20008c50 .word 0x20008c50 -0800b2ac : +0800b2a8 : #if !LWIP_TESTMODE static #endif void lwip_cyclic_timer(void *arg) { - 800b2ac: b580 push {r7, lr} - 800b2ae: b086 sub sp, #24 - 800b2b0: af00 add r7, sp, #0 - 800b2b2: 6078 str r0, [r7, #4] + 800b2a8: b580 push {r7, lr} + 800b2aa: b086 sub sp, #24 + 800b2ac: af00 add r7, sp, #0 + 800b2ae: 6078 str r0, [r7, #4] u32_t now; u32_t next_timeout_time; const struct lwip_cyclic_timer *cyclic = (const struct lwip_cyclic_timer *)arg; - 800b2b4: 687b ldr r3, [r7, #4] - 800b2b6: 617b str r3, [r7, #20] + 800b2b0: 687b ldr r3, [r7, #4] + 800b2b2: 617b str r3, [r7, #20] #if LWIP_DEBUG_TIMERNAMES LWIP_DEBUGF(TIMERS_DEBUG, ("tcpip: %s()\n", cyclic->handler_name)); #endif cyclic->handler(); - 800b2b8: 697b ldr r3, [r7, #20] - 800b2ba: 685b ldr r3, [r3, #4] - 800b2bc: 4798 blx r3 + 800b2b4: 697b ldr r3, [r7, #20] + 800b2b6: 685b ldr r3, [r3, #4] + 800b2b8: 4798 blx r3 now = sys_now(); - 800b2be: f7f8 fdeb bl 8003e98 - 800b2c2: 6138 str r0, [r7, #16] + 800b2ba: f7f8 fdeb bl 8003e94 + 800b2be: 6138 str r0, [r7, #16] next_timeout_time = (u32_t)(current_timeout_due_time + cyclic->interval_ms); /* overflow handled by TIME_LESS_THAN macro */ - 800b2c4: 697b ldr r3, [r7, #20] - 800b2c6: 681a ldr r2, [r3, #0] - 800b2c8: 4b0f ldr r3, [pc, #60] ; (800b308 ) - 800b2ca: 681b ldr r3, [r3, #0] - 800b2cc: 4413 add r3, r2 - 800b2ce: 60fb str r3, [r7, #12] + 800b2c0: 697b ldr r3, [r7, #20] + 800b2c2: 681a ldr r2, [r3, #0] + 800b2c4: 4b0f ldr r3, [pc, #60] ; (800b304 ) + 800b2c6: 681b ldr r3, [r3, #0] + 800b2c8: 4413 add r3, r2 + 800b2ca: 60fb str r3, [r7, #12] if (TIME_LESS_THAN(next_timeout_time, now)) { - 800b2d0: 68fa ldr r2, [r7, #12] - 800b2d2: 693b ldr r3, [r7, #16] - 800b2d4: 1ad3 subs r3, r2, r3 - 800b2d6: 0fdb lsrs r3, r3, #31 - 800b2d8: f003 0301 and.w r3, r3, #1 - 800b2dc: b2db uxtb r3, r3 - 800b2de: 2b00 cmp r3, #0 - 800b2e0: d009 beq.n 800b2f6 + 800b2cc: 68fa ldr r2, [r7, #12] + 800b2ce: 693b ldr r3, [r7, #16] + 800b2d0: 1ad3 subs r3, r2, r3 + 800b2d2: 0fdb lsrs r3, r3, #31 + 800b2d4: f003 0301 and.w r3, r3, #1 + 800b2d8: b2db uxtb r3, r3 + 800b2da: 2b00 cmp r3, #0 + 800b2dc: d009 beq.n 800b2f2 /* timer would immediately expire again -> "overload" -> restart without any correction */ #if LWIP_DEBUG_TIMERNAMES sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg, cyclic->handler_name); #else sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg); - 800b2e2: 697b ldr r3, [r7, #20] - 800b2e4: 681a ldr r2, [r3, #0] - 800b2e6: 693b ldr r3, [r7, #16] - 800b2e8: 4413 add r3, r2 - 800b2ea: 687a ldr r2, [r7, #4] - 800b2ec: 4907 ldr r1, [pc, #28] ; (800b30c ) - 800b2ee: 4618 mov r0, r3 - 800b2f0: f7ff ff6e bl 800b1d0 + 800b2de: 697b ldr r3, [r7, #20] + 800b2e0: 681a ldr r2, [r3, #0] + 800b2e2: 693b ldr r3, [r7, #16] + 800b2e4: 4413 add r3, r2 + 800b2e6: 687a ldr r2, [r7, #4] + 800b2e8: 4907 ldr r1, [pc, #28] ; (800b308 ) + 800b2ea: 4618 mov r0, r3 + 800b2ec: f7ff ff6e bl 800b1cc sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg, cyclic->handler_name); #else sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg); #endif } } - 800b2f4: e004 b.n 800b300 + 800b2f0: e004 b.n 800b2fc sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg); - 800b2f6: 687a ldr r2, [r7, #4] - 800b2f8: 4904 ldr r1, [pc, #16] ; (800b30c ) - 800b2fa: 68f8 ldr r0, [r7, #12] - 800b2fc: f7ff ff68 bl 800b1d0 + 800b2f2: 687a ldr r2, [r7, #4] + 800b2f4: 4904 ldr r1, [pc, #16] ; (800b308 ) + 800b2f6: 68f8 ldr r0, [r7, #12] + 800b2f8: f7ff ff68 bl 800b1cc } - 800b300: bf00 nop - 800b302: 3718 adds r7, #24 - 800b304: 46bd mov sp, r7 - 800b306: bd80 pop {r7, pc} - 800b308: 20008c54 .word 0x20008c54 - 800b30c: 0800b2ad .word 0x0800b2ad + 800b2fc: bf00 nop + 800b2fe: 3718 adds r7, #24 + 800b300: 46bd mov sp, r7 + 800b302: bd80 pop {r7, pc} + 800b304: 20008c54 .word 0x20008c54 + 800b308: 0800b2a9 .word 0x0800b2a9 -0800b310 : +0800b30c : /** Initialize this module */ void sys_timeouts_init(void) { - 800b310: b580 push {r7, lr} - 800b312: b082 sub sp, #8 - 800b314: af00 add r7, sp, #0 + 800b30c: b580 push {r7, lr} + 800b30e: b082 sub sp, #8 + 800b310: af00 add r7, sp, #0 size_t i; /* tcp_tmr() at index 0 is started on demand */ for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) { - 800b316: 2301 movs r3, #1 - 800b318: 607b str r3, [r7, #4] - 800b31a: e00e b.n 800b33a + 800b312: 2301 movs r3, #1 + 800b314: 607b str r3, [r7, #4] + 800b316: e00e b.n 800b336 /* we have to cast via size_t to get rid of const warning (this is OK as cyclic_timer() casts back to const* */ sys_timeout(lwip_cyclic_timers[i].interval_ms, lwip_cyclic_timer, LWIP_CONST_CAST(void *, &lwip_cyclic_timers[i])); - 800b31c: 4a0b ldr r2, [pc, #44] ; (800b34c ) - 800b31e: 687b ldr r3, [r7, #4] - 800b320: f852 0033 ldr.w r0, [r2, r3, lsl #3] - 800b324: 687b ldr r3, [r7, #4] - 800b326: 00db lsls r3, r3, #3 - 800b328: 4a08 ldr r2, [pc, #32] ; (800b34c ) - 800b32a: 4413 add r3, r2 - 800b32c: 461a mov r2, r3 - 800b32e: 4908 ldr r1, [pc, #32] ; (800b350 ) - 800b330: f000 f810 bl 800b354 + 800b318: 4a0b ldr r2, [pc, #44] ; (800b348 ) + 800b31a: 687b ldr r3, [r7, #4] + 800b31c: f852 0033 ldr.w r0, [r2, r3, lsl #3] + 800b320: 687b ldr r3, [r7, #4] + 800b322: 00db lsls r3, r3, #3 + 800b324: 4a08 ldr r2, [pc, #32] ; (800b348 ) + 800b326: 4413 add r3, r2 + 800b328: 461a mov r2, r3 + 800b32a: 4908 ldr r1, [pc, #32] ; (800b34c ) + 800b32c: f000 f810 bl 800b350 for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) { - 800b334: 687b ldr r3, [r7, #4] - 800b336: 3301 adds r3, #1 - 800b338: 607b str r3, [r7, #4] - 800b33a: 687b ldr r3, [r7, #4] - 800b33c: 2b04 cmp r3, #4 - 800b33e: d9ed bls.n 800b31c + 800b330: 687b ldr r3, [r7, #4] + 800b332: 3301 adds r3, #1 + 800b334: 607b str r3, [r7, #4] + 800b336: 687b ldr r3, [r7, #4] + 800b338: 2b04 cmp r3, #4 + 800b33a: d9ed bls.n 800b318 } } - 800b340: bf00 nop - 800b342: bf00 nop - 800b344: 3708 adds r7, #8 - 800b346: 46bd mov sp, r7 - 800b348: bd80 pop {r7, pc} - 800b34a: bf00 nop - 800b34c: 08017db4 .word 0x08017db4 - 800b350: 0800b2ad .word 0x0800b2ad + 800b33c: bf00 nop + 800b33e: bf00 nop + 800b340: 3708 adds r7, #8 + 800b342: 46bd mov sp, r7 + 800b344: bd80 pop {r7, pc} + 800b346: bf00 nop + 800b348: 08017db4 .word 0x08017db4 + 800b34c: 0800b2a9 .word 0x0800b2a9 -0800b354 : +0800b350 : sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char *handler_name) #else /* LWIP_DEBUG_TIMERNAMES */ void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg) #endif /* LWIP_DEBUG_TIMERNAMES */ { - 800b354: b580 push {r7, lr} - 800b356: b086 sub sp, #24 - 800b358: af00 add r7, sp, #0 - 800b35a: 60f8 str r0, [r7, #12] - 800b35c: 60b9 str r1, [r7, #8] - 800b35e: 607a str r2, [r7, #4] + 800b350: b580 push {r7, lr} + 800b352: b086 sub sp, #24 + 800b354: af00 add r7, sp, #0 + 800b356: 60f8 str r0, [r7, #12] + 800b358: 60b9 str r1, [r7, #8] + 800b35a: 607a str r2, [r7, #4] u32_t next_timeout_time; LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("Timeout time too long, max is LWIP_UINT32_MAX/4 msecs", msecs <= (LWIP_UINT32_MAX / 4)); - 800b360: 68fb ldr r3, [r7, #12] - 800b362: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800b366: d306 bcc.n 800b376 - 800b368: 4b0a ldr r3, [pc, #40] ; (800b394 ) - 800b36a: f240 1229 movw r2, #297 ; 0x129 - 800b36e: 490a ldr r1, [pc, #40] ; (800b398 ) - 800b370: 480a ldr r0, [pc, #40] ; (800b39c ) - 800b372: f005 f82f bl 80103d4 + 800b35c: 68fb ldr r3, [r7, #12] + 800b35e: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 800b362: d306 bcc.n 800b372 + 800b364: 4b0a ldr r3, [pc, #40] ; (800b390 ) + 800b366: f240 1229 movw r2, #297 ; 0x129 + 800b36a: 490a ldr r1, [pc, #40] ; (800b394 ) + 800b36c: 480a ldr r0, [pc, #40] ; (800b398 ) + 800b36e: f005 f82f bl 80103d0 next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */ - 800b376: f7f8 fd8f bl 8003e98 - 800b37a: 4602 mov r2, r0 - 800b37c: 68fb ldr r3, [r7, #12] - 800b37e: 4413 add r3, r2 - 800b380: 617b str r3, [r7, #20] + 800b372: f7f8 fd8f bl 8003e94 + 800b376: 4602 mov r2, r0 + 800b378: 68fb ldr r3, [r7, #12] + 800b37a: 4413 add r3, r2 + 800b37c: 617b str r3, [r7, #20] #if LWIP_DEBUG_TIMERNAMES sys_timeout_abs(next_timeout_time, handler, arg, handler_name); #else sys_timeout_abs(next_timeout_time, handler, arg); - 800b382: 687a ldr r2, [r7, #4] - 800b384: 68b9 ldr r1, [r7, #8] - 800b386: 6978 ldr r0, [r7, #20] - 800b388: f7ff ff22 bl 800b1d0 + 800b37e: 687a ldr r2, [r7, #4] + 800b380: 68b9 ldr r1, [r7, #8] + 800b382: 6978 ldr r0, [r7, #20] + 800b384: f7ff ff22 bl 800b1cc #endif } - 800b38c: bf00 nop - 800b38e: 3718 adds r7, #24 - 800b390: 46bd mov sp, r7 - 800b392: bd80 pop {r7, pc} - 800b394: 08016dc0 .word 0x08016dc0 - 800b398: 08016e5c .word 0x08016e5c - 800b39c: 08016e34 .word 0x08016e34 + 800b388: bf00 nop + 800b38a: 3718 adds r7, #24 + 800b38c: 46bd mov sp, r7 + 800b38e: bd80 pop {r7, pc} + 800b390: 08016dc0 .word 0x08016dc0 + 800b394: 08016e5c .word 0x08016e5c + 800b398: 08016e34 .word 0x08016e34 -0800b3a0 : +0800b39c : * * Must be called periodically from your main loop. */ void sys_check_timeouts(void) { - 800b3a0: b580 push {r7, lr} - 800b3a2: b084 sub sp, #16 - 800b3a4: af00 add r7, sp, #0 + 800b39c: b580 push {r7, lr} + 800b39e: b084 sub sp, #16 + 800b3a0: af00 add r7, sp, #0 u32_t now; LWIP_ASSERT_CORE_LOCKED(); /* Process only timers expired at the start of the function. */ now = sys_now(); - 800b3a6: f7f8 fd77 bl 8003e98 - 800b3aa: 60f8 str r0, [r7, #12] + 800b3a2: f7f8 fd77 bl 8003e94 + 800b3a6: 60f8 str r0, [r7, #12] do { struct sys_timeo *tmptimeout; sys_timeout_handler handler; void *arg; PBUF_CHECK_FREE_OOSEQ(); - 800b3ac: 4b1a ldr r3, [pc, #104] ; (800b418 ) - 800b3ae: 781b ldrb r3, [r3, #0] - 800b3b0: b2db uxtb r3, r3 - 800b3b2: 2b00 cmp r3, #0 - 800b3b4: d001 beq.n 800b3ba - 800b3b6: f7f9 ffb7 bl 8005328 + 800b3a8: 4b1a ldr r3, [pc, #104] ; (800b414 ) + 800b3aa: 781b ldrb r3, [r3, #0] + 800b3ac: b2db uxtb r3, r3 + 800b3ae: 2b00 cmp r3, #0 + 800b3b0: d001 beq.n 800b3b6 + 800b3b2: f7f9 ffb7 bl 8005324 tmptimeout = next_timeout; - 800b3ba: 4b18 ldr r3, [pc, #96] ; (800b41c ) - 800b3bc: 681b ldr r3, [r3, #0] - 800b3be: 60bb str r3, [r7, #8] + 800b3b6: 4b18 ldr r3, [pc, #96] ; (800b418 ) + 800b3b8: 681b ldr r3, [r3, #0] + 800b3ba: 60bb str r3, [r7, #8] if (tmptimeout == NULL) { - 800b3c0: 68bb ldr r3, [r7, #8] - 800b3c2: 2b00 cmp r3, #0 - 800b3c4: d022 beq.n 800b40c + 800b3bc: 68bb ldr r3, [r7, #8] + 800b3be: 2b00 cmp r3, #0 + 800b3c0: d022 beq.n 800b408 return; } if (TIME_LESS_THAN(now, tmptimeout->time)) { - 800b3c6: 68bb ldr r3, [r7, #8] - 800b3c8: 685b ldr r3, [r3, #4] - 800b3ca: 68fa ldr r2, [r7, #12] - 800b3cc: 1ad3 subs r3, r2, r3 - 800b3ce: 0fdb lsrs r3, r3, #31 - 800b3d0: f003 0301 and.w r3, r3, #1 - 800b3d4: b2db uxtb r3, r3 - 800b3d6: 2b00 cmp r3, #0 - 800b3d8: d11a bne.n 800b410 + 800b3c2: 68bb ldr r3, [r7, #8] + 800b3c4: 685b ldr r3, [r3, #4] + 800b3c6: 68fa ldr r2, [r7, #12] + 800b3c8: 1ad3 subs r3, r2, r3 + 800b3ca: 0fdb lsrs r3, r3, #31 + 800b3cc: f003 0301 and.w r3, r3, #1 + 800b3d0: b2db uxtb r3, r3 + 800b3d2: 2b00 cmp r3, #0 + 800b3d4: d11a bne.n 800b40c return; } /* Timeout has expired */ next_timeout = tmptimeout->next; - 800b3da: 68bb ldr r3, [r7, #8] - 800b3dc: 681b ldr r3, [r3, #0] - 800b3de: 4a0f ldr r2, [pc, #60] ; (800b41c ) - 800b3e0: 6013 str r3, [r2, #0] + 800b3d6: 68bb ldr r3, [r7, #8] + 800b3d8: 681b ldr r3, [r3, #0] + 800b3da: 4a0f ldr r2, [pc, #60] ; (800b418 ) + 800b3dc: 6013 str r3, [r2, #0] handler = tmptimeout->h; - 800b3e2: 68bb ldr r3, [r7, #8] - 800b3e4: 689b ldr r3, [r3, #8] - 800b3e6: 607b str r3, [r7, #4] + 800b3de: 68bb ldr r3, [r7, #8] + 800b3e0: 689b ldr r3, [r3, #8] + 800b3e2: 607b str r3, [r7, #4] arg = tmptimeout->arg; - 800b3e8: 68bb ldr r3, [r7, #8] - 800b3ea: 68db ldr r3, [r3, #12] - 800b3ec: 603b str r3, [r7, #0] + 800b3e4: 68bb ldr r3, [r7, #8] + 800b3e6: 68db ldr r3, [r3, #12] + 800b3e8: 603b str r3, [r7, #0] current_timeout_due_time = tmptimeout->time; - 800b3ee: 68bb ldr r3, [r7, #8] - 800b3f0: 685b ldr r3, [r3, #4] - 800b3f2: 4a0b ldr r2, [pc, #44] ; (800b420 ) - 800b3f4: 6013 str r3, [r2, #0] + 800b3ea: 68bb ldr r3, [r7, #8] + 800b3ec: 685b ldr r3, [r3, #4] + 800b3ee: 4a0b ldr r2, [pc, #44] ; (800b41c ) + 800b3f0: 6013 str r3, [r2, #0] if (handler != NULL) { LWIP_DEBUGF(TIMERS_DEBUG, ("sct calling h=%s t=%"U32_F" arg=%p\n", tmptimeout->handler_name, sys_now() - tmptimeout->time, arg)); } #endif /* LWIP_DEBUG_TIMERNAMES */ memp_free(MEMP_SYS_TIMEOUT, tmptimeout); - 800b3f6: 68b9 ldr r1, [r7, #8] - 800b3f8: 2006 movs r0, #6 - 800b3fa: f7f9 fc4d bl 8004c98 + 800b3f2: 68b9 ldr r1, [r7, #8] + 800b3f4: 2006 movs r0, #6 + 800b3f6: f7f9 fc4d bl 8004c94 if (handler != NULL) { - 800b3fe: 687b ldr r3, [r7, #4] - 800b400: 2b00 cmp r3, #0 - 800b402: d0d3 beq.n 800b3ac + 800b3fa: 687b ldr r3, [r7, #4] + 800b3fc: 2b00 cmp r3, #0 + 800b3fe: d0d3 beq.n 800b3a8 handler(arg); - 800b404: 687b ldr r3, [r7, #4] - 800b406: 6838 ldr r0, [r7, #0] - 800b408: 4798 blx r3 + 800b400: 687b ldr r3, [r7, #4] + 800b402: 6838 ldr r0, [r7, #0] + 800b404: 4798 blx r3 do { - 800b40a: e7cf b.n 800b3ac + 800b406: e7cf b.n 800b3a8 + return; + 800b408: bf00 nop + 800b40a: e000 b.n 800b40e return; 800b40c: bf00 nop - 800b40e: e000 b.n 800b412 - return; - 800b410: bf00 nop } LWIP_TCPIP_THREAD_ALIVE(); /* Repeat until all expired timers have been called */ } while (1); } - 800b412: 3710 adds r7, #16 - 800b414: 46bd mov sp, r7 - 800b416: bd80 pop {r7, pc} - 800b418: 20008bfd .word 0x20008bfd - 800b41c: 20008c50 .word 0x20008c50 - 800b420: 20008c54 .word 0x20008c54 + 800b40e: 3710 adds r7, #16 + 800b410: 46bd mov sp, r7 + 800b412: bd80 pop {r7, pc} + 800b414: 20008bfd .word 0x20008bfd + 800b418: 20008c50 .word 0x20008c50 + 800b41c: 20008c54 .word 0x20008c54 -0800b424 : +0800b420 : /** * Initialize this module. */ void udp_init(void) { - 800b424: b580 push {r7, lr} - 800b426: af00 add r7, sp, #0 + 800b420: b580 push {r7, lr} + 800b422: af00 add r7, sp, #0 #ifdef LWIP_RAND udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); - 800b428: f004 ffe6 bl 80103f8 - 800b42c: 4603 mov r3, r0 - 800b42e: b29b uxth r3, r3 - 800b430: f3c3 030d ubfx r3, r3, #0, #14 - 800b434: b29b uxth r3, r3 - 800b436: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 - 800b43a: b29a uxth r2, r3 - 800b43c: 4b01 ldr r3, [pc, #4] ; (800b444 ) - 800b43e: 801a strh r2, [r3, #0] + 800b424: f004 ffe6 bl 80103f4 + 800b428: 4603 mov r3, r0 + 800b42a: b29b uxth r3, r3 + 800b42c: f3c3 030d ubfx r3, r3, #0, #14 + 800b430: b29b uxth r3, r3 + 800b432: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 + 800b436: b29a uxth r2, r3 + 800b438: 4b01 ldr r3, [pc, #4] ; (800b440 ) + 800b43a: 801a strh r2, [r3, #0] #endif /* LWIP_RAND */ } - 800b440: bf00 nop - 800b442: bd80 pop {r7, pc} - 800b444: 20000028 .word 0x20000028 + 800b43c: bf00 nop + 800b43e: bd80 pop {r7, pc} + 800b440: 20000028 .word 0x20000028 -0800b448 : +0800b444 : * * @return a new (free) local UDP port number */ static u16_t udp_new_port(void) { - 800b448: b480 push {r7} - 800b44a: b083 sub sp, #12 - 800b44c: af00 add r7, sp, #0 + 800b444: b480 push {r7} + 800b446: b083 sub sp, #12 + 800b448: af00 add r7, sp, #0 u16_t n = 0; - 800b44e: 2300 movs r3, #0 - 800b450: 80fb strh r3, [r7, #6] + 800b44a: 2300 movs r3, #0 + 800b44c: 80fb strh r3, [r7, #6] struct udp_pcb *pcb; again: if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) { - 800b452: 4b17 ldr r3, [pc, #92] ; (800b4b0 ) - 800b454: 881b ldrh r3, [r3, #0] - 800b456: 1c5a adds r2, r3, #1 - 800b458: b291 uxth r1, r2 - 800b45a: 4a15 ldr r2, [pc, #84] ; (800b4b0 ) - 800b45c: 8011 strh r1, [r2, #0] - 800b45e: f64f 72ff movw r2, #65535 ; 0xffff - 800b462: 4293 cmp r3, r2 - 800b464: d103 bne.n 800b46e + 800b44e: 4b17 ldr r3, [pc, #92] ; (800b4ac ) + 800b450: 881b ldrh r3, [r3, #0] + 800b452: 1c5a adds r2, r3, #1 + 800b454: b291 uxth r1, r2 + 800b456: 4a15 ldr r2, [pc, #84] ; (800b4ac ) + 800b458: 8011 strh r1, [r2, #0] + 800b45a: f64f 72ff movw r2, #65535 ; 0xffff + 800b45e: 4293 cmp r3, r2 + 800b460: d103 bne.n 800b46a udp_port = UDP_LOCAL_PORT_RANGE_START; - 800b466: 4b12 ldr r3, [pc, #72] ; (800b4b0 ) - 800b468: f44f 4240 mov.w r2, #49152 ; 0xc000 - 800b46c: 801a strh r2, [r3, #0] + 800b462: 4b12 ldr r3, [pc, #72] ; (800b4ac ) + 800b464: f44f 4240 mov.w r2, #49152 ; 0xc000 + 800b468: 801a strh r2, [r3, #0] } /* Check all PCBs. */ for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 800b46e: 4b11 ldr r3, [pc, #68] ; (800b4b4 ) - 800b470: 681b ldr r3, [r3, #0] - 800b472: 603b str r3, [r7, #0] - 800b474: e011 b.n 800b49a + 800b46a: 4b11 ldr r3, [pc, #68] ; (800b4b0 ) + 800b46c: 681b ldr r3, [r3, #0] + 800b46e: 603b str r3, [r7, #0] + 800b470: e011 b.n 800b496 if (pcb->local_port == udp_port) { - 800b476: 683b ldr r3, [r7, #0] - 800b478: 8a5a ldrh r2, [r3, #18] - 800b47a: 4b0d ldr r3, [pc, #52] ; (800b4b0 ) - 800b47c: 881b ldrh r3, [r3, #0] - 800b47e: 429a cmp r2, r3 - 800b480: d108 bne.n 800b494 + 800b472: 683b ldr r3, [r7, #0] + 800b474: 8a5a ldrh r2, [r3, #18] + 800b476: 4b0d ldr r3, [pc, #52] ; (800b4ac ) + 800b478: 881b ldrh r3, [r3, #0] + 800b47a: 429a cmp r2, r3 + 800b47c: d108 bne.n 800b490 if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) { - 800b482: 88fb ldrh r3, [r7, #6] - 800b484: 3301 adds r3, #1 - 800b486: 80fb strh r3, [r7, #6] - 800b488: 88fb ldrh r3, [r7, #6] - 800b48a: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 800b48e: d3e0 bcc.n 800b452 + 800b47e: 88fb ldrh r3, [r7, #6] + 800b480: 3301 adds r3, #1 + 800b482: 80fb strh r3, [r7, #6] + 800b484: 88fb ldrh r3, [r7, #6] + 800b486: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 800b48a: d3e0 bcc.n 800b44e return 0; - 800b490: 2300 movs r3, #0 - 800b492: e007 b.n 800b4a4 + 800b48c: 2300 movs r3, #0 + 800b48e: e007 b.n 800b4a0 for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 800b494: 683b ldr r3, [r7, #0] - 800b496: 68db ldr r3, [r3, #12] - 800b498: 603b str r3, [r7, #0] - 800b49a: 683b ldr r3, [r7, #0] - 800b49c: 2b00 cmp r3, #0 - 800b49e: d1ea bne.n 800b476 + 800b490: 683b ldr r3, [r7, #0] + 800b492: 68db ldr r3, [r3, #12] + 800b494: 603b str r3, [r7, #0] + 800b496: 683b ldr r3, [r7, #0] + 800b498: 2b00 cmp r3, #0 + 800b49a: d1ea bne.n 800b472 } goto again; } } return udp_port; - 800b4a0: 4b03 ldr r3, [pc, #12] ; (800b4b0 ) - 800b4a2: 881b ldrh r3, [r3, #0] + 800b49c: 4b03 ldr r3, [pc, #12] ; (800b4ac ) + 800b49e: 881b ldrh r3, [r3, #0] } - 800b4a4: 4618 mov r0, r3 - 800b4a6: 370c adds r7, #12 - 800b4a8: 46bd mov sp, r7 - 800b4aa: f85d 7b04 ldr.w r7, [sp], #4 - 800b4ae: 4770 bx lr - 800b4b0: 20000028 .word 0x20000028 - 800b4b4: 20008c5c .word 0x20008c5c + 800b4a0: 4618 mov r0, r3 + 800b4a2: 370c adds r7, #12 + 800b4a4: 46bd mov sp, r7 + 800b4a6: f85d 7b04 ldr.w r7, [sp], #4 + 800b4aa: 4770 bx lr + 800b4ac: 20000028 .word 0x20000028 + 800b4b0: 20008c5c .word 0x20008c5c -0800b4b8 : +0800b4b4 : * @param broadcast 1 if his is an IPv4 broadcast (global or subnet-only), 0 otherwise (only used for IPv4) * @return 1 on match, 0 otherwise */ static u8_t udp_input_local_match(struct udp_pcb *pcb, struct netif *inp, u8_t broadcast) { - 800b4b8: b580 push {r7, lr} - 800b4ba: b084 sub sp, #16 - 800b4bc: af00 add r7, sp, #0 - 800b4be: 60f8 str r0, [r7, #12] - 800b4c0: 60b9 str r1, [r7, #8] - 800b4c2: 4613 mov r3, r2 - 800b4c4: 71fb strb r3, [r7, #7] + 800b4b4: b580 push {r7, lr} + 800b4b6: b084 sub sp, #16 + 800b4b8: af00 add r7, sp, #0 + 800b4ba: 60f8 str r0, [r7, #12] + 800b4bc: 60b9 str r1, [r7, #8] + 800b4be: 4613 mov r3, r2 + 800b4c0: 71fb strb r3, [r7, #7] LWIP_UNUSED_ARG(inp); /* in IPv6 only case */ LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */ LWIP_ASSERT("udp_input_local_match: invalid pcb", pcb != NULL); - 800b4c6: 68fb ldr r3, [r7, #12] - 800b4c8: 2b00 cmp r3, #0 - 800b4ca: d105 bne.n 800b4d8 - 800b4cc: 4b27 ldr r3, [pc, #156] ; (800b56c ) - 800b4ce: 2287 movs r2, #135 ; 0x87 - 800b4d0: 4927 ldr r1, [pc, #156] ; (800b570 ) - 800b4d2: 4828 ldr r0, [pc, #160] ; (800b574 ) - 800b4d4: f004 ff7e bl 80103d4 + 800b4c2: 68fb ldr r3, [r7, #12] + 800b4c4: 2b00 cmp r3, #0 + 800b4c6: d105 bne.n 800b4d4 + 800b4c8: 4b27 ldr r3, [pc, #156] ; (800b568 ) + 800b4ca: 2287 movs r2, #135 ; 0x87 + 800b4cc: 4927 ldr r1, [pc, #156] ; (800b56c ) + 800b4ce: 4828 ldr r0, [pc, #160] ; (800b570 ) + 800b4d0: f004 ff7e bl 80103d0 LWIP_ASSERT("udp_input_local_match: invalid netif", inp != NULL); - 800b4d8: 68bb ldr r3, [r7, #8] - 800b4da: 2b00 cmp r3, #0 - 800b4dc: d105 bne.n 800b4ea - 800b4de: 4b23 ldr r3, [pc, #140] ; (800b56c ) - 800b4e0: 2288 movs r2, #136 ; 0x88 - 800b4e2: 4925 ldr r1, [pc, #148] ; (800b578 ) - 800b4e4: 4823 ldr r0, [pc, #140] ; (800b574 ) - 800b4e6: f004 ff75 bl 80103d4 + 800b4d4: 68bb ldr r3, [r7, #8] + 800b4d6: 2b00 cmp r3, #0 + 800b4d8: d105 bne.n 800b4e6 + 800b4da: 4b23 ldr r3, [pc, #140] ; (800b568 ) + 800b4dc: 2288 movs r2, #136 ; 0x88 + 800b4de: 4925 ldr r1, [pc, #148] ; (800b574 ) + 800b4e0: 4823 ldr r0, [pc, #140] ; (800b570 ) + 800b4e2: f004 ff75 bl 80103d0 /* check if PCB is bound to specific netif */ if ((pcb->netif_idx != NETIF_NO_INDEX) && - 800b4ea: 68fb ldr r3, [r7, #12] - 800b4ec: 7a1b ldrb r3, [r3, #8] - 800b4ee: 2b00 cmp r3, #0 - 800b4f0: d00b beq.n 800b50a + 800b4e6: 68fb ldr r3, [r7, #12] + 800b4e8: 7a1b ldrb r3, [r3, #8] + 800b4ea: 2b00 cmp r3, #0 + 800b4ec: d00b beq.n 800b506 (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 800b4f2: 68fb ldr r3, [r7, #12] - 800b4f4: 7a1a ldrb r2, [r3, #8] - 800b4f6: 4b21 ldr r3, [pc, #132] ; (800b57c ) - 800b4f8: 685b ldr r3, [r3, #4] - 800b4fa: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 800b4fe: 3301 adds r3, #1 - 800b500: b2db uxtb r3, r3 + 800b4ee: 68fb ldr r3, [r7, #12] + 800b4f0: 7a1a ldrb r2, [r3, #8] + 800b4f2: 4b21 ldr r3, [pc, #132] ; (800b578 ) + 800b4f4: 685b ldr r3, [r3, #4] + 800b4f6: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 800b4fa: 3301 adds r3, #1 + 800b4fc: b2db uxtb r3, r3 if ((pcb->netif_idx != NETIF_NO_INDEX) && - 800b502: 429a cmp r2, r3 - 800b504: d001 beq.n 800b50a + 800b4fe: 429a cmp r2, r3 + 800b500: d001 beq.n 800b506 return 0; - 800b506: 2300 movs r3, #0 - 800b508: e02b b.n 800b562 + 800b502: 2300 movs r3, #0 + 800b504: e02b b.n 800b55e /* Only need to check PCB if incoming IP version matches PCB IP version */ if (IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) { #if LWIP_IPV4 /* Special case: IPv4 broadcast: all or broadcasts in my subnet * Note: broadcast variable can only be 1 if it is an IPv4 broadcast */ if (broadcast != 0) { - 800b50a: 79fb ldrb r3, [r7, #7] - 800b50c: 2b00 cmp r3, #0 - 800b50e: d018 beq.n 800b542 + 800b506: 79fb ldrb r3, [r7, #7] + 800b508: 2b00 cmp r3, #0 + 800b50a: d018 beq.n 800b53e #if IP_SOF_BROADCAST_RECV if (ip_get_option(pcb, SOF_BROADCAST)) #endif /* IP_SOF_BROADCAST_RECV */ { if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 800b510: 68fb ldr r3, [r7, #12] - 800b512: 2b00 cmp r3, #0 - 800b514: d013 beq.n 800b53e - 800b516: 68fb ldr r3, [r7, #12] - 800b518: 681b ldr r3, [r3, #0] - 800b51a: 2b00 cmp r3, #0 - 800b51c: d00f beq.n 800b53e + 800b50c: 68fb ldr r3, [r7, #12] + 800b50e: 2b00 cmp r3, #0 + 800b510: d013 beq.n 800b53a + 800b512: 68fb ldr r3, [r7, #12] + 800b514: 681b ldr r3, [r3, #0] + 800b516: 2b00 cmp r3, #0 + 800b518: d00f beq.n 800b53a ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) || - 800b51e: 4b17 ldr r3, [pc, #92] ; (800b57c ) - 800b520: 695b ldr r3, [r3, #20] + 800b51a: 4b17 ldr r3, [pc, #92] ; (800b578 ) + 800b51c: 695b ldr r3, [r3, #20] if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 800b522: f1b3 3fff cmp.w r3, #4294967295 - 800b526: d00a beq.n 800b53e + 800b51e: f1b3 3fff cmp.w r3, #4294967295 + 800b522: d00a beq.n 800b53a ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) { - 800b528: 68fb ldr r3, [r7, #12] - 800b52a: 681a ldr r2, [r3, #0] - 800b52c: 4b13 ldr r3, [pc, #76] ; (800b57c ) - 800b52e: 695b ldr r3, [r3, #20] - 800b530: 405a eors r2, r3 - 800b532: 68bb ldr r3, [r7, #8] - 800b534: 3308 adds r3, #8 - 800b536: 681b ldr r3, [r3, #0] - 800b538: 4013 ands r3, r2 + 800b524: 68fb ldr r3, [r7, #12] + 800b526: 681a ldr r2, [r3, #0] + 800b528: 4b13 ldr r3, [pc, #76] ; (800b578 ) + 800b52a: 695b ldr r3, [r3, #20] + 800b52c: 405a eors r2, r3 + 800b52e: 68bb ldr r3, [r7, #8] + 800b530: 3308 adds r3, #8 + 800b532: 681b ldr r3, [r3, #0] + 800b534: 4013 ands r3, r2 ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) || - 800b53a: 2b00 cmp r3, #0 - 800b53c: d110 bne.n 800b560 + 800b536: 2b00 cmp r3, #0 + 800b538: d110 bne.n 800b55c return 1; - 800b53e: 2301 movs r3, #1 - 800b540: e00f b.n 800b562 + 800b53a: 2301 movs r3, #1 + 800b53c: e00f b.n 800b55e } } } else #endif /* LWIP_IPV4 */ /* Handle IPv4 and IPv6: all or exact match */ if (ip_addr_isany(&pcb->local_ip) || ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - 800b542: 68fb ldr r3, [r7, #12] - 800b544: 2b00 cmp r3, #0 - 800b546: d009 beq.n 800b55c - 800b548: 68fb ldr r3, [r7, #12] - 800b54a: 681b ldr r3, [r3, #0] - 800b54c: 2b00 cmp r3, #0 - 800b54e: d005 beq.n 800b55c - 800b550: 68fb ldr r3, [r7, #12] - 800b552: 681a ldr r2, [r3, #0] - 800b554: 4b09 ldr r3, [pc, #36] ; (800b57c ) - 800b556: 695b ldr r3, [r3, #20] - 800b558: 429a cmp r2, r3 - 800b55a: d101 bne.n 800b560 + 800b53e: 68fb ldr r3, [r7, #12] + 800b540: 2b00 cmp r3, #0 + 800b542: d009 beq.n 800b558 + 800b544: 68fb ldr r3, [r7, #12] + 800b546: 681b ldr r3, [r3, #0] + 800b548: 2b00 cmp r3, #0 + 800b54a: d005 beq.n 800b558 + 800b54c: 68fb ldr r3, [r7, #12] + 800b54e: 681a ldr r2, [r3, #0] + 800b550: 4b09 ldr r3, [pc, #36] ; (800b578 ) + 800b552: 695b ldr r3, [r3, #20] + 800b554: 429a cmp r2, r3 + 800b556: d101 bne.n 800b55c return 1; - 800b55c: 2301 movs r3, #1 - 800b55e: e000 b.n 800b562 + 800b558: 2301 movs r3, #1 + 800b55a: e000 b.n 800b55e } } return 0; - 800b560: 2300 movs r3, #0 + 800b55c: 2300 movs r3, #0 } - 800b562: 4618 mov r0, r3 - 800b564: 3710 adds r7, #16 - 800b566: 46bd mov sp, r7 - 800b568: bd80 pop {r7, pc} - 800b56a: bf00 nop - 800b56c: 08016ea8 .word 0x08016ea8 - 800b570: 08016ed8 .word 0x08016ed8 - 800b574: 08016efc .word 0x08016efc - 800b578: 08016f24 .word 0x08016f24 - 800b57c: 20005670 .word 0x20005670 + 800b55e: 4618 mov r0, r3 + 800b560: 3710 adds r7, #16 + 800b562: 46bd mov sp, r7 + 800b564: bd80 pop {r7, pc} + 800b566: bf00 nop + 800b568: 08016ea8 .word 0x08016ea8 + 800b56c: 08016ed8 .word 0x08016ed8 + 800b570: 08016efc .word 0x08016efc + 800b574: 08016f24 .word 0x08016f24 + 800b578: 20005670 .word 0x20005670 -0800b580 : +0800b57c : * @param inp network interface on which the datagram was received. * */ void udp_input(struct pbuf *p, struct netif *inp) { - 800b580: b590 push {r4, r7, lr} - 800b582: b08d sub sp, #52 ; 0x34 - 800b584: af02 add r7, sp, #8 - 800b586: 6078 str r0, [r7, #4] - 800b588: 6039 str r1, [r7, #0] + 800b57c: b590 push {r4, r7, lr} + 800b57e: b08d sub sp, #52 ; 0x34 + 800b580: af02 add r7, sp, #8 + 800b582: 6078 str r0, [r7, #4] + 800b584: 6039 str r1, [r7, #0] struct udp_hdr *udphdr; struct udp_pcb *pcb, *prev; struct udp_pcb *uncon_pcb; u16_t src, dest; u8_t broadcast; u8_t for_us = 0; - 800b58a: 2300 movs r3, #0 - 800b58c: 76fb strb r3, [r7, #27] + 800b586: 2300 movs r3, #0 + 800b588: 76fb strb r3, [r7, #27] LWIP_UNUSED_ARG(inp); LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("udp_input: invalid pbuf", p != NULL); - 800b58e: 687b ldr r3, [r7, #4] - 800b590: 2b00 cmp r3, #0 - 800b592: d105 bne.n 800b5a0 - 800b594: 4b7c ldr r3, [pc, #496] ; (800b788 ) - 800b596: 22cf movs r2, #207 ; 0xcf - 800b598: 497c ldr r1, [pc, #496] ; (800b78c ) - 800b59a: 487d ldr r0, [pc, #500] ; (800b790 ) - 800b59c: f004 ff1a bl 80103d4 + 800b58a: 687b ldr r3, [r7, #4] + 800b58c: 2b00 cmp r3, #0 + 800b58e: d105 bne.n 800b59c + 800b590: 4b7c ldr r3, [pc, #496] ; (800b784 ) + 800b592: 22cf movs r2, #207 ; 0xcf + 800b594: 497c ldr r1, [pc, #496] ; (800b788 ) + 800b596: 487d ldr r0, [pc, #500] ; (800b78c ) + 800b598: f004 ff1a bl 80103d0 LWIP_ASSERT("udp_input: invalid netif", inp != NULL); - 800b5a0: 683b ldr r3, [r7, #0] - 800b5a2: 2b00 cmp r3, #0 - 800b5a4: d105 bne.n 800b5b2 - 800b5a6: 4b78 ldr r3, [pc, #480] ; (800b788 ) - 800b5a8: 22d0 movs r2, #208 ; 0xd0 - 800b5aa: 497a ldr r1, [pc, #488] ; (800b794 ) - 800b5ac: 4878 ldr r0, [pc, #480] ; (800b790 ) - 800b5ae: f004 ff11 bl 80103d4 + 800b59c: 683b ldr r3, [r7, #0] + 800b59e: 2b00 cmp r3, #0 + 800b5a0: d105 bne.n 800b5ae + 800b5a2: 4b78 ldr r3, [pc, #480] ; (800b784 ) + 800b5a4: 22d0 movs r2, #208 ; 0xd0 + 800b5a6: 497a ldr r1, [pc, #488] ; (800b790 ) + 800b5a8: 4878 ldr r0, [pc, #480] ; (800b78c ) + 800b5aa: f004 ff11 bl 80103d0 PERF_START; UDP_STATS_INC(udp.recv); /* Check minimum length (UDP header) */ if (p->len < UDP_HLEN) { - 800b5b2: 687b ldr r3, [r7, #4] - 800b5b4: 895b ldrh r3, [r3, #10] - 800b5b6: 2b07 cmp r3, #7 - 800b5b8: d803 bhi.n 800b5c2 + 800b5ae: 687b ldr r3, [r7, #4] + 800b5b0: 895b ldrh r3, [r3, #10] + 800b5b2: 2b07 cmp r3, #7 + 800b5b4: d803 bhi.n 800b5be LWIP_DEBUGF(UDP_DEBUG, ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len)); UDP_STATS_INC(udp.lenerr); UDP_STATS_INC(udp.drop); MIB2_STATS_INC(mib2.udpinerrors); pbuf_free(p); - 800b5ba: 6878 ldr r0, [r7, #4] - 800b5bc: f7fa f9ee bl 800599c + 800b5b6: 6878 ldr r0, [r7, #4] + 800b5b8: f7fa f9ee bl 8005998 goto end; - 800b5c0: e0de b.n 800b780 + 800b5bc: e0de b.n 800b77c } udphdr = (struct udp_hdr *)p->payload; - 800b5c2: 687b ldr r3, [r7, #4] - 800b5c4: 685b ldr r3, [r3, #4] - 800b5c6: 617b str r3, [r7, #20] + 800b5be: 687b ldr r3, [r7, #4] + 800b5c0: 685b ldr r3, [r3, #4] + 800b5c2: 617b str r3, [r7, #20] /* is broadcast packet ? */ broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()); - 800b5c8: 4b73 ldr r3, [pc, #460] ; (800b798 ) - 800b5ca: 695b ldr r3, [r3, #20] - 800b5cc: 4a72 ldr r2, [pc, #456] ; (800b798 ) - 800b5ce: 6812 ldr r2, [r2, #0] - 800b5d0: 4611 mov r1, r2 - 800b5d2: 4618 mov r0, r3 - 800b5d4: f003 fe06 bl 800f1e4 - 800b5d8: 4603 mov r3, r0 - 800b5da: 74fb strb r3, [r7, #19] + 800b5c4: 4b73 ldr r3, [pc, #460] ; (800b794 ) + 800b5c6: 695b ldr r3, [r3, #20] + 800b5c8: 4a72 ldr r2, [pc, #456] ; (800b794 ) + 800b5ca: 6812 ldr r2, [r2, #0] + 800b5cc: 4611 mov r1, r2 + 800b5ce: 4618 mov r0, r3 + 800b5d0: f003 fe06 bl 800f1e0 + 800b5d4: 4603 mov r3, r0 + 800b5d6: 74fb strb r3, [r7, #19] LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len)); /* convert src and dest ports to host byte order */ src = lwip_ntohs(udphdr->src); - 800b5dc: 697b ldr r3, [r7, #20] - 800b5de: 881b ldrh r3, [r3, #0] - 800b5e0: b29b uxth r3, r3 - 800b5e2: 4618 mov r0, r3 - 800b5e4: f7f8 fe70 bl 80042c8 - 800b5e8: 4603 mov r3, r0 - 800b5ea: 823b strh r3, [r7, #16] + 800b5d8: 697b ldr r3, [r7, #20] + 800b5da: 881b ldrh r3, [r3, #0] + 800b5dc: b29b uxth r3, r3 + 800b5de: 4618 mov r0, r3 + 800b5e0: f7f8 fe70 bl 80042c4 + 800b5e4: 4603 mov r3, r0 + 800b5e6: 823b strh r3, [r7, #16] dest = lwip_ntohs(udphdr->dest); - 800b5ec: 697b ldr r3, [r7, #20] - 800b5ee: 885b ldrh r3, [r3, #2] - 800b5f0: b29b uxth r3, r3 - 800b5f2: 4618 mov r0, r3 - 800b5f4: f7f8 fe68 bl 80042c8 - 800b5f8: 4603 mov r3, r0 - 800b5fa: 81fb strh r3, [r7, #14] + 800b5e8: 697b ldr r3, [r7, #20] + 800b5ea: 885b ldrh r3, [r3, #2] + 800b5ec: b29b uxth r3, r3 + 800b5ee: 4618 mov r0, r3 + 800b5f0: f7f8 fe68 bl 80042c4 + 800b5f4: 4603 mov r3, r0 + 800b5f6: 81fb strh r3, [r7, #14] ip_addr_debug_print_val(UDP_DEBUG, *ip_current_dest_addr()); LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest))); ip_addr_debug_print_val(UDP_DEBUG, *ip_current_src_addr()); LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src))); pcb = NULL; - 800b5fc: 2300 movs r3, #0 - 800b5fe: 627b str r3, [r7, #36] ; 0x24 + 800b5f8: 2300 movs r3, #0 + 800b5fa: 627b str r3, [r7, #36] ; 0x24 prev = NULL; - 800b600: 2300 movs r3, #0 - 800b602: 623b str r3, [r7, #32] + 800b5fc: 2300 movs r3, #0 + 800b5fe: 623b str r3, [r7, #32] uncon_pcb = NULL; - 800b604: 2300 movs r3, #0 - 800b606: 61fb str r3, [r7, #28] + 800b600: 2300 movs r3, #0 + 800b602: 61fb str r3, [r7, #28] /* Iterate through the UDP pcb list for a matching pcb. * 'Perfect match' pcbs (connected to the remote port & ip address) are * preferred. If no perfect match is found, the first unconnected pcb that * matches the local port and ip address gets the datagram. */ for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 800b608: 4b64 ldr r3, [pc, #400] ; (800b79c ) - 800b60a: 681b ldr r3, [r3, #0] - 800b60c: 627b str r3, [r7, #36] ; 0x24 - 800b60e: e054 b.n 800b6ba + 800b604: 4b64 ldr r3, [pc, #400] ; (800b798 ) + 800b606: 681b ldr r3, [r3, #0] + 800b608: 627b str r3, [r7, #36] ; 0x24 + 800b60a: e054 b.n 800b6b6 LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", pcb->local_port)); ip_addr_debug_print_val(UDP_DEBUG, pcb->remote_ip); LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", pcb->remote_port)); /* compare PCB local addr+port to UDP destination addr+port */ if ((pcb->local_port == dest) && - 800b610: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b612: 8a5b ldrh r3, [r3, #18] - 800b614: 89fa ldrh r2, [r7, #14] - 800b616: 429a cmp r2, r3 - 800b618: d14a bne.n 800b6b0 + 800b60c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b60e: 8a5b ldrh r3, [r3, #18] + 800b610: 89fa ldrh r2, [r7, #14] + 800b612: 429a cmp r2, r3 + 800b614: d14a bne.n 800b6ac (udp_input_local_match(pcb, inp, broadcast) != 0)) { - 800b61a: 7cfb ldrb r3, [r7, #19] - 800b61c: 461a mov r2, r3 - 800b61e: 6839 ldr r1, [r7, #0] - 800b620: 6a78 ldr r0, [r7, #36] ; 0x24 - 800b622: f7ff ff49 bl 800b4b8 - 800b626: 4603 mov r3, r0 + 800b616: 7cfb ldrb r3, [r7, #19] + 800b618: 461a mov r2, r3 + 800b61a: 6839 ldr r1, [r7, #0] + 800b61c: 6a78 ldr r0, [r7, #36] ; 0x24 + 800b61e: f7ff ff49 bl 800b4b4 + 800b622: 4603 mov r3, r0 if ((pcb->local_port == dest) && - 800b628: 2b00 cmp r3, #0 - 800b62a: d041 beq.n 800b6b0 + 800b624: 2b00 cmp r3, #0 + 800b626: d041 beq.n 800b6ac if ((pcb->flags & UDP_FLAGS_CONNECTED) == 0) { - 800b62c: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b62e: 7c1b ldrb r3, [r3, #16] - 800b630: f003 0304 and.w r3, r3, #4 - 800b634: 2b00 cmp r3, #0 - 800b636: d11d bne.n 800b674 + 800b628: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b62a: 7c1b ldrb r3, [r3, #16] + 800b62c: f003 0304 and.w r3, r3, #4 + 800b630: 2b00 cmp r3, #0 + 800b632: d11d bne.n 800b670 if (uncon_pcb == NULL) { - 800b638: 69fb ldr r3, [r7, #28] - 800b63a: 2b00 cmp r3, #0 - 800b63c: d102 bne.n 800b644 + 800b634: 69fb ldr r3, [r7, #28] + 800b636: 2b00 cmp r3, #0 + 800b638: d102 bne.n 800b640 /* the first unconnected matching PCB */ uncon_pcb = pcb; - 800b63e: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b640: 61fb str r3, [r7, #28] - 800b642: e017 b.n 800b674 + 800b63a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b63c: 61fb str r3, [r7, #28] + 800b63e: e017 b.n 800b670 #if LWIP_IPV4 } else if (broadcast && ip4_current_dest_addr()->addr == IPADDR_BROADCAST) { - 800b644: 7cfb ldrb r3, [r7, #19] - 800b646: 2b00 cmp r3, #0 - 800b648: d014 beq.n 800b674 - 800b64a: 4b53 ldr r3, [pc, #332] ; (800b798 ) - 800b64c: 695b ldr r3, [r3, #20] - 800b64e: f1b3 3fff cmp.w r3, #4294967295 - 800b652: d10f bne.n 800b674 + 800b640: 7cfb ldrb r3, [r7, #19] + 800b642: 2b00 cmp r3, #0 + 800b644: d014 beq.n 800b670 + 800b646: 4b53 ldr r3, [pc, #332] ; (800b794 ) + 800b648: 695b ldr r3, [r3, #20] + 800b64a: f1b3 3fff cmp.w r3, #4294967295 + 800b64e: d10f bne.n 800b670 /* global broadcast address (only valid for IPv4; match was checked before) */ if (!IP_IS_V4_VAL(uncon_pcb->local_ip) || !ip4_addr_cmp(ip_2_ip4(&uncon_pcb->local_ip), netif_ip4_addr(inp))) { - 800b654: 69fb ldr r3, [r7, #28] - 800b656: 681a ldr r2, [r3, #0] - 800b658: 683b ldr r3, [r7, #0] - 800b65a: 3304 adds r3, #4 - 800b65c: 681b ldr r3, [r3, #0] - 800b65e: 429a cmp r2, r3 - 800b660: d008 beq.n 800b674 + 800b650: 69fb ldr r3, [r7, #28] + 800b652: 681a ldr r2, [r3, #0] + 800b654: 683b ldr r3, [r7, #0] + 800b656: 3304 adds r3, #4 + 800b658: 681b ldr r3, [r3, #0] + 800b65a: 429a cmp r2, r3 + 800b65c: d008 beq.n 800b670 /* uncon_pcb does not match the input netif, check this pcb */ if (IP_IS_V4_VAL(pcb->local_ip) && ip4_addr_cmp(ip_2_ip4(&pcb->local_ip), netif_ip4_addr(inp))) { - 800b662: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b664: 681a ldr r2, [r3, #0] - 800b666: 683b ldr r3, [r7, #0] - 800b668: 3304 adds r3, #4 - 800b66a: 681b ldr r3, [r3, #0] - 800b66c: 429a cmp r2, r3 - 800b66e: d101 bne.n 800b674 + 800b65e: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b660: 681a ldr r2, [r3, #0] + 800b662: 683b ldr r3, [r7, #0] + 800b664: 3304 adds r3, #4 + 800b666: 681b ldr r3, [r3, #0] + 800b668: 429a cmp r2, r3 + 800b66a: d101 bne.n 800b670 /* better match */ uncon_pcb = pcb; - 800b670: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b672: 61fb str r3, [r7, #28] + 800b66c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b66e: 61fb str r3, [r7, #28] } #endif /* SO_REUSE */ } /* compare PCB remote addr+port to UDP source addr+port */ if ((pcb->remote_port == src) && - 800b674: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b676: 8a9b ldrh r3, [r3, #20] - 800b678: 8a3a ldrh r2, [r7, #16] - 800b67a: 429a cmp r2, r3 - 800b67c: d118 bne.n 800b6b0 + 800b670: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b672: 8a9b ldrh r3, [r3, #20] + 800b674: 8a3a ldrh r2, [r7, #16] + 800b676: 429a cmp r2, r3 + 800b678: d118 bne.n 800b6ac (ip_addr_isany_val(pcb->remote_ip) || - 800b67e: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b680: 685b ldr r3, [r3, #4] + 800b67a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b67c: 685b ldr r3, [r3, #4] if ((pcb->remote_port == src) && - 800b682: 2b00 cmp r3, #0 - 800b684: d005 beq.n 800b692 + 800b67e: 2b00 cmp r3, #0 + 800b680: d005 beq.n 800b68e ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) { - 800b686: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b688: 685a ldr r2, [r3, #4] - 800b68a: 4b43 ldr r3, [pc, #268] ; (800b798 ) - 800b68c: 691b ldr r3, [r3, #16] + 800b682: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b684: 685a ldr r2, [r3, #4] + 800b686: 4b43 ldr r3, [pc, #268] ; (800b794 ) + 800b688: 691b ldr r3, [r3, #16] (ip_addr_isany_val(pcb->remote_ip) || - 800b68e: 429a cmp r2, r3 - 800b690: d10e bne.n 800b6b0 + 800b68a: 429a cmp r2, r3 + 800b68c: d10e bne.n 800b6ac /* the first fully matching PCB */ if (prev != NULL) { - 800b692: 6a3b ldr r3, [r7, #32] - 800b694: 2b00 cmp r3, #0 - 800b696: d014 beq.n 800b6c2 + 800b68e: 6a3b ldr r3, [r7, #32] + 800b690: 2b00 cmp r3, #0 + 800b692: d014 beq.n 800b6be /* move the pcb to the front of udp_pcbs so that is found faster next time */ prev->next = pcb->next; - 800b698: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b69a: 68da ldr r2, [r3, #12] - 800b69c: 6a3b ldr r3, [r7, #32] - 800b69e: 60da str r2, [r3, #12] + 800b694: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b696: 68da ldr r2, [r3, #12] + 800b698: 6a3b ldr r3, [r7, #32] + 800b69a: 60da str r2, [r3, #12] pcb->next = udp_pcbs; - 800b6a0: 4b3e ldr r3, [pc, #248] ; (800b79c ) - 800b6a2: 681a ldr r2, [r3, #0] - 800b6a4: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b6a6: 60da str r2, [r3, #12] + 800b69c: 4b3e ldr r3, [pc, #248] ; (800b798 ) + 800b69e: 681a ldr r2, [r3, #0] + 800b6a0: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b6a2: 60da str r2, [r3, #12] udp_pcbs = pcb; - 800b6a8: 4a3c ldr r2, [pc, #240] ; (800b79c ) - 800b6aa: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b6ac: 6013 str r3, [r2, #0] + 800b6a4: 4a3c ldr r2, [pc, #240] ; (800b798 ) + 800b6a6: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b6a8: 6013 str r3, [r2, #0] } else { UDP_STATS_INC(udp.cachehit); } break; - 800b6ae: e008 b.n 800b6c2 + 800b6aa: e008 b.n 800b6be } } prev = pcb; - 800b6b0: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b6b2: 623b str r3, [r7, #32] + 800b6ac: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b6ae: 623b str r3, [r7, #32] for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 800b6b4: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b6b6: 68db ldr r3, [r3, #12] - 800b6b8: 627b str r3, [r7, #36] ; 0x24 - 800b6ba: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b6bc: 2b00 cmp r3, #0 - 800b6be: d1a7 bne.n 800b610 - 800b6c0: e000 b.n 800b6c4 + 800b6b0: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b6b2: 68db ldr r3, [r3, #12] + 800b6b4: 627b str r3, [r7, #36] ; 0x24 + 800b6b6: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b6b8: 2b00 cmp r3, #0 + 800b6ba: d1a7 bne.n 800b60c + 800b6bc: e000 b.n 800b6c0 break; - 800b6c2: bf00 nop + 800b6be: bf00 nop } /* no fully matching pcb found? then look for an unconnected pcb */ if (pcb == NULL) { - 800b6c4: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b6c6: 2b00 cmp r3, #0 - 800b6c8: d101 bne.n 800b6ce + 800b6c0: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b6c2: 2b00 cmp r3, #0 + 800b6c4: d101 bne.n 800b6ca pcb = uncon_pcb; - 800b6ca: 69fb ldr r3, [r7, #28] - 800b6cc: 627b str r3, [r7, #36] ; 0x24 + 800b6c6: 69fb ldr r3, [r7, #28] + 800b6c8: 627b str r3, [r7, #36] ; 0x24 } /* Check checksum if this is a match or if it was directed at us. */ if (pcb != NULL) { - 800b6ce: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b6d0: 2b00 cmp r3, #0 - 800b6d2: d002 beq.n 800b6da + 800b6ca: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b6cc: 2b00 cmp r3, #0 + 800b6ce: d002 beq.n 800b6d6 for_us = 1; - 800b6d4: 2301 movs r3, #1 - 800b6d6: 76fb strb r3, [r7, #27] - 800b6d8: e00a b.n 800b6f0 + 800b6d0: 2301 movs r3, #1 + 800b6d2: 76fb strb r3, [r7, #27] + 800b6d4: e00a b.n 800b6ec for_us = netif_get_ip6_addr_match(inp, ip6_current_dest_addr()) >= 0; } #endif /* LWIP_IPV6 */ #if LWIP_IPV4 if (!ip_current_is_v6()) { for_us = ip4_addr_cmp(netif_ip4_addr(inp), ip4_current_dest_addr()); - 800b6da: 683b ldr r3, [r7, #0] - 800b6dc: 3304 adds r3, #4 - 800b6de: 681a ldr r2, [r3, #0] - 800b6e0: 4b2d ldr r3, [pc, #180] ; (800b798 ) - 800b6e2: 695b ldr r3, [r3, #20] - 800b6e4: 429a cmp r2, r3 - 800b6e6: bf0c ite eq - 800b6e8: 2301 moveq r3, #1 - 800b6ea: 2300 movne r3, #0 - 800b6ec: b2db uxtb r3, r3 - 800b6ee: 76fb strb r3, [r7, #27] + 800b6d6: 683b ldr r3, [r7, #0] + 800b6d8: 3304 adds r3, #4 + 800b6da: 681a ldr r2, [r3, #0] + 800b6dc: 4b2d ldr r3, [pc, #180] ; (800b794 ) + 800b6de: 695b ldr r3, [r3, #20] + 800b6e0: 429a cmp r2, r3 + 800b6e2: bf0c ite eq + 800b6e4: 2301 moveq r3, #1 + 800b6e6: 2300 movne r3, #0 + 800b6e8: b2db uxtb r3, r3 + 800b6ea: 76fb strb r3, [r7, #27] } #endif /* LWIP_IPV4 */ } if (for_us) { - 800b6f0: 7efb ldrb r3, [r7, #27] - 800b6f2: 2b00 cmp r3, #0 - 800b6f4: d041 beq.n 800b77a + 800b6ec: 7efb ldrb r3, [r7, #27] + 800b6ee: 2b00 cmp r3, #0 + 800b6f0: d041 beq.n 800b776 } } } } #endif /* CHECKSUM_CHECK_UDP */ if (pbuf_remove_header(p, UDP_HLEN)) { - 800b6f6: 2108 movs r1, #8 - 800b6f8: 6878 ldr r0, [r7, #4] - 800b6fa: f7fa f8c9 bl 8005890 - 800b6fe: 4603 mov r3, r0 - 800b700: 2b00 cmp r3, #0 - 800b702: d00a beq.n 800b71a + 800b6f2: 2108 movs r1, #8 + 800b6f4: 6878 ldr r0, [r7, #4] + 800b6f6: f7fa f8c9 bl 800588c + 800b6fa: 4603 mov r3, r0 + 800b6fc: 2b00 cmp r3, #0 + 800b6fe: d00a beq.n 800b716 /* Can we cope with this failing? Just assert for now */ LWIP_ASSERT("pbuf_remove_header failed\n", 0); - 800b704: 4b20 ldr r3, [pc, #128] ; (800b788 ) - 800b706: f44f 72b8 mov.w r2, #368 ; 0x170 - 800b70a: 4925 ldr r1, [pc, #148] ; (800b7a0 ) - 800b70c: 4820 ldr r0, [pc, #128] ; (800b790 ) - 800b70e: f004 fe61 bl 80103d4 + 800b700: 4b20 ldr r3, [pc, #128] ; (800b784 ) + 800b702: f44f 72b8 mov.w r2, #368 ; 0x170 + 800b706: 4925 ldr r1, [pc, #148] ; (800b79c ) + 800b708: 4820 ldr r0, [pc, #128] ; (800b78c ) + 800b70a: f004 fe61 bl 80103d0 UDP_STATS_INC(udp.drop); MIB2_STATS_INC(mib2.udpinerrors); pbuf_free(p); - 800b712: 6878 ldr r0, [r7, #4] - 800b714: f7fa f942 bl 800599c + 800b70e: 6878 ldr r0, [r7, #4] + 800b710: f7fa f942 bl 8005998 goto end; - 800b718: e032 b.n 800b780 + 800b714: e032 b.n 800b77c } if (pcb != NULL) { - 800b71a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b71c: 2b00 cmp r3, #0 - 800b71e: d012 beq.n 800b746 + 800b716: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b718: 2b00 cmp r3, #0 + 800b71a: d012 beq.n 800b742 } } } #endif /* SO_REUSE && SO_REUSE_RXTOALL */ /* callback */ if (pcb->recv != NULL) { - 800b720: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b722: 699b ldr r3, [r3, #24] - 800b724: 2b00 cmp r3, #0 - 800b726: d00a beq.n 800b73e + 800b71c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b71e: 699b ldr r3, [r3, #24] + 800b720: 2b00 cmp r3, #0 + 800b722: d00a beq.n 800b73a /* now the recv function is responsible for freeing p */ pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src); + 800b724: 6a7b ldr r3, [r7, #36] ; 0x24 + 800b726: 699c ldr r4, [r3, #24] 800b728: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b72a: 699c ldr r4, [r3, #24] - 800b72c: 6a7b ldr r3, [r7, #36] ; 0x24 - 800b72e: 69d8 ldr r0, [r3, #28] - 800b730: 8a3b ldrh r3, [r7, #16] - 800b732: 9300 str r3, [sp, #0] - 800b734: 4b1b ldr r3, [pc, #108] ; (800b7a4 ) - 800b736: 687a ldr r2, [r7, #4] - 800b738: 6a79 ldr r1, [r7, #36] ; 0x24 - 800b73a: 47a0 blx r4 + 800b72a: 69d8 ldr r0, [r3, #28] + 800b72c: 8a3b ldrh r3, [r7, #16] + 800b72e: 9300 str r3, [sp, #0] + 800b730: 4b1b ldr r3, [pc, #108] ; (800b7a0 ) + 800b732: 687a ldr r2, [r7, #4] + 800b734: 6a79 ldr r1, [r7, #36] ; 0x24 + 800b736: 47a0 blx r4 } else { pbuf_free(p); } end: PERF_STOP("udp_input"); return; - 800b73c: e021 b.n 800b782 + 800b738: e021 b.n 800b77e pbuf_free(p); - 800b73e: 6878 ldr r0, [r7, #4] - 800b740: f7fa f92c bl 800599c + 800b73a: 6878 ldr r0, [r7, #4] + 800b73c: f7fa f92c bl 8005998 goto end; - 800b744: e01c b.n 800b780 + 800b740: e01c b.n 800b77c if (!broadcast && !ip_addr_ismulticast(ip_current_dest_addr())) { - 800b746: 7cfb ldrb r3, [r7, #19] - 800b748: 2b00 cmp r3, #0 - 800b74a: d112 bne.n 800b772 - 800b74c: 4b12 ldr r3, [pc, #72] ; (800b798 ) - 800b74e: 695b ldr r3, [r3, #20] - 800b750: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 800b754: 2be0 cmp r3, #224 ; 0xe0 - 800b756: d00c beq.n 800b772 + 800b742: 7cfb ldrb r3, [r7, #19] + 800b744: 2b00 cmp r3, #0 + 800b746: d112 bne.n 800b76e + 800b748: 4b12 ldr r3, [pc, #72] ; (800b794 ) + 800b74a: 695b ldr r3, [r3, #20] + 800b74c: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800b750: 2be0 cmp r3, #224 ; 0xe0 + 800b752: d00c beq.n 800b76e pbuf_header_force(p, (s16_t)(ip_current_header_tot_len() + UDP_HLEN)); - 800b758: 4b0f ldr r3, [pc, #60] ; (800b798 ) - 800b75a: 899b ldrh r3, [r3, #12] - 800b75c: 3308 adds r3, #8 - 800b75e: b29b uxth r3, r3 - 800b760: b21b sxth r3, r3 - 800b762: 4619 mov r1, r3 - 800b764: 6878 ldr r0, [r7, #4] - 800b766: f7fa f906 bl 8005976 + 800b754: 4b0f ldr r3, [pc, #60] ; (800b794 ) + 800b756: 899b ldrh r3, [r3, #12] + 800b758: 3308 adds r3, #8 + 800b75a: b29b uxth r3, r3 + 800b75c: b21b sxth r3, r3 + 800b75e: 4619 mov r1, r3 + 800b760: 6878 ldr r0, [r7, #4] + 800b762: f7fa f906 bl 8005972 icmp_port_unreach(ip_current_is_v6(), p); - 800b76a: 2103 movs r1, #3 - 800b76c: 6878 ldr r0, [r7, #4] - 800b76e: f003 f9fb bl 800eb68 + 800b766: 2103 movs r1, #3 + 800b768: 6878 ldr r0, [r7, #4] + 800b76a: f003 f9fb bl 800eb64 pbuf_free(p); - 800b772: 6878 ldr r0, [r7, #4] - 800b774: f7fa f912 bl 800599c + 800b76e: 6878 ldr r0, [r7, #4] + 800b770: f7fa f912 bl 8005998 return; - 800b778: e003 b.n 800b782 + 800b774: e003 b.n 800b77e pbuf_free(p); - 800b77a: 6878 ldr r0, [r7, #4] - 800b77c: f7fa f90e bl 800599c + 800b776: 6878 ldr r0, [r7, #4] + 800b778: f7fa f90e bl 8005998 return; - 800b780: bf00 nop + 800b77c: bf00 nop UDP_STATS_INC(udp.drop); MIB2_STATS_INC(mib2.udpinerrors); pbuf_free(p); PERF_STOP("udp_input"); #endif /* CHECKSUM_CHECK_UDP */ } - 800b782: 372c adds r7, #44 ; 0x2c - 800b784: 46bd mov sp, r7 - 800b786: bd90 pop {r4, r7, pc} - 800b788: 08016ea8 .word 0x08016ea8 - 800b78c: 08016f4c .word 0x08016f4c - 800b790: 08016efc .word 0x08016efc - 800b794: 08016f64 .word 0x08016f64 - 800b798: 20005670 .word 0x20005670 - 800b79c: 20008c5c .word 0x20008c5c - 800b7a0: 08016f80 .word 0x08016f80 - 800b7a4: 20005680 .word 0x20005680 + 800b77e: 372c adds r7, #44 ; 0x2c + 800b780: 46bd mov sp, r7 + 800b782: bd90 pop {r4, r7, pc} + 800b784: 08016ea8 .word 0x08016ea8 + 800b788: 08016f4c .word 0x08016f4c + 800b78c: 08016efc .word 0x08016efc + 800b790: 08016f64 .word 0x08016f64 + 800b794: 20005670 .word 0x20005670 + 800b798: 20008c5c .word 0x20008c5c + 800b79c: 08016f80 .word 0x08016f80 + 800b7a0: 20005680 .word 0x20005680 -0800b7a8 : +0800b7a4 : * @see udp_disconnect() udp_send() */ err_t udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif) { - 800b7a8: b580 push {r7, lr} - 800b7aa: b088 sub sp, #32 - 800b7ac: af02 add r7, sp, #8 - 800b7ae: 60f8 str r0, [r7, #12] - 800b7b0: 60b9 str r1, [r7, #8] - 800b7b2: 607a str r2, [r7, #4] - 800b7b4: 807b strh r3, [r7, #2] + 800b7a4: b580 push {r7, lr} + 800b7a6: b088 sub sp, #32 + 800b7a8: af02 add r7, sp, #8 + 800b7aa: 60f8 str r0, [r7, #12] + 800b7ac: 60b9 str r1, [r7, #8] + 800b7ae: 607a str r2, [r7, #4] + 800b7b0: 807b strh r3, [r7, #2] u16_t chksum) { #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ const ip_addr_t *src_ip; LWIP_ERROR("udp_sendto_if: invalid pcb", pcb != NULL, return ERR_ARG); - 800b7b6: 68fb ldr r3, [r7, #12] - 800b7b8: 2b00 cmp r3, #0 - 800b7ba: d109 bne.n 800b7d0 - 800b7bc: 4b2e ldr r3, [pc, #184] ; (800b878 ) - 800b7be: f44f 7220 mov.w r2, #640 ; 0x280 - 800b7c2: 492e ldr r1, [pc, #184] ; (800b87c ) - 800b7c4: 482e ldr r0, [pc, #184] ; (800b880 ) - 800b7c6: f004 fe05 bl 80103d4 - 800b7ca: f06f 030f mvn.w r3, #15 - 800b7ce: e04f b.n 800b870 + 800b7b2: 68fb ldr r3, [r7, #12] + 800b7b4: 2b00 cmp r3, #0 + 800b7b6: d109 bne.n 800b7cc + 800b7b8: 4b2e ldr r3, [pc, #184] ; (800b874 ) + 800b7ba: f44f 7220 mov.w r2, #640 ; 0x280 + 800b7be: 492e ldr r1, [pc, #184] ; (800b878 ) + 800b7c0: 482e ldr r0, [pc, #184] ; (800b87c ) + 800b7c2: f004 fe05 bl 80103d0 + 800b7c6: f06f 030f mvn.w r3, #15 + 800b7ca: e04f b.n 800b86c LWIP_ERROR("udp_sendto_if: invalid pbuf", p != NULL, return ERR_ARG); - 800b7d0: 68bb ldr r3, [r7, #8] - 800b7d2: 2b00 cmp r3, #0 - 800b7d4: d109 bne.n 800b7ea - 800b7d6: 4b28 ldr r3, [pc, #160] ; (800b878 ) - 800b7d8: f240 2281 movw r2, #641 ; 0x281 - 800b7dc: 4929 ldr r1, [pc, #164] ; (800b884 ) - 800b7de: 4828 ldr r0, [pc, #160] ; (800b880 ) - 800b7e0: f004 fdf8 bl 80103d4 - 800b7e4: f06f 030f mvn.w r3, #15 - 800b7e8: e042 b.n 800b870 + 800b7cc: 68bb ldr r3, [r7, #8] + 800b7ce: 2b00 cmp r3, #0 + 800b7d0: d109 bne.n 800b7e6 + 800b7d2: 4b28 ldr r3, [pc, #160] ; (800b874 ) + 800b7d4: f240 2281 movw r2, #641 ; 0x281 + 800b7d8: 4929 ldr r1, [pc, #164] ; (800b880 ) + 800b7da: 4828 ldr r0, [pc, #160] ; (800b87c ) + 800b7dc: f004 fdf8 bl 80103d0 + 800b7e0: f06f 030f mvn.w r3, #15 + 800b7e4: e042 b.n 800b86c LWIP_ERROR("udp_sendto_if: invalid dst_ip", dst_ip != NULL, return ERR_ARG); - 800b7ea: 687b ldr r3, [r7, #4] - 800b7ec: 2b00 cmp r3, #0 - 800b7ee: d109 bne.n 800b804 - 800b7f0: 4b21 ldr r3, [pc, #132] ; (800b878 ) - 800b7f2: f240 2282 movw r2, #642 ; 0x282 - 800b7f6: 4924 ldr r1, [pc, #144] ; (800b888 ) - 800b7f8: 4821 ldr r0, [pc, #132] ; (800b880 ) - 800b7fa: f004 fdeb bl 80103d4 - 800b7fe: f06f 030f mvn.w r3, #15 - 800b802: e035 b.n 800b870 + 800b7e6: 687b ldr r3, [r7, #4] + 800b7e8: 2b00 cmp r3, #0 + 800b7ea: d109 bne.n 800b800 + 800b7ec: 4b21 ldr r3, [pc, #132] ; (800b874 ) + 800b7ee: f240 2282 movw r2, #642 ; 0x282 + 800b7f2: 4924 ldr r1, [pc, #144] ; (800b884 ) + 800b7f4: 4821 ldr r0, [pc, #132] ; (800b87c ) + 800b7f6: f004 fdeb bl 80103d0 + 800b7fa: f06f 030f mvn.w r3, #15 + 800b7fe: e035 b.n 800b86c LWIP_ERROR("udp_sendto_if: invalid netif", netif != NULL, return ERR_ARG); - 800b804: 6a3b ldr r3, [r7, #32] - 800b806: 2b00 cmp r3, #0 - 800b808: d109 bne.n 800b81e - 800b80a: 4b1b ldr r3, [pc, #108] ; (800b878 ) - 800b80c: f240 2283 movw r2, #643 ; 0x283 - 800b810: 491e ldr r1, [pc, #120] ; (800b88c ) - 800b812: 481b ldr r0, [pc, #108] ; (800b880 ) - 800b814: f004 fdde bl 80103d4 - 800b818: f06f 030f mvn.w r3, #15 - 800b81c: e028 b.n 800b870 + 800b800: 6a3b ldr r3, [r7, #32] + 800b802: 2b00 cmp r3, #0 + 800b804: d109 bne.n 800b81a + 800b806: 4b1b ldr r3, [pc, #108] ; (800b874 ) + 800b808: f240 2283 movw r2, #643 ; 0x283 + 800b80c: 491e ldr r1, [pc, #120] ; (800b888 ) + 800b80e: 481b ldr r0, [pc, #108] ; (800b87c ) + 800b810: f004 fdde bl 80103d0 + 800b814: f06f 030f mvn.w r3, #15 + 800b818: e028 b.n 800b86c #endif /* LWIP_IPV6 */ #if LWIP_IPV4 && LWIP_IPV6 else #endif /* LWIP_IPV4 && LWIP_IPV6 */ #if LWIP_IPV4 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 800b81e: 68fb ldr r3, [r7, #12] - 800b820: 2b00 cmp r3, #0 - 800b822: d009 beq.n 800b838 - 800b824: 68fb ldr r3, [r7, #12] - 800b826: 681b ldr r3, [r3, #0] - 800b828: 2b00 cmp r3, #0 - 800b82a: d005 beq.n 800b838 + 800b81a: 68fb ldr r3, [r7, #12] + 800b81c: 2b00 cmp r3, #0 + 800b81e: d009 beq.n 800b834 + 800b820: 68fb ldr r3, [r7, #12] + 800b822: 681b ldr r3, [r3, #0] + 800b824: 2b00 cmp r3, #0 + 800b826: d005 beq.n 800b834 ip4_addr_ismulticast(ip_2_ip4(&pcb->local_ip))) { - 800b82c: 68fb ldr r3, [r7, #12] - 800b82e: 681b ldr r3, [r3, #0] - 800b830: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800b828: 68fb ldr r3, [r7, #12] + 800b82a: 681b ldr r3, [r3, #0] + 800b82c: f003 03f0 and.w r3, r3, #240 ; 0xf0 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 800b834: 2be0 cmp r3, #224 ; 0xe0 - 800b836: d103 bne.n 800b840 + 800b830: 2be0 cmp r3, #224 ; 0xe0 + 800b832: d103 bne.n 800b83c /* if the local_ip is any or multicast * use the outgoing network interface IP address as source address */ src_ip = netif_ip_addr4(netif); - 800b838: 6a3b ldr r3, [r7, #32] - 800b83a: 3304 adds r3, #4 - 800b83c: 617b str r3, [r7, #20] - 800b83e: e00b b.n 800b858 + 800b834: 6a3b ldr r3, [r7, #32] + 800b836: 3304 adds r3, #4 + 800b838: 617b str r3, [r7, #20] + 800b83a: e00b b.n 800b854 } else { /* check if UDP PCB local IP address is correct * this could be an old address if netif->ip_addr has changed */ if (!ip4_addr_cmp(ip_2_ip4(&(pcb->local_ip)), netif_ip4_addr(netif))) { - 800b840: 68fb ldr r3, [r7, #12] - 800b842: 681a ldr r2, [r3, #0] - 800b844: 6a3b ldr r3, [r7, #32] - 800b846: 3304 adds r3, #4 - 800b848: 681b ldr r3, [r3, #0] - 800b84a: 429a cmp r2, r3 - 800b84c: d002 beq.n 800b854 + 800b83c: 68fb ldr r3, [r7, #12] + 800b83e: 681a ldr r2, [r3, #0] + 800b840: 6a3b ldr r3, [r7, #32] + 800b842: 3304 adds r3, #4 + 800b844: 681b ldr r3, [r3, #0] + 800b846: 429a cmp r2, r3 + 800b848: d002 beq.n 800b850 /* local_ip doesn't match, drop the packet */ return ERR_RTE; - 800b84e: f06f 0303 mvn.w r3, #3 - 800b852: e00d b.n 800b870 + 800b84a: f06f 0303 mvn.w r3, #3 + 800b84e: e00d b.n 800b86c } /* use UDP PCB local IP address as source address */ src_ip = &pcb->local_ip; - 800b854: 68fb ldr r3, [r7, #12] - 800b856: 617b str r3, [r7, #20] + 800b850: 68fb ldr r3, [r7, #12] + 800b852: 617b str r3, [r7, #20] } #endif /* LWIP_IPV4 */ #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip); #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ return udp_sendto_if_src(pcb, p, dst_ip, dst_port, netif, src_ip); - 800b858: 887a ldrh r2, [r7, #2] - 800b85a: 697b ldr r3, [r7, #20] - 800b85c: 9301 str r3, [sp, #4] - 800b85e: 6a3b ldr r3, [r7, #32] - 800b860: 9300 str r3, [sp, #0] - 800b862: 4613 mov r3, r2 - 800b864: 687a ldr r2, [r7, #4] - 800b866: 68b9 ldr r1, [r7, #8] - 800b868: 68f8 ldr r0, [r7, #12] - 800b86a: f000 f811 bl 800b890 - 800b86e: 4603 mov r3, r0 + 800b854: 887a ldrh r2, [r7, #2] + 800b856: 697b ldr r3, [r7, #20] + 800b858: 9301 str r3, [sp, #4] + 800b85a: 6a3b ldr r3, [r7, #32] + 800b85c: 9300 str r3, [sp, #0] + 800b85e: 4613 mov r3, r2 + 800b860: 687a ldr r2, [r7, #4] + 800b862: 68b9 ldr r1, [r7, #8] + 800b864: 68f8 ldr r0, [r7, #12] + 800b866: f000 f811 bl 800b88c + 800b86a: 4603 mov r3, r0 #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ } - 800b870: 4618 mov r0, r3 - 800b872: 3718 adds r7, #24 - 800b874: 46bd mov sp, r7 - 800b876: bd80 pop {r7, pc} - 800b878: 08016ea8 .word 0x08016ea8 - 800b87c: 0801701c .word 0x0801701c - 800b880: 08016efc .word 0x08016efc - 800b884: 08017038 .word 0x08017038 - 800b888: 08017054 .word 0x08017054 - 800b88c: 08017074 .word 0x08017074 + 800b86c: 4618 mov r0, r3 + 800b86e: 3718 adds r7, #24 + 800b870: 46bd mov sp, r7 + 800b872: bd80 pop {r7, pc} + 800b874: 08016ea8 .word 0x08016ea8 + 800b878: 0801701c .word 0x0801701c + 800b87c: 08016efc .word 0x08016efc + 800b880: 08017038 .word 0x08017038 + 800b884: 08017054 .word 0x08017054 + 800b888: 08017074 .word 0x08017074 -0800b890 : +0800b88c : /** @ingroup udp_raw * Same as @ref udp_sendto_if, but with source address */ err_t udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip) { - 800b890: b580 push {r7, lr} - 800b892: b08c sub sp, #48 ; 0x30 - 800b894: af04 add r7, sp, #16 - 800b896: 60f8 str r0, [r7, #12] - 800b898: 60b9 str r1, [r7, #8] - 800b89a: 607a str r2, [r7, #4] - 800b89c: 807b strh r3, [r7, #2] + 800b88c: b580 push {r7, lr} + 800b88e: b08c sub sp, #48 ; 0x30 + 800b890: af04 add r7, sp, #16 + 800b892: 60f8 str r0, [r7, #12] + 800b894: 60b9 str r1, [r7, #8] + 800b896: 607a str r2, [r7, #4] + 800b898: 807b strh r3, [r7, #2] u8_t ip_proto; u8_t ttl; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("udp_sendto_if_src: invalid pcb", pcb != NULL, return ERR_ARG); - 800b89e: 68fb ldr r3, [r7, #12] - 800b8a0: 2b00 cmp r3, #0 - 800b8a2: d109 bne.n 800b8b8 - 800b8a4: 4b65 ldr r3, [pc, #404] ; (800ba3c ) - 800b8a6: f240 22d1 movw r2, #721 ; 0x2d1 - 800b8aa: 4965 ldr r1, [pc, #404] ; (800ba40 ) - 800b8ac: 4865 ldr r0, [pc, #404] ; (800ba44 ) - 800b8ae: f004 fd91 bl 80103d4 - 800b8b2: f06f 030f mvn.w r3, #15 - 800b8b6: e0bc b.n 800ba32 + 800b89a: 68fb ldr r3, [r7, #12] + 800b89c: 2b00 cmp r3, #0 + 800b89e: d109 bne.n 800b8b4 + 800b8a0: 4b65 ldr r3, [pc, #404] ; (800ba38 ) + 800b8a2: f240 22d1 movw r2, #721 ; 0x2d1 + 800b8a6: 4965 ldr r1, [pc, #404] ; (800ba3c ) + 800b8a8: 4865 ldr r0, [pc, #404] ; (800ba40 ) + 800b8aa: f004 fd91 bl 80103d0 + 800b8ae: f06f 030f mvn.w r3, #15 + 800b8b2: e0bc b.n 800ba2e LWIP_ERROR("udp_sendto_if_src: invalid pbuf", p != NULL, return ERR_ARG); - 800b8b8: 68bb ldr r3, [r7, #8] - 800b8ba: 2b00 cmp r3, #0 - 800b8bc: d109 bne.n 800b8d2 - 800b8be: 4b5f ldr r3, [pc, #380] ; (800ba3c ) - 800b8c0: f240 22d2 movw r2, #722 ; 0x2d2 - 800b8c4: 4960 ldr r1, [pc, #384] ; (800ba48 ) - 800b8c6: 485f ldr r0, [pc, #380] ; (800ba44 ) - 800b8c8: f004 fd84 bl 80103d4 - 800b8cc: f06f 030f mvn.w r3, #15 - 800b8d0: e0af b.n 800ba32 + 800b8b4: 68bb ldr r3, [r7, #8] + 800b8b6: 2b00 cmp r3, #0 + 800b8b8: d109 bne.n 800b8ce + 800b8ba: 4b5f ldr r3, [pc, #380] ; (800ba38 ) + 800b8bc: f240 22d2 movw r2, #722 ; 0x2d2 + 800b8c0: 4960 ldr r1, [pc, #384] ; (800ba44 ) + 800b8c2: 485f ldr r0, [pc, #380] ; (800ba40 ) + 800b8c4: f004 fd84 bl 80103d0 + 800b8c8: f06f 030f mvn.w r3, #15 + 800b8cc: e0af b.n 800ba2e LWIP_ERROR("udp_sendto_if_src: invalid dst_ip", dst_ip != NULL, return ERR_ARG); - 800b8d2: 687b ldr r3, [r7, #4] - 800b8d4: 2b00 cmp r3, #0 - 800b8d6: d109 bne.n 800b8ec - 800b8d8: 4b58 ldr r3, [pc, #352] ; (800ba3c ) - 800b8da: f240 22d3 movw r2, #723 ; 0x2d3 - 800b8de: 495b ldr r1, [pc, #364] ; (800ba4c ) - 800b8e0: 4858 ldr r0, [pc, #352] ; (800ba44 ) - 800b8e2: f004 fd77 bl 80103d4 - 800b8e6: f06f 030f mvn.w r3, #15 - 800b8ea: e0a2 b.n 800ba32 + 800b8ce: 687b ldr r3, [r7, #4] + 800b8d0: 2b00 cmp r3, #0 + 800b8d2: d109 bne.n 800b8e8 + 800b8d4: 4b58 ldr r3, [pc, #352] ; (800ba38 ) + 800b8d6: f240 22d3 movw r2, #723 ; 0x2d3 + 800b8da: 495b ldr r1, [pc, #364] ; (800ba48 ) + 800b8dc: 4858 ldr r0, [pc, #352] ; (800ba40 ) + 800b8de: f004 fd77 bl 80103d0 + 800b8e2: f06f 030f mvn.w r3, #15 + 800b8e6: e0a2 b.n 800ba2e LWIP_ERROR("udp_sendto_if_src: invalid src_ip", src_ip != NULL, return ERR_ARG); - 800b8ec: 6afb ldr r3, [r7, #44] ; 0x2c - 800b8ee: 2b00 cmp r3, #0 - 800b8f0: d109 bne.n 800b906 - 800b8f2: 4b52 ldr r3, [pc, #328] ; (800ba3c ) - 800b8f4: f44f 7235 mov.w r2, #724 ; 0x2d4 - 800b8f8: 4955 ldr r1, [pc, #340] ; (800ba50 ) - 800b8fa: 4852 ldr r0, [pc, #328] ; (800ba44 ) - 800b8fc: f004 fd6a bl 80103d4 - 800b900: f06f 030f mvn.w r3, #15 - 800b904: e095 b.n 800ba32 + 800b8e8: 6afb ldr r3, [r7, #44] ; 0x2c + 800b8ea: 2b00 cmp r3, #0 + 800b8ec: d109 bne.n 800b902 + 800b8ee: 4b52 ldr r3, [pc, #328] ; (800ba38 ) + 800b8f0: f44f 7235 mov.w r2, #724 ; 0x2d4 + 800b8f4: 4955 ldr r1, [pc, #340] ; (800ba4c ) + 800b8f6: 4852 ldr r0, [pc, #328] ; (800ba40 ) + 800b8f8: f004 fd6a bl 80103d0 + 800b8fc: f06f 030f mvn.w r3, #15 + 800b900: e095 b.n 800ba2e LWIP_ERROR("udp_sendto_if_src: invalid netif", netif != NULL, return ERR_ARG); - 800b906: 6abb ldr r3, [r7, #40] ; 0x28 - 800b908: 2b00 cmp r3, #0 - 800b90a: d109 bne.n 800b920 - 800b90c: 4b4b ldr r3, [pc, #300] ; (800ba3c ) - 800b90e: f240 22d5 movw r2, #725 ; 0x2d5 - 800b912: 4950 ldr r1, [pc, #320] ; (800ba54 ) - 800b914: 484b ldr r0, [pc, #300] ; (800ba44 ) - 800b916: f004 fd5d bl 80103d4 - 800b91a: f06f 030f mvn.w r3, #15 - 800b91e: e088 b.n 800ba32 + 800b902: 6abb ldr r3, [r7, #40] ; 0x28 + 800b904: 2b00 cmp r3, #0 + 800b906: d109 bne.n 800b91c + 800b908: 4b4b ldr r3, [pc, #300] ; (800ba38 ) + 800b90a: f240 22d5 movw r2, #725 ; 0x2d5 + 800b90e: 4950 ldr r1, [pc, #320] ; (800ba50 ) + 800b910: 484b ldr r0, [pc, #300] ; (800ba40 ) + 800b912: f004 fd5d bl 80103d0 + 800b916: f06f 030f mvn.w r3, #15 + 800b91a: e088 b.n 800ba2e return ERR_VAL; } #endif /* LWIP_IPV4 && IP_SOF_BROADCAST */ /* if the PCB is not yet bound to a port, bind it here */ if (pcb->local_port == 0) { - 800b920: 68fb ldr r3, [r7, #12] - 800b922: 8a5b ldrh r3, [r3, #18] - 800b924: 2b00 cmp r3, #0 - 800b926: d10f bne.n 800b948 + 800b91c: 68fb ldr r3, [r7, #12] + 800b91e: 8a5b ldrh r3, [r3, #18] + 800b920: 2b00 cmp r3, #0 + 800b922: d10f bne.n 800b944 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send: not yet bound to a port, binding now\n")); err = udp_bind(pcb, &pcb->local_ip, pcb->local_port); - 800b928: 68f9 ldr r1, [r7, #12] - 800b92a: 68fb ldr r3, [r7, #12] - 800b92c: 8a5b ldrh r3, [r3, #18] - 800b92e: 461a mov r2, r3 - 800b930: 68f8 ldr r0, [r7, #12] - 800b932: f000 f893 bl 800ba5c - 800b936: 4603 mov r3, r0 - 800b938: 76fb strb r3, [r7, #27] + 800b924: 68f9 ldr r1, [r7, #12] + 800b926: 68fb ldr r3, [r7, #12] + 800b928: 8a5b ldrh r3, [r3, #18] + 800b92a: 461a mov r2, r3 + 800b92c: 68f8 ldr r0, [r7, #12] + 800b92e: f000 f893 bl 800ba58 + 800b932: 4603 mov r3, r0 + 800b934: 76fb strb r3, [r7, #27] if (err != ERR_OK) { - 800b93a: f997 301b ldrsb.w r3, [r7, #27] - 800b93e: 2b00 cmp r3, #0 - 800b940: d002 beq.n 800b948 + 800b936: f997 301b ldrsb.w r3, [r7, #27] + 800b93a: 2b00 cmp r3, #0 + 800b93c: d002 beq.n 800b944 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: forced port bind failed\n")); return err; - 800b942: f997 301b ldrsb.w r3, [r7, #27] - 800b946: e074 b.n 800ba32 + 800b93e: f997 301b ldrsb.w r3, [r7, #27] + 800b942: e074 b.n 800ba2e } } /* packet too large to add a UDP header without causing an overflow? */ if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) { - 800b948: 68bb ldr r3, [r7, #8] - 800b94a: 891b ldrh r3, [r3, #8] - 800b94c: f64f 72f7 movw r2, #65527 ; 0xfff7 - 800b950: 4293 cmp r3, r2 - 800b952: d902 bls.n 800b95a + 800b944: 68bb ldr r3, [r7, #8] + 800b946: 891b ldrh r3, [r3, #8] + 800b948: f64f 72f7 movw r2, #65527 ; 0xfff7 + 800b94c: 4293 cmp r3, r2 + 800b94e: d902 bls.n 800b956 return ERR_MEM; - 800b954: f04f 33ff mov.w r3, #4294967295 - 800b958: e06b b.n 800ba32 + 800b950: f04f 33ff mov.w r3, #4294967295 + 800b954: e06b b.n 800ba2e } /* not enough space to add an UDP header to first pbuf in given p chain? */ if (pbuf_add_header(p, UDP_HLEN)) { - 800b95a: 2108 movs r1, #8 - 800b95c: 68b8 ldr r0, [r7, #8] - 800b95e: f7f9 ff87 bl 8005870 - 800b962: 4603 mov r3, r0 - 800b964: 2b00 cmp r3, #0 - 800b966: d015 beq.n 800b994 + 800b956: 2108 movs r1, #8 + 800b958: 68b8 ldr r0, [r7, #8] + 800b95a: f7f9 ff87 bl 800586c + 800b95e: 4603 mov r3, r0 + 800b960: 2b00 cmp r3, #0 + 800b962: d015 beq.n 800b990 /* allocate header in a separate new pbuf */ q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM); - 800b968: f44f 7220 mov.w r2, #640 ; 0x280 - 800b96c: 2108 movs r1, #8 - 800b96e: 2022 movs r0, #34 ; 0x22 - 800b970: f7f9 fd30 bl 80053d4 - 800b974: 61f8 str r0, [r7, #28] + 800b964: f44f 7220 mov.w r2, #640 ; 0x280 + 800b968: 2108 movs r1, #8 + 800b96a: 2022 movs r0, #34 ; 0x22 + 800b96c: f7f9 fd30 bl 80053d0 + 800b970: 61f8 str r0, [r7, #28] /* new header pbuf could not be allocated? */ if (q == NULL) { - 800b976: 69fb ldr r3, [r7, #28] - 800b978: 2b00 cmp r3, #0 - 800b97a: d102 bne.n 800b982 + 800b972: 69fb ldr r3, [r7, #28] + 800b974: 2b00 cmp r3, #0 + 800b976: d102 bne.n 800b97e LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: could not allocate header\n")); return ERR_MEM; - 800b97c: f04f 33ff mov.w r3, #4294967295 - 800b980: e057 b.n 800ba32 + 800b978: f04f 33ff mov.w r3, #4294967295 + 800b97c: e057 b.n 800ba2e } if (p->tot_len != 0) { - 800b982: 68bb ldr r3, [r7, #8] - 800b984: 891b ldrh r3, [r3, #8] - 800b986: 2b00 cmp r3, #0 - 800b988: d006 beq.n 800b998 + 800b97e: 68bb ldr r3, [r7, #8] + 800b980: 891b ldrh r3, [r3, #8] + 800b982: 2b00 cmp r3, #0 + 800b984: d006 beq.n 800b994 /* chain header q in front of given pbuf p (only if p contains data) */ pbuf_chain(q, p); - 800b98a: 68b9 ldr r1, [r7, #8] - 800b98c: 69f8 ldr r0, [r7, #28] - 800b98e: f7fa f91d bl 8005bcc - 800b992: e001 b.n 800b998 + 800b986: 68b9 ldr r1, [r7, #8] + 800b988: 69f8 ldr r0, [r7, #28] + 800b98a: f7fa f91d bl 8005bc8 + 800b98e: e001 b.n 800b994 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: added header pbuf %p before given pbuf %p\n", (void *)q, (void *)p)); } else { /* adding space for header within p succeeded */ /* first pbuf q equals given pbuf */ q = p; - 800b994: 68bb ldr r3, [r7, #8] - 800b996: 61fb str r3, [r7, #28] + 800b990: 68bb ldr r3, [r7, #8] + 800b992: 61fb str r3, [r7, #28] LWIP_DEBUGF(UDP_DEBUG, ("udp_send: added header in given pbuf %p\n", (void *)p)); } LWIP_ASSERT("check that first pbuf can hold struct udp_hdr", - 800b998: 69fb ldr r3, [r7, #28] - 800b99a: 895b ldrh r3, [r3, #10] - 800b99c: 2b07 cmp r3, #7 - 800b99e: d806 bhi.n 800b9ae - 800b9a0: 4b26 ldr r3, [pc, #152] ; (800ba3c ) - 800b9a2: f240 320d movw r2, #781 ; 0x30d - 800b9a6: 492c ldr r1, [pc, #176] ; (800ba58 ) - 800b9a8: 4826 ldr r0, [pc, #152] ; (800ba44 ) - 800b9aa: f004 fd13 bl 80103d4 + 800b994: 69fb ldr r3, [r7, #28] + 800b996: 895b ldrh r3, [r3, #10] + 800b998: 2b07 cmp r3, #7 + 800b99a: d806 bhi.n 800b9aa + 800b99c: 4b26 ldr r3, [pc, #152] ; (800ba38 ) + 800b99e: f240 320d movw r2, #781 ; 0x30d + 800b9a2: 492c ldr r1, [pc, #176] ; (800ba54 ) + 800b9a4: 4826 ldr r0, [pc, #152] ; (800ba40 ) + 800b9a6: f004 fd13 bl 80103d0 (q->len >= sizeof(struct udp_hdr))); /* q now represents the packet to be sent */ udphdr = (struct udp_hdr *)q->payload; - 800b9ae: 69fb ldr r3, [r7, #28] - 800b9b0: 685b ldr r3, [r3, #4] - 800b9b2: 617b str r3, [r7, #20] + 800b9aa: 69fb ldr r3, [r7, #28] + 800b9ac: 685b ldr r3, [r3, #4] + 800b9ae: 617b str r3, [r7, #20] udphdr->src = lwip_htons(pcb->local_port); - 800b9b4: 68fb ldr r3, [r7, #12] - 800b9b6: 8a5b ldrh r3, [r3, #18] - 800b9b8: 4618 mov r0, r3 - 800b9ba: f7f8 fc85 bl 80042c8 - 800b9be: 4603 mov r3, r0 - 800b9c0: 461a mov r2, r3 - 800b9c2: 697b ldr r3, [r7, #20] - 800b9c4: 801a strh r2, [r3, #0] + 800b9b0: 68fb ldr r3, [r7, #12] + 800b9b2: 8a5b ldrh r3, [r3, #18] + 800b9b4: 4618 mov r0, r3 + 800b9b6: f7f8 fc85 bl 80042c4 + 800b9ba: 4603 mov r3, r0 + 800b9bc: 461a mov r2, r3 + 800b9be: 697b ldr r3, [r7, #20] + 800b9c0: 801a strh r2, [r3, #0] udphdr->dest = lwip_htons(dst_port); - 800b9c6: 887b ldrh r3, [r7, #2] - 800b9c8: 4618 mov r0, r3 - 800b9ca: f7f8 fc7d bl 80042c8 - 800b9ce: 4603 mov r3, r0 - 800b9d0: 461a mov r2, r3 - 800b9d2: 697b ldr r3, [r7, #20] - 800b9d4: 805a strh r2, [r3, #2] + 800b9c2: 887b ldrh r3, [r7, #2] + 800b9c4: 4618 mov r0, r3 + 800b9c6: f7f8 fc7d bl 80042c4 + 800b9ca: 4603 mov r3, r0 + 800b9cc: 461a mov r2, r3 + 800b9ce: 697b ldr r3, [r7, #20] + 800b9d0: 805a strh r2, [r3, #2] /* in UDP, 0 checksum means 'no checksum' */ udphdr->chksum = 0x0000; - 800b9d6: 697b ldr r3, [r7, #20] + 800b9d2: 697b ldr r3, [r7, #20] + 800b9d4: 2200 movs r2, #0 + 800b9d6: 719a strb r2, [r3, #6] 800b9d8: 2200 movs r2, #0 - 800b9da: 719a strb r2, [r3, #6] - 800b9dc: 2200 movs r2, #0 - 800b9de: 71da strb r2, [r3, #7] + 800b9da: 71da strb r2, [r3, #7] ip_proto = IP_PROTO_UDPLITE; } else #endif /* LWIP_UDPLITE */ { /* UDP */ LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len)); udphdr->len = lwip_htons(q->tot_len); - 800b9e0: 69fb ldr r3, [r7, #28] - 800b9e2: 891b ldrh r3, [r3, #8] - 800b9e4: 4618 mov r0, r3 - 800b9e6: f7f8 fc6f bl 80042c8 - 800b9ea: 4603 mov r3, r0 - 800b9ec: 461a mov r2, r3 - 800b9ee: 697b ldr r3, [r7, #20] - 800b9f0: 809a strh r2, [r3, #4] + 800b9dc: 69fb ldr r3, [r7, #28] + 800b9de: 891b ldrh r3, [r3, #8] + 800b9e0: 4618 mov r0, r3 + 800b9e2: f7f8 fc6f bl 80042c4 + 800b9e6: 4603 mov r3, r0 + 800b9e8: 461a mov r2, r3 + 800b9ea: 697b ldr r3, [r7, #20] + 800b9ec: 809a strh r2, [r3, #4] } udphdr->chksum = udpchksum; } } #endif /* CHECKSUM_GEN_UDP */ ip_proto = IP_PROTO_UDP; - 800b9f2: 2311 movs r3, #17 - 800b9f4: 74fb strb r3, [r7, #19] + 800b9ee: 2311 movs r3, #17 + 800b9f0: 74fb strb r3, [r7, #19] /* Determine TTL to use */ #if LWIP_MULTICAST_TX_OPTIONS ttl = (ip_addr_ismulticast(dst_ip) ? udp_get_multicast_ttl(pcb) : pcb->ttl); #else /* LWIP_MULTICAST_TX_OPTIONS */ ttl = pcb->ttl; - 800b9f6: 68fb ldr r3, [r7, #12] - 800b9f8: 7adb ldrb r3, [r3, #11] - 800b9fa: 74bb strb r3, [r7, #18] + 800b9f2: 68fb ldr r3, [r7, #12] + 800b9f4: 7adb ldrb r3, [r3, #11] + 800b9f6: 74bb strb r3, [r7, #18] LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP checksum 0x%04"X16_F"\n", udphdr->chksum)); LWIP_DEBUGF(UDP_DEBUG, ("udp_send: ip_output_if (,,,,0x%02"X16_F",)\n", (u16_t)ip_proto)); /* output to IP */ NETIF_SET_HINTS(netif, &(pcb->netif_hints)); err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif); - 800b9fc: 68fb ldr r3, [r7, #12] - 800b9fe: 7a9b ldrb r3, [r3, #10] - 800ba00: 7cb9 ldrb r1, [r7, #18] - 800ba02: 6aba ldr r2, [r7, #40] ; 0x28 - 800ba04: 9202 str r2, [sp, #8] - 800ba06: 7cfa ldrb r2, [r7, #19] - 800ba08: 9201 str r2, [sp, #4] - 800ba0a: 9300 str r3, [sp, #0] - 800ba0c: 460b mov r3, r1 - 800ba0e: 687a ldr r2, [r7, #4] - 800ba10: 6af9 ldr r1, [r7, #44] ; 0x2c - 800ba12: 69f8 ldr r0, [r7, #28] - 800ba14: f003 fb38 bl 800f088 - 800ba18: 4603 mov r3, r0 - 800ba1a: 76fb strb r3, [r7, #27] + 800b9f8: 68fb ldr r3, [r7, #12] + 800b9fa: 7a9b ldrb r3, [r3, #10] + 800b9fc: 7cb9 ldrb r1, [r7, #18] + 800b9fe: 6aba ldr r2, [r7, #40] ; 0x28 + 800ba00: 9202 str r2, [sp, #8] + 800ba02: 7cfa ldrb r2, [r7, #19] + 800ba04: 9201 str r2, [sp, #4] + 800ba06: 9300 str r3, [sp, #0] + 800ba08: 460b mov r3, r1 + 800ba0a: 687a ldr r2, [r7, #4] + 800ba0c: 6af9 ldr r1, [r7, #44] ; 0x2c + 800ba0e: 69f8 ldr r0, [r7, #28] + 800ba10: f003 fb38 bl 800f084 + 800ba14: 4603 mov r3, r0 + 800ba16: 76fb strb r3, [r7, #27] /* @todo: must this be increased even if error occurred? */ MIB2_STATS_INC(mib2.udpoutdatagrams); /* did we chain a separate header pbuf earlier? */ if (q != p) { - 800ba1c: 69fa ldr r2, [r7, #28] - 800ba1e: 68bb ldr r3, [r7, #8] - 800ba20: 429a cmp r2, r3 - 800ba22: d004 beq.n 800ba2e + 800ba18: 69fa ldr r2, [r7, #28] + 800ba1a: 68bb ldr r3, [r7, #8] + 800ba1c: 429a cmp r2, r3 + 800ba1e: d004 beq.n 800ba2a /* free the header pbuf */ pbuf_free(q); - 800ba24: 69f8 ldr r0, [r7, #28] - 800ba26: f7f9 ffb9 bl 800599c + 800ba20: 69f8 ldr r0, [r7, #28] + 800ba22: f7f9 ffb9 bl 8005998 q = NULL; - 800ba2a: 2300 movs r3, #0 - 800ba2c: 61fb str r3, [r7, #28] + 800ba26: 2300 movs r3, #0 + 800ba28: 61fb str r3, [r7, #28] /* p is still referenced by the caller, and will live on */ } UDP_STATS_INC(udp.xmit); return err; - 800ba2e: f997 301b ldrsb.w r3, [r7, #27] + 800ba2a: f997 301b ldrsb.w r3, [r7, #27] } - 800ba32: 4618 mov r0, r3 - 800ba34: 3720 adds r7, #32 - 800ba36: 46bd mov sp, r7 - 800ba38: bd80 pop {r7, pc} - 800ba3a: bf00 nop - 800ba3c: 08016ea8 .word 0x08016ea8 - 800ba40: 08017094 .word 0x08017094 - 800ba44: 08016efc .word 0x08016efc - 800ba48: 080170b4 .word 0x080170b4 - 800ba4c: 080170d4 .word 0x080170d4 - 800ba50: 080170f8 .word 0x080170f8 - 800ba54: 0801711c .word 0x0801711c - 800ba58: 08017140 .word 0x08017140 + 800ba2e: 4618 mov r0, r3 + 800ba30: 3720 adds r7, #32 + 800ba32: 46bd mov sp, r7 + 800ba34: bd80 pop {r7, pc} + 800ba36: bf00 nop + 800ba38: 08016ea8 .word 0x08016ea8 + 800ba3c: 08017094 .word 0x08017094 + 800ba40: 08016efc .word 0x08016efc + 800ba44: 080170b4 .word 0x080170b4 + 800ba48: 080170d4 .word 0x080170d4 + 800ba4c: 080170f8 .word 0x080170f8 + 800ba50: 0801711c .word 0x0801711c + 800ba54: 08017140 .word 0x08017140 -0800ba5c : +0800ba58 : * * @see udp_disconnect() */ err_t udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) { - 800ba5c: b580 push {r7, lr} - 800ba5e: b086 sub sp, #24 - 800ba60: af00 add r7, sp, #0 - 800ba62: 60f8 str r0, [r7, #12] - 800ba64: 60b9 str r1, [r7, #8] - 800ba66: 4613 mov r3, r2 - 800ba68: 80fb strh r3, [r7, #6] + 800ba58: b580 push {r7, lr} + 800ba5a: b086 sub sp, #24 + 800ba5c: af00 add r7, sp, #0 + 800ba5e: 60f8 str r0, [r7, #12] + 800ba60: 60b9 str r1, [r7, #8] + 800ba62: 4613 mov r3, r2 + 800ba64: 80fb strh r3, [r7, #6] LWIP_ASSERT_CORE_LOCKED(); #if LWIP_IPV4 /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ if (ipaddr == NULL) { - 800ba6a: 68bb ldr r3, [r7, #8] - 800ba6c: 2b00 cmp r3, #0 - 800ba6e: d101 bne.n 800ba74 + 800ba66: 68bb ldr r3, [r7, #8] + 800ba68: 2b00 cmp r3, #0 + 800ba6a: d101 bne.n 800ba70 ipaddr = IP4_ADDR_ANY; - 800ba70: 4b39 ldr r3, [pc, #228] ; (800bb58 ) - 800ba72: 60bb str r3, [r7, #8] + 800ba6c: 4b39 ldr r3, [pc, #228] ; (800bb54 ) + 800ba6e: 60bb str r3, [r7, #8] } #else /* LWIP_IPV4 */ LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG); #endif /* LWIP_IPV4 */ LWIP_ERROR("udp_bind: invalid pcb", pcb != NULL, return ERR_ARG); - 800ba74: 68fb ldr r3, [r7, #12] - 800ba76: 2b00 cmp r3, #0 - 800ba78: d109 bne.n 800ba8e - 800ba7a: 4b38 ldr r3, [pc, #224] ; (800bb5c ) - 800ba7c: f240 32b7 movw r2, #951 ; 0x3b7 - 800ba80: 4937 ldr r1, [pc, #220] ; (800bb60 ) - 800ba82: 4838 ldr r0, [pc, #224] ; (800bb64 ) - 800ba84: f004 fca6 bl 80103d4 - 800ba88: f06f 030f mvn.w r3, #15 - 800ba8c: e060 b.n 800bb50 + 800ba70: 68fb ldr r3, [r7, #12] + 800ba72: 2b00 cmp r3, #0 + 800ba74: d109 bne.n 800ba8a + 800ba76: 4b38 ldr r3, [pc, #224] ; (800bb58 ) + 800ba78: f240 32b7 movw r2, #951 ; 0x3b7 + 800ba7c: 4937 ldr r1, [pc, #220] ; (800bb5c ) + 800ba7e: 4838 ldr r0, [pc, #224] ; (800bb60 ) + 800ba80: f004 fca6 bl 80103d0 + 800ba84: f06f 030f mvn.w r3, #15 + 800ba88: e060 b.n 800bb4c LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_bind(ipaddr = ")); ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr); LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, (", port = %"U16_F")\n", port)); rebind = 0; - 800ba8e: 2300 movs r3, #0 - 800ba90: 74fb strb r3, [r7, #19] + 800ba8a: 2300 movs r3, #0 + 800ba8c: 74fb strb r3, [r7, #19] /* Check for double bind and rebind of the same pcb */ for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 800ba92: 4b35 ldr r3, [pc, #212] ; (800bb68 ) - 800ba94: 681b ldr r3, [r3, #0] - 800ba96: 617b str r3, [r7, #20] - 800ba98: e009 b.n 800baae + 800ba8e: 4b35 ldr r3, [pc, #212] ; (800bb64 ) + 800ba90: 681b ldr r3, [r3, #0] + 800ba92: 617b str r3, [r7, #20] + 800ba94: e009 b.n 800baaa /* is this UDP PCB already on active list? */ if (pcb == ipcb) { - 800ba9a: 68fa ldr r2, [r7, #12] - 800ba9c: 697b ldr r3, [r7, #20] - 800ba9e: 429a cmp r2, r3 - 800baa0: d102 bne.n 800baa8 + 800ba96: 68fa ldr r2, [r7, #12] + 800ba98: 697b ldr r3, [r7, #20] + 800ba9a: 429a cmp r2, r3 + 800ba9c: d102 bne.n 800baa4 rebind = 1; - 800baa2: 2301 movs r3, #1 - 800baa4: 74fb strb r3, [r7, #19] + 800ba9e: 2301 movs r3, #1 + 800baa0: 74fb strb r3, [r7, #19] break; - 800baa6: e005 b.n 800bab4 + 800baa2: e005 b.n 800bab0 for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 800baa8: 697b ldr r3, [r7, #20] - 800baaa: 68db ldr r3, [r3, #12] - 800baac: 617b str r3, [r7, #20] - 800baae: 697b ldr r3, [r7, #20] - 800bab0: 2b00 cmp r3, #0 - 800bab2: d1f2 bne.n 800ba9a + 800baa4: 697b ldr r3, [r7, #20] + 800baa6: 68db ldr r3, [r3, #12] + 800baa8: 617b str r3, [r7, #20] + 800baaa: 697b ldr r3, [r7, #20] + 800baac: 2b00 cmp r3, #0 + 800baae: d1f2 bne.n 800ba96 ipaddr = &zoned_ipaddr; } #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ /* no port specified? */ if (port == 0) { - 800bab4: 88fb ldrh r3, [r7, #6] - 800bab6: 2b00 cmp r3, #0 - 800bab8: d109 bne.n 800bace + 800bab0: 88fb ldrh r3, [r7, #6] + 800bab2: 2b00 cmp r3, #0 + 800bab4: d109 bne.n 800baca port = udp_new_port(); - 800baba: f7ff fcc5 bl 800b448 - 800babe: 4603 mov r3, r0 - 800bac0: 80fb strh r3, [r7, #6] + 800bab6: f7ff fcc5 bl 800b444 + 800baba: 4603 mov r3, r0 + 800babc: 80fb strh r3, [r7, #6] if (port == 0) { - 800bac2: 88fb ldrh r3, [r7, #6] - 800bac4: 2b00 cmp r3, #0 - 800bac6: d12c bne.n 800bb22 + 800babe: 88fb ldrh r3, [r7, #6] + 800bac0: 2b00 cmp r3, #0 + 800bac2: d12c bne.n 800bb1e /* no more ports available in local range */ LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: out of free UDP ports\n")); return ERR_USE; - 800bac8: f06f 0307 mvn.w r3, #7 - 800bacc: e040 b.n 800bb50 + 800bac4: f06f 0307 mvn.w r3, #7 + 800bac8: e040 b.n 800bb4c } } else { for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 800bace: 4b26 ldr r3, [pc, #152] ; (800bb68 ) - 800bad0: 681b ldr r3, [r3, #0] - 800bad2: 617b str r3, [r7, #20] - 800bad4: e022 b.n 800bb1c + 800baca: 4b26 ldr r3, [pc, #152] ; (800bb64 ) + 800bacc: 681b ldr r3, [r3, #0] + 800bace: 617b str r3, [r7, #20] + 800bad0: e022 b.n 800bb18 if (pcb != ipcb) { - 800bad6: 68fa ldr r2, [r7, #12] - 800bad8: 697b ldr r3, [r7, #20] - 800bada: 429a cmp r2, r3 - 800badc: d01b beq.n 800bb16 + 800bad2: 68fa ldr r2, [r7, #12] + 800bad4: 697b ldr r3, [r7, #20] + 800bad6: 429a cmp r2, r3 + 800bad8: d01b beq.n 800bb12 if (!ip_get_option(pcb, SOF_REUSEADDR) || !ip_get_option(ipcb, SOF_REUSEADDR)) #endif /* SO_REUSE */ { /* port matches that of PCB in list and REUSEADDR not set -> reject */ if ((ipcb->local_port == port) && - 800bade: 697b ldr r3, [r7, #20] - 800bae0: 8a5b ldrh r3, [r3, #18] - 800bae2: 88fa ldrh r2, [r7, #6] - 800bae4: 429a cmp r2, r3 - 800bae6: d116 bne.n 800bb16 + 800bada: 697b ldr r3, [r7, #20] + 800badc: 8a5b ldrh r3, [r3, #18] + 800bade: 88fa ldrh r2, [r7, #6] + 800bae0: 429a cmp r2, r3 + 800bae2: d116 bne.n 800bb12 /* IP address matches or any IP used? */ (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 800bae8: 697b ldr r3, [r7, #20] - 800baea: 681a ldr r2, [r3, #0] - 800baec: 68bb ldr r3, [r7, #8] - 800baee: 681b ldr r3, [r3, #0] + 800bae4: 697b ldr r3, [r7, #20] + 800bae6: 681a ldr r2, [r3, #0] + 800bae8: 68bb ldr r3, [r7, #8] + 800baea: 681b ldr r3, [r3, #0] if ((ipcb->local_port == port) && - 800baf0: 429a cmp r2, r3 - 800baf2: d00d beq.n 800bb10 + 800baec: 429a cmp r2, r3 + 800baee: d00d beq.n 800bb0c (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 800baf4: 68bb ldr r3, [r7, #8] - 800baf6: 2b00 cmp r3, #0 - 800baf8: d00a beq.n 800bb10 - 800bafa: 68bb ldr r3, [r7, #8] - 800bafc: 681b ldr r3, [r3, #0] - 800bafe: 2b00 cmp r3, #0 - 800bb00: d006 beq.n 800bb10 + 800baf0: 68bb ldr r3, [r7, #8] + 800baf2: 2b00 cmp r3, #0 + 800baf4: d00a beq.n 800bb0c + 800baf6: 68bb ldr r3, [r7, #8] + 800baf8: 681b ldr r3, [r3, #0] + 800bafa: 2b00 cmp r3, #0 + 800bafc: d006 beq.n 800bb0c ip_addr_isany(&ipcb->local_ip))) { - 800bb02: 697b ldr r3, [r7, #20] + 800bafe: 697b ldr r3, [r7, #20] (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 800bb04: 2b00 cmp r3, #0 - 800bb06: d003 beq.n 800bb10 + 800bb00: 2b00 cmp r3, #0 + 800bb02: d003 beq.n 800bb0c ip_addr_isany(&ipcb->local_ip))) { - 800bb08: 697b ldr r3, [r7, #20] - 800bb0a: 681b ldr r3, [r3, #0] - 800bb0c: 2b00 cmp r3, #0 - 800bb0e: d102 bne.n 800bb16 + 800bb04: 697b ldr r3, [r7, #20] + 800bb06: 681b ldr r3, [r3, #0] + 800bb08: 2b00 cmp r3, #0 + 800bb0a: d102 bne.n 800bb12 /* other PCB already binds to this local IP and port */ LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: local port %"U16_F" already bound by another pcb\n", port)); return ERR_USE; - 800bb10: f06f 0307 mvn.w r3, #7 - 800bb14: e01c b.n 800bb50 + 800bb0c: f06f 0307 mvn.w r3, #7 + 800bb10: e01c b.n 800bb4c for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 800bb16: 697b ldr r3, [r7, #20] - 800bb18: 68db ldr r3, [r3, #12] - 800bb1a: 617b str r3, [r7, #20] - 800bb1c: 697b ldr r3, [r7, #20] - 800bb1e: 2b00 cmp r3, #0 - 800bb20: d1d9 bne.n 800bad6 + 800bb12: 697b ldr r3, [r7, #20] + 800bb14: 68db ldr r3, [r3, #12] + 800bb16: 617b str r3, [r7, #20] + 800bb18: 697b ldr r3, [r7, #20] + 800bb1a: 2b00 cmp r3, #0 + 800bb1c: d1d9 bne.n 800bad2 } } } } ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); - 800bb22: 68bb ldr r3, [r7, #8] - 800bb24: 2b00 cmp r3, #0 - 800bb26: d002 beq.n 800bb2e - 800bb28: 68bb ldr r3, [r7, #8] - 800bb2a: 681b ldr r3, [r3, #0] - 800bb2c: e000 b.n 800bb30 - 800bb2e: 2300 movs r3, #0 - 800bb30: 68fa ldr r2, [r7, #12] - 800bb32: 6013 str r3, [r2, #0] + 800bb1e: 68bb ldr r3, [r7, #8] + 800bb20: 2b00 cmp r3, #0 + 800bb22: d002 beq.n 800bb2a + 800bb24: 68bb ldr r3, [r7, #8] + 800bb26: 681b ldr r3, [r3, #0] + 800bb28: e000 b.n 800bb2c + 800bb2a: 2300 movs r3, #0 + 800bb2c: 68fa ldr r2, [r7, #12] + 800bb2e: 6013 str r3, [r2, #0] pcb->local_port = port; - 800bb34: 68fb ldr r3, [r7, #12] - 800bb36: 88fa ldrh r2, [r7, #6] - 800bb38: 825a strh r2, [r3, #18] + 800bb30: 68fb ldr r3, [r7, #12] + 800bb32: 88fa ldrh r2, [r7, #6] + 800bb34: 825a strh r2, [r3, #18] mib2_udp_bind(pcb); /* pcb not active yet? */ if (rebind == 0) { - 800bb3a: 7cfb ldrb r3, [r7, #19] - 800bb3c: 2b00 cmp r3, #0 - 800bb3e: d106 bne.n 800bb4e + 800bb36: 7cfb ldrb r3, [r7, #19] + 800bb38: 2b00 cmp r3, #0 + 800bb3a: d106 bne.n 800bb4a /* place the PCB on the active list if not already there */ pcb->next = udp_pcbs; - 800bb40: 4b09 ldr r3, [pc, #36] ; (800bb68 ) - 800bb42: 681a ldr r2, [r3, #0] - 800bb44: 68fb ldr r3, [r7, #12] - 800bb46: 60da str r2, [r3, #12] + 800bb3c: 4b09 ldr r3, [pc, #36] ; (800bb64 ) + 800bb3e: 681a ldr r2, [r3, #0] + 800bb40: 68fb ldr r3, [r7, #12] + 800bb42: 60da str r2, [r3, #12] udp_pcbs = pcb; - 800bb48: 4a07 ldr r2, [pc, #28] ; (800bb68 ) - 800bb4a: 68fb ldr r3, [r7, #12] - 800bb4c: 6013 str r3, [r2, #0] + 800bb44: 4a07 ldr r2, [pc, #28] ; (800bb64 ) + 800bb46: 68fb ldr r3, [r7, #12] + 800bb48: 6013 str r3, [r2, #0] } LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("udp_bind: bound to ")); ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, pcb->local_ip); LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->local_port)); return ERR_OK; - 800bb4e: 2300 movs r3, #0 + 800bb4a: 2300 movs r3, #0 } - 800bb50: 4618 mov r0, r3 - 800bb52: 3718 adds r7, #24 - 800bb54: 46bd mov sp, r7 - 800bb56: bd80 pop {r7, pc} - 800bb58: 08017ddc .word 0x08017ddc - 800bb5c: 08016ea8 .word 0x08016ea8 - 800bb60: 08017170 .word 0x08017170 - 800bb64: 08016efc .word 0x08016efc - 800bb68: 20008c5c .word 0x20008c5c + 800bb4c: 4618 mov r0, r3 + 800bb4e: 3718 adds r7, #24 + 800bb50: 46bd mov sp, r7 + 800bb52: bd80 pop {r7, pc} + 800bb54: 08017ddc .word 0x08017ddc + 800bb58: 08016ea8 .word 0x08016ea8 + 800bb5c: 08017170 .word 0x08017170 + 800bb60: 08016efc .word 0x08016efc + 800bb64: 20008c5c .word 0x20008c5c -0800bb6c : +0800bb68 : * * @see udp_disconnect() */ err_t udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) { - 800bb6c: b580 push {r7, lr} - 800bb6e: b086 sub sp, #24 - 800bb70: af00 add r7, sp, #0 - 800bb72: 60f8 str r0, [r7, #12] - 800bb74: 60b9 str r1, [r7, #8] - 800bb76: 4613 mov r3, r2 - 800bb78: 80fb strh r3, [r7, #6] + 800bb68: b580 push {r7, lr} + 800bb6a: b086 sub sp, #24 + 800bb6c: af00 add r7, sp, #0 + 800bb6e: 60f8 str r0, [r7, #12] + 800bb70: 60b9 str r1, [r7, #8] + 800bb72: 4613 mov r3, r2 + 800bb74: 80fb strh r3, [r7, #6] struct udp_pcb *ipcb; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("udp_connect: invalid pcb", pcb != NULL, return ERR_ARG); - 800bb7a: 68fb ldr r3, [r7, #12] - 800bb7c: 2b00 cmp r3, #0 - 800bb7e: d109 bne.n 800bb94 - 800bb80: 4b2c ldr r3, [pc, #176] ; (800bc34 ) - 800bb82: f240 4235 movw r2, #1077 ; 0x435 - 800bb86: 492c ldr r1, [pc, #176] ; (800bc38 ) - 800bb88: 482c ldr r0, [pc, #176] ; (800bc3c ) - 800bb8a: f004 fc23 bl 80103d4 - 800bb8e: f06f 030f mvn.w r3, #15 - 800bb92: e04b b.n 800bc2c + 800bb76: 68fb ldr r3, [r7, #12] + 800bb78: 2b00 cmp r3, #0 + 800bb7a: d109 bne.n 800bb90 + 800bb7c: 4b2c ldr r3, [pc, #176] ; (800bc30 ) + 800bb7e: f240 4235 movw r2, #1077 ; 0x435 + 800bb82: 492c ldr r1, [pc, #176] ; (800bc34 ) + 800bb84: 482c ldr r0, [pc, #176] ; (800bc38 ) + 800bb86: f004 fc23 bl 80103d0 + 800bb8a: f06f 030f mvn.w r3, #15 + 800bb8e: e04b b.n 800bc28 LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG); - 800bb94: 68bb ldr r3, [r7, #8] - 800bb96: 2b00 cmp r3, #0 - 800bb98: d109 bne.n 800bbae - 800bb9a: 4b26 ldr r3, [pc, #152] ; (800bc34 ) - 800bb9c: f240 4236 movw r2, #1078 ; 0x436 - 800bba0: 4927 ldr r1, [pc, #156] ; (800bc40 ) - 800bba2: 4826 ldr r0, [pc, #152] ; (800bc3c ) - 800bba4: f004 fc16 bl 80103d4 - 800bba8: f06f 030f mvn.w r3, #15 - 800bbac: e03e b.n 800bc2c + 800bb90: 68bb ldr r3, [r7, #8] + 800bb92: 2b00 cmp r3, #0 + 800bb94: d109 bne.n 800bbaa + 800bb96: 4b26 ldr r3, [pc, #152] ; (800bc30 ) + 800bb98: f240 4236 movw r2, #1078 ; 0x436 + 800bb9c: 4927 ldr r1, [pc, #156] ; (800bc3c ) + 800bb9e: 4826 ldr r0, [pc, #152] ; (800bc38 ) + 800bba0: f004 fc16 bl 80103d0 + 800bba4: f06f 030f mvn.w r3, #15 + 800bba8: e03e b.n 800bc28 if (pcb->local_port == 0) { - 800bbae: 68fb ldr r3, [r7, #12] - 800bbb0: 8a5b ldrh r3, [r3, #18] - 800bbb2: 2b00 cmp r3, #0 - 800bbb4: d10f bne.n 800bbd6 + 800bbaa: 68fb ldr r3, [r7, #12] + 800bbac: 8a5b ldrh r3, [r3, #18] + 800bbae: 2b00 cmp r3, #0 + 800bbb0: d10f bne.n 800bbd2 err_t err = udp_bind(pcb, &pcb->local_ip, pcb->local_port); - 800bbb6: 68f9 ldr r1, [r7, #12] - 800bbb8: 68fb ldr r3, [r7, #12] - 800bbba: 8a5b ldrh r3, [r3, #18] - 800bbbc: 461a mov r2, r3 - 800bbbe: 68f8 ldr r0, [r7, #12] - 800bbc0: f7ff ff4c bl 800ba5c - 800bbc4: 4603 mov r3, r0 - 800bbc6: 74fb strb r3, [r7, #19] + 800bbb2: 68f9 ldr r1, [r7, #12] + 800bbb4: 68fb ldr r3, [r7, #12] + 800bbb6: 8a5b ldrh r3, [r3, #18] + 800bbb8: 461a mov r2, r3 + 800bbba: 68f8 ldr r0, [r7, #12] + 800bbbc: f7ff ff4c bl 800ba58 + 800bbc0: 4603 mov r3, r0 + 800bbc2: 74fb strb r3, [r7, #19] if (err != ERR_OK) { - 800bbc8: f997 3013 ldrsb.w r3, [r7, #19] - 800bbcc: 2b00 cmp r3, #0 - 800bbce: d002 beq.n 800bbd6 + 800bbc4: f997 3013 ldrsb.w r3, [r7, #19] + 800bbc8: 2b00 cmp r3, #0 + 800bbca: d002 beq.n 800bbd2 return err; - 800bbd0: f997 3013 ldrsb.w r3, [r7, #19] - 800bbd4: e02a b.n 800bc2c + 800bbcc: f997 3013 ldrsb.w r3, [r7, #19] + 800bbd0: e02a b.n 800bc28 } } ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr); - 800bbd6: 68bb ldr r3, [r7, #8] - 800bbd8: 2b00 cmp r3, #0 - 800bbda: d002 beq.n 800bbe2 - 800bbdc: 68bb ldr r3, [r7, #8] - 800bbde: 681b ldr r3, [r3, #0] - 800bbe0: e000 b.n 800bbe4 - 800bbe2: 2300 movs r3, #0 - 800bbe4: 68fa ldr r2, [r7, #12] - 800bbe6: 6053 str r3, [r2, #4] + 800bbd2: 68bb ldr r3, [r7, #8] + 800bbd4: 2b00 cmp r3, #0 + 800bbd6: d002 beq.n 800bbde + 800bbd8: 68bb ldr r3, [r7, #8] + 800bbda: 681b ldr r3, [r3, #0] + 800bbdc: e000 b.n 800bbe0 + 800bbde: 2300 movs r3, #0 + 800bbe0: 68fa ldr r2, [r7, #12] + 800bbe2: 6053 str r3, [r2, #4] ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNKNOWN)) { ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip)); } #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ pcb->remote_port = port; - 800bbe8: 68fb ldr r3, [r7, #12] - 800bbea: 88fa ldrh r2, [r7, #6] - 800bbec: 829a strh r2, [r3, #20] + 800bbe4: 68fb ldr r3, [r7, #12] + 800bbe6: 88fa ldrh r2, [r7, #6] + 800bbe8: 829a strh r2, [r3, #20] pcb->flags |= UDP_FLAGS_CONNECTED; - 800bbee: 68fb ldr r3, [r7, #12] - 800bbf0: 7c1b ldrb r3, [r3, #16] - 800bbf2: f043 0304 orr.w r3, r3, #4 - 800bbf6: b2da uxtb r2, r3 - 800bbf8: 68fb ldr r3, [r7, #12] - 800bbfa: 741a strb r2, [r3, #16] + 800bbea: 68fb ldr r3, [r7, #12] + 800bbec: 7c1b ldrb r3, [r3, #16] + 800bbee: f043 0304 orr.w r3, r3, #4 + 800bbf2: b2da uxtb r2, r3 + 800bbf4: 68fb ldr r3, [r7, #12] + 800bbf6: 741a strb r2, [r3, #16] ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, pcb->remote_ip); LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->remote_port)); /* Insert UDP PCB into the list of active UDP PCBs. */ for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 800bbfc: 4b11 ldr r3, [pc, #68] ; (800bc44 ) - 800bbfe: 681b ldr r3, [r3, #0] - 800bc00: 617b str r3, [r7, #20] - 800bc02: e008 b.n 800bc16 + 800bbf8: 4b11 ldr r3, [pc, #68] ; (800bc40 ) + 800bbfa: 681b ldr r3, [r3, #0] + 800bbfc: 617b str r3, [r7, #20] + 800bbfe: e008 b.n 800bc12 if (pcb == ipcb) { - 800bc04: 68fa ldr r2, [r7, #12] - 800bc06: 697b ldr r3, [r7, #20] - 800bc08: 429a cmp r2, r3 - 800bc0a: d101 bne.n 800bc10 + 800bc00: 68fa ldr r2, [r7, #12] + 800bc02: 697b ldr r3, [r7, #20] + 800bc04: 429a cmp r2, r3 + 800bc06: d101 bne.n 800bc0c /* already on the list, just return */ return ERR_OK; - 800bc0c: 2300 movs r3, #0 - 800bc0e: e00d b.n 800bc2c + 800bc08: 2300 movs r3, #0 + 800bc0a: e00d b.n 800bc28 for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 800bc10: 697b ldr r3, [r7, #20] - 800bc12: 68db ldr r3, [r3, #12] - 800bc14: 617b str r3, [r7, #20] - 800bc16: 697b ldr r3, [r7, #20] - 800bc18: 2b00 cmp r3, #0 - 800bc1a: d1f3 bne.n 800bc04 + 800bc0c: 697b ldr r3, [r7, #20] + 800bc0e: 68db ldr r3, [r3, #12] + 800bc10: 617b str r3, [r7, #20] + 800bc12: 697b ldr r3, [r7, #20] + 800bc14: 2b00 cmp r3, #0 + 800bc16: d1f3 bne.n 800bc00 } } /* PCB not yet on the list, add PCB now */ pcb->next = udp_pcbs; - 800bc1c: 4b09 ldr r3, [pc, #36] ; (800bc44 ) - 800bc1e: 681a ldr r2, [r3, #0] - 800bc20: 68fb ldr r3, [r7, #12] - 800bc22: 60da str r2, [r3, #12] + 800bc18: 4b09 ldr r3, [pc, #36] ; (800bc40 ) + 800bc1a: 681a ldr r2, [r3, #0] + 800bc1c: 68fb ldr r3, [r7, #12] + 800bc1e: 60da str r2, [r3, #12] udp_pcbs = pcb; - 800bc24: 4a07 ldr r2, [pc, #28] ; (800bc44 ) - 800bc26: 68fb ldr r3, [r7, #12] - 800bc28: 6013 str r3, [r2, #0] + 800bc20: 4a07 ldr r2, [pc, #28] ; (800bc40 ) + 800bc22: 68fb ldr r3, [r7, #12] + 800bc24: 6013 str r3, [r2, #0] return ERR_OK; - 800bc2a: 2300 movs r3, #0 + 800bc26: 2300 movs r3, #0 } - 800bc2c: 4618 mov r0, r3 - 800bc2e: 3718 adds r7, #24 - 800bc30: 46bd mov sp, r7 - 800bc32: bd80 pop {r7, pc} - 800bc34: 08016ea8 .word 0x08016ea8 - 800bc38: 08017188 .word 0x08017188 - 800bc3c: 08016efc .word 0x08016efc - 800bc40: 080171a4 .word 0x080171a4 - 800bc44: 20008c5c .word 0x20008c5c + 800bc28: 4618 mov r0, r3 + 800bc2a: 3718 adds r7, #24 + 800bc2c: 46bd mov sp, r7 + 800bc2e: bd80 pop {r7, pc} + 800bc30: 08016ea8 .word 0x08016ea8 + 800bc34: 08017188 .word 0x08017188 + 800bc38: 08016efc .word 0x08016efc + 800bc3c: 080171a4 .word 0x080171a4 + 800bc40: 20008c5c .word 0x20008c5c -0800bc48 : +0800bc44 : * @param recv function pointer of the callback function * @param recv_arg additional argument to pass to the callback function */ void udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg) { - 800bc48: b580 push {r7, lr} - 800bc4a: b084 sub sp, #16 - 800bc4c: af00 add r7, sp, #0 - 800bc4e: 60f8 str r0, [r7, #12] - 800bc50: 60b9 str r1, [r7, #8] - 800bc52: 607a str r2, [r7, #4] + 800bc44: b580 push {r7, lr} + 800bc46: b084 sub sp, #16 + 800bc48: af00 add r7, sp, #0 + 800bc4a: 60f8 str r0, [r7, #12] + 800bc4c: 60b9 str r1, [r7, #8] + 800bc4e: 607a str r2, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("udp_recv: invalid pcb", pcb != NULL, return); - 800bc54: 68fb ldr r3, [r7, #12] - 800bc56: 2b00 cmp r3, #0 - 800bc58: d107 bne.n 800bc6a - 800bc5a: 4b08 ldr r3, [pc, #32] ; (800bc7c ) - 800bc5c: f240 428a movw r2, #1162 ; 0x48a - 800bc60: 4907 ldr r1, [pc, #28] ; (800bc80 ) - 800bc62: 4808 ldr r0, [pc, #32] ; (800bc84 ) - 800bc64: f004 fbb6 bl 80103d4 - 800bc68: e005 b.n 800bc76 + 800bc50: 68fb ldr r3, [r7, #12] + 800bc52: 2b00 cmp r3, #0 + 800bc54: d107 bne.n 800bc66 + 800bc56: 4b08 ldr r3, [pc, #32] ; (800bc78 ) + 800bc58: f240 428a movw r2, #1162 ; 0x48a + 800bc5c: 4907 ldr r1, [pc, #28] ; (800bc7c ) + 800bc5e: 4808 ldr r0, [pc, #32] ; (800bc80 ) + 800bc60: f004 fbb6 bl 80103d0 + 800bc64: e005 b.n 800bc72 /* remember recv() callback and user data */ pcb->recv = recv; - 800bc6a: 68fb ldr r3, [r7, #12] - 800bc6c: 68ba ldr r2, [r7, #8] - 800bc6e: 619a str r2, [r3, #24] + 800bc66: 68fb ldr r3, [r7, #12] + 800bc68: 68ba ldr r2, [r7, #8] + 800bc6a: 619a str r2, [r3, #24] pcb->recv_arg = recv_arg; - 800bc70: 68fb ldr r3, [r7, #12] - 800bc72: 687a ldr r2, [r7, #4] - 800bc74: 61da str r2, [r3, #28] + 800bc6c: 68fb ldr r3, [r7, #12] + 800bc6e: 687a ldr r2, [r7, #4] + 800bc70: 61da str r2, [r3, #28] } - 800bc76: 3710 adds r7, #16 - 800bc78: 46bd mov sp, r7 - 800bc7a: bd80 pop {r7, pc} - 800bc7c: 08016ea8 .word 0x08016ea8 - 800bc80: 080171dc .word 0x080171dc - 800bc84: 08016efc .word 0x08016efc + 800bc72: 3710 adds r7, #16 + 800bc74: 46bd mov sp, r7 + 800bc76: bd80 pop {r7, pc} + 800bc78: 08016ea8 .word 0x08016ea8 + 800bc7c: 080171dc .word 0x080171dc + 800bc80: 08016efc .word 0x08016efc -0800bc88 : +0800bc84 : * * @see udp_new() */ void udp_remove(struct udp_pcb *pcb) { - 800bc88: b580 push {r7, lr} - 800bc8a: b084 sub sp, #16 - 800bc8c: af00 add r7, sp, #0 - 800bc8e: 6078 str r0, [r7, #4] + 800bc84: b580 push {r7, lr} + 800bc86: b084 sub sp, #16 + 800bc88: af00 add r7, sp, #0 + 800bc8a: 6078 str r0, [r7, #4] struct udp_pcb *pcb2; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("udp_remove: invalid pcb", pcb != NULL, return); - 800bc90: 687b ldr r3, [r7, #4] - 800bc92: 2b00 cmp r3, #0 - 800bc94: d107 bne.n 800bca6 - 800bc96: 4b19 ldr r3, [pc, #100] ; (800bcfc ) - 800bc98: f240 42a1 movw r2, #1185 ; 0x4a1 - 800bc9c: 4918 ldr r1, [pc, #96] ; (800bd00 ) - 800bc9e: 4819 ldr r0, [pc, #100] ; (800bd04 ) - 800bca0: f004 fb98 bl 80103d4 - 800bca4: e026 b.n 800bcf4 + 800bc8c: 687b ldr r3, [r7, #4] + 800bc8e: 2b00 cmp r3, #0 + 800bc90: d107 bne.n 800bca2 + 800bc92: 4b19 ldr r3, [pc, #100] ; (800bcf8 ) + 800bc94: f240 42a1 movw r2, #1185 ; 0x4a1 + 800bc98: 4918 ldr r1, [pc, #96] ; (800bcfc ) + 800bc9a: 4819 ldr r0, [pc, #100] ; (800bd00 ) + 800bc9c: f004 fb98 bl 80103d0 + 800bca0: e026 b.n 800bcf0 mib2_udp_unbind(pcb); /* pcb to be removed is first in list? */ if (udp_pcbs == pcb) { - 800bca6: 4b18 ldr r3, [pc, #96] ; (800bd08 ) - 800bca8: 681b ldr r3, [r3, #0] - 800bcaa: 687a ldr r2, [r7, #4] - 800bcac: 429a cmp r2, r3 - 800bcae: d105 bne.n 800bcbc + 800bca2: 4b18 ldr r3, [pc, #96] ; (800bd04 ) + 800bca4: 681b ldr r3, [r3, #0] + 800bca6: 687a ldr r2, [r7, #4] + 800bca8: 429a cmp r2, r3 + 800bcaa: d105 bne.n 800bcb8 /* make list start at 2nd pcb */ udp_pcbs = udp_pcbs->next; - 800bcb0: 4b15 ldr r3, [pc, #84] ; (800bd08 ) - 800bcb2: 681b ldr r3, [r3, #0] - 800bcb4: 68db ldr r3, [r3, #12] - 800bcb6: 4a14 ldr r2, [pc, #80] ; (800bd08 ) - 800bcb8: 6013 str r3, [r2, #0] - 800bcba: e017 b.n 800bcec + 800bcac: 4b15 ldr r3, [pc, #84] ; (800bd04 ) + 800bcae: 681b ldr r3, [r3, #0] + 800bcb0: 68db ldr r3, [r3, #12] + 800bcb2: 4a14 ldr r2, [pc, #80] ; (800bd04 ) + 800bcb4: 6013 str r3, [r2, #0] + 800bcb6: e017 b.n 800bce8 /* pcb not 1st in list */ } else { for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { - 800bcbc: 4b12 ldr r3, [pc, #72] ; (800bd08 ) - 800bcbe: 681b ldr r3, [r3, #0] - 800bcc0: 60fb str r3, [r7, #12] - 800bcc2: e010 b.n 800bce6 + 800bcb8: 4b12 ldr r3, [pc, #72] ; (800bd04 ) + 800bcba: 681b ldr r3, [r3, #0] + 800bcbc: 60fb str r3, [r7, #12] + 800bcbe: e010 b.n 800bce2 /* find pcb in udp_pcbs list */ if (pcb2->next != NULL && pcb2->next == pcb) { - 800bcc4: 68fb ldr r3, [r7, #12] - 800bcc6: 68db ldr r3, [r3, #12] - 800bcc8: 2b00 cmp r3, #0 - 800bcca: d009 beq.n 800bce0 - 800bccc: 68fb ldr r3, [r7, #12] - 800bcce: 68db ldr r3, [r3, #12] - 800bcd0: 687a ldr r2, [r7, #4] - 800bcd2: 429a cmp r2, r3 - 800bcd4: d104 bne.n 800bce0 + 800bcc0: 68fb ldr r3, [r7, #12] + 800bcc2: 68db ldr r3, [r3, #12] + 800bcc4: 2b00 cmp r3, #0 + 800bcc6: d009 beq.n 800bcdc + 800bcc8: 68fb ldr r3, [r7, #12] + 800bcca: 68db ldr r3, [r3, #12] + 800bccc: 687a ldr r2, [r7, #4] + 800bcce: 429a cmp r2, r3 + 800bcd0: d104 bne.n 800bcdc /* remove pcb from list */ pcb2->next = pcb->next; - 800bcd6: 687b ldr r3, [r7, #4] - 800bcd8: 68da ldr r2, [r3, #12] - 800bcda: 68fb ldr r3, [r7, #12] - 800bcdc: 60da str r2, [r3, #12] + 800bcd2: 687b ldr r3, [r7, #4] + 800bcd4: 68da ldr r2, [r3, #12] + 800bcd6: 68fb ldr r3, [r7, #12] + 800bcd8: 60da str r2, [r3, #12] break; - 800bcde: e005 b.n 800bcec + 800bcda: e005 b.n 800bce8 for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { - 800bce0: 68fb ldr r3, [r7, #12] - 800bce2: 68db ldr r3, [r3, #12] - 800bce4: 60fb str r3, [r7, #12] - 800bce6: 68fb ldr r3, [r7, #12] - 800bce8: 2b00 cmp r3, #0 - 800bcea: d1eb bne.n 800bcc4 + 800bcdc: 68fb ldr r3, [r7, #12] + 800bcde: 68db ldr r3, [r3, #12] + 800bce0: 60fb str r3, [r7, #12] + 800bce2: 68fb ldr r3, [r7, #12] + 800bce4: 2b00 cmp r3, #0 + 800bce6: d1eb bne.n 800bcc0 } } } memp_free(MEMP_UDP_PCB, pcb); - 800bcec: 6879 ldr r1, [r7, #4] - 800bcee: 2000 movs r0, #0 - 800bcf0: f7f8 ffd2 bl 8004c98 + 800bce8: 6879 ldr r1, [r7, #4] + 800bcea: 2000 movs r0, #0 + 800bcec: f7f8 ffd2 bl 8004c94 } - 800bcf4: 3710 adds r7, #16 - 800bcf6: 46bd mov sp, r7 - 800bcf8: bd80 pop {r7, pc} - 800bcfa: bf00 nop - 800bcfc: 08016ea8 .word 0x08016ea8 - 800bd00: 080171f4 .word 0x080171f4 - 800bd04: 08016efc .word 0x08016efc - 800bd08: 20008c5c .word 0x20008c5c + 800bcf0: 3710 adds r7, #16 + 800bcf2: 46bd mov sp, r7 + 800bcf4: bd80 pop {r7, pc} + 800bcf6: bf00 nop + 800bcf8: 08016ea8 .word 0x08016ea8 + 800bcfc: 080171f4 .word 0x080171f4 + 800bd00: 08016efc .word 0x08016efc + 800bd04: 20008c5c .word 0x20008c5c -0800bd0c : +0800bd08 : * * @see udp_remove() */ struct udp_pcb * udp_new(void) { - 800bd0c: b580 push {r7, lr} - 800bd0e: b082 sub sp, #8 - 800bd10: af00 add r7, sp, #0 + 800bd08: b580 push {r7, lr} + 800bd0a: b082 sub sp, #8 + 800bd0c: af00 add r7, sp, #0 struct udp_pcb *pcb; LWIP_ASSERT_CORE_LOCKED(); pcb = (struct udp_pcb *)memp_malloc(MEMP_UDP_PCB); - 800bd12: 2000 movs r0, #0 - 800bd14: f7f8 ff50 bl 8004bb8 - 800bd18: 6078 str r0, [r7, #4] + 800bd0e: 2000 movs r0, #0 + 800bd10: f7f8 ff50 bl 8004bb4 + 800bd14: 6078 str r0, [r7, #4] /* could allocate UDP PCB? */ if (pcb != NULL) { - 800bd1a: 687b ldr r3, [r7, #4] - 800bd1c: 2b00 cmp r3, #0 - 800bd1e: d007 beq.n 800bd30 + 800bd16: 687b ldr r3, [r7, #4] + 800bd18: 2b00 cmp r3, #0 + 800bd1a: d007 beq.n 800bd2c /* UDP Lite: by initializing to all zeroes, chksum_len is set to 0 * which means checksum is generated over the whole datagram per default * (recommended as default by RFC 3828). */ /* initialize PCB to all zeroes */ memset(pcb, 0, sizeof(struct udp_pcb)); - 800bd20: 2220 movs r2, #32 - 800bd22: 2100 movs r1, #0 - 800bd24: 6878 ldr r0, [r7, #4] - 800bd26: f004 fb4d bl 80103c4 + 800bd1c: 2220 movs r2, #32 + 800bd1e: 2100 movs r1, #0 + 800bd20: 6878 ldr r0, [r7, #4] + 800bd22: f004 fb4d bl 80103c0 pcb->ttl = UDP_TTL; - 800bd2a: 687b ldr r3, [r7, #4] - 800bd2c: 22ff movs r2, #255 ; 0xff - 800bd2e: 72da strb r2, [r3, #11] + 800bd26: 687b ldr r3, [r7, #4] + 800bd28: 22ff movs r2, #255 ; 0xff + 800bd2a: 72da strb r2, [r3, #11] #if LWIP_MULTICAST_TX_OPTIONS udp_set_multicast_ttl(pcb, UDP_TTL); #endif /* LWIP_MULTICAST_TX_OPTIONS */ } return pcb; - 800bd30: 687b ldr r3, [r7, #4] + 800bd2c: 687b ldr r3, [r7, #4] } - 800bd32: 4618 mov r0, r3 - 800bd34: 3708 adds r7, #8 - 800bd36: 46bd mov sp, r7 - 800bd38: bd80 pop {r7, pc} + 800bd2e: 4618 mov r0, r3 + 800bd30: 3708 adds r7, #8 + 800bd32: 46bd mov sp, r7 + 800bd34: bd80 pop {r7, pc} ... -0800bd3c : +0800bd38 : * * @param old_addr IP address of the netif before change * @param new_addr IP address of the netif after change */ void udp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) { - 800bd3c: b480 push {r7} - 800bd3e: b085 sub sp, #20 - 800bd40: af00 add r7, sp, #0 - 800bd42: 6078 str r0, [r7, #4] - 800bd44: 6039 str r1, [r7, #0] + 800bd38: b480 push {r7} + 800bd3a: b085 sub sp, #20 + 800bd3c: af00 add r7, sp, #0 + 800bd3e: 6078 str r0, [r7, #4] + 800bd40: 6039 str r1, [r7, #0] struct udp_pcb *upcb; if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) { - 800bd46: 687b ldr r3, [r7, #4] - 800bd48: 2b00 cmp r3, #0 - 800bd4a: d01e beq.n 800bd8a - 800bd4c: 687b ldr r3, [r7, #4] - 800bd4e: 681b ldr r3, [r3, #0] - 800bd50: 2b00 cmp r3, #0 - 800bd52: d01a beq.n 800bd8a - 800bd54: 683b ldr r3, [r7, #0] - 800bd56: 2b00 cmp r3, #0 - 800bd58: d017 beq.n 800bd8a - 800bd5a: 683b ldr r3, [r7, #0] - 800bd5c: 681b ldr r3, [r3, #0] - 800bd5e: 2b00 cmp r3, #0 - 800bd60: d013 beq.n 800bd8a + 800bd42: 687b ldr r3, [r7, #4] + 800bd44: 2b00 cmp r3, #0 + 800bd46: d01e beq.n 800bd86 + 800bd48: 687b ldr r3, [r7, #4] + 800bd4a: 681b ldr r3, [r3, #0] + 800bd4c: 2b00 cmp r3, #0 + 800bd4e: d01a beq.n 800bd86 + 800bd50: 683b ldr r3, [r7, #0] + 800bd52: 2b00 cmp r3, #0 + 800bd54: d017 beq.n 800bd86 + 800bd56: 683b ldr r3, [r7, #0] + 800bd58: 681b ldr r3, [r3, #0] + 800bd5a: 2b00 cmp r3, #0 + 800bd5c: d013 beq.n 800bd86 for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) { - 800bd62: 4b0d ldr r3, [pc, #52] ; (800bd98 ) - 800bd64: 681b ldr r3, [r3, #0] - 800bd66: 60fb str r3, [r7, #12] - 800bd68: e00c b.n 800bd84 + 800bd5e: 4b0d ldr r3, [pc, #52] ; (800bd94 ) + 800bd60: 681b ldr r3, [r3, #0] + 800bd62: 60fb str r3, [r7, #12] + 800bd64: e00c b.n 800bd80 /* PCB bound to current local interface address? */ if (ip_addr_cmp(&upcb->local_ip, old_addr)) { - 800bd6a: 68fb ldr r3, [r7, #12] - 800bd6c: 681a ldr r2, [r3, #0] - 800bd6e: 687b ldr r3, [r7, #4] - 800bd70: 681b ldr r3, [r3, #0] - 800bd72: 429a cmp r2, r3 - 800bd74: d103 bne.n 800bd7e + 800bd66: 68fb ldr r3, [r7, #12] + 800bd68: 681a ldr r2, [r3, #0] + 800bd6a: 687b ldr r3, [r7, #4] + 800bd6c: 681b ldr r3, [r3, #0] + 800bd6e: 429a cmp r2, r3 + 800bd70: d103 bne.n 800bd7a /* The PCB is bound to the old ipaddr and * is set to bound to the new one instead */ ip_addr_copy(upcb->local_ip, *new_addr); - 800bd76: 683b ldr r3, [r7, #0] - 800bd78: 681a ldr r2, [r3, #0] - 800bd7a: 68fb ldr r3, [r7, #12] - 800bd7c: 601a str r2, [r3, #0] + 800bd72: 683b ldr r3, [r7, #0] + 800bd74: 681a ldr r2, [r3, #0] + 800bd76: 68fb ldr r3, [r7, #12] + 800bd78: 601a str r2, [r3, #0] for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) { - 800bd7e: 68fb ldr r3, [r7, #12] - 800bd80: 68db ldr r3, [r3, #12] - 800bd82: 60fb str r3, [r7, #12] - 800bd84: 68fb ldr r3, [r7, #12] - 800bd86: 2b00 cmp r3, #0 - 800bd88: d1ef bne.n 800bd6a + 800bd7a: 68fb ldr r3, [r7, #12] + 800bd7c: 68db ldr r3, [r3, #12] + 800bd7e: 60fb str r3, [r7, #12] + 800bd80: 68fb ldr r3, [r7, #12] + 800bd82: 2b00 cmp r3, #0 + 800bd84: d1ef bne.n 800bd66 } } } } - 800bd8a: bf00 nop - 800bd8c: 3714 adds r7, #20 - 800bd8e: 46bd mov sp, r7 - 800bd90: f85d 7b04 ldr.w r7, [sp], #4 - 800bd94: 4770 bx lr - 800bd96: bf00 nop - 800bd98: 20008c5c .word 0x20008c5c + 800bd86: bf00 nop + 800bd88: 3714 adds r7, #20 + 800bd8a: 46bd mov sp, r7 + 800bd8c: f85d 7b04 ldr.w r7, [sp], #4 + 800bd90: 4770 bx lr + 800bd92: bf00 nop + 800bd94: 20008c5c .word 0x20008c5c -0800bd9c : +0800bd98 : static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out); /** Ensure DHCP PCB is allocated and bound */ static err_t dhcp_inc_pcb_refcount(void) { - 800bd9c: b580 push {r7, lr} - 800bd9e: af00 add r7, sp, #0 + 800bd98: b580 push {r7, lr} + 800bd9a: af00 add r7, sp, #0 if (dhcp_pcb_refcount == 0) { - 800bda0: 4b20 ldr r3, [pc, #128] ; (800be24 ) - 800bda2: 781b ldrb r3, [r3, #0] - 800bda4: 2b00 cmp r3, #0 - 800bda6: d133 bne.n 800be10 + 800bd9c: 4b20 ldr r3, [pc, #128] ; (800be20 ) + 800bd9e: 781b ldrb r3, [r3, #0] + 800bda0: 2b00 cmp r3, #0 + 800bda2: d133 bne.n 800be0c LWIP_ASSERT("dhcp_inc_pcb_refcount(): memory leak", dhcp_pcb == NULL); - 800bda8: 4b1f ldr r3, [pc, #124] ; (800be28 ) - 800bdaa: 681b ldr r3, [r3, #0] - 800bdac: 2b00 cmp r3, #0 - 800bdae: d005 beq.n 800bdbc - 800bdb0: 4b1e ldr r3, [pc, #120] ; (800be2c ) - 800bdb2: 22e5 movs r2, #229 ; 0xe5 - 800bdb4: 491e ldr r1, [pc, #120] ; (800be30 ) - 800bdb6: 481f ldr r0, [pc, #124] ; (800be34 ) - 800bdb8: f004 fb0c bl 80103d4 + 800bda4: 4b1f ldr r3, [pc, #124] ; (800be24 ) + 800bda6: 681b ldr r3, [r3, #0] + 800bda8: 2b00 cmp r3, #0 + 800bdaa: d005 beq.n 800bdb8 + 800bdac: 4b1e ldr r3, [pc, #120] ; (800be28 ) + 800bdae: 22e5 movs r2, #229 ; 0xe5 + 800bdb0: 491e ldr r1, [pc, #120] ; (800be2c ) + 800bdb2: 481f ldr r0, [pc, #124] ; (800be30 ) + 800bdb4: f004 fb0c bl 80103d0 /* allocate UDP PCB */ dhcp_pcb = udp_new(); - 800bdbc: f7ff ffa6 bl 800bd0c - 800bdc0: 4603 mov r3, r0 - 800bdc2: 4a19 ldr r2, [pc, #100] ; (800be28 ) - 800bdc4: 6013 str r3, [r2, #0] + 800bdb8: f7ff ffa6 bl 800bd08 + 800bdbc: 4603 mov r3, r0 + 800bdbe: 4a19 ldr r2, [pc, #100] ; (800be24 ) + 800bdc0: 6013 str r3, [r2, #0] if (dhcp_pcb == NULL) { - 800bdc6: 4b18 ldr r3, [pc, #96] ; (800be28 ) - 800bdc8: 681b ldr r3, [r3, #0] - 800bdca: 2b00 cmp r3, #0 - 800bdcc: d102 bne.n 800bdd4 + 800bdc2: 4b18 ldr r3, [pc, #96] ; (800be24 ) + 800bdc4: 681b ldr r3, [r3, #0] + 800bdc6: 2b00 cmp r3, #0 + 800bdc8: d102 bne.n 800bdd0 return ERR_MEM; - 800bdce: f04f 33ff mov.w r3, #4294967295 - 800bdd2: e024 b.n 800be1e + 800bdca: f04f 33ff mov.w r3, #4294967295 + 800bdce: e024 b.n 800be1a } ip_set_option(dhcp_pcb, SOF_BROADCAST); - 800bdd4: 4b14 ldr r3, [pc, #80] ; (800be28 ) - 800bdd6: 681b ldr r3, [r3, #0] - 800bdd8: 7a5a ldrb r2, [r3, #9] - 800bdda: 4b13 ldr r3, [pc, #76] ; (800be28 ) - 800bddc: 681b ldr r3, [r3, #0] - 800bdde: f042 0220 orr.w r2, r2, #32 - 800bde2: b2d2 uxtb r2, r2 - 800bde4: 725a strb r2, [r3, #9] + 800bdd0: 4b14 ldr r3, [pc, #80] ; (800be24 ) + 800bdd2: 681b ldr r3, [r3, #0] + 800bdd4: 7a5a ldrb r2, [r3, #9] + 800bdd6: 4b13 ldr r3, [pc, #76] ; (800be24 ) + 800bdd8: 681b ldr r3, [r3, #0] + 800bdda: f042 0220 orr.w r2, r2, #32 + 800bdde: b2d2 uxtb r2, r2 + 800bde0: 725a strb r2, [r3, #9] /* set up local and remote port for the pcb -> listen on all interfaces on all src/dest IPs */ udp_bind(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_CLIENT); - 800bde6: 4b10 ldr r3, [pc, #64] ; (800be28 ) - 800bde8: 681b ldr r3, [r3, #0] - 800bdea: 2244 movs r2, #68 ; 0x44 - 800bdec: 4912 ldr r1, [pc, #72] ; (800be38 ) - 800bdee: 4618 mov r0, r3 - 800bdf0: f7ff fe34 bl 800ba5c + 800bde2: 4b10 ldr r3, [pc, #64] ; (800be24 ) + 800bde4: 681b ldr r3, [r3, #0] + 800bde6: 2244 movs r2, #68 ; 0x44 + 800bde8: 4912 ldr r1, [pc, #72] ; (800be34 ) + 800bdea: 4618 mov r0, r3 + 800bdec: f7ff fe34 bl 800ba58 udp_connect(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_SERVER); - 800bdf4: 4b0c ldr r3, [pc, #48] ; (800be28 ) - 800bdf6: 681b ldr r3, [r3, #0] - 800bdf8: 2243 movs r2, #67 ; 0x43 - 800bdfa: 490f ldr r1, [pc, #60] ; (800be38 ) - 800bdfc: 4618 mov r0, r3 - 800bdfe: f7ff feb5 bl 800bb6c + 800bdf0: 4b0c ldr r3, [pc, #48] ; (800be24 ) + 800bdf2: 681b ldr r3, [r3, #0] + 800bdf4: 2243 movs r2, #67 ; 0x43 + 800bdf6: 490f ldr r1, [pc, #60] ; (800be34 ) + 800bdf8: 4618 mov r0, r3 + 800bdfa: f7ff feb5 bl 800bb68 udp_recv(dhcp_pcb, dhcp_recv, NULL); - 800be02: 4b09 ldr r3, [pc, #36] ; (800be28 ) - 800be04: 681b ldr r3, [r3, #0] - 800be06: 2200 movs r2, #0 - 800be08: 490c ldr r1, [pc, #48] ; (800be3c ) - 800be0a: 4618 mov r0, r3 - 800be0c: f7ff ff1c bl 800bc48 + 800bdfe: 4b09 ldr r3, [pc, #36] ; (800be24 ) + 800be00: 681b ldr r3, [r3, #0] + 800be02: 2200 movs r2, #0 + 800be04: 490c ldr r1, [pc, #48] ; (800be38 ) + 800be06: 4618 mov r0, r3 + 800be08: f7ff ff1c bl 800bc44 } dhcp_pcb_refcount++; - 800be10: 4b04 ldr r3, [pc, #16] ; (800be24 ) - 800be12: 781b ldrb r3, [r3, #0] - 800be14: 3301 adds r3, #1 - 800be16: b2da uxtb r2, r3 - 800be18: 4b02 ldr r3, [pc, #8] ; (800be24 ) - 800be1a: 701a strb r2, [r3, #0] + 800be0c: 4b04 ldr r3, [pc, #16] ; (800be20 ) + 800be0e: 781b ldrb r3, [r3, #0] + 800be10: 3301 adds r3, #1 + 800be12: b2da uxtb r2, r3 + 800be14: 4b02 ldr r3, [pc, #8] ; (800be20 ) + 800be16: 701a strb r2, [r3, #0] return ERR_OK; - 800be1c: 2300 movs r3, #0 + 800be18: 2300 movs r3, #0 } - 800be1e: 4618 mov r0, r3 - 800be20: bd80 pop {r7, pc} - 800be22: bf00 nop - 800be24: 20008c8c .word 0x20008c8c - 800be28: 20008c88 .word 0x20008c88 - 800be2c: 0801720c .word 0x0801720c - 800be30: 08017244 .word 0x08017244 - 800be34: 0801726c .word 0x0801726c - 800be38: 08017ddc .word 0x08017ddc - 800be3c: 0800d6d1 .word 0x0800d6d1 + 800be1a: 4618 mov r0, r3 + 800be1c: bd80 pop {r7, pc} + 800be1e: bf00 nop + 800be20: 20008c8c .word 0x20008c8c + 800be24: 20008c88 .word 0x20008c88 + 800be28: 0801720c .word 0x0801720c + 800be2c: 08017244 .word 0x08017244 + 800be30: 0801726c .word 0x0801726c + 800be34: 08017ddc .word 0x08017ddc + 800be38: 0800d6cd .word 0x0800d6cd -0800be40 : +0800be3c : /** Free DHCP PCB if the last netif stops using it */ static void dhcp_dec_pcb_refcount(void) { - 800be40: b580 push {r7, lr} - 800be42: af00 add r7, sp, #0 + 800be3c: b580 push {r7, lr} + 800be3e: af00 add r7, sp, #0 LWIP_ASSERT("dhcp_pcb_refcount(): refcount error", (dhcp_pcb_refcount > 0)); - 800be44: 4b0e ldr r3, [pc, #56] ; (800be80 ) - 800be46: 781b ldrb r3, [r3, #0] - 800be48: 2b00 cmp r3, #0 - 800be4a: d105 bne.n 800be58 - 800be4c: 4b0d ldr r3, [pc, #52] ; (800be84 ) - 800be4e: 22ff movs r2, #255 ; 0xff - 800be50: 490d ldr r1, [pc, #52] ; (800be88 ) - 800be52: 480e ldr r0, [pc, #56] ; (800be8c ) - 800be54: f004 fabe bl 80103d4 + 800be40: 4b0e ldr r3, [pc, #56] ; (800be7c ) + 800be42: 781b ldrb r3, [r3, #0] + 800be44: 2b00 cmp r3, #0 + 800be46: d105 bne.n 800be54 + 800be48: 4b0d ldr r3, [pc, #52] ; (800be80 ) + 800be4a: 22ff movs r2, #255 ; 0xff + 800be4c: 490d ldr r1, [pc, #52] ; (800be84 ) + 800be4e: 480e ldr r0, [pc, #56] ; (800be88 ) + 800be50: f004 fabe bl 80103d0 dhcp_pcb_refcount--; - 800be58: 4b09 ldr r3, [pc, #36] ; (800be80 ) - 800be5a: 781b ldrb r3, [r3, #0] - 800be5c: 3b01 subs r3, #1 - 800be5e: b2da uxtb r2, r3 - 800be60: 4b07 ldr r3, [pc, #28] ; (800be80 ) - 800be62: 701a strb r2, [r3, #0] + 800be54: 4b09 ldr r3, [pc, #36] ; (800be7c ) + 800be56: 781b ldrb r3, [r3, #0] + 800be58: 3b01 subs r3, #1 + 800be5a: b2da uxtb r2, r3 + 800be5c: 4b07 ldr r3, [pc, #28] ; (800be7c ) + 800be5e: 701a strb r2, [r3, #0] if (dhcp_pcb_refcount == 0) { - 800be64: 4b06 ldr r3, [pc, #24] ; (800be80 ) - 800be66: 781b ldrb r3, [r3, #0] - 800be68: 2b00 cmp r3, #0 - 800be6a: d107 bne.n 800be7c + 800be60: 4b06 ldr r3, [pc, #24] ; (800be7c ) + 800be62: 781b ldrb r3, [r3, #0] + 800be64: 2b00 cmp r3, #0 + 800be66: d107 bne.n 800be78 udp_remove(dhcp_pcb); - 800be6c: 4b08 ldr r3, [pc, #32] ; (800be90 ) - 800be6e: 681b ldr r3, [r3, #0] - 800be70: 4618 mov r0, r3 - 800be72: f7ff ff09 bl 800bc88 + 800be68: 4b08 ldr r3, [pc, #32] ; (800be8c ) + 800be6a: 681b ldr r3, [r3, #0] + 800be6c: 4618 mov r0, r3 + 800be6e: f7ff ff09 bl 800bc84 dhcp_pcb = NULL; - 800be76: 4b06 ldr r3, [pc, #24] ; (800be90 ) - 800be78: 2200 movs r2, #0 - 800be7a: 601a str r2, [r3, #0] + 800be72: 4b06 ldr r3, [pc, #24] ; (800be8c ) + 800be74: 2200 movs r2, #0 + 800be76: 601a str r2, [r3, #0] } } - 800be7c: bf00 nop - 800be7e: bd80 pop {r7, pc} - 800be80: 20008c8c .word 0x20008c8c - 800be84: 0801720c .word 0x0801720c - 800be88: 08017294 .word 0x08017294 - 800be8c: 0801726c .word 0x0801726c - 800be90: 20008c88 .word 0x20008c88 + 800be78: bf00 nop + 800be7a: bd80 pop {r7, pc} + 800be7c: 20008c8c .word 0x20008c8c + 800be80: 0801720c .word 0x0801720c + 800be84: 08017294 .word 0x08017294 + 800be88: 0801726c .word 0x0801726c + 800be8c: 20008c88 .word 0x20008c88 -0800be94 : +0800be90 : * * @param netif the netif under DHCP control */ static void dhcp_handle_nak(struct netif *netif) { - 800be94: b580 push {r7, lr} - 800be96: b084 sub sp, #16 - 800be98: af00 add r7, sp, #0 - 800be9a: 6078 str r0, [r7, #4] + 800be90: b580 push {r7, lr} + 800be92: b084 sub sp, #16 + 800be94: af00 add r7, sp, #0 + 800be96: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800be9c: 687b ldr r3, [r7, #4] - 800be9e: 6a5b ldr r3, [r3, #36] ; 0x24 - 800bea0: 60fb str r3, [r7, #12] + 800be98: 687b ldr r3, [r7, #4] + 800be9a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800be9c: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_nak(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); /* Change to a defined state - set this before assigning the address to ensure the callback can use dhcp_supplied_address() */ dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF); - 800bea2: 210c movs r1, #12 - 800bea4: 68f8 ldr r0, [r7, #12] - 800bea6: f001 f855 bl 800cf54 + 800be9e: 210c movs r1, #12 + 800bea0: 68f8 ldr r0, [r7, #12] + 800bea2: f001 f855 bl 800cf50 /* remove IP address from interface (must no longer be used, as per RFC2131) */ netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); - 800beaa: 4b06 ldr r3, [pc, #24] ; (800bec4 ) - 800beac: 4a05 ldr r2, [pc, #20] ; (800bec4 ) - 800beae: 4905 ldr r1, [pc, #20] ; (800bec4 ) - 800beb0: 6878 ldr r0, [r7, #4] - 800beb2: f7f9 f893 bl 8004fdc + 800bea6: 4b06 ldr r3, [pc, #24] ; (800bec0 ) + 800bea8: 4a05 ldr r2, [pc, #20] ; (800bec0 ) + 800beaa: 4905 ldr r1, [pc, #20] ; (800bec0 ) + 800beac: 6878 ldr r0, [r7, #4] + 800beae: f7f9 f893 bl 8004fd8 /* We can immediately restart discovery */ dhcp_discover(netif); - 800beb6: 6878 ldr r0, [r7, #4] - 800beb8: f000 fc48 bl 800c74c + 800beb2: 6878 ldr r0, [r7, #4] + 800beb4: f000 fc48 bl 800c748 } - 800bebc: bf00 nop - 800bebe: 3710 adds r7, #16 - 800bec0: 46bd mov sp, r7 - 800bec2: bd80 pop {r7, pc} - 800bec4: 08017ddc .word 0x08017ddc + 800beb8: bf00 nop + 800beba: 3710 adds r7, #16 + 800bebc: 46bd mov sp, r7 + 800bebe: bd80 pop {r7, pc} + 800bec0: 08017ddc .word 0x08017ddc -0800bec8 : +0800bec4 : * * @param netif the netif under DHCP control */ static void dhcp_check(struct netif *netif) { - 800bec8: b580 push {r7, lr} - 800beca: b084 sub sp, #16 - 800becc: af00 add r7, sp, #0 - 800bece: 6078 str r0, [r7, #4] + 800bec4: b580 push {r7, lr} + 800bec6: b084 sub sp, #16 + 800bec8: af00 add r7, sp, #0 + 800beca: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800bed0: 687b ldr r3, [r7, #4] - 800bed2: 6a5b ldr r3, [r3, #36] ; 0x24 - 800bed4: 60fb str r3, [r7, #12] + 800becc: 687b ldr r3, [r7, #4] + 800bece: 6a5b ldr r3, [r3, #36] ; 0x24 + 800bed0: 60fb str r3, [r7, #12] err_t result; u16_t msecs; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_check(netif=%p) %c%c\n", (void *)netif, (s16_t)netif->name[0], (s16_t)netif->name[1])); dhcp_set_state(dhcp, DHCP_STATE_CHECKING); - 800bed6: 2108 movs r1, #8 - 800bed8: 68f8 ldr r0, [r7, #12] - 800beda: f001 f83b bl 800cf54 + 800bed2: 2108 movs r1, #8 + 800bed4: 68f8 ldr r0, [r7, #12] + 800bed6: f001 f83b bl 800cf50 /* create an ARP query for the offered IP address, expecting that no host responds, as the IP address should not be in use. */ result = etharp_query(netif, &dhcp->offered_ip_addr, NULL); - 800bede: 68fb ldr r3, [r7, #12] - 800bee0: 331c adds r3, #28 - 800bee2: 2200 movs r2, #0 - 800bee4: 4619 mov r1, r3 - 800bee6: 6878 ldr r0, [r7, #4] - 800bee8: f002 fb3c bl 800e564 - 800beec: 4603 mov r3, r0 - 800beee: 72fb strb r3, [r7, #11] + 800beda: 68fb ldr r3, [r7, #12] + 800bedc: 331c adds r3, #28 + 800bede: 2200 movs r2, #0 + 800bee0: 4619 mov r1, r3 + 800bee2: 6878 ldr r0, [r7, #4] + 800bee4: f002 fb3c bl 800e560 + 800bee8: 4603 mov r3, r0 + 800beea: 72fb strb r3, [r7, #11] if (result != ERR_OK) { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_check: could not perform ARP query\n")); } if (dhcp->tries < 255) { - 800bef0: 68fb ldr r3, [r7, #12] - 800bef2: 799b ldrb r3, [r3, #6] - 800bef4: 2bff cmp r3, #255 ; 0xff - 800bef6: d005 beq.n 800bf04 + 800beec: 68fb ldr r3, [r7, #12] + 800beee: 799b ldrb r3, [r3, #6] + 800bef0: 2bff cmp r3, #255 ; 0xff + 800bef2: d005 beq.n 800bf00 dhcp->tries++; - 800bef8: 68fb ldr r3, [r7, #12] - 800befa: 799b ldrb r3, [r3, #6] - 800befc: 3301 adds r3, #1 - 800befe: b2da uxtb r2, r3 - 800bf00: 68fb ldr r3, [r7, #12] - 800bf02: 719a strb r2, [r3, #6] + 800bef4: 68fb ldr r3, [r7, #12] + 800bef6: 799b ldrb r3, [r3, #6] + 800bef8: 3301 adds r3, #1 + 800befa: b2da uxtb r2, r3 + 800befc: 68fb ldr r3, [r7, #12] + 800befe: 719a strb r2, [r3, #6] } msecs = 500; - 800bf04: f44f 73fa mov.w r3, #500 ; 0x1f4 - 800bf08: 813b strh r3, [r7, #8] + 800bf00: f44f 73fa mov.w r3, #500 ; 0x1f4 + 800bf04: 813b strh r3, [r7, #8] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 800bf0a: 893b ldrh r3, [r7, #8] - 800bf0c: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 800bf10: 4a06 ldr r2, [pc, #24] ; (800bf2c ) - 800bf12: fb82 1203 smull r1, r2, r2, r3 - 800bf16: 1152 asrs r2, r2, #5 - 800bf18: 17db asrs r3, r3, #31 - 800bf1a: 1ad3 subs r3, r2, r3 - 800bf1c: b29a uxth r2, r3 - 800bf1e: 68fb ldr r3, [r7, #12] - 800bf20: 811a strh r2, [r3, #8] + 800bf06: 893b ldrh r3, [r7, #8] + 800bf08: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 800bf0c: 4a06 ldr r2, [pc, #24] ; (800bf28 ) + 800bf0e: fb82 1203 smull r1, r2, r2, r3 + 800bf12: 1152 asrs r2, r2, #5 + 800bf14: 17db asrs r3, r3, #31 + 800bf16: 1ad3 subs r3, r2, r3 + 800bf18: b29a uxth r2, r3 + 800bf1a: 68fb ldr r3, [r7, #12] + 800bf1c: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_check(): set request timeout %"U16_F" msecs\n", msecs)); } - 800bf22: bf00 nop - 800bf24: 3710 adds r7, #16 - 800bf26: 46bd mov sp, r7 - 800bf28: bd80 pop {r7, pc} - 800bf2a: bf00 nop - 800bf2c: 10624dd3 .word 0x10624dd3 + 800bf1e: bf00 nop + 800bf20: 3710 adds r7, #16 + 800bf22: 46bd mov sp, r7 + 800bf24: bd80 pop {r7, pc} + 800bf26: bf00 nop + 800bf28: 10624dd3 .word 0x10624dd3 -0800bf30 : +0800bf2c : * * @param netif the netif under DHCP control */ static void dhcp_handle_offer(struct netif *netif, struct dhcp_msg *msg_in) { - 800bf30: b580 push {r7, lr} - 800bf32: b084 sub sp, #16 - 800bf34: af00 add r7, sp, #0 - 800bf36: 6078 str r0, [r7, #4] - 800bf38: 6039 str r1, [r7, #0] + 800bf2c: b580 push {r7, lr} + 800bf2e: b084 sub sp, #16 + 800bf30: af00 add r7, sp, #0 + 800bf32: 6078 str r0, [r7, #4] + 800bf34: 6039 str r1, [r7, #0] struct dhcp *dhcp = netif_dhcp_data(netif); - 800bf3a: 687b ldr r3, [r7, #4] - 800bf3c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800bf3e: 60fb str r3, [r7, #12] + 800bf36: 687b ldr r3, [r7, #4] + 800bf38: 6a5b ldr r3, [r3, #36] ; 0x24 + 800bf3a: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_offer(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); /* obtain the server address */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SERVER_ID)) { - 800bf40: 4b0c ldr r3, [pc, #48] ; (800bf74 ) - 800bf42: 789b ldrb r3, [r3, #2] - 800bf44: 2b00 cmp r3, #0 - 800bf46: d011 beq.n 800bf6c + 800bf3c: 4b0c ldr r3, [pc, #48] ; (800bf70 ) + 800bf3e: 789b ldrb r3, [r3, #2] + 800bf40: 2b00 cmp r3, #0 + 800bf42: d011 beq.n 800bf68 dhcp->request_timeout = 0; /* stop timer */ - 800bf48: 68fb ldr r3, [r7, #12] - 800bf4a: 2200 movs r2, #0 - 800bf4c: 811a strh r2, [r3, #8] + 800bf44: 68fb ldr r3, [r7, #12] + 800bf46: 2200 movs r2, #0 + 800bf48: 811a strh r2, [r3, #8] ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SERVER_ID))); - 800bf4e: 4b0a ldr r3, [pc, #40] ; (800bf78 ) - 800bf50: 689b ldr r3, [r3, #8] - 800bf52: 4618 mov r0, r3 - 800bf54: f7f8 f9cd bl 80042f2 - 800bf58: 4602 mov r2, r0 - 800bf5a: 68fb ldr r3, [r7, #12] - 800bf5c: 619a str r2, [r3, #24] + 800bf4a: 4b0a ldr r3, [pc, #40] ; (800bf74 ) + 800bf4c: 689b ldr r3, [r3, #8] + 800bf4e: 4618 mov r0, r3 + 800bf50: f7f8 f9cd bl 80042ee + 800bf54: 4602 mov r2, r0 + 800bf56: 68fb ldr r3, [r7, #12] + 800bf58: 619a str r2, [r3, #24] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): server 0x%08"X32_F"\n", ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr)))); /* remember offered address */ ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr); - 800bf5e: 683b ldr r3, [r7, #0] - 800bf60: 691a ldr r2, [r3, #16] - 800bf62: 68fb ldr r3, [r7, #12] - 800bf64: 61da str r2, [r3, #28] + 800bf5a: 683b ldr r3, [r7, #0] + 800bf5c: 691a ldr r2, [r3, #16] + 800bf5e: 68fb ldr r3, [r7, #12] + 800bf60: 61da str r2, [r3, #28] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): offer for 0x%08"X32_F"\n", ip4_addr_get_u32(&dhcp->offered_ip_addr))); dhcp_select(netif); - 800bf66: 6878 ldr r0, [r7, #4] - 800bf68: f000 f808 bl 800bf7c + 800bf62: 6878 ldr r0, [r7, #4] + 800bf64: f000 f808 bl 800bf78 } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_handle_offer(netif=%p) did not get server ID!\n", (void *)netif)); } } - 800bf6c: bf00 nop - 800bf6e: 3710 adds r7, #16 - 800bf70: 46bd mov sp, r7 - 800bf72: bd80 pop {r7, pc} - 800bf74: 20008c80 .word 0x20008c80 - 800bf78: 20008c60 .word 0x20008c60 + 800bf68: bf00 nop + 800bf6a: 3710 adds r7, #16 + 800bf6c: 46bd mov sp, r7 + 800bf6e: bd80 pop {r7, pc} + 800bf70: 20008c80 .word 0x20008c80 + 800bf74: 20008c60 .word 0x20008c60 -0800bf7c : +0800bf78 : * @param netif the netif under DHCP control * @return lwIP specific error (see error.h) */ static err_t dhcp_select(struct netif *netif) { - 800bf7c: b5b0 push {r4, r5, r7, lr} - 800bf7e: b08a sub sp, #40 ; 0x28 - 800bf80: af02 add r7, sp, #8 - 800bf82: 6078 str r0, [r7, #4] + 800bf78: b5b0 push {r4, r5, r7, lr} + 800bf7a: b08a sub sp, #40 ; 0x28 + 800bf7c: af02 add r7, sp, #8 + 800bf7e: 6078 str r0, [r7, #4] u16_t msecs; u8_t i; struct pbuf *p_out; u16_t options_out_len; LWIP_ERROR("dhcp_select: netif != NULL", (netif != NULL), return ERR_ARG;); - 800bf84: 687b ldr r3, [r7, #4] - 800bf86: 2b00 cmp r3, #0 - 800bf88: d109 bne.n 800bf9e - 800bf8a: 4b71 ldr r3, [pc, #452] ; (800c150 ) - 800bf8c: f240 1277 movw r2, #375 ; 0x177 - 800bf90: 4970 ldr r1, [pc, #448] ; (800c154 ) - 800bf92: 4871 ldr r0, [pc, #452] ; (800c158 ) - 800bf94: f004 fa1e bl 80103d4 - 800bf98: f06f 030f mvn.w r3, #15 - 800bf9c: e0d3 b.n 800c146 + 800bf80: 687b ldr r3, [r7, #4] + 800bf82: 2b00 cmp r3, #0 + 800bf84: d109 bne.n 800bf9a + 800bf86: 4b71 ldr r3, [pc, #452] ; (800c14c ) + 800bf88: f240 1277 movw r2, #375 ; 0x177 + 800bf8c: 4970 ldr r1, [pc, #448] ; (800c150 ) + 800bf8e: 4871 ldr r0, [pc, #452] ; (800c154 ) + 800bf90: f004 fa1e bl 80103d0 + 800bf94: f06f 030f mvn.w r3, #15 + 800bf98: e0d3 b.n 800c142 dhcp = netif_dhcp_data(netif); - 800bf9e: 687b ldr r3, [r7, #4] - 800bfa0: 6a5b ldr r3, [r3, #36] ; 0x24 - 800bfa2: 61bb str r3, [r7, #24] + 800bf9a: 687b ldr r3, [r7, #4] + 800bf9c: 6a5b ldr r3, [r3, #36] ; 0x24 + 800bf9e: 61bb str r3, [r7, #24] LWIP_ERROR("dhcp_select: dhcp != NULL", (dhcp != NULL), return ERR_VAL;); - 800bfa4: 69bb ldr r3, [r7, #24] - 800bfa6: 2b00 cmp r3, #0 - 800bfa8: d109 bne.n 800bfbe - 800bfaa: 4b69 ldr r3, [pc, #420] ; (800c150 ) - 800bfac: f240 1279 movw r2, #377 ; 0x179 - 800bfb0: 496a ldr r1, [pc, #424] ; (800c15c ) - 800bfb2: 4869 ldr r0, [pc, #420] ; (800c158 ) - 800bfb4: f004 fa0e bl 80103d4 - 800bfb8: f06f 0305 mvn.w r3, #5 - 800bfbc: e0c3 b.n 800c146 + 800bfa0: 69bb ldr r3, [r7, #24] + 800bfa2: 2b00 cmp r3, #0 + 800bfa4: d109 bne.n 800bfba + 800bfa6: 4b69 ldr r3, [pc, #420] ; (800c14c ) + 800bfa8: f240 1279 movw r2, #377 ; 0x179 + 800bfac: 496a ldr r1, [pc, #424] ; (800c158 ) + 800bfae: 4869 ldr r0, [pc, #420] ; (800c154 ) + 800bfb0: f004 fa0e bl 80103d0 + 800bfb4: f06f 0305 mvn.w r3, #5 + 800bfb8: e0c3 b.n 800c142 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_select(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); dhcp_set_state(dhcp, DHCP_STATE_REQUESTING); - 800bfbe: 2101 movs r1, #1 - 800bfc0: 69b8 ldr r0, [r7, #24] - 800bfc2: f000 ffc7 bl 800cf54 + 800bfba: 2101 movs r1, #1 + 800bfbc: 69b8 ldr r0, [r7, #24] + 800bfbe: f000 ffc7 bl 800cf50 /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - 800bfc6: f107 030c add.w r3, r7, #12 - 800bfca: 2203 movs r2, #3 - 800bfcc: 69b9 ldr r1, [r7, #24] - 800bfce: 6878 ldr r0, [r7, #4] - 800bfd0: f001 fc4c bl 800d86c - 800bfd4: 6178 str r0, [r7, #20] + 800bfc2: f107 030c add.w r3, r7, #12 + 800bfc6: 2203 movs r2, #3 + 800bfc8: 69b9 ldr r1, [r7, #24] + 800bfca: 6878 ldr r0, [r7, #4] + 800bfcc: f001 fc4c bl 800d868 + 800bfd0: 6178 str r0, [r7, #20] if (p_out != NULL) { - 800bfd6: 697b ldr r3, [r7, #20] - 800bfd8: 2b00 cmp r3, #0 - 800bfda: f000 8085 beq.w 800c0e8 + 800bfd2: 697b ldr r3, [r7, #20] + 800bfd4: 2b00 cmp r3, #0 + 800bfd6: f000 8085 beq.w 800c0e4 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 800bfde: 697b ldr r3, [r7, #20] - 800bfe0: 685b ldr r3, [r3, #4] - 800bfe2: 613b str r3, [r7, #16] + 800bfda: 697b ldr r3, [r7, #20] + 800bfdc: 685b ldr r3, [r3, #4] + 800bfde: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 800bfe4: 89b8 ldrh r0, [r7, #12] - 800bfe6: 693b ldr r3, [r7, #16] - 800bfe8: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800bfec: 2302 movs r3, #2 - 800bfee: 2239 movs r2, #57 ; 0x39 - 800bff0: f000 ffca bl 800cf88 - 800bff4: 4603 mov r3, r0 - 800bff6: 81bb strh r3, [r7, #12] + 800bfe0: 89b8 ldrh r0, [r7, #12] + 800bfe2: 693b ldr r3, [r7, #16] + 800bfe4: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800bfe8: 2302 movs r3, #2 + 800bfea: 2239 movs r2, #57 ; 0x39 + 800bfec: f000 ffca bl 800cf84 + 800bff0: 4603 mov r3, r0 + 800bff2: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - 800bff8: 89b8 ldrh r0, [r7, #12] - 800bffa: 693b ldr r3, [r7, #16] - 800bffc: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c000: 687b ldr r3, [r7, #4] - 800c002: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800c004: 461a mov r2, r3 - 800c006: f001 f819 bl 800d03c - 800c00a: 4603 mov r3, r0 - 800c00c: 81bb strh r3, [r7, #12] + 800bff4: 89b8 ldrh r0, [r7, #12] + 800bff6: 693b ldr r3, [r7, #16] + 800bff8: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800bffc: 687b ldr r3, [r7, #4] + 800bffe: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800c000: 461a mov r2, r3 + 800c002: f001 f819 bl 800d038 + 800c006: 4603 mov r3, r0 + 800c008: 81bb strh r3, [r7, #12] /* MUST request the offered IP address */ options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - 800c00e: 89b8 ldrh r0, [r7, #12] - 800c010: 693b ldr r3, [r7, #16] - 800c012: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c016: 2304 movs r3, #4 - 800c018: 2232 movs r2, #50 ; 0x32 - 800c01a: f000 ffb5 bl 800cf88 - 800c01e: 4603 mov r3, r0 - 800c020: 81bb strh r3, [r7, #12] + 800c00a: 89b8 ldrh r0, [r7, #12] + 800c00c: 693b ldr r3, [r7, #16] + 800c00e: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c012: 2304 movs r3, #4 + 800c014: 2232 movs r2, #50 ; 0x32 + 800c016: f000 ffb5 bl 800cf84 + 800c01a: 4603 mov r3, r0 + 800c01c: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - 800c022: 89bc ldrh r4, [r7, #12] - 800c024: 693b ldr r3, [r7, #16] - 800c026: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 800c02a: 69bb ldr r3, [r7, #24] - 800c02c: 69db ldr r3, [r3, #28] - 800c02e: 4618 mov r0, r3 - 800c030: f7f8 f95f bl 80042f2 - 800c034: 4603 mov r3, r0 - 800c036: 461a mov r2, r3 - 800c038: 4629 mov r1, r5 - 800c03a: 4620 mov r0, r4 - 800c03c: f001 f830 bl 800d0a0 - 800c040: 4603 mov r3, r0 - 800c042: 81bb strh r3, [r7, #12] + 800c01e: 89bc ldrh r4, [r7, #12] + 800c020: 693b ldr r3, [r7, #16] + 800c022: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 800c026: 69bb ldr r3, [r7, #24] + 800c028: 69db ldr r3, [r3, #28] + 800c02a: 4618 mov r0, r3 + 800c02c: f7f8 f95f bl 80042ee + 800c030: 4603 mov r3, r0 + 800c032: 461a mov r2, r3 + 800c034: 4629 mov r1, r5 + 800c036: 4620 mov r0, r4 + 800c038: f001 f830 bl 800d09c + 800c03c: 4603 mov r3, r0 + 800c03e: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4); - 800c044: 89b8 ldrh r0, [r7, #12] - 800c046: 693b ldr r3, [r7, #16] - 800c048: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c04c: 2304 movs r3, #4 - 800c04e: 2236 movs r2, #54 ; 0x36 - 800c050: f000 ff9a bl 800cf88 - 800c054: 4603 mov r3, r0 - 800c056: 81bb strh r3, [r7, #12] + 800c040: 89b8 ldrh r0, [r7, #12] + 800c042: 693b ldr r3, [r7, #16] + 800c044: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c048: 2304 movs r3, #4 + 800c04a: 2236 movs r2, #54 ; 0x36 + 800c04c: f000 ff9a bl 800cf84 + 800c050: 4603 mov r3, r0 + 800c052: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr)))); - 800c058: 89bc ldrh r4, [r7, #12] - 800c05a: 693b ldr r3, [r7, #16] - 800c05c: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 800c060: 69bb ldr r3, [r7, #24] - 800c062: 699b ldr r3, [r3, #24] - 800c064: 4618 mov r0, r3 - 800c066: f7f8 f944 bl 80042f2 - 800c06a: 4603 mov r3, r0 - 800c06c: 461a mov r2, r3 - 800c06e: 4629 mov r1, r5 - 800c070: 4620 mov r0, r4 - 800c072: f001 f815 bl 800d0a0 - 800c076: 4603 mov r3, r0 - 800c078: 81bb strh r3, [r7, #12] + 800c054: 89bc ldrh r4, [r7, #12] + 800c056: 693b ldr r3, [r7, #16] + 800c058: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 800c05c: 69bb ldr r3, [r7, #24] + 800c05e: 699b ldr r3, [r3, #24] + 800c060: 4618 mov r0, r3 + 800c062: f7f8 f944 bl 80042ee + 800c066: 4603 mov r3, r0 + 800c068: 461a mov r2, r3 + 800c06a: 4629 mov r1, r5 + 800c06c: 4620 mov r0, r4 + 800c06e: f001 f815 bl 800d09c + 800c072: 4603 mov r3, r0 + 800c074: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 800c07a: 89b8 ldrh r0, [r7, #12] - 800c07c: 693b ldr r3, [r7, #16] - 800c07e: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c082: 2303 movs r3, #3 - 800c084: 2237 movs r2, #55 ; 0x37 - 800c086: f000 ff7f bl 800cf88 - 800c08a: 4603 mov r3, r0 - 800c08c: 81bb strh r3, [r7, #12] + 800c076: 89b8 ldrh r0, [r7, #12] + 800c078: 693b ldr r3, [r7, #16] + 800c07a: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c07e: 2303 movs r3, #3 + 800c080: 2237 movs r2, #55 ; 0x37 + 800c082: f000 ff7f bl 800cf84 + 800c086: 4603 mov r3, r0 + 800c088: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800c08e: 2300 movs r3, #0 - 800c090: 77bb strb r3, [r7, #30] - 800c092: e00e b.n 800c0b2 + 800c08a: 2300 movs r3, #0 + 800c08c: 77bb strb r3, [r7, #30] + 800c08e: e00e b.n 800c0ae options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 800c094: 89b8 ldrh r0, [r7, #12] - 800c096: 693b ldr r3, [r7, #16] - 800c098: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c09c: 7fbb ldrb r3, [r7, #30] - 800c09e: 4a30 ldr r2, [pc, #192] ; (800c160 ) - 800c0a0: 5cd3 ldrb r3, [r2, r3] - 800c0a2: 461a mov r2, r3 - 800c0a4: f000 ffa4 bl 800cff0 - 800c0a8: 4603 mov r3, r0 - 800c0aa: 81bb strh r3, [r7, #12] + 800c090: 89b8 ldrh r0, [r7, #12] + 800c092: 693b ldr r3, [r7, #16] + 800c094: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c098: 7fbb ldrb r3, [r7, #30] + 800c09a: 4a30 ldr r2, [pc, #192] ; (800c15c ) + 800c09c: 5cd3 ldrb r3, [r2, r3] + 800c09e: 461a mov r2, r3 + 800c0a0: f000 ffa4 bl 800cfec + 800c0a4: 4603 mov r3, r0 + 800c0a6: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800c0ac: 7fbb ldrb r3, [r7, #30] - 800c0ae: 3301 adds r3, #1 - 800c0b0: 77bb strb r3, [r7, #30] - 800c0b2: 7fbb ldrb r3, [r7, #30] - 800c0b4: 2b02 cmp r3, #2 - 800c0b6: d9ed bls.n 800c094 + 800c0a8: 7fbb ldrb r3, [r7, #30] + 800c0aa: 3301 adds r3, #1 + 800c0ac: 77bb strb r3, [r7, #30] + 800c0ae: 7fbb ldrb r3, [r7, #30] + 800c0b0: 2b02 cmp r3, #2 + 800c0b2: d9ed bls.n 800c090 #if LWIP_NETIF_HOSTNAME options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif); #endif /* LWIP_NETIF_HOSTNAME */ LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REQUESTING, msg_out, DHCP_REQUEST, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 800c0b8: 89b8 ldrh r0, [r7, #12] - 800c0ba: 693b ldr r3, [r7, #16] - 800c0bc: 33f0 adds r3, #240 ; 0xf0 - 800c0be: 697a ldr r2, [r7, #20] - 800c0c0: 4619 mov r1, r3 - 800c0c2: f001 fca9 bl 800da18 + 800c0b4: 89b8 ldrh r0, [r7, #12] + 800c0b6: 693b ldr r3, [r7, #16] + 800c0b8: 33f0 adds r3, #240 ; 0xf0 + 800c0ba: 697a ldr r2, [r7, #20] + 800c0bc: 4619 mov r1, r3 + 800c0be: f001 fca9 bl 800da14 /* send broadcast to any DHCP server */ result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY); - 800c0c6: 4b27 ldr r3, [pc, #156] ; (800c164 ) - 800c0c8: 6818 ldr r0, [r3, #0] - 800c0ca: 4b27 ldr r3, [pc, #156] ; (800c168 ) - 800c0cc: 9301 str r3, [sp, #4] - 800c0ce: 687b ldr r3, [r7, #4] - 800c0d0: 9300 str r3, [sp, #0] - 800c0d2: 2343 movs r3, #67 ; 0x43 - 800c0d4: 4a25 ldr r2, [pc, #148] ; (800c16c ) - 800c0d6: 6979 ldr r1, [r7, #20] - 800c0d8: f7ff fbda bl 800b890 - 800c0dc: 4603 mov r3, r0 - 800c0de: 77fb strb r3, [r7, #31] + 800c0c2: 4b27 ldr r3, [pc, #156] ; (800c160 ) + 800c0c4: 6818 ldr r0, [r3, #0] + 800c0c6: 4b27 ldr r3, [pc, #156] ; (800c164 ) + 800c0c8: 9301 str r3, [sp, #4] + 800c0ca: 687b ldr r3, [r7, #4] + 800c0cc: 9300 str r3, [sp, #0] + 800c0ce: 2343 movs r3, #67 ; 0x43 + 800c0d0: 4a25 ldr r2, [pc, #148] ; (800c168 ) + 800c0d2: 6979 ldr r1, [r7, #20] + 800c0d4: f7ff fbda bl 800b88c + 800c0d8: 4603 mov r3, r0 + 800c0da: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 800c0e0: 6978 ldr r0, [r7, #20] - 800c0e2: f7f9 fc5b bl 800599c - 800c0e6: e001 b.n 800c0ec + 800c0dc: 6978 ldr r0, [r7, #20] + 800c0de: f7f9 fc5b bl 8005998 + 800c0e2: e001 b.n 800c0e8 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_select: REQUESTING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_select: could not allocate DHCP request\n")); result = ERR_MEM; - 800c0e8: 23ff movs r3, #255 ; 0xff - 800c0ea: 77fb strb r3, [r7, #31] + 800c0e4: 23ff movs r3, #255 ; 0xff + 800c0e6: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 800c0ec: 69bb ldr r3, [r7, #24] - 800c0ee: 799b ldrb r3, [r3, #6] - 800c0f0: 2bff cmp r3, #255 ; 0xff - 800c0f2: d005 beq.n 800c100 + 800c0e8: 69bb ldr r3, [r7, #24] + 800c0ea: 799b ldrb r3, [r3, #6] + 800c0ec: 2bff cmp r3, #255 ; 0xff + 800c0ee: d005 beq.n 800c0fc dhcp->tries++; - 800c0f4: 69bb ldr r3, [r7, #24] - 800c0f6: 799b ldrb r3, [r3, #6] - 800c0f8: 3301 adds r3, #1 - 800c0fa: b2da uxtb r2, r3 - 800c0fc: 69bb ldr r3, [r7, #24] - 800c0fe: 719a strb r2, [r3, #6] + 800c0f0: 69bb ldr r3, [r7, #24] + 800c0f2: 799b ldrb r3, [r3, #6] + 800c0f4: 3301 adds r3, #1 + 800c0f6: b2da uxtb r2, r3 + 800c0f8: 69bb ldr r3, [r7, #24] + 800c0fa: 719a strb r2, [r3, #6] } msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000); - 800c100: 69bb ldr r3, [r7, #24] - 800c102: 799b ldrb r3, [r3, #6] - 800c104: 2b05 cmp r3, #5 - 800c106: d80d bhi.n 800c124 - 800c108: 69bb ldr r3, [r7, #24] - 800c10a: 799b ldrb r3, [r3, #6] - 800c10c: 461a mov r2, r3 - 800c10e: 2301 movs r3, #1 - 800c110: 4093 lsls r3, r2 - 800c112: b29b uxth r3, r3 - 800c114: 461a mov r2, r3 - 800c116: 0152 lsls r2, r2, #5 - 800c118: 1ad2 subs r2, r2, r3 - 800c11a: 0092 lsls r2, r2, #2 - 800c11c: 4413 add r3, r2 - 800c11e: 00db lsls r3, r3, #3 - 800c120: b29b uxth r3, r3 - 800c122: e001 b.n 800c128 - 800c124: f64e 2360 movw r3, #60000 ; 0xea60 - 800c128: 81fb strh r3, [r7, #14] + 800c0fc: 69bb ldr r3, [r7, #24] + 800c0fe: 799b ldrb r3, [r3, #6] + 800c100: 2b05 cmp r3, #5 + 800c102: d80d bhi.n 800c120 + 800c104: 69bb ldr r3, [r7, #24] + 800c106: 799b ldrb r3, [r3, #6] + 800c108: 461a mov r2, r3 + 800c10a: 2301 movs r3, #1 + 800c10c: 4093 lsls r3, r2 + 800c10e: b29b uxth r3, r3 + 800c110: 461a mov r2, r3 + 800c112: 0152 lsls r2, r2, #5 + 800c114: 1ad2 subs r2, r2, r3 + 800c116: 0092 lsls r2, r2, #2 + 800c118: 4413 add r3, r2 + 800c11a: 00db lsls r3, r3, #3 + 800c11c: b29b uxth r3, r3 + 800c11e: e001 b.n 800c124 + 800c120: f64e 2360 movw r3, #60000 ; 0xea60 + 800c124: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 800c12a: 89fb ldrh r3, [r7, #14] - 800c12c: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 800c130: 4a0f ldr r2, [pc, #60] ; (800c170 ) - 800c132: fb82 1203 smull r1, r2, r2, r3 - 800c136: 1152 asrs r2, r2, #5 - 800c138: 17db asrs r3, r3, #31 - 800c13a: 1ad3 subs r3, r2, r3 - 800c13c: b29a uxth r2, r3 - 800c13e: 69bb ldr r3, [r7, #24] - 800c140: 811a strh r2, [r3, #8] + 800c126: 89fb ldrh r3, [r7, #14] + 800c128: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 800c12c: 4a0f ldr r2, [pc, #60] ; (800c16c ) + 800c12e: fb82 1203 smull r1, r2, r2, r3 + 800c132: 1152 asrs r2, r2, #5 + 800c134: 17db asrs r3, r3, #31 + 800c136: 1ad3 subs r3, r2, r3 + 800c138: b29a uxth r2, r3 + 800c13a: 69bb ldr r3, [r7, #24] + 800c13c: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 800c142: f997 301f ldrsb.w r3, [r7, #31] + 800c13e: f997 301f ldrsb.w r3, [r7, #31] } - 800c146: 4618 mov r0, r3 - 800c148: 3720 adds r7, #32 - 800c14a: 46bd mov sp, r7 - 800c14c: bdb0 pop {r4, r5, r7, pc} - 800c14e: bf00 nop - 800c150: 0801720c .word 0x0801720c - 800c154: 080172b8 .word 0x080172b8 - 800c158: 0801726c .word 0x0801726c - 800c15c: 080172d4 .word 0x080172d4 - 800c160: 2000002c .word 0x2000002c - 800c164: 20008c88 .word 0x20008c88 - 800c168: 08017ddc .word 0x08017ddc - 800c16c: 08017de0 .word 0x08017de0 - 800c170: 10624dd3 .word 0x10624dd3 + 800c142: 4618 mov r0, r3 + 800c144: 3720 adds r7, #32 + 800c146: 46bd mov sp, r7 + 800c148: bdb0 pop {r4, r5, r7, pc} + 800c14a: bf00 nop + 800c14c: 0801720c .word 0x0801720c + 800c150: 080172b8 .word 0x080172b8 + 800c154: 0801726c .word 0x0801726c + 800c158: 080172d4 .word 0x080172d4 + 800c15c: 2000002c .word 0x2000002c + 800c160: 20008c88 .word 0x20008c88 + 800c164: 08017ddc .word 0x08017ddc + 800c168: 08017de0 .word 0x08017de0 + 800c16c: 10624dd3 .word 0x10624dd3 -0800c174 : +0800c170 : * The DHCP timer that checks for lease renewal/rebind timeouts. * Must be called once a minute (see @ref DHCP_COARSE_TIMER_SECS). */ void dhcp_coarse_tmr(void) { - 800c174: b580 push {r7, lr} - 800c176: b082 sub sp, #8 - 800c178: af00 add r7, sp, #0 + 800c170: b580 push {r7, lr} + 800c172: b082 sub sp, #8 + 800c174: af00 add r7, sp, #0 struct netif *netif; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_coarse_tmr()\n")); /* iterate through all network interfaces */ NETIF_FOREACH(netif) { - 800c17a: 4b27 ldr r3, [pc, #156] ; (800c218 ) - 800c17c: 681b ldr r3, [r3, #0] - 800c17e: 607b str r3, [r7, #4] - 800c180: e042 b.n 800c208 + 800c176: 4b27 ldr r3, [pc, #156] ; (800c214 ) + 800c178: 681b ldr r3, [r3, #0] + 800c17a: 607b str r3, [r7, #4] + 800c17c: e042 b.n 800c204 /* only act on DHCP configured interfaces */ struct dhcp *dhcp = netif_dhcp_data(netif); - 800c182: 687b ldr r3, [r7, #4] - 800c184: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c186: 603b str r3, [r7, #0] + 800c17e: 687b ldr r3, [r7, #4] + 800c180: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c182: 603b str r3, [r7, #0] if ((dhcp != NULL) && (dhcp->state != DHCP_STATE_OFF)) { - 800c188: 683b ldr r3, [r7, #0] - 800c18a: 2b00 cmp r3, #0 - 800c18c: d039 beq.n 800c202 - 800c18e: 683b ldr r3, [r7, #0] - 800c190: 795b ldrb r3, [r3, #5] - 800c192: 2b00 cmp r3, #0 - 800c194: d035 beq.n 800c202 + 800c184: 683b ldr r3, [r7, #0] + 800c186: 2b00 cmp r3, #0 + 800c188: d039 beq.n 800c1fe + 800c18a: 683b ldr r3, [r7, #0] + 800c18c: 795b ldrb r3, [r3, #5] + 800c18e: 2b00 cmp r3, #0 + 800c190: d035 beq.n 800c1fe /* compare lease time to expire timeout */ if (dhcp->t0_timeout && (++dhcp->lease_used == dhcp->t0_timeout)) { - 800c196: 683b ldr r3, [r7, #0] - 800c198: 8a9b ldrh r3, [r3, #20] - 800c19a: 2b00 cmp r3, #0 - 800c19c: d012 beq.n 800c1c4 - 800c19e: 683b ldr r3, [r7, #0] - 800c1a0: 8a5b ldrh r3, [r3, #18] - 800c1a2: 3301 adds r3, #1 - 800c1a4: b29a uxth r2, r3 + 800c192: 683b ldr r3, [r7, #0] + 800c194: 8a9b ldrh r3, [r3, #20] + 800c196: 2b00 cmp r3, #0 + 800c198: d012 beq.n 800c1c0 + 800c19a: 683b ldr r3, [r7, #0] + 800c19c: 8a5b ldrh r3, [r3, #18] + 800c19e: 3301 adds r3, #1 + 800c1a0: b29a uxth r2, r3 + 800c1a2: 683b ldr r3, [r7, #0] + 800c1a4: 825a strh r2, [r3, #18] 800c1a6: 683b ldr r3, [r7, #0] - 800c1a8: 825a strh r2, [r3, #18] + 800c1a8: 8a5a ldrh r2, [r3, #18] 800c1aa: 683b ldr r3, [r7, #0] - 800c1ac: 8a5a ldrh r2, [r3, #18] - 800c1ae: 683b ldr r3, [r7, #0] - 800c1b0: 8a9b ldrh r3, [r3, #20] - 800c1b2: 429a cmp r2, r3 - 800c1b4: d106 bne.n 800c1c4 + 800c1ac: 8a9b ldrh r3, [r3, #20] + 800c1ae: 429a cmp r2, r3 + 800c1b0: d106 bne.n 800c1c0 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t0 timeout\n")); /* this clients' lease time has expired */ dhcp_release_and_stop(netif); - 800c1b6: 6878 ldr r0, [r7, #4] - 800c1b8: f000 fe32 bl 800ce20 + 800c1b2: 6878 ldr r0, [r7, #4] + 800c1b4: f000 fe32 bl 800ce1c dhcp_start(netif); - 800c1bc: 6878 ldr r0, [r7, #4] - 800c1be: f000 f969 bl 800c494 - 800c1c2: e01e b.n 800c202 + 800c1b8: 6878 ldr r0, [r7, #4] + 800c1ba: f000 f969 bl 800c490 + 800c1be: e01e b.n 800c1fe /* timer is active (non zero), and triggers (zeroes) now? */ } else if (dhcp->t2_rebind_time && (dhcp->t2_rebind_time-- == 1)) { - 800c1c4: 683b ldr r3, [r7, #0] - 800c1c6: 8a1b ldrh r3, [r3, #16] - 800c1c8: 2b00 cmp r3, #0 - 800c1ca: d00b beq.n 800c1e4 - 800c1cc: 683b ldr r3, [r7, #0] - 800c1ce: 8a1b ldrh r3, [r3, #16] - 800c1d0: 1e5a subs r2, r3, #1 - 800c1d2: b291 uxth r1, r2 - 800c1d4: 683a ldr r2, [r7, #0] - 800c1d6: 8211 strh r1, [r2, #16] - 800c1d8: 2b01 cmp r3, #1 - 800c1da: d103 bne.n 800c1e4 + 800c1c0: 683b ldr r3, [r7, #0] + 800c1c2: 8a1b ldrh r3, [r3, #16] + 800c1c4: 2b00 cmp r3, #0 + 800c1c6: d00b beq.n 800c1e0 + 800c1c8: 683b ldr r3, [r7, #0] + 800c1ca: 8a1b ldrh r3, [r3, #16] + 800c1cc: 1e5a subs r2, r3, #1 + 800c1ce: b291 uxth r1, r2 + 800c1d0: 683a ldr r2, [r7, #0] + 800c1d2: 8211 strh r1, [r2, #16] + 800c1d4: 2b01 cmp r3, #1 + 800c1d6: d103 bne.n 800c1e0 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t2 timeout\n")); /* this clients' rebind timeout triggered */ dhcp_t2_timeout(netif); - 800c1dc: 6878 ldr r0, [r7, #4] - 800c1de: f000 f8c6 bl 800c36e - 800c1e2: e00e b.n 800c202 + 800c1d8: 6878 ldr r0, [r7, #4] + 800c1da: f000 f8c6 bl 800c36a + 800c1de: e00e b.n 800c1fe /* timer is active (non zero), and triggers (zeroes) now */ } else if (dhcp->t1_renew_time && (dhcp->t1_renew_time-- == 1)) { - 800c1e4: 683b ldr r3, [r7, #0] - 800c1e6: 89db ldrh r3, [r3, #14] - 800c1e8: 2b00 cmp r3, #0 - 800c1ea: d00a beq.n 800c202 - 800c1ec: 683b ldr r3, [r7, #0] - 800c1ee: 89db ldrh r3, [r3, #14] - 800c1f0: 1e5a subs r2, r3, #1 - 800c1f2: b291 uxth r1, r2 - 800c1f4: 683a ldr r2, [r7, #0] - 800c1f6: 81d1 strh r1, [r2, #14] - 800c1f8: 2b01 cmp r3, #1 - 800c1fa: d102 bne.n 800c202 + 800c1e0: 683b ldr r3, [r7, #0] + 800c1e2: 89db ldrh r3, [r3, #14] + 800c1e4: 2b00 cmp r3, #0 + 800c1e6: d00a beq.n 800c1fe + 800c1e8: 683b ldr r3, [r7, #0] + 800c1ea: 89db ldrh r3, [r3, #14] + 800c1ec: 1e5a subs r2, r3, #1 + 800c1ee: b291 uxth r1, r2 + 800c1f0: 683a ldr r2, [r7, #0] + 800c1f2: 81d1 strh r1, [r2, #14] + 800c1f4: 2b01 cmp r3, #1 + 800c1f6: d102 bne.n 800c1fe LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t1 timeout\n")); /* this clients' renewal timeout triggered */ dhcp_t1_timeout(netif); - 800c1fc: 6878 ldr r0, [r7, #4] - 800c1fe: f000 f888 bl 800c312 + 800c1f8: 6878 ldr r0, [r7, #4] + 800c1fa: f000 f888 bl 800c30e NETIF_FOREACH(netif) { - 800c202: 687b ldr r3, [r7, #4] - 800c204: 681b ldr r3, [r3, #0] - 800c206: 607b str r3, [r7, #4] - 800c208: 687b ldr r3, [r7, #4] - 800c20a: 2b00 cmp r3, #0 - 800c20c: d1b9 bne.n 800c182 + 800c1fe: 687b ldr r3, [r7, #4] + 800c200: 681b ldr r3, [r3, #0] + 800c202: 607b str r3, [r7, #4] + 800c204: 687b ldr r3, [r7, #4] + 800c206: 2b00 cmp r3, #0 + 800c208: d1b9 bne.n 800c17e } } } } - 800c20e: bf00 nop - 800c210: bf00 nop - 800c212: 3708 adds r7, #8 - 800c214: 46bd mov sp, r7 - 800c216: bd80 pop {r7, pc} - 800c218: 20008bf4 .word 0x20008bf4 + 800c20a: bf00 nop + 800c20c: bf00 nop + 800c20e: 3708 adds r7, #8 + 800c210: 46bd mov sp, r7 + 800c212: bd80 pop {r7, pc} + 800c214: 20008bf4 .word 0x20008bf4 -0800c21c : +0800c218 : * A DHCP server is expected to respond within a short period of time. * This timer checks whether an outstanding DHCP request is timed out. */ void dhcp_fine_tmr(void) { - 800c21c: b580 push {r7, lr} - 800c21e: b082 sub sp, #8 - 800c220: af00 add r7, sp, #0 + 800c218: b580 push {r7, lr} + 800c21a: b082 sub sp, #8 + 800c21c: af00 add r7, sp, #0 struct netif *netif; /* loop through netif's */ NETIF_FOREACH(netif) { - 800c222: 4b16 ldr r3, [pc, #88] ; (800c27c ) - 800c224: 681b ldr r3, [r3, #0] - 800c226: 607b str r3, [r7, #4] - 800c228: e020 b.n 800c26c + 800c21e: 4b16 ldr r3, [pc, #88] ; (800c278 ) + 800c220: 681b ldr r3, [r3, #0] + 800c222: 607b str r3, [r7, #4] + 800c224: e020 b.n 800c268 struct dhcp *dhcp = netif_dhcp_data(netif); - 800c22a: 687b ldr r3, [r7, #4] - 800c22c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c22e: 603b str r3, [r7, #0] + 800c226: 687b ldr r3, [r7, #4] + 800c228: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c22a: 603b str r3, [r7, #0] /* only act on DHCP configured interfaces */ if (dhcp != NULL) { - 800c230: 683b ldr r3, [r7, #0] - 800c232: 2b00 cmp r3, #0 - 800c234: d017 beq.n 800c266 + 800c22c: 683b ldr r3, [r7, #0] + 800c22e: 2b00 cmp r3, #0 + 800c230: d017 beq.n 800c262 /* timer is active (non zero), and is about to trigger now */ if (dhcp->request_timeout > 1) { - 800c236: 683b ldr r3, [r7, #0] - 800c238: 891b ldrh r3, [r3, #8] - 800c23a: 2b01 cmp r3, #1 - 800c23c: d906 bls.n 800c24c + 800c232: 683b ldr r3, [r7, #0] + 800c234: 891b ldrh r3, [r3, #8] + 800c236: 2b01 cmp r3, #1 + 800c238: d906 bls.n 800c248 dhcp->request_timeout--; - 800c23e: 683b ldr r3, [r7, #0] - 800c240: 891b ldrh r3, [r3, #8] - 800c242: 3b01 subs r3, #1 - 800c244: b29a uxth r2, r3 - 800c246: 683b ldr r3, [r7, #0] - 800c248: 811a strh r2, [r3, #8] - 800c24a: e00c b.n 800c266 + 800c23a: 683b ldr r3, [r7, #0] + 800c23c: 891b ldrh r3, [r3, #8] + 800c23e: 3b01 subs r3, #1 + 800c240: b29a uxth r2, r3 + 800c242: 683b ldr r3, [r7, #0] + 800c244: 811a strh r2, [r3, #8] + 800c246: e00c b.n 800c262 } else if (dhcp->request_timeout == 1) { - 800c24c: 683b ldr r3, [r7, #0] - 800c24e: 891b ldrh r3, [r3, #8] - 800c250: 2b01 cmp r3, #1 - 800c252: d108 bne.n 800c266 + 800c248: 683b ldr r3, [r7, #0] + 800c24a: 891b ldrh r3, [r3, #8] + 800c24c: 2b01 cmp r3, #1 + 800c24e: d108 bne.n 800c262 dhcp->request_timeout--; - 800c254: 683b ldr r3, [r7, #0] - 800c256: 891b ldrh r3, [r3, #8] - 800c258: 3b01 subs r3, #1 - 800c25a: b29a uxth r2, r3 - 800c25c: 683b ldr r3, [r7, #0] - 800c25e: 811a strh r2, [r3, #8] + 800c250: 683b ldr r3, [r7, #0] + 800c252: 891b ldrh r3, [r3, #8] + 800c254: 3b01 subs r3, #1 + 800c256: b29a uxth r2, r3 + 800c258: 683b ldr r3, [r7, #0] + 800c25a: 811a strh r2, [r3, #8] /* { dhcp->request_timeout == 0 } */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_fine_tmr(): request timeout\n")); /* this client's request timeout triggered */ dhcp_timeout(netif); - 800c260: 6878 ldr r0, [r7, #4] - 800c262: f000 f80d bl 800c280 + 800c25c: 6878 ldr r0, [r7, #4] + 800c25e: f000 f80d bl 800c27c NETIF_FOREACH(netif) { - 800c266: 687b ldr r3, [r7, #4] - 800c268: 681b ldr r3, [r3, #0] - 800c26a: 607b str r3, [r7, #4] - 800c26c: 687b ldr r3, [r7, #4] - 800c26e: 2b00 cmp r3, #0 - 800c270: d1db bne.n 800c22a + 800c262: 687b ldr r3, [r7, #4] + 800c264: 681b ldr r3, [r3, #0] + 800c266: 607b str r3, [r7, #4] + 800c268: 687b ldr r3, [r7, #4] + 800c26a: 2b00 cmp r3, #0 + 800c26c: d1db bne.n 800c226 } } } } - 800c272: bf00 nop - 800c274: bf00 nop - 800c276: 3708 adds r7, #8 - 800c278: 46bd mov sp, r7 - 800c27a: bd80 pop {r7, pc} - 800c27c: 20008bf4 .word 0x20008bf4 + 800c26e: bf00 nop + 800c270: bf00 nop + 800c272: 3708 adds r7, #8 + 800c274: 46bd mov sp, r7 + 800c276: bd80 pop {r7, pc} + 800c278: 20008bf4 .word 0x20008bf4 -0800c280 : +0800c27c : * * @param netif the netif under DHCP control */ static void dhcp_timeout(struct netif *netif) { - 800c280: b580 push {r7, lr} - 800c282: b084 sub sp, #16 - 800c284: af00 add r7, sp, #0 - 800c286: 6078 str r0, [r7, #4] + 800c27c: b580 push {r7, lr} + 800c27e: b084 sub sp, #16 + 800c280: af00 add r7, sp, #0 + 800c282: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800c288: 687b ldr r3, [r7, #4] - 800c28a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c28c: 60fb str r3, [r7, #12] + 800c284: 687b ldr r3, [r7, #4] + 800c286: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c288: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout()\n")); /* back-off period has passed, or server selection timed out */ if ((dhcp->state == DHCP_STATE_BACKING_OFF) || (dhcp->state == DHCP_STATE_SELECTING)) { - 800c28e: 68fb ldr r3, [r7, #12] - 800c290: 795b ldrb r3, [r3, #5] - 800c292: 2b0c cmp r3, #12 - 800c294: d003 beq.n 800c29e - 800c296: 68fb ldr r3, [r7, #12] - 800c298: 795b ldrb r3, [r3, #5] - 800c29a: 2b06 cmp r3, #6 - 800c29c: d103 bne.n 800c2a6 + 800c28a: 68fb ldr r3, [r7, #12] + 800c28c: 795b ldrb r3, [r3, #5] + 800c28e: 2b0c cmp r3, #12 + 800c290: d003 beq.n 800c29a + 800c292: 68fb ldr r3, [r7, #12] + 800c294: 795b ldrb r3, [r3, #5] + 800c296: 2b06 cmp r3, #6 + 800c298: d103 bne.n 800c2a2 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout(): restarting discovery\n")); dhcp_discover(netif); - 800c29e: 6878 ldr r0, [r7, #4] - 800c2a0: f000 fa54 bl 800c74c + 800c29a: 6878 ldr r0, [r7, #4] + 800c29c: f000 fa54 bl 800c748 dhcp_reboot(netif); } else { dhcp_discover(netif); } } } - 800c2a4: e031 b.n 800c30a + 800c2a0: e031 b.n 800c306 } else if (dhcp->state == DHCP_STATE_REQUESTING) { - 800c2a6: 68fb ldr r3, [r7, #12] - 800c2a8: 795b ldrb r3, [r3, #5] - 800c2aa: 2b01 cmp r3, #1 - 800c2ac: d10e bne.n 800c2cc + 800c2a2: 68fb ldr r3, [r7, #12] + 800c2a4: 795b ldrb r3, [r3, #5] + 800c2a6: 2b01 cmp r3, #1 + 800c2a8: d10e bne.n 800c2c8 if (dhcp->tries <= 5) { - 800c2ae: 68fb ldr r3, [r7, #12] - 800c2b0: 799b ldrb r3, [r3, #6] - 800c2b2: 2b05 cmp r3, #5 - 800c2b4: d803 bhi.n 800c2be + 800c2aa: 68fb ldr r3, [r7, #12] + 800c2ac: 799b ldrb r3, [r3, #6] + 800c2ae: 2b05 cmp r3, #5 + 800c2b0: d803 bhi.n 800c2ba dhcp_select(netif); - 800c2b6: 6878 ldr r0, [r7, #4] - 800c2b8: f7ff fe60 bl 800bf7c + 800c2b2: 6878 ldr r0, [r7, #4] + 800c2b4: f7ff fe60 bl 800bf78 } - 800c2bc: e025 b.n 800c30a + 800c2b8: e025 b.n 800c306 dhcp_release_and_stop(netif); - 800c2be: 6878 ldr r0, [r7, #4] - 800c2c0: f000 fdae bl 800ce20 + 800c2ba: 6878 ldr r0, [r7, #4] + 800c2bc: f000 fdae bl 800ce1c dhcp_start(netif); - 800c2c4: 6878 ldr r0, [r7, #4] - 800c2c6: f000 f8e5 bl 800c494 + 800c2c0: 6878 ldr r0, [r7, #4] + 800c2c2: f000 f8e5 bl 800c490 } - 800c2ca: e01e b.n 800c30a + 800c2c6: e01e b.n 800c306 } else if (dhcp->state == DHCP_STATE_CHECKING) { - 800c2cc: 68fb ldr r3, [r7, #12] - 800c2ce: 795b ldrb r3, [r3, #5] - 800c2d0: 2b08 cmp r3, #8 - 800c2d2: d10b bne.n 800c2ec + 800c2c8: 68fb ldr r3, [r7, #12] + 800c2ca: 795b ldrb r3, [r3, #5] + 800c2cc: 2b08 cmp r3, #8 + 800c2ce: d10b bne.n 800c2e8 if (dhcp->tries <= 1) { - 800c2d4: 68fb ldr r3, [r7, #12] - 800c2d6: 799b ldrb r3, [r3, #6] - 800c2d8: 2b01 cmp r3, #1 - 800c2da: d803 bhi.n 800c2e4 + 800c2d0: 68fb ldr r3, [r7, #12] + 800c2d2: 799b ldrb r3, [r3, #6] + 800c2d4: 2b01 cmp r3, #1 + 800c2d6: d803 bhi.n 800c2e0 dhcp_check(netif); - 800c2dc: 6878 ldr r0, [r7, #4] - 800c2de: f7ff fdf3 bl 800bec8 + 800c2d8: 6878 ldr r0, [r7, #4] + 800c2da: f7ff fdf3 bl 800bec4 } - 800c2e2: e012 b.n 800c30a + 800c2de: e012 b.n 800c306 dhcp_bind(netif); - 800c2e4: 6878 ldr r0, [r7, #4] - 800c2e6: f000 fad3 bl 800c890 + 800c2e0: 6878 ldr r0, [r7, #4] + 800c2e2: f000 fad3 bl 800c88c } - 800c2ea: e00e b.n 800c30a + 800c2e6: e00e b.n 800c306 } else if (dhcp->state == DHCP_STATE_REBOOTING) { - 800c2ec: 68fb ldr r3, [r7, #12] - 800c2ee: 795b ldrb r3, [r3, #5] - 800c2f0: 2b03 cmp r3, #3 - 800c2f2: d10a bne.n 800c30a + 800c2e8: 68fb ldr r3, [r7, #12] + 800c2ea: 795b ldrb r3, [r3, #5] + 800c2ec: 2b03 cmp r3, #3 + 800c2ee: d10a bne.n 800c306 if (dhcp->tries < REBOOT_TRIES) { - 800c2f4: 68fb ldr r3, [r7, #12] - 800c2f6: 799b ldrb r3, [r3, #6] - 800c2f8: 2b01 cmp r3, #1 - 800c2fa: d803 bhi.n 800c304 + 800c2f0: 68fb ldr r3, [r7, #12] + 800c2f2: 799b ldrb r3, [r3, #6] + 800c2f4: 2b01 cmp r3, #1 + 800c2f6: d803 bhi.n 800c300 dhcp_reboot(netif); - 800c2fc: 6878 ldr r0, [r7, #4] - 800c2fe: f000 fcd9 bl 800ccb4 + 800c2f8: 6878 ldr r0, [r7, #4] + 800c2fa: f000 fcd9 bl 800ccb0 } - 800c302: e002 b.n 800c30a + 800c2fe: e002 b.n 800c306 dhcp_discover(netif); - 800c304: 6878 ldr r0, [r7, #4] - 800c306: f000 fa21 bl 800c74c + 800c300: 6878 ldr r0, [r7, #4] + 800c302: f000 fa21 bl 800c748 } - 800c30a: bf00 nop - 800c30c: 3710 adds r7, #16 - 800c30e: 46bd mov sp, r7 - 800c310: bd80 pop {r7, pc} + 800c306: bf00 nop + 800c308: 3710 adds r7, #16 + 800c30a: 46bd mov sp, r7 + 800c30c: bd80 pop {r7, pc} -0800c312 : +0800c30e : * * @param netif the netif under DHCP control */ static void dhcp_t1_timeout(struct netif *netif) { - 800c312: b580 push {r7, lr} - 800c314: b084 sub sp, #16 - 800c316: af00 add r7, sp, #0 - 800c318: 6078 str r0, [r7, #4] + 800c30e: b580 push {r7, lr} + 800c310: b084 sub sp, #16 + 800c312: af00 add r7, sp, #0 + 800c314: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800c31a: 687b ldr r3, [r7, #4] - 800c31c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c31e: 60fb str r3, [r7, #12] + 800c316: 687b ldr r3, [r7, #4] + 800c318: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c31a: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_t1_timeout()\n")); if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - 800c320: 68fb ldr r3, [r7, #12] - 800c322: 795b ldrb r3, [r3, #5] - 800c324: 2b01 cmp r3, #1 - 800c326: d007 beq.n 800c338 - 800c328: 68fb ldr r3, [r7, #12] - 800c32a: 795b ldrb r3, [r3, #5] - 800c32c: 2b0a cmp r3, #10 - 800c32e: d003 beq.n 800c338 + 800c31c: 68fb ldr r3, [r7, #12] + 800c31e: 795b ldrb r3, [r3, #5] + 800c320: 2b01 cmp r3, #1 + 800c322: d007 beq.n 800c334 + 800c324: 68fb ldr r3, [r7, #12] + 800c326: 795b ldrb r3, [r3, #5] + 800c328: 2b0a cmp r3, #10 + 800c32a: d003 beq.n 800c334 (dhcp->state == DHCP_STATE_RENEWING)) { - 800c330: 68fb ldr r3, [r7, #12] - 800c332: 795b ldrb r3, [r3, #5] + 800c32c: 68fb ldr r3, [r7, #12] + 800c32e: 795b ldrb r3, [r3, #5] if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - 800c334: 2b05 cmp r3, #5 - 800c336: d116 bne.n 800c366 + 800c330: 2b05 cmp r3, #5 + 800c332: d116 bne.n 800c362 * eventually time-out if renew tries fail. */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t1_timeout(): must renew\n")); /* This slightly different to RFC2131: DHCPREQUEST will be sent from state DHCP_STATE_RENEWING, not DHCP_STATE_BOUND */ dhcp_renew(netif); - 800c338: 6878 ldr r0, [r7, #4] - 800c33a: f000 fb83 bl 800ca44 + 800c334: 6878 ldr r0, [r7, #4] + 800c336: f000 fb83 bl 800ca40 /* Calculate next timeout */ if (((dhcp->t2_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) { - 800c33e: 68fb ldr r3, [r7, #12] - 800c340: 899b ldrh r3, [r3, #12] - 800c342: 461a mov r2, r3 - 800c344: 68fb ldr r3, [r7, #12] - 800c346: 8a5b ldrh r3, [r3, #18] - 800c348: 1ad3 subs r3, r2, r3 - 800c34a: 2b01 cmp r3, #1 - 800c34c: dd0b ble.n 800c366 + 800c33a: 68fb ldr r3, [r7, #12] + 800c33c: 899b ldrh r3, [r3, #12] + 800c33e: 461a mov r2, r3 + 800c340: 68fb ldr r3, [r7, #12] + 800c342: 8a5b ldrh r3, [r3, #18] + 800c344: 1ad3 subs r3, r2, r3 + 800c346: 2b01 cmp r3, #1 + 800c348: dd0b ble.n 800c362 dhcp->t1_renew_time = (u16_t)((dhcp->t2_timeout - dhcp->lease_used) / 2); - 800c34e: 68fb ldr r3, [r7, #12] - 800c350: 899b ldrh r3, [r3, #12] - 800c352: 461a mov r2, r3 - 800c354: 68fb ldr r3, [r7, #12] - 800c356: 8a5b ldrh r3, [r3, #18] - 800c358: 1ad3 subs r3, r2, r3 - 800c35a: 0fda lsrs r2, r3, #31 - 800c35c: 4413 add r3, r2 - 800c35e: 105b asrs r3, r3, #1 - 800c360: b29a uxth r2, r3 - 800c362: 68fb ldr r3, [r7, #12] - 800c364: 81da strh r2, [r3, #14] + 800c34a: 68fb ldr r3, [r7, #12] + 800c34c: 899b ldrh r3, [r3, #12] + 800c34e: 461a mov r2, r3 + 800c350: 68fb ldr r3, [r7, #12] + 800c352: 8a5b ldrh r3, [r3, #18] + 800c354: 1ad3 subs r3, r2, r3 + 800c356: 0fda lsrs r2, r3, #31 + 800c358: 4413 add r3, r2 + 800c35a: 105b asrs r3, r3, #1 + 800c35c: b29a uxth r2, r3 + 800c35e: 68fb ldr r3, [r7, #12] + 800c360: 81da strh r2, [r3, #14] } } } - 800c366: bf00 nop - 800c368: 3710 adds r7, #16 - 800c36a: 46bd mov sp, r7 - 800c36c: bd80 pop {r7, pc} + 800c362: bf00 nop + 800c364: 3710 adds r7, #16 + 800c366: 46bd mov sp, r7 + 800c368: bd80 pop {r7, pc} -0800c36e : +0800c36a : * * @param netif the netif under DHCP control */ static void dhcp_t2_timeout(struct netif *netif) { - 800c36e: b580 push {r7, lr} - 800c370: b084 sub sp, #16 - 800c372: af00 add r7, sp, #0 - 800c374: 6078 str r0, [r7, #4] + 800c36a: b580 push {r7, lr} + 800c36c: b084 sub sp, #16 + 800c36e: af00 add r7, sp, #0 + 800c370: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800c376: 687b ldr r3, [r7, #4] - 800c378: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c37a: 60fb str r3, [r7, #12] + 800c372: 687b ldr r3, [r7, #4] + 800c374: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c376: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t2_timeout()\n")); if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - 800c37c: 68fb ldr r3, [r7, #12] - 800c37e: 795b ldrb r3, [r3, #5] - 800c380: 2b01 cmp r3, #1 - 800c382: d00b beq.n 800c39c - 800c384: 68fb ldr r3, [r7, #12] - 800c386: 795b ldrb r3, [r3, #5] - 800c388: 2b0a cmp r3, #10 - 800c38a: d007 beq.n 800c39c + 800c378: 68fb ldr r3, [r7, #12] + 800c37a: 795b ldrb r3, [r3, #5] + 800c37c: 2b01 cmp r3, #1 + 800c37e: d00b beq.n 800c398 + 800c380: 68fb ldr r3, [r7, #12] + 800c382: 795b ldrb r3, [r3, #5] + 800c384: 2b0a cmp r3, #10 + 800c386: d007 beq.n 800c398 (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) { - 800c38c: 68fb ldr r3, [r7, #12] - 800c38e: 795b ldrb r3, [r3, #5] + 800c388: 68fb ldr r3, [r7, #12] + 800c38a: 795b ldrb r3, [r3, #5] if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - 800c390: 2b05 cmp r3, #5 - 800c392: d003 beq.n 800c39c + 800c38c: 2b05 cmp r3, #5 + 800c38e: d003 beq.n 800c398 (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) { - 800c394: 68fb ldr r3, [r7, #12] - 800c396: 795b ldrb r3, [r3, #5] - 800c398: 2b04 cmp r3, #4 - 800c39a: d116 bne.n 800c3ca + 800c390: 68fb ldr r3, [r7, #12] + 800c392: 795b ldrb r3, [r3, #5] + 800c394: 2b04 cmp r3, #4 + 800c396: d116 bne.n 800c3c6 /* just retry to rebind */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t2_timeout(): must rebind\n")); /* This slightly different to RFC2131: DHCPREQUEST will be sent from state DHCP_STATE_REBINDING, not DHCP_STATE_BOUND */ dhcp_rebind(netif); - 800c39c: 6878 ldr r0, [r7, #4] - 800c39e: f000 fbed bl 800cb7c + 800c398: 6878 ldr r0, [r7, #4] + 800c39a: f000 fbed bl 800cb78 /* Calculate next timeout */ if (((dhcp->t0_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) { - 800c3a2: 68fb ldr r3, [r7, #12] - 800c3a4: 8a9b ldrh r3, [r3, #20] - 800c3a6: 461a mov r2, r3 - 800c3a8: 68fb ldr r3, [r7, #12] - 800c3aa: 8a5b ldrh r3, [r3, #18] - 800c3ac: 1ad3 subs r3, r2, r3 - 800c3ae: 2b01 cmp r3, #1 - 800c3b0: dd0b ble.n 800c3ca + 800c39e: 68fb ldr r3, [r7, #12] + 800c3a0: 8a9b ldrh r3, [r3, #20] + 800c3a2: 461a mov r2, r3 + 800c3a4: 68fb ldr r3, [r7, #12] + 800c3a6: 8a5b ldrh r3, [r3, #18] + 800c3a8: 1ad3 subs r3, r2, r3 + 800c3aa: 2b01 cmp r3, #1 + 800c3ac: dd0b ble.n 800c3c6 dhcp->t2_rebind_time = (u16_t)((dhcp->t0_timeout - dhcp->lease_used) / 2); - 800c3b2: 68fb ldr r3, [r7, #12] - 800c3b4: 8a9b ldrh r3, [r3, #20] - 800c3b6: 461a mov r2, r3 - 800c3b8: 68fb ldr r3, [r7, #12] - 800c3ba: 8a5b ldrh r3, [r3, #18] - 800c3bc: 1ad3 subs r3, r2, r3 - 800c3be: 0fda lsrs r2, r3, #31 - 800c3c0: 4413 add r3, r2 - 800c3c2: 105b asrs r3, r3, #1 - 800c3c4: b29a uxth r2, r3 - 800c3c6: 68fb ldr r3, [r7, #12] - 800c3c8: 821a strh r2, [r3, #16] + 800c3ae: 68fb ldr r3, [r7, #12] + 800c3b0: 8a9b ldrh r3, [r3, #20] + 800c3b2: 461a mov r2, r3 + 800c3b4: 68fb ldr r3, [r7, #12] + 800c3b6: 8a5b ldrh r3, [r3, #18] + 800c3b8: 1ad3 subs r3, r2, r3 + 800c3ba: 0fda lsrs r2, r3, #31 + 800c3bc: 4413 add r3, r2 + 800c3be: 105b asrs r3, r3, #1 + 800c3c0: b29a uxth r2, r3 + 800c3c2: 68fb ldr r3, [r7, #12] + 800c3c4: 821a strh r2, [r3, #16] } } } - 800c3ca: bf00 nop - 800c3cc: 3710 adds r7, #16 - 800c3ce: 46bd mov sp, r7 - 800c3d0: bd80 pop {r7, pc} + 800c3c6: bf00 nop + 800c3c8: 3710 adds r7, #16 + 800c3ca: 46bd mov sp, r7 + 800c3cc: bd80 pop {r7, pc} ... -0800c3d4 : +0800c3d0 : * * @param netif the netif under DHCP control */ static void dhcp_handle_ack(struct netif *netif, struct dhcp_msg *msg_in) { - 800c3d4: b580 push {r7, lr} - 800c3d6: b084 sub sp, #16 - 800c3d8: af00 add r7, sp, #0 - 800c3da: 6078 str r0, [r7, #4] - 800c3dc: 6039 str r1, [r7, #0] + 800c3d0: b580 push {r7, lr} + 800c3d2: b084 sub sp, #16 + 800c3d4: af00 add r7, sp, #0 + 800c3d6: 6078 str r0, [r7, #4] + 800c3d8: 6039 str r1, [r7, #0] struct dhcp *dhcp = netif_dhcp_data(netif); - 800c3de: 687b ldr r3, [r7, #4] - 800c3e0: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c3e2: 60fb str r3, [r7, #12] + 800c3da: 687b ldr r3, [r7, #4] + 800c3dc: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c3de: 60fb str r3, [r7, #12] #if LWIP_DHCP_GET_NTP_SRV ip4_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS]; #endif /* clear options we might not get from the ACK */ ip4_addr_set_zero(&dhcp->offered_sn_mask); - 800c3e4: 68fb ldr r3, [r7, #12] - 800c3e6: 2200 movs r2, #0 - 800c3e8: 621a str r2, [r3, #32] + 800c3e0: 68fb ldr r3, [r7, #12] + 800c3e2: 2200 movs r2, #0 + 800c3e4: 621a str r2, [r3, #32] ip4_addr_set_zero(&dhcp->offered_gw_addr); - 800c3ea: 68fb ldr r3, [r7, #12] - 800c3ec: 2200 movs r2, #0 - 800c3ee: 625a str r2, [r3, #36] ; 0x24 + 800c3e6: 68fb ldr r3, [r7, #12] + 800c3e8: 2200 movs r2, #0 + 800c3ea: 625a str r2, [r3, #36] ; 0x24 #if LWIP_DHCP_BOOTP_FILE ip4_addr_set_zero(&dhcp->offered_si_addr); #endif /* LWIP_DHCP_BOOTP_FILE */ /* lease time given? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_LEASE_TIME)) { - 800c3f0: 4b26 ldr r3, [pc, #152] ; (800c48c ) - 800c3f2: 78db ldrb r3, [r3, #3] - 800c3f4: 2b00 cmp r3, #0 - 800c3f6: d003 beq.n 800c400 + 800c3ec: 4b26 ldr r3, [pc, #152] ; (800c488 ) + 800c3ee: 78db ldrb r3, [r3, #3] + 800c3f0: 2b00 cmp r3, #0 + 800c3f2: d003 beq.n 800c3fc /* remember offered lease time */ dhcp->offered_t0_lease = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_LEASE_TIME); - 800c3f8: 4b25 ldr r3, [pc, #148] ; (800c490 ) - 800c3fa: 68da ldr r2, [r3, #12] - 800c3fc: 68fb ldr r3, [r7, #12] - 800c3fe: 629a str r2, [r3, #40] ; 0x28 + 800c3f4: 4b25 ldr r3, [pc, #148] ; (800c48c ) + 800c3f6: 68da ldr r2, [r3, #12] + 800c3f8: 68fb ldr r3, [r7, #12] + 800c3fa: 629a str r2, [r3, #40] ; 0x28 } /* renewal period given? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T1)) { - 800c400: 4b22 ldr r3, [pc, #136] ; (800c48c ) - 800c402: 791b ldrb r3, [r3, #4] - 800c404: 2b00 cmp r3, #0 - 800c406: d004 beq.n 800c412 + 800c3fc: 4b22 ldr r3, [pc, #136] ; (800c488 ) + 800c3fe: 791b ldrb r3, [r3, #4] + 800c400: 2b00 cmp r3, #0 + 800c402: d004 beq.n 800c40e /* remember given renewal period */ dhcp->offered_t1_renew = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T1); - 800c408: 4b21 ldr r3, [pc, #132] ; (800c490 ) - 800c40a: 691a ldr r2, [r3, #16] - 800c40c: 68fb ldr r3, [r7, #12] - 800c40e: 62da str r2, [r3, #44] ; 0x2c - 800c410: e004 b.n 800c41c + 800c404: 4b21 ldr r3, [pc, #132] ; (800c48c ) + 800c406: 691a ldr r2, [r3, #16] + 800c408: 68fb ldr r3, [r7, #12] + 800c40a: 62da str r2, [r3, #44] ; 0x2c + 800c40c: e004 b.n 800c418 } else { /* calculate safe periods for renewal */ dhcp->offered_t1_renew = dhcp->offered_t0_lease / 2; - 800c412: 68fb ldr r3, [r7, #12] - 800c414: 6a9b ldr r3, [r3, #40] ; 0x28 - 800c416: 085a lsrs r2, r3, #1 - 800c418: 68fb ldr r3, [r7, #12] - 800c41a: 62da str r2, [r3, #44] ; 0x2c + 800c40e: 68fb ldr r3, [r7, #12] + 800c410: 6a9b ldr r3, [r3, #40] ; 0x28 + 800c412: 085a lsrs r2, r3, #1 + 800c414: 68fb ldr r3, [r7, #12] + 800c416: 62da str r2, [r3, #44] ; 0x2c } /* renewal period given? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T2)) { - 800c41c: 4b1b ldr r3, [pc, #108] ; (800c48c ) - 800c41e: 795b ldrb r3, [r3, #5] - 800c420: 2b00 cmp r3, #0 - 800c422: d004 beq.n 800c42e + 800c418: 4b1b ldr r3, [pc, #108] ; (800c488 ) + 800c41a: 795b ldrb r3, [r3, #5] + 800c41c: 2b00 cmp r3, #0 + 800c41e: d004 beq.n 800c42a /* remember given rebind period */ dhcp->offered_t2_rebind = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T2); - 800c424: 4b1a ldr r3, [pc, #104] ; (800c490 ) - 800c426: 695a ldr r2, [r3, #20] - 800c428: 68fb ldr r3, [r7, #12] - 800c42a: 631a str r2, [r3, #48] ; 0x30 - 800c42c: e007 b.n 800c43e + 800c420: 4b1a ldr r3, [pc, #104] ; (800c48c ) + 800c422: 695a ldr r2, [r3, #20] + 800c424: 68fb ldr r3, [r7, #12] + 800c426: 631a str r2, [r3, #48] ; 0x30 + 800c428: e007 b.n 800c43a } else { /* calculate safe periods for rebinding (offered_t0_lease * 0.875 -> 87.5%)*/ dhcp->offered_t2_rebind = (dhcp->offered_t0_lease * 7U) / 8U; - 800c42e: 68fb ldr r3, [r7, #12] - 800c430: 6a9a ldr r2, [r3, #40] ; 0x28 - 800c432: 4613 mov r3, r2 - 800c434: 00db lsls r3, r3, #3 - 800c436: 1a9b subs r3, r3, r2 - 800c438: 08da lsrs r2, r3, #3 - 800c43a: 68fb ldr r3, [r7, #12] - 800c43c: 631a str r2, [r3, #48] ; 0x30 + 800c42a: 68fb ldr r3, [r7, #12] + 800c42c: 6a9a ldr r2, [r3, #40] ; 0x28 + 800c42e: 4613 mov r3, r2 + 800c430: 00db lsls r3, r3, #3 + 800c432: 1a9b subs r3, r3, r2 + 800c434: 08da lsrs r2, r3, #3 + 800c436: 68fb ldr r3, [r7, #12] + 800c438: 631a str r2, [r3, #48] ; 0x30 } /* (y)our internet address */ ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr); - 800c43e: 683b ldr r3, [r7, #0] - 800c440: 691a ldr r2, [r3, #16] - 800c442: 68fb ldr r3, [r7, #12] - 800c444: 61da str r2, [r3, #28] + 800c43a: 683b ldr r3, [r7, #0] + 800c43c: 691a ldr r2, [r3, #16] + 800c43e: 68fb ldr r3, [r7, #12] + 800c440: 61da str r2, [r3, #28] boot file name copied in dhcp_parse_reply if not overloaded */ ip4_addr_copy(dhcp->offered_si_addr, msg_in->siaddr); #endif /* LWIP_DHCP_BOOTP_FILE */ /* subnet mask given? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)) { - 800c446: 4b11 ldr r3, [pc, #68] ; (800c48c ) - 800c448: 799b ldrb r3, [r3, #6] - 800c44a: 2b00 cmp r3, #0 - 800c44c: d00b beq.n 800c466 + 800c442: 4b11 ldr r3, [pc, #68] ; (800c488 ) + 800c444: 799b ldrb r3, [r3, #6] + 800c446: 2b00 cmp r3, #0 + 800c448: d00b beq.n 800c462 /* remember given subnet mask */ ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SUBNET_MASK))); - 800c44e: 4b10 ldr r3, [pc, #64] ; (800c490 ) - 800c450: 699b ldr r3, [r3, #24] - 800c452: 4618 mov r0, r3 - 800c454: f7f7 ff4d bl 80042f2 - 800c458: 4602 mov r2, r0 - 800c45a: 68fb ldr r3, [r7, #12] - 800c45c: 621a str r2, [r3, #32] + 800c44a: 4b10 ldr r3, [pc, #64] ; (800c48c ) + 800c44c: 699b ldr r3, [r3, #24] + 800c44e: 4618 mov r0, r3 + 800c450: f7f7 ff4d bl 80042ee + 800c454: 4602 mov r2, r0 + 800c456: 68fb ldr r3, [r7, #12] + 800c458: 621a str r2, [r3, #32] dhcp->subnet_mask_given = 1; - 800c45e: 68fb ldr r3, [r7, #12] - 800c460: 2201 movs r2, #1 - 800c462: 71da strb r2, [r3, #7] - 800c464: e002 b.n 800c46c + 800c45a: 68fb ldr r3, [r7, #12] + 800c45c: 2201 movs r2, #1 + 800c45e: 71da strb r2, [r3, #7] + 800c460: e002 b.n 800c468 } else { dhcp->subnet_mask_given = 0; - 800c466: 68fb ldr r3, [r7, #12] - 800c468: 2200 movs r2, #0 - 800c46a: 71da strb r2, [r3, #7] + 800c462: 68fb ldr r3, [r7, #12] + 800c464: 2200 movs r2, #0 + 800c466: 71da strb r2, [r3, #7] } /* gateway router */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_ROUTER)) { - 800c46c: 4b07 ldr r3, [pc, #28] ; (800c48c ) - 800c46e: 79db ldrb r3, [r3, #7] - 800c470: 2b00 cmp r3, #0 - 800c472: d007 beq.n 800c484 + 800c468: 4b07 ldr r3, [pc, #28] ; (800c488 ) + 800c46a: 79db ldrb r3, [r3, #7] + 800c46c: 2b00 cmp r3, #0 + 800c46e: d007 beq.n 800c480 ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_ROUTER))); - 800c474: 4b06 ldr r3, [pc, #24] ; (800c490 ) - 800c476: 69db ldr r3, [r3, #28] - 800c478: 4618 mov r0, r3 - 800c47a: f7f7 ff3a bl 80042f2 - 800c47e: 4602 mov r2, r0 - 800c480: 68fb ldr r3, [r7, #12] - 800c482: 625a str r2, [r3, #36] ; 0x24 + 800c470: 4b06 ldr r3, [pc, #24] ; (800c48c ) + 800c472: 69db ldr r3, [r3, #28] + 800c474: 4618 mov r0, r3 + 800c476: f7f7 ff3a bl 80042ee + 800c47a: 4602 mov r2, r0 + 800c47c: 68fb ldr r3, [r7, #12] + 800c47e: 625a str r2, [r3, #36] ; 0x24 ip_addr_t dns_addr; ip_addr_set_ip4_u32_val(dns_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n))); dns_setserver(n, &dns_addr); } #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */ } - 800c484: bf00 nop - 800c486: 3710 adds r7, #16 - 800c488: 46bd mov sp, r7 - 800c48a: bd80 pop {r7, pc} - 800c48c: 20008c80 .word 0x20008c80 - 800c490: 20008c60 .word 0x20008c60 + 800c480: bf00 nop + 800c482: 3710 adds r7, #16 + 800c484: 46bd mov sp, r7 + 800c486: bd80 pop {r7, pc} + 800c488: 20008c80 .word 0x20008c80 + 800c48c: 20008c60 .word 0x20008c60 -0800c494 : +0800c490 : * - ERR_OK - No error * - ERR_MEM - Out of memory */ err_t dhcp_start(struct netif *netif) { - 800c494: b580 push {r7, lr} - 800c496: b084 sub sp, #16 - 800c498: af00 add r7, sp, #0 - 800c49a: 6078 str r0, [r7, #4] + 800c490: b580 push {r7, lr} + 800c492: b084 sub sp, #16 + 800c494: af00 add r7, sp, #0 + 800c496: 6078 str r0, [r7, #4] struct dhcp *dhcp; err_t result; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif != NULL", (netif != NULL), return ERR_ARG;); - 800c49c: 687b ldr r3, [r7, #4] - 800c49e: 2b00 cmp r3, #0 - 800c4a0: d109 bne.n 800c4b6 - 800c4a2: 4b37 ldr r3, [pc, #220] ; (800c580 ) - 800c4a4: f240 22e7 movw r2, #743 ; 0x2e7 - 800c4a8: 4936 ldr r1, [pc, #216] ; (800c584 ) - 800c4aa: 4837 ldr r0, [pc, #220] ; (800c588 ) - 800c4ac: f003 ff92 bl 80103d4 - 800c4b0: f06f 030f mvn.w r3, #15 - 800c4b4: e060 b.n 800c578 + 800c498: 687b ldr r3, [r7, #4] + 800c49a: 2b00 cmp r3, #0 + 800c49c: d109 bne.n 800c4b2 + 800c49e: 4b37 ldr r3, [pc, #220] ; (800c57c ) + 800c4a0: f240 22e7 movw r2, #743 ; 0x2e7 + 800c4a4: 4936 ldr r1, [pc, #216] ; (800c580 ) + 800c4a6: 4837 ldr r0, [pc, #220] ; (800c584 ) + 800c4a8: f003 ff92 bl 80103d0 + 800c4ac: f06f 030f mvn.w r3, #15 + 800c4b0: e060 b.n 800c574 LWIP_ERROR("netif is not up, old style port?", netif_is_up(netif), return ERR_ARG;); - 800c4b6: 687b ldr r3, [r7, #4] - 800c4b8: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800c4bc: f003 0301 and.w r3, r3, #1 - 800c4c0: 2b00 cmp r3, #0 - 800c4c2: d109 bne.n 800c4d8 - 800c4c4: 4b2e ldr r3, [pc, #184] ; (800c580 ) - 800c4c6: f44f 723a mov.w r2, #744 ; 0x2e8 - 800c4ca: 4930 ldr r1, [pc, #192] ; (800c58c ) - 800c4cc: 482e ldr r0, [pc, #184] ; (800c588 ) - 800c4ce: f003 ff81 bl 80103d4 - 800c4d2: f06f 030f mvn.w r3, #15 - 800c4d6: e04f b.n 800c578 + 800c4b2: 687b ldr r3, [r7, #4] + 800c4b4: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800c4b8: f003 0301 and.w r3, r3, #1 + 800c4bc: 2b00 cmp r3, #0 + 800c4be: d109 bne.n 800c4d4 + 800c4c0: 4b2e ldr r3, [pc, #184] ; (800c57c ) + 800c4c2: f44f 723a mov.w r2, #744 ; 0x2e8 + 800c4c6: 4930 ldr r1, [pc, #192] ; (800c588 ) + 800c4c8: 482e ldr r0, [pc, #184] ; (800c584 ) + 800c4ca: f003 ff81 bl 80103d0 + 800c4ce: f06f 030f mvn.w r3, #15 + 800c4d2: e04f b.n 800c574 dhcp = netif_dhcp_data(netif); - 800c4d8: 687b ldr r3, [r7, #4] - 800c4da: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c4dc: 60fb str r3, [r7, #12] + 800c4d4: 687b ldr r3, [r7, #4] + 800c4d6: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c4d8: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); /* check MTU of the netif */ if (netif->mtu < DHCP_MAX_MSG_LEN_MIN_REQUIRED) { - 800c4de: 687b ldr r3, [r7, #4] - 800c4e0: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800c4e2: f5b3 7f10 cmp.w r3, #576 ; 0x240 - 800c4e6: d202 bcs.n 800c4ee + 800c4da: 687b ldr r3, [r7, #4] + 800c4dc: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800c4de: f5b3 7f10 cmp.w r3, #576 ; 0x240 + 800c4e2: d202 bcs.n 800c4ea LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): Cannot use this netif with DHCP: MTU is too small\n")); return ERR_MEM; - 800c4e8: f04f 33ff mov.w r3, #4294967295 - 800c4ec: e044 b.n 800c578 + 800c4e4: f04f 33ff mov.w r3, #4294967295 + 800c4e8: e044 b.n 800c574 } /* no DHCP client attached yet? */ if (dhcp == NULL) { - 800c4ee: 68fb ldr r3, [r7, #12] - 800c4f0: 2b00 cmp r3, #0 - 800c4f2: d10d bne.n 800c510 + 800c4ea: 68fb ldr r3, [r7, #12] + 800c4ec: 2b00 cmp r3, #0 + 800c4ee: d10d bne.n 800c50c LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): mallocing new DHCP client\n")); dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp)); - 800c4f4: 2034 movs r0, #52 ; 0x34 - 800c4f6: f7f8 f9cf bl 8004898 - 800c4fa: 60f8 str r0, [r7, #12] + 800c4f0: 2034 movs r0, #52 ; 0x34 + 800c4f2: f7f8 f9cf bl 8004894 + 800c4f6: 60f8 str r0, [r7, #12] if (dhcp == NULL) { - 800c4fc: 68fb ldr r3, [r7, #12] - 800c4fe: 2b00 cmp r3, #0 - 800c500: d102 bne.n 800c508 + 800c4f8: 68fb ldr r3, [r7, #12] + 800c4fa: 2b00 cmp r3, #0 + 800c4fc: d102 bne.n 800c504 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): could not allocate dhcp\n")); return ERR_MEM; - 800c502: f04f 33ff mov.w r3, #4294967295 - 800c506: e037 b.n 800c578 + 800c4fe: f04f 33ff mov.w r3, #4294967295 + 800c502: e037 b.n 800c574 } /* store this dhcp client in the netif */ netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp); - 800c508: 687b ldr r3, [r7, #4] - 800c50a: 68fa ldr r2, [r7, #12] - 800c50c: 625a str r2, [r3, #36] ; 0x24 - 800c50e: e005 b.n 800c51c + 800c504: 687b ldr r3, [r7, #4] + 800c506: 68fa ldr r2, [r7, #12] + 800c508: 625a str r2, [r3, #36] ; 0x24 + 800c50a: e005 b.n 800c518 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): allocated dhcp")); /* already has DHCP client attached */ } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(): restarting DHCP configuration\n")); if (dhcp->pcb_allocated != 0) { - 800c510: 68fb ldr r3, [r7, #12] - 800c512: 791b ldrb r3, [r3, #4] - 800c514: 2b00 cmp r3, #0 - 800c516: d001 beq.n 800c51c + 800c50c: 68fb ldr r3, [r7, #12] + 800c50e: 791b ldrb r3, [r3, #4] + 800c510: 2b00 cmp r3, #0 + 800c512: d001 beq.n 800c518 dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */ - 800c518: f7ff fc92 bl 800be40 + 800c514: f7ff fc92 bl 800be3c } /* dhcp is cleared below, no need to reset flag*/ } /* clear data structure */ memset(dhcp, 0, sizeof(struct dhcp)); - 800c51c: 2234 movs r2, #52 ; 0x34 - 800c51e: 2100 movs r1, #0 - 800c520: 68f8 ldr r0, [r7, #12] - 800c522: f003 ff4f bl 80103c4 + 800c518: 2234 movs r2, #52 ; 0x34 + 800c51a: 2100 movs r1, #0 + 800c51c: 68f8 ldr r0, [r7, #12] + 800c51e: f003 ff4f bl 80103c0 /* dhcp_set_state(&dhcp, DHCP_STATE_OFF); */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): starting DHCP configuration\n")); if (dhcp_inc_pcb_refcount() != ERR_OK) { /* ensure DHCP PCB is allocated */ - 800c526: f7ff fc39 bl 800bd9c - 800c52a: 4603 mov r3, r0 - 800c52c: 2b00 cmp r3, #0 - 800c52e: d002 beq.n 800c536 + 800c522: f7ff fc39 bl 800bd98 + 800c526: 4603 mov r3, r0 + 800c528: 2b00 cmp r3, #0 + 800c52a: d002 beq.n 800c532 return ERR_MEM; - 800c530: f04f 33ff mov.w r3, #4294967295 - 800c534: e020 b.n 800c578 + 800c52c: f04f 33ff mov.w r3, #4294967295 + 800c530: e020 b.n 800c574 } dhcp->pcb_allocated = 1; - 800c536: 68fb ldr r3, [r7, #12] - 800c538: 2201 movs r2, #1 - 800c53a: 711a strb r2, [r3, #4] + 800c532: 68fb ldr r3, [r7, #12] + 800c534: 2201 movs r2, #1 + 800c536: 711a strb r2, [r3, #4] if (!netif_is_link_up(netif)) { - 800c53c: 687b ldr r3, [r7, #4] - 800c53e: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800c542: f003 0304 and.w r3, r3, #4 - 800c546: 2b00 cmp r3, #0 - 800c548: d105 bne.n 800c556 + 800c538: 687b ldr r3, [r7, #4] + 800c53a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800c53e: f003 0304 and.w r3, r3, #4 + 800c542: 2b00 cmp r3, #0 + 800c544: d105 bne.n 800c552 /* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */ dhcp_set_state(dhcp, DHCP_STATE_INIT); - 800c54a: 2102 movs r1, #2 - 800c54c: 68f8 ldr r0, [r7, #12] - 800c54e: f000 fd01 bl 800cf54 + 800c546: 2102 movs r1, #2 + 800c548: 68f8 ldr r0, [r7, #12] + 800c54a: f000 fd01 bl 800cf50 return ERR_OK; - 800c552: 2300 movs r3, #0 - 800c554: e010 b.n 800c578 + 800c54e: 2300 movs r3, #0 + 800c550: e010 b.n 800c574 } /* (re)start the DHCP negotiation */ result = dhcp_discover(netif); - 800c556: 6878 ldr r0, [r7, #4] - 800c558: f000 f8f8 bl 800c74c - 800c55c: 4603 mov r3, r0 - 800c55e: 72fb strb r3, [r7, #11] + 800c552: 6878 ldr r0, [r7, #4] + 800c554: f000 f8f8 bl 800c748 + 800c558: 4603 mov r3, r0 + 800c55a: 72fb strb r3, [r7, #11] if (result != ERR_OK) { - 800c560: f997 300b ldrsb.w r3, [r7, #11] - 800c564: 2b00 cmp r3, #0 - 800c566: d005 beq.n 800c574 + 800c55c: f997 300b ldrsb.w r3, [r7, #11] + 800c560: 2b00 cmp r3, #0 + 800c562: d005 beq.n 800c570 /* free resources allocated above */ dhcp_release_and_stop(netif); - 800c568: 6878 ldr r0, [r7, #4] - 800c56a: f000 fc59 bl 800ce20 + 800c564: 6878 ldr r0, [r7, #4] + 800c566: f000 fc59 bl 800ce1c return ERR_MEM; - 800c56e: f04f 33ff mov.w r3, #4294967295 - 800c572: e001 b.n 800c578 + 800c56a: f04f 33ff mov.w r3, #4294967295 + 800c56e: e001 b.n 800c574 } return result; - 800c574: f997 300b ldrsb.w r3, [r7, #11] + 800c570: f997 300b ldrsb.w r3, [r7, #11] } - 800c578: 4618 mov r0, r3 - 800c57a: 3710 adds r7, #16 - 800c57c: 46bd mov sp, r7 - 800c57e: bd80 pop {r7, pc} - 800c580: 0801720c .word 0x0801720c - 800c584: 080172f0 .word 0x080172f0 - 800c588: 0801726c .word 0x0801726c - 800c58c: 08017334 .word 0x08017334 + 800c574: 4618 mov r0, r3 + 800c576: 3710 adds r7, #16 + 800c578: 46bd mov sp, r7 + 800c57a: bd80 pop {r7, pc} + 800c57c: 0801720c .word 0x0801720c + 800c580: 080172f0 .word 0x080172f0 + 800c584: 0801726c .word 0x0801726c + 800c588: 08017334 .word 0x08017334 -0800c590 : +0800c58c : * This enters the REBOOTING state to verify that the currently bound * address is still valid. */ void dhcp_network_changed(struct netif *netif) { - 800c590: b580 push {r7, lr} - 800c592: b084 sub sp, #16 - 800c594: af00 add r7, sp, #0 - 800c596: 6078 str r0, [r7, #4] + 800c58c: b580 push {r7, lr} + 800c58e: b084 sub sp, #16 + 800c590: af00 add r7, sp, #0 + 800c592: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800c598: 687b ldr r3, [r7, #4] - 800c59a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c59c: 60fb str r3, [r7, #12] + 800c594: 687b ldr r3, [r7, #4] + 800c596: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c598: 60fb str r3, [r7, #12] if (!dhcp) { - 800c59e: 68fb ldr r3, [r7, #12] - 800c5a0: 2b00 cmp r3, #0 - 800c5a2: d025 beq.n 800c5f0 + 800c59a: 68fb ldr r3, [r7, #12] + 800c59c: 2b00 cmp r3, #0 + 800c59e: d025 beq.n 800c5ec return; } switch (dhcp->state) { - 800c5a4: 68fb ldr r3, [r7, #12] - 800c5a6: 795b ldrb r3, [r3, #5] + 800c5a0: 68fb ldr r3, [r7, #12] + 800c5a2: 795b ldrb r3, [r3, #5] + 800c5a4: 2b0a cmp r3, #10 + 800c5a6: d008 beq.n 800c5ba 800c5a8: 2b0a cmp r3, #10 - 800c5aa: d008 beq.n 800c5be - 800c5ac: 2b0a cmp r3, #10 - 800c5ae: dc0d bgt.n 800c5cc + 800c5aa: dc0d bgt.n 800c5c8 + 800c5ac: 2b00 cmp r3, #0 + 800c5ae: d01f beq.n 800c5f0 800c5b0: 2b00 cmp r3, #0 - 800c5b2: d01f beq.n 800c5f4 - 800c5b4: 2b00 cmp r3, #0 - 800c5b6: db09 blt.n 800c5cc - 800c5b8: 3b03 subs r3, #3 - 800c5ba: 2b02 cmp r3, #2 - 800c5bc: d806 bhi.n 800c5cc + 800c5b2: db09 blt.n 800c5c8 + 800c5b4: 3b03 subs r3, #3 + 800c5b6: 2b02 cmp r3, #2 + 800c5b8: d806 bhi.n 800c5c8 case DHCP_STATE_REBINDING: case DHCP_STATE_RENEWING: case DHCP_STATE_BOUND: case DHCP_STATE_REBOOTING: dhcp->tries = 0; - 800c5be: 68fb ldr r3, [r7, #12] - 800c5c0: 2200 movs r2, #0 - 800c5c2: 719a strb r2, [r3, #6] + 800c5ba: 68fb ldr r3, [r7, #12] + 800c5bc: 2200 movs r2, #0 + 800c5be: 719a strb r2, [r3, #6] dhcp_reboot(netif); - 800c5c4: 6878 ldr r0, [r7, #4] - 800c5c6: f000 fb75 bl 800ccb4 + 800c5c0: 6878 ldr r0, [r7, #4] + 800c5c2: f000 fb75 bl 800ccb0 break; - 800c5ca: e014 b.n 800c5f6 + 800c5c6: e014 b.n 800c5f2 case DHCP_STATE_OFF: /* stay off */ break; default: LWIP_ASSERT("invalid dhcp->state", dhcp->state <= DHCP_STATE_BACKING_OFF); - 800c5cc: 68fb ldr r3, [r7, #12] - 800c5ce: 795b ldrb r3, [r3, #5] - 800c5d0: 2b0c cmp r3, #12 - 800c5d2: d906 bls.n 800c5e2 - 800c5d4: 4b09 ldr r3, [pc, #36] ; (800c5fc ) - 800c5d6: f240 326d movw r2, #877 ; 0x36d - 800c5da: 4909 ldr r1, [pc, #36] ; (800c600 ) - 800c5dc: 4809 ldr r0, [pc, #36] ; (800c604 ) - 800c5de: f003 fef9 bl 80103d4 + 800c5c8: 68fb ldr r3, [r7, #12] + 800c5ca: 795b ldrb r3, [r3, #5] + 800c5cc: 2b0c cmp r3, #12 + 800c5ce: d906 bls.n 800c5de + 800c5d0: 4b09 ldr r3, [pc, #36] ; (800c5f8 ) + 800c5d2: f240 326d movw r2, #877 ; 0x36d + 800c5d6: 4909 ldr r1, [pc, #36] ; (800c5fc ) + 800c5d8: 4809 ldr r0, [pc, #36] ; (800c600 ) + 800c5da: f003 fef9 bl 80103d0 autoip_stop(netif); dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF; } #endif /* LWIP_DHCP_AUTOIP_COOP */ /* ensure we start with short timeouts, even if already discovering */ dhcp->tries = 0; - 800c5e2: 68fb ldr r3, [r7, #12] - 800c5e4: 2200 movs r2, #0 - 800c5e6: 719a strb r2, [r3, #6] + 800c5de: 68fb ldr r3, [r7, #12] + 800c5e0: 2200 movs r2, #0 + 800c5e2: 719a strb r2, [r3, #6] dhcp_discover(netif); - 800c5e8: 6878 ldr r0, [r7, #4] - 800c5ea: f000 f8af bl 800c74c + 800c5e4: 6878 ldr r0, [r7, #4] + 800c5e6: f000 f8af bl 800c748 break; - 800c5ee: e002 b.n 800c5f6 + 800c5ea: e002 b.n 800c5f2 return; - 800c5f0: bf00 nop - 800c5f2: e000 b.n 800c5f6 + 800c5ec: bf00 nop + 800c5ee: e000 b.n 800c5f2 break; - 800c5f4: bf00 nop + 800c5f0: bf00 nop } } - 800c5f6: 3710 adds r7, #16 - 800c5f8: 46bd mov sp, r7 - 800c5fa: bd80 pop {r7, pc} - 800c5fc: 0801720c .word 0x0801720c - 800c600: 08017358 .word 0x08017358 - 800c604: 0801726c .word 0x0801726c + 800c5f2: 3710 adds r7, #16 + 800c5f4: 46bd mov sp, r7 + 800c5f6: bd80 pop {r7, pc} + 800c5f8: 0801720c .word 0x0801720c + 800c5fc: 08017358 .word 0x08017358 + 800c600: 0801726c .word 0x0801726c -0800c608 : +0800c604 : * @param netif the network interface on which the reply was received * @param addr The IP address we received a reply from */ void dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr) { - 800c608: b580 push {r7, lr} - 800c60a: b084 sub sp, #16 - 800c60c: af00 add r7, sp, #0 - 800c60e: 6078 str r0, [r7, #4] - 800c610: 6039 str r1, [r7, #0] + 800c604: b580 push {r7, lr} + 800c606: b084 sub sp, #16 + 800c608: af00 add r7, sp, #0 + 800c60a: 6078 str r0, [r7, #4] + 800c60c: 6039 str r1, [r7, #0] struct dhcp *dhcp; LWIP_ERROR("netif != NULL", (netif != NULL), return;); - 800c612: 687b ldr r3, [r7, #4] - 800c614: 2b00 cmp r3, #0 - 800c616: d107 bne.n 800c628 - 800c618: 4b0e ldr r3, [pc, #56] ; (800c654 ) - 800c61a: f240 328b movw r2, #907 ; 0x38b - 800c61e: 490e ldr r1, [pc, #56] ; (800c658 ) - 800c620: 480e ldr r0, [pc, #56] ; (800c65c ) - 800c622: f003 fed7 bl 80103d4 - 800c626: e012 b.n 800c64e + 800c60e: 687b ldr r3, [r7, #4] + 800c610: 2b00 cmp r3, #0 + 800c612: d107 bne.n 800c624 + 800c614: 4b0e ldr r3, [pc, #56] ; (800c650 ) + 800c616: f240 328b movw r2, #907 ; 0x38b + 800c61a: 490e ldr r1, [pc, #56] ; (800c654 ) + 800c61c: 480e ldr r0, [pc, #56] ; (800c658 ) + 800c61e: f003 fed7 bl 80103d0 + 800c622: e012 b.n 800c64a dhcp = netif_dhcp_data(netif); - 800c628: 687b ldr r3, [r7, #4] - 800c62a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c62c: 60fb str r3, [r7, #12] + 800c624: 687b ldr r3, [r7, #4] + 800c626: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c628: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_arp_reply()\n")); /* is a DHCP client doing an ARP check? */ if ((dhcp != NULL) && (dhcp->state == DHCP_STATE_CHECKING)) { - 800c62e: 68fb ldr r3, [r7, #12] - 800c630: 2b00 cmp r3, #0 - 800c632: d00c beq.n 800c64e - 800c634: 68fb ldr r3, [r7, #12] - 800c636: 795b ldrb r3, [r3, #5] - 800c638: 2b08 cmp r3, #8 - 800c63a: d108 bne.n 800c64e + 800c62a: 68fb ldr r3, [r7, #12] + 800c62c: 2b00 cmp r3, #0 + 800c62e: d00c beq.n 800c64a + 800c630: 68fb ldr r3, [r7, #12] + 800c632: 795b ldrb r3, [r3, #5] + 800c634: 2b08 cmp r3, #8 + 800c636: d108 bne.n 800c64a LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_arp_reply(): CHECKING, arp reply for 0x%08"X32_F"\n", ip4_addr_get_u32(addr))); /* did a host respond with the address we were offered by the DHCP server? */ if (ip4_addr_cmp(addr, &dhcp->offered_ip_addr)) { - 800c63c: 683b ldr r3, [r7, #0] - 800c63e: 681a ldr r2, [r3, #0] - 800c640: 68fb ldr r3, [r7, #12] - 800c642: 69db ldr r3, [r3, #28] - 800c644: 429a cmp r2, r3 - 800c646: d102 bne.n 800c64e + 800c638: 683b ldr r3, [r7, #0] + 800c63a: 681a ldr r2, [r3, #0] + 800c63c: 68fb ldr r3, [r7, #12] + 800c63e: 69db ldr r3, [r3, #28] + 800c640: 429a cmp r2, r3 + 800c642: d102 bne.n 800c64a /* we will not accept the offered address */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE | LWIP_DBG_LEVEL_WARNING, ("dhcp_arp_reply(): arp reply matched with offered address, declining\n")); dhcp_decline(netif); - 800c648: 6878 ldr r0, [r7, #4] - 800c64a: f000 f809 bl 800c660 + 800c644: 6878 ldr r0, [r7, #4] + 800c646: f000 f809 bl 800c65c } } } - 800c64e: 3710 adds r7, #16 - 800c650: 46bd mov sp, r7 - 800c652: bd80 pop {r7, pc} - 800c654: 0801720c .word 0x0801720c - 800c658: 080172f0 .word 0x080172f0 - 800c65c: 0801726c .word 0x0801726c + 800c64a: 3710 adds r7, #16 + 800c64c: 46bd mov sp, r7 + 800c64e: bd80 pop {r7, pc} + 800c650: 0801720c .word 0x0801720c + 800c654: 080172f0 .word 0x080172f0 + 800c658: 0801726c .word 0x0801726c -0800c660 : +0800c65c : * * @param netif the netif under DHCP control */ static err_t dhcp_decline(struct netif *netif) { - 800c660: b5b0 push {r4, r5, r7, lr} - 800c662: b08a sub sp, #40 ; 0x28 - 800c664: af02 add r7, sp, #8 - 800c666: 6078 str r0, [r7, #4] + 800c65c: b5b0 push {r4, r5, r7, lr} + 800c65e: b08a sub sp, #40 ; 0x28 + 800c660: af02 add r7, sp, #8 + 800c662: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800c668: 687b ldr r3, [r7, #4] - 800c66a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c66c: 61bb str r3, [r7, #24] + 800c664: 687b ldr r3, [r7, #4] + 800c666: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c668: 61bb str r3, [r7, #24] u16_t msecs; struct pbuf *p_out; u16_t options_out_len; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline()\n")); dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF); - 800c66e: 210c movs r1, #12 - 800c670: 69b8 ldr r0, [r7, #24] - 800c672: f000 fc6f bl 800cf54 + 800c66a: 210c movs r1, #12 + 800c66c: 69b8 ldr r0, [r7, #24] + 800c66e: f000 fc6f bl 800cf50 /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_DECLINE, &options_out_len); - 800c676: f107 030c add.w r3, r7, #12 - 800c67a: 2204 movs r2, #4 - 800c67c: 69b9 ldr r1, [r7, #24] - 800c67e: 6878 ldr r0, [r7, #4] - 800c680: f001 f8f4 bl 800d86c - 800c684: 6178 str r0, [r7, #20] + 800c672: f107 030c add.w r3, r7, #12 + 800c676: 2204 movs r2, #4 + 800c678: 69b9 ldr r1, [r7, #24] + 800c67a: 6878 ldr r0, [r7, #4] + 800c67c: f001 f8f4 bl 800d868 + 800c680: 6178 str r0, [r7, #20] if (p_out != NULL) { - 800c686: 697b ldr r3, [r7, #20] - 800c688: 2b00 cmp r3, #0 - 800c68a: d035 beq.n 800c6f8 + 800c682: 697b ldr r3, [r7, #20] + 800c684: 2b00 cmp r3, #0 + 800c686: d035 beq.n 800c6f4 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 800c68c: 697b ldr r3, [r7, #20] - 800c68e: 685b ldr r3, [r3, #4] - 800c690: 613b str r3, [r7, #16] + 800c688: 697b ldr r3, [r7, #20] + 800c68a: 685b ldr r3, [r3, #4] + 800c68c: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - 800c692: 89b8 ldrh r0, [r7, #12] - 800c694: 693b ldr r3, [r7, #16] - 800c696: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c69a: 2304 movs r3, #4 - 800c69c: 2232 movs r2, #50 ; 0x32 - 800c69e: f000 fc73 bl 800cf88 - 800c6a2: 4603 mov r3, r0 - 800c6a4: 81bb strh r3, [r7, #12] + 800c68e: 89b8 ldrh r0, [r7, #12] + 800c690: 693b ldr r3, [r7, #16] + 800c692: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c696: 2304 movs r3, #4 + 800c698: 2232 movs r2, #50 ; 0x32 + 800c69a: f000 fc73 bl 800cf84 + 800c69e: 4603 mov r3, r0 + 800c6a0: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - 800c6a6: 89bc ldrh r4, [r7, #12] - 800c6a8: 693b ldr r3, [r7, #16] - 800c6aa: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 800c6ae: 69bb ldr r3, [r7, #24] - 800c6b0: 69db ldr r3, [r3, #28] - 800c6b2: 4618 mov r0, r3 - 800c6b4: f7f7 fe1d bl 80042f2 - 800c6b8: 4603 mov r3, r0 - 800c6ba: 461a mov r2, r3 - 800c6bc: 4629 mov r1, r5 - 800c6be: 4620 mov r0, r4 - 800c6c0: f000 fcee bl 800d0a0 - 800c6c4: 4603 mov r3, r0 - 800c6c6: 81bb strh r3, [r7, #12] + 800c6a2: 89bc ldrh r4, [r7, #12] + 800c6a4: 693b ldr r3, [r7, #16] + 800c6a6: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 800c6aa: 69bb ldr r3, [r7, #24] + 800c6ac: 69db ldr r3, [r3, #28] + 800c6ae: 4618 mov r0, r3 + 800c6b0: f7f7 fe1d bl 80042ee + 800c6b4: 4603 mov r3, r0 + 800c6b6: 461a mov r2, r3 + 800c6b8: 4629 mov r1, r5 + 800c6ba: 4620 mov r0, r4 + 800c6bc: f000 fcee bl 800d09c + 800c6c0: 4603 mov r3, r0 + 800c6c2: 81bb strh r3, [r7, #12] LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_BACKING_OFF, msg_out, DHCP_DECLINE, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 800c6c8: 89b8 ldrh r0, [r7, #12] - 800c6ca: 693b ldr r3, [r7, #16] - 800c6cc: 33f0 adds r3, #240 ; 0xf0 - 800c6ce: 697a ldr r2, [r7, #20] - 800c6d0: 4619 mov r1, r3 - 800c6d2: f001 f9a1 bl 800da18 + 800c6c4: 89b8 ldrh r0, [r7, #12] + 800c6c6: 693b ldr r3, [r7, #16] + 800c6c8: 33f0 adds r3, #240 ; 0xf0 + 800c6ca: 697a ldr r2, [r7, #20] + 800c6cc: 4619 mov r1, r3 + 800c6ce: f001 f9a1 bl 800da14 /* per section 4.4.4, broadcast DECLINE messages */ result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY); - 800c6d6: 4b19 ldr r3, [pc, #100] ; (800c73c ) - 800c6d8: 6818 ldr r0, [r3, #0] - 800c6da: 4b19 ldr r3, [pc, #100] ; (800c740 ) - 800c6dc: 9301 str r3, [sp, #4] - 800c6de: 687b ldr r3, [r7, #4] - 800c6e0: 9300 str r3, [sp, #0] - 800c6e2: 2343 movs r3, #67 ; 0x43 - 800c6e4: 4a17 ldr r2, [pc, #92] ; (800c744 ) - 800c6e6: 6979 ldr r1, [r7, #20] - 800c6e8: f7ff f8d2 bl 800b890 - 800c6ec: 4603 mov r3, r0 - 800c6ee: 77fb strb r3, [r7, #31] + 800c6d2: 4b19 ldr r3, [pc, #100] ; (800c738 ) + 800c6d4: 6818 ldr r0, [r3, #0] + 800c6d6: 4b19 ldr r3, [pc, #100] ; (800c73c ) + 800c6d8: 9301 str r3, [sp, #4] + 800c6da: 687b ldr r3, [r7, #4] + 800c6dc: 9300 str r3, [sp, #0] + 800c6de: 2343 movs r3, #67 ; 0x43 + 800c6e0: 4a17 ldr r2, [pc, #92] ; (800c740 ) + 800c6e2: 6979 ldr r1, [r7, #20] + 800c6e4: f7ff f8d2 bl 800b88c + 800c6e8: 4603 mov r3, r0 + 800c6ea: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 800c6f0: 6978 ldr r0, [r7, #20] - 800c6f2: f7f9 f953 bl 800599c - 800c6f6: e001 b.n 800c6fc + 800c6ec: 6978 ldr r0, [r7, #20] + 800c6ee: f7f9 f953 bl 8005998 + 800c6f2: e001 b.n 800c6f8 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_decline: BACKING OFF\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_decline: could not allocate DHCP request\n")); result = ERR_MEM; - 800c6f8: 23ff movs r3, #255 ; 0xff - 800c6fa: 77fb strb r3, [r7, #31] + 800c6f4: 23ff movs r3, #255 ; 0xff + 800c6f6: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 800c6fc: 69bb ldr r3, [r7, #24] - 800c6fe: 799b ldrb r3, [r3, #6] - 800c700: 2bff cmp r3, #255 ; 0xff - 800c702: d005 beq.n 800c710 + 800c6f8: 69bb ldr r3, [r7, #24] + 800c6fa: 799b ldrb r3, [r3, #6] + 800c6fc: 2bff cmp r3, #255 ; 0xff + 800c6fe: d005 beq.n 800c70c dhcp->tries++; - 800c704: 69bb ldr r3, [r7, #24] - 800c706: 799b ldrb r3, [r3, #6] - 800c708: 3301 adds r3, #1 - 800c70a: b2da uxtb r2, r3 - 800c70c: 69bb ldr r3, [r7, #24] - 800c70e: 719a strb r2, [r3, #6] + 800c700: 69bb ldr r3, [r7, #24] + 800c702: 799b ldrb r3, [r3, #6] + 800c704: 3301 adds r3, #1 + 800c706: b2da uxtb r2, r3 + 800c708: 69bb ldr r3, [r7, #24] + 800c70a: 719a strb r2, [r3, #6] } msecs = 10 * 1000; - 800c710: f242 7310 movw r3, #10000 ; 0x2710 - 800c714: 81fb strh r3, [r7, #14] + 800c70c: f242 7310 movw r3, #10000 ; 0x2710 + 800c710: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 800c716: 89fb ldrh r3, [r7, #14] - 800c718: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 800c71c: 4a0a ldr r2, [pc, #40] ; (800c748 ) - 800c71e: fb82 1203 smull r1, r2, r2, r3 - 800c722: 1152 asrs r2, r2, #5 - 800c724: 17db asrs r3, r3, #31 - 800c726: 1ad3 subs r3, r2, r3 - 800c728: b29a uxth r2, r3 - 800c72a: 69bb ldr r3, [r7, #24] - 800c72c: 811a strh r2, [r3, #8] + 800c712: 89fb ldrh r3, [r7, #14] + 800c714: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 800c718: 4a0a ldr r2, [pc, #40] ; (800c744 ) + 800c71a: fb82 1203 smull r1, r2, r2, r3 + 800c71e: 1152 asrs r2, r2, #5 + 800c720: 17db asrs r3, r3, #31 + 800c722: 1ad3 subs r3, r2, r3 + 800c724: b29a uxth r2, r3 + 800c726: 69bb ldr r3, [r7, #24] + 800c728: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 800c72e: f997 301f ldrsb.w r3, [r7, #31] + 800c72a: f997 301f ldrsb.w r3, [r7, #31] } - 800c732: 4618 mov r0, r3 - 800c734: 3720 adds r7, #32 - 800c736: 46bd mov sp, r7 - 800c738: bdb0 pop {r4, r5, r7, pc} - 800c73a: bf00 nop - 800c73c: 20008c88 .word 0x20008c88 - 800c740: 08017ddc .word 0x08017ddc - 800c744: 08017de0 .word 0x08017de0 - 800c748: 10624dd3 .word 0x10624dd3 + 800c72e: 4618 mov r0, r3 + 800c730: 3720 adds r7, #32 + 800c732: 46bd mov sp, r7 + 800c734: bdb0 pop {r4, r5, r7, pc} + 800c736: bf00 nop + 800c738: 20008c88 .word 0x20008c88 + 800c73c: 08017ddc .word 0x08017ddc + 800c740: 08017de0 .word 0x08017de0 + 800c744: 10624dd3 .word 0x10624dd3 -0800c74c : +0800c748 : * * @param netif the netif under DHCP control */ static err_t dhcp_discover(struct netif *netif) { - 800c74c: b580 push {r7, lr} - 800c74e: b08a sub sp, #40 ; 0x28 - 800c750: af02 add r7, sp, #8 - 800c752: 6078 str r0, [r7, #4] + 800c748: b580 push {r7, lr} + 800c74a: b08a sub sp, #40 ; 0x28 + 800c74c: af02 add r7, sp, #8 + 800c74e: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800c754: 687b ldr r3, [r7, #4] - 800c756: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c758: 61bb str r3, [r7, #24] + 800c750: 687b ldr r3, [r7, #4] + 800c752: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c754: 61bb str r3, [r7, #24] err_t result = ERR_OK; - 800c75a: 2300 movs r3, #0 - 800c75c: 75fb strb r3, [r7, #23] + 800c756: 2300 movs r3, #0 + 800c758: 75fb strb r3, [r7, #23] struct pbuf *p_out; u16_t options_out_len; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover()\n")); ip4_addr_set_any(&dhcp->offered_ip_addr); - 800c75e: 69bb ldr r3, [r7, #24] - 800c760: 2200 movs r2, #0 - 800c762: 61da str r2, [r3, #28] + 800c75a: 69bb ldr r3, [r7, #24] + 800c75c: 2200 movs r2, #0 + 800c75e: 61da str r2, [r3, #28] dhcp_set_state(dhcp, DHCP_STATE_SELECTING); - 800c764: 2106 movs r1, #6 - 800c766: 69b8 ldr r0, [r7, #24] - 800c768: f000 fbf4 bl 800cf54 + 800c760: 2106 movs r1, #6 + 800c762: 69b8 ldr r0, [r7, #24] + 800c764: f000 fbf4 bl 800cf50 /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_DISCOVER, &options_out_len); - 800c76c: f107 0308 add.w r3, r7, #8 - 800c770: 2201 movs r2, #1 - 800c772: 69b9 ldr r1, [r7, #24] - 800c774: 6878 ldr r0, [r7, #4] - 800c776: f001 f879 bl 800d86c - 800c77a: 6138 str r0, [r7, #16] + 800c768: f107 0308 add.w r3, r7, #8 + 800c76c: 2201 movs r2, #1 + 800c76e: 69b9 ldr r1, [r7, #24] + 800c770: 6878 ldr r0, [r7, #4] + 800c772: f001 f879 bl 800d868 + 800c776: 6138 str r0, [r7, #16] if (p_out != NULL) { - 800c77c: 693b ldr r3, [r7, #16] - 800c77e: 2b00 cmp r3, #0 - 800c780: d04b beq.n 800c81a + 800c778: 693b ldr r3, [r7, #16] + 800c77a: 2b00 cmp r3, #0 + 800c77c: d04b beq.n 800c816 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 800c782: 693b ldr r3, [r7, #16] - 800c784: 685b ldr r3, [r3, #4] - 800c786: 60fb str r3, [r7, #12] + 800c77e: 693b ldr r3, [r7, #16] + 800c780: 685b ldr r3, [r3, #4] + 800c782: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: making request\n")); options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 800c788: 8938 ldrh r0, [r7, #8] - 800c78a: 68fb ldr r3, [r7, #12] - 800c78c: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c790: 2302 movs r3, #2 - 800c792: 2239 movs r2, #57 ; 0x39 - 800c794: f000 fbf8 bl 800cf88 - 800c798: 4603 mov r3, r0 - 800c79a: 813b strh r3, [r7, #8] + 800c784: 8938 ldrh r0, [r7, #8] + 800c786: 68fb ldr r3, [r7, #12] + 800c788: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c78c: 2302 movs r3, #2 + 800c78e: 2239 movs r2, #57 ; 0x39 + 800c790: f000 fbf8 bl 800cf84 + 800c794: 4603 mov r3, r0 + 800c796: 813b strh r3, [r7, #8] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - 800c79c: 8938 ldrh r0, [r7, #8] - 800c79e: 68fb ldr r3, [r7, #12] - 800c7a0: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c7a4: 687b ldr r3, [r7, #4] - 800c7a6: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800c7a8: 461a mov r2, r3 - 800c7aa: f000 fc47 bl 800d03c - 800c7ae: 4603 mov r3, r0 - 800c7b0: 813b strh r3, [r7, #8] + 800c798: 8938 ldrh r0, [r7, #8] + 800c79a: 68fb ldr r3, [r7, #12] + 800c79c: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c7a0: 687b ldr r3, [r7, #4] + 800c7a2: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800c7a4: 461a mov r2, r3 + 800c7a6: f000 fc47 bl 800d038 + 800c7aa: 4603 mov r3, r0 + 800c7ac: 813b strh r3, [r7, #8] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 800c7b2: 8938 ldrh r0, [r7, #8] - 800c7b4: 68fb ldr r3, [r7, #12] - 800c7b6: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c7ba: 2303 movs r3, #3 - 800c7bc: 2237 movs r2, #55 ; 0x37 - 800c7be: f000 fbe3 bl 800cf88 - 800c7c2: 4603 mov r3, r0 - 800c7c4: 813b strh r3, [r7, #8] + 800c7ae: 8938 ldrh r0, [r7, #8] + 800c7b0: 68fb ldr r3, [r7, #12] + 800c7b2: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c7b6: 2303 movs r3, #3 + 800c7b8: 2237 movs r2, #55 ; 0x37 + 800c7ba: f000 fbe3 bl 800cf84 + 800c7be: 4603 mov r3, r0 + 800c7c0: 813b strh r3, [r7, #8] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800c7c6: 2300 movs r3, #0 - 800c7c8: 77fb strb r3, [r7, #31] - 800c7ca: e00e b.n 800c7ea + 800c7c2: 2300 movs r3, #0 + 800c7c4: 77fb strb r3, [r7, #31] + 800c7c6: e00e b.n 800c7e6 options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 800c7cc: 8938 ldrh r0, [r7, #8] - 800c7ce: 68fb ldr r3, [r7, #12] - 800c7d0: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800c7d4: 7ffb ldrb r3, [r7, #31] - 800c7d6: 4a29 ldr r2, [pc, #164] ; (800c87c ) - 800c7d8: 5cd3 ldrb r3, [r2, r3] - 800c7da: 461a mov r2, r3 - 800c7dc: f000 fc08 bl 800cff0 - 800c7e0: 4603 mov r3, r0 - 800c7e2: 813b strh r3, [r7, #8] + 800c7c8: 8938 ldrh r0, [r7, #8] + 800c7ca: 68fb ldr r3, [r7, #12] + 800c7cc: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800c7d0: 7ffb ldrb r3, [r7, #31] + 800c7d2: 4a29 ldr r2, [pc, #164] ; (800c878 ) + 800c7d4: 5cd3 ldrb r3, [r2, r3] + 800c7d6: 461a mov r2, r3 + 800c7d8: f000 fc08 bl 800cfec + 800c7dc: 4603 mov r3, r0 + 800c7de: 813b strh r3, [r7, #8] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800c7e4: 7ffb ldrb r3, [r7, #31] - 800c7e6: 3301 adds r3, #1 - 800c7e8: 77fb strb r3, [r7, #31] - 800c7ea: 7ffb ldrb r3, [r7, #31] - 800c7ec: 2b02 cmp r3, #2 - 800c7ee: d9ed bls.n 800c7cc + 800c7e0: 7ffb ldrb r3, [r7, #31] + 800c7e2: 3301 adds r3, #1 + 800c7e4: 77fb strb r3, [r7, #31] + 800c7e6: 7ffb ldrb r3, [r7, #31] + 800c7e8: 2b02 cmp r3, #2 + 800c7ea: d9ed bls.n 800c7c8 } LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_SELECTING, msg_out, DHCP_DISCOVER, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 800c7f0: 8938 ldrh r0, [r7, #8] - 800c7f2: 68fb ldr r3, [r7, #12] - 800c7f4: 33f0 adds r3, #240 ; 0xf0 - 800c7f6: 693a ldr r2, [r7, #16] - 800c7f8: 4619 mov r1, r3 - 800c7fa: f001 f90d bl 800da18 + 800c7ec: 8938 ldrh r0, [r7, #8] + 800c7ee: 68fb ldr r3, [r7, #12] + 800c7f0: 33f0 adds r3, #240 ; 0xf0 + 800c7f2: 693a ldr r2, [r7, #16] + 800c7f4: 4619 mov r1, r3 + 800c7f6: f001 f90d bl 800da14 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)\n")); udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY); - 800c7fe: 4b20 ldr r3, [pc, #128] ; (800c880 ) - 800c800: 6818 ldr r0, [r3, #0] - 800c802: 4b20 ldr r3, [pc, #128] ; (800c884 ) - 800c804: 9301 str r3, [sp, #4] - 800c806: 687b ldr r3, [r7, #4] - 800c808: 9300 str r3, [sp, #0] - 800c80a: 2343 movs r3, #67 ; 0x43 - 800c80c: 4a1e ldr r2, [pc, #120] ; (800c888 ) - 800c80e: 6939 ldr r1, [r7, #16] - 800c810: f7ff f83e bl 800b890 + 800c7fa: 4b20 ldr r3, [pc, #128] ; (800c87c ) + 800c7fc: 6818 ldr r0, [r3, #0] + 800c7fe: 4b20 ldr r3, [pc, #128] ; (800c880 ) + 800c800: 9301 str r3, [sp, #4] + 800c802: 687b ldr r3, [r7, #4] + 800c804: 9300 str r3, [sp, #0] + 800c806: 2343 movs r3, #67 ; 0x43 + 800c808: 4a1e ldr r2, [pc, #120] ; (800c884 ) + 800c80a: 6939 ldr r1, [r7, #16] + 800c80c: f7ff f83e bl 800b88c LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: deleting()ing\n")); pbuf_free(p_out); - 800c814: 6938 ldr r0, [r7, #16] - 800c816: f7f9 f8c1 bl 800599c + 800c810: 6938 ldr r0, [r7, #16] + 800c812: f7f9 f8c1 bl 8005998 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover: SELECTING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_discover: could not allocate DHCP request\n")); } if (dhcp->tries < 255) { - 800c81a: 69bb ldr r3, [r7, #24] - 800c81c: 799b ldrb r3, [r3, #6] - 800c81e: 2bff cmp r3, #255 ; 0xff - 800c820: d005 beq.n 800c82e + 800c816: 69bb ldr r3, [r7, #24] + 800c818: 799b ldrb r3, [r3, #6] + 800c81a: 2bff cmp r3, #255 ; 0xff + 800c81c: d005 beq.n 800c82a dhcp->tries++; - 800c822: 69bb ldr r3, [r7, #24] - 800c824: 799b ldrb r3, [r3, #6] - 800c826: 3301 adds r3, #1 - 800c828: b2da uxtb r2, r3 - 800c82a: 69bb ldr r3, [r7, #24] - 800c82c: 719a strb r2, [r3, #6] + 800c81e: 69bb ldr r3, [r7, #24] + 800c820: 799b ldrb r3, [r3, #6] + 800c822: 3301 adds r3, #1 + 800c824: b2da uxtb r2, r3 + 800c826: 69bb ldr r3, [r7, #24] + 800c828: 719a strb r2, [r3, #6] if (dhcp->tries >= LWIP_DHCP_AUTOIP_COOP_TRIES && dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_OFF) { dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_ON; autoip_start(netif); } #endif /* LWIP_DHCP_AUTOIP_COOP */ msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000); - 800c82e: 69bb ldr r3, [r7, #24] - 800c830: 799b ldrb r3, [r3, #6] - 800c832: 2b05 cmp r3, #5 - 800c834: d80d bhi.n 800c852 - 800c836: 69bb ldr r3, [r7, #24] - 800c838: 799b ldrb r3, [r3, #6] - 800c83a: 461a mov r2, r3 - 800c83c: 2301 movs r3, #1 - 800c83e: 4093 lsls r3, r2 - 800c840: b29b uxth r3, r3 - 800c842: 461a mov r2, r3 - 800c844: 0152 lsls r2, r2, #5 - 800c846: 1ad2 subs r2, r2, r3 - 800c848: 0092 lsls r2, r2, #2 - 800c84a: 4413 add r3, r2 - 800c84c: 00db lsls r3, r3, #3 - 800c84e: b29b uxth r3, r3 - 800c850: e001 b.n 800c856 - 800c852: f64e 2360 movw r3, #60000 ; 0xea60 - 800c856: 817b strh r3, [r7, #10] + 800c82a: 69bb ldr r3, [r7, #24] + 800c82c: 799b ldrb r3, [r3, #6] + 800c82e: 2b05 cmp r3, #5 + 800c830: d80d bhi.n 800c84e + 800c832: 69bb ldr r3, [r7, #24] + 800c834: 799b ldrb r3, [r3, #6] + 800c836: 461a mov r2, r3 + 800c838: 2301 movs r3, #1 + 800c83a: 4093 lsls r3, r2 + 800c83c: b29b uxth r3, r3 + 800c83e: 461a mov r2, r3 + 800c840: 0152 lsls r2, r2, #5 + 800c842: 1ad2 subs r2, r2, r3 + 800c844: 0092 lsls r2, r2, #2 + 800c846: 4413 add r3, r2 + 800c848: 00db lsls r3, r3, #3 + 800c84a: b29b uxth r3, r3 + 800c84c: e001 b.n 800c852 + 800c84e: f64e 2360 movw r3, #60000 ; 0xea60 + 800c852: 817b strh r3, [r7, #10] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 800c858: 897b ldrh r3, [r7, #10] - 800c85a: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 800c85e: 4a0b ldr r2, [pc, #44] ; (800c88c ) - 800c860: fb82 1203 smull r1, r2, r2, r3 - 800c864: 1152 asrs r2, r2, #5 - 800c866: 17db asrs r3, r3, #31 - 800c868: 1ad3 subs r3, r2, r3 - 800c86a: b29a uxth r2, r3 - 800c86c: 69bb ldr r3, [r7, #24] - 800c86e: 811a strh r2, [r3, #8] + 800c854: 897b ldrh r3, [r7, #10] + 800c856: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 800c85a: 4a0b ldr r2, [pc, #44] ; (800c888 ) + 800c85c: fb82 1203 smull r1, r2, r2, r3 + 800c860: 1152 asrs r2, r2, #5 + 800c862: 17db asrs r3, r3, #31 + 800c864: 1ad3 subs r3, r2, r3 + 800c866: b29a uxth r2, r3 + 800c868: 69bb ldr r3, [r7, #24] + 800c86a: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 800c870: f997 3017 ldrsb.w r3, [r7, #23] + 800c86c: f997 3017 ldrsb.w r3, [r7, #23] } - 800c874: 4618 mov r0, r3 - 800c876: 3720 adds r7, #32 - 800c878: 46bd mov sp, r7 - 800c87a: bd80 pop {r7, pc} - 800c87c: 2000002c .word 0x2000002c - 800c880: 20008c88 .word 0x20008c88 - 800c884: 08017ddc .word 0x08017ddc - 800c888: 08017de0 .word 0x08017de0 - 800c88c: 10624dd3 .word 0x10624dd3 + 800c870: 4618 mov r0, r3 + 800c872: 3720 adds r7, #32 + 800c874: 46bd mov sp, r7 + 800c876: bd80 pop {r7, pc} + 800c878: 2000002c .word 0x2000002c + 800c87c: 20008c88 .word 0x20008c88 + 800c880: 08017ddc .word 0x08017ddc + 800c884: 08017de0 .word 0x08017de0 + 800c888: 10624dd3 .word 0x10624dd3 -0800c890 : +0800c88c : * * @param netif network interface to bind to the offered address */ static void dhcp_bind(struct netif *netif) { - 800c890: b580 push {r7, lr} - 800c892: b088 sub sp, #32 - 800c894: af00 add r7, sp, #0 - 800c896: 6078 str r0, [r7, #4] + 800c88c: b580 push {r7, lr} + 800c88e: b088 sub sp, #32 + 800c890: af00 add r7, sp, #0 + 800c892: 6078 str r0, [r7, #4] u32_t timeout; struct dhcp *dhcp; ip4_addr_t sn_mask, gw_addr; LWIP_ERROR("dhcp_bind: netif != NULL", (netif != NULL), return;); - 800c898: 687b ldr r3, [r7, #4] - 800c89a: 2b00 cmp r3, #0 - 800c89c: d107 bne.n 800c8ae - 800c89e: 4b64 ldr r3, [pc, #400] ; (800ca30 ) - 800c8a0: f240 4215 movw r2, #1045 ; 0x415 - 800c8a4: 4963 ldr r1, [pc, #396] ; (800ca34 ) - 800c8a6: 4864 ldr r0, [pc, #400] ; (800ca38 ) - 800c8a8: f003 fd94 bl 80103d4 - 800c8ac: e0bc b.n 800ca28 + 800c894: 687b ldr r3, [r7, #4] + 800c896: 2b00 cmp r3, #0 + 800c898: d107 bne.n 800c8aa + 800c89a: 4b64 ldr r3, [pc, #400] ; (800ca2c ) + 800c89c: f240 4215 movw r2, #1045 ; 0x415 + 800c8a0: 4963 ldr r1, [pc, #396] ; (800ca30 ) + 800c8a2: 4864 ldr r0, [pc, #400] ; (800ca34 ) + 800c8a4: f003 fd94 bl 80103d0 + 800c8a8: e0bc b.n 800ca24 dhcp = netif_dhcp_data(netif); - 800c8ae: 687b ldr r3, [r7, #4] - 800c8b0: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c8b2: 61bb str r3, [r7, #24] + 800c8aa: 687b ldr r3, [r7, #4] + 800c8ac: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c8ae: 61bb str r3, [r7, #24] LWIP_ERROR("dhcp_bind: dhcp != NULL", (dhcp != NULL), return;); - 800c8b4: 69bb ldr r3, [r7, #24] - 800c8b6: 2b00 cmp r3, #0 - 800c8b8: d107 bne.n 800c8ca - 800c8ba: 4b5d ldr r3, [pc, #372] ; (800ca30 ) - 800c8bc: f240 4217 movw r2, #1047 ; 0x417 - 800c8c0: 495e ldr r1, [pc, #376] ; (800ca3c ) - 800c8c2: 485d ldr r0, [pc, #372] ; (800ca38 ) - 800c8c4: f003 fd86 bl 80103d4 - 800c8c8: e0ae b.n 800ca28 + 800c8b0: 69bb ldr r3, [r7, #24] + 800c8b2: 2b00 cmp r3, #0 + 800c8b4: d107 bne.n 800c8c6 + 800c8b6: 4b5d ldr r3, [pc, #372] ; (800ca2c ) + 800c8b8: f240 4217 movw r2, #1047 ; 0x417 + 800c8bc: 495e ldr r1, [pc, #376] ; (800ca38 ) + 800c8be: 485d ldr r0, [pc, #372] ; (800ca34 ) + 800c8c0: f003 fd86 bl 80103d0 + 800c8c4: e0ae b.n 800ca24 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); /* reset time used of lease */ dhcp->lease_used = 0; - 800c8ca: 69bb ldr r3, [r7, #24] - 800c8cc: 2200 movs r2, #0 - 800c8ce: 825a strh r2, [r3, #18] + 800c8c6: 69bb ldr r3, [r7, #24] + 800c8c8: 2200 movs r2, #0 + 800c8ca: 825a strh r2, [r3, #18] if (dhcp->offered_t0_lease != 0xffffffffUL) { - 800c8d0: 69bb ldr r3, [r7, #24] - 800c8d2: 6a9b ldr r3, [r3, #40] ; 0x28 - 800c8d4: f1b3 3fff cmp.w r3, #4294967295 - 800c8d8: d019 beq.n 800c90e + 800c8cc: 69bb ldr r3, [r7, #24] + 800c8ce: 6a9b ldr r3, [r3, #40] ; 0x28 + 800c8d0: f1b3 3fff cmp.w r3, #4294967295 + 800c8d4: d019 beq.n 800c90a /* set renewal period timer */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t0 renewal timer %"U32_F" secs\n", dhcp->offered_t0_lease)); timeout = (dhcp->offered_t0_lease + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS; - 800c8da: 69bb ldr r3, [r7, #24] - 800c8dc: 6a9b ldr r3, [r3, #40] ; 0x28 - 800c8de: 331e adds r3, #30 - 800c8e0: 4a57 ldr r2, [pc, #348] ; (800ca40 ) - 800c8e2: fba2 2303 umull r2, r3, r2, r3 - 800c8e6: 095b lsrs r3, r3, #5 - 800c8e8: 61fb str r3, [r7, #28] + 800c8d6: 69bb ldr r3, [r7, #24] + 800c8d8: 6a9b ldr r3, [r3, #40] ; 0x28 + 800c8da: 331e adds r3, #30 + 800c8dc: 4a57 ldr r2, [pc, #348] ; (800ca3c ) + 800c8de: fba2 2303 umull r2, r3, r2, r3 + 800c8e2: 095b lsrs r3, r3, #5 + 800c8e4: 61fb str r3, [r7, #28] if (timeout > 0xffff) { - 800c8ea: 69fb ldr r3, [r7, #28] - 800c8ec: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800c8f0: d302 bcc.n 800c8f8 + 800c8e6: 69fb ldr r3, [r7, #28] + 800c8e8: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800c8ec: d302 bcc.n 800c8f4 timeout = 0xffff; - 800c8f2: f64f 73ff movw r3, #65535 ; 0xffff - 800c8f6: 61fb str r3, [r7, #28] + 800c8ee: f64f 73ff movw r3, #65535 ; 0xffff + 800c8f2: 61fb str r3, [r7, #28] } dhcp->t0_timeout = (u16_t)timeout; - 800c8f8: 69fb ldr r3, [r7, #28] - 800c8fa: b29a uxth r2, r3 - 800c8fc: 69bb ldr r3, [r7, #24] - 800c8fe: 829a strh r2, [r3, #20] + 800c8f4: 69fb ldr r3, [r7, #28] + 800c8f6: b29a uxth r2, r3 + 800c8f8: 69bb ldr r3, [r7, #24] + 800c8fa: 829a strh r2, [r3, #20] if (dhcp->t0_timeout == 0) { - 800c900: 69bb ldr r3, [r7, #24] - 800c902: 8a9b ldrh r3, [r3, #20] - 800c904: 2b00 cmp r3, #0 - 800c906: d102 bne.n 800c90e + 800c8fc: 69bb ldr r3, [r7, #24] + 800c8fe: 8a9b ldrh r3, [r3, #20] + 800c900: 2b00 cmp r3, #0 + 800c902: d102 bne.n 800c90a dhcp->t0_timeout = 1; - 800c908: 69bb ldr r3, [r7, #24] - 800c90a: 2201 movs r2, #1 - 800c90c: 829a strh r2, [r3, #20] + 800c904: 69bb ldr r3, [r7, #24] + 800c906: 2201 movs r2, #1 + 800c908: 829a strh r2, [r3, #20] } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t0_lease * 1000)); } /* temporary DHCP lease? */ if (dhcp->offered_t1_renew != 0xffffffffUL) { - 800c90e: 69bb ldr r3, [r7, #24] - 800c910: 6adb ldr r3, [r3, #44] ; 0x2c - 800c912: f1b3 3fff cmp.w r3, #4294967295 - 800c916: d01d beq.n 800c954 + 800c90a: 69bb ldr r3, [r7, #24] + 800c90c: 6adb ldr r3, [r3, #44] ; 0x2c + 800c90e: f1b3 3fff cmp.w r3, #4294967295 + 800c912: d01d beq.n 800c950 /* set renewal period timer */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t1 renewal timer %"U32_F" secs\n", dhcp->offered_t1_renew)); timeout = (dhcp->offered_t1_renew + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS; - 800c918: 69bb ldr r3, [r7, #24] - 800c91a: 6adb ldr r3, [r3, #44] ; 0x2c - 800c91c: 331e adds r3, #30 - 800c91e: 4a48 ldr r2, [pc, #288] ; (800ca40 ) - 800c920: fba2 2303 umull r2, r3, r2, r3 - 800c924: 095b lsrs r3, r3, #5 - 800c926: 61fb str r3, [r7, #28] + 800c914: 69bb ldr r3, [r7, #24] + 800c916: 6adb ldr r3, [r3, #44] ; 0x2c + 800c918: 331e adds r3, #30 + 800c91a: 4a48 ldr r2, [pc, #288] ; (800ca3c ) + 800c91c: fba2 2303 umull r2, r3, r2, r3 + 800c920: 095b lsrs r3, r3, #5 + 800c922: 61fb str r3, [r7, #28] if (timeout > 0xffff) { - 800c928: 69fb ldr r3, [r7, #28] - 800c92a: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800c92e: d302 bcc.n 800c936 + 800c924: 69fb ldr r3, [r7, #28] + 800c926: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800c92a: d302 bcc.n 800c932 timeout = 0xffff; - 800c930: f64f 73ff movw r3, #65535 ; 0xffff - 800c934: 61fb str r3, [r7, #28] + 800c92c: f64f 73ff movw r3, #65535 ; 0xffff + 800c930: 61fb str r3, [r7, #28] } dhcp->t1_timeout = (u16_t)timeout; - 800c936: 69fb ldr r3, [r7, #28] - 800c938: b29a uxth r2, r3 - 800c93a: 69bb ldr r3, [r7, #24] - 800c93c: 815a strh r2, [r3, #10] + 800c932: 69fb ldr r3, [r7, #28] + 800c934: b29a uxth r2, r3 + 800c936: 69bb ldr r3, [r7, #24] + 800c938: 815a strh r2, [r3, #10] if (dhcp->t1_timeout == 0) { - 800c93e: 69bb ldr r3, [r7, #24] - 800c940: 895b ldrh r3, [r3, #10] - 800c942: 2b00 cmp r3, #0 - 800c944: d102 bne.n 800c94c + 800c93a: 69bb ldr r3, [r7, #24] + 800c93c: 895b ldrh r3, [r3, #10] + 800c93e: 2b00 cmp r3, #0 + 800c940: d102 bne.n 800c948 dhcp->t1_timeout = 1; - 800c946: 69bb ldr r3, [r7, #24] - 800c948: 2201 movs r2, #1 - 800c94a: 815a strh r2, [r3, #10] + 800c942: 69bb ldr r3, [r7, #24] + 800c944: 2201 movs r2, #1 + 800c946: 815a strh r2, [r3, #10] } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t1_renew * 1000)); dhcp->t1_renew_time = dhcp->t1_timeout; + 800c948: 69bb ldr r3, [r7, #24] + 800c94a: 895a ldrh r2, [r3, #10] 800c94c: 69bb ldr r3, [r7, #24] - 800c94e: 895a ldrh r2, [r3, #10] - 800c950: 69bb ldr r3, [r7, #24] - 800c952: 81da strh r2, [r3, #14] + 800c94e: 81da strh r2, [r3, #14] } /* set renewal period timer */ if (dhcp->offered_t2_rebind != 0xffffffffUL) { - 800c954: 69bb ldr r3, [r7, #24] - 800c956: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c958: f1b3 3fff cmp.w r3, #4294967295 - 800c95c: d01d beq.n 800c99a + 800c950: 69bb ldr r3, [r7, #24] + 800c952: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c954: f1b3 3fff cmp.w r3, #4294967295 + 800c958: d01d beq.n 800c996 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t2 rebind timer %"U32_F" secs\n", dhcp->offered_t2_rebind)); timeout = (dhcp->offered_t2_rebind + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS; - 800c95e: 69bb ldr r3, [r7, #24] - 800c960: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c962: 331e adds r3, #30 - 800c964: 4a36 ldr r2, [pc, #216] ; (800ca40 ) - 800c966: fba2 2303 umull r2, r3, r2, r3 - 800c96a: 095b lsrs r3, r3, #5 - 800c96c: 61fb str r3, [r7, #28] + 800c95a: 69bb ldr r3, [r7, #24] + 800c95c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c95e: 331e adds r3, #30 + 800c960: 4a36 ldr r2, [pc, #216] ; (800ca3c ) + 800c962: fba2 2303 umull r2, r3, r2, r3 + 800c966: 095b lsrs r3, r3, #5 + 800c968: 61fb str r3, [r7, #28] if (timeout > 0xffff) { - 800c96e: 69fb ldr r3, [r7, #28] - 800c970: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800c974: d302 bcc.n 800c97c + 800c96a: 69fb ldr r3, [r7, #28] + 800c96c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800c970: d302 bcc.n 800c978 timeout = 0xffff; - 800c976: f64f 73ff movw r3, #65535 ; 0xffff - 800c97a: 61fb str r3, [r7, #28] + 800c972: f64f 73ff movw r3, #65535 ; 0xffff + 800c976: 61fb str r3, [r7, #28] } dhcp->t2_timeout = (u16_t)timeout; - 800c97c: 69fb ldr r3, [r7, #28] - 800c97e: b29a uxth r2, r3 - 800c980: 69bb ldr r3, [r7, #24] - 800c982: 819a strh r2, [r3, #12] + 800c978: 69fb ldr r3, [r7, #28] + 800c97a: b29a uxth r2, r3 + 800c97c: 69bb ldr r3, [r7, #24] + 800c97e: 819a strh r2, [r3, #12] if (dhcp->t2_timeout == 0) { - 800c984: 69bb ldr r3, [r7, #24] - 800c986: 899b ldrh r3, [r3, #12] - 800c988: 2b00 cmp r3, #0 - 800c98a: d102 bne.n 800c992 + 800c980: 69bb ldr r3, [r7, #24] + 800c982: 899b ldrh r3, [r3, #12] + 800c984: 2b00 cmp r3, #0 + 800c986: d102 bne.n 800c98e dhcp->t2_timeout = 1; - 800c98c: 69bb ldr r3, [r7, #24] - 800c98e: 2201 movs r2, #1 - 800c990: 819a strh r2, [r3, #12] + 800c988: 69bb ldr r3, [r7, #24] + 800c98a: 2201 movs r2, #1 + 800c98c: 819a strh r2, [r3, #12] } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t2_rebind * 1000)); dhcp->t2_rebind_time = dhcp->t2_timeout; + 800c98e: 69bb ldr r3, [r7, #24] + 800c990: 899a ldrh r2, [r3, #12] 800c992: 69bb ldr r3, [r7, #24] - 800c994: 899a ldrh r2, [r3, #12] - 800c996: 69bb ldr r3, [r7, #24] - 800c998: 821a strh r2, [r3, #16] + 800c994: 821a strh r2, [r3, #16] } /* If we have sub 1 minute lease, t2 and t1 will kick in at the same time. */ if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) { + 800c996: 69bb ldr r3, [r7, #24] + 800c998: 895a ldrh r2, [r3, #10] 800c99a: 69bb ldr r3, [r7, #24] - 800c99c: 895a ldrh r2, [r3, #10] - 800c99e: 69bb ldr r3, [r7, #24] - 800c9a0: 899b ldrh r3, [r3, #12] - 800c9a2: 429a cmp r2, r3 - 800c9a4: d306 bcc.n 800c9b4 - 800c9a6: 69bb ldr r3, [r7, #24] - 800c9a8: 899b ldrh r3, [r3, #12] - 800c9aa: 2b00 cmp r3, #0 - 800c9ac: d002 beq.n 800c9b4 + 800c99c: 899b ldrh r3, [r3, #12] + 800c99e: 429a cmp r2, r3 + 800c9a0: d306 bcc.n 800c9b0 + 800c9a2: 69bb ldr r3, [r7, #24] + 800c9a4: 899b ldrh r3, [r3, #12] + 800c9a6: 2b00 cmp r3, #0 + 800c9a8: d002 beq.n 800c9b0 dhcp->t1_timeout = 0; - 800c9ae: 69bb ldr r3, [r7, #24] - 800c9b0: 2200 movs r2, #0 - 800c9b2: 815a strh r2, [r3, #10] + 800c9aa: 69bb ldr r3, [r7, #24] + 800c9ac: 2200 movs r2, #0 + 800c9ae: 815a strh r2, [r3, #10] } if (dhcp->subnet_mask_given) { - 800c9b4: 69bb ldr r3, [r7, #24] - 800c9b6: 79db ldrb r3, [r3, #7] - 800c9b8: 2b00 cmp r3, #0 - 800c9ba: d003 beq.n 800c9c4 + 800c9b0: 69bb ldr r3, [r7, #24] + 800c9b2: 79db ldrb r3, [r3, #7] + 800c9b4: 2b00 cmp r3, #0 + 800c9b6: d003 beq.n 800c9c0 /* copy offered network mask */ ip4_addr_copy(sn_mask, dhcp->offered_sn_mask); - 800c9bc: 69bb ldr r3, [r7, #24] - 800c9be: 6a1b ldr r3, [r3, #32] - 800c9c0: 613b str r3, [r7, #16] - 800c9c2: e014 b.n 800c9ee + 800c9b8: 69bb ldr r3, [r7, #24] + 800c9ba: 6a1b ldr r3, [r3, #32] + 800c9bc: 613b str r3, [r7, #16] + 800c9be: e014 b.n 800c9ea } else { /* subnet mask not given, choose a safe subnet mask given the network class */ u8_t first_octet = ip4_addr1(&dhcp->offered_ip_addr); - 800c9c4: 69bb ldr r3, [r7, #24] - 800c9c6: 331c adds r3, #28 - 800c9c8: 781b ldrb r3, [r3, #0] - 800c9ca: 75fb strb r3, [r7, #23] + 800c9c0: 69bb ldr r3, [r7, #24] + 800c9c2: 331c adds r3, #28 + 800c9c4: 781b ldrb r3, [r3, #0] + 800c9c6: 75fb strb r3, [r7, #23] if (first_octet <= 127) { - 800c9cc: f997 3017 ldrsb.w r3, [r7, #23] - 800c9d0: 2b00 cmp r3, #0 - 800c9d2: db02 blt.n 800c9da + 800c9c8: f997 3017 ldrsb.w r3, [r7, #23] + 800c9cc: 2b00 cmp r3, #0 + 800c9ce: db02 blt.n 800c9d6 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL)); - 800c9d4: 23ff movs r3, #255 ; 0xff - 800c9d6: 613b str r3, [r7, #16] - 800c9d8: e009 b.n 800c9ee + 800c9d0: 23ff movs r3, #255 ; 0xff + 800c9d2: 613b str r3, [r7, #16] + 800c9d4: e009 b.n 800c9ea } else if (first_octet >= 192) { - 800c9da: 7dfb ldrb r3, [r7, #23] - 800c9dc: 2bbf cmp r3, #191 ; 0xbf - 800c9de: d903 bls.n 800c9e8 + 800c9d6: 7dfb ldrb r3, [r7, #23] + 800c9d8: 2bbf cmp r3, #191 ; 0xbf + 800c9da: d903 bls.n 800c9e4 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL)); - 800c9e0: f06f 437f mvn.w r3, #4278190080 ; 0xff000000 - 800c9e4: 613b str r3, [r7, #16] - 800c9e6: e002 b.n 800c9ee + 800c9dc: f06f 437f mvn.w r3, #4278190080 ; 0xff000000 + 800c9e0: 613b str r3, [r7, #16] + 800c9e2: e002 b.n 800c9ea } else { ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL)); - 800c9e8: f64f 73ff movw r3, #65535 ; 0xffff - 800c9ec: 613b str r3, [r7, #16] + 800c9e4: f64f 73ff movw r3, #65535 ; 0xffff + 800c9e8: 613b str r3, [r7, #16] } } ip4_addr_copy(gw_addr, dhcp->offered_gw_addr); - 800c9ee: 69bb ldr r3, [r7, #24] - 800c9f0: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c9f2: 60fb str r3, [r7, #12] + 800c9ea: 69bb ldr r3, [r7, #24] + 800c9ec: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c9ee: 60fb str r3, [r7, #12] /* gateway address not given? */ if (ip4_addr_isany_val(gw_addr)) { - 800c9f4: 68fb ldr r3, [r7, #12] - 800c9f6: 2b00 cmp r3, #0 - 800c9f8: d108 bne.n 800ca0c + 800c9f0: 68fb ldr r3, [r7, #12] + 800c9f2: 2b00 cmp r3, #0 + 800c9f4: d108 bne.n 800ca08 /* copy network address */ ip4_addr_get_network(&gw_addr, &dhcp->offered_ip_addr, &sn_mask); - 800c9fa: 69bb ldr r3, [r7, #24] - 800c9fc: 69da ldr r2, [r3, #28] - 800c9fe: 693b ldr r3, [r7, #16] - 800ca00: 4013 ands r3, r2 - 800ca02: 60fb str r3, [r7, #12] + 800c9f6: 69bb ldr r3, [r7, #24] + 800c9f8: 69da ldr r2, [r3, #28] + 800c9fa: 693b ldr r3, [r7, #16] + 800c9fc: 4013 ands r3, r2 + 800c9fe: 60fb str r3, [r7, #12] /* use first host address on network as gateway */ ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL)); - 800ca04: 68fb ldr r3, [r7, #12] - 800ca06: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 - 800ca0a: 60fb str r3, [r7, #12] + 800ca00: 68fb ldr r3, [r7, #12] + 800ca02: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 + 800ca06: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_bind(): IP: 0x%08"X32_F" SN: 0x%08"X32_F" GW: 0x%08"X32_F"\n", ip4_addr_get_u32(&dhcp->offered_ip_addr), ip4_addr_get_u32(&sn_mask), ip4_addr_get_u32(&gw_addr))); /* netif is now bound to DHCP leased address - set this before assigning the address to ensure the callback can use dhcp_supplied_address() */ dhcp_set_state(dhcp, DHCP_STATE_BOUND); - 800ca0c: 210a movs r1, #10 - 800ca0e: 69b8 ldr r0, [r7, #24] - 800ca10: f000 faa0 bl 800cf54 + 800ca08: 210a movs r1, #10 + 800ca0a: 69b8 ldr r0, [r7, #24] + 800ca0c: f000 faa0 bl 800cf50 netif_set_addr(netif, &dhcp->offered_ip_addr, &sn_mask, &gw_addr); - 800ca14: 69bb ldr r3, [r7, #24] - 800ca16: f103 011c add.w r1, r3, #28 - 800ca1a: f107 030c add.w r3, r7, #12 - 800ca1e: f107 0210 add.w r2, r7, #16 - 800ca22: 6878 ldr r0, [r7, #4] - 800ca24: f7f8 fada bl 8004fdc + 800ca10: 69bb ldr r3, [r7, #24] + 800ca12: f103 011c add.w r1, r3, #28 + 800ca16: f107 030c add.w r3, r7, #12 + 800ca1a: f107 0210 add.w r2, r7, #16 + 800ca1e: 6878 ldr r0, [r7, #4] + 800ca20: f7f8 fada bl 8004fd8 /* interface is used by routing now that an address is set */ } - 800ca28: 3720 adds r7, #32 - 800ca2a: 46bd mov sp, r7 - 800ca2c: bd80 pop {r7, pc} - 800ca2e: bf00 nop - 800ca30: 0801720c .word 0x0801720c - 800ca34: 0801736c .word 0x0801736c - 800ca38: 0801726c .word 0x0801726c - 800ca3c: 08017388 .word 0x08017388 - 800ca40: 88888889 .word 0x88888889 + 800ca24: 3720 adds r7, #32 + 800ca26: 46bd mov sp, r7 + 800ca28: bd80 pop {r7, pc} + 800ca2a: bf00 nop + 800ca2c: 0801720c .word 0x0801720c + 800ca30: 0801736c .word 0x0801736c + 800ca34: 0801726c .word 0x0801726c + 800ca38: 08017388 .word 0x08017388 + 800ca3c: 88888889 .word 0x88888889 -0800ca44 : +0800ca40 : * * @param netif network interface which must renew its lease */ err_t dhcp_renew(struct netif *netif) { - 800ca44: b580 push {r7, lr} - 800ca46: b08a sub sp, #40 ; 0x28 - 800ca48: af02 add r7, sp, #8 - 800ca4a: 6078 str r0, [r7, #4] + 800ca40: b580 push {r7, lr} + 800ca42: b08a sub sp, #40 ; 0x28 + 800ca44: af02 add r7, sp, #8 + 800ca46: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800ca4c: 687b ldr r3, [r7, #4] - 800ca4e: 6a5b ldr r3, [r3, #36] ; 0x24 - 800ca50: 61bb str r3, [r7, #24] + 800ca48: 687b ldr r3, [r7, #4] + 800ca4a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800ca4c: 61bb str r3, [r7, #24] struct pbuf *p_out; u16_t options_out_len; LWIP_ASSERT_CORE_LOCKED(); LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_renew()\n")); dhcp_set_state(dhcp, DHCP_STATE_RENEWING); - 800ca52: 2105 movs r1, #5 - 800ca54: 69b8 ldr r0, [r7, #24] - 800ca56: f000 fa7d bl 800cf54 + 800ca4e: 2105 movs r1, #5 + 800ca50: 69b8 ldr r0, [r7, #24] + 800ca52: f000 fa7d bl 800cf50 /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - 800ca5a: f107 030c add.w r3, r7, #12 - 800ca5e: 2203 movs r2, #3 - 800ca60: 69b9 ldr r1, [r7, #24] - 800ca62: 6878 ldr r0, [r7, #4] - 800ca64: f000 ff02 bl 800d86c - 800ca68: 6178 str r0, [r7, #20] + 800ca56: f107 030c add.w r3, r7, #12 + 800ca5a: 2203 movs r2, #3 + 800ca5c: 69b9 ldr r1, [r7, #24] + 800ca5e: 6878 ldr r0, [r7, #4] + 800ca60: f000 ff02 bl 800d868 + 800ca64: 6178 str r0, [r7, #20] if (p_out != NULL) { - 800ca6a: 697b ldr r3, [r7, #20] - 800ca6c: 2b00 cmp r3, #0 - 800ca6e: d04e beq.n 800cb0e + 800ca66: 697b ldr r3, [r7, #20] + 800ca68: 2b00 cmp r3, #0 + 800ca6a: d04e beq.n 800cb0a struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 800ca70: 697b ldr r3, [r7, #20] - 800ca72: 685b ldr r3, [r3, #4] - 800ca74: 613b str r3, [r7, #16] + 800ca6c: 697b ldr r3, [r7, #20] + 800ca6e: 685b ldr r3, [r3, #4] + 800ca70: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 800ca76: 89b8 ldrh r0, [r7, #12] - 800ca78: 693b ldr r3, [r7, #16] - 800ca7a: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800ca7e: 2302 movs r3, #2 - 800ca80: 2239 movs r2, #57 ; 0x39 - 800ca82: f000 fa81 bl 800cf88 - 800ca86: 4603 mov r3, r0 - 800ca88: 81bb strh r3, [r7, #12] + 800ca72: 89b8 ldrh r0, [r7, #12] + 800ca74: 693b ldr r3, [r7, #16] + 800ca76: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800ca7a: 2302 movs r3, #2 + 800ca7c: 2239 movs r2, #57 ; 0x39 + 800ca7e: f000 fa81 bl 800cf84 + 800ca82: 4603 mov r3, r0 + 800ca84: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - 800ca8a: 89b8 ldrh r0, [r7, #12] - 800ca8c: 693b ldr r3, [r7, #16] - 800ca8e: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800ca92: 687b ldr r3, [r7, #4] - 800ca94: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800ca96: 461a mov r2, r3 - 800ca98: f000 fad0 bl 800d03c - 800ca9c: 4603 mov r3, r0 - 800ca9e: 81bb strh r3, [r7, #12] + 800ca86: 89b8 ldrh r0, [r7, #12] + 800ca88: 693b ldr r3, [r7, #16] + 800ca8a: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800ca8e: 687b ldr r3, [r7, #4] + 800ca90: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800ca92: 461a mov r2, r3 + 800ca94: f000 fad0 bl 800d038 + 800ca98: 4603 mov r3, r0 + 800ca9a: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 800caa0: 89b8 ldrh r0, [r7, #12] - 800caa2: 693b ldr r3, [r7, #16] - 800caa4: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800caa8: 2303 movs r3, #3 - 800caaa: 2237 movs r2, #55 ; 0x37 - 800caac: f000 fa6c bl 800cf88 - 800cab0: 4603 mov r3, r0 - 800cab2: 81bb strh r3, [r7, #12] + 800ca9c: 89b8 ldrh r0, [r7, #12] + 800ca9e: 693b ldr r3, [r7, #16] + 800caa0: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800caa4: 2303 movs r3, #3 + 800caa6: 2237 movs r2, #55 ; 0x37 + 800caa8: f000 fa6c bl 800cf84 + 800caac: 4603 mov r3, r0 + 800caae: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800cab4: 2300 movs r3, #0 - 800cab6: 77bb strb r3, [r7, #30] - 800cab8: e00e b.n 800cad8 + 800cab0: 2300 movs r3, #0 + 800cab2: 77bb strb r3, [r7, #30] + 800cab4: e00e b.n 800cad4 options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 800caba: 89b8 ldrh r0, [r7, #12] - 800cabc: 693b ldr r3, [r7, #16] - 800cabe: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cac2: 7fbb ldrb r3, [r7, #30] - 800cac4: 4a2a ldr r2, [pc, #168] ; (800cb70 ) - 800cac6: 5cd3 ldrb r3, [r2, r3] - 800cac8: 461a mov r2, r3 - 800caca: f000 fa91 bl 800cff0 - 800cace: 4603 mov r3, r0 - 800cad0: 81bb strh r3, [r7, #12] + 800cab6: 89b8 ldrh r0, [r7, #12] + 800cab8: 693b ldr r3, [r7, #16] + 800caba: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cabe: 7fbb ldrb r3, [r7, #30] + 800cac0: 4a2a ldr r2, [pc, #168] ; (800cb6c ) + 800cac2: 5cd3 ldrb r3, [r2, r3] + 800cac4: 461a mov r2, r3 + 800cac6: f000 fa91 bl 800cfec + 800caca: 4603 mov r3, r0 + 800cacc: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800cad2: 7fbb ldrb r3, [r7, #30] - 800cad4: 3301 adds r3, #1 - 800cad6: 77bb strb r3, [r7, #30] - 800cad8: 7fbb ldrb r3, [r7, #30] - 800cada: 2b02 cmp r3, #2 - 800cadc: d9ed bls.n 800caba + 800cace: 7fbb ldrb r3, [r7, #30] + 800cad0: 3301 adds r3, #1 + 800cad2: 77bb strb r3, [r7, #30] + 800cad4: 7fbb ldrb r3, [r7, #30] + 800cad6: 2b02 cmp r3, #2 + 800cad8: d9ed bls.n 800cab6 #if LWIP_NETIF_HOSTNAME options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif); #endif /* LWIP_NETIF_HOSTNAME */ LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_RENEWING, msg_out, DHCP_REQUEST, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 800cade: 89b8 ldrh r0, [r7, #12] - 800cae0: 693b ldr r3, [r7, #16] - 800cae2: 33f0 adds r3, #240 ; 0xf0 - 800cae4: 697a ldr r2, [r7, #20] - 800cae6: 4619 mov r1, r3 - 800cae8: f000 ff96 bl 800da18 + 800cada: 89b8 ldrh r0, [r7, #12] + 800cadc: 693b ldr r3, [r7, #16] + 800cade: 33f0 adds r3, #240 ; 0xf0 + 800cae0: 697a ldr r2, [r7, #20] + 800cae2: 4619 mov r1, r3 + 800cae4: f000 ff96 bl 800da14 result = udp_sendto_if(dhcp_pcb, p_out, &dhcp->server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif); - 800caec: 4b21 ldr r3, [pc, #132] ; (800cb74 ) - 800caee: 6818 ldr r0, [r3, #0] - 800caf0: 69bb ldr r3, [r7, #24] - 800caf2: f103 0218 add.w r2, r3, #24 - 800caf6: 687b ldr r3, [r7, #4] - 800caf8: 9300 str r3, [sp, #0] - 800cafa: 2343 movs r3, #67 ; 0x43 - 800cafc: 6979 ldr r1, [r7, #20] - 800cafe: f7fe fe53 bl 800b7a8 - 800cb02: 4603 mov r3, r0 - 800cb04: 77fb strb r3, [r7, #31] + 800cae8: 4b21 ldr r3, [pc, #132] ; (800cb70 ) + 800caea: 6818 ldr r0, [r3, #0] + 800caec: 69bb ldr r3, [r7, #24] + 800caee: f103 0218 add.w r2, r3, #24 + 800caf2: 687b ldr r3, [r7, #4] + 800caf4: 9300 str r3, [sp, #0] + 800caf6: 2343 movs r3, #67 ; 0x43 + 800caf8: 6979 ldr r1, [r7, #20] + 800cafa: f7fe fe53 bl 800b7a4 + 800cafe: 4603 mov r3, r0 + 800cb00: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 800cb06: 6978 ldr r0, [r7, #20] - 800cb08: f7f8 ff48 bl 800599c - 800cb0c: e001 b.n 800cb12 + 800cb02: 6978 ldr r0, [r7, #20] + 800cb04: f7f8 ff48 bl 8005998 + 800cb08: e001 b.n 800cb0e LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew: RENEWING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_renew: could not allocate DHCP request\n")); result = ERR_MEM; - 800cb0e: 23ff movs r3, #255 ; 0xff - 800cb10: 77fb strb r3, [r7, #31] + 800cb0a: 23ff movs r3, #255 ; 0xff + 800cb0c: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 800cb12: 69bb ldr r3, [r7, #24] - 800cb14: 799b ldrb r3, [r3, #6] - 800cb16: 2bff cmp r3, #255 ; 0xff - 800cb18: d005 beq.n 800cb26 + 800cb0e: 69bb ldr r3, [r7, #24] + 800cb10: 799b ldrb r3, [r3, #6] + 800cb12: 2bff cmp r3, #255 ; 0xff + 800cb14: d005 beq.n 800cb22 dhcp->tries++; - 800cb1a: 69bb ldr r3, [r7, #24] - 800cb1c: 799b ldrb r3, [r3, #6] - 800cb1e: 3301 adds r3, #1 - 800cb20: b2da uxtb r2, r3 - 800cb22: 69bb ldr r3, [r7, #24] - 800cb24: 719a strb r2, [r3, #6] + 800cb16: 69bb ldr r3, [r7, #24] + 800cb18: 799b ldrb r3, [r3, #6] + 800cb1a: 3301 adds r3, #1 + 800cb1c: b2da uxtb r2, r3 + 800cb1e: 69bb ldr r3, [r7, #24] + 800cb20: 719a strb r2, [r3, #6] } /* back-off on retries, but to a maximum of 20 seconds */ msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 2000 : 20 * 1000); - 800cb26: 69bb ldr r3, [r7, #24] - 800cb28: 799b ldrb r3, [r3, #6] - 800cb2a: 2b09 cmp r3, #9 - 800cb2c: d80a bhi.n 800cb44 - 800cb2e: 69bb ldr r3, [r7, #24] - 800cb30: 799b ldrb r3, [r3, #6] - 800cb32: b29b uxth r3, r3 - 800cb34: 461a mov r2, r3 - 800cb36: 0152 lsls r2, r2, #5 - 800cb38: 1ad2 subs r2, r2, r3 - 800cb3a: 0092 lsls r2, r2, #2 - 800cb3c: 4413 add r3, r2 - 800cb3e: 011b lsls r3, r3, #4 - 800cb40: b29b uxth r3, r3 - 800cb42: e001 b.n 800cb48 - 800cb44: f644 6320 movw r3, #20000 ; 0x4e20 - 800cb48: 81fb strh r3, [r7, #14] + 800cb22: 69bb ldr r3, [r7, #24] + 800cb24: 799b ldrb r3, [r3, #6] + 800cb26: 2b09 cmp r3, #9 + 800cb28: d80a bhi.n 800cb40 + 800cb2a: 69bb ldr r3, [r7, #24] + 800cb2c: 799b ldrb r3, [r3, #6] + 800cb2e: b29b uxth r3, r3 + 800cb30: 461a mov r2, r3 + 800cb32: 0152 lsls r2, r2, #5 + 800cb34: 1ad2 subs r2, r2, r3 + 800cb36: 0092 lsls r2, r2, #2 + 800cb38: 4413 add r3, r2 + 800cb3a: 011b lsls r3, r3, #4 + 800cb3c: b29b uxth r3, r3 + 800cb3e: e001 b.n 800cb44 + 800cb40: f644 6320 movw r3, #20000 ; 0x4e20 + 800cb44: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 800cb4a: 89fb ldrh r3, [r7, #14] - 800cb4c: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 800cb50: 4a09 ldr r2, [pc, #36] ; (800cb78 ) - 800cb52: fb82 1203 smull r1, r2, r2, r3 - 800cb56: 1152 asrs r2, r2, #5 - 800cb58: 17db asrs r3, r3, #31 - 800cb5a: 1ad3 subs r3, r2, r3 - 800cb5c: b29a uxth r2, r3 - 800cb5e: 69bb ldr r3, [r7, #24] - 800cb60: 811a strh r2, [r3, #8] + 800cb46: 89fb ldrh r3, [r7, #14] + 800cb48: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 800cb4c: 4a09 ldr r2, [pc, #36] ; (800cb74 ) + 800cb4e: fb82 1203 smull r1, r2, r2, r3 + 800cb52: 1152 asrs r2, r2, #5 + 800cb54: 17db asrs r3, r3, #31 + 800cb56: 1ad3 subs r3, r2, r3 + 800cb58: b29a uxth r2, r3 + 800cb5a: 69bb ldr r3, [r7, #24] + 800cb5c: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 800cb62: f997 301f ldrsb.w r3, [r7, #31] + 800cb5e: f997 301f ldrsb.w r3, [r7, #31] } - 800cb66: 4618 mov r0, r3 - 800cb68: 3720 adds r7, #32 - 800cb6a: 46bd mov sp, r7 - 800cb6c: bd80 pop {r7, pc} - 800cb6e: bf00 nop - 800cb70: 2000002c .word 0x2000002c - 800cb74: 20008c88 .word 0x20008c88 - 800cb78: 10624dd3 .word 0x10624dd3 + 800cb62: 4618 mov r0, r3 + 800cb64: 3720 adds r7, #32 + 800cb66: 46bd mov sp, r7 + 800cb68: bd80 pop {r7, pc} + 800cb6a: bf00 nop + 800cb6c: 2000002c .word 0x2000002c + 800cb70: 20008c88 .word 0x20008c88 + 800cb74: 10624dd3 .word 0x10624dd3 -0800cb7c : +0800cb78 : * * @param netif network interface which must rebind with a DHCP server */ static err_t dhcp_rebind(struct netif *netif) { - 800cb7c: b580 push {r7, lr} - 800cb7e: b08a sub sp, #40 ; 0x28 - 800cb80: af02 add r7, sp, #8 - 800cb82: 6078 str r0, [r7, #4] + 800cb78: b580 push {r7, lr} + 800cb7a: b08a sub sp, #40 ; 0x28 + 800cb7c: af02 add r7, sp, #8 + 800cb7e: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800cb84: 687b ldr r3, [r7, #4] - 800cb86: 6a5b ldr r3, [r3, #36] ; 0x24 - 800cb88: 61bb str r3, [r7, #24] + 800cb80: 687b ldr r3, [r7, #4] + 800cb82: 6a5b ldr r3, [r3, #36] ; 0x24 + 800cb84: 61bb str r3, [r7, #24] u8_t i; struct pbuf *p_out; u16_t options_out_len; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind()\n")); dhcp_set_state(dhcp, DHCP_STATE_REBINDING); - 800cb8a: 2104 movs r1, #4 - 800cb8c: 69b8 ldr r0, [r7, #24] - 800cb8e: f000 f9e1 bl 800cf54 + 800cb86: 2104 movs r1, #4 + 800cb88: 69b8 ldr r0, [r7, #24] + 800cb8a: f000 f9e1 bl 800cf50 /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - 800cb92: f107 030c add.w r3, r7, #12 - 800cb96: 2203 movs r2, #3 - 800cb98: 69b9 ldr r1, [r7, #24] - 800cb9a: 6878 ldr r0, [r7, #4] - 800cb9c: f000 fe66 bl 800d86c - 800cba0: 6178 str r0, [r7, #20] + 800cb8e: f107 030c add.w r3, r7, #12 + 800cb92: 2203 movs r2, #3 + 800cb94: 69b9 ldr r1, [r7, #24] + 800cb96: 6878 ldr r0, [r7, #4] + 800cb98: f000 fe66 bl 800d868 + 800cb9c: 6178 str r0, [r7, #20] if (p_out != NULL) { - 800cba2: 697b ldr r3, [r7, #20] - 800cba4: 2b00 cmp r3, #0 - 800cba6: d04c beq.n 800cc42 + 800cb9e: 697b ldr r3, [r7, #20] + 800cba0: 2b00 cmp r3, #0 + 800cba2: d04c beq.n 800cc3e struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 800cba8: 697b ldr r3, [r7, #20] - 800cbaa: 685b ldr r3, [r3, #4] - 800cbac: 613b str r3, [r7, #16] + 800cba4: 697b ldr r3, [r7, #20] + 800cba6: 685b ldr r3, [r3, #4] + 800cba8: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 800cbae: 89b8 ldrh r0, [r7, #12] - 800cbb0: 693b ldr r3, [r7, #16] - 800cbb2: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cbb6: 2302 movs r3, #2 - 800cbb8: 2239 movs r2, #57 ; 0x39 - 800cbba: f000 f9e5 bl 800cf88 - 800cbbe: 4603 mov r3, r0 - 800cbc0: 81bb strh r3, [r7, #12] + 800cbaa: 89b8 ldrh r0, [r7, #12] + 800cbac: 693b ldr r3, [r7, #16] + 800cbae: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cbb2: 2302 movs r3, #2 + 800cbb4: 2239 movs r2, #57 ; 0x39 + 800cbb6: f000 f9e5 bl 800cf84 + 800cbba: 4603 mov r3, r0 + 800cbbc: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - 800cbc2: 89b8 ldrh r0, [r7, #12] - 800cbc4: 693b ldr r3, [r7, #16] - 800cbc6: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cbca: 687b ldr r3, [r7, #4] - 800cbcc: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800cbce: 461a mov r2, r3 - 800cbd0: f000 fa34 bl 800d03c - 800cbd4: 4603 mov r3, r0 - 800cbd6: 81bb strh r3, [r7, #12] + 800cbbe: 89b8 ldrh r0, [r7, #12] + 800cbc0: 693b ldr r3, [r7, #16] + 800cbc2: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cbc6: 687b ldr r3, [r7, #4] + 800cbc8: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800cbca: 461a mov r2, r3 + 800cbcc: f000 fa34 bl 800d038 + 800cbd0: 4603 mov r3, r0 + 800cbd2: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 800cbd8: 89b8 ldrh r0, [r7, #12] - 800cbda: 693b ldr r3, [r7, #16] - 800cbdc: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cbe0: 2303 movs r3, #3 - 800cbe2: 2237 movs r2, #55 ; 0x37 - 800cbe4: f000 f9d0 bl 800cf88 - 800cbe8: 4603 mov r3, r0 - 800cbea: 81bb strh r3, [r7, #12] + 800cbd4: 89b8 ldrh r0, [r7, #12] + 800cbd6: 693b ldr r3, [r7, #16] + 800cbd8: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cbdc: 2303 movs r3, #3 + 800cbde: 2237 movs r2, #55 ; 0x37 + 800cbe0: f000 f9d0 bl 800cf84 + 800cbe4: 4603 mov r3, r0 + 800cbe6: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800cbec: 2300 movs r3, #0 - 800cbee: 77bb strb r3, [r7, #30] - 800cbf0: e00e b.n 800cc10 + 800cbe8: 2300 movs r3, #0 + 800cbea: 77bb strb r3, [r7, #30] + 800cbec: e00e b.n 800cc0c options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 800cbf2: 89b8 ldrh r0, [r7, #12] - 800cbf4: 693b ldr r3, [r7, #16] - 800cbf6: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cbfa: 7fbb ldrb r3, [r7, #30] - 800cbfc: 4a29 ldr r2, [pc, #164] ; (800cca4 ) - 800cbfe: 5cd3 ldrb r3, [r2, r3] - 800cc00: 461a mov r2, r3 - 800cc02: f000 f9f5 bl 800cff0 - 800cc06: 4603 mov r3, r0 - 800cc08: 81bb strh r3, [r7, #12] + 800cbee: 89b8 ldrh r0, [r7, #12] + 800cbf0: 693b ldr r3, [r7, #16] + 800cbf2: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cbf6: 7fbb ldrb r3, [r7, #30] + 800cbf8: 4a29 ldr r2, [pc, #164] ; (800cca0 ) + 800cbfa: 5cd3 ldrb r3, [r2, r3] + 800cbfc: 461a mov r2, r3 + 800cbfe: f000 f9f5 bl 800cfec + 800cc02: 4603 mov r3, r0 + 800cc04: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800cc0a: 7fbb ldrb r3, [r7, #30] - 800cc0c: 3301 adds r3, #1 - 800cc0e: 77bb strb r3, [r7, #30] - 800cc10: 7fbb ldrb r3, [r7, #30] - 800cc12: 2b02 cmp r3, #2 - 800cc14: d9ed bls.n 800cbf2 + 800cc06: 7fbb ldrb r3, [r7, #30] + 800cc08: 3301 adds r3, #1 + 800cc0a: 77bb strb r3, [r7, #30] + 800cc0c: 7fbb ldrb r3, [r7, #30] + 800cc0e: 2b02 cmp r3, #2 + 800cc10: d9ed bls.n 800cbee #if LWIP_NETIF_HOSTNAME options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif); #endif /* LWIP_NETIF_HOSTNAME */ LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBINDING, msg_out, DHCP_DISCOVER, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 800cc16: 89b8 ldrh r0, [r7, #12] - 800cc18: 693b ldr r3, [r7, #16] - 800cc1a: 33f0 adds r3, #240 ; 0xf0 - 800cc1c: 697a ldr r2, [r7, #20] - 800cc1e: 4619 mov r1, r3 - 800cc20: f000 fefa bl 800da18 + 800cc12: 89b8 ldrh r0, [r7, #12] + 800cc14: 693b ldr r3, [r7, #16] + 800cc16: 33f0 adds r3, #240 ; 0xf0 + 800cc18: 697a ldr r2, [r7, #20] + 800cc1a: 4619 mov r1, r3 + 800cc1c: f000 fefa bl 800da14 /* broadcast to server */ result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif); - 800cc24: 4b20 ldr r3, [pc, #128] ; (800cca8 ) - 800cc26: 6818 ldr r0, [r3, #0] - 800cc28: 687b ldr r3, [r7, #4] - 800cc2a: 9300 str r3, [sp, #0] - 800cc2c: 2343 movs r3, #67 ; 0x43 - 800cc2e: 4a1f ldr r2, [pc, #124] ; (800ccac ) - 800cc30: 6979 ldr r1, [r7, #20] - 800cc32: f7fe fdb9 bl 800b7a8 - 800cc36: 4603 mov r3, r0 - 800cc38: 77fb strb r3, [r7, #31] + 800cc20: 4b20 ldr r3, [pc, #128] ; (800cca4 ) + 800cc22: 6818 ldr r0, [r3, #0] + 800cc24: 687b ldr r3, [r7, #4] + 800cc26: 9300 str r3, [sp, #0] + 800cc28: 2343 movs r3, #67 ; 0x43 + 800cc2a: 4a1f ldr r2, [pc, #124] ; (800cca8 ) + 800cc2c: 6979 ldr r1, [r7, #20] + 800cc2e: f7fe fdb9 bl 800b7a4 + 800cc32: 4603 mov r3, r0 + 800cc34: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 800cc3a: 6978 ldr r0, [r7, #20] - 800cc3c: f7f8 feae bl 800599c - 800cc40: e001 b.n 800cc46 + 800cc36: 6978 ldr r0, [r7, #20] + 800cc38: f7f8 feae bl 8005998 + 800cc3c: e001 b.n 800cc42 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind: REBINDING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_rebind: could not allocate DHCP request\n")); result = ERR_MEM; - 800cc42: 23ff movs r3, #255 ; 0xff - 800cc44: 77fb strb r3, [r7, #31] + 800cc3e: 23ff movs r3, #255 ; 0xff + 800cc40: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 800cc46: 69bb ldr r3, [r7, #24] - 800cc48: 799b ldrb r3, [r3, #6] - 800cc4a: 2bff cmp r3, #255 ; 0xff - 800cc4c: d005 beq.n 800cc5a + 800cc42: 69bb ldr r3, [r7, #24] + 800cc44: 799b ldrb r3, [r3, #6] + 800cc46: 2bff cmp r3, #255 ; 0xff + 800cc48: d005 beq.n 800cc56 dhcp->tries++; - 800cc4e: 69bb ldr r3, [r7, #24] - 800cc50: 799b ldrb r3, [r3, #6] - 800cc52: 3301 adds r3, #1 - 800cc54: b2da uxtb r2, r3 - 800cc56: 69bb ldr r3, [r7, #24] - 800cc58: 719a strb r2, [r3, #6] + 800cc4a: 69bb ldr r3, [r7, #24] + 800cc4c: 799b ldrb r3, [r3, #6] + 800cc4e: 3301 adds r3, #1 + 800cc50: b2da uxtb r2, r3 + 800cc52: 69bb ldr r3, [r7, #24] + 800cc54: 719a strb r2, [r3, #6] } msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000); - 800cc5a: 69bb ldr r3, [r7, #24] - 800cc5c: 799b ldrb r3, [r3, #6] - 800cc5e: 2b09 cmp r3, #9 - 800cc60: d80a bhi.n 800cc78 - 800cc62: 69bb ldr r3, [r7, #24] - 800cc64: 799b ldrb r3, [r3, #6] - 800cc66: b29b uxth r3, r3 - 800cc68: 461a mov r2, r3 - 800cc6a: 0152 lsls r2, r2, #5 - 800cc6c: 1ad2 subs r2, r2, r3 - 800cc6e: 0092 lsls r2, r2, #2 - 800cc70: 4413 add r3, r2 - 800cc72: 00db lsls r3, r3, #3 - 800cc74: b29b uxth r3, r3 - 800cc76: e001 b.n 800cc7c - 800cc78: f242 7310 movw r3, #10000 ; 0x2710 - 800cc7c: 81fb strh r3, [r7, #14] + 800cc56: 69bb ldr r3, [r7, #24] + 800cc58: 799b ldrb r3, [r3, #6] + 800cc5a: 2b09 cmp r3, #9 + 800cc5c: d80a bhi.n 800cc74 + 800cc5e: 69bb ldr r3, [r7, #24] + 800cc60: 799b ldrb r3, [r3, #6] + 800cc62: b29b uxth r3, r3 + 800cc64: 461a mov r2, r3 + 800cc66: 0152 lsls r2, r2, #5 + 800cc68: 1ad2 subs r2, r2, r3 + 800cc6a: 0092 lsls r2, r2, #2 + 800cc6c: 4413 add r3, r2 + 800cc6e: 00db lsls r3, r3, #3 + 800cc70: b29b uxth r3, r3 + 800cc72: e001 b.n 800cc78 + 800cc74: f242 7310 movw r3, #10000 ; 0x2710 + 800cc78: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 800cc7e: 89fb ldrh r3, [r7, #14] - 800cc80: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 800cc84: 4a0a ldr r2, [pc, #40] ; (800ccb0 ) - 800cc86: fb82 1203 smull r1, r2, r2, r3 - 800cc8a: 1152 asrs r2, r2, #5 - 800cc8c: 17db asrs r3, r3, #31 - 800cc8e: 1ad3 subs r3, r2, r3 - 800cc90: b29a uxth r2, r3 - 800cc92: 69bb ldr r3, [r7, #24] - 800cc94: 811a strh r2, [r3, #8] + 800cc7a: 89fb ldrh r3, [r7, #14] + 800cc7c: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 800cc80: 4a0a ldr r2, [pc, #40] ; (800ccac ) + 800cc82: fb82 1203 smull r1, r2, r2, r3 + 800cc86: 1152 asrs r2, r2, #5 + 800cc88: 17db asrs r3, r3, #31 + 800cc8a: 1ad3 subs r3, r2, r3 + 800cc8c: b29a uxth r2, r3 + 800cc8e: 69bb ldr r3, [r7, #24] + 800cc90: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 800cc96: f997 301f ldrsb.w r3, [r7, #31] + 800cc92: f997 301f ldrsb.w r3, [r7, #31] } - 800cc9a: 4618 mov r0, r3 - 800cc9c: 3720 adds r7, #32 - 800cc9e: 46bd mov sp, r7 - 800cca0: bd80 pop {r7, pc} - 800cca2: bf00 nop - 800cca4: 2000002c .word 0x2000002c - 800cca8: 20008c88 .word 0x20008c88 - 800ccac: 08017de0 .word 0x08017de0 - 800ccb0: 10624dd3 .word 0x10624dd3 + 800cc96: 4618 mov r0, r3 + 800cc98: 3720 adds r7, #32 + 800cc9a: 46bd mov sp, r7 + 800cc9c: bd80 pop {r7, pc} + 800cc9e: bf00 nop + 800cca0: 2000002c .word 0x2000002c + 800cca4: 20008c88 .word 0x20008c88 + 800cca8: 08017de0 .word 0x08017de0 + 800ccac: 10624dd3 .word 0x10624dd3 -0800ccb4 : +0800ccb0 : * * @param netif network interface which must reboot */ static err_t dhcp_reboot(struct netif *netif) { - 800ccb4: b5b0 push {r4, r5, r7, lr} - 800ccb6: b08a sub sp, #40 ; 0x28 - 800ccb8: af02 add r7, sp, #8 - 800ccba: 6078 str r0, [r7, #4] + 800ccb0: b5b0 push {r4, r5, r7, lr} + 800ccb2: b08a sub sp, #40 ; 0x28 + 800ccb4: af02 add r7, sp, #8 + 800ccb6: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800ccbc: 687b ldr r3, [r7, #4] - 800ccbe: 6a5b ldr r3, [r3, #36] ; 0x24 - 800ccc0: 61bb str r3, [r7, #24] + 800ccb8: 687b ldr r3, [r7, #4] + 800ccba: 6a5b ldr r3, [r3, #36] ; 0x24 + 800ccbc: 61bb str r3, [r7, #24] u8_t i; struct pbuf *p_out; u16_t options_out_len; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot()\n")); dhcp_set_state(dhcp, DHCP_STATE_REBOOTING); - 800ccc2: 2103 movs r1, #3 - 800ccc4: 69b8 ldr r0, [r7, #24] - 800ccc6: f000 f945 bl 800cf54 + 800ccbe: 2103 movs r1, #3 + 800ccc0: 69b8 ldr r0, [r7, #24] + 800ccc2: f000 f945 bl 800cf50 /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - 800ccca: f107 030c add.w r3, r7, #12 - 800ccce: 2203 movs r2, #3 - 800ccd0: 69b9 ldr r1, [r7, #24] - 800ccd2: 6878 ldr r0, [r7, #4] - 800ccd4: f000 fdca bl 800d86c - 800ccd8: 6178 str r0, [r7, #20] + 800ccc6: f107 030c add.w r3, r7, #12 + 800ccca: 2203 movs r2, #3 + 800cccc: 69b9 ldr r1, [r7, #24] + 800ccce: 6878 ldr r0, [r7, #4] + 800ccd0: f000 fdca bl 800d868 + 800ccd4: 6178 str r0, [r7, #20] if (p_out != NULL) { - 800ccda: 697b ldr r3, [r7, #20] - 800ccdc: 2b00 cmp r3, #0 - 800ccde: d066 beq.n 800cdae + 800ccd6: 697b ldr r3, [r7, #20] + 800ccd8: 2b00 cmp r3, #0 + 800ccda: d066 beq.n 800cdaa struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 800cce0: 697b ldr r3, [r7, #20] - 800cce2: 685b ldr r3, [r3, #4] - 800cce4: 613b str r3, [r7, #16] + 800ccdc: 697b ldr r3, [r7, #20] + 800ccde: 685b ldr r3, [r3, #4] + 800cce0: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 800cce6: 89b8 ldrh r0, [r7, #12] - 800cce8: 693b ldr r3, [r7, #16] - 800ccea: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800ccee: 2302 movs r3, #2 - 800ccf0: 2239 movs r2, #57 ; 0x39 - 800ccf2: f000 f949 bl 800cf88 - 800ccf6: 4603 mov r3, r0 - 800ccf8: 81bb strh r3, [r7, #12] + 800cce2: 89b8 ldrh r0, [r7, #12] + 800cce4: 693b ldr r3, [r7, #16] + 800cce6: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800ccea: 2302 movs r3, #2 + 800ccec: 2239 movs r2, #57 ; 0x39 + 800ccee: f000 f949 bl 800cf84 + 800ccf2: 4603 mov r3, r0 + 800ccf4: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN_MIN_REQUIRED); - 800ccfa: 89b8 ldrh r0, [r7, #12] - 800ccfc: 693b ldr r3, [r7, #16] - 800ccfe: 33f0 adds r3, #240 ; 0xf0 - 800cd00: f44f 7210 mov.w r2, #576 ; 0x240 - 800cd04: 4619 mov r1, r3 - 800cd06: f000 f999 bl 800d03c - 800cd0a: 4603 mov r3, r0 - 800cd0c: 81bb strh r3, [r7, #12] + 800ccf6: 89b8 ldrh r0, [r7, #12] + 800ccf8: 693b ldr r3, [r7, #16] + 800ccfa: 33f0 adds r3, #240 ; 0xf0 + 800ccfc: f44f 7210 mov.w r2, #576 ; 0x240 + 800cd00: 4619 mov r1, r3 + 800cd02: f000 f999 bl 800d038 + 800cd06: 4603 mov r3, r0 + 800cd08: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - 800cd0e: 89b8 ldrh r0, [r7, #12] - 800cd10: 693b ldr r3, [r7, #16] - 800cd12: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cd16: 2304 movs r3, #4 - 800cd18: 2232 movs r2, #50 ; 0x32 - 800cd1a: f000 f935 bl 800cf88 - 800cd1e: 4603 mov r3, r0 - 800cd20: 81bb strh r3, [r7, #12] + 800cd0a: 89b8 ldrh r0, [r7, #12] + 800cd0c: 693b ldr r3, [r7, #16] + 800cd0e: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cd12: 2304 movs r3, #4 + 800cd14: 2232 movs r2, #50 ; 0x32 + 800cd16: f000 f935 bl 800cf84 + 800cd1a: 4603 mov r3, r0 + 800cd1c: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - 800cd22: 89bc ldrh r4, [r7, #12] - 800cd24: 693b ldr r3, [r7, #16] - 800cd26: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 800cd2a: 69bb ldr r3, [r7, #24] - 800cd2c: 69db ldr r3, [r3, #28] - 800cd2e: 4618 mov r0, r3 - 800cd30: f7f7 fadf bl 80042f2 - 800cd34: 4603 mov r3, r0 - 800cd36: 461a mov r2, r3 - 800cd38: 4629 mov r1, r5 - 800cd3a: 4620 mov r0, r4 - 800cd3c: f000 f9b0 bl 800d0a0 - 800cd40: 4603 mov r3, r0 - 800cd42: 81bb strh r3, [r7, #12] + 800cd1e: 89bc ldrh r4, [r7, #12] + 800cd20: 693b ldr r3, [r7, #16] + 800cd22: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 800cd26: 69bb ldr r3, [r7, #24] + 800cd28: 69db ldr r3, [r3, #28] + 800cd2a: 4618 mov r0, r3 + 800cd2c: f7f7 fadf bl 80042ee + 800cd30: 4603 mov r3, r0 + 800cd32: 461a mov r2, r3 + 800cd34: 4629 mov r1, r5 + 800cd36: 4620 mov r0, r4 + 800cd38: f000 f9b0 bl 800d09c + 800cd3c: 4603 mov r3, r0 + 800cd3e: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 800cd44: 89b8 ldrh r0, [r7, #12] - 800cd46: 693b ldr r3, [r7, #16] - 800cd48: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cd4c: 2303 movs r3, #3 - 800cd4e: 2237 movs r2, #55 ; 0x37 - 800cd50: f000 f91a bl 800cf88 - 800cd54: 4603 mov r3, r0 - 800cd56: 81bb strh r3, [r7, #12] + 800cd40: 89b8 ldrh r0, [r7, #12] + 800cd42: 693b ldr r3, [r7, #16] + 800cd44: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cd48: 2303 movs r3, #3 + 800cd4a: 2237 movs r2, #55 ; 0x37 + 800cd4c: f000 f91a bl 800cf84 + 800cd50: 4603 mov r3, r0 + 800cd52: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800cd58: 2300 movs r3, #0 - 800cd5a: 77bb strb r3, [r7, #30] - 800cd5c: e00e b.n 800cd7c + 800cd54: 2300 movs r3, #0 + 800cd56: 77bb strb r3, [r7, #30] + 800cd58: e00e b.n 800cd78 options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 800cd5e: 89b8 ldrh r0, [r7, #12] - 800cd60: 693b ldr r3, [r7, #16] - 800cd62: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cd66: 7fbb ldrb r3, [r7, #30] - 800cd68: 4a29 ldr r2, [pc, #164] ; (800ce10 ) - 800cd6a: 5cd3 ldrb r3, [r2, r3] - 800cd6c: 461a mov r2, r3 - 800cd6e: f000 f93f bl 800cff0 - 800cd72: 4603 mov r3, r0 - 800cd74: 81bb strh r3, [r7, #12] + 800cd5a: 89b8 ldrh r0, [r7, #12] + 800cd5c: 693b ldr r3, [r7, #16] + 800cd5e: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cd62: 7fbb ldrb r3, [r7, #30] + 800cd64: 4a29 ldr r2, [pc, #164] ; (800ce0c ) + 800cd66: 5cd3 ldrb r3, [r2, r3] + 800cd68: 461a mov r2, r3 + 800cd6a: f000 f93f bl 800cfec + 800cd6e: 4603 mov r3, r0 + 800cd70: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 800cd76: 7fbb ldrb r3, [r7, #30] - 800cd78: 3301 adds r3, #1 - 800cd7a: 77bb strb r3, [r7, #30] - 800cd7c: 7fbb ldrb r3, [r7, #30] - 800cd7e: 2b02 cmp r3, #2 - 800cd80: d9ed bls.n 800cd5e + 800cd72: 7fbb ldrb r3, [r7, #30] + 800cd74: 3301 adds r3, #1 + 800cd76: 77bb strb r3, [r7, #30] + 800cd78: 7fbb ldrb r3, [r7, #30] + 800cd7a: 2b02 cmp r3, #2 + 800cd7c: d9ed bls.n 800cd5a #if LWIP_NETIF_HOSTNAME options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif); #endif /* LWIP_NETIF_HOSTNAME */ LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBOOTING, msg_out, DHCP_REQUEST, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 800cd82: 89b8 ldrh r0, [r7, #12] - 800cd84: 693b ldr r3, [r7, #16] - 800cd86: 33f0 adds r3, #240 ; 0xf0 - 800cd88: 697a ldr r2, [r7, #20] - 800cd8a: 4619 mov r1, r3 - 800cd8c: f000 fe44 bl 800da18 + 800cd7e: 89b8 ldrh r0, [r7, #12] + 800cd80: 693b ldr r3, [r7, #16] + 800cd82: 33f0 adds r3, #240 ; 0xf0 + 800cd84: 697a ldr r2, [r7, #20] + 800cd86: 4619 mov r1, r3 + 800cd88: f000 fe44 bl 800da14 /* broadcast to server */ result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif); - 800cd90: 4b20 ldr r3, [pc, #128] ; (800ce14 ) - 800cd92: 6818 ldr r0, [r3, #0] - 800cd94: 687b ldr r3, [r7, #4] - 800cd96: 9300 str r3, [sp, #0] - 800cd98: 2343 movs r3, #67 ; 0x43 - 800cd9a: 4a1f ldr r2, [pc, #124] ; (800ce18 ) - 800cd9c: 6979 ldr r1, [r7, #20] - 800cd9e: f7fe fd03 bl 800b7a8 - 800cda2: 4603 mov r3, r0 - 800cda4: 77fb strb r3, [r7, #31] + 800cd8c: 4b20 ldr r3, [pc, #128] ; (800ce10 ) + 800cd8e: 6818 ldr r0, [r3, #0] + 800cd90: 687b ldr r3, [r7, #4] + 800cd92: 9300 str r3, [sp, #0] + 800cd94: 2343 movs r3, #67 ; 0x43 + 800cd96: 4a1f ldr r2, [pc, #124] ; (800ce14 ) + 800cd98: 6979 ldr r1, [r7, #20] + 800cd9a: f7fe fd03 bl 800b7a4 + 800cd9e: 4603 mov r3, r0 + 800cda0: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 800cda6: 6978 ldr r0, [r7, #20] - 800cda8: f7f8 fdf8 bl 800599c - 800cdac: e001 b.n 800cdb2 + 800cda2: 6978 ldr r0, [r7, #20] + 800cda4: f7f8 fdf8 bl 8005998 + 800cda8: e001 b.n 800cdae LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot: REBOOTING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_reboot: could not allocate DHCP request\n")); result = ERR_MEM; - 800cdae: 23ff movs r3, #255 ; 0xff - 800cdb0: 77fb strb r3, [r7, #31] + 800cdaa: 23ff movs r3, #255 ; 0xff + 800cdac: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 800cdb2: 69bb ldr r3, [r7, #24] - 800cdb4: 799b ldrb r3, [r3, #6] - 800cdb6: 2bff cmp r3, #255 ; 0xff - 800cdb8: d005 beq.n 800cdc6 + 800cdae: 69bb ldr r3, [r7, #24] + 800cdb0: 799b ldrb r3, [r3, #6] + 800cdb2: 2bff cmp r3, #255 ; 0xff + 800cdb4: d005 beq.n 800cdc2 dhcp->tries++; - 800cdba: 69bb ldr r3, [r7, #24] - 800cdbc: 799b ldrb r3, [r3, #6] - 800cdbe: 3301 adds r3, #1 - 800cdc0: b2da uxtb r2, r3 - 800cdc2: 69bb ldr r3, [r7, #24] - 800cdc4: 719a strb r2, [r3, #6] + 800cdb6: 69bb ldr r3, [r7, #24] + 800cdb8: 799b ldrb r3, [r3, #6] + 800cdba: 3301 adds r3, #1 + 800cdbc: b2da uxtb r2, r3 + 800cdbe: 69bb ldr r3, [r7, #24] + 800cdc0: 719a strb r2, [r3, #6] } msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000); - 800cdc6: 69bb ldr r3, [r7, #24] - 800cdc8: 799b ldrb r3, [r3, #6] - 800cdca: 2b09 cmp r3, #9 - 800cdcc: d80a bhi.n 800cde4 - 800cdce: 69bb ldr r3, [r7, #24] - 800cdd0: 799b ldrb r3, [r3, #6] - 800cdd2: b29b uxth r3, r3 - 800cdd4: 461a mov r2, r3 - 800cdd6: 0152 lsls r2, r2, #5 - 800cdd8: 1ad2 subs r2, r2, r3 - 800cdda: 0092 lsls r2, r2, #2 - 800cddc: 4413 add r3, r2 - 800cdde: 00db lsls r3, r3, #3 - 800cde0: b29b uxth r3, r3 - 800cde2: e001 b.n 800cde8 - 800cde4: f242 7310 movw r3, #10000 ; 0x2710 - 800cde8: 81fb strh r3, [r7, #14] + 800cdc2: 69bb ldr r3, [r7, #24] + 800cdc4: 799b ldrb r3, [r3, #6] + 800cdc6: 2b09 cmp r3, #9 + 800cdc8: d80a bhi.n 800cde0 + 800cdca: 69bb ldr r3, [r7, #24] + 800cdcc: 799b ldrb r3, [r3, #6] + 800cdce: b29b uxth r3, r3 + 800cdd0: 461a mov r2, r3 + 800cdd2: 0152 lsls r2, r2, #5 + 800cdd4: 1ad2 subs r2, r2, r3 + 800cdd6: 0092 lsls r2, r2, #2 + 800cdd8: 4413 add r3, r2 + 800cdda: 00db lsls r3, r3, #3 + 800cddc: b29b uxth r3, r3 + 800cdde: e001 b.n 800cde4 + 800cde0: f242 7310 movw r3, #10000 ; 0x2710 + 800cde4: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 800cdea: 89fb ldrh r3, [r7, #14] - 800cdec: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 800cdf0: 4a0a ldr r2, [pc, #40] ; (800ce1c ) - 800cdf2: fb82 1203 smull r1, r2, r2, r3 - 800cdf6: 1152 asrs r2, r2, #5 - 800cdf8: 17db asrs r3, r3, #31 - 800cdfa: 1ad3 subs r3, r2, r3 - 800cdfc: b29a uxth r2, r3 - 800cdfe: 69bb ldr r3, [r7, #24] - 800ce00: 811a strh r2, [r3, #8] + 800cde6: 89fb ldrh r3, [r7, #14] + 800cde8: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 800cdec: 4a0a ldr r2, [pc, #40] ; (800ce18 ) + 800cdee: fb82 1203 smull r1, r2, r2, r3 + 800cdf2: 1152 asrs r2, r2, #5 + 800cdf4: 17db asrs r3, r3, #31 + 800cdf6: 1ad3 subs r3, r2, r3 + 800cdf8: b29a uxth r2, r3 + 800cdfa: 69bb ldr r3, [r7, #24] + 800cdfc: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 800ce02: f997 301f ldrsb.w r3, [r7, #31] + 800cdfe: f997 301f ldrsb.w r3, [r7, #31] } - 800ce06: 4618 mov r0, r3 - 800ce08: 3720 adds r7, #32 - 800ce0a: 46bd mov sp, r7 - 800ce0c: bdb0 pop {r4, r5, r7, pc} - 800ce0e: bf00 nop - 800ce10: 2000002c .word 0x2000002c - 800ce14: 20008c88 .word 0x20008c88 - 800ce18: 08017de0 .word 0x08017de0 - 800ce1c: 10624dd3 .word 0x10624dd3 + 800ce02: 4618 mov r0, r3 + 800ce04: 3720 adds r7, #32 + 800ce06: 46bd mov sp, r7 + 800ce08: bdb0 pop {r4, r5, r7, pc} + 800ce0a: bf00 nop + 800ce0c: 2000002c .word 0x2000002c + 800ce10: 20008c88 .word 0x20008c88 + 800ce14: 08017de0 .word 0x08017de0 + 800ce18: 10624dd3 .word 0x10624dd3 -0800ce20 : +0800ce1c : * * @param netif network interface */ void dhcp_release_and_stop(struct netif *netif) { - 800ce20: b5b0 push {r4, r5, r7, lr} - 800ce22: b08a sub sp, #40 ; 0x28 - 800ce24: af02 add r7, sp, #8 - 800ce26: 6078 str r0, [r7, #4] + 800ce1c: b5b0 push {r4, r5, r7, lr} + 800ce1e: b08a sub sp, #40 ; 0x28 + 800ce20: af02 add r7, sp, #8 + 800ce22: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 800ce28: 687b ldr r3, [r7, #4] - 800ce2a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800ce2c: 61fb str r3, [r7, #28] + 800ce24: 687b ldr r3, [r7, #4] + 800ce26: 6a5b ldr r3, [r3, #36] ; 0x24 + 800ce28: 61fb str r3, [r7, #28] ip_addr_t server_ip_addr; LWIP_ASSERT_CORE_LOCKED(); LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_release_and_stop()\n")); if (dhcp == NULL) { - 800ce2e: 69fb ldr r3, [r7, #28] - 800ce30: 2b00 cmp r3, #0 - 800ce32: f000 8084 beq.w 800cf3e + 800ce2a: 69fb ldr r3, [r7, #28] + 800ce2c: 2b00 cmp r3, #0 + 800ce2e: f000 8084 beq.w 800cf3a return; } /* already off? -> nothing to do */ if (dhcp->state == DHCP_STATE_OFF) { - 800ce36: 69fb ldr r3, [r7, #28] - 800ce38: 795b ldrb r3, [r3, #5] - 800ce3a: 2b00 cmp r3, #0 - 800ce3c: f000 8081 beq.w 800cf42 + 800ce32: 69fb ldr r3, [r7, #28] + 800ce34: 795b ldrb r3, [r3, #5] + 800ce36: 2b00 cmp r3, #0 + 800ce38: f000 8081 beq.w 800cf3e return; } ip_addr_copy(server_ip_addr, dhcp->server_ip_addr); - 800ce40: 69fb ldr r3, [r7, #28] - 800ce42: 699b ldr r3, [r3, #24] - 800ce44: 613b str r3, [r7, #16] + 800ce3c: 69fb ldr r3, [r7, #28] + 800ce3e: 699b ldr r3, [r3, #24] + 800ce40: 613b str r3, [r7, #16] /* clean old DHCP offer */ ip_addr_set_zero_ip4(&dhcp->server_ip_addr); - 800ce46: 69fb ldr r3, [r7, #28] - 800ce48: 2200 movs r2, #0 - 800ce4a: 619a str r2, [r3, #24] + 800ce42: 69fb ldr r3, [r7, #28] + 800ce44: 2200 movs r2, #0 + 800ce46: 619a str r2, [r3, #24] ip4_addr_set_zero(&dhcp->offered_ip_addr); - 800ce4c: 69fb ldr r3, [r7, #28] - 800ce4e: 2200 movs r2, #0 - 800ce50: 61da str r2, [r3, #28] + 800ce48: 69fb ldr r3, [r7, #28] + 800ce4a: 2200 movs r2, #0 + 800ce4c: 61da str r2, [r3, #28] ip4_addr_set_zero(&dhcp->offered_sn_mask); - 800ce52: 69fb ldr r3, [r7, #28] - 800ce54: 2200 movs r2, #0 - 800ce56: 621a str r2, [r3, #32] + 800ce4e: 69fb ldr r3, [r7, #28] + 800ce50: 2200 movs r2, #0 + 800ce52: 621a str r2, [r3, #32] ip4_addr_set_zero(&dhcp->offered_gw_addr); - 800ce58: 69fb ldr r3, [r7, #28] - 800ce5a: 2200 movs r2, #0 - 800ce5c: 625a str r2, [r3, #36] ; 0x24 + 800ce54: 69fb ldr r3, [r7, #28] + 800ce56: 2200 movs r2, #0 + 800ce58: 625a str r2, [r3, #36] ; 0x24 #if LWIP_DHCP_BOOTP_FILE ip4_addr_set_zero(&dhcp->offered_si_addr); #endif /* LWIP_DHCP_BOOTP_FILE */ dhcp->offered_t0_lease = dhcp->offered_t1_renew = dhcp->offered_t2_rebind = 0; - 800ce5e: 69fb ldr r3, [r7, #28] - 800ce60: 2200 movs r2, #0 - 800ce62: 631a str r2, [r3, #48] ; 0x30 + 800ce5a: 69fb ldr r3, [r7, #28] + 800ce5c: 2200 movs r2, #0 + 800ce5e: 631a str r2, [r3, #48] ; 0x30 + 800ce60: 69fb ldr r3, [r7, #28] + 800ce62: 6b1a ldr r2, [r3, #48] ; 0x30 800ce64: 69fb ldr r3, [r7, #28] - 800ce66: 6b1a ldr r2, [r3, #48] ; 0x30 + 800ce66: 62da str r2, [r3, #44] ; 0x2c 800ce68: 69fb ldr r3, [r7, #28] - 800ce6a: 62da str r2, [r3, #44] ; 0x2c + 800ce6a: 6ada ldr r2, [r3, #44] ; 0x2c 800ce6c: 69fb ldr r3, [r7, #28] - 800ce6e: 6ada ldr r2, [r3, #44] ; 0x2c - 800ce70: 69fb ldr r3, [r7, #28] - 800ce72: 629a str r2, [r3, #40] ; 0x28 + 800ce6e: 629a str r2, [r3, #40] ; 0x28 dhcp->t1_renew_time = dhcp->t2_rebind_time = dhcp->lease_used = dhcp->t0_timeout = 0; - 800ce74: 69fb ldr r3, [r7, #28] - 800ce76: 2200 movs r2, #0 - 800ce78: 829a strh r2, [r3, #20] + 800ce70: 69fb ldr r3, [r7, #28] + 800ce72: 2200 movs r2, #0 + 800ce74: 829a strh r2, [r3, #20] + 800ce76: 69fb ldr r3, [r7, #28] + 800ce78: 8a9a ldrh r2, [r3, #20] 800ce7a: 69fb ldr r3, [r7, #28] - 800ce7c: 8a9a ldrh r2, [r3, #20] + 800ce7c: 825a strh r2, [r3, #18] 800ce7e: 69fb ldr r3, [r7, #28] - 800ce80: 825a strh r2, [r3, #18] + 800ce80: 8a5a ldrh r2, [r3, #18] 800ce82: 69fb ldr r3, [r7, #28] - 800ce84: 8a5a ldrh r2, [r3, #18] + 800ce84: 821a strh r2, [r3, #16] 800ce86: 69fb ldr r3, [r7, #28] - 800ce88: 821a strh r2, [r3, #16] + 800ce88: 8a1a ldrh r2, [r3, #16] 800ce8a: 69fb ldr r3, [r7, #28] - 800ce8c: 8a1a ldrh r2, [r3, #16] - 800ce8e: 69fb ldr r3, [r7, #28] - 800ce90: 81da strh r2, [r3, #14] + 800ce8c: 81da strh r2, [r3, #14] /* send release message when current IP was assigned via DHCP */ if (dhcp_supplied_address(netif)) { - 800ce92: 6878 ldr r0, [r7, #4] - 800ce94: f000 fdee bl 800da74 - 800ce98: 4603 mov r3, r0 - 800ce9a: 2b00 cmp r3, #0 - 800ce9c: d03b beq.n 800cf16 + 800ce8e: 6878 ldr r0, [r7, #4] + 800ce90: f000 fdee bl 800da70 + 800ce94: 4603 mov r3, r0 + 800ce96: 2b00 cmp r3, #0 + 800ce98: d03b beq.n 800cf12 /* create and initialize the DHCP message header */ struct pbuf *p_out; u16_t options_out_len; p_out = dhcp_create_msg(netif, dhcp, DHCP_RELEASE, &options_out_len); - 800ce9e: f107 030e add.w r3, r7, #14 - 800cea2: 2207 movs r2, #7 - 800cea4: 69f9 ldr r1, [r7, #28] - 800cea6: 6878 ldr r0, [r7, #4] - 800cea8: f000 fce0 bl 800d86c - 800ceac: 61b8 str r0, [r7, #24] + 800ce9a: f107 030e add.w r3, r7, #14 + 800ce9e: 2207 movs r2, #7 + 800cea0: 69f9 ldr r1, [r7, #28] + 800cea2: 6878 ldr r0, [r7, #4] + 800cea4: f000 fce0 bl 800d868 + 800cea8: 61b8 str r0, [r7, #24] if (p_out != NULL) { - 800ceae: 69bb ldr r3, [r7, #24] - 800ceb0: 2b00 cmp r3, #0 - 800ceb2: d030 beq.n 800cf16 + 800ceaa: 69bb ldr r3, [r7, #24] + 800ceac: 2b00 cmp r3, #0 + 800ceae: d030 beq.n 800cf12 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 800ceb4: 69bb ldr r3, [r7, #24] - 800ceb6: 685b ldr r3, [r3, #4] - 800ceb8: 617b str r3, [r7, #20] + 800ceb0: 69bb ldr r3, [r7, #24] + 800ceb2: 685b ldr r3, [r3, #4] + 800ceb4: 617b str r3, [r7, #20] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4); - 800ceba: 89f8 ldrh r0, [r7, #14] - 800cebc: 697b ldr r3, [r7, #20] - 800cebe: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800cec2: 2304 movs r3, #4 - 800cec4: 2236 movs r2, #54 ; 0x36 - 800cec6: f000 f85f bl 800cf88 - 800ceca: 4603 mov r3, r0 - 800cecc: 81fb strh r3, [r7, #14] + 800ceb6: 89f8 ldrh r0, [r7, #14] + 800ceb8: 697b ldr r3, [r7, #20] + 800ceba: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800cebe: 2304 movs r3, #4 + 800cec0: 2236 movs r2, #54 ; 0x36 + 800cec2: f000 f85f bl 800cf84 + 800cec6: 4603 mov r3, r0 + 800cec8: 81fb strh r3, [r7, #14] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&server_ip_addr)))); - 800cece: 89fc ldrh r4, [r7, #14] - 800ced0: 697b ldr r3, [r7, #20] - 800ced2: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 800ced6: 693b ldr r3, [r7, #16] - 800ced8: 4618 mov r0, r3 - 800ceda: f7f7 fa0a bl 80042f2 - 800cede: 4603 mov r3, r0 - 800cee0: 461a mov r2, r3 - 800cee2: 4629 mov r1, r5 - 800cee4: 4620 mov r0, r4 - 800cee6: f000 f8db bl 800d0a0 - 800ceea: 4603 mov r3, r0 - 800ceec: 81fb strh r3, [r7, #14] + 800ceca: 89fc ldrh r4, [r7, #14] + 800cecc: 697b ldr r3, [r7, #20] + 800cece: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 800ced2: 693b ldr r3, [r7, #16] + 800ced4: 4618 mov r0, r3 + 800ced6: f7f7 fa0a bl 80042ee + 800ceda: 4603 mov r3, r0 + 800cedc: 461a mov r2, r3 + 800cede: 4629 mov r1, r5 + 800cee0: 4620 mov r0, r4 + 800cee2: f000 f8db bl 800d09c + 800cee6: 4603 mov r3, r0 + 800cee8: 81fb strh r3, [r7, #14] LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, dhcp->state, msg_out, DHCP_RELEASE, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 800ceee: 89f8 ldrh r0, [r7, #14] - 800cef0: 697b ldr r3, [r7, #20] - 800cef2: 33f0 adds r3, #240 ; 0xf0 - 800cef4: 69ba ldr r2, [r7, #24] - 800cef6: 4619 mov r1, r3 - 800cef8: f000 fd8e bl 800da18 + 800ceea: 89f8 ldrh r0, [r7, #14] + 800ceec: 697b ldr r3, [r7, #20] + 800ceee: 33f0 adds r3, #240 ; 0xf0 + 800cef0: 69ba ldr r2, [r7, #24] + 800cef2: 4619 mov r1, r3 + 800cef4: f000 fd8e bl 800da14 udp_sendto_if(dhcp_pcb, p_out, &server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif); - 800cefc: 4b13 ldr r3, [pc, #76] ; (800cf4c ) - 800cefe: 6818 ldr r0, [r3, #0] - 800cf00: f107 0210 add.w r2, r7, #16 - 800cf04: 687b ldr r3, [r7, #4] - 800cf06: 9300 str r3, [sp, #0] - 800cf08: 2343 movs r3, #67 ; 0x43 - 800cf0a: 69b9 ldr r1, [r7, #24] - 800cf0c: f7fe fc4c bl 800b7a8 + 800cef8: 4b13 ldr r3, [pc, #76] ; (800cf48 ) + 800cefa: 6818 ldr r0, [r3, #0] + 800cefc: f107 0210 add.w r2, r7, #16 + 800cf00: 687b ldr r3, [r7, #4] + 800cf02: 9300 str r3, [sp, #0] + 800cf04: 2343 movs r3, #67 ; 0x43 + 800cf06: 69b9 ldr r1, [r7, #24] + 800cf08: f7fe fc4c bl 800b7a4 pbuf_free(p_out); - 800cf10: 69b8 ldr r0, [r7, #24] - 800cf12: f7f8 fd43 bl 800599c + 800cf0c: 69b8 ldr r0, [r7, #24] + 800cf0e: f7f8 fd43 bl 8005998 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_release: could not allocate DHCP request\n")); } } /* remove IP address from interface (prevents routing from selecting this interface) */ netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); - 800cf16: 4b0e ldr r3, [pc, #56] ; (800cf50 ) - 800cf18: 4a0d ldr r2, [pc, #52] ; (800cf50 ) - 800cf1a: 490d ldr r1, [pc, #52] ; (800cf50 ) - 800cf1c: 6878 ldr r0, [r7, #4] - 800cf1e: f7f8 f85d bl 8004fdc + 800cf12: 4b0e ldr r3, [pc, #56] ; (800cf4c ) + 800cf14: 4a0d ldr r2, [pc, #52] ; (800cf4c ) + 800cf16: 490d ldr r1, [pc, #52] ; (800cf4c ) + 800cf18: 6878 ldr r0, [r7, #4] + 800cf1a: f7f8 f85d bl 8004fd8 autoip_stop(netif); dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF; } #endif /* LWIP_DHCP_AUTOIP_COOP */ dhcp_set_state(dhcp, DHCP_STATE_OFF); - 800cf22: 2100 movs r1, #0 - 800cf24: 69f8 ldr r0, [r7, #28] - 800cf26: f000 f815 bl 800cf54 + 800cf1e: 2100 movs r1, #0 + 800cf20: 69f8 ldr r0, [r7, #28] + 800cf22: f000 f815 bl 800cf50 if (dhcp->pcb_allocated != 0) { - 800cf2a: 69fb ldr r3, [r7, #28] - 800cf2c: 791b ldrb r3, [r3, #4] - 800cf2e: 2b00 cmp r3, #0 - 800cf30: d008 beq.n 800cf44 + 800cf26: 69fb ldr r3, [r7, #28] + 800cf28: 791b ldrb r3, [r3, #4] + 800cf2a: 2b00 cmp r3, #0 + 800cf2c: d008 beq.n 800cf40 dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */ - 800cf32: f7fe ff85 bl 800be40 + 800cf2e: f7fe ff85 bl 800be3c dhcp->pcb_allocated = 0; - 800cf36: 69fb ldr r3, [r7, #28] - 800cf38: 2200 movs r2, #0 - 800cf3a: 711a strb r2, [r3, #4] - 800cf3c: e002 b.n 800cf44 + 800cf32: 69fb ldr r3, [r7, #28] + 800cf34: 2200 movs r2, #0 + 800cf36: 711a strb r2, [r3, #4] + 800cf38: e002 b.n 800cf40 + return; + 800cf3a: bf00 nop + 800cf3c: e000 b.n 800cf40 return; 800cf3e: bf00 nop - 800cf40: e000 b.n 800cf44 - return; - 800cf42: bf00 nop } } - 800cf44: 3720 adds r7, #32 - 800cf46: 46bd mov sp, r7 - 800cf48: bdb0 pop {r4, r5, r7, pc} - 800cf4a: bf00 nop - 800cf4c: 20008c88 .word 0x20008c88 - 800cf50: 08017ddc .word 0x08017ddc + 800cf40: 3720 adds r7, #32 + 800cf42: 46bd mov sp, r7 + 800cf44: bdb0 pop {r4, r5, r7, pc} + 800cf46: bf00 nop + 800cf48: 20008c88 .word 0x20008c88 + 800cf4c: 08017ddc .word 0x08017ddc -0800cf54 : +0800cf50 : * * If the state changed, reset the number of tries. */ static void dhcp_set_state(struct dhcp *dhcp, u8_t new_state) { - 800cf54: b480 push {r7} - 800cf56: b083 sub sp, #12 - 800cf58: af00 add r7, sp, #0 - 800cf5a: 6078 str r0, [r7, #4] - 800cf5c: 460b mov r3, r1 - 800cf5e: 70fb strb r3, [r7, #3] + 800cf50: b480 push {r7} + 800cf52: b083 sub sp, #12 + 800cf54: af00 add r7, sp, #0 + 800cf56: 6078 str r0, [r7, #4] + 800cf58: 460b mov r3, r1 + 800cf5a: 70fb strb r3, [r7, #3] if (new_state != dhcp->state) { - 800cf60: 687b ldr r3, [r7, #4] - 800cf62: 795b ldrb r3, [r3, #5] - 800cf64: 78fa ldrb r2, [r7, #3] - 800cf66: 429a cmp r2, r3 - 800cf68: d008 beq.n 800cf7c + 800cf5c: 687b ldr r3, [r7, #4] + 800cf5e: 795b ldrb r3, [r3, #5] + 800cf60: 78fa ldrb r2, [r7, #3] + 800cf62: 429a cmp r2, r3 + 800cf64: d008 beq.n 800cf78 dhcp->state = new_state; - 800cf6a: 687b ldr r3, [r7, #4] - 800cf6c: 78fa ldrb r2, [r7, #3] - 800cf6e: 715a strb r2, [r3, #5] + 800cf66: 687b ldr r3, [r7, #4] + 800cf68: 78fa ldrb r2, [r7, #3] + 800cf6a: 715a strb r2, [r3, #5] dhcp->tries = 0; - 800cf70: 687b ldr r3, [r7, #4] - 800cf72: 2200 movs r2, #0 - 800cf74: 719a strb r2, [r3, #6] + 800cf6c: 687b ldr r3, [r7, #4] + 800cf6e: 2200 movs r2, #0 + 800cf70: 719a strb r2, [r3, #6] dhcp->request_timeout = 0; - 800cf76: 687b ldr r3, [r7, #4] - 800cf78: 2200 movs r2, #0 - 800cf7a: 811a strh r2, [r3, #8] + 800cf72: 687b ldr r3, [r7, #4] + 800cf74: 2200 movs r2, #0 + 800cf76: 811a strh r2, [r3, #8] } } - 800cf7c: bf00 nop - 800cf7e: 370c adds r7, #12 - 800cf80: 46bd mov sp, r7 - 800cf82: f85d 7b04 ldr.w r7, [sp], #4 - 800cf86: 4770 bx lr + 800cf78: bf00 nop + 800cf7a: 370c adds r7, #12 + 800cf7c: 46bd mov sp, r7 + 800cf7e: f85d 7b04 ldr.w r7, [sp], #4 + 800cf82: 4770 bx lr -0800cf88 : +0800cf84 : * DHCP message. * */ static u16_t dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len) { - 800cf88: b580 push {r7, lr} - 800cf8a: b082 sub sp, #8 - 800cf8c: af00 add r7, sp, #0 - 800cf8e: 6039 str r1, [r7, #0] - 800cf90: 4611 mov r1, r2 - 800cf92: 461a mov r2, r3 - 800cf94: 4603 mov r3, r0 - 800cf96: 80fb strh r3, [r7, #6] - 800cf98: 460b mov r3, r1 - 800cf9a: 717b strb r3, [r7, #5] - 800cf9c: 4613 mov r3, r2 - 800cf9e: 713b strb r3, [r7, #4] + 800cf84: b580 push {r7, lr} + 800cf86: b082 sub sp, #8 + 800cf88: af00 add r7, sp, #0 + 800cf8a: 6039 str r1, [r7, #0] + 800cf8c: 4611 mov r1, r2 + 800cf8e: 461a mov r2, r3 + 800cf90: 4603 mov r3, r0 + 800cf92: 80fb strh r3, [r7, #6] + 800cf94: 460b mov r3, r1 + 800cf96: 717b strb r3, [r7, #5] + 800cf98: 4613 mov r3, r2 + 800cf9a: 713b strb r3, [r7, #4] LWIP_ASSERT("dhcp_option: options_out_len + 2 + option_len <= DHCP_OPTIONS_LEN", options_out_len + 2U + option_len <= DHCP_OPTIONS_LEN); - 800cfa0: 88fa ldrh r2, [r7, #6] - 800cfa2: 793b ldrb r3, [r7, #4] - 800cfa4: 4413 add r3, r2 - 800cfa6: 3302 adds r3, #2 - 800cfa8: 2b44 cmp r3, #68 ; 0x44 - 800cfaa: d906 bls.n 800cfba - 800cfac: 4b0d ldr r3, [pc, #52] ; (800cfe4 ) - 800cfae: f240 529a movw r2, #1434 ; 0x59a - 800cfb2: 490d ldr r1, [pc, #52] ; (800cfe8 ) - 800cfb4: 480d ldr r0, [pc, #52] ; (800cfec ) - 800cfb6: f003 fa0d bl 80103d4 + 800cf9c: 88fa ldrh r2, [r7, #6] + 800cf9e: 793b ldrb r3, [r7, #4] + 800cfa0: 4413 add r3, r2 + 800cfa2: 3302 adds r3, #2 + 800cfa4: 2b44 cmp r3, #68 ; 0x44 + 800cfa6: d906 bls.n 800cfb6 + 800cfa8: 4b0d ldr r3, [pc, #52] ; (800cfe0 ) + 800cfaa: f240 529a movw r2, #1434 ; 0x59a + 800cfae: 490d ldr r1, [pc, #52] ; (800cfe4 ) + 800cfb0: 480d ldr r0, [pc, #52] ; (800cfe8 ) + 800cfb2: f003 fa0d bl 80103d0 options[options_out_len++] = option_type; - 800cfba: 88fb ldrh r3, [r7, #6] - 800cfbc: 1c5a adds r2, r3, #1 - 800cfbe: 80fa strh r2, [r7, #6] - 800cfc0: 461a mov r2, r3 - 800cfc2: 683b ldr r3, [r7, #0] - 800cfc4: 4413 add r3, r2 - 800cfc6: 797a ldrb r2, [r7, #5] - 800cfc8: 701a strb r2, [r3, #0] + 800cfb6: 88fb ldrh r3, [r7, #6] + 800cfb8: 1c5a adds r2, r3, #1 + 800cfba: 80fa strh r2, [r7, #6] + 800cfbc: 461a mov r2, r3 + 800cfbe: 683b ldr r3, [r7, #0] + 800cfc0: 4413 add r3, r2 + 800cfc2: 797a ldrb r2, [r7, #5] + 800cfc4: 701a strb r2, [r3, #0] options[options_out_len++] = option_len; - 800cfca: 88fb ldrh r3, [r7, #6] - 800cfcc: 1c5a adds r2, r3, #1 - 800cfce: 80fa strh r2, [r7, #6] - 800cfd0: 461a mov r2, r3 - 800cfd2: 683b ldr r3, [r7, #0] - 800cfd4: 4413 add r3, r2 - 800cfd6: 793a ldrb r2, [r7, #4] - 800cfd8: 701a strb r2, [r3, #0] + 800cfc6: 88fb ldrh r3, [r7, #6] + 800cfc8: 1c5a adds r2, r3, #1 + 800cfca: 80fa strh r2, [r7, #6] + 800cfcc: 461a mov r2, r3 + 800cfce: 683b ldr r3, [r7, #0] + 800cfd0: 4413 add r3, r2 + 800cfd2: 793a ldrb r2, [r7, #4] + 800cfd4: 701a strb r2, [r3, #0] return options_out_len; - 800cfda: 88fb ldrh r3, [r7, #6] + 800cfd6: 88fb ldrh r3, [r7, #6] } - 800cfdc: 4618 mov r0, r3 - 800cfde: 3708 adds r7, #8 - 800cfe0: 46bd mov sp, r7 - 800cfe2: bd80 pop {r7, pc} - 800cfe4: 0801720c .word 0x0801720c - 800cfe8: 080173a0 .word 0x080173a0 - 800cfec: 0801726c .word 0x0801726c + 800cfd8: 4618 mov r0, r3 + 800cfda: 3708 adds r7, #8 + 800cfdc: 46bd mov sp, r7 + 800cfde: bd80 pop {r7, pc} + 800cfe0: 0801720c .word 0x0801720c + 800cfe4: 080173a0 .word 0x080173a0 + 800cfe8: 0801726c .word 0x0801726c -0800cff0 : +0800cfec : * Concatenate a single byte to the outgoing DHCP message. * */ static u16_t dhcp_option_byte(u16_t options_out_len, u8_t *options, u8_t value) { - 800cff0: b580 push {r7, lr} - 800cff2: b082 sub sp, #8 - 800cff4: af00 add r7, sp, #0 - 800cff6: 4603 mov r3, r0 - 800cff8: 6039 str r1, [r7, #0] - 800cffa: 80fb strh r3, [r7, #6] - 800cffc: 4613 mov r3, r2 - 800cffe: 717b strb r3, [r7, #5] + 800cfec: b580 push {r7, lr} + 800cfee: b082 sub sp, #8 + 800cff0: af00 add r7, sp, #0 + 800cff2: 4603 mov r3, r0 + 800cff4: 6039 str r1, [r7, #0] + 800cff6: 80fb strh r3, [r7, #6] + 800cff8: 4613 mov r3, r2 + 800cffa: 717b strb r3, [r7, #5] LWIP_ASSERT("dhcp_option_byte: options_out_len < DHCP_OPTIONS_LEN", options_out_len < DHCP_OPTIONS_LEN); - 800d000: 88fb ldrh r3, [r7, #6] - 800d002: 2b43 cmp r3, #67 ; 0x43 - 800d004: d906 bls.n 800d014 - 800d006: 4b0a ldr r3, [pc, #40] ; (800d030 ) - 800d008: f240 52a6 movw r2, #1446 ; 0x5a6 - 800d00c: 4909 ldr r1, [pc, #36] ; (800d034 ) - 800d00e: 480a ldr r0, [pc, #40] ; (800d038 ) - 800d010: f003 f9e0 bl 80103d4 + 800cffc: 88fb ldrh r3, [r7, #6] + 800cffe: 2b43 cmp r3, #67 ; 0x43 + 800d000: d906 bls.n 800d010 + 800d002: 4b0a ldr r3, [pc, #40] ; (800d02c ) + 800d004: f240 52a6 movw r2, #1446 ; 0x5a6 + 800d008: 4909 ldr r1, [pc, #36] ; (800d030 ) + 800d00a: 480a ldr r0, [pc, #40] ; (800d034 ) + 800d00c: f003 f9e0 bl 80103d0 options[options_out_len++] = value; - 800d014: 88fb ldrh r3, [r7, #6] - 800d016: 1c5a adds r2, r3, #1 - 800d018: 80fa strh r2, [r7, #6] - 800d01a: 461a mov r2, r3 - 800d01c: 683b ldr r3, [r7, #0] - 800d01e: 4413 add r3, r2 - 800d020: 797a ldrb r2, [r7, #5] - 800d022: 701a strb r2, [r3, #0] + 800d010: 88fb ldrh r3, [r7, #6] + 800d012: 1c5a adds r2, r3, #1 + 800d014: 80fa strh r2, [r7, #6] + 800d016: 461a mov r2, r3 + 800d018: 683b ldr r3, [r7, #0] + 800d01a: 4413 add r3, r2 + 800d01c: 797a ldrb r2, [r7, #5] + 800d01e: 701a strb r2, [r3, #0] return options_out_len; - 800d024: 88fb ldrh r3, [r7, #6] + 800d020: 88fb ldrh r3, [r7, #6] } - 800d026: 4618 mov r0, r3 - 800d028: 3708 adds r7, #8 - 800d02a: 46bd mov sp, r7 - 800d02c: bd80 pop {r7, pc} - 800d02e: bf00 nop - 800d030: 0801720c .word 0x0801720c - 800d034: 080173e4 .word 0x080173e4 - 800d038: 0801726c .word 0x0801726c + 800d022: 4618 mov r0, r3 + 800d024: 3708 adds r7, #8 + 800d026: 46bd mov sp, r7 + 800d028: bd80 pop {r7, pc} + 800d02a: bf00 nop + 800d02c: 0801720c .word 0x0801720c + 800d030: 080173e4 .word 0x080173e4 + 800d034: 0801726c .word 0x0801726c -0800d03c : +0800d038 : static u16_t dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value) { - 800d03c: b580 push {r7, lr} - 800d03e: b082 sub sp, #8 - 800d040: af00 add r7, sp, #0 - 800d042: 4603 mov r3, r0 - 800d044: 6039 str r1, [r7, #0] - 800d046: 80fb strh r3, [r7, #6] - 800d048: 4613 mov r3, r2 - 800d04a: 80bb strh r3, [r7, #4] + 800d038: b580 push {r7, lr} + 800d03a: b082 sub sp, #8 + 800d03c: af00 add r7, sp, #0 + 800d03e: 4603 mov r3, r0 + 800d040: 6039 str r1, [r7, #0] + 800d042: 80fb strh r3, [r7, #6] + 800d044: 4613 mov r3, r2 + 800d046: 80bb strh r3, [r7, #4] LWIP_ASSERT("dhcp_option_short: options_out_len + 2 <= DHCP_OPTIONS_LEN", options_out_len + 2U <= DHCP_OPTIONS_LEN); - 800d04c: 88fb ldrh r3, [r7, #6] - 800d04e: 3302 adds r3, #2 - 800d050: 2b44 cmp r3, #68 ; 0x44 - 800d052: d906 bls.n 800d062 - 800d054: 4b0f ldr r3, [pc, #60] ; (800d094 ) - 800d056: f240 52ae movw r2, #1454 ; 0x5ae - 800d05a: 490f ldr r1, [pc, #60] ; (800d098 ) - 800d05c: 480f ldr r0, [pc, #60] ; (800d09c ) - 800d05e: f003 f9b9 bl 80103d4 + 800d048: 88fb ldrh r3, [r7, #6] + 800d04a: 3302 adds r3, #2 + 800d04c: 2b44 cmp r3, #68 ; 0x44 + 800d04e: d906 bls.n 800d05e + 800d050: 4b0f ldr r3, [pc, #60] ; (800d090 ) + 800d052: f240 52ae movw r2, #1454 ; 0x5ae + 800d056: 490f ldr r1, [pc, #60] ; (800d094 ) + 800d058: 480f ldr r0, [pc, #60] ; (800d098 ) + 800d05a: f003 f9b9 bl 80103d0 options[options_out_len++] = (u8_t)((value & 0xff00U) >> 8); - 800d062: 88bb ldrh r3, [r7, #4] - 800d064: 0a1b lsrs r3, r3, #8 - 800d066: b29a uxth r2, r3 - 800d068: 88fb ldrh r3, [r7, #6] - 800d06a: 1c59 adds r1, r3, #1 - 800d06c: 80f9 strh r1, [r7, #6] - 800d06e: 4619 mov r1, r3 - 800d070: 683b ldr r3, [r7, #0] - 800d072: 440b add r3, r1 - 800d074: b2d2 uxtb r2, r2 - 800d076: 701a strb r2, [r3, #0] + 800d05e: 88bb ldrh r3, [r7, #4] + 800d060: 0a1b lsrs r3, r3, #8 + 800d062: b29a uxth r2, r3 + 800d064: 88fb ldrh r3, [r7, #6] + 800d066: 1c59 adds r1, r3, #1 + 800d068: 80f9 strh r1, [r7, #6] + 800d06a: 4619 mov r1, r3 + 800d06c: 683b ldr r3, [r7, #0] + 800d06e: 440b add r3, r1 + 800d070: b2d2 uxtb r2, r2 + 800d072: 701a strb r2, [r3, #0] options[options_out_len++] = (u8_t) (value & 0x00ffU); - 800d078: 88fb ldrh r3, [r7, #6] - 800d07a: 1c5a adds r2, r3, #1 - 800d07c: 80fa strh r2, [r7, #6] - 800d07e: 461a mov r2, r3 - 800d080: 683b ldr r3, [r7, #0] - 800d082: 4413 add r3, r2 - 800d084: 88ba ldrh r2, [r7, #4] - 800d086: b2d2 uxtb r2, r2 - 800d088: 701a strb r2, [r3, #0] + 800d074: 88fb ldrh r3, [r7, #6] + 800d076: 1c5a adds r2, r3, #1 + 800d078: 80fa strh r2, [r7, #6] + 800d07a: 461a mov r2, r3 + 800d07c: 683b ldr r3, [r7, #0] + 800d07e: 4413 add r3, r2 + 800d080: 88ba ldrh r2, [r7, #4] + 800d082: b2d2 uxtb r2, r2 + 800d084: 701a strb r2, [r3, #0] return options_out_len; - 800d08a: 88fb ldrh r3, [r7, #6] + 800d086: 88fb ldrh r3, [r7, #6] } - 800d08c: 4618 mov r0, r3 - 800d08e: 3708 adds r7, #8 - 800d090: 46bd mov sp, r7 - 800d092: bd80 pop {r7, pc} - 800d094: 0801720c .word 0x0801720c - 800d098: 0801741c .word 0x0801741c - 800d09c: 0801726c .word 0x0801726c + 800d088: 4618 mov r0, r3 + 800d08a: 3708 adds r7, #8 + 800d08c: 46bd mov sp, r7 + 800d08e: bd80 pop {r7, pc} + 800d090: 0801720c .word 0x0801720c + 800d094: 0801741c .word 0x0801741c + 800d098: 0801726c .word 0x0801726c -0800d0a0 : +0800d09c : static u16_t dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value) { - 800d0a0: b580 push {r7, lr} - 800d0a2: b084 sub sp, #16 - 800d0a4: af00 add r7, sp, #0 - 800d0a6: 4603 mov r3, r0 - 800d0a8: 60b9 str r1, [r7, #8] - 800d0aa: 607a str r2, [r7, #4] - 800d0ac: 81fb strh r3, [r7, #14] + 800d09c: b580 push {r7, lr} + 800d09e: b084 sub sp, #16 + 800d0a0: af00 add r7, sp, #0 + 800d0a2: 4603 mov r3, r0 + 800d0a4: 60b9 str r1, [r7, #8] + 800d0a6: 607a str r2, [r7, #4] + 800d0a8: 81fb strh r3, [r7, #14] LWIP_ASSERT("dhcp_option_long: options_out_len + 4 <= DHCP_OPTIONS_LEN", options_out_len + 4U <= DHCP_OPTIONS_LEN); - 800d0ae: 89fb ldrh r3, [r7, #14] - 800d0b0: 3304 adds r3, #4 - 800d0b2: 2b44 cmp r3, #68 ; 0x44 - 800d0b4: d906 bls.n 800d0c4 - 800d0b6: 4b19 ldr r3, [pc, #100] ; (800d11c ) - 800d0b8: f240 52b7 movw r2, #1463 ; 0x5b7 - 800d0bc: 4918 ldr r1, [pc, #96] ; (800d120 ) - 800d0be: 4819 ldr r0, [pc, #100] ; (800d124 ) - 800d0c0: f003 f988 bl 80103d4 + 800d0aa: 89fb ldrh r3, [r7, #14] + 800d0ac: 3304 adds r3, #4 + 800d0ae: 2b44 cmp r3, #68 ; 0x44 + 800d0b0: d906 bls.n 800d0c0 + 800d0b2: 4b19 ldr r3, [pc, #100] ; (800d118 ) + 800d0b4: f240 52b7 movw r2, #1463 ; 0x5b7 + 800d0b8: 4918 ldr r1, [pc, #96] ; (800d11c ) + 800d0ba: 4819 ldr r0, [pc, #100] ; (800d120 ) + 800d0bc: f003 f988 bl 80103d0 options[options_out_len++] = (u8_t)((value & 0xff000000UL) >> 24); - 800d0c4: 687b ldr r3, [r7, #4] - 800d0c6: 0e1a lsrs r2, r3, #24 - 800d0c8: 89fb ldrh r3, [r7, #14] - 800d0ca: 1c59 adds r1, r3, #1 - 800d0cc: 81f9 strh r1, [r7, #14] - 800d0ce: 4619 mov r1, r3 - 800d0d0: 68bb ldr r3, [r7, #8] - 800d0d2: 440b add r3, r1 - 800d0d4: b2d2 uxtb r2, r2 - 800d0d6: 701a strb r2, [r3, #0] + 800d0c0: 687b ldr r3, [r7, #4] + 800d0c2: 0e1a lsrs r2, r3, #24 + 800d0c4: 89fb ldrh r3, [r7, #14] + 800d0c6: 1c59 adds r1, r3, #1 + 800d0c8: 81f9 strh r1, [r7, #14] + 800d0ca: 4619 mov r1, r3 + 800d0cc: 68bb ldr r3, [r7, #8] + 800d0ce: 440b add r3, r1 + 800d0d0: b2d2 uxtb r2, r2 + 800d0d2: 701a strb r2, [r3, #0] options[options_out_len++] = (u8_t)((value & 0x00ff0000UL) >> 16); - 800d0d8: 687b ldr r3, [r7, #4] - 800d0da: 0c1a lsrs r2, r3, #16 - 800d0dc: 89fb ldrh r3, [r7, #14] - 800d0de: 1c59 adds r1, r3, #1 - 800d0e0: 81f9 strh r1, [r7, #14] - 800d0e2: 4619 mov r1, r3 - 800d0e4: 68bb ldr r3, [r7, #8] - 800d0e6: 440b add r3, r1 - 800d0e8: b2d2 uxtb r2, r2 - 800d0ea: 701a strb r2, [r3, #0] + 800d0d4: 687b ldr r3, [r7, #4] + 800d0d6: 0c1a lsrs r2, r3, #16 + 800d0d8: 89fb ldrh r3, [r7, #14] + 800d0da: 1c59 adds r1, r3, #1 + 800d0dc: 81f9 strh r1, [r7, #14] + 800d0de: 4619 mov r1, r3 + 800d0e0: 68bb ldr r3, [r7, #8] + 800d0e2: 440b add r3, r1 + 800d0e4: b2d2 uxtb r2, r2 + 800d0e6: 701a strb r2, [r3, #0] options[options_out_len++] = (u8_t)((value & 0x0000ff00UL) >> 8); - 800d0ec: 687b ldr r3, [r7, #4] - 800d0ee: 0a1a lsrs r2, r3, #8 - 800d0f0: 89fb ldrh r3, [r7, #14] - 800d0f2: 1c59 adds r1, r3, #1 - 800d0f4: 81f9 strh r1, [r7, #14] - 800d0f6: 4619 mov r1, r3 - 800d0f8: 68bb ldr r3, [r7, #8] - 800d0fa: 440b add r3, r1 - 800d0fc: b2d2 uxtb r2, r2 - 800d0fe: 701a strb r2, [r3, #0] + 800d0e8: 687b ldr r3, [r7, #4] + 800d0ea: 0a1a lsrs r2, r3, #8 + 800d0ec: 89fb ldrh r3, [r7, #14] + 800d0ee: 1c59 adds r1, r3, #1 + 800d0f0: 81f9 strh r1, [r7, #14] + 800d0f2: 4619 mov r1, r3 + 800d0f4: 68bb ldr r3, [r7, #8] + 800d0f6: 440b add r3, r1 + 800d0f8: b2d2 uxtb r2, r2 + 800d0fa: 701a strb r2, [r3, #0] options[options_out_len++] = (u8_t)((value & 0x000000ffUL)); - 800d100: 89fb ldrh r3, [r7, #14] - 800d102: 1c5a adds r2, r3, #1 - 800d104: 81fa strh r2, [r7, #14] - 800d106: 461a mov r2, r3 - 800d108: 68bb ldr r3, [r7, #8] - 800d10a: 4413 add r3, r2 - 800d10c: 687a ldr r2, [r7, #4] - 800d10e: b2d2 uxtb r2, r2 - 800d110: 701a strb r2, [r3, #0] + 800d0fc: 89fb ldrh r3, [r7, #14] + 800d0fe: 1c5a adds r2, r3, #1 + 800d100: 81fa strh r2, [r7, #14] + 800d102: 461a mov r2, r3 + 800d104: 68bb ldr r3, [r7, #8] + 800d106: 4413 add r3, r2 + 800d108: 687a ldr r2, [r7, #4] + 800d10a: b2d2 uxtb r2, r2 + 800d10c: 701a strb r2, [r3, #0] return options_out_len; - 800d112: 89fb ldrh r3, [r7, #14] + 800d10e: 89fb ldrh r3, [r7, #14] } - 800d114: 4618 mov r0, r3 - 800d116: 3710 adds r7, #16 - 800d118: 46bd mov sp, r7 - 800d11a: bd80 pop {r7, pc} - 800d11c: 0801720c .word 0x0801720c - 800d120: 08017458 .word 0x08017458 - 800d124: 0801726c .word 0x0801726c + 800d110: 4618 mov r0, r3 + 800d112: 3710 adds r7, #16 + 800d114: 46bd mov sp, r7 + 800d116: bd80 pop {r7, pc} + 800d118: 0801720c .word 0x0801720c + 800d11c: 08017458 .word 0x08017458 + 800d120: 0801726c .word 0x0801726c -0800d128 : +0800d124 : * use that further on. * */ static err_t dhcp_parse_reply(struct pbuf *p, struct dhcp *dhcp) { - 800d128: b580 push {r7, lr} - 800d12a: b090 sub sp, #64 ; 0x40 - 800d12c: af00 add r7, sp, #0 - 800d12e: 6078 str r0, [r7, #4] - 800d130: 6039 str r1, [r7, #0] + 800d124: b580 push {r7, lr} + 800d126: b090 sub sp, #64 ; 0x40 + 800d128: af00 add r7, sp, #0 + 800d12a: 6078 str r0, [r7, #4] + 800d12c: 6039 str r1, [r7, #0] u16_t offset; u16_t offset_max; u16_t options_idx; u16_t options_idx_max; struct pbuf *q; int parse_file_as_options = 0; - 800d132: 2300 movs r3, #0 - 800d134: 62fb str r3, [r7, #44] ; 0x2c + 800d12e: 2300 movs r3, #0 + 800d130: 62fb str r3, [r7, #44] ; 0x2c int parse_sname_as_options = 0; - 800d136: 2300 movs r3, #0 - 800d138: 62bb str r3, [r7, #40] ; 0x28 + 800d132: 2300 movs r3, #0 + 800d134: 62bb str r3, [r7, #40] ; 0x28 #endif LWIP_UNUSED_ARG(dhcp); /* clear received options */ dhcp_clear_all_options(dhcp); - 800d13a: 2208 movs r2, #8 - 800d13c: 2100 movs r1, #0 - 800d13e: 48b5 ldr r0, [pc, #724] ; (800d414 ) - 800d140: f003 f940 bl 80103c4 + 800d136: 2208 movs r2, #8 + 800d138: 2100 movs r1, #0 + 800d13a: 48b5 ldr r0, [pc, #724] ; (800d410 ) + 800d13c: f003 f940 bl 80103c0 /* check that beginning of dhcp_msg (up to and including chaddr) is in first pbuf */ if (p->len < DHCP_SNAME_OFS) { - 800d144: 687b ldr r3, [r7, #4] - 800d146: 895b ldrh r3, [r3, #10] - 800d148: 2b2b cmp r3, #43 ; 0x2b - 800d14a: d802 bhi.n 800d152 + 800d140: 687b ldr r3, [r7, #4] + 800d142: 895b ldrh r3, [r3, #10] + 800d144: 2b2b cmp r3, #43 ; 0x2b + 800d146: d802 bhi.n 800d14e return ERR_BUF; - 800d14c: f06f 0301 mvn.w r3, #1 - 800d150: e2a7 b.n 800d6a2 + 800d148: f06f 0301 mvn.w r3, #1 + 800d14c: e2a7 b.n 800d69e } msg_in = (struct dhcp_msg *)p->payload; - 800d152: 687b ldr r3, [r7, #4] - 800d154: 685b ldr r3, [r3, #4] - 800d156: 61bb str r3, [r7, #24] + 800d14e: 687b ldr r3, [r7, #4] + 800d150: 685b ldr r3, [r3, #4] + 800d152: 61bb str r3, [r7, #24] #endif /* LWIP_DHCP_BOOTP_FILE */ /* parse options */ /* start with options field */ options_idx = DHCP_OPTIONS_OFS; - 800d158: 23f0 movs r3, #240 ; 0xf0 - 800d15a: 86fb strh r3, [r7, #54] ; 0x36 + 800d154: 23f0 movs r3, #240 ; 0xf0 + 800d156: 86fb strh r3, [r7, #54] ; 0x36 /* parse options to the end of the received packet */ options_idx_max = p->tot_len; - 800d15c: 687b ldr r3, [r7, #4] - 800d15e: 891b ldrh r3, [r3, #8] - 800d160: 86bb strh r3, [r7, #52] ; 0x34 + 800d158: 687b ldr r3, [r7, #4] + 800d15a: 891b ldrh r3, [r3, #8] + 800d15c: 86bb strh r3, [r7, #52] ; 0x34 again: q = p; - 800d162: 687b ldr r3, [r7, #4] - 800d164: 633b str r3, [r7, #48] ; 0x30 + 800d15e: 687b ldr r3, [r7, #4] + 800d160: 633b str r3, [r7, #48] ; 0x30 while ((q != NULL) && (options_idx >= q->len)) { - 800d166: e00c b.n 800d182 + 800d162: e00c b.n 800d17e options_idx = (u16_t)(options_idx - q->len); - 800d168: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d16a: 895b ldrh r3, [r3, #10] - 800d16c: 8efa ldrh r2, [r7, #54] ; 0x36 - 800d16e: 1ad3 subs r3, r2, r3 - 800d170: 86fb strh r3, [r7, #54] ; 0x36 + 800d164: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d166: 895b ldrh r3, [r3, #10] + 800d168: 8efa ldrh r2, [r7, #54] ; 0x36 + 800d16a: 1ad3 subs r3, r2, r3 + 800d16c: 86fb strh r3, [r7, #54] ; 0x36 options_idx_max = (u16_t)(options_idx_max - q->len); - 800d172: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d174: 895b ldrh r3, [r3, #10] - 800d176: 8eba ldrh r2, [r7, #52] ; 0x34 - 800d178: 1ad3 subs r3, r2, r3 - 800d17a: 86bb strh r3, [r7, #52] ; 0x34 + 800d16e: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d170: 895b ldrh r3, [r3, #10] + 800d172: 8eba ldrh r2, [r7, #52] ; 0x34 + 800d174: 1ad3 subs r3, r2, r3 + 800d176: 86bb strh r3, [r7, #52] ; 0x34 q = q->next; - 800d17c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d17e: 681b ldr r3, [r3, #0] - 800d180: 633b str r3, [r7, #48] ; 0x30 + 800d178: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d17a: 681b ldr r3, [r3, #0] + 800d17c: 633b str r3, [r7, #48] ; 0x30 while ((q != NULL) && (options_idx >= q->len)) { - 800d182: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d184: 2b00 cmp r3, #0 - 800d186: d004 beq.n 800d192 - 800d188: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d18a: 895b ldrh r3, [r3, #10] - 800d18c: 8efa ldrh r2, [r7, #54] ; 0x36 - 800d18e: 429a cmp r2, r3 - 800d190: d2ea bcs.n 800d168 + 800d17e: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d180: 2b00 cmp r3, #0 + 800d182: d004 beq.n 800d18e + 800d184: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d186: 895b ldrh r3, [r3, #10] + 800d188: 8efa ldrh r2, [r7, #54] ; 0x36 + 800d18a: 429a cmp r2, r3 + 800d18c: d2ea bcs.n 800d164 } if (q == NULL) { - 800d192: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d194: 2b00 cmp r3, #0 - 800d196: d102 bne.n 800d19e + 800d18e: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d190: 2b00 cmp r3, #0 + 800d192: d102 bne.n 800d19a return ERR_BUF; - 800d198: f06f 0301 mvn.w r3, #1 - 800d19c: e281 b.n 800d6a2 + 800d194: f06f 0301 mvn.w r3, #1 + 800d198: e281 b.n 800d69e } offset = options_idx; - 800d19e: 8efb ldrh r3, [r7, #54] ; 0x36 - 800d1a0: 877b strh r3, [r7, #58] ; 0x3a + 800d19a: 8efb ldrh r3, [r7, #54] ; 0x36 + 800d19c: 877b strh r3, [r7, #58] ; 0x3a offset_max = options_idx_max; - 800d1a2: 8ebb ldrh r3, [r7, #52] ; 0x34 - 800d1a4: 873b strh r3, [r7, #56] ; 0x38 + 800d19e: 8ebb ldrh r3, [r7, #52] ; 0x34 + 800d1a0: 873b strh r3, [r7, #56] ; 0x38 options = (u8_t *)q->payload; - 800d1a6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d1a8: 685b ldr r3, [r3, #4] - 800d1aa: 63fb str r3, [r7, #60] ; 0x3c + 800d1a2: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d1a4: 685b ldr r3, [r3, #4] + 800d1a6: 63fb str r3, [r7, #60] ; 0x3c /* at least 1 byte to read and no end marker, then at least 3 bytes to read? */ while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) { - 800d1ac: e239 b.n 800d622 + 800d1a8: e239 b.n 800d61e u8_t op = options[offset]; - 800d1ae: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800d1b0: 6bfa ldr r2, [r7, #60] ; 0x3c - 800d1b2: 4413 add r3, r2 - 800d1b4: 781b ldrb r3, [r3, #0] - 800d1b6: 75fb strb r3, [r7, #23] + 800d1aa: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800d1ac: 6bfa ldr r2, [r7, #60] ; 0x3c + 800d1ae: 4413 add r3, r2 + 800d1b0: 781b ldrb r3, [r3, #0] + 800d1b2: 75fb strb r3, [r7, #23] u8_t len; u8_t decode_len = 0; - 800d1b8: 2300 movs r3, #0 - 800d1ba: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 800d1b4: 2300 movs r3, #0 + 800d1b6: f887 3026 strb.w r3, [r7, #38] ; 0x26 int decode_idx = -1; - 800d1be: f04f 33ff mov.w r3, #4294967295 - 800d1c2: 623b str r3, [r7, #32] + 800d1ba: f04f 33ff mov.w r3, #4294967295 + 800d1be: 623b str r3, [r7, #32] u16_t val_offset = (u16_t)(offset + 2); - 800d1c4: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800d1c6: 3302 adds r3, #2 - 800d1c8: 83fb strh r3, [r7, #30] + 800d1c0: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800d1c2: 3302 adds r3, #2 + 800d1c4: 83fb strh r3, [r7, #30] if (val_offset < offset) { - 800d1ca: 8bfa ldrh r2, [r7, #30] - 800d1cc: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800d1ce: 429a cmp r2, r3 - 800d1d0: d202 bcs.n 800d1d8 + 800d1c6: 8bfa ldrh r2, [r7, #30] + 800d1c8: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800d1ca: 429a cmp r2, r3 + 800d1cc: d202 bcs.n 800d1d4 /* overflow */ return ERR_BUF; - 800d1d2: f06f 0301 mvn.w r3, #1 - 800d1d6: e264 b.n 800d6a2 + 800d1ce: f06f 0301 mvn.w r3, #1 + 800d1d2: e264 b.n 800d69e } /* len byte might be in the next pbuf */ if ((offset + 1) < q->len) { - 800d1d8: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800d1da: 3301 adds r3, #1 - 800d1dc: 6b3a ldr r2, [r7, #48] ; 0x30 - 800d1de: 8952 ldrh r2, [r2, #10] - 800d1e0: 4293 cmp r3, r2 - 800d1e2: da07 bge.n 800d1f4 + 800d1d4: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800d1d6: 3301 adds r3, #1 + 800d1d8: 6b3a ldr r2, [r7, #48] ; 0x30 + 800d1da: 8952 ldrh r2, [r2, #10] + 800d1dc: 4293 cmp r3, r2 + 800d1de: da07 bge.n 800d1f0 len = options[offset + 1]; - 800d1e4: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800d1e6: 3301 adds r3, #1 - 800d1e8: 6bfa ldr r2, [r7, #60] ; 0x3c - 800d1ea: 4413 add r3, r2 - 800d1ec: 781b ldrb r3, [r3, #0] - 800d1ee: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800d1f2: e00b b.n 800d20c + 800d1e0: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800d1e2: 3301 adds r3, #1 + 800d1e4: 6bfa ldr r2, [r7, #60] ; 0x3c + 800d1e6: 4413 add r3, r2 + 800d1e8: 781b ldrb r3, [r3, #0] + 800d1ea: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800d1ee: e00b b.n 800d208 } else { len = (q->next != NULL ? ((u8_t *)q->next->payload)[0] : 0); - 800d1f4: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d1f6: 681b ldr r3, [r3, #0] - 800d1f8: 2b00 cmp r3, #0 - 800d1fa: d004 beq.n 800d206 - 800d1fc: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d1fe: 681b ldr r3, [r3, #0] - 800d200: 685b ldr r3, [r3, #4] - 800d202: 781b ldrb r3, [r3, #0] - 800d204: e000 b.n 800d208 - 800d206: 2300 movs r3, #0 - 800d208: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800d1f0: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d1f2: 681b ldr r3, [r3, #0] + 800d1f4: 2b00 cmp r3, #0 + 800d1f6: d004 beq.n 800d202 + 800d1f8: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d1fa: 681b ldr r3, [r3, #0] + 800d1fc: 685b ldr r3, [r3, #4] + 800d1fe: 781b ldrb r3, [r3, #0] + 800d200: e000 b.n 800d204 + 800d202: 2300 movs r3, #0 + 800d204: f887 3027 strb.w r3, [r7, #39] ; 0x27 } /* LWIP_DEBUGF(DHCP_DEBUG, ("msg_offset=%"U16_F", q->len=%"U16_F, msg_offset, q->len)); */ decode_len = len; - 800d20c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d210: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 800d208: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d20c: f887 3026 strb.w r3, [r7, #38] ; 0x26 switch (op) { - 800d214: 7dfb ldrb r3, [r7, #23] - 800d216: 2b3b cmp r3, #59 ; 0x3b - 800d218: f200 812c bhi.w 800d474 - 800d21c: a201 add r2, pc, #4 ; (adr r2, 800d224 ) - 800d21e: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800d222: bf00 nop - 800d224: 0800d315 .word 0x0800d315 - 800d228: 0800d325 .word 0x0800d325 - 800d22c: 0800d475 .word 0x0800d475 - 800d230: 0800d347 .word 0x0800d347 - 800d234: 0800d475 .word 0x0800d475 - 800d238: 0800d475 .word 0x0800d475 - 800d23c: 0800d475 .word 0x0800d475 - 800d240: 0800d475 .word 0x0800d475 - 800d244: 0800d475 .word 0x0800d475 - 800d248: 0800d475 .word 0x0800d475 - 800d24c: 0800d475 .word 0x0800d475 - 800d250: 0800d475 .word 0x0800d475 - 800d254: 0800d475 .word 0x0800d475 - 800d258: 0800d475 .word 0x0800d475 - 800d25c: 0800d475 .word 0x0800d475 - 800d260: 0800d475 .word 0x0800d475 - 800d264: 0800d475 .word 0x0800d475 - 800d268: 0800d475 .word 0x0800d475 - 800d26c: 0800d475 .word 0x0800d475 - 800d270: 0800d475 .word 0x0800d475 - 800d274: 0800d475 .word 0x0800d475 - 800d278: 0800d475 .word 0x0800d475 - 800d27c: 0800d475 .word 0x0800d475 - 800d280: 0800d475 .word 0x0800d475 - 800d284: 0800d475 .word 0x0800d475 - 800d288: 0800d475 .word 0x0800d475 - 800d28c: 0800d475 .word 0x0800d475 - 800d290: 0800d475 .word 0x0800d475 - 800d294: 0800d475 .word 0x0800d475 - 800d298: 0800d475 .word 0x0800d475 - 800d29c: 0800d475 .word 0x0800d475 - 800d2a0: 0800d475 .word 0x0800d475 - 800d2a4: 0800d475 .word 0x0800d475 - 800d2a8: 0800d475 .word 0x0800d475 - 800d2ac: 0800d475 .word 0x0800d475 - 800d2b0: 0800d475 .word 0x0800d475 - 800d2b4: 0800d475 .word 0x0800d475 - 800d2b8: 0800d475 .word 0x0800d475 - 800d2bc: 0800d475 .word 0x0800d475 - 800d2c0: 0800d475 .word 0x0800d475 - 800d2c4: 0800d475 .word 0x0800d475 - 800d2c8: 0800d475 .word 0x0800d475 - 800d2cc: 0800d475 .word 0x0800d475 - 800d2d0: 0800d475 .word 0x0800d475 - 800d2d4: 0800d475 .word 0x0800d475 - 800d2d8: 0800d475 .word 0x0800d475 - 800d2dc: 0800d475 .word 0x0800d475 - 800d2e0: 0800d475 .word 0x0800d475 - 800d2e4: 0800d475 .word 0x0800d475 - 800d2e8: 0800d475 .word 0x0800d475 - 800d2ec: 0800d475 .word 0x0800d475 - 800d2f0: 0800d373 .word 0x0800d373 - 800d2f4: 0800d395 .word 0x0800d395 - 800d2f8: 0800d3d1 .word 0x0800d3d1 - 800d2fc: 0800d3f3 .word 0x0800d3f3 - 800d300: 0800d475 .word 0x0800d475 - 800d304: 0800d475 .word 0x0800d475 - 800d308: 0800d475 .word 0x0800d475 - 800d30c: 0800d431 .word 0x0800d431 - 800d310: 0800d453 .word 0x0800d453 + 800d210: 7dfb ldrb r3, [r7, #23] + 800d212: 2b3b cmp r3, #59 ; 0x3b + 800d214: f200 812c bhi.w 800d470 + 800d218: a201 add r2, pc, #4 ; (adr r2, 800d220 ) + 800d21a: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800d21e: bf00 nop + 800d220: 0800d311 .word 0x0800d311 + 800d224: 0800d321 .word 0x0800d321 + 800d228: 0800d471 .word 0x0800d471 + 800d22c: 0800d343 .word 0x0800d343 + 800d230: 0800d471 .word 0x0800d471 + 800d234: 0800d471 .word 0x0800d471 + 800d238: 0800d471 .word 0x0800d471 + 800d23c: 0800d471 .word 0x0800d471 + 800d240: 0800d471 .word 0x0800d471 + 800d244: 0800d471 .word 0x0800d471 + 800d248: 0800d471 .word 0x0800d471 + 800d24c: 0800d471 .word 0x0800d471 + 800d250: 0800d471 .word 0x0800d471 + 800d254: 0800d471 .word 0x0800d471 + 800d258: 0800d471 .word 0x0800d471 + 800d25c: 0800d471 .word 0x0800d471 + 800d260: 0800d471 .word 0x0800d471 + 800d264: 0800d471 .word 0x0800d471 + 800d268: 0800d471 .word 0x0800d471 + 800d26c: 0800d471 .word 0x0800d471 + 800d270: 0800d471 .word 0x0800d471 + 800d274: 0800d471 .word 0x0800d471 + 800d278: 0800d471 .word 0x0800d471 + 800d27c: 0800d471 .word 0x0800d471 + 800d280: 0800d471 .word 0x0800d471 + 800d284: 0800d471 .word 0x0800d471 + 800d288: 0800d471 .word 0x0800d471 + 800d28c: 0800d471 .word 0x0800d471 + 800d290: 0800d471 .word 0x0800d471 + 800d294: 0800d471 .word 0x0800d471 + 800d298: 0800d471 .word 0x0800d471 + 800d29c: 0800d471 .word 0x0800d471 + 800d2a0: 0800d471 .word 0x0800d471 + 800d2a4: 0800d471 .word 0x0800d471 + 800d2a8: 0800d471 .word 0x0800d471 + 800d2ac: 0800d471 .word 0x0800d471 + 800d2b0: 0800d471 .word 0x0800d471 + 800d2b4: 0800d471 .word 0x0800d471 + 800d2b8: 0800d471 .word 0x0800d471 + 800d2bc: 0800d471 .word 0x0800d471 + 800d2c0: 0800d471 .word 0x0800d471 + 800d2c4: 0800d471 .word 0x0800d471 + 800d2c8: 0800d471 .word 0x0800d471 + 800d2cc: 0800d471 .word 0x0800d471 + 800d2d0: 0800d471 .word 0x0800d471 + 800d2d4: 0800d471 .word 0x0800d471 + 800d2d8: 0800d471 .word 0x0800d471 + 800d2dc: 0800d471 .word 0x0800d471 + 800d2e0: 0800d471 .word 0x0800d471 + 800d2e4: 0800d471 .word 0x0800d471 + 800d2e8: 0800d471 .word 0x0800d471 + 800d2ec: 0800d36f .word 0x0800d36f + 800d2f0: 0800d391 .word 0x0800d391 + 800d2f4: 0800d3cd .word 0x0800d3cd + 800d2f8: 0800d3ef .word 0x0800d3ef + 800d2fc: 0800d471 .word 0x0800d471 + 800d300: 0800d471 .word 0x0800d471 + 800d304: 0800d471 .word 0x0800d471 + 800d308: 0800d42d .word 0x0800d42d + 800d30c: 0800d44f .word 0x0800d44f /* case(DHCP_OPTION_END): handled above */ case (DHCP_OPTION_PAD): /* special option: no len encoded */ decode_len = len = 0; - 800d314: 2300 movs r3, #0 - 800d316: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800d31a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d31e: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 800d310: 2300 movs r3, #0 + 800d312: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800d316: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d31a: f887 3026 strb.w r3, [r7, #38] ; 0x26 /* will be increased below */ break; - 800d322: e0ab b.n 800d47c + 800d31e: e0ab b.n 800d478 case (DHCP_OPTION_SUBNET_MASK): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 800d324: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d328: 2b04 cmp r3, #4 - 800d32a: d009 beq.n 800d340 - 800d32c: 4b3a ldr r3, [pc, #232] ; (800d418 ) - 800d32e: f240 622e movw r2, #1582 ; 0x62e - 800d332: 493a ldr r1, [pc, #232] ; (800d41c ) - 800d334: 483a ldr r0, [pc, #232] ; (800d420 ) - 800d336: f003 f84d bl 80103d4 - 800d33a: f06f 0305 mvn.w r3, #5 - 800d33e: e1b0 b.n 800d6a2 + 800d320: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d324: 2b04 cmp r3, #4 + 800d326: d009 beq.n 800d33c + 800d328: 4b3a ldr r3, [pc, #232] ; (800d414 ) + 800d32a: f240 622e movw r2, #1582 ; 0x62e + 800d32e: 493a ldr r1, [pc, #232] ; (800d418 ) + 800d330: 483a ldr r0, [pc, #232] ; (800d41c ) + 800d332: f003 f84d bl 80103d0 + 800d336: f06f 0305 mvn.w r3, #5 + 800d33a: e1b0 b.n 800d69e decode_idx = DHCP_OPTION_IDX_SUBNET_MASK; - 800d340: 2306 movs r3, #6 - 800d342: 623b str r3, [r7, #32] + 800d33c: 2306 movs r3, #6 + 800d33e: 623b str r3, [r7, #32] break; - 800d344: e09a b.n 800d47c + 800d340: e09a b.n 800d478 case (DHCP_OPTION_ROUTER): decode_len = 4; /* only copy the first given router */ - 800d346: 2304 movs r3, #4 - 800d348: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 800d342: 2304 movs r3, #4 + 800d344: f887 3026 strb.w r3, [r7, #38] ; 0x26 LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;); - 800d34c: f897 2027 ldrb.w r2, [r7, #39] ; 0x27 - 800d350: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800d354: 429a cmp r2, r3 - 800d356: d209 bcs.n 800d36c - 800d358: 4b2f ldr r3, [pc, #188] ; (800d418 ) - 800d35a: f240 6233 movw r2, #1587 ; 0x633 - 800d35e: 4931 ldr r1, [pc, #196] ; (800d424 ) - 800d360: 482f ldr r0, [pc, #188] ; (800d420 ) - 800d362: f003 f837 bl 80103d4 - 800d366: f06f 0305 mvn.w r3, #5 - 800d36a: e19a b.n 800d6a2 + 800d348: f897 2027 ldrb.w r2, [r7, #39] ; 0x27 + 800d34c: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 800d350: 429a cmp r2, r3 + 800d352: d209 bcs.n 800d368 + 800d354: 4b2f ldr r3, [pc, #188] ; (800d414 ) + 800d356: f240 6233 movw r2, #1587 ; 0x633 + 800d35a: 4931 ldr r1, [pc, #196] ; (800d420 ) + 800d35c: 482f ldr r0, [pc, #188] ; (800d41c ) + 800d35e: f003 f837 bl 80103d0 + 800d362: f06f 0305 mvn.w r3, #5 + 800d366: e19a b.n 800d69e decode_idx = DHCP_OPTION_IDX_ROUTER; - 800d36c: 2307 movs r3, #7 - 800d36e: 623b str r3, [r7, #32] + 800d368: 2307 movs r3, #7 + 800d36a: 623b str r3, [r7, #32] break; - 800d370: e084 b.n 800d47c + 800d36c: e084 b.n 800d478 LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;); decode_idx = DHCP_OPTION_IDX_DNS_SERVER; break; #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */ case (DHCP_OPTION_LEASE_TIME): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 800d372: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d376: 2b04 cmp r3, #4 - 800d378: d009 beq.n 800d38e - 800d37a: 4b27 ldr r3, [pc, #156] ; (800d418 ) - 800d37c: f240 6241 movw r2, #1601 ; 0x641 - 800d380: 4926 ldr r1, [pc, #152] ; (800d41c ) - 800d382: 4827 ldr r0, [pc, #156] ; (800d420 ) - 800d384: f003 f826 bl 80103d4 - 800d388: f06f 0305 mvn.w r3, #5 - 800d38c: e189 b.n 800d6a2 + 800d36e: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d372: 2b04 cmp r3, #4 + 800d374: d009 beq.n 800d38a + 800d376: 4b27 ldr r3, [pc, #156] ; (800d414 ) + 800d378: f240 6241 movw r2, #1601 ; 0x641 + 800d37c: 4926 ldr r1, [pc, #152] ; (800d418 ) + 800d37e: 4827 ldr r0, [pc, #156] ; (800d41c ) + 800d380: f003 f826 bl 80103d0 + 800d384: f06f 0305 mvn.w r3, #5 + 800d388: e189 b.n 800d69e decode_idx = DHCP_OPTION_IDX_LEASE_TIME; - 800d38e: 2303 movs r3, #3 - 800d390: 623b str r3, [r7, #32] + 800d38a: 2303 movs r3, #3 + 800d38c: 623b str r3, [r7, #32] break; - 800d392: e073 b.n 800d47c + 800d38e: e073 b.n 800d478 LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;); decode_idx = DHCP_OPTION_IDX_NTP_SERVER; break; #endif /* LWIP_DHCP_GET_NTP_SRV*/ case (DHCP_OPTION_OVERLOAD): LWIP_ERROR("len == 1", len == 1, return ERR_VAL;); - 800d394: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d398: 2b01 cmp r3, #1 - 800d39a: d009 beq.n 800d3b0 - 800d39c: 4b1e ldr r3, [pc, #120] ; (800d418 ) - 800d39e: f240 624f movw r2, #1615 ; 0x64f - 800d3a2: 4921 ldr r1, [pc, #132] ; (800d428 ) - 800d3a4: 481e ldr r0, [pc, #120] ; (800d420 ) - 800d3a6: f003 f815 bl 80103d4 - 800d3aa: f06f 0305 mvn.w r3, #5 - 800d3ae: e178 b.n 800d6a2 + 800d390: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d394: 2b01 cmp r3, #1 + 800d396: d009 beq.n 800d3ac + 800d398: 4b1e ldr r3, [pc, #120] ; (800d414 ) + 800d39a: f240 624f movw r2, #1615 ; 0x64f + 800d39e: 4921 ldr r1, [pc, #132] ; (800d424 ) + 800d3a0: 481e ldr r0, [pc, #120] ; (800d41c ) + 800d3a2: f003 f815 bl 80103d0 + 800d3a6: f06f 0305 mvn.w r3, #5 + 800d3aa: e178 b.n 800d69e /* decode overload only in options, not in file/sname: invalid packet */ LWIP_ERROR("overload in file/sname", options_idx == DHCP_OPTIONS_OFS, return ERR_VAL;); - 800d3b0: 8efb ldrh r3, [r7, #54] ; 0x36 - 800d3b2: 2bf0 cmp r3, #240 ; 0xf0 - 800d3b4: d009 beq.n 800d3ca - 800d3b6: 4b18 ldr r3, [pc, #96] ; (800d418 ) - 800d3b8: f240 6251 movw r2, #1617 ; 0x651 - 800d3bc: 491b ldr r1, [pc, #108] ; (800d42c ) - 800d3be: 4818 ldr r0, [pc, #96] ; (800d420 ) - 800d3c0: f003 f808 bl 80103d4 - 800d3c4: f06f 0305 mvn.w r3, #5 - 800d3c8: e16b b.n 800d6a2 + 800d3ac: 8efb ldrh r3, [r7, #54] ; 0x36 + 800d3ae: 2bf0 cmp r3, #240 ; 0xf0 + 800d3b0: d009 beq.n 800d3c6 + 800d3b2: 4b18 ldr r3, [pc, #96] ; (800d414 ) + 800d3b4: f240 6251 movw r2, #1617 ; 0x651 + 800d3b8: 491b ldr r1, [pc, #108] ; (800d428 ) + 800d3ba: 4818 ldr r0, [pc, #96] ; (800d41c ) + 800d3bc: f003 f808 bl 80103d0 + 800d3c0: f06f 0305 mvn.w r3, #5 + 800d3c4: e16b b.n 800d69e decode_idx = DHCP_OPTION_IDX_OVERLOAD; - 800d3ca: 2300 movs r3, #0 - 800d3cc: 623b str r3, [r7, #32] + 800d3c6: 2300 movs r3, #0 + 800d3c8: 623b str r3, [r7, #32] break; - 800d3ce: e055 b.n 800d47c + 800d3ca: e055 b.n 800d478 case (DHCP_OPTION_MESSAGE_TYPE): LWIP_ERROR("len == 1", len == 1, return ERR_VAL;); - 800d3d0: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d3d4: 2b01 cmp r3, #1 - 800d3d6: d009 beq.n 800d3ec - 800d3d8: 4b0f ldr r3, [pc, #60] ; (800d418 ) - 800d3da: f240 6255 movw r2, #1621 ; 0x655 - 800d3de: 4912 ldr r1, [pc, #72] ; (800d428 ) - 800d3e0: 480f ldr r0, [pc, #60] ; (800d420 ) - 800d3e2: f002 fff7 bl 80103d4 - 800d3e6: f06f 0305 mvn.w r3, #5 - 800d3ea: e15a b.n 800d6a2 + 800d3cc: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d3d0: 2b01 cmp r3, #1 + 800d3d2: d009 beq.n 800d3e8 + 800d3d4: 4b0f ldr r3, [pc, #60] ; (800d414 ) + 800d3d6: f240 6255 movw r2, #1621 ; 0x655 + 800d3da: 4912 ldr r1, [pc, #72] ; (800d424 ) + 800d3dc: 480f ldr r0, [pc, #60] ; (800d41c ) + 800d3de: f002 fff7 bl 80103d0 + 800d3e2: f06f 0305 mvn.w r3, #5 + 800d3e6: e15a b.n 800d69e decode_idx = DHCP_OPTION_IDX_MSG_TYPE; - 800d3ec: 2301 movs r3, #1 - 800d3ee: 623b str r3, [r7, #32] + 800d3e8: 2301 movs r3, #1 + 800d3ea: 623b str r3, [r7, #32] break; - 800d3f0: e044 b.n 800d47c + 800d3ec: e044 b.n 800d478 case (DHCP_OPTION_SERVER_ID): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 800d3f2: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d3f6: 2b04 cmp r3, #4 - 800d3f8: d009 beq.n 800d40e - 800d3fa: 4b07 ldr r3, [pc, #28] ; (800d418 ) - 800d3fc: f240 6259 movw r2, #1625 ; 0x659 - 800d400: 4906 ldr r1, [pc, #24] ; (800d41c ) - 800d402: 4807 ldr r0, [pc, #28] ; (800d420 ) - 800d404: f002 ffe6 bl 80103d4 - 800d408: f06f 0305 mvn.w r3, #5 - 800d40c: e149 b.n 800d6a2 + 800d3ee: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d3f2: 2b04 cmp r3, #4 + 800d3f4: d009 beq.n 800d40a + 800d3f6: 4b07 ldr r3, [pc, #28] ; (800d414 ) + 800d3f8: f240 6259 movw r2, #1625 ; 0x659 + 800d3fc: 4906 ldr r1, [pc, #24] ; (800d418 ) + 800d3fe: 4807 ldr r0, [pc, #28] ; (800d41c ) + 800d400: f002 ffe6 bl 80103d0 + 800d404: f06f 0305 mvn.w r3, #5 + 800d408: e149 b.n 800d69e decode_idx = DHCP_OPTION_IDX_SERVER_ID; - 800d40e: 2302 movs r3, #2 - 800d410: 623b str r3, [r7, #32] + 800d40a: 2302 movs r3, #2 + 800d40c: 623b str r3, [r7, #32] break; - 800d412: e033 b.n 800d47c - 800d414: 20008c80 .word 0x20008c80 - 800d418: 0801720c .word 0x0801720c - 800d41c: 08017494 .word 0x08017494 - 800d420: 0801726c .word 0x0801726c - 800d424: 080174a0 .word 0x080174a0 - 800d428: 080174b4 .word 0x080174b4 - 800d42c: 080174c0 .word 0x080174c0 + 800d40e: e033 b.n 800d478 + 800d410: 20008c80 .word 0x20008c80 + 800d414: 0801720c .word 0x0801720c + 800d418: 08017494 .word 0x08017494 + 800d41c: 0801726c .word 0x0801726c + 800d420: 080174a0 .word 0x080174a0 + 800d424: 080174b4 .word 0x080174b4 + 800d428: 080174c0 .word 0x080174c0 case (DHCP_OPTION_T1): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 800d430: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d434: 2b04 cmp r3, #4 - 800d436: d009 beq.n 800d44c - 800d438: 4b9c ldr r3, [pc, #624] ; (800d6ac ) - 800d43a: f240 625d movw r2, #1629 ; 0x65d - 800d43e: 499c ldr r1, [pc, #624] ; (800d6b0 ) - 800d440: 489c ldr r0, [pc, #624] ; (800d6b4 ) - 800d442: f002 ffc7 bl 80103d4 - 800d446: f06f 0305 mvn.w r3, #5 - 800d44a: e12a b.n 800d6a2 + 800d42c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d430: 2b04 cmp r3, #4 + 800d432: d009 beq.n 800d448 + 800d434: 4b9c ldr r3, [pc, #624] ; (800d6a8 ) + 800d436: f240 625d movw r2, #1629 ; 0x65d + 800d43a: 499c ldr r1, [pc, #624] ; (800d6ac ) + 800d43c: 489c ldr r0, [pc, #624] ; (800d6b0 ) + 800d43e: f002 ffc7 bl 80103d0 + 800d442: f06f 0305 mvn.w r3, #5 + 800d446: e12a b.n 800d69e decode_idx = DHCP_OPTION_IDX_T1; - 800d44c: 2304 movs r3, #4 - 800d44e: 623b str r3, [r7, #32] + 800d448: 2304 movs r3, #4 + 800d44a: 623b str r3, [r7, #32] break; - 800d450: e014 b.n 800d47c + 800d44c: e014 b.n 800d478 case (DHCP_OPTION_T2): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 800d452: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d456: 2b04 cmp r3, #4 - 800d458: d009 beq.n 800d46e - 800d45a: 4b94 ldr r3, [pc, #592] ; (800d6ac ) - 800d45c: f240 6261 movw r2, #1633 ; 0x661 - 800d460: 4993 ldr r1, [pc, #588] ; (800d6b0 ) - 800d462: 4894 ldr r0, [pc, #592] ; (800d6b4 ) - 800d464: f002 ffb6 bl 80103d4 - 800d468: f06f 0305 mvn.w r3, #5 - 800d46c: e119 b.n 800d6a2 + 800d44e: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d452: 2b04 cmp r3, #4 + 800d454: d009 beq.n 800d46a + 800d456: 4b94 ldr r3, [pc, #592] ; (800d6a8 ) + 800d458: f240 6261 movw r2, #1633 ; 0x661 + 800d45c: 4993 ldr r1, [pc, #588] ; (800d6ac ) + 800d45e: 4894 ldr r0, [pc, #592] ; (800d6b0 ) + 800d460: f002 ffb6 bl 80103d0 + 800d464: f06f 0305 mvn.w r3, #5 + 800d468: e119 b.n 800d69e decode_idx = DHCP_OPTION_IDX_T2; - 800d46e: 2305 movs r3, #5 - 800d470: 623b str r3, [r7, #32] + 800d46a: 2305 movs r3, #5 + 800d46c: 623b str r3, [r7, #32] break; - 800d472: e003 b.n 800d47c + 800d46e: e003 b.n 800d478 default: decode_len = 0; - 800d474: 2300 movs r3, #0 - 800d476: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 800d470: 2300 movs r3, #0 + 800d472: f887 3026 strb.w r3, [r7, #38] ; 0x26 LWIP_DEBUGF(DHCP_DEBUG, ("skipping option %"U16_F" in options\n", (u16_t)op)); LWIP_HOOK_DHCP_PARSE_OPTION(ip_current_netif(), dhcp, dhcp->state, msg_in, dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE) ? (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE) : 0, op, len, q, val_offset); break; - 800d47a: bf00 nop + 800d476: bf00 nop } if (op == DHCP_OPTION_PAD) { - 800d47c: 7dfb ldrb r3, [r7, #23] - 800d47e: 2b00 cmp r3, #0 - 800d480: d103 bne.n 800d48a + 800d478: 7dfb ldrb r3, [r7, #23] + 800d47a: 2b00 cmp r3, #0 + 800d47c: d103 bne.n 800d486 offset++; - 800d482: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800d484: 3301 adds r3, #1 - 800d486: 877b strh r3, [r7, #58] ; 0x3a - 800d488: e0a1 b.n 800d5ce + 800d47e: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800d480: 3301 adds r3, #1 + 800d482: 877b strh r3, [r7, #58] ; 0x3a + 800d484: e0a1 b.n 800d5ca } else { if (offset + len + 2 > 0xFFFF) { - 800d48a: 8f7a ldrh r2, [r7, #58] ; 0x3a - 800d48c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d490: 4413 add r3, r2 - 800d492: f64f 72fd movw r2, #65533 ; 0xfffd - 800d496: 4293 cmp r3, r2 - 800d498: dd02 ble.n 800d4a0 + 800d486: 8f7a ldrh r2, [r7, #58] ; 0x3a + 800d488: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d48c: 4413 add r3, r2 + 800d48e: f64f 72fd movw r2, #65533 ; 0xfffd + 800d492: 4293 cmp r3, r2 + 800d494: dd02 ble.n 800d49c /* overflow */ return ERR_BUF; - 800d49a: f06f 0301 mvn.w r3, #1 - 800d49e: e100 b.n 800d6a2 + 800d496: f06f 0301 mvn.w r3, #1 + 800d49a: e100 b.n 800d69e } offset = (u16_t)(offset + len + 2); - 800d4a0: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d4a4: b29a uxth r2, r3 - 800d4a6: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800d4a8: 4413 add r3, r2 - 800d4aa: b29b uxth r3, r3 - 800d4ac: 3302 adds r3, #2 - 800d4ae: 877b strh r3, [r7, #58] ; 0x3a + 800d49c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d4a0: b29a uxth r2, r3 + 800d4a2: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800d4a4: 4413 add r3, r2 + 800d4a6: b29b uxth r3, r3 + 800d4a8: 3302 adds r3, #2 + 800d4aa: 877b strh r3, [r7, #58] ; 0x3a if (decode_len > 0) { - 800d4b0: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800d4b4: 2b00 cmp r3, #0 - 800d4b6: f000 808a beq.w 800d5ce + 800d4ac: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 800d4b0: 2b00 cmp r3, #0 + 800d4b2: f000 808a beq.w 800d5ca u32_t value = 0; - 800d4ba: 2300 movs r3, #0 - 800d4bc: 60bb str r3, [r7, #8] + 800d4b6: 2300 movs r3, #0 + 800d4b8: 60bb str r3, [r7, #8] u16_t copy_len; decode_next: LWIP_ASSERT("check decode_idx", decode_idx >= 0 && decode_idx < DHCP_OPTION_IDX_MAX); - 800d4be: 6a3b ldr r3, [r7, #32] - 800d4c0: 2b00 cmp r3, #0 - 800d4c2: db02 blt.n 800d4ca - 800d4c4: 6a3b ldr r3, [r7, #32] - 800d4c6: 2b07 cmp r3, #7 - 800d4c8: dd06 ble.n 800d4d8 - 800d4ca: 4b78 ldr r3, [pc, #480] ; (800d6ac ) - 800d4cc: f44f 62cf mov.w r2, #1656 ; 0x678 - 800d4d0: 4979 ldr r1, [pc, #484] ; (800d6b8 ) - 800d4d2: 4878 ldr r0, [pc, #480] ; (800d6b4 ) - 800d4d4: f002 ff7e bl 80103d4 + 800d4ba: 6a3b ldr r3, [r7, #32] + 800d4bc: 2b00 cmp r3, #0 + 800d4be: db02 blt.n 800d4c6 + 800d4c0: 6a3b ldr r3, [r7, #32] + 800d4c2: 2b07 cmp r3, #7 + 800d4c4: dd06 ble.n 800d4d4 + 800d4c6: 4b78 ldr r3, [pc, #480] ; (800d6a8 ) + 800d4c8: f44f 62cf mov.w r2, #1656 ; 0x678 + 800d4cc: 4979 ldr r1, [pc, #484] ; (800d6b4 ) + 800d4ce: 4878 ldr r0, [pc, #480] ; (800d6b0 ) + 800d4d0: f002 ff7e bl 80103d0 if (!dhcp_option_given(dhcp, decode_idx)) { - 800d4d8: 4a78 ldr r2, [pc, #480] ; (800d6bc ) - 800d4da: 6a3b ldr r3, [r7, #32] - 800d4dc: 4413 add r3, r2 - 800d4de: 781b ldrb r3, [r3, #0] - 800d4e0: 2b00 cmp r3, #0 - 800d4e2: d174 bne.n 800d5ce + 800d4d4: 4a78 ldr r2, [pc, #480] ; (800d6b8 ) + 800d4d6: 6a3b ldr r3, [r7, #32] + 800d4d8: 4413 add r3, r2 + 800d4da: 781b ldrb r3, [r3, #0] + 800d4dc: 2b00 cmp r3, #0 + 800d4de: d174 bne.n 800d5ca copy_len = LWIP_MIN(decode_len, 4); - 800d4e4: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800d4e8: 2b04 cmp r3, #4 - 800d4ea: bf28 it cs - 800d4ec: 2304 movcs r3, #4 - 800d4ee: b2db uxtb r3, r3 - 800d4f0: 82bb strh r3, [r7, #20] + 800d4e0: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 800d4e4: 2b04 cmp r3, #4 + 800d4e6: bf28 it cs + 800d4e8: 2304 movcs r3, #4 + 800d4ea: b2db uxtb r3, r3 + 800d4ec: 82bb strh r3, [r7, #20] if (pbuf_copy_partial(q, &value, copy_len, val_offset) != copy_len) { - 800d4f2: 8bfb ldrh r3, [r7, #30] - 800d4f4: 8aba ldrh r2, [r7, #20] - 800d4f6: f107 0108 add.w r1, r7, #8 - 800d4fa: 6b38 ldr r0, [r7, #48] ; 0x30 - 800d4fc: f7f8 fc48 bl 8005d90 - 800d500: 4603 mov r3, r0 - 800d502: 461a mov r2, r3 - 800d504: 8abb ldrh r3, [r7, #20] - 800d506: 4293 cmp r3, r2 - 800d508: d002 beq.n 800d510 + 800d4ee: 8bfb ldrh r3, [r7, #30] + 800d4f0: 8aba ldrh r2, [r7, #20] + 800d4f2: f107 0108 add.w r1, r7, #8 + 800d4f6: 6b38 ldr r0, [r7, #48] ; 0x30 + 800d4f8: f7f8 fc48 bl 8005d8c + 800d4fc: 4603 mov r3, r0 + 800d4fe: 461a mov r2, r3 + 800d500: 8abb ldrh r3, [r7, #20] + 800d502: 4293 cmp r3, r2 + 800d504: d002 beq.n 800d50c return ERR_BUF; - 800d50a: f06f 0301 mvn.w r3, #1 - 800d50e: e0c8 b.n 800d6a2 + 800d506: f06f 0301 mvn.w r3, #1 + 800d50a: e0c8 b.n 800d69e } if (decode_len > 4) { - 800d510: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800d514: 2b04 cmp r3, #4 - 800d516: d933 bls.n 800d580 + 800d50c: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 800d510: 2b04 cmp r3, #4 + 800d512: d933 bls.n 800d57c /* decode more than one u32_t */ u16_t next_val_offset; LWIP_ERROR("decode_len %% 4 == 0", decode_len % 4 == 0, return ERR_VAL;); - 800d518: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800d51c: f003 0303 and.w r3, r3, #3 - 800d520: b2db uxtb r3, r3 - 800d522: 2b00 cmp r3, #0 - 800d524: d009 beq.n 800d53a - 800d526: 4b61 ldr r3, [pc, #388] ; (800d6ac ) - 800d528: f240 6281 movw r2, #1665 ; 0x681 - 800d52c: 4964 ldr r1, [pc, #400] ; (800d6c0 ) - 800d52e: 4861 ldr r0, [pc, #388] ; (800d6b4 ) - 800d530: f002 ff50 bl 80103d4 - 800d534: f06f 0305 mvn.w r3, #5 - 800d538: e0b3 b.n 800d6a2 + 800d514: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 800d518: f003 0303 and.w r3, r3, #3 + 800d51c: b2db uxtb r3, r3 + 800d51e: 2b00 cmp r3, #0 + 800d520: d009 beq.n 800d536 + 800d522: 4b61 ldr r3, [pc, #388] ; (800d6a8 ) + 800d524: f240 6281 movw r2, #1665 ; 0x681 + 800d528: 4964 ldr r1, [pc, #400] ; (800d6bc ) + 800d52a: 4861 ldr r0, [pc, #388] ; (800d6b0 ) + 800d52c: f002 ff50 bl 80103d0 + 800d530: f06f 0305 mvn.w r3, #5 + 800d534: e0b3 b.n 800d69e dhcp_got_option(dhcp, decode_idx); - 800d53a: 4a60 ldr r2, [pc, #384] ; (800d6bc ) - 800d53c: 6a3b ldr r3, [r7, #32] - 800d53e: 4413 add r3, r2 - 800d540: 2201 movs r2, #1 - 800d542: 701a strb r2, [r3, #0] + 800d536: 4a60 ldr r2, [pc, #384] ; (800d6b8 ) + 800d538: 6a3b ldr r3, [r7, #32] + 800d53a: 4413 add r3, r2 + 800d53c: 2201 movs r2, #1 + 800d53e: 701a strb r2, [r3, #0] dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value)); - 800d544: 68bb ldr r3, [r7, #8] - 800d546: 4618 mov r0, r3 - 800d548: f7f6 fed3 bl 80042f2 - 800d54c: 4602 mov r2, r0 - 800d54e: 495d ldr r1, [pc, #372] ; (800d6c4 ) - 800d550: 6a3b ldr r3, [r7, #32] - 800d552: f841 2023 str.w r2, [r1, r3, lsl #2] + 800d540: 68bb ldr r3, [r7, #8] + 800d542: 4618 mov r0, r3 + 800d544: f7f6 fed3 bl 80042ee + 800d548: 4602 mov r2, r0 + 800d54a: 495d ldr r1, [pc, #372] ; (800d6c0 ) + 800d54c: 6a3b ldr r3, [r7, #32] + 800d54e: f841 2023 str.w r2, [r1, r3, lsl #2] decode_len = (u8_t)(decode_len - 4); - 800d556: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800d55a: 3b04 subs r3, #4 - 800d55c: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 800d552: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 800d556: 3b04 subs r3, #4 + 800d558: f887 3026 strb.w r3, [r7, #38] ; 0x26 next_val_offset = (u16_t)(val_offset + 4); - 800d560: 8bfb ldrh r3, [r7, #30] - 800d562: 3304 adds r3, #4 - 800d564: 827b strh r3, [r7, #18] + 800d55c: 8bfb ldrh r3, [r7, #30] + 800d55e: 3304 adds r3, #4 + 800d560: 827b strh r3, [r7, #18] if (next_val_offset < val_offset) { - 800d566: 8a7a ldrh r2, [r7, #18] - 800d568: 8bfb ldrh r3, [r7, #30] - 800d56a: 429a cmp r2, r3 - 800d56c: d202 bcs.n 800d574 + 800d562: 8a7a ldrh r2, [r7, #18] + 800d564: 8bfb ldrh r3, [r7, #30] + 800d566: 429a cmp r2, r3 + 800d568: d202 bcs.n 800d570 /* overflow */ return ERR_BUF; - 800d56e: f06f 0301 mvn.w r3, #1 - 800d572: e096 b.n 800d6a2 + 800d56a: f06f 0301 mvn.w r3, #1 + 800d56e: e096 b.n 800d69e } val_offset = next_val_offset; - 800d574: 8a7b ldrh r3, [r7, #18] - 800d576: 83fb strh r3, [r7, #30] + 800d570: 8a7b ldrh r3, [r7, #18] + 800d572: 83fb strh r3, [r7, #30] decode_idx++; - 800d578: 6a3b ldr r3, [r7, #32] - 800d57a: 3301 adds r3, #1 - 800d57c: 623b str r3, [r7, #32] + 800d574: 6a3b ldr r3, [r7, #32] + 800d576: 3301 adds r3, #1 + 800d578: 623b str r3, [r7, #32] goto decode_next; - 800d57e: e79e b.n 800d4be + 800d57a: e79e b.n 800d4ba } else if (decode_len == 4) { - 800d580: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800d584: 2b04 cmp r3, #4 - 800d586: d106 bne.n 800d596 + 800d57c: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 800d580: 2b04 cmp r3, #4 + 800d582: d106 bne.n 800d592 value = lwip_ntohl(value); - 800d588: 68bb ldr r3, [r7, #8] - 800d58a: 4618 mov r0, r3 - 800d58c: f7f6 feb1 bl 80042f2 - 800d590: 4603 mov r3, r0 - 800d592: 60bb str r3, [r7, #8] - 800d594: e011 b.n 800d5ba + 800d584: 68bb ldr r3, [r7, #8] + 800d586: 4618 mov r0, r3 + 800d588: f7f6 feb1 bl 80042ee + 800d58c: 4603 mov r3, r0 + 800d58e: 60bb str r3, [r7, #8] + 800d590: e011 b.n 800d5b6 } else { LWIP_ERROR("invalid decode_len", decode_len == 1, return ERR_VAL;); - 800d596: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 800d59a: 2b01 cmp r3, #1 - 800d59c: d009 beq.n 800d5b2 - 800d59e: 4b43 ldr r3, [pc, #268] ; (800d6ac ) - 800d5a0: f44f 62d2 mov.w r2, #1680 ; 0x690 - 800d5a4: 4948 ldr r1, [pc, #288] ; (800d6c8 ) - 800d5a6: 4843 ldr r0, [pc, #268] ; (800d6b4 ) - 800d5a8: f002 ff14 bl 80103d4 - 800d5ac: f06f 0305 mvn.w r3, #5 - 800d5b0: e077 b.n 800d6a2 + 800d592: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 800d596: 2b01 cmp r3, #1 + 800d598: d009 beq.n 800d5ae + 800d59a: 4b43 ldr r3, [pc, #268] ; (800d6a8 ) + 800d59c: f44f 62d2 mov.w r2, #1680 ; 0x690 + 800d5a0: 4948 ldr r1, [pc, #288] ; (800d6c4 ) + 800d5a2: 4843 ldr r0, [pc, #268] ; (800d6b0 ) + 800d5a4: f002 ff14 bl 80103d0 + 800d5a8: f06f 0305 mvn.w r3, #5 + 800d5ac: e077 b.n 800d69e value = ((u8_t *)&value)[0]; - 800d5b2: f107 0308 add.w r3, r7, #8 - 800d5b6: 781b ldrb r3, [r3, #0] - 800d5b8: 60bb str r3, [r7, #8] + 800d5ae: f107 0308 add.w r3, r7, #8 + 800d5b2: 781b ldrb r3, [r3, #0] + 800d5b4: 60bb str r3, [r7, #8] } dhcp_got_option(dhcp, decode_idx); - 800d5ba: 4a40 ldr r2, [pc, #256] ; (800d6bc ) - 800d5bc: 6a3b ldr r3, [r7, #32] - 800d5be: 4413 add r3, r2 - 800d5c0: 2201 movs r2, #1 - 800d5c2: 701a strb r2, [r3, #0] + 800d5b6: 4a40 ldr r2, [pc, #256] ; (800d6b8 ) + 800d5b8: 6a3b ldr r3, [r7, #32] + 800d5ba: 4413 add r3, r2 + 800d5bc: 2201 movs r2, #1 + 800d5be: 701a strb r2, [r3, #0] dhcp_set_option_value(dhcp, decode_idx, value); - 800d5c4: 68ba ldr r2, [r7, #8] - 800d5c6: 493f ldr r1, [pc, #252] ; (800d6c4 ) - 800d5c8: 6a3b ldr r3, [r7, #32] - 800d5ca: f841 2023 str.w r2, [r1, r3, lsl #2] + 800d5c0: 68ba ldr r2, [r7, #8] + 800d5c2: 493f ldr r1, [pc, #252] ; (800d6c0 ) + 800d5c4: 6a3b ldr r3, [r7, #32] + 800d5c6: f841 2023 str.w r2, [r1, r3, lsl #2] } } } if (offset >= q->len) { - 800d5ce: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d5d0: 895b ldrh r3, [r3, #10] - 800d5d2: 8f7a ldrh r2, [r7, #58] ; 0x3a - 800d5d4: 429a cmp r2, r3 - 800d5d6: d324 bcc.n 800d622 + 800d5ca: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d5cc: 895b ldrh r3, [r3, #10] + 800d5ce: 8f7a ldrh r2, [r7, #58] ; 0x3a + 800d5d0: 429a cmp r2, r3 + 800d5d2: d324 bcc.n 800d61e offset = (u16_t)(offset - q->len); - 800d5d8: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d5da: 895b ldrh r3, [r3, #10] - 800d5dc: 8f7a ldrh r2, [r7, #58] ; 0x3a - 800d5de: 1ad3 subs r3, r2, r3 - 800d5e0: 877b strh r3, [r7, #58] ; 0x3a + 800d5d4: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d5d6: 895b ldrh r3, [r3, #10] + 800d5d8: 8f7a ldrh r2, [r7, #58] ; 0x3a + 800d5da: 1ad3 subs r3, r2, r3 + 800d5dc: 877b strh r3, [r7, #58] ; 0x3a offset_max = (u16_t)(offset_max - q->len); - 800d5e2: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d5e4: 895b ldrh r3, [r3, #10] - 800d5e6: 8f3a ldrh r2, [r7, #56] ; 0x38 - 800d5e8: 1ad3 subs r3, r2, r3 - 800d5ea: 873b strh r3, [r7, #56] ; 0x38 + 800d5de: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d5e0: 895b ldrh r3, [r3, #10] + 800d5e2: 8f3a ldrh r2, [r7, #56] ; 0x38 + 800d5e4: 1ad3 subs r3, r2, r3 + 800d5e6: 873b strh r3, [r7, #56] ; 0x38 if (offset < offset_max) { - 800d5ec: 8f7a ldrh r2, [r7, #58] ; 0x3a - 800d5ee: 8f3b ldrh r3, [r7, #56] ; 0x38 - 800d5f0: 429a cmp r2, r3 - 800d5f2: d213 bcs.n 800d61c + 800d5e8: 8f7a ldrh r2, [r7, #58] ; 0x3a + 800d5ea: 8f3b ldrh r3, [r7, #56] ; 0x38 + 800d5ec: 429a cmp r2, r3 + 800d5ee: d213 bcs.n 800d618 q = q->next; - 800d5f4: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d5f6: 681b ldr r3, [r3, #0] - 800d5f8: 633b str r3, [r7, #48] ; 0x30 + 800d5f0: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d5f2: 681b ldr r3, [r3, #0] + 800d5f4: 633b str r3, [r7, #48] ; 0x30 LWIP_ERROR("next pbuf was null", q != NULL, return ERR_VAL;); - 800d5fa: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d5fc: 2b00 cmp r3, #0 - 800d5fe: d109 bne.n 800d614 - 800d600: 4b2a ldr r3, [pc, #168] ; (800d6ac ) - 800d602: f240 629d movw r2, #1693 ; 0x69d - 800d606: 4931 ldr r1, [pc, #196] ; (800d6cc ) - 800d608: 482a ldr r0, [pc, #168] ; (800d6b4 ) - 800d60a: f002 fee3 bl 80103d4 - 800d60e: f06f 0305 mvn.w r3, #5 - 800d612: e046 b.n 800d6a2 + 800d5f6: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d5f8: 2b00 cmp r3, #0 + 800d5fa: d109 bne.n 800d610 + 800d5fc: 4b2a ldr r3, [pc, #168] ; (800d6a8 ) + 800d5fe: f240 629d movw r2, #1693 ; 0x69d + 800d602: 4931 ldr r1, [pc, #196] ; (800d6c8 ) + 800d604: 482a ldr r0, [pc, #168] ; (800d6b0 ) + 800d606: f002 fee3 bl 80103d0 + 800d60a: f06f 0305 mvn.w r3, #5 + 800d60e: e046 b.n 800d69e options = (u8_t *)q->payload; - 800d614: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d616: 685b ldr r3, [r3, #4] - 800d618: 63fb str r3, [r7, #60] ; 0x3c - 800d61a: e002 b.n 800d622 + 800d610: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d612: 685b ldr r3, [r3, #4] + 800d614: 63fb str r3, [r7, #60] ; 0x3c + 800d616: e002 b.n 800d61e } else { /* We've run out of bytes, probably no end marker. Don't proceed. */ return ERR_BUF; - 800d61c: f06f 0301 mvn.w r3, #1 - 800d620: e03f b.n 800d6a2 + 800d618: f06f 0301 mvn.w r3, #1 + 800d61c: e03f b.n 800d69e while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) { - 800d622: 6b3b ldr r3, [r7, #48] ; 0x30 - 800d624: 2b00 cmp r3, #0 - 800d626: d00a beq.n 800d63e - 800d628: 8f7a ldrh r2, [r7, #58] ; 0x3a - 800d62a: 8f3b ldrh r3, [r7, #56] ; 0x38 - 800d62c: 429a cmp r2, r3 - 800d62e: d206 bcs.n 800d63e - 800d630: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800d632: 6bfa ldr r2, [r7, #60] ; 0x3c - 800d634: 4413 add r3, r2 - 800d636: 781b ldrb r3, [r3, #0] - 800d638: 2bff cmp r3, #255 ; 0xff - 800d63a: f47f adb8 bne.w 800d1ae + 800d61e: 6b3b ldr r3, [r7, #48] ; 0x30 + 800d620: 2b00 cmp r3, #0 + 800d622: d00a beq.n 800d63a + 800d624: 8f7a ldrh r2, [r7, #58] ; 0x3a + 800d626: 8f3b ldrh r3, [r7, #56] ; 0x38 + 800d628: 429a cmp r2, r3 + 800d62a: d206 bcs.n 800d63a + 800d62c: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800d62e: 6bfa ldr r2, [r7, #60] ; 0x3c + 800d630: 4413 add r3, r2 + 800d632: 781b ldrb r3, [r3, #0] + 800d634: 2bff cmp r3, #255 ; 0xff + 800d636: f47f adb8 bne.w 800d1aa } } } /* is this an overloaded message? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_OVERLOAD)) { - 800d63e: 4b1f ldr r3, [pc, #124] ; (800d6bc ) - 800d640: 781b ldrb r3, [r3, #0] - 800d642: 2b00 cmp r3, #0 - 800d644: d018 beq.n 800d678 + 800d63a: 4b1f ldr r3, [pc, #124] ; (800d6b8 ) + 800d63c: 781b ldrb r3, [r3, #0] + 800d63e: 2b00 cmp r3, #0 + 800d640: d018 beq.n 800d674 u32_t overload = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_OVERLOAD); - 800d646: 4b1f ldr r3, [pc, #124] ; (800d6c4 ) - 800d648: 681b ldr r3, [r3, #0] - 800d64a: 60fb str r3, [r7, #12] + 800d642: 4b1f ldr r3, [pc, #124] ; (800d6c0 ) + 800d644: 681b ldr r3, [r3, #0] + 800d646: 60fb str r3, [r7, #12] dhcp_clear_option(dhcp, DHCP_OPTION_IDX_OVERLOAD); - 800d64c: 4b1b ldr r3, [pc, #108] ; (800d6bc ) - 800d64e: 2200 movs r2, #0 - 800d650: 701a strb r2, [r3, #0] + 800d648: 4b1b ldr r3, [pc, #108] ; (800d6b8 ) + 800d64a: 2200 movs r2, #0 + 800d64c: 701a strb r2, [r3, #0] if (overload == DHCP_OVERLOAD_FILE) { - 800d652: 68fb ldr r3, [r7, #12] - 800d654: 2b01 cmp r3, #1 - 800d656: d102 bne.n 800d65e + 800d64e: 68fb ldr r3, [r7, #12] + 800d650: 2b01 cmp r3, #1 + 800d652: d102 bne.n 800d65a parse_file_as_options = 1; - 800d658: 2301 movs r3, #1 - 800d65a: 62fb str r3, [r7, #44] ; 0x2c - 800d65c: e00c b.n 800d678 + 800d654: 2301 movs r3, #1 + 800d656: 62fb str r3, [r7, #44] ; 0x2c + 800d658: e00c b.n 800d674 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded file field\n")); } else if (overload == DHCP_OVERLOAD_SNAME) { - 800d65e: 68fb ldr r3, [r7, #12] - 800d660: 2b02 cmp r3, #2 - 800d662: d102 bne.n 800d66a + 800d65a: 68fb ldr r3, [r7, #12] + 800d65c: 2b02 cmp r3, #2 + 800d65e: d102 bne.n 800d666 parse_sname_as_options = 1; - 800d664: 2301 movs r3, #1 - 800d666: 62bb str r3, [r7, #40] ; 0x28 - 800d668: e006 b.n 800d678 + 800d660: 2301 movs r3, #1 + 800d662: 62bb str r3, [r7, #40] ; 0x28 + 800d664: e006 b.n 800d674 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname field\n")); } else if (overload == DHCP_OVERLOAD_SNAME_FILE) { - 800d66a: 68fb ldr r3, [r7, #12] - 800d66c: 2b03 cmp r3, #3 - 800d66e: d103 bne.n 800d678 + 800d666: 68fb ldr r3, [r7, #12] + 800d668: 2b03 cmp r3, #3 + 800d66a: d103 bne.n 800d674 parse_sname_as_options = 1; - 800d670: 2301 movs r3, #1 - 800d672: 62bb str r3, [r7, #40] ; 0x28 + 800d66c: 2301 movs r3, #1 + 800d66e: 62bb str r3, [r7, #40] ; 0x28 parse_file_as_options = 1; - 800d674: 2301 movs r3, #1 - 800d676: 62fb str r3, [r7, #44] ; 0x2c + 800d670: 2301 movs r3, #1 + 800d672: 62fb str r3, [r7, #44] ; 0x2c LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname and file field\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("invalid overload option: %d\n", (int)overload)); } } if (parse_file_as_options) { - 800d678: 6afb ldr r3, [r7, #44] ; 0x2c - 800d67a: 2b00 cmp r3, #0 - 800d67c: d006 beq.n 800d68c + 800d674: 6afb ldr r3, [r7, #44] ; 0x2c + 800d676: 2b00 cmp r3, #0 + 800d678: d006 beq.n 800d688 /* if both are overloaded, parse file first and then sname (RFC 2131 ch. 4.1) */ parse_file_as_options = 0; - 800d67e: 2300 movs r3, #0 - 800d680: 62fb str r3, [r7, #44] ; 0x2c + 800d67a: 2300 movs r3, #0 + 800d67c: 62fb str r3, [r7, #44] ; 0x2c options_idx = DHCP_FILE_OFS; - 800d682: 236c movs r3, #108 ; 0x6c - 800d684: 86fb strh r3, [r7, #54] ; 0x36 + 800d67e: 236c movs r3, #108 ; 0x6c + 800d680: 86fb strh r3, [r7, #54] ; 0x36 options_idx_max = DHCP_FILE_OFS + DHCP_FILE_LEN; - 800d686: 23ec movs r3, #236 ; 0xec - 800d688: 86bb strh r3, [r7, #52] ; 0x34 + 800d682: 23ec movs r3, #236 ; 0xec + 800d684: 86bb strh r3, [r7, #52] ; 0x34 #if LWIP_DHCP_BOOTP_FILE file_overloaded = 1; #endif goto again; - 800d68a: e56a b.n 800d162 + 800d686: e56a b.n 800d15e } else if (parse_sname_as_options) { - 800d68c: 6abb ldr r3, [r7, #40] ; 0x28 - 800d68e: 2b00 cmp r3, #0 - 800d690: d006 beq.n 800d6a0 + 800d688: 6abb ldr r3, [r7, #40] ; 0x28 + 800d68a: 2b00 cmp r3, #0 + 800d68c: d006 beq.n 800d69c parse_sname_as_options = 0; - 800d692: 2300 movs r3, #0 - 800d694: 62bb str r3, [r7, #40] ; 0x28 + 800d68e: 2300 movs r3, #0 + 800d690: 62bb str r3, [r7, #40] ; 0x28 options_idx = DHCP_SNAME_OFS; - 800d696: 232c movs r3, #44 ; 0x2c - 800d698: 86fb strh r3, [r7, #54] ; 0x36 + 800d692: 232c movs r3, #44 ; 0x2c + 800d694: 86fb strh r3, [r7, #54] ; 0x36 options_idx_max = DHCP_SNAME_OFS + DHCP_SNAME_LEN; - 800d69a: 236c movs r3, #108 ; 0x6c - 800d69c: 86bb strh r3, [r7, #52] ; 0x34 + 800d696: 236c movs r3, #108 ; 0x6c + 800d698: 86bb strh r3, [r7, #52] ; 0x34 goto again; - 800d69e: e560 b.n 800d162 + 800d69a: e560 b.n 800d15e } /* make sure the string is really NULL-terminated */ dhcp->boot_file_name[DHCP_FILE_LEN-1] = 0; } #endif /* LWIP_DHCP_BOOTP_FILE */ return ERR_OK; - 800d6a0: 2300 movs r3, #0 + 800d69c: 2300 movs r3, #0 } - 800d6a2: 4618 mov r0, r3 - 800d6a4: 3740 adds r7, #64 ; 0x40 - 800d6a6: 46bd mov sp, r7 - 800d6a8: bd80 pop {r7, pc} - 800d6aa: bf00 nop - 800d6ac: 0801720c .word 0x0801720c - 800d6b0: 08017494 .word 0x08017494 - 800d6b4: 0801726c .word 0x0801726c - 800d6b8: 080174d8 .word 0x080174d8 - 800d6bc: 20008c80 .word 0x20008c80 - 800d6c0: 080174ec .word 0x080174ec - 800d6c4: 20008c60 .word 0x20008c60 - 800d6c8: 08017504 .word 0x08017504 - 800d6cc: 08017518 .word 0x08017518 + 800d69e: 4618 mov r0, r3 + 800d6a0: 3740 adds r7, #64 ; 0x40 + 800d6a2: 46bd mov sp, r7 + 800d6a4: bd80 pop {r7, pc} + 800d6a6: bf00 nop + 800d6a8: 0801720c .word 0x0801720c + 800d6ac: 08017494 .word 0x08017494 + 800d6b0: 0801726c .word 0x0801726c + 800d6b4: 080174d8 .word 0x080174d8 + 800d6b8: 20008c80 .word 0x20008c80 + 800d6bc: 080174ec .word 0x080174ec + 800d6c0: 20008c60 .word 0x20008c60 + 800d6c4: 08017504 .word 0x08017504 + 800d6c8: 08017518 .word 0x08017518 -0800d6d0 : +0800d6cc : /** * If an incoming DHCP message is in response to us, then trigger the state machine */ static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) { - 800d6d0: b580 push {r7, lr} - 800d6d2: b08a sub sp, #40 ; 0x28 - 800d6d4: af00 add r7, sp, #0 - 800d6d6: 60f8 str r0, [r7, #12] - 800d6d8: 60b9 str r1, [r7, #8] - 800d6da: 607a str r2, [r7, #4] - 800d6dc: 603b str r3, [r7, #0] + 800d6cc: b580 push {r7, lr} + 800d6ce: b08a sub sp, #40 ; 0x28 + 800d6d0: af00 add r7, sp, #0 + 800d6d2: 60f8 str r0, [r7, #12] + 800d6d4: 60b9 str r1, [r7, #8] + 800d6d6: 607a str r2, [r7, #4] + 800d6d8: 603b str r3, [r7, #0] struct netif *netif = ip_current_input_netif(); - 800d6de: 4b60 ldr r3, [pc, #384] ; (800d860 ) - 800d6e0: 685b ldr r3, [r3, #4] - 800d6e2: 623b str r3, [r7, #32] + 800d6da: 4b60 ldr r3, [pc, #384] ; (800d85c ) + 800d6dc: 685b ldr r3, [r3, #4] + 800d6de: 623b str r3, [r7, #32] struct dhcp *dhcp = netif_dhcp_data(netif); - 800d6e4: 6a3b ldr r3, [r7, #32] - 800d6e6: 6a5b ldr r3, [r3, #36] ; 0x24 - 800d6e8: 61fb str r3, [r7, #28] + 800d6e0: 6a3b ldr r3, [r7, #32] + 800d6e2: 6a5b ldr r3, [r3, #36] ; 0x24 + 800d6e4: 61fb str r3, [r7, #28] struct dhcp_msg *reply_msg = (struct dhcp_msg *)p->payload; - 800d6ea: 687b ldr r3, [r7, #4] - 800d6ec: 685b ldr r3, [r3, #4] - 800d6ee: 61bb str r3, [r7, #24] + 800d6e6: 687b ldr r3, [r7, #4] + 800d6e8: 685b ldr r3, [r3, #4] + 800d6ea: 61bb str r3, [r7, #24] struct dhcp_msg *msg_in; LWIP_UNUSED_ARG(arg); /* Caught DHCP message from netif that does not have DHCP enabled? -> not interested */ if ((dhcp == NULL) || (dhcp->pcb_allocated == 0)) { - 800d6f0: 69fb ldr r3, [r7, #28] - 800d6f2: 2b00 cmp r3, #0 - 800d6f4: f000 809d beq.w 800d832 - 800d6f8: 69fb ldr r3, [r7, #28] - 800d6fa: 791b ldrb r3, [r3, #4] - 800d6fc: 2b00 cmp r3, #0 - 800d6fe: f000 8098 beq.w 800d832 + 800d6ec: 69fb ldr r3, [r7, #28] + 800d6ee: 2b00 cmp r3, #0 + 800d6f0: f000 809d beq.w 800d82e + 800d6f4: 69fb ldr r3, [r7, #28] + 800d6f6: 791b ldrb r3, [r3, #4] + 800d6f8: 2b00 cmp r3, #0 + 800d6fa: f000 8098 beq.w 800d82e /* prevent warnings about unused arguments */ LWIP_UNUSED_ARG(pcb); LWIP_UNUSED_ARG(addr); LWIP_UNUSED_ARG(port); if (p->len < DHCP_MIN_REPLY_LEN) { - 800d702: 687b ldr r3, [r7, #4] - 800d704: 895b ldrh r3, [r3, #10] - 800d706: 2b2b cmp r3, #43 ; 0x2b - 800d708: f240 8095 bls.w 800d836 + 800d6fe: 687b ldr r3, [r7, #4] + 800d700: 895b ldrh r3, [r3, #10] + 800d702: 2b2b cmp r3, #43 ; 0x2b + 800d704: f240 8095 bls.w 800d832 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP reply message or pbuf too short\n")); goto free_pbuf_and_return; } if (reply_msg->op != DHCP_BOOTREPLY) { - 800d70c: 69bb ldr r3, [r7, #24] - 800d70e: 781b ldrb r3, [r3, #0] - 800d710: 2b02 cmp r3, #2 - 800d712: f040 8092 bne.w 800d83a + 800d708: 69bb ldr r3, [r7, #24] + 800d70a: 781b ldrb r3, [r3, #0] + 800d70c: 2b02 cmp r3, #2 + 800d70e: f040 8092 bne.w 800d836 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("not a DHCP reply message, but type %"U16_F"\n", (u16_t)reply_msg->op)); goto free_pbuf_and_return; } /* iterate through hardware address and match against DHCP message */ for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { - 800d716: 2300 movs r3, #0 - 800d718: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800d71c: e012 b.n 800d744 + 800d712: 2300 movs r3, #0 + 800d714: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800d718: e012 b.n 800d740 if (netif->hwaddr[i] != reply_msg->chaddr[i]) { - 800d71e: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d722: 6a3a ldr r2, [r7, #32] - 800d724: 4413 add r3, r2 - 800d726: f893 202a ldrb.w r2, [r3, #42] ; 0x2a - 800d72a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d72e: 69b9 ldr r1, [r7, #24] - 800d730: 440b add r3, r1 - 800d732: 7f1b ldrb r3, [r3, #28] - 800d734: 429a cmp r2, r3 - 800d736: f040 8082 bne.w 800d83e + 800d71a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d71e: 6a3a ldr r2, [r7, #32] + 800d720: 4413 add r3, r2 + 800d722: f893 202a ldrb.w r2, [r3, #42] ; 0x2a + 800d726: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d72a: 69b9 ldr r1, [r7, #24] + 800d72c: 440b add r3, r1 + 800d72e: 7f1b ldrb r3, [r3, #28] + 800d730: 429a cmp r2, r3 + 800d732: f040 8082 bne.w 800d83a for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { - 800d73a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d73e: 3301 adds r3, #1 - 800d740: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800d744: 6a3b ldr r3, [r7, #32] - 800d746: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 800d74a: f897 2027 ldrb.w r2, [r7, #39] ; 0x27 - 800d74e: 429a cmp r2, r3 - 800d750: d203 bcs.n 800d75a - 800d752: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800d756: 2b05 cmp r3, #5 - 800d758: d9e1 bls.n 800d71e + 800d736: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d73a: 3301 adds r3, #1 + 800d73c: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800d740: 6a3b ldr r3, [r7, #32] + 800d742: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 800d746: f897 2027 ldrb.w r2, [r7, #39] ; 0x27 + 800d74a: 429a cmp r2, r3 + 800d74c: d203 bcs.n 800d756 + 800d74e: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800d752: 2b05 cmp r3, #5 + 800d754: d9e1 bls.n 800d71a (u16_t)i, (u16_t)netif->hwaddr[i], (u16_t)i, (u16_t)reply_msg->chaddr[i])); goto free_pbuf_and_return; } } /* match transaction ID against what we expected */ if (lwip_ntohl(reply_msg->xid) != dhcp->xid) { - 800d75a: 69bb ldr r3, [r7, #24] - 800d75c: 685b ldr r3, [r3, #4] - 800d75e: 4618 mov r0, r3 - 800d760: f7f6 fdc7 bl 80042f2 - 800d764: 4602 mov r2, r0 - 800d766: 69fb ldr r3, [r7, #28] - 800d768: 681b ldr r3, [r3, #0] - 800d76a: 429a cmp r2, r3 - 800d76c: d169 bne.n 800d842 + 800d756: 69bb ldr r3, [r7, #24] + 800d758: 685b ldr r3, [r3, #4] + 800d75a: 4618 mov r0, r3 + 800d75c: f7f6 fdc7 bl 80042ee + 800d760: 4602 mov r2, r0 + 800d762: 69fb ldr r3, [r7, #28] + 800d764: 681b ldr r3, [r3, #0] + 800d766: 429a cmp r2, r3 + 800d768: d169 bne.n 800d83e LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("transaction id mismatch reply_msg->xid(%"X32_F")!=dhcp->xid(%"X32_F")\n", lwip_ntohl(reply_msg->xid), dhcp->xid)); goto free_pbuf_and_return; } /* option fields could be unfold? */ if (dhcp_parse_reply(p, dhcp) != ERR_OK) { - 800d76e: 69f9 ldr r1, [r7, #28] - 800d770: 6878 ldr r0, [r7, #4] - 800d772: f7ff fcd9 bl 800d128 - 800d776: 4603 mov r3, r0 - 800d778: 2b00 cmp r3, #0 - 800d77a: d164 bne.n 800d846 + 800d76a: 69f9 ldr r1, [r7, #28] + 800d76c: 6878 ldr r0, [r7, #4] + 800d76e: f7ff fcd9 bl 800d124 + 800d772: 4603 mov r3, r0 + 800d774: 2b00 cmp r3, #0 + 800d776: d164 bne.n 800d842 goto free_pbuf_and_return; } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("searching DHCP_OPTION_MESSAGE_TYPE\n")); /* obtain pointer to DHCP message type */ if (!dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE)) { - 800d77c: 4b39 ldr r3, [pc, #228] ; (800d864 ) - 800d77e: 785b ldrb r3, [r3, #1] - 800d780: 2b00 cmp r3, #0 - 800d782: d062 beq.n 800d84a + 800d778: 4b39 ldr r3, [pc, #228] ; (800d860 ) + 800d77a: 785b ldrb r3, [r3, #1] + 800d77c: 2b00 cmp r3, #0 + 800d77e: d062 beq.n 800d846 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP_OPTION_MESSAGE_TYPE option not found\n")); goto free_pbuf_and_return; } msg_in = (struct dhcp_msg *)p->payload; - 800d784: 687b ldr r3, [r7, #4] - 800d786: 685b ldr r3, [r3, #4] - 800d788: 617b str r3, [r7, #20] + 800d780: 687b ldr r3, [r7, #4] + 800d782: 685b ldr r3, [r3, #4] + 800d784: 617b str r3, [r7, #20] /* read DHCP message type */ msg_type = (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE); - 800d78a: 4b37 ldr r3, [pc, #220] ; (800d868 ) - 800d78c: 685b ldr r3, [r3, #4] - 800d78e: 74fb strb r3, [r7, #19] + 800d786: 4b37 ldr r3, [pc, #220] ; (800d864 ) + 800d788: 685b ldr r3, [r3, #4] + 800d78a: 74fb strb r3, [r7, #19] /* message type is DHCP ACK? */ if (msg_type == DHCP_ACK) { - 800d790: 7cfb ldrb r3, [r7, #19] - 800d792: 2b05 cmp r3, #5 - 800d794: d12a bne.n 800d7ec + 800d78c: 7cfb ldrb r3, [r7, #19] + 800d78e: 2b05 cmp r3, #5 + 800d790: d12a bne.n 800d7e8 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_ACK received\n")); /* in requesting state? */ if (dhcp->state == DHCP_STATE_REQUESTING) { - 800d796: 69fb ldr r3, [r7, #28] - 800d798: 795b ldrb r3, [r3, #5] - 800d79a: 2b01 cmp r3, #1 - 800d79c: d112 bne.n 800d7c4 + 800d792: 69fb ldr r3, [r7, #28] + 800d794: 795b ldrb r3, [r3, #5] + 800d796: 2b01 cmp r3, #1 + 800d798: d112 bne.n 800d7c0 dhcp_handle_ack(netif, msg_in); - 800d79e: 6979 ldr r1, [r7, #20] - 800d7a0: 6a38 ldr r0, [r7, #32] - 800d7a2: f7fe fe17 bl 800c3d4 + 800d79a: 6979 ldr r1, [r7, #20] + 800d79c: 6a38 ldr r0, [r7, #32] + 800d79e: f7fe fe17 bl 800c3d0 #if DHCP_DOES_ARP_CHECK if ((netif->flags & NETIF_FLAG_ETHARP) != 0) { - 800d7a6: 6a3b ldr r3, [r7, #32] - 800d7a8: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800d7ac: f003 0308 and.w r3, r3, #8 - 800d7b0: 2b00 cmp r3, #0 - 800d7b2: d003 beq.n 800d7bc + 800d7a2: 6a3b ldr r3, [r7, #32] + 800d7a4: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800d7a8: f003 0308 and.w r3, r3, #8 + 800d7ac: 2b00 cmp r3, #0 + 800d7ae: d003 beq.n 800d7b8 /* check if the acknowledged lease address is already in use */ dhcp_check(netif); - 800d7b4: 6a38 ldr r0, [r7, #32] - 800d7b6: f7fe fb87 bl 800bec8 - 800d7ba: e049 b.n 800d850 + 800d7b0: 6a38 ldr r0, [r7, #32] + 800d7b2: f7fe fb87 bl 800bec4 + 800d7b6: e049 b.n 800d84c } else { /* bind interface to the acknowledged lease address */ dhcp_bind(netif); - 800d7bc: 6a38 ldr r0, [r7, #32] - 800d7be: f7ff f867 bl 800c890 - 800d7c2: e045 b.n 800d850 + 800d7b8: 6a38 ldr r0, [r7, #32] + 800d7ba: f7ff f867 bl 800c88c + 800d7be: e045 b.n 800d84c /* bind interface to the acknowledged lease address */ dhcp_bind(netif); #endif } /* already bound to the given lease address? */ else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) || - 800d7c4: 69fb ldr r3, [r7, #28] - 800d7c6: 795b ldrb r3, [r3, #5] - 800d7c8: 2b03 cmp r3, #3 - 800d7ca: d007 beq.n 800d7dc - 800d7cc: 69fb ldr r3, [r7, #28] - 800d7ce: 795b ldrb r3, [r3, #5] - 800d7d0: 2b04 cmp r3, #4 - 800d7d2: d003 beq.n 800d7dc + 800d7c0: 69fb ldr r3, [r7, #28] + 800d7c2: 795b ldrb r3, [r3, #5] + 800d7c4: 2b03 cmp r3, #3 + 800d7c6: d007 beq.n 800d7d8 + 800d7c8: 69fb ldr r3, [r7, #28] + 800d7ca: 795b ldrb r3, [r3, #5] + 800d7cc: 2b04 cmp r3, #4 + 800d7ce: d003 beq.n 800d7d8 (dhcp->state == DHCP_STATE_RENEWING)) { - 800d7d4: 69fb ldr r3, [r7, #28] - 800d7d6: 795b ldrb r3, [r3, #5] + 800d7d0: 69fb ldr r3, [r7, #28] + 800d7d2: 795b ldrb r3, [r3, #5] else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) || - 800d7d8: 2b05 cmp r3, #5 - 800d7da: d139 bne.n 800d850 + 800d7d4: 2b05 cmp r3, #5 + 800d7d6: d139 bne.n 800d84c dhcp_handle_ack(netif, msg_in); - 800d7dc: 6979 ldr r1, [r7, #20] - 800d7de: 6a38 ldr r0, [r7, #32] - 800d7e0: f7fe fdf8 bl 800c3d4 + 800d7d8: 6979 ldr r1, [r7, #20] + 800d7da: 6a38 ldr r0, [r7, #32] + 800d7dc: f7fe fdf8 bl 800c3d0 dhcp_bind(netif); - 800d7e4: 6a38 ldr r0, [r7, #32] - 800d7e6: f7ff f853 bl 800c890 - 800d7ea: e031 b.n 800d850 + 800d7e0: 6a38 ldr r0, [r7, #32] + 800d7e2: f7ff f853 bl 800c88c + 800d7e6: e031 b.n 800d84c } } /* received a DHCP_NAK in appropriate state? */ else if ((msg_type == DHCP_NAK) && - 800d7ec: 7cfb ldrb r3, [r7, #19] - 800d7ee: 2b06 cmp r3, #6 - 800d7f0: d113 bne.n 800d81a + 800d7e8: 7cfb ldrb r3, [r7, #19] + 800d7ea: 2b06 cmp r3, #6 + 800d7ec: d113 bne.n 800d816 ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) || - 800d7f2: 69fb ldr r3, [r7, #28] - 800d7f4: 795b ldrb r3, [r3, #5] + 800d7ee: 69fb ldr r3, [r7, #28] + 800d7f0: 795b ldrb r3, [r3, #5] else if ((msg_type == DHCP_NAK) && - 800d7f6: 2b03 cmp r3, #3 - 800d7f8: d00b beq.n 800d812 + 800d7f2: 2b03 cmp r3, #3 + 800d7f4: d00b beq.n 800d80e ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) || - 800d7fa: 69fb ldr r3, [r7, #28] - 800d7fc: 795b ldrb r3, [r3, #5] - 800d7fe: 2b01 cmp r3, #1 - 800d800: d007 beq.n 800d812 + 800d7f6: 69fb ldr r3, [r7, #28] + 800d7f8: 795b ldrb r3, [r3, #5] + 800d7fa: 2b01 cmp r3, #1 + 800d7fc: d007 beq.n 800d80e (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) { - 800d802: 69fb ldr r3, [r7, #28] - 800d804: 795b ldrb r3, [r3, #5] + 800d7fe: 69fb ldr r3, [r7, #28] + 800d800: 795b ldrb r3, [r3, #5] ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) || - 800d806: 2b04 cmp r3, #4 - 800d808: d003 beq.n 800d812 + 800d802: 2b04 cmp r3, #4 + 800d804: d003 beq.n 800d80e (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) { - 800d80a: 69fb ldr r3, [r7, #28] - 800d80c: 795b ldrb r3, [r3, #5] - 800d80e: 2b05 cmp r3, #5 - 800d810: d103 bne.n 800d81a + 800d806: 69fb ldr r3, [r7, #28] + 800d808: 795b ldrb r3, [r3, #5] + 800d80a: 2b05 cmp r3, #5 + 800d80c: d103 bne.n 800d816 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_NAK received\n")); dhcp_handle_nak(netif); - 800d812: 6a38 ldr r0, [r7, #32] - 800d814: f7fe fb3e bl 800be94 - 800d818: e01a b.n 800d850 + 800d80e: 6a38 ldr r0, [r7, #32] + 800d810: f7fe fb3e bl 800be90 + 800d814: e01a b.n 800d84c } /* received a DHCP_OFFER in DHCP_STATE_SELECTING state? */ else if ((msg_type == DHCP_OFFER) && (dhcp->state == DHCP_STATE_SELECTING)) { - 800d81a: 7cfb ldrb r3, [r7, #19] - 800d81c: 2b02 cmp r3, #2 - 800d81e: d116 bne.n 800d84e - 800d820: 69fb ldr r3, [r7, #28] - 800d822: 795b ldrb r3, [r3, #5] - 800d824: 2b06 cmp r3, #6 - 800d826: d112 bne.n 800d84e + 800d816: 7cfb ldrb r3, [r7, #19] + 800d818: 2b02 cmp r3, #2 + 800d81a: d116 bne.n 800d84a + 800d81c: 69fb ldr r3, [r7, #28] + 800d81e: 795b ldrb r3, [r3, #5] + 800d820: 2b06 cmp r3, #6 + 800d822: d112 bne.n 800d84a LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_OFFER received in DHCP_STATE_SELECTING state\n")); /* remember offered lease */ dhcp_handle_offer(netif, msg_in); - 800d828: 6979 ldr r1, [r7, #20] - 800d82a: 6a38 ldr r0, [r7, #32] - 800d82c: f7fe fb80 bl 800bf30 - 800d830: e00e b.n 800d850 + 800d824: 6979 ldr r1, [r7, #20] + 800d826: 6a38 ldr r0, [r7, #32] + 800d828: f7fe fb80 bl 800bf2c + 800d82c: e00e b.n 800d84c + goto free_pbuf_and_return; + 800d82e: bf00 nop + 800d830: e00c b.n 800d84c goto free_pbuf_and_return; 800d832: bf00 nop - 800d834: e00c b.n 800d850 + 800d834: e00a b.n 800d84c goto free_pbuf_and_return; 800d836: bf00 nop - 800d838: e00a b.n 800d850 - goto free_pbuf_and_return; - 800d83a: bf00 nop - 800d83c: e008 b.n 800d850 + 800d838: e008 b.n 800d84c goto free_pbuf_and_return; + 800d83a: bf00 nop + 800d83c: e006 b.n 800d84c + goto free_pbuf_and_return; 800d83e: bf00 nop - 800d840: e006 b.n 800d850 + 800d840: e004 b.n 800d84c goto free_pbuf_and_return; 800d842: bf00 nop - 800d844: e004 b.n 800d850 + 800d844: e002 b.n 800d84c goto free_pbuf_and_return; 800d846: bf00 nop - 800d848: e002 b.n 800d850 - goto free_pbuf_and_return; - 800d84a: bf00 nop - 800d84c: e000 b.n 800d850 + 800d848: e000 b.n 800d84c } free_pbuf_and_return: - 800d84e: bf00 nop + 800d84a: bf00 nop pbuf_free(p); - 800d850: 6878 ldr r0, [r7, #4] - 800d852: f7f8 f8a3 bl 800599c + 800d84c: 6878 ldr r0, [r7, #4] + 800d84e: f7f8 f8a3 bl 8005998 } - 800d856: bf00 nop - 800d858: 3728 adds r7, #40 ; 0x28 - 800d85a: 46bd mov sp, r7 - 800d85c: bd80 pop {r7, pc} - 800d85e: bf00 nop - 800d860: 20005670 .word 0x20005670 - 800d864: 20008c80 .word 0x20008c80 - 800d868: 20008c60 .word 0x20008c60 + 800d852: bf00 nop + 800d854: 3728 adds r7, #40 ; 0x28 + 800d856: 46bd mov sp, r7 + 800d858: bd80 pop {r7, pc} + 800d85a: bf00 nop + 800d85c: 20005670 .word 0x20005670 + 800d860: 20008c80 .word 0x20008c80 + 800d864: 20008c60 .word 0x20008c60 -0800d86c : +0800d868 : * @param dhcp dhcp control struct * @param message_type message type of the request */ static struct pbuf * dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len) { - 800d86c: b580 push {r7, lr} - 800d86e: b088 sub sp, #32 - 800d870: af00 add r7, sp, #0 - 800d872: 60f8 str r0, [r7, #12] - 800d874: 60b9 str r1, [r7, #8] - 800d876: 603b str r3, [r7, #0] - 800d878: 4613 mov r3, r2 - 800d87a: 71fb strb r3, [r7, #7] + 800d868: b580 push {r7, lr} + 800d86a: b088 sub sp, #32 + 800d86c: af00 add r7, sp, #0 + 800d86e: 60f8 str r0, [r7, #12] + 800d870: 60b9 str r1, [r7, #8] + 800d872: 603b str r3, [r7, #0] + 800d874: 4613 mov r3, r2 + 800d876: 71fb strb r3, [r7, #7] if (!xid_initialised) { xid = DHCP_GLOBAL_XID; xid_initialised = !xid_initialised; } #endif LWIP_ERROR("dhcp_create_msg: netif != NULL", (netif != NULL), return NULL;); - 800d87c: 68fb ldr r3, [r7, #12] - 800d87e: 2b00 cmp r3, #0 - 800d880: d108 bne.n 800d894 - 800d882: 4b5f ldr r3, [pc, #380] ; (800da00 ) - 800d884: f240 7269 movw r2, #1897 ; 0x769 - 800d888: 495e ldr r1, [pc, #376] ; (800da04 ) - 800d88a: 485f ldr r0, [pc, #380] ; (800da08 ) - 800d88c: f002 fda2 bl 80103d4 - 800d890: 2300 movs r3, #0 - 800d892: e0b1 b.n 800d9f8 + 800d878: 68fb ldr r3, [r7, #12] + 800d87a: 2b00 cmp r3, #0 + 800d87c: d108 bne.n 800d890 + 800d87e: 4b5f ldr r3, [pc, #380] ; (800d9fc ) + 800d880: f240 7269 movw r2, #1897 ; 0x769 + 800d884: 495e ldr r1, [pc, #376] ; (800da00 ) + 800d886: 485f ldr r0, [pc, #380] ; (800da04 ) + 800d888: f002 fda2 bl 80103d0 + 800d88c: 2300 movs r3, #0 + 800d88e: e0b1 b.n 800d9f4 LWIP_ERROR("dhcp_create_msg: dhcp != NULL", (dhcp != NULL), return NULL;); - 800d894: 68bb ldr r3, [r7, #8] - 800d896: 2b00 cmp r3, #0 - 800d898: d108 bne.n 800d8ac - 800d89a: 4b59 ldr r3, [pc, #356] ; (800da00 ) - 800d89c: f240 726a movw r2, #1898 ; 0x76a - 800d8a0: 495a ldr r1, [pc, #360] ; (800da0c ) - 800d8a2: 4859 ldr r0, [pc, #356] ; (800da08 ) - 800d8a4: f002 fd96 bl 80103d4 - 800d8a8: 2300 movs r3, #0 - 800d8aa: e0a5 b.n 800d9f8 + 800d890: 68bb ldr r3, [r7, #8] + 800d892: 2b00 cmp r3, #0 + 800d894: d108 bne.n 800d8a8 + 800d896: 4b59 ldr r3, [pc, #356] ; (800d9fc ) + 800d898: f240 726a movw r2, #1898 ; 0x76a + 800d89c: 495a ldr r1, [pc, #360] ; (800da08 ) + 800d89e: 4859 ldr r0, [pc, #356] ; (800da04 ) + 800d8a0: f002 fd96 bl 80103d0 + 800d8a4: 2300 movs r3, #0 + 800d8a6: e0a5 b.n 800d9f4 p_out = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct dhcp_msg), PBUF_RAM); - 800d8ac: f44f 7220 mov.w r2, #640 ; 0x280 - 800d8b0: f44f 719a mov.w r1, #308 ; 0x134 - 800d8b4: 2036 movs r0, #54 ; 0x36 - 800d8b6: f7f7 fd8d bl 80053d4 - 800d8ba: 61b8 str r0, [r7, #24] + 800d8a8: f44f 7220 mov.w r2, #640 ; 0x280 + 800d8ac: f44f 719a mov.w r1, #308 ; 0x134 + 800d8b0: 2036 movs r0, #54 ; 0x36 + 800d8b2: f7f7 fd8d bl 80053d0 + 800d8b6: 61b8 str r0, [r7, #24] if (p_out == NULL) { - 800d8bc: 69bb ldr r3, [r7, #24] - 800d8be: 2b00 cmp r3, #0 - 800d8c0: d101 bne.n 800d8c6 + 800d8b8: 69bb ldr r3, [r7, #24] + 800d8ba: 2b00 cmp r3, #0 + 800d8bc: d101 bne.n 800d8c2 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_create_msg(): could not allocate pbuf\n")); return NULL; - 800d8c2: 2300 movs r3, #0 - 800d8c4: e098 b.n 800d9f8 + 800d8be: 2300 movs r3, #0 + 800d8c0: e098 b.n 800d9f4 } LWIP_ASSERT("dhcp_create_msg: check that first pbuf can hold struct dhcp_msg", - 800d8c6: 69bb ldr r3, [r7, #24] - 800d8c8: 895b ldrh r3, [r3, #10] - 800d8ca: f5b3 7f9a cmp.w r3, #308 ; 0x134 - 800d8ce: d206 bcs.n 800d8de - 800d8d0: 4b4b ldr r3, [pc, #300] ; (800da00 ) - 800d8d2: f240 7271 movw r2, #1905 ; 0x771 - 800d8d6: 494e ldr r1, [pc, #312] ; (800da10 ) - 800d8d8: 484b ldr r0, [pc, #300] ; (800da08 ) - 800d8da: f002 fd7b bl 80103d4 + 800d8c2: 69bb ldr r3, [r7, #24] + 800d8c4: 895b ldrh r3, [r3, #10] + 800d8c6: f5b3 7f9a cmp.w r3, #308 ; 0x134 + 800d8ca: d206 bcs.n 800d8da + 800d8cc: 4b4b ldr r3, [pc, #300] ; (800d9fc ) + 800d8ce: f240 7271 movw r2, #1905 ; 0x771 + 800d8d2: 494e ldr r1, [pc, #312] ; (800da0c ) + 800d8d4: 484b ldr r0, [pc, #300] ; (800da04 ) + 800d8d6: f002 fd7b bl 80103d0 (p_out->len >= sizeof(struct dhcp_msg))); /* DHCP_REQUEST should reuse 'xid' from DHCPOFFER */ if ((message_type != DHCP_REQUEST) || (dhcp->state == DHCP_STATE_REBOOTING)) { - 800d8de: 79fb ldrb r3, [r7, #7] - 800d8e0: 2b03 cmp r3, #3 - 800d8e2: d103 bne.n 800d8ec - 800d8e4: 68bb ldr r3, [r7, #8] - 800d8e6: 795b ldrb r3, [r3, #5] - 800d8e8: 2b03 cmp r3, #3 - 800d8ea: d10d bne.n 800d908 + 800d8da: 79fb ldrb r3, [r7, #7] + 800d8dc: 2b03 cmp r3, #3 + 800d8de: d103 bne.n 800d8e8 + 800d8e0: 68bb ldr r3, [r7, #8] + 800d8e2: 795b ldrb r3, [r3, #5] + 800d8e4: 2b03 cmp r3, #3 + 800d8e6: d10d bne.n 800d904 /* reuse transaction identifier in retransmissions */ if (dhcp->tries == 0) { - 800d8ec: 68bb ldr r3, [r7, #8] - 800d8ee: 799b ldrb r3, [r3, #6] - 800d8f0: 2b00 cmp r3, #0 - 800d8f2: d105 bne.n 800d900 + 800d8e8: 68bb ldr r3, [r7, #8] + 800d8ea: 799b ldrb r3, [r3, #6] + 800d8ec: 2b00 cmp r3, #0 + 800d8ee: d105 bne.n 800d8fc #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) xid = LWIP_RAND(); - 800d8f4: f002 fd80 bl 80103f8 - 800d8f8: 4603 mov r3, r0 - 800d8fa: 461a mov r2, r3 - 800d8fc: 4b45 ldr r3, [pc, #276] ; (800da14 ) - 800d8fe: 601a str r2, [r3, #0] + 800d8f0: f002 fd80 bl 80103f4 + 800d8f4: 4603 mov r3, r0 + 800d8f6: 461a mov r2, r3 + 800d8f8: 4b45 ldr r3, [pc, #276] ; (800da10 ) + 800d8fa: 601a str r2, [r3, #0] #else /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */ xid++; #endif /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */ } dhcp->xid = xid; - 800d900: 4b44 ldr r3, [pc, #272] ; (800da14 ) - 800d902: 681a ldr r2, [r3, #0] - 800d904: 68bb ldr r3, [r7, #8] - 800d906: 601a str r2, [r3, #0] + 800d8fc: 4b44 ldr r3, [pc, #272] ; (800da10 ) + 800d8fe: 681a ldr r2, [r3, #0] + 800d900: 68bb ldr r3, [r7, #8] + 800d902: 601a str r2, [r3, #0] } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("transaction id xid(%"X32_F")\n", xid)); msg_out = (struct dhcp_msg *)p_out->payload; - 800d908: 69bb ldr r3, [r7, #24] - 800d90a: 685b ldr r3, [r3, #4] - 800d90c: 617b str r3, [r7, #20] + 800d904: 69bb ldr r3, [r7, #24] + 800d906: 685b ldr r3, [r3, #4] + 800d908: 617b str r3, [r7, #20] memset(msg_out, 0, sizeof(struct dhcp_msg)); - 800d90e: f44f 729a mov.w r2, #308 ; 0x134 - 800d912: 2100 movs r1, #0 - 800d914: 6978 ldr r0, [r7, #20] - 800d916: f002 fd55 bl 80103c4 + 800d90a: f44f 729a mov.w r2, #308 ; 0x134 + 800d90e: 2100 movs r1, #0 + 800d910: 6978 ldr r0, [r7, #20] + 800d912: f002 fd55 bl 80103c0 msg_out->op = DHCP_BOOTREQUEST; - 800d91a: 697b ldr r3, [r7, #20] - 800d91c: 2201 movs r2, #1 - 800d91e: 701a strb r2, [r3, #0] + 800d916: 697b ldr r3, [r7, #20] + 800d918: 2201 movs r2, #1 + 800d91a: 701a strb r2, [r3, #0] /* @todo: make link layer independent */ msg_out->htype = LWIP_IANA_HWTYPE_ETHERNET; - 800d920: 697b ldr r3, [r7, #20] - 800d922: 2201 movs r2, #1 - 800d924: 705a strb r2, [r3, #1] + 800d91c: 697b ldr r3, [r7, #20] + 800d91e: 2201 movs r2, #1 + 800d920: 705a strb r2, [r3, #1] msg_out->hlen = netif->hwaddr_len; - 800d926: 68fb ldr r3, [r7, #12] - 800d928: f893 2030 ldrb.w r2, [r3, #48] ; 0x30 - 800d92c: 697b ldr r3, [r7, #20] - 800d92e: 709a strb r2, [r3, #2] + 800d922: 68fb ldr r3, [r7, #12] + 800d924: f893 2030 ldrb.w r2, [r3, #48] ; 0x30 + 800d928: 697b ldr r3, [r7, #20] + 800d92a: 709a strb r2, [r3, #2] msg_out->xid = lwip_htonl(dhcp->xid); - 800d930: 68bb ldr r3, [r7, #8] - 800d932: 681b ldr r3, [r3, #0] - 800d934: 4618 mov r0, r3 - 800d936: f7f6 fcdc bl 80042f2 - 800d93a: 4602 mov r2, r0 - 800d93c: 697b ldr r3, [r7, #20] - 800d93e: 605a str r2, [r3, #4] + 800d92c: 68bb ldr r3, [r7, #8] + 800d92e: 681b ldr r3, [r3, #0] + 800d930: 4618 mov r0, r3 + 800d932: f7f6 fcdc bl 80042ee + 800d936: 4602 mov r2, r0 + 800d938: 697b ldr r3, [r7, #20] + 800d93a: 605a str r2, [r3, #4] /* we don't need the broadcast flag since we can receive unicast traffic before being fully configured! */ /* set ciaddr to netif->ip_addr based on message_type and state */ if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) || - 800d940: 79fb ldrb r3, [r7, #7] - 800d942: 2b08 cmp r3, #8 - 800d944: d010 beq.n 800d968 - 800d946: 79fb ldrb r3, [r7, #7] - 800d948: 2b04 cmp r3, #4 - 800d94a: d00d beq.n 800d968 - 800d94c: 79fb ldrb r3, [r7, #7] - 800d94e: 2b07 cmp r3, #7 - 800d950: d00a beq.n 800d968 - 800d952: 79fb ldrb r3, [r7, #7] - 800d954: 2b03 cmp r3, #3 - 800d956: d10c bne.n 800d972 + 800d93c: 79fb ldrb r3, [r7, #7] + 800d93e: 2b08 cmp r3, #8 + 800d940: d010 beq.n 800d964 + 800d942: 79fb ldrb r3, [r7, #7] + 800d944: 2b04 cmp r3, #4 + 800d946: d00d beq.n 800d964 + 800d948: 79fb ldrb r3, [r7, #7] + 800d94a: 2b07 cmp r3, #7 + 800d94c: d00a beq.n 800d964 + 800d94e: 79fb ldrb r3, [r7, #7] + 800d950: 2b03 cmp r3, #3 + 800d952: d10c bne.n 800d96e ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */ ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) { - 800d958: 68bb ldr r3, [r7, #8] - 800d95a: 795b ldrb r3, [r3, #5] + 800d954: 68bb ldr r3, [r7, #8] + 800d956: 795b ldrb r3, [r3, #5] ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */ - 800d95c: 2b05 cmp r3, #5 - 800d95e: d003 beq.n 800d968 + 800d958: 2b05 cmp r3, #5 + 800d95a: d003 beq.n 800d964 ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) { - 800d960: 68bb ldr r3, [r7, #8] - 800d962: 795b ldrb r3, [r3, #5] - 800d964: 2b04 cmp r3, #4 - 800d966: d104 bne.n 800d972 + 800d95c: 68bb ldr r3, [r7, #8] + 800d95e: 795b ldrb r3, [r3, #5] + 800d960: 2b04 cmp r3, #4 + 800d962: d104 bne.n 800d96e ip4_addr_copy(msg_out->ciaddr, *netif_ip4_addr(netif)); - 800d968: 68fb ldr r3, [r7, #12] - 800d96a: 3304 adds r3, #4 - 800d96c: 681a ldr r2, [r3, #0] - 800d96e: 697b ldr r3, [r7, #20] - 800d970: 60da str r2, [r3, #12] + 800d964: 68fb ldr r3, [r7, #12] + 800d966: 3304 adds r3, #4 + 800d968: 681a ldr r2, [r3, #0] + 800d96a: 697b ldr r3, [r7, #20] + 800d96c: 60da str r2, [r3, #12] } for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { - 800d972: 2300 movs r3, #0 - 800d974: 83fb strh r3, [r7, #30] - 800d976: e00c b.n 800d992 + 800d96e: 2300 movs r3, #0 + 800d970: 83fb strh r3, [r7, #30] + 800d972: e00c b.n 800d98e /* copy netif hardware address (padded with zeroes through memset already) */ msg_out->chaddr[i] = netif->hwaddr[i]; - 800d978: 8bfa ldrh r2, [r7, #30] - 800d97a: 8bfb ldrh r3, [r7, #30] - 800d97c: 68f9 ldr r1, [r7, #12] - 800d97e: 440a add r2, r1 - 800d980: f892 102a ldrb.w r1, [r2, #42] ; 0x2a - 800d984: 697a ldr r2, [r7, #20] - 800d986: 4413 add r3, r2 - 800d988: 460a mov r2, r1 - 800d98a: 771a strb r2, [r3, #28] + 800d974: 8bfa ldrh r2, [r7, #30] + 800d976: 8bfb ldrh r3, [r7, #30] + 800d978: 68f9 ldr r1, [r7, #12] + 800d97a: 440a add r2, r1 + 800d97c: f892 102a ldrb.w r1, [r2, #42] ; 0x2a + 800d980: 697a ldr r2, [r7, #20] + 800d982: 4413 add r3, r2 + 800d984: 460a mov r2, r1 + 800d986: 771a strb r2, [r3, #28] for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { - 800d98c: 8bfb ldrh r3, [r7, #30] - 800d98e: 3301 adds r3, #1 - 800d990: 83fb strh r3, [r7, #30] - 800d992: 8bfb ldrh r3, [r7, #30] - 800d994: 2b05 cmp r3, #5 - 800d996: d9ef bls.n 800d978 + 800d988: 8bfb ldrh r3, [r7, #30] + 800d98a: 3301 adds r3, #1 + 800d98c: 83fb strh r3, [r7, #30] + 800d98e: 8bfb ldrh r3, [r7, #30] + 800d990: 2b05 cmp r3, #5 + 800d992: d9ef bls.n 800d974 } msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE); - 800d998: 697b ldr r3, [r7, #20] - 800d99a: 2200 movs r2, #0 - 800d99c: f042 0263 orr.w r2, r2, #99 ; 0x63 - 800d9a0: f883 20ec strb.w r2, [r3, #236] ; 0xec - 800d9a4: 2200 movs r2, #0 - 800d9a6: f062 027d orn r2, r2, #125 ; 0x7d - 800d9aa: f883 20ed strb.w r2, [r3, #237] ; 0xed - 800d9ae: 2200 movs r2, #0 - 800d9b0: f042 0253 orr.w r2, r2, #83 ; 0x53 - 800d9b4: f883 20ee strb.w r2, [r3, #238] ; 0xee - 800d9b8: 2200 movs r2, #0 - 800d9ba: f042 0263 orr.w r2, r2, #99 ; 0x63 - 800d9be: f883 20ef strb.w r2, [r3, #239] ; 0xef + 800d994: 697b ldr r3, [r7, #20] + 800d996: 2200 movs r2, #0 + 800d998: f042 0263 orr.w r2, r2, #99 ; 0x63 + 800d99c: f883 20ec strb.w r2, [r3, #236] ; 0xec + 800d9a0: 2200 movs r2, #0 + 800d9a2: f062 027d orn r2, r2, #125 ; 0x7d + 800d9a6: f883 20ed strb.w r2, [r3, #237] ; 0xed + 800d9aa: 2200 movs r2, #0 + 800d9ac: f042 0253 orr.w r2, r2, #83 ; 0x53 + 800d9b0: f883 20ee strb.w r2, [r3, #238] ; 0xee + 800d9b4: 2200 movs r2, #0 + 800d9b6: f042 0263 orr.w r2, r2, #99 ; 0x63 + 800d9ba: f883 20ef strb.w r2, [r3, #239] ; 0xef /* Add option MESSAGE_TYPE */ options_out_len_loc = dhcp_option(0, msg_out->options, DHCP_OPTION_MESSAGE_TYPE, DHCP_OPTION_MESSAGE_TYPE_LEN); - 800d9c2: 697b ldr r3, [r7, #20] - 800d9c4: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800d9c8: 2301 movs r3, #1 - 800d9ca: 2235 movs r2, #53 ; 0x35 - 800d9cc: 2000 movs r0, #0 - 800d9ce: f7ff fadb bl 800cf88 - 800d9d2: 4603 mov r3, r0 - 800d9d4: 827b strh r3, [r7, #18] + 800d9be: 697b ldr r3, [r7, #20] + 800d9c0: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800d9c4: 2301 movs r3, #1 + 800d9c6: 2235 movs r2, #53 ; 0x35 + 800d9c8: 2000 movs r0, #0 + 800d9ca: f7ff fadb bl 800cf84 + 800d9ce: 4603 mov r3, r0 + 800d9d0: 827b strh r3, [r7, #18] options_out_len_loc = dhcp_option_byte(options_out_len_loc, msg_out->options, message_type); - 800d9d6: 697b ldr r3, [r7, #20] - 800d9d8: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 800d9dc: 79fa ldrb r2, [r7, #7] - 800d9de: 8a7b ldrh r3, [r7, #18] - 800d9e0: 4618 mov r0, r3 - 800d9e2: f7ff fb05 bl 800cff0 - 800d9e6: 4603 mov r3, r0 - 800d9e8: 827b strh r3, [r7, #18] + 800d9d2: 697b ldr r3, [r7, #20] + 800d9d4: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 800d9d8: 79fa ldrb r2, [r7, #7] + 800d9da: 8a7b ldrh r3, [r7, #18] + 800d9dc: 4618 mov r0, r3 + 800d9de: f7ff fb05 bl 800cfec + 800d9e2: 4603 mov r3, r0 + 800d9e4: 827b strh r3, [r7, #18] if (options_out_len) { - 800d9ea: 683b ldr r3, [r7, #0] - 800d9ec: 2b00 cmp r3, #0 - 800d9ee: d002 beq.n 800d9f6 + 800d9e6: 683b ldr r3, [r7, #0] + 800d9e8: 2b00 cmp r3, #0 + 800d9ea: d002 beq.n 800d9f2 *options_out_len = options_out_len_loc; - 800d9f0: 683b ldr r3, [r7, #0] - 800d9f2: 8a7a ldrh r2, [r7, #18] - 800d9f4: 801a strh r2, [r3, #0] + 800d9ec: 683b ldr r3, [r7, #0] + 800d9ee: 8a7a ldrh r2, [r7, #18] + 800d9f0: 801a strh r2, [r3, #0] } return p_out; - 800d9f6: 69bb ldr r3, [r7, #24] + 800d9f2: 69bb ldr r3, [r7, #24] } - 800d9f8: 4618 mov r0, r3 - 800d9fa: 3720 adds r7, #32 - 800d9fc: 46bd mov sp, r7 - 800d9fe: bd80 pop {r7, pc} - 800da00: 0801720c .word 0x0801720c - 800da04: 0801752c .word 0x0801752c - 800da08: 0801726c .word 0x0801726c - 800da0c: 0801754c .word 0x0801754c - 800da10: 0801756c .word 0x0801756c - 800da14: 20008c90 .word 0x20008c90 + 800d9f4: 4618 mov r0, r3 + 800d9f6: 3720 adds r7, #32 + 800d9f8: 46bd mov sp, r7 + 800d9fa: bd80 pop {r7, pc} + 800d9fc: 0801720c .word 0x0801720c + 800da00: 0801752c .word 0x0801752c + 800da04: 0801726c .word 0x0801726c + 800da08: 0801754c .word 0x0801754c + 800da0c: 0801756c .word 0x0801756c + 800da10: 20008c90 .word 0x20008c90 -0800da18 : +0800da14 : * Adds the END option to the DHCP message, and if * necessary, up to three padding bytes. */ static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out) { - 800da18: b580 push {r7, lr} - 800da1a: b084 sub sp, #16 - 800da1c: af00 add r7, sp, #0 - 800da1e: 4603 mov r3, r0 - 800da20: 60b9 str r1, [r7, #8] - 800da22: 607a str r2, [r7, #4] - 800da24: 81fb strh r3, [r7, #14] + 800da14: b580 push {r7, lr} + 800da16: b084 sub sp, #16 + 800da18: af00 add r7, sp, #0 + 800da1a: 4603 mov r3, r0 + 800da1c: 60b9 str r1, [r7, #8] + 800da1e: 607a str r2, [r7, #4] + 800da20: 81fb strh r3, [r7, #14] options[options_out_len++] = DHCP_OPTION_END; - 800da26: 89fb ldrh r3, [r7, #14] - 800da28: 1c5a adds r2, r3, #1 - 800da2a: 81fa strh r2, [r7, #14] - 800da2c: 461a mov r2, r3 - 800da2e: 68bb ldr r3, [r7, #8] - 800da30: 4413 add r3, r2 - 800da32: 22ff movs r2, #255 ; 0xff - 800da34: 701a strb r2, [r3, #0] + 800da22: 89fb ldrh r3, [r7, #14] + 800da24: 1c5a adds r2, r3, #1 + 800da26: 81fa strh r2, [r7, #14] + 800da28: 461a mov r2, r3 + 800da2a: 68bb ldr r3, [r7, #8] + 800da2c: 4413 add r3, r2 + 800da2e: 22ff movs r2, #255 ; 0xff + 800da30: 701a strb r2, [r3, #0] /* packet is too small, or not 4 byte aligned? */ while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) && - 800da36: e007 b.n 800da48 + 800da32: e007 b.n 800da44 (options_out_len < DHCP_OPTIONS_LEN)) { /* add a fill/padding byte */ options[options_out_len++] = 0; - 800da38: 89fb ldrh r3, [r7, #14] - 800da3a: 1c5a adds r2, r3, #1 - 800da3c: 81fa strh r2, [r7, #14] - 800da3e: 461a mov r2, r3 - 800da40: 68bb ldr r3, [r7, #8] - 800da42: 4413 add r3, r2 - 800da44: 2200 movs r2, #0 - 800da46: 701a strb r2, [r3, #0] + 800da34: 89fb ldrh r3, [r7, #14] + 800da36: 1c5a adds r2, r3, #1 + 800da38: 81fa strh r2, [r7, #14] + 800da3a: 461a mov r2, r3 + 800da3c: 68bb ldr r3, [r7, #8] + 800da3e: 4413 add r3, r2 + 800da40: 2200 movs r2, #0 + 800da42: 701a strb r2, [r3, #0] while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) && - 800da48: 89fb ldrh r3, [r7, #14] - 800da4a: 2b43 cmp r3, #67 ; 0x43 - 800da4c: d904 bls.n 800da58 - 800da4e: 89fb ldrh r3, [r7, #14] - 800da50: f003 0303 and.w r3, r3, #3 - 800da54: 2b00 cmp r3, #0 - 800da56: d002 beq.n 800da5e - 800da58: 89fb ldrh r3, [r7, #14] - 800da5a: 2b43 cmp r3, #67 ; 0x43 - 800da5c: d9ec bls.n 800da38 + 800da44: 89fb ldrh r3, [r7, #14] + 800da46: 2b43 cmp r3, #67 ; 0x43 + 800da48: d904 bls.n 800da54 + 800da4a: 89fb ldrh r3, [r7, #14] + 800da4c: f003 0303 and.w r3, r3, #3 + 800da50: 2b00 cmp r3, #0 + 800da52: d002 beq.n 800da5a + 800da54: 89fb ldrh r3, [r7, #14] + 800da56: 2b43 cmp r3, #67 ; 0x43 + 800da58: d9ec bls.n 800da34 } /* shrink the pbuf to the actual content length */ pbuf_realloc(p_out, (u16_t)(sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + options_out_len)); - 800da5e: 89fb ldrh r3, [r7, #14] - 800da60: 33f0 adds r3, #240 ; 0xf0 - 800da62: b29b uxth r3, r3 - 800da64: 4619 mov r1, r3 - 800da66: 6878 ldr r0, [r7, #4] - 800da68: f7f7 fe12 bl 8005690 + 800da5a: 89fb ldrh r3, [r7, #14] + 800da5c: 33f0 adds r3, #240 ; 0xf0 + 800da5e: b29b uxth r3, r3 + 800da60: 4619 mov r1, r3 + 800da62: 6878 ldr r0, [r7, #4] + 800da64: f7f7 fe12 bl 800568c } - 800da6c: bf00 nop - 800da6e: 3710 adds r7, #16 - 800da70: 46bd mov sp, r7 - 800da72: bd80 pop {r7, pc} + 800da68: bf00 nop + 800da6a: 3710 adds r7, #16 + 800da6c: 46bd mov sp, r7 + 800da6e: bd80 pop {r7, pc} -0800da74 : +0800da70 : * @return 1 if DHCP supplied netif->ip_addr (states BOUND or RENEWING), * 0 otherwise */ u8_t dhcp_supplied_address(const struct netif *netif) { - 800da74: b480 push {r7} - 800da76: b085 sub sp, #20 - 800da78: af00 add r7, sp, #0 - 800da7a: 6078 str r0, [r7, #4] + 800da70: b480 push {r7} + 800da72: b085 sub sp, #20 + 800da74: af00 add r7, sp, #0 + 800da76: 6078 str r0, [r7, #4] if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) { - 800da7c: 687b ldr r3, [r7, #4] - 800da7e: 2b00 cmp r3, #0 - 800da80: d017 beq.n 800dab2 - 800da82: 687b ldr r3, [r7, #4] - 800da84: 6a5b ldr r3, [r3, #36] ; 0x24 - 800da86: 2b00 cmp r3, #0 - 800da88: d013 beq.n 800dab2 + 800da78: 687b ldr r3, [r7, #4] + 800da7a: 2b00 cmp r3, #0 + 800da7c: d017 beq.n 800daae + 800da7e: 687b ldr r3, [r7, #4] + 800da80: 6a5b ldr r3, [r3, #36] ; 0x24 + 800da82: 2b00 cmp r3, #0 + 800da84: d013 beq.n 800daae struct dhcp *dhcp = netif_dhcp_data(netif); - 800da8a: 687b ldr r3, [r7, #4] - 800da8c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800da8e: 60fb str r3, [r7, #12] + 800da86: 687b ldr r3, [r7, #4] + 800da88: 6a5b ldr r3, [r3, #36] ; 0x24 + 800da8a: 60fb str r3, [r7, #12] return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) || - 800da90: 68fb ldr r3, [r7, #12] - 800da92: 795b ldrb r3, [r3, #5] - 800da94: 2b0a cmp r3, #10 - 800da96: d007 beq.n 800daa8 - 800da98: 68fb ldr r3, [r7, #12] - 800da9a: 795b ldrb r3, [r3, #5] - 800da9c: 2b05 cmp r3, #5 - 800da9e: d003 beq.n 800daa8 + 800da8c: 68fb ldr r3, [r7, #12] + 800da8e: 795b ldrb r3, [r3, #5] + 800da90: 2b0a cmp r3, #10 + 800da92: d007 beq.n 800daa4 + 800da94: 68fb ldr r3, [r7, #12] + 800da96: 795b ldrb r3, [r3, #5] + 800da98: 2b05 cmp r3, #5 + 800da9a: d003 beq.n 800daa4 (dhcp->state == DHCP_STATE_REBINDING); - 800daa0: 68fb ldr r3, [r7, #12] - 800daa2: 795b ldrb r3, [r3, #5] + 800da9c: 68fb ldr r3, [r7, #12] + 800da9e: 795b ldrb r3, [r3, #5] return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) || - 800daa4: 2b04 cmp r3, #4 - 800daa6: d101 bne.n 800daac - 800daa8: 2301 movs r3, #1 - 800daaa: e000 b.n 800daae - 800daac: 2300 movs r3, #0 - 800daae: b2db uxtb r3, r3 - 800dab0: e000 b.n 800dab4 + 800daa0: 2b04 cmp r3, #4 + 800daa2: d101 bne.n 800daa8 + 800daa4: 2301 movs r3, #1 + 800daa6: e000 b.n 800daaa + 800daa8: 2300 movs r3, #0 + 800daaa: b2db uxtb r3, r3 + 800daac: e000 b.n 800dab0 } return 0; - 800dab2: 2300 movs r3, #0 + 800daae: 2300 movs r3, #0 } - 800dab4: 4618 mov r0, r3 - 800dab6: 3714 adds r7, #20 - 800dab8: 46bd mov sp, r7 - 800daba: f85d 7b04 ldr.w r7, [sp], #4 - 800dabe: 4770 bx lr + 800dab0: 4618 mov r0, r3 + 800dab2: 3714 adds r7, #20 + 800dab4: 46bd mov sp, r7 + 800dab6: f85d 7b04 ldr.w r7, [sp], #4 + 800daba: 4770 bx lr -0800dac0 : +0800dabc : #endif /* ARP_QUEUEING */ /** Clean up ARP table entries */ static void etharp_free_entry(int i) { - 800dac0: b580 push {r7, lr} - 800dac2: b082 sub sp, #8 - 800dac4: af00 add r7, sp, #0 - 800dac6: 6078 str r0, [r7, #4] + 800dabc: b580 push {r7, lr} + 800dabe: b082 sub sp, #8 + 800dac0: af00 add r7, sp, #0 + 800dac2: 6078 str r0, [r7, #4] /* remove from SNMP ARP index tree */ mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr); /* and empty packet queue */ if (arp_table[i].q != NULL) { - 800dac8: 4915 ldr r1, [pc, #84] ; (800db20 ) - 800daca: 687a ldr r2, [r7, #4] - 800dacc: 4613 mov r3, r2 - 800dace: 005b lsls r3, r3, #1 - 800dad0: 4413 add r3, r2 - 800dad2: 00db lsls r3, r3, #3 - 800dad4: 440b add r3, r1 - 800dad6: 681b ldr r3, [r3, #0] - 800dad8: 2b00 cmp r3, #0 - 800dada: d013 beq.n 800db04 + 800dac4: 4915 ldr r1, [pc, #84] ; (800db1c ) + 800dac6: 687a ldr r2, [r7, #4] + 800dac8: 4613 mov r3, r2 + 800daca: 005b lsls r3, r3, #1 + 800dacc: 4413 add r3, r2 + 800dace: 00db lsls r3, r3, #3 + 800dad0: 440b add r3, r1 + 800dad2: 681b ldr r3, [r3, #0] + 800dad4: 2b00 cmp r3, #0 + 800dad6: d013 beq.n 800db00 /* remove all queued packets */ LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t)i, (void *)(arp_table[i].q))); free_etharp_q(arp_table[i].q); - 800dadc: 4910 ldr r1, [pc, #64] ; (800db20 ) - 800dade: 687a ldr r2, [r7, #4] - 800dae0: 4613 mov r3, r2 - 800dae2: 005b lsls r3, r3, #1 - 800dae4: 4413 add r3, r2 - 800dae6: 00db lsls r3, r3, #3 - 800dae8: 440b add r3, r1 - 800daea: 681b ldr r3, [r3, #0] - 800daec: 4618 mov r0, r3 - 800daee: f7f7 ff55 bl 800599c + 800dad8: 4910 ldr r1, [pc, #64] ; (800db1c ) + 800dada: 687a ldr r2, [r7, #4] + 800dadc: 4613 mov r3, r2 + 800dade: 005b lsls r3, r3, #1 + 800dae0: 4413 add r3, r2 + 800dae2: 00db lsls r3, r3, #3 + 800dae4: 440b add r3, r1 + 800dae6: 681b ldr r3, [r3, #0] + 800dae8: 4618 mov r0, r3 + 800daea: f7f7 ff55 bl 8005998 arp_table[i].q = NULL; - 800daf2: 490b ldr r1, [pc, #44] ; (800db20 ) - 800daf4: 687a ldr r2, [r7, #4] - 800daf6: 4613 mov r3, r2 - 800daf8: 005b lsls r3, r3, #1 - 800dafa: 4413 add r3, r2 - 800dafc: 00db lsls r3, r3, #3 - 800dafe: 440b add r3, r1 - 800db00: 2200 movs r2, #0 - 800db02: 601a str r2, [r3, #0] + 800daee: 490b ldr r1, [pc, #44] ; (800db1c ) + 800daf0: 687a ldr r2, [r7, #4] + 800daf2: 4613 mov r3, r2 + 800daf4: 005b lsls r3, r3, #1 + 800daf6: 4413 add r3, r2 + 800daf8: 00db lsls r3, r3, #3 + 800dafa: 440b add r3, r1 + 800dafc: 2200 movs r2, #0 + 800dafe: 601a str r2, [r3, #0] } /* recycle entry for re-use */ arp_table[i].state = ETHARP_STATE_EMPTY; - 800db04: 4906 ldr r1, [pc, #24] ; (800db20 ) - 800db06: 687a ldr r2, [r7, #4] - 800db08: 4613 mov r3, r2 - 800db0a: 005b lsls r3, r3, #1 - 800db0c: 4413 add r3, r2 - 800db0e: 00db lsls r3, r3, #3 - 800db10: 440b add r3, r1 - 800db12: 3314 adds r3, #20 - 800db14: 2200 movs r2, #0 - 800db16: 701a strb r2, [r3, #0] + 800db00: 4906 ldr r1, [pc, #24] ; (800db1c ) + 800db02: 687a ldr r2, [r7, #4] + 800db04: 4613 mov r3, r2 + 800db06: 005b lsls r3, r3, #1 + 800db08: 4413 add r3, r2 + 800db0a: 00db lsls r3, r3, #3 + 800db0c: 440b add r3, r1 + 800db0e: 3314 adds r3, #20 + 800db10: 2200 movs r2, #0 + 800db12: 701a strb r2, [r3, #0] arp_table[i].ctime = 0; arp_table[i].netif = NULL; ip4_addr_set_zero(&arp_table[i].ipaddr); arp_table[i].ethaddr = ethzero; #endif /* LWIP_DEBUG */ } - 800db18: bf00 nop - 800db1a: 3708 adds r7, #8 - 800db1c: 46bd mov sp, r7 - 800db1e: bd80 pop {r7, pc} - 800db20: 20008c94 .word 0x20008c94 + 800db14: bf00 nop + 800db16: 3708 adds r7, #8 + 800db18: 46bd mov sp, r7 + 800db1a: bd80 pop {r7, pc} + 800db1c: 20008c94 .word 0x20008c94 -0800db24 : +0800db20 : * This function should be called every ARP_TMR_INTERVAL milliseconds (1 second), * in order to expire entries in the ARP table. */ void etharp_tmr(void) { - 800db24: b580 push {r7, lr} - 800db26: b082 sub sp, #8 - 800db28: af00 add r7, sp, #0 + 800db20: b580 push {r7, lr} + 800db22: b082 sub sp, #8 + 800db24: af00 add r7, sp, #0 int i; LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer\n")); /* remove expired entries from the ARP table */ for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 800db2a: 2300 movs r3, #0 - 800db2c: 607b str r3, [r7, #4] - 800db2e: e096 b.n 800dc5e + 800db26: 2300 movs r3, #0 + 800db28: 607b str r3, [r7, #4] + 800db2a: e096 b.n 800dc5a u8_t state = arp_table[i].state; - 800db30: 494f ldr r1, [pc, #316] ; (800dc70 ) - 800db32: 687a ldr r2, [r7, #4] - 800db34: 4613 mov r3, r2 - 800db36: 005b lsls r3, r3, #1 - 800db38: 4413 add r3, r2 - 800db3a: 00db lsls r3, r3, #3 - 800db3c: 440b add r3, r1 - 800db3e: 3314 adds r3, #20 - 800db40: 781b ldrb r3, [r3, #0] - 800db42: 70fb strb r3, [r7, #3] + 800db2c: 494f ldr r1, [pc, #316] ; (800dc6c ) + 800db2e: 687a ldr r2, [r7, #4] + 800db30: 4613 mov r3, r2 + 800db32: 005b lsls r3, r3, #1 + 800db34: 4413 add r3, r2 + 800db36: 00db lsls r3, r3, #3 + 800db38: 440b add r3, r1 + 800db3a: 3314 adds r3, #20 + 800db3c: 781b ldrb r3, [r3, #0] + 800db3e: 70fb strb r3, [r7, #3] if (state != ETHARP_STATE_EMPTY - 800db44: 78fb ldrb r3, [r7, #3] - 800db46: 2b00 cmp r3, #0 - 800db48: f000 8086 beq.w 800dc58 + 800db40: 78fb ldrb r3, [r7, #3] + 800db42: 2b00 cmp r3, #0 + 800db44: f000 8086 beq.w 800dc54 #if ETHARP_SUPPORT_STATIC_ENTRIES && (state != ETHARP_STATE_STATIC) #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ ) { arp_table[i].ctime++; - 800db4c: 4948 ldr r1, [pc, #288] ; (800dc70 ) - 800db4e: 687a ldr r2, [r7, #4] - 800db50: 4613 mov r3, r2 - 800db52: 005b lsls r3, r3, #1 - 800db54: 4413 add r3, r2 - 800db56: 00db lsls r3, r3, #3 - 800db58: 440b add r3, r1 - 800db5a: 3312 adds r3, #18 - 800db5c: 881b ldrh r3, [r3, #0] - 800db5e: 3301 adds r3, #1 - 800db60: b298 uxth r0, r3 - 800db62: 4943 ldr r1, [pc, #268] ; (800dc70 ) - 800db64: 687a ldr r2, [r7, #4] - 800db66: 4613 mov r3, r2 - 800db68: 005b lsls r3, r3, #1 - 800db6a: 4413 add r3, r2 - 800db6c: 00db lsls r3, r3, #3 - 800db6e: 440b add r3, r1 - 800db70: 3312 adds r3, #18 - 800db72: 4602 mov r2, r0 - 800db74: 801a strh r2, [r3, #0] + 800db48: 4948 ldr r1, [pc, #288] ; (800dc6c ) + 800db4a: 687a ldr r2, [r7, #4] + 800db4c: 4613 mov r3, r2 + 800db4e: 005b lsls r3, r3, #1 + 800db50: 4413 add r3, r2 + 800db52: 00db lsls r3, r3, #3 + 800db54: 440b add r3, r1 + 800db56: 3312 adds r3, #18 + 800db58: 881b ldrh r3, [r3, #0] + 800db5a: 3301 adds r3, #1 + 800db5c: b298 uxth r0, r3 + 800db5e: 4943 ldr r1, [pc, #268] ; (800dc6c ) + 800db60: 687a ldr r2, [r7, #4] + 800db62: 4613 mov r3, r2 + 800db64: 005b lsls r3, r3, #1 + 800db66: 4413 add r3, r2 + 800db68: 00db lsls r3, r3, #3 + 800db6a: 440b add r3, r1 + 800db6c: 3312 adds r3, #18 + 800db6e: 4602 mov r2, r0 + 800db70: 801a strh r2, [r3, #0] if ((arp_table[i].ctime >= ARP_MAXAGE) || - 800db76: 493e ldr r1, [pc, #248] ; (800dc70 ) - 800db78: 687a ldr r2, [r7, #4] - 800db7a: 4613 mov r3, r2 - 800db7c: 005b lsls r3, r3, #1 - 800db7e: 4413 add r3, r2 - 800db80: 00db lsls r3, r3, #3 - 800db82: 440b add r3, r1 - 800db84: 3312 adds r3, #18 - 800db86: 881b ldrh r3, [r3, #0] - 800db88: f5b3 7f96 cmp.w r3, #300 ; 0x12c - 800db8c: d215 bcs.n 800dbba + 800db72: 493e ldr r1, [pc, #248] ; (800dc6c ) + 800db74: 687a ldr r2, [r7, #4] + 800db76: 4613 mov r3, r2 + 800db78: 005b lsls r3, r3, #1 + 800db7a: 4413 add r3, r2 + 800db7c: 00db lsls r3, r3, #3 + 800db7e: 440b add r3, r1 + 800db80: 3312 adds r3, #18 + 800db82: 881b ldrh r3, [r3, #0] + 800db84: f5b3 7f96 cmp.w r3, #300 ; 0x12c + 800db88: d215 bcs.n 800dbb6 ((arp_table[i].state == ETHARP_STATE_PENDING) && - 800db8e: 4938 ldr r1, [pc, #224] ; (800dc70 ) - 800db90: 687a ldr r2, [r7, #4] - 800db92: 4613 mov r3, r2 - 800db94: 005b lsls r3, r3, #1 - 800db96: 4413 add r3, r2 - 800db98: 00db lsls r3, r3, #3 - 800db9a: 440b add r3, r1 - 800db9c: 3314 adds r3, #20 - 800db9e: 781b ldrb r3, [r3, #0] + 800db8a: 4938 ldr r1, [pc, #224] ; (800dc6c ) + 800db8c: 687a ldr r2, [r7, #4] + 800db8e: 4613 mov r3, r2 + 800db90: 005b lsls r3, r3, #1 + 800db92: 4413 add r3, r2 + 800db94: 00db lsls r3, r3, #3 + 800db96: 440b add r3, r1 + 800db98: 3314 adds r3, #20 + 800db9a: 781b ldrb r3, [r3, #0] if ((arp_table[i].ctime >= ARP_MAXAGE) || - 800dba0: 2b01 cmp r3, #1 - 800dba2: d10e bne.n 800dbc2 + 800db9c: 2b01 cmp r3, #1 + 800db9e: d10e bne.n 800dbbe (arp_table[i].ctime >= ARP_MAXPENDING))) { - 800dba4: 4932 ldr r1, [pc, #200] ; (800dc70 ) - 800dba6: 687a ldr r2, [r7, #4] - 800dba8: 4613 mov r3, r2 - 800dbaa: 005b lsls r3, r3, #1 - 800dbac: 4413 add r3, r2 - 800dbae: 00db lsls r3, r3, #3 - 800dbb0: 440b add r3, r1 - 800dbb2: 3312 adds r3, #18 - 800dbb4: 881b ldrh r3, [r3, #0] + 800dba0: 4932 ldr r1, [pc, #200] ; (800dc6c ) + 800dba2: 687a ldr r2, [r7, #4] + 800dba4: 4613 mov r3, r2 + 800dba6: 005b lsls r3, r3, #1 + 800dba8: 4413 add r3, r2 + 800dbaa: 00db lsls r3, r3, #3 + 800dbac: 440b add r3, r1 + 800dbae: 3312 adds r3, #18 + 800dbb0: 881b ldrh r3, [r3, #0] ((arp_table[i].state == ETHARP_STATE_PENDING) && - 800dbb6: 2b04 cmp r3, #4 - 800dbb8: d903 bls.n 800dbc2 + 800dbb2: 2b04 cmp r3, #4 + 800dbb4: d903 bls.n 800dbbe /* pending or stable entry has become old! */ LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired %s entry %d.\n", arp_table[i].state >= ETHARP_STATE_STABLE ? "stable" : "pending", i)); /* clean up entries that have just been expired */ etharp_free_entry(i); - 800dbba: 6878 ldr r0, [r7, #4] - 800dbbc: f7ff ff80 bl 800dac0 - 800dbc0: e04a b.n 800dc58 + 800dbb6: 6878 ldr r0, [r7, #4] + 800dbb8: f7ff ff80 bl 800dabc + 800dbbc: e04a b.n 800dc54 } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) { - 800dbc2: 492b ldr r1, [pc, #172] ; (800dc70 ) - 800dbc4: 687a ldr r2, [r7, #4] - 800dbc6: 4613 mov r3, r2 - 800dbc8: 005b lsls r3, r3, #1 - 800dbca: 4413 add r3, r2 - 800dbcc: 00db lsls r3, r3, #3 - 800dbce: 440b add r3, r1 - 800dbd0: 3314 adds r3, #20 - 800dbd2: 781b ldrb r3, [r3, #0] - 800dbd4: 2b03 cmp r3, #3 - 800dbd6: d10a bne.n 800dbee + 800dbbe: 492b ldr r1, [pc, #172] ; (800dc6c ) + 800dbc0: 687a ldr r2, [r7, #4] + 800dbc2: 4613 mov r3, r2 + 800dbc4: 005b lsls r3, r3, #1 + 800dbc6: 4413 add r3, r2 + 800dbc8: 00db lsls r3, r3, #3 + 800dbca: 440b add r3, r1 + 800dbcc: 3314 adds r3, #20 + 800dbce: 781b ldrb r3, [r3, #0] + 800dbd0: 2b03 cmp r3, #3 + 800dbd2: d10a bne.n 800dbea /* Don't send more than one request every 2 seconds. */ arp_table[i].state = ETHARP_STATE_STABLE_REREQUESTING_2; - 800dbd8: 4925 ldr r1, [pc, #148] ; (800dc70 ) - 800dbda: 687a ldr r2, [r7, #4] - 800dbdc: 4613 mov r3, r2 - 800dbde: 005b lsls r3, r3, #1 - 800dbe0: 4413 add r3, r2 - 800dbe2: 00db lsls r3, r3, #3 - 800dbe4: 440b add r3, r1 - 800dbe6: 3314 adds r3, #20 - 800dbe8: 2204 movs r2, #4 - 800dbea: 701a strb r2, [r3, #0] - 800dbec: e034 b.n 800dc58 + 800dbd4: 4925 ldr r1, [pc, #148] ; (800dc6c ) + 800dbd6: 687a ldr r2, [r7, #4] + 800dbd8: 4613 mov r3, r2 + 800dbda: 005b lsls r3, r3, #1 + 800dbdc: 4413 add r3, r2 + 800dbde: 00db lsls r3, r3, #3 + 800dbe0: 440b add r3, r1 + 800dbe2: 3314 adds r3, #20 + 800dbe4: 2204 movs r2, #4 + 800dbe6: 701a strb r2, [r3, #0] + 800dbe8: e034 b.n 800dc54 } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) { - 800dbee: 4920 ldr r1, [pc, #128] ; (800dc70 ) - 800dbf0: 687a ldr r2, [r7, #4] - 800dbf2: 4613 mov r3, r2 - 800dbf4: 005b lsls r3, r3, #1 - 800dbf6: 4413 add r3, r2 - 800dbf8: 00db lsls r3, r3, #3 - 800dbfa: 440b add r3, r1 - 800dbfc: 3314 adds r3, #20 - 800dbfe: 781b ldrb r3, [r3, #0] - 800dc00: 2b04 cmp r3, #4 - 800dc02: d10a bne.n 800dc1a + 800dbea: 4920 ldr r1, [pc, #128] ; (800dc6c ) + 800dbec: 687a ldr r2, [r7, #4] + 800dbee: 4613 mov r3, r2 + 800dbf0: 005b lsls r3, r3, #1 + 800dbf2: 4413 add r3, r2 + 800dbf4: 00db lsls r3, r3, #3 + 800dbf6: 440b add r3, r1 + 800dbf8: 3314 adds r3, #20 + 800dbfa: 781b ldrb r3, [r3, #0] + 800dbfc: 2b04 cmp r3, #4 + 800dbfe: d10a bne.n 800dc16 /* Reset state to stable, so that the next transmitted packet will re-send an ARP request. */ arp_table[i].state = ETHARP_STATE_STABLE; - 800dc04: 491a ldr r1, [pc, #104] ; (800dc70 ) - 800dc06: 687a ldr r2, [r7, #4] - 800dc08: 4613 mov r3, r2 - 800dc0a: 005b lsls r3, r3, #1 - 800dc0c: 4413 add r3, r2 - 800dc0e: 00db lsls r3, r3, #3 - 800dc10: 440b add r3, r1 - 800dc12: 3314 adds r3, #20 - 800dc14: 2202 movs r2, #2 - 800dc16: 701a strb r2, [r3, #0] - 800dc18: e01e b.n 800dc58 + 800dc00: 491a ldr r1, [pc, #104] ; (800dc6c ) + 800dc02: 687a ldr r2, [r7, #4] + 800dc04: 4613 mov r3, r2 + 800dc06: 005b lsls r3, r3, #1 + 800dc08: 4413 add r3, r2 + 800dc0a: 00db lsls r3, r3, #3 + 800dc0c: 440b add r3, r1 + 800dc0e: 3314 adds r3, #20 + 800dc10: 2202 movs r2, #2 + 800dc12: 701a strb r2, [r3, #0] + 800dc14: e01e b.n 800dc54 } else if (arp_table[i].state == ETHARP_STATE_PENDING) { - 800dc1a: 4915 ldr r1, [pc, #84] ; (800dc70 ) - 800dc1c: 687a ldr r2, [r7, #4] - 800dc1e: 4613 mov r3, r2 - 800dc20: 005b lsls r3, r3, #1 - 800dc22: 4413 add r3, r2 - 800dc24: 00db lsls r3, r3, #3 - 800dc26: 440b add r3, r1 - 800dc28: 3314 adds r3, #20 - 800dc2a: 781b ldrb r3, [r3, #0] - 800dc2c: 2b01 cmp r3, #1 - 800dc2e: d113 bne.n 800dc58 + 800dc16: 4915 ldr r1, [pc, #84] ; (800dc6c ) + 800dc18: 687a ldr r2, [r7, #4] + 800dc1a: 4613 mov r3, r2 + 800dc1c: 005b lsls r3, r3, #1 + 800dc1e: 4413 add r3, r2 + 800dc20: 00db lsls r3, r3, #3 + 800dc22: 440b add r3, r1 + 800dc24: 3314 adds r3, #20 + 800dc26: 781b ldrb r3, [r3, #0] + 800dc28: 2b01 cmp r3, #1 + 800dc2a: d113 bne.n 800dc54 /* still pending, resend an ARP query */ etharp_request(arp_table[i].netif, &arp_table[i].ipaddr); - 800dc30: 490f ldr r1, [pc, #60] ; (800dc70 ) - 800dc32: 687a ldr r2, [r7, #4] - 800dc34: 4613 mov r3, r2 - 800dc36: 005b lsls r3, r3, #1 - 800dc38: 4413 add r3, r2 - 800dc3a: 00db lsls r3, r3, #3 - 800dc3c: 440b add r3, r1 - 800dc3e: 3308 adds r3, #8 - 800dc40: 6818 ldr r0, [r3, #0] - 800dc42: 687a ldr r2, [r7, #4] - 800dc44: 4613 mov r3, r2 - 800dc46: 005b lsls r3, r3, #1 - 800dc48: 4413 add r3, r2 - 800dc4a: 00db lsls r3, r3, #3 - 800dc4c: 4a08 ldr r2, [pc, #32] ; (800dc70 ) - 800dc4e: 4413 add r3, r2 - 800dc50: 3304 adds r3, #4 - 800dc52: 4619 mov r1, r3 - 800dc54: f000 fe72 bl 800e93c + 800dc2c: 490f ldr r1, [pc, #60] ; (800dc6c ) + 800dc2e: 687a ldr r2, [r7, #4] + 800dc30: 4613 mov r3, r2 + 800dc32: 005b lsls r3, r3, #1 + 800dc34: 4413 add r3, r2 + 800dc36: 00db lsls r3, r3, #3 + 800dc38: 440b add r3, r1 + 800dc3a: 3308 adds r3, #8 + 800dc3c: 6818 ldr r0, [r3, #0] + 800dc3e: 687a ldr r2, [r7, #4] + 800dc40: 4613 mov r3, r2 + 800dc42: 005b lsls r3, r3, #1 + 800dc44: 4413 add r3, r2 + 800dc46: 00db lsls r3, r3, #3 + 800dc48: 4a08 ldr r2, [pc, #32] ; (800dc6c ) + 800dc4a: 4413 add r3, r2 + 800dc4c: 3304 adds r3, #4 + 800dc4e: 4619 mov r1, r3 + 800dc50: f000 fe72 bl 800e938 for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 800dc58: 687b ldr r3, [r7, #4] - 800dc5a: 3301 adds r3, #1 - 800dc5c: 607b str r3, [r7, #4] - 800dc5e: 687b ldr r3, [r7, #4] - 800dc60: 2b09 cmp r3, #9 - 800dc62: f77f af65 ble.w 800db30 + 800dc54: 687b ldr r3, [r7, #4] + 800dc56: 3301 adds r3, #1 + 800dc58: 607b str r3, [r7, #4] + 800dc5a: 687b ldr r3, [r7, #4] + 800dc5c: 2b09 cmp r3, #9 + 800dc5e: f77f af65 ble.w 800db2c } } } } - 800dc66: bf00 nop - 800dc68: bf00 nop - 800dc6a: 3708 adds r7, #8 - 800dc6c: 46bd mov sp, r7 - 800dc6e: bd80 pop {r7, pc} - 800dc70: 20008c94 .word 0x20008c94 + 800dc62: bf00 nop + 800dc64: bf00 nop + 800dc66: 3708 adds r7, #8 + 800dc68: 46bd mov sp, r7 + 800dc6a: bd80 pop {r7, pc} + 800dc6c: 20008c94 .word 0x20008c94 -0800dc74 : +0800dc70 : * @return The ARP entry index that matched or is created, ERR_MEM if no * entry is found or could be recycled. */ static s16_t etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif) { - 800dc74: b580 push {r7, lr} - 800dc76: b08a sub sp, #40 ; 0x28 - 800dc78: af00 add r7, sp, #0 - 800dc7a: 60f8 str r0, [r7, #12] - 800dc7c: 460b mov r3, r1 - 800dc7e: 607a str r2, [r7, #4] - 800dc80: 72fb strb r3, [r7, #11] + 800dc70: b580 push {r7, lr} + 800dc72: b08a sub sp, #40 ; 0x28 + 800dc74: af00 add r7, sp, #0 + 800dc76: 60f8 str r0, [r7, #12] + 800dc78: 460b mov r3, r1 + 800dc7a: 607a str r2, [r7, #4] + 800dc7c: 72fb strb r3, [r7, #11] s16_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE; + 800dc7e: 230a movs r3, #10 + 800dc80: 84fb strh r3, [r7, #38] ; 0x26 800dc82: 230a movs r3, #10 - 800dc84: 84fb strh r3, [r7, #38] ; 0x26 - 800dc86: 230a movs r3, #10 - 800dc88: 84bb strh r3, [r7, #36] ; 0x24 + 800dc84: 84bb strh r3, [r7, #36] ; 0x24 s16_t empty = ARP_TABLE_SIZE; - 800dc8a: 230a movs r3, #10 - 800dc8c: 847b strh r3, [r7, #34] ; 0x22 + 800dc86: 230a movs r3, #10 + 800dc88: 847b strh r3, [r7, #34] ; 0x22 s16_t i = 0; - 800dc8e: 2300 movs r3, #0 - 800dc90: 843b strh r3, [r7, #32] + 800dc8a: 2300 movs r3, #0 + 800dc8c: 843b strh r3, [r7, #32] /* oldest entry with packets on queue */ s16_t old_queue = ARP_TABLE_SIZE; - 800dc92: 230a movs r3, #10 - 800dc94: 83fb strh r3, [r7, #30] + 800dc8e: 230a movs r3, #10 + 800dc90: 83fb strh r3, [r7, #30] /* its age */ u16_t age_queue = 0, age_pending = 0, age_stable = 0; + 800dc92: 2300 movs r3, #0 + 800dc94: 83bb strh r3, [r7, #28] 800dc96: 2300 movs r3, #0 - 800dc98: 83bb strh r3, [r7, #28] + 800dc98: 837b strh r3, [r7, #26] 800dc9a: 2300 movs r3, #0 - 800dc9c: 837b strh r3, [r7, #26] - 800dc9e: 2300 movs r3, #0 - 800dca0: 833b strh r3, [r7, #24] + 800dc9c: 833b strh r3, [r7, #24] * 4) remember the oldest pending entry with queued packets (if any) * 5) search for a matching IP entry, either pending or stable * until 5 matches, or all entries are searched for. */ for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 800dca2: 2300 movs r3, #0 - 800dca4: 843b strh r3, [r7, #32] - 800dca6: e0ae b.n 800de06 + 800dc9e: 2300 movs r3, #0 + 800dca0: 843b strh r3, [r7, #32] + 800dca2: e0ae b.n 800de02 u8_t state = arp_table[i].state; - 800dca8: f9b7 2020 ldrsh.w r2, [r7, #32] - 800dcac: 49a6 ldr r1, [pc, #664] ; (800df48 ) - 800dcae: 4613 mov r3, r2 - 800dcb0: 005b lsls r3, r3, #1 - 800dcb2: 4413 add r3, r2 - 800dcb4: 00db lsls r3, r3, #3 - 800dcb6: 440b add r3, r1 - 800dcb8: 3314 adds r3, #20 - 800dcba: 781b ldrb r3, [r3, #0] - 800dcbc: 75fb strb r3, [r7, #23] + 800dca4: f9b7 2020 ldrsh.w r2, [r7, #32] + 800dca8: 49a6 ldr r1, [pc, #664] ; (800df44 ) + 800dcaa: 4613 mov r3, r2 + 800dcac: 005b lsls r3, r3, #1 + 800dcae: 4413 add r3, r2 + 800dcb0: 00db lsls r3, r3, #3 + 800dcb2: 440b add r3, r1 + 800dcb4: 3314 adds r3, #20 + 800dcb6: 781b ldrb r3, [r3, #0] + 800dcb8: 75fb strb r3, [r7, #23] /* no empty entry found yet and now we do find one? */ if ((empty == ARP_TABLE_SIZE) && (state == ETHARP_STATE_EMPTY)) { - 800dcbe: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 - 800dcc2: 2b0a cmp r3, #10 - 800dcc4: d105 bne.n 800dcd2 - 800dcc6: 7dfb ldrb r3, [r7, #23] - 800dcc8: 2b00 cmp r3, #0 - 800dcca: d102 bne.n 800dcd2 + 800dcba: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 + 800dcbe: 2b0a cmp r3, #10 + 800dcc0: d105 bne.n 800dcce + 800dcc2: 7dfb ldrb r3, [r7, #23] + 800dcc4: 2b00 cmp r3, #0 + 800dcc6: d102 bne.n 800dcce LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_find_entry: found empty entry %d\n", (int)i)); /* remember first empty entry */ empty = i; - 800dccc: 8c3b ldrh r3, [r7, #32] - 800dcce: 847b strh r3, [r7, #34] ; 0x22 - 800dcd0: e095 b.n 800ddfe + 800dcc8: 8c3b ldrh r3, [r7, #32] + 800dcca: 847b strh r3, [r7, #34] ; 0x22 + 800dccc: e095 b.n 800ddfa } else if (state != ETHARP_STATE_EMPTY) { - 800dcd2: 7dfb ldrb r3, [r7, #23] - 800dcd4: 2b00 cmp r3, #0 - 800dcd6: f000 8092 beq.w 800ddfe + 800dcce: 7dfb ldrb r3, [r7, #23] + 800dcd0: 2b00 cmp r3, #0 + 800dcd2: f000 8092 beq.w 800ddfa LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE", - 800dcda: 7dfb ldrb r3, [r7, #23] - 800dcdc: 2b01 cmp r3, #1 - 800dcde: d009 beq.n 800dcf4 - 800dce0: 7dfb ldrb r3, [r7, #23] - 800dce2: 2b01 cmp r3, #1 - 800dce4: d806 bhi.n 800dcf4 - 800dce6: 4b99 ldr r3, [pc, #612] ; (800df4c ) - 800dce8: f240 1223 movw r2, #291 ; 0x123 - 800dcec: 4998 ldr r1, [pc, #608] ; (800df50 ) - 800dcee: 4899 ldr r0, [pc, #612] ; (800df54 ) - 800dcf0: f002 fb70 bl 80103d4 + 800dcd6: 7dfb ldrb r3, [r7, #23] + 800dcd8: 2b01 cmp r3, #1 + 800dcda: d009 beq.n 800dcf0 + 800dcdc: 7dfb ldrb r3, [r7, #23] + 800dcde: 2b01 cmp r3, #1 + 800dce0: d806 bhi.n 800dcf0 + 800dce2: 4b99 ldr r3, [pc, #612] ; (800df48 ) + 800dce4: f240 1223 movw r2, #291 ; 0x123 + 800dce8: 4998 ldr r1, [pc, #608] ; (800df4c ) + 800dcea: 4899 ldr r0, [pc, #612] ; (800df50 ) + 800dcec: f002 fb70 bl 80103d0 state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE); /* if given, does IP address match IP address in ARP entry? */ if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr) - 800dcf4: 68fb ldr r3, [r7, #12] - 800dcf6: 2b00 cmp r3, #0 - 800dcf8: d020 beq.n 800dd3c - 800dcfa: 68fb ldr r3, [r7, #12] - 800dcfc: 6819 ldr r1, [r3, #0] - 800dcfe: f9b7 2020 ldrsh.w r2, [r7, #32] - 800dd02: 4891 ldr r0, [pc, #580] ; (800df48 ) - 800dd04: 4613 mov r3, r2 - 800dd06: 005b lsls r3, r3, #1 - 800dd08: 4413 add r3, r2 - 800dd0a: 00db lsls r3, r3, #3 - 800dd0c: 4403 add r3, r0 - 800dd0e: 3304 adds r3, #4 - 800dd10: 681b ldr r3, [r3, #0] - 800dd12: 4299 cmp r1, r3 - 800dd14: d112 bne.n 800dd3c + 800dcf0: 68fb ldr r3, [r7, #12] + 800dcf2: 2b00 cmp r3, #0 + 800dcf4: d020 beq.n 800dd38 + 800dcf6: 68fb ldr r3, [r7, #12] + 800dcf8: 6819 ldr r1, [r3, #0] + 800dcfa: f9b7 2020 ldrsh.w r2, [r7, #32] + 800dcfe: 4891 ldr r0, [pc, #580] ; (800df44 ) + 800dd00: 4613 mov r3, r2 + 800dd02: 005b lsls r3, r3, #1 + 800dd04: 4413 add r3, r2 + 800dd06: 00db lsls r3, r3, #3 + 800dd08: 4403 add r3, r0 + 800dd0a: 3304 adds r3, #4 + 800dd0c: 681b ldr r3, [r3, #0] + 800dd0e: 4299 cmp r1, r3 + 800dd10: d112 bne.n 800dd38 #if ETHARP_TABLE_MATCH_NETIF && ((netif == NULL) || (netif == arp_table[i].netif)) - 800dd16: 687b ldr r3, [r7, #4] - 800dd18: 2b00 cmp r3, #0 - 800dd1a: d00c beq.n 800dd36 - 800dd1c: f9b7 2020 ldrsh.w r2, [r7, #32] - 800dd20: 4989 ldr r1, [pc, #548] ; (800df48 ) - 800dd22: 4613 mov r3, r2 - 800dd24: 005b lsls r3, r3, #1 - 800dd26: 4413 add r3, r2 - 800dd28: 00db lsls r3, r3, #3 - 800dd2a: 440b add r3, r1 - 800dd2c: 3308 adds r3, #8 - 800dd2e: 681b ldr r3, [r3, #0] - 800dd30: 687a ldr r2, [r7, #4] - 800dd32: 429a cmp r2, r3 - 800dd34: d102 bne.n 800dd3c + 800dd12: 687b ldr r3, [r7, #4] + 800dd14: 2b00 cmp r3, #0 + 800dd16: d00c beq.n 800dd32 + 800dd18: f9b7 2020 ldrsh.w r2, [r7, #32] + 800dd1c: 4989 ldr r1, [pc, #548] ; (800df44 ) + 800dd1e: 4613 mov r3, r2 + 800dd20: 005b lsls r3, r3, #1 + 800dd22: 4413 add r3, r2 + 800dd24: 00db lsls r3, r3, #3 + 800dd26: 440b add r3, r1 + 800dd28: 3308 adds r3, #8 + 800dd2a: 681b ldr r3, [r3, #0] + 800dd2c: 687a ldr r2, [r7, #4] + 800dd2e: 429a cmp r2, r3 + 800dd30: d102 bne.n 800dd38 #endif /* ETHARP_TABLE_MATCH_NETIF */ ) { LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: found matching entry %d\n", (int)i)); /* found exact IP address match, simply bail out */ return i; - 800dd36: f9b7 3020 ldrsh.w r3, [r7, #32] - 800dd3a: e100 b.n 800df3e + 800dd32: f9b7 3020 ldrsh.w r3, [r7, #32] + 800dd36: e100 b.n 800df3a } /* pending entry? */ if (state == ETHARP_STATE_PENDING) { - 800dd3c: 7dfb ldrb r3, [r7, #23] - 800dd3e: 2b01 cmp r3, #1 - 800dd40: d140 bne.n 800ddc4 + 800dd38: 7dfb ldrb r3, [r7, #23] + 800dd3a: 2b01 cmp r3, #1 + 800dd3c: d140 bne.n 800ddc0 /* pending with queued packets? */ if (arp_table[i].q != NULL) { - 800dd42: f9b7 2020 ldrsh.w r2, [r7, #32] - 800dd46: 4980 ldr r1, [pc, #512] ; (800df48 ) - 800dd48: 4613 mov r3, r2 - 800dd4a: 005b lsls r3, r3, #1 - 800dd4c: 4413 add r3, r2 - 800dd4e: 00db lsls r3, r3, #3 - 800dd50: 440b add r3, r1 - 800dd52: 681b ldr r3, [r3, #0] - 800dd54: 2b00 cmp r3, #0 - 800dd56: d01a beq.n 800dd8e + 800dd3e: f9b7 2020 ldrsh.w r2, [r7, #32] + 800dd42: 4980 ldr r1, [pc, #512] ; (800df44 ) + 800dd44: 4613 mov r3, r2 + 800dd46: 005b lsls r3, r3, #1 + 800dd48: 4413 add r3, r2 + 800dd4a: 00db lsls r3, r3, #3 + 800dd4c: 440b add r3, r1 + 800dd4e: 681b ldr r3, [r3, #0] + 800dd50: 2b00 cmp r3, #0 + 800dd52: d01a beq.n 800dd8a if (arp_table[i].ctime >= age_queue) { - 800dd58: f9b7 2020 ldrsh.w r2, [r7, #32] - 800dd5c: 497a ldr r1, [pc, #488] ; (800df48 ) - 800dd5e: 4613 mov r3, r2 - 800dd60: 005b lsls r3, r3, #1 - 800dd62: 4413 add r3, r2 - 800dd64: 00db lsls r3, r3, #3 - 800dd66: 440b add r3, r1 - 800dd68: 3312 adds r3, #18 - 800dd6a: 881b ldrh r3, [r3, #0] - 800dd6c: 8bba ldrh r2, [r7, #28] - 800dd6e: 429a cmp r2, r3 - 800dd70: d845 bhi.n 800ddfe + 800dd54: f9b7 2020 ldrsh.w r2, [r7, #32] + 800dd58: 497a ldr r1, [pc, #488] ; (800df44 ) + 800dd5a: 4613 mov r3, r2 + 800dd5c: 005b lsls r3, r3, #1 + 800dd5e: 4413 add r3, r2 + 800dd60: 00db lsls r3, r3, #3 + 800dd62: 440b add r3, r1 + 800dd64: 3312 adds r3, #18 + 800dd66: 881b ldrh r3, [r3, #0] + 800dd68: 8bba ldrh r2, [r7, #28] + 800dd6a: 429a cmp r2, r3 + 800dd6c: d845 bhi.n 800ddfa old_queue = i; - 800dd72: 8c3b ldrh r3, [r7, #32] - 800dd74: 83fb strh r3, [r7, #30] + 800dd6e: 8c3b ldrh r3, [r7, #32] + 800dd70: 83fb strh r3, [r7, #30] age_queue = arp_table[i].ctime; - 800dd76: f9b7 2020 ldrsh.w r2, [r7, #32] - 800dd7a: 4973 ldr r1, [pc, #460] ; (800df48 ) - 800dd7c: 4613 mov r3, r2 - 800dd7e: 005b lsls r3, r3, #1 - 800dd80: 4413 add r3, r2 - 800dd82: 00db lsls r3, r3, #3 - 800dd84: 440b add r3, r1 - 800dd86: 3312 adds r3, #18 - 800dd88: 881b ldrh r3, [r3, #0] - 800dd8a: 83bb strh r3, [r7, #28] - 800dd8c: e037 b.n 800ddfe + 800dd72: f9b7 2020 ldrsh.w r2, [r7, #32] + 800dd76: 4973 ldr r1, [pc, #460] ; (800df44 ) + 800dd78: 4613 mov r3, r2 + 800dd7a: 005b lsls r3, r3, #1 + 800dd7c: 4413 add r3, r2 + 800dd7e: 00db lsls r3, r3, #3 + 800dd80: 440b add r3, r1 + 800dd82: 3312 adds r3, #18 + 800dd84: 881b ldrh r3, [r3, #0] + 800dd86: 83bb strh r3, [r7, #28] + 800dd88: e037 b.n 800ddfa } } else /* pending without queued packets? */ { if (arp_table[i].ctime >= age_pending) { - 800dd8e: f9b7 2020 ldrsh.w r2, [r7, #32] - 800dd92: 496d ldr r1, [pc, #436] ; (800df48 ) - 800dd94: 4613 mov r3, r2 - 800dd96: 005b lsls r3, r3, #1 - 800dd98: 4413 add r3, r2 - 800dd9a: 00db lsls r3, r3, #3 - 800dd9c: 440b add r3, r1 - 800dd9e: 3312 adds r3, #18 - 800dda0: 881b ldrh r3, [r3, #0] - 800dda2: 8b7a ldrh r2, [r7, #26] - 800dda4: 429a cmp r2, r3 - 800dda6: d82a bhi.n 800ddfe + 800dd8a: f9b7 2020 ldrsh.w r2, [r7, #32] + 800dd8e: 496d ldr r1, [pc, #436] ; (800df44 ) + 800dd90: 4613 mov r3, r2 + 800dd92: 005b lsls r3, r3, #1 + 800dd94: 4413 add r3, r2 + 800dd96: 00db lsls r3, r3, #3 + 800dd98: 440b add r3, r1 + 800dd9a: 3312 adds r3, #18 + 800dd9c: 881b ldrh r3, [r3, #0] + 800dd9e: 8b7a ldrh r2, [r7, #26] + 800dda0: 429a cmp r2, r3 + 800dda2: d82a bhi.n 800ddfa old_pending = i; - 800dda8: 8c3b ldrh r3, [r7, #32] - 800ddaa: 84fb strh r3, [r7, #38] ; 0x26 + 800dda4: 8c3b ldrh r3, [r7, #32] + 800dda6: 84fb strh r3, [r7, #38] ; 0x26 age_pending = arp_table[i].ctime; - 800ddac: f9b7 2020 ldrsh.w r2, [r7, #32] - 800ddb0: 4965 ldr r1, [pc, #404] ; (800df48 ) - 800ddb2: 4613 mov r3, r2 - 800ddb4: 005b lsls r3, r3, #1 - 800ddb6: 4413 add r3, r2 - 800ddb8: 00db lsls r3, r3, #3 - 800ddba: 440b add r3, r1 - 800ddbc: 3312 adds r3, #18 - 800ddbe: 881b ldrh r3, [r3, #0] - 800ddc0: 837b strh r3, [r7, #26] - 800ddc2: e01c b.n 800ddfe + 800dda8: f9b7 2020 ldrsh.w r2, [r7, #32] + 800ddac: 4965 ldr r1, [pc, #404] ; (800df44 ) + 800ddae: 4613 mov r3, r2 + 800ddb0: 005b lsls r3, r3, #1 + 800ddb2: 4413 add r3, r2 + 800ddb4: 00db lsls r3, r3, #3 + 800ddb6: 440b add r3, r1 + 800ddb8: 3312 adds r3, #18 + 800ddba: 881b ldrh r3, [r3, #0] + 800ddbc: 837b strh r3, [r7, #26] + 800ddbe: e01c b.n 800ddfa } } /* stable entry? */ } else if (state >= ETHARP_STATE_STABLE) { - 800ddc4: 7dfb ldrb r3, [r7, #23] - 800ddc6: 2b01 cmp r3, #1 - 800ddc8: d919 bls.n 800ddfe + 800ddc0: 7dfb ldrb r3, [r7, #23] + 800ddc2: 2b01 cmp r3, #1 + 800ddc4: d919 bls.n 800ddfa /* don't record old_stable for static entries since they never expire */ if (state < ETHARP_STATE_STATIC) #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ { /* remember entry with oldest stable entry in oldest, its age in maxtime */ if (arp_table[i].ctime >= age_stable) { - 800ddca: f9b7 2020 ldrsh.w r2, [r7, #32] - 800ddce: 495e ldr r1, [pc, #376] ; (800df48 ) - 800ddd0: 4613 mov r3, r2 - 800ddd2: 005b lsls r3, r3, #1 - 800ddd4: 4413 add r3, r2 - 800ddd6: 00db lsls r3, r3, #3 - 800ddd8: 440b add r3, r1 - 800ddda: 3312 adds r3, #18 - 800dddc: 881b ldrh r3, [r3, #0] - 800ddde: 8b3a ldrh r2, [r7, #24] - 800dde0: 429a cmp r2, r3 - 800dde2: d80c bhi.n 800ddfe + 800ddc6: f9b7 2020 ldrsh.w r2, [r7, #32] + 800ddca: 495e ldr r1, [pc, #376] ; (800df44 ) + 800ddcc: 4613 mov r3, r2 + 800ddce: 005b lsls r3, r3, #1 + 800ddd0: 4413 add r3, r2 + 800ddd2: 00db lsls r3, r3, #3 + 800ddd4: 440b add r3, r1 + 800ddd6: 3312 adds r3, #18 + 800ddd8: 881b ldrh r3, [r3, #0] + 800ddda: 8b3a ldrh r2, [r7, #24] + 800dddc: 429a cmp r2, r3 + 800ddde: d80c bhi.n 800ddfa old_stable = i; - 800dde4: 8c3b ldrh r3, [r7, #32] - 800dde6: 84bb strh r3, [r7, #36] ; 0x24 + 800dde0: 8c3b ldrh r3, [r7, #32] + 800dde2: 84bb strh r3, [r7, #36] ; 0x24 age_stable = arp_table[i].ctime; - 800dde8: f9b7 2020 ldrsh.w r2, [r7, #32] - 800ddec: 4956 ldr r1, [pc, #344] ; (800df48 ) - 800ddee: 4613 mov r3, r2 - 800ddf0: 005b lsls r3, r3, #1 - 800ddf2: 4413 add r3, r2 - 800ddf4: 00db lsls r3, r3, #3 - 800ddf6: 440b add r3, r1 - 800ddf8: 3312 adds r3, #18 - 800ddfa: 881b ldrh r3, [r3, #0] - 800ddfc: 833b strh r3, [r7, #24] + 800dde4: f9b7 2020 ldrsh.w r2, [r7, #32] + 800dde8: 4956 ldr r1, [pc, #344] ; (800df44 ) + 800ddea: 4613 mov r3, r2 + 800ddec: 005b lsls r3, r3, #1 + 800ddee: 4413 add r3, r2 + 800ddf0: 00db lsls r3, r3, #3 + 800ddf2: 440b add r3, r1 + 800ddf4: 3312 adds r3, #18 + 800ddf6: 881b ldrh r3, [r3, #0] + 800ddf8: 833b strh r3, [r7, #24] for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 800ddfe: 8c3b ldrh r3, [r7, #32] - 800de00: 3301 adds r3, #1 - 800de02: b29b uxth r3, r3 - 800de04: 843b strh r3, [r7, #32] - 800de06: f9b7 3020 ldrsh.w r3, [r7, #32] - 800de0a: 2b09 cmp r3, #9 - 800de0c: f77f af4c ble.w 800dca8 + 800ddfa: 8c3b ldrh r3, [r7, #32] + 800ddfc: 3301 adds r3, #1 + 800ddfe: b29b uxth r3, r3 + 800de00: 843b strh r3, [r7, #32] + 800de02: f9b7 3020 ldrsh.w r3, [r7, #32] + 800de06: 2b09 cmp r3, #9 + 800de08: f77f af4c ble.w 800dca4 } } /* { we have no match } => try to create a new entry */ /* don't create new entry, only search? */ if (((flags & ETHARP_FLAG_FIND_ONLY) != 0) || - 800de10: 7afb ldrb r3, [r7, #11] - 800de12: f003 0302 and.w r3, r3, #2 - 800de16: 2b00 cmp r3, #0 - 800de18: d108 bne.n 800de2c - 800de1a: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 - 800de1e: 2b0a cmp r3, #10 - 800de20: d107 bne.n 800de32 + 800de0c: 7afb ldrb r3, [r7, #11] + 800de0e: f003 0302 and.w r3, r3, #2 + 800de12: 2b00 cmp r3, #0 + 800de14: d108 bne.n 800de28 + 800de16: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 + 800de1a: 2b0a cmp r3, #10 + 800de1c: d107 bne.n 800de2e /* or no empty entry found and not allowed to recycle? */ ((empty == ARP_TABLE_SIZE) && ((flags & ETHARP_FLAG_TRY_HARD) == 0))) { - 800de22: 7afb ldrb r3, [r7, #11] - 800de24: f003 0301 and.w r3, r3, #1 - 800de28: 2b00 cmp r3, #0 - 800de2a: d102 bne.n 800de32 + 800de1e: 7afb ldrb r3, [r7, #11] + 800de20: f003 0301 and.w r3, r3, #1 + 800de24: 2b00 cmp r3, #0 + 800de26: d102 bne.n 800de2e LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty entry found and not allowed to recycle\n")); return (s16_t)ERR_MEM; - 800de2c: f04f 33ff mov.w r3, #4294967295 - 800de30: e085 b.n 800df3e + 800de28: f04f 33ff mov.w r3, #4294967295 + 800de2c: e085 b.n 800df3a * * { ETHARP_FLAG_TRY_HARD is set at this point } */ /* 1) empty entry available? */ if (empty < ARP_TABLE_SIZE) { - 800de32: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 - 800de36: 2b09 cmp r3, #9 - 800de38: dc02 bgt.n 800de40 + 800de2e: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 + 800de32: 2b09 cmp r3, #9 + 800de34: dc02 bgt.n 800de3c i = empty; - 800de3a: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800de3c: 843b strh r3, [r7, #32] - 800de3e: e039 b.n 800deb4 + 800de36: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800de38: 843b strh r3, [r7, #32] + 800de3a: e039 b.n 800deb0 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting empty entry %d\n", (int)i)); } else { /* 2) found recyclable stable entry? */ if (old_stable < ARP_TABLE_SIZE) { - 800de40: f9b7 3024 ldrsh.w r3, [r7, #36] ; 0x24 - 800de44: 2b09 cmp r3, #9 - 800de46: dc14 bgt.n 800de72 + 800de3c: f9b7 3024 ldrsh.w r3, [r7, #36] ; 0x24 + 800de40: 2b09 cmp r3, #9 + 800de42: dc14 bgt.n 800de6e /* recycle oldest stable*/ i = old_stable; - 800de48: 8cbb ldrh r3, [r7, #36] ; 0x24 - 800de4a: 843b strh r3, [r7, #32] + 800de44: 8cbb ldrh r3, [r7, #36] ; 0x24 + 800de46: 843b strh r3, [r7, #32] LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest stable entry %d\n", (int)i)); /* no queued packets should exist on stable entries */ LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL); - 800de4c: f9b7 2020 ldrsh.w r2, [r7, #32] - 800de50: 493d ldr r1, [pc, #244] ; (800df48 ) - 800de52: 4613 mov r3, r2 - 800de54: 005b lsls r3, r3, #1 - 800de56: 4413 add r3, r2 - 800de58: 00db lsls r3, r3, #3 - 800de5a: 440b add r3, r1 - 800de5c: 681b ldr r3, [r3, #0] - 800de5e: 2b00 cmp r3, #0 - 800de60: d018 beq.n 800de94 - 800de62: 4b3a ldr r3, [pc, #232] ; (800df4c ) - 800de64: f240 126d movw r2, #365 ; 0x16d - 800de68: 493b ldr r1, [pc, #236] ; (800df58 ) - 800de6a: 483a ldr r0, [pc, #232] ; (800df54 ) - 800de6c: f002 fab2 bl 80103d4 - 800de70: e010 b.n 800de94 + 800de48: f9b7 2020 ldrsh.w r2, [r7, #32] + 800de4c: 493d ldr r1, [pc, #244] ; (800df44 ) + 800de4e: 4613 mov r3, r2 + 800de50: 005b lsls r3, r3, #1 + 800de52: 4413 add r3, r2 + 800de54: 00db lsls r3, r3, #3 + 800de56: 440b add r3, r1 + 800de58: 681b ldr r3, [r3, #0] + 800de5a: 2b00 cmp r3, #0 + 800de5c: d018 beq.n 800de90 + 800de5e: 4b3a ldr r3, [pc, #232] ; (800df48 ) + 800de60: f240 126d movw r2, #365 ; 0x16d + 800de64: 493b ldr r1, [pc, #236] ; (800df54 ) + 800de66: 483a ldr r0, [pc, #232] ; (800df50 ) + 800de68: f002 fab2 bl 80103d0 + 800de6c: e010 b.n 800de90 /* 3) found recyclable pending entry without queued packets? */ } else if (old_pending < ARP_TABLE_SIZE) { - 800de72: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 - 800de76: 2b09 cmp r3, #9 - 800de78: dc02 bgt.n 800de80 + 800de6e: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 + 800de72: 2b09 cmp r3, #9 + 800de74: dc02 bgt.n 800de7c /* recycle oldest pending */ i = old_pending; - 800de7a: 8cfb ldrh r3, [r7, #38] ; 0x26 - 800de7c: 843b strh r3, [r7, #32] - 800de7e: e009 b.n 800de94 + 800de76: 8cfb ldrh r3, [r7, #38] ; 0x26 + 800de78: 843b strh r3, [r7, #32] + 800de7a: e009 b.n 800de90 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d (without queue)\n", (int)i)); /* 4) found recyclable pending entry with queued packets? */ } else if (old_queue < ARP_TABLE_SIZE) { - 800de80: f9b7 301e ldrsh.w r3, [r7, #30] - 800de84: 2b09 cmp r3, #9 - 800de86: dc02 bgt.n 800de8e + 800de7c: f9b7 301e ldrsh.w r3, [r7, #30] + 800de80: 2b09 cmp r3, #9 + 800de82: dc02 bgt.n 800de8a /* recycle oldest pending (queued packets are free in etharp_free_entry) */ i = old_queue; - 800de88: 8bfb ldrh r3, [r7, #30] - 800de8a: 843b strh r3, [r7, #32] - 800de8c: e002 b.n 800de94 + 800de84: 8bfb ldrh r3, [r7, #30] + 800de86: 843b strh r3, [r7, #32] + 800de88: e002 b.n 800de90 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d, freeing packet queue %p\n", (int)i, (void *)(arp_table[i].q))); /* no empty or recyclable entries found */ } else { LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty or recyclable entries found\n")); return (s16_t)ERR_MEM; - 800de8e: f04f 33ff mov.w r3, #4294967295 - 800de92: e054 b.n 800df3e + 800de8a: f04f 33ff mov.w r3, #4294967295 + 800de8e: e054 b.n 800df3a } /* { empty or recyclable entry found } */ LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); - 800de94: f9b7 3020 ldrsh.w r3, [r7, #32] - 800de98: 2b09 cmp r3, #9 - 800de9a: dd06 ble.n 800deaa - 800de9c: 4b2b ldr r3, [pc, #172] ; (800df4c ) - 800de9e: f240 127f movw r2, #383 ; 0x17f - 800dea2: 492e ldr r1, [pc, #184] ; (800df5c ) - 800dea4: 482b ldr r0, [pc, #172] ; (800df54 ) - 800dea6: f002 fa95 bl 80103d4 + 800de90: f9b7 3020 ldrsh.w r3, [r7, #32] + 800de94: 2b09 cmp r3, #9 + 800de96: dd06 ble.n 800dea6 + 800de98: 4b2b ldr r3, [pc, #172] ; (800df48 ) + 800de9a: f240 127f movw r2, #383 ; 0x17f + 800de9e: 492e ldr r1, [pc, #184] ; (800df58 ) + 800dea0: 482b ldr r0, [pc, #172] ; (800df50 ) + 800dea2: f002 fa95 bl 80103d0 etharp_free_entry(i); - 800deaa: f9b7 3020 ldrsh.w r3, [r7, #32] - 800deae: 4618 mov r0, r3 - 800deb0: f7ff fe06 bl 800dac0 + 800dea6: f9b7 3020 ldrsh.w r3, [r7, #32] + 800deaa: 4618 mov r0, r3 + 800deac: f7ff fe06 bl 800dabc } LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); - 800deb4: f9b7 3020 ldrsh.w r3, [r7, #32] - 800deb8: 2b09 cmp r3, #9 - 800deba: dd06 ble.n 800deca - 800debc: 4b23 ldr r3, [pc, #140] ; (800df4c ) - 800debe: f240 1283 movw r2, #387 ; 0x183 - 800dec2: 4926 ldr r1, [pc, #152] ; (800df5c ) - 800dec4: 4823 ldr r0, [pc, #140] ; (800df54 ) - 800dec6: f002 fa85 bl 80103d4 + 800deb0: f9b7 3020 ldrsh.w r3, [r7, #32] + 800deb4: 2b09 cmp r3, #9 + 800deb6: dd06 ble.n 800dec6 + 800deb8: 4b23 ldr r3, [pc, #140] ; (800df48 ) + 800deba: f240 1283 movw r2, #387 ; 0x183 + 800debe: 4926 ldr r1, [pc, #152] ; (800df58 ) + 800dec0: 4823 ldr r0, [pc, #140] ; (800df50 ) + 800dec2: f002 fa85 bl 80103d0 LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY", - 800deca: f9b7 2020 ldrsh.w r2, [r7, #32] - 800dece: 491e ldr r1, [pc, #120] ; (800df48 ) - 800ded0: 4613 mov r3, r2 - 800ded2: 005b lsls r3, r3, #1 - 800ded4: 4413 add r3, r2 - 800ded6: 00db lsls r3, r3, #3 - 800ded8: 440b add r3, r1 - 800deda: 3314 adds r3, #20 - 800dedc: 781b ldrb r3, [r3, #0] - 800dede: 2b00 cmp r3, #0 - 800dee0: d006 beq.n 800def0 - 800dee2: 4b1a ldr r3, [pc, #104] ; (800df4c ) - 800dee4: f44f 72c2 mov.w r2, #388 ; 0x184 - 800dee8: 491d ldr r1, [pc, #116] ; (800df60 ) - 800deea: 481a ldr r0, [pc, #104] ; (800df54 ) - 800deec: f002 fa72 bl 80103d4 + 800dec6: f9b7 2020 ldrsh.w r2, [r7, #32] + 800deca: 491e ldr r1, [pc, #120] ; (800df44 ) + 800decc: 4613 mov r3, r2 + 800dece: 005b lsls r3, r3, #1 + 800ded0: 4413 add r3, r2 + 800ded2: 00db lsls r3, r3, #3 + 800ded4: 440b add r3, r1 + 800ded6: 3314 adds r3, #20 + 800ded8: 781b ldrb r3, [r3, #0] + 800deda: 2b00 cmp r3, #0 + 800dedc: d006 beq.n 800deec + 800dede: 4b1a ldr r3, [pc, #104] ; (800df48 ) + 800dee0: f44f 72c2 mov.w r2, #388 ; 0x184 + 800dee4: 491d ldr r1, [pc, #116] ; (800df5c ) + 800dee6: 481a ldr r0, [pc, #104] ; (800df50 ) + 800dee8: f002 fa72 bl 80103d0 arp_table[i].state == ETHARP_STATE_EMPTY); /* IP address given? */ if (ipaddr != NULL) { - 800def0: 68fb ldr r3, [r7, #12] - 800def2: 2b00 cmp r3, #0 - 800def4: d00b beq.n 800df0e + 800deec: 68fb ldr r3, [r7, #12] + 800deee: 2b00 cmp r3, #0 + 800def0: d00b beq.n 800df0a /* set IP address */ ip4_addr_copy(arp_table[i].ipaddr, *ipaddr); - 800def6: f9b7 2020 ldrsh.w r2, [r7, #32] - 800defa: 68fb ldr r3, [r7, #12] - 800defc: 6819 ldr r1, [r3, #0] - 800defe: 4812 ldr r0, [pc, #72] ; (800df48 ) - 800df00: 4613 mov r3, r2 - 800df02: 005b lsls r3, r3, #1 - 800df04: 4413 add r3, r2 - 800df06: 00db lsls r3, r3, #3 - 800df08: 4403 add r3, r0 - 800df0a: 3304 adds r3, #4 - 800df0c: 6019 str r1, [r3, #0] + 800def2: f9b7 2020 ldrsh.w r2, [r7, #32] + 800def6: 68fb ldr r3, [r7, #12] + 800def8: 6819 ldr r1, [r3, #0] + 800defa: 4812 ldr r0, [pc, #72] ; (800df44 ) + 800defc: 4613 mov r3, r2 + 800defe: 005b lsls r3, r3, #1 + 800df00: 4413 add r3, r2 + 800df02: 00db lsls r3, r3, #3 + 800df04: 4403 add r3, r0 + 800df06: 3304 adds r3, #4 + 800df08: 6019 str r1, [r3, #0] } arp_table[i].ctime = 0; - 800df0e: f9b7 2020 ldrsh.w r2, [r7, #32] - 800df12: 490d ldr r1, [pc, #52] ; (800df48 ) - 800df14: 4613 mov r3, r2 - 800df16: 005b lsls r3, r3, #1 - 800df18: 4413 add r3, r2 - 800df1a: 00db lsls r3, r3, #3 - 800df1c: 440b add r3, r1 - 800df1e: 3312 adds r3, #18 - 800df20: 2200 movs r2, #0 - 800df22: 801a strh r2, [r3, #0] + 800df0a: f9b7 2020 ldrsh.w r2, [r7, #32] + 800df0e: 490d ldr r1, [pc, #52] ; (800df44 ) + 800df10: 4613 mov r3, r2 + 800df12: 005b lsls r3, r3, #1 + 800df14: 4413 add r3, r2 + 800df16: 00db lsls r3, r3, #3 + 800df18: 440b add r3, r1 + 800df1a: 3312 adds r3, #18 + 800df1c: 2200 movs r2, #0 + 800df1e: 801a strh r2, [r3, #0] #if ETHARP_TABLE_MATCH_NETIF arp_table[i].netif = netif; - 800df24: f9b7 2020 ldrsh.w r2, [r7, #32] - 800df28: 4907 ldr r1, [pc, #28] ; (800df48 ) - 800df2a: 4613 mov r3, r2 - 800df2c: 005b lsls r3, r3, #1 - 800df2e: 4413 add r3, r2 - 800df30: 00db lsls r3, r3, #3 - 800df32: 440b add r3, r1 - 800df34: 3308 adds r3, #8 - 800df36: 687a ldr r2, [r7, #4] - 800df38: 601a str r2, [r3, #0] + 800df20: f9b7 2020 ldrsh.w r2, [r7, #32] + 800df24: 4907 ldr r1, [pc, #28] ; (800df44 ) + 800df26: 4613 mov r3, r2 + 800df28: 005b lsls r3, r3, #1 + 800df2a: 4413 add r3, r2 + 800df2c: 00db lsls r3, r3, #3 + 800df2e: 440b add r3, r1 + 800df30: 3308 adds r3, #8 + 800df32: 687a ldr r2, [r7, #4] + 800df34: 601a str r2, [r3, #0] #endif /* ETHARP_TABLE_MATCH_NETIF */ return (s16_t)i; - 800df3a: f9b7 3020 ldrsh.w r3, [r7, #32] + 800df36: f9b7 3020 ldrsh.w r3, [r7, #32] } - 800df3e: 4618 mov r0, r3 - 800df40: 3728 adds r7, #40 ; 0x28 - 800df42: 46bd mov sp, r7 - 800df44: bd80 pop {r7, pc} - 800df46: bf00 nop - 800df48: 20008c94 .word 0x20008c94 - 800df4c: 080175ac .word 0x080175ac - 800df50: 080175e4 .word 0x080175e4 - 800df54: 08017624 .word 0x08017624 - 800df58: 0801764c .word 0x0801764c - 800df5c: 08017664 .word 0x08017664 - 800df60: 08017678 .word 0x08017678 + 800df3a: 4618 mov r0, r3 + 800df3c: 3728 adds r7, #40 ; 0x28 + 800df3e: 46bd mov sp, r7 + 800df40: bd80 pop {r7, pc} + 800df42: bf00 nop + 800df44: 20008c94 .word 0x20008c94 + 800df48: 080175ac .word 0x080175ac + 800df4c: 080175e4 .word 0x080175e4 + 800df50: 08017624 .word 0x08017624 + 800df54: 0801764c .word 0x0801764c + 800df58: 08017664 .word 0x08017664 + 800df5c: 08017678 .word 0x08017678 -0800df64 : +0800df60 : * * @see pbuf_free() */ static err_t etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags) { - 800df64: b580 push {r7, lr} - 800df66: b088 sub sp, #32 - 800df68: af02 add r7, sp, #8 - 800df6a: 60f8 str r0, [r7, #12] - 800df6c: 60b9 str r1, [r7, #8] - 800df6e: 607a str r2, [r7, #4] - 800df70: 70fb strb r3, [r7, #3] + 800df60: b580 push {r7, lr} + 800df62: b088 sub sp, #32 + 800df64: af02 add r7, sp, #8 + 800df66: 60f8 str r0, [r7, #12] + 800df68: 60b9 str r1, [r7, #8] + 800df6a: 607a str r2, [r7, #4] + 800df6c: 70fb strb r3, [r7, #3] s16_t i; LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN); - 800df72: 68fb ldr r3, [r7, #12] - 800df74: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 800df78: 2b06 cmp r3, #6 - 800df7a: d006 beq.n 800df8a - 800df7c: 4b48 ldr r3, [pc, #288] ; (800e0a0 ) - 800df7e: f240 12a9 movw r2, #425 ; 0x1a9 - 800df82: 4948 ldr r1, [pc, #288] ; (800e0a4 ) - 800df84: 4848 ldr r0, [pc, #288] ; (800e0a8 ) - 800df86: f002 fa25 bl 80103d4 + 800df6e: 68fb ldr r3, [r7, #12] + 800df70: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 800df74: 2b06 cmp r3, #6 + 800df76: d006 beq.n 800df86 + 800df78: 4b48 ldr r3, [pc, #288] ; (800e09c ) + 800df7a: f240 12a9 movw r2, #425 ; 0x1a9 + 800df7e: 4948 ldr r1, [pc, #288] ; (800e0a0 ) + 800df80: 4848 ldr r0, [pc, #288] ; (800e0a4 ) + 800df82: f002 fa25 bl 80103d0 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: %"U16_F".%"U16_F".%"U16_F".%"U16_F" - %02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F"\n", ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr), (u16_t)ethaddr->addr[0], (u16_t)ethaddr->addr[1], (u16_t)ethaddr->addr[2], (u16_t)ethaddr->addr[3], (u16_t)ethaddr->addr[4], (u16_t)ethaddr->addr[5])); /* non-unicast address? */ if (ip4_addr_isany(ipaddr) || - 800df8a: 68bb ldr r3, [r7, #8] - 800df8c: 2b00 cmp r3, #0 - 800df8e: d012 beq.n 800dfb6 - 800df90: 68bb ldr r3, [r7, #8] - 800df92: 681b ldr r3, [r3, #0] - 800df94: 2b00 cmp r3, #0 - 800df96: d00e beq.n 800dfb6 + 800df86: 68bb ldr r3, [r7, #8] + 800df88: 2b00 cmp r3, #0 + 800df8a: d012 beq.n 800dfb2 + 800df8c: 68bb ldr r3, [r7, #8] + 800df8e: 681b ldr r3, [r3, #0] + 800df90: 2b00 cmp r3, #0 + 800df92: d00e beq.n 800dfb2 ip4_addr_isbroadcast(ipaddr, netif) || - 800df98: 68bb ldr r3, [r7, #8] - 800df9a: 681b ldr r3, [r3, #0] - 800df9c: 68f9 ldr r1, [r7, #12] - 800df9e: 4618 mov r0, r3 - 800dfa0: f001 f920 bl 800f1e4 - 800dfa4: 4603 mov r3, r0 + 800df94: 68bb ldr r3, [r7, #8] + 800df96: 681b ldr r3, [r3, #0] + 800df98: 68f9 ldr r1, [r7, #12] + 800df9a: 4618 mov r0, r3 + 800df9c: f001 f920 bl 800f1e0 + 800dfa0: 4603 mov r3, r0 if (ip4_addr_isany(ipaddr) || - 800dfa6: 2b00 cmp r3, #0 - 800dfa8: d105 bne.n 800dfb6 + 800dfa2: 2b00 cmp r3, #0 + 800dfa4: d105 bne.n 800dfb2 ip4_addr_ismulticast(ipaddr)) { - 800dfaa: 68bb ldr r3, [r7, #8] - 800dfac: 681b ldr r3, [r3, #0] - 800dfae: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800dfa6: 68bb ldr r3, [r7, #8] + 800dfa8: 681b ldr r3, [r3, #0] + 800dfaa: f003 03f0 and.w r3, r3, #240 ; 0xf0 ip4_addr_isbroadcast(ipaddr, netif) || - 800dfb2: 2be0 cmp r3, #224 ; 0xe0 - 800dfb4: d102 bne.n 800dfbc + 800dfae: 2be0 cmp r3, #224 ; 0xe0 + 800dfb0: d102 bne.n 800dfb8 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: will not add non-unicast IP address to ARP cache\n")); return ERR_ARG; - 800dfb6: f06f 030f mvn.w r3, #15 - 800dfba: e06c b.n 800e096 + 800dfb2: f06f 030f mvn.w r3, #15 + 800dfb6: e06c b.n 800e092 } /* find or create ARP entry */ i = etharp_find_entry(ipaddr, flags, netif); - 800dfbc: 78fb ldrb r3, [r7, #3] - 800dfbe: 68fa ldr r2, [r7, #12] - 800dfc0: 4619 mov r1, r3 - 800dfc2: 68b8 ldr r0, [r7, #8] - 800dfc4: f7ff fe56 bl 800dc74 - 800dfc8: 4603 mov r3, r0 - 800dfca: 82fb strh r3, [r7, #22] + 800dfb8: 78fb ldrb r3, [r7, #3] + 800dfba: 68fa ldr r2, [r7, #12] + 800dfbc: 4619 mov r1, r3 + 800dfbe: 68b8 ldr r0, [r7, #8] + 800dfc0: f7ff fe56 bl 800dc70 + 800dfc4: 4603 mov r3, r0 + 800dfc6: 82fb strh r3, [r7, #22] /* bail out if no entry could be found */ if (i < 0) { - 800dfcc: f9b7 3016 ldrsh.w r3, [r7, #22] - 800dfd0: 2b00 cmp r3, #0 - 800dfd2: da02 bge.n 800dfda + 800dfc8: f9b7 3016 ldrsh.w r3, [r7, #22] + 800dfcc: 2b00 cmp r3, #0 + 800dfce: da02 bge.n 800dfd6 return (err_t)i; - 800dfd4: 8afb ldrh r3, [r7, #22] - 800dfd6: b25b sxtb r3, r3 - 800dfd8: e05d b.n 800e096 + 800dfd0: 8afb ldrh r3, [r7, #22] + 800dfd2: b25b sxtb r3, r3 + 800dfd4: e05d b.n 800e092 return ERR_VAL; } else #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ { /* mark it stable */ arp_table[i].state = ETHARP_STATE_STABLE; - 800dfda: f9b7 2016 ldrsh.w r2, [r7, #22] - 800dfde: 4933 ldr r1, [pc, #204] ; (800e0ac ) - 800dfe0: 4613 mov r3, r2 - 800dfe2: 005b lsls r3, r3, #1 - 800dfe4: 4413 add r3, r2 - 800dfe6: 00db lsls r3, r3, #3 - 800dfe8: 440b add r3, r1 - 800dfea: 3314 adds r3, #20 - 800dfec: 2202 movs r2, #2 - 800dfee: 701a strb r2, [r3, #0] + 800dfd6: f9b7 2016 ldrsh.w r2, [r7, #22] + 800dfda: 4933 ldr r1, [pc, #204] ; (800e0a8 ) + 800dfdc: 4613 mov r3, r2 + 800dfde: 005b lsls r3, r3, #1 + 800dfe0: 4413 add r3, r2 + 800dfe2: 00db lsls r3, r3, #3 + 800dfe4: 440b add r3, r1 + 800dfe6: 3314 adds r3, #20 + 800dfe8: 2202 movs r2, #2 + 800dfea: 701a strb r2, [r3, #0] } /* record network interface */ arp_table[i].netif = netif; - 800dff0: f9b7 2016 ldrsh.w r2, [r7, #22] - 800dff4: 492d ldr r1, [pc, #180] ; (800e0ac ) - 800dff6: 4613 mov r3, r2 - 800dff8: 005b lsls r3, r3, #1 - 800dffa: 4413 add r3, r2 - 800dffc: 00db lsls r3, r3, #3 - 800dffe: 440b add r3, r1 - 800e000: 3308 adds r3, #8 - 800e002: 68fa ldr r2, [r7, #12] - 800e004: 601a str r2, [r3, #0] + 800dfec: f9b7 2016 ldrsh.w r2, [r7, #22] + 800dff0: 492d ldr r1, [pc, #180] ; (800e0a8 ) + 800dff2: 4613 mov r3, r2 + 800dff4: 005b lsls r3, r3, #1 + 800dff6: 4413 add r3, r2 + 800dff8: 00db lsls r3, r3, #3 + 800dffa: 440b add r3, r1 + 800dffc: 3308 adds r3, #8 + 800dffe: 68fa ldr r2, [r7, #12] + 800e000: 601a str r2, [r3, #0] /* insert in SNMP ARP index tree */ mib2_add_arp_entry(netif, &arp_table[i].ipaddr); LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: updating stable entry %"S16_F"\n", i)); /* update address */ SMEMCPY(&arp_table[i].ethaddr, ethaddr, ETH_HWADDR_LEN); - 800e006: f9b7 2016 ldrsh.w r2, [r7, #22] - 800e00a: 4613 mov r3, r2 - 800e00c: 005b lsls r3, r3, #1 - 800e00e: 4413 add r3, r2 - 800e010: 00db lsls r3, r3, #3 - 800e012: 3308 adds r3, #8 - 800e014: 4a25 ldr r2, [pc, #148] ; (800e0ac ) - 800e016: 4413 add r3, r2 - 800e018: 3304 adds r3, #4 - 800e01a: 2206 movs r2, #6 - 800e01c: 6879 ldr r1, [r7, #4] - 800e01e: 4618 mov r0, r3 - 800e020: f002 f9a8 bl 8010374 + 800e002: f9b7 2016 ldrsh.w r2, [r7, #22] + 800e006: 4613 mov r3, r2 + 800e008: 005b lsls r3, r3, #1 + 800e00a: 4413 add r3, r2 + 800e00c: 00db lsls r3, r3, #3 + 800e00e: 3308 adds r3, #8 + 800e010: 4a25 ldr r2, [pc, #148] ; (800e0a8 ) + 800e012: 4413 add r3, r2 + 800e014: 3304 adds r3, #4 + 800e016: 2206 movs r2, #6 + 800e018: 6879 ldr r1, [r7, #4] + 800e01a: 4618 mov r0, r3 + 800e01c: f002 f9a8 bl 8010370 /* reset time stamp */ arp_table[i].ctime = 0; - 800e024: f9b7 2016 ldrsh.w r2, [r7, #22] - 800e028: 4920 ldr r1, [pc, #128] ; (800e0ac ) - 800e02a: 4613 mov r3, r2 - 800e02c: 005b lsls r3, r3, #1 - 800e02e: 4413 add r3, r2 - 800e030: 00db lsls r3, r3, #3 - 800e032: 440b add r3, r1 - 800e034: 3312 adds r3, #18 - 800e036: 2200 movs r2, #0 - 800e038: 801a strh r2, [r3, #0] + 800e020: f9b7 2016 ldrsh.w r2, [r7, #22] + 800e024: 4920 ldr r1, [pc, #128] ; (800e0a8 ) + 800e026: 4613 mov r3, r2 + 800e028: 005b lsls r3, r3, #1 + 800e02a: 4413 add r3, r2 + 800e02c: 00db lsls r3, r3, #3 + 800e02e: 440b add r3, r1 + 800e030: 3312 adds r3, #18 + 800e032: 2200 movs r2, #0 + 800e034: 801a strh r2, [r3, #0] /* get the packet pointer */ p = q->p; /* now queue entry can be freed */ memp_free(MEMP_ARP_QUEUE, q); #else /* ARP_QUEUEING */ if (arp_table[i].q != NULL) { - 800e03a: f9b7 2016 ldrsh.w r2, [r7, #22] - 800e03e: 491b ldr r1, [pc, #108] ; (800e0ac ) - 800e040: 4613 mov r3, r2 - 800e042: 005b lsls r3, r3, #1 - 800e044: 4413 add r3, r2 - 800e046: 00db lsls r3, r3, #3 - 800e048: 440b add r3, r1 - 800e04a: 681b ldr r3, [r3, #0] - 800e04c: 2b00 cmp r3, #0 - 800e04e: d021 beq.n 800e094 + 800e036: f9b7 2016 ldrsh.w r2, [r7, #22] + 800e03a: 491b ldr r1, [pc, #108] ; (800e0a8 ) + 800e03c: 4613 mov r3, r2 + 800e03e: 005b lsls r3, r3, #1 + 800e040: 4413 add r3, r2 + 800e042: 00db lsls r3, r3, #3 + 800e044: 440b add r3, r1 + 800e046: 681b ldr r3, [r3, #0] + 800e048: 2b00 cmp r3, #0 + 800e04a: d021 beq.n 800e090 struct pbuf *p = arp_table[i].q; - 800e050: f9b7 2016 ldrsh.w r2, [r7, #22] - 800e054: 4915 ldr r1, [pc, #84] ; (800e0ac ) - 800e056: 4613 mov r3, r2 - 800e058: 005b lsls r3, r3, #1 - 800e05a: 4413 add r3, r2 - 800e05c: 00db lsls r3, r3, #3 - 800e05e: 440b add r3, r1 - 800e060: 681b ldr r3, [r3, #0] - 800e062: 613b str r3, [r7, #16] + 800e04c: f9b7 2016 ldrsh.w r2, [r7, #22] + 800e050: 4915 ldr r1, [pc, #84] ; (800e0a8 ) + 800e052: 4613 mov r3, r2 + 800e054: 005b lsls r3, r3, #1 + 800e056: 4413 add r3, r2 + 800e058: 00db lsls r3, r3, #3 + 800e05a: 440b add r3, r1 + 800e05c: 681b ldr r3, [r3, #0] + 800e05e: 613b str r3, [r7, #16] arp_table[i].q = NULL; - 800e064: f9b7 2016 ldrsh.w r2, [r7, #22] - 800e068: 4910 ldr r1, [pc, #64] ; (800e0ac ) - 800e06a: 4613 mov r3, r2 - 800e06c: 005b lsls r3, r3, #1 - 800e06e: 4413 add r3, r2 - 800e070: 00db lsls r3, r3, #3 - 800e072: 440b add r3, r1 - 800e074: 2200 movs r2, #0 - 800e076: 601a str r2, [r3, #0] + 800e060: f9b7 2016 ldrsh.w r2, [r7, #22] + 800e064: 4910 ldr r1, [pc, #64] ; (800e0a8 ) + 800e066: 4613 mov r3, r2 + 800e068: 005b lsls r3, r3, #1 + 800e06a: 4413 add r3, r2 + 800e06c: 00db lsls r3, r3, #3 + 800e06e: 440b add r3, r1 + 800e070: 2200 movs r2, #0 + 800e072: 601a str r2, [r3, #0] #endif /* ARP_QUEUEING */ /* send the queued IP packet */ ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP); - 800e078: 68fb ldr r3, [r7, #12] - 800e07a: f103 022a add.w r2, r3, #42 ; 0x2a - 800e07e: f44f 6300 mov.w r3, #2048 ; 0x800 - 800e082: 9300 str r3, [sp, #0] - 800e084: 687b ldr r3, [r7, #4] - 800e086: 6939 ldr r1, [r7, #16] - 800e088: 68f8 ldr r0, [r7, #12] - 800e08a: f002 f8f7 bl 801027c + 800e074: 68fb ldr r3, [r7, #12] + 800e076: f103 022a add.w r2, r3, #42 ; 0x2a + 800e07a: f44f 6300 mov.w r3, #2048 ; 0x800 + 800e07e: 9300 str r3, [sp, #0] + 800e080: 687b ldr r3, [r7, #4] + 800e082: 6939 ldr r1, [r7, #16] + 800e084: 68f8 ldr r0, [r7, #12] + 800e086: f002 f8f7 bl 8010278 /* free the queued IP packet */ pbuf_free(p); - 800e08e: 6938 ldr r0, [r7, #16] - 800e090: f7f7 fc84 bl 800599c + 800e08a: 6938 ldr r0, [r7, #16] + 800e08c: f7f7 fc84 bl 8005998 } return ERR_OK; - 800e094: 2300 movs r3, #0 + 800e090: 2300 movs r3, #0 } - 800e096: 4618 mov r0, r3 - 800e098: 3718 adds r7, #24 - 800e09a: 46bd mov sp, r7 - 800e09c: bd80 pop {r7, pc} - 800e09e: bf00 nop - 800e0a0: 080175ac .word 0x080175ac - 800e0a4: 080176a4 .word 0x080176a4 - 800e0a8: 08017624 .word 0x08017624 - 800e0ac: 20008c94 .word 0x20008c94 + 800e092: 4618 mov r0, r3 + 800e094: 3718 adds r7, #24 + 800e096: 46bd mov sp, r7 + 800e098: bd80 pop {r7, pc} + 800e09a: bf00 nop + 800e09c: 080175ac .word 0x080175ac + 800e0a0: 080176a4 .word 0x080176a4 + 800e0a4: 08017624 .word 0x08017624 + 800e0a8: 20008c94 .word 0x20008c94 -0800e0b0 : +0800e0ac : * * @param netif points to a network interface */ void etharp_cleanup_netif(struct netif *netif) { - 800e0b0: b580 push {r7, lr} - 800e0b2: b084 sub sp, #16 - 800e0b4: af00 add r7, sp, #0 - 800e0b6: 6078 str r0, [r7, #4] + 800e0ac: b580 push {r7, lr} + 800e0ae: b084 sub sp, #16 + 800e0b0: af00 add r7, sp, #0 + 800e0b2: 6078 str r0, [r7, #4] int i; for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 800e0b8: 2300 movs r3, #0 - 800e0ba: 60fb str r3, [r7, #12] - 800e0bc: e01e b.n 800e0fc + 800e0b4: 2300 movs r3, #0 + 800e0b6: 60fb str r3, [r7, #12] + 800e0b8: e01e b.n 800e0f8 u8_t state = arp_table[i].state; - 800e0be: 4913 ldr r1, [pc, #76] ; (800e10c ) - 800e0c0: 68fa ldr r2, [r7, #12] - 800e0c2: 4613 mov r3, r2 - 800e0c4: 005b lsls r3, r3, #1 - 800e0c6: 4413 add r3, r2 - 800e0c8: 00db lsls r3, r3, #3 - 800e0ca: 440b add r3, r1 - 800e0cc: 3314 adds r3, #20 - 800e0ce: 781b ldrb r3, [r3, #0] - 800e0d0: 72fb strb r3, [r7, #11] + 800e0ba: 4913 ldr r1, [pc, #76] ; (800e108 ) + 800e0bc: 68fa ldr r2, [r7, #12] + 800e0be: 4613 mov r3, r2 + 800e0c0: 005b lsls r3, r3, #1 + 800e0c2: 4413 add r3, r2 + 800e0c4: 00db lsls r3, r3, #3 + 800e0c6: 440b add r3, r1 + 800e0c8: 3314 adds r3, #20 + 800e0ca: 781b ldrb r3, [r3, #0] + 800e0cc: 72fb strb r3, [r7, #11] if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) { - 800e0d2: 7afb ldrb r3, [r7, #11] - 800e0d4: 2b00 cmp r3, #0 - 800e0d6: d00e beq.n 800e0f6 - 800e0d8: 490c ldr r1, [pc, #48] ; (800e10c ) - 800e0da: 68fa ldr r2, [r7, #12] - 800e0dc: 4613 mov r3, r2 - 800e0de: 005b lsls r3, r3, #1 - 800e0e0: 4413 add r3, r2 - 800e0e2: 00db lsls r3, r3, #3 - 800e0e4: 440b add r3, r1 - 800e0e6: 3308 adds r3, #8 - 800e0e8: 681b ldr r3, [r3, #0] - 800e0ea: 687a ldr r2, [r7, #4] - 800e0ec: 429a cmp r2, r3 - 800e0ee: d102 bne.n 800e0f6 + 800e0ce: 7afb ldrb r3, [r7, #11] + 800e0d0: 2b00 cmp r3, #0 + 800e0d2: d00e beq.n 800e0f2 + 800e0d4: 490c ldr r1, [pc, #48] ; (800e108 ) + 800e0d6: 68fa ldr r2, [r7, #12] + 800e0d8: 4613 mov r3, r2 + 800e0da: 005b lsls r3, r3, #1 + 800e0dc: 4413 add r3, r2 + 800e0de: 00db lsls r3, r3, #3 + 800e0e0: 440b add r3, r1 + 800e0e2: 3308 adds r3, #8 + 800e0e4: 681b ldr r3, [r3, #0] + 800e0e6: 687a ldr r2, [r7, #4] + 800e0e8: 429a cmp r2, r3 + 800e0ea: d102 bne.n 800e0f2 etharp_free_entry(i); - 800e0f0: 68f8 ldr r0, [r7, #12] - 800e0f2: f7ff fce5 bl 800dac0 + 800e0ec: 68f8 ldr r0, [r7, #12] + 800e0ee: f7ff fce5 bl 800dabc for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 800e0f6: 68fb ldr r3, [r7, #12] - 800e0f8: 3301 adds r3, #1 - 800e0fa: 60fb str r3, [r7, #12] - 800e0fc: 68fb ldr r3, [r7, #12] - 800e0fe: 2b09 cmp r3, #9 - 800e100: dddd ble.n 800e0be + 800e0f2: 68fb ldr r3, [r7, #12] + 800e0f4: 3301 adds r3, #1 + 800e0f6: 60fb str r3, [r7, #12] + 800e0f8: 68fb ldr r3, [r7, #12] + 800e0fa: 2b09 cmp r3, #9 + 800e0fc: dddd ble.n 800e0ba } } } - 800e102: bf00 nop - 800e104: bf00 nop - 800e106: 3710 adds r7, #16 - 800e108: 46bd mov sp, r7 - 800e10a: bd80 pop {r7, pc} - 800e10c: 20008c94 .word 0x20008c94 + 800e0fe: bf00 nop + 800e100: bf00 nop + 800e102: 3710 adds r7, #16 + 800e104: 46bd mov sp, r7 + 800e106: bd80 pop {r7, pc} + 800e108: 20008c94 .word 0x20008c94 -0800e110 : +0800e10c : * * @see pbuf_free() */ void etharp_input(struct pbuf *p, struct netif *netif) { - 800e110: b5b0 push {r4, r5, r7, lr} - 800e112: b08a sub sp, #40 ; 0x28 - 800e114: af04 add r7, sp, #16 - 800e116: 6078 str r0, [r7, #4] - 800e118: 6039 str r1, [r7, #0] + 800e10c: b5b0 push {r4, r5, r7, lr} + 800e10e: b08a sub sp, #40 ; 0x28 + 800e110: af04 add r7, sp, #16 + 800e112: 6078 str r0, [r7, #4] + 800e114: 6039 str r1, [r7, #0] ip4_addr_t sipaddr, dipaddr; u8_t for_us; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif != NULL", (netif != NULL), return;); - 800e11a: 683b ldr r3, [r7, #0] - 800e11c: 2b00 cmp r3, #0 - 800e11e: d107 bne.n 800e130 - 800e120: 4b3f ldr r3, [pc, #252] ; (800e220 ) - 800e122: f240 228a movw r2, #650 ; 0x28a - 800e126: 493f ldr r1, [pc, #252] ; (800e224 ) - 800e128: 483f ldr r0, [pc, #252] ; (800e228 ) - 800e12a: f002 f953 bl 80103d4 - 800e12e: e074 b.n 800e21a + 800e116: 683b ldr r3, [r7, #0] + 800e118: 2b00 cmp r3, #0 + 800e11a: d107 bne.n 800e12c + 800e11c: 4b3f ldr r3, [pc, #252] ; (800e21c ) + 800e11e: f240 228a movw r2, #650 ; 0x28a + 800e122: 493f ldr r1, [pc, #252] ; (800e220 ) + 800e124: 483f ldr r0, [pc, #252] ; (800e224 ) + 800e126: f002 f953 bl 80103d0 + 800e12a: e074 b.n 800e216 hdr = (struct etharp_hdr *)p->payload; - 800e130: 687b ldr r3, [r7, #4] - 800e132: 685b ldr r3, [r3, #4] - 800e134: 613b str r3, [r7, #16] + 800e12c: 687b ldr r3, [r7, #4] + 800e12e: 685b ldr r3, [r3, #4] + 800e130: 613b str r3, [r7, #16] /* RFC 826 "Packet Reception": */ if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) || - 800e136: 693b ldr r3, [r7, #16] - 800e138: 881b ldrh r3, [r3, #0] - 800e13a: b29b uxth r3, r3 - 800e13c: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800e140: d10c bne.n 800e15c + 800e132: 693b ldr r3, [r7, #16] + 800e134: 881b ldrh r3, [r3, #0] + 800e136: b29b uxth r3, r3 + 800e138: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800e13c: d10c bne.n 800e158 (hdr->hwlen != ETH_HWADDR_LEN) || - 800e142: 693b ldr r3, [r7, #16] - 800e144: 791b ldrb r3, [r3, #4] + 800e13e: 693b ldr r3, [r7, #16] + 800e140: 791b ldrb r3, [r3, #4] if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) || - 800e146: 2b06 cmp r3, #6 - 800e148: d108 bne.n 800e15c + 800e142: 2b06 cmp r3, #6 + 800e144: d108 bne.n 800e158 (hdr->protolen != sizeof(ip4_addr_t)) || - 800e14a: 693b ldr r3, [r7, #16] - 800e14c: 795b ldrb r3, [r3, #5] + 800e146: 693b ldr r3, [r7, #16] + 800e148: 795b ldrb r3, [r3, #5] (hdr->hwlen != ETH_HWADDR_LEN) || - 800e14e: 2b04 cmp r3, #4 - 800e150: d104 bne.n 800e15c + 800e14a: 2b04 cmp r3, #4 + 800e14c: d104 bne.n 800e158 (hdr->proto != PP_HTONS(ETHTYPE_IP))) { - 800e152: 693b ldr r3, [r7, #16] - 800e154: 885b ldrh r3, [r3, #2] - 800e156: b29b uxth r3, r3 + 800e14e: 693b ldr r3, [r7, #16] + 800e150: 885b ldrh r3, [r3, #2] + 800e152: b29b uxth r3, r3 (hdr->protolen != sizeof(ip4_addr_t)) || - 800e158: 2b08 cmp r3, #8 - 800e15a: d003 beq.n 800e164 + 800e154: 2b08 cmp r3, #8 + 800e156: d003 beq.n 800e160 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("etharp_input: packet dropped, wrong hw type, hwlen, proto, protolen or ethernet type (%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F")\n", hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen)); ETHARP_STATS_INC(etharp.proterr); ETHARP_STATS_INC(etharp.drop); pbuf_free(p); - 800e15c: 6878 ldr r0, [r7, #4] - 800e15e: f7f7 fc1d bl 800599c + 800e158: 6878 ldr r0, [r7, #4] + 800e15a: f7f7 fc1d bl 8005998 return; - 800e162: e05a b.n 800e21a + 800e15e: e05a b.n 800e216 autoip_arp_reply(netif, hdr); #endif /* LWIP_AUTOIP */ /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without * structure packing (not using structure copy which breaks strict-aliasing rules). */ IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&sipaddr, &hdr->sipaddr); - 800e164: 693b ldr r3, [r7, #16] - 800e166: 330e adds r3, #14 - 800e168: 681b ldr r3, [r3, #0] - 800e16a: 60fb str r3, [r7, #12] + 800e160: 693b ldr r3, [r7, #16] + 800e162: 330e adds r3, #14 + 800e164: 681b ldr r3, [r3, #0] + 800e166: 60fb str r3, [r7, #12] IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr); - 800e16c: 693b ldr r3, [r7, #16] - 800e16e: 3318 adds r3, #24 - 800e170: 681b ldr r3, [r3, #0] - 800e172: 60bb str r3, [r7, #8] + 800e168: 693b ldr r3, [r7, #16] + 800e16a: 3318 adds r3, #24 + 800e16c: 681b ldr r3, [r3, #0] + 800e16e: 60bb str r3, [r7, #8] /* this interface is not configured? */ if (ip4_addr_isany_val(*netif_ip4_addr(netif))) { - 800e174: 683b ldr r3, [r7, #0] - 800e176: 3304 adds r3, #4 - 800e178: 681b ldr r3, [r3, #0] - 800e17a: 2b00 cmp r3, #0 - 800e17c: d102 bne.n 800e184 + 800e170: 683b ldr r3, [r7, #0] + 800e172: 3304 adds r3, #4 + 800e174: 681b ldr r3, [r3, #0] + 800e176: 2b00 cmp r3, #0 + 800e178: d102 bne.n 800e180 for_us = 0; - 800e17e: 2300 movs r3, #0 - 800e180: 75fb strb r3, [r7, #23] - 800e182: e009 b.n 800e198 + 800e17a: 2300 movs r3, #0 + 800e17c: 75fb strb r3, [r7, #23] + 800e17e: e009 b.n 800e194 } else { /* ARP packet directed to us? */ for_us = (u8_t)ip4_addr_cmp(&dipaddr, netif_ip4_addr(netif)); - 800e184: 68ba ldr r2, [r7, #8] - 800e186: 683b ldr r3, [r7, #0] - 800e188: 3304 adds r3, #4 - 800e18a: 681b ldr r3, [r3, #0] - 800e18c: 429a cmp r2, r3 - 800e18e: bf0c ite eq - 800e190: 2301 moveq r3, #1 - 800e192: 2300 movne r3, #0 - 800e194: b2db uxtb r3, r3 - 800e196: 75fb strb r3, [r7, #23] + 800e180: 68ba ldr r2, [r7, #8] + 800e182: 683b ldr r3, [r7, #0] + 800e184: 3304 adds r3, #4 + 800e186: 681b ldr r3, [r3, #0] + 800e188: 429a cmp r2, r3 + 800e18a: bf0c ite eq + 800e18c: 2301 moveq r3, #1 + 800e18e: 2300 movne r3, #0 + 800e190: b2db uxtb r3, r3 + 800e192: 75fb strb r3, [r7, #23] /* ARP message directed to us? -> add IP address in ARP cache; assume requester wants to talk to us, can result in directly sending the queued packets for this host. ARP message not directed to us? -> update the source IP address in the cache, if present */ etharp_update_arp_entry(netif, &sipaddr, &(hdr->shwaddr), - 800e198: 693b ldr r3, [r7, #16] - 800e19a: f103 0208 add.w r2, r3, #8 - 800e19e: 7dfb ldrb r3, [r7, #23] - 800e1a0: 2b00 cmp r3, #0 - 800e1a2: d001 beq.n 800e1a8 - 800e1a4: 2301 movs r3, #1 - 800e1a6: e000 b.n 800e1aa - 800e1a8: 2302 movs r3, #2 - 800e1aa: f107 010c add.w r1, r7, #12 - 800e1ae: 6838 ldr r0, [r7, #0] - 800e1b0: f7ff fed8 bl 800df64 + 800e194: 693b ldr r3, [r7, #16] + 800e196: f103 0208 add.w r2, r3, #8 + 800e19a: 7dfb ldrb r3, [r7, #23] + 800e19c: 2b00 cmp r3, #0 + 800e19e: d001 beq.n 800e1a4 + 800e1a0: 2301 movs r3, #1 + 800e1a2: e000 b.n 800e1a6 + 800e1a4: 2302 movs r3, #2 + 800e1a6: f107 010c add.w r1, r7, #12 + 800e1aa: 6838 ldr r0, [r7, #0] + 800e1ac: f7ff fed8 bl 800df60 for_us ? ETHARP_FLAG_TRY_HARD : ETHARP_FLAG_FIND_ONLY); /* now act on the message itself */ switch (hdr->opcode) { - 800e1b4: 693b ldr r3, [r7, #16] - 800e1b6: 88db ldrh r3, [r3, #6] - 800e1b8: b29b uxth r3, r3 - 800e1ba: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800e1be: d003 beq.n 800e1c8 - 800e1c0: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 800e1c4: d01e beq.n 800e204 + 800e1b0: 693b ldr r3, [r7, #16] + 800e1b2: 88db ldrh r3, [r3, #6] + 800e1b4: b29b uxth r3, r3 + 800e1b6: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800e1ba: d003 beq.n 800e1c4 + 800e1bc: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 800e1c0: d01e beq.n 800e200 #endif /* (LWIP_DHCP && DHCP_DOES_ARP_CHECK) */ break; default: LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: ARP unknown opcode type %"S16_F"\n", lwip_htons(hdr->opcode))); ETHARP_STATS_INC(etharp.err); break; - 800e1c6: e025 b.n 800e214 + 800e1c2: e025 b.n 800e210 if (for_us) { - 800e1c8: 7dfb ldrb r3, [r7, #23] - 800e1ca: 2b00 cmp r3, #0 - 800e1cc: d021 beq.n 800e212 + 800e1c4: 7dfb ldrb r3, [r7, #23] + 800e1c6: 2b00 cmp r3, #0 + 800e1c8: d021 beq.n 800e20e (struct eth_addr *)netif->hwaddr, &hdr->shwaddr, - 800e1ce: 683b ldr r3, [r7, #0] - 800e1d0: f103 002a add.w r0, r3, #42 ; 0x2a - 800e1d4: 693b ldr r3, [r7, #16] - 800e1d6: f103 0408 add.w r4, r3, #8 + 800e1ca: 683b ldr r3, [r7, #0] + 800e1cc: f103 002a add.w r0, r3, #42 ; 0x2a + 800e1d0: 693b ldr r3, [r7, #16] + 800e1d2: f103 0408 add.w r4, r3, #8 (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), - 800e1da: 683b ldr r3, [r7, #0] - 800e1dc: f103 052a add.w r5, r3, #42 ; 0x2a - 800e1e0: 683b ldr r3, [r7, #0] - 800e1e2: 3304 adds r3, #4 + 800e1d6: 683b ldr r3, [r7, #0] + 800e1d8: f103 052a add.w r5, r3, #42 ; 0x2a + 800e1dc: 683b ldr r3, [r7, #0] + 800e1de: 3304 adds r3, #4 &hdr->shwaddr, &sipaddr, - 800e1e4: 693a ldr r2, [r7, #16] - 800e1e6: 3208 adds r2, #8 + 800e1e0: 693a ldr r2, [r7, #16] + 800e1e2: 3208 adds r2, #8 etharp_raw(netif, - 800e1e8: 2102 movs r1, #2 - 800e1ea: 9103 str r1, [sp, #12] - 800e1ec: f107 010c add.w r1, r7, #12 - 800e1f0: 9102 str r1, [sp, #8] - 800e1f2: 9201 str r2, [sp, #4] - 800e1f4: 9300 str r3, [sp, #0] - 800e1f6: 462b mov r3, r5 - 800e1f8: 4622 mov r2, r4 - 800e1fa: 4601 mov r1, r0 - 800e1fc: 6838 ldr r0, [r7, #0] - 800e1fe: f000 faef bl 800e7e0 + 800e1e4: 2102 movs r1, #2 + 800e1e6: 9103 str r1, [sp, #12] + 800e1e8: f107 010c add.w r1, r7, #12 + 800e1ec: 9102 str r1, [sp, #8] + 800e1ee: 9201 str r2, [sp, #4] + 800e1f0: 9300 str r3, [sp, #0] + 800e1f2: 462b mov r3, r5 + 800e1f4: 4622 mov r2, r4 + 800e1f6: 4601 mov r1, r0 + 800e1f8: 6838 ldr r0, [r7, #0] + 800e1fa: f000 faef bl 800e7dc break; - 800e202: e006 b.n 800e212 + 800e1fe: e006 b.n 800e20e dhcp_arp_reply(netif, &sipaddr); - 800e204: f107 030c add.w r3, r7, #12 - 800e208: 4619 mov r1, r3 - 800e20a: 6838 ldr r0, [r7, #0] - 800e20c: f7fe f9fc bl 800c608 + 800e200: f107 030c add.w r3, r7, #12 + 800e204: 4619 mov r1, r3 + 800e206: 6838 ldr r0, [r7, #0] + 800e208: f7fe f9fc bl 800c604 break; - 800e210: e000 b.n 800e214 + 800e20c: e000 b.n 800e210 break; - 800e212: bf00 nop + 800e20e: bf00 nop } /* free ARP packet */ pbuf_free(p); - 800e214: 6878 ldr r0, [r7, #4] - 800e216: f7f7 fbc1 bl 800599c + 800e210: 6878 ldr r0, [r7, #4] + 800e212: f7f7 fbc1 bl 8005998 } - 800e21a: 3718 adds r7, #24 - 800e21c: 46bd mov sp, r7 - 800e21e: bdb0 pop {r4, r5, r7, pc} - 800e220: 080175ac .word 0x080175ac - 800e224: 080176fc .word 0x080176fc - 800e228: 08017624 .word 0x08017624 + 800e216: 3718 adds r7, #24 + 800e218: 46bd mov sp, r7 + 800e21a: bdb0 pop {r4, r5, r7, pc} + 800e21c: 080175ac .word 0x080175ac + 800e220: 080176fc .word 0x080176fc + 800e224: 08017624 .word 0x08017624 -0800e22c : +0800e228 : /** Just a small helper function that sends a pbuf to an ethernet address * in the arp_table specified by the index 'arp_idx'. */ static err_t etharp_output_to_arp_index(struct netif *netif, struct pbuf *q, netif_addr_idx_t arp_idx) { - 800e22c: b580 push {r7, lr} - 800e22e: b086 sub sp, #24 - 800e230: af02 add r7, sp, #8 - 800e232: 60f8 str r0, [r7, #12] - 800e234: 60b9 str r1, [r7, #8] - 800e236: 4613 mov r3, r2 - 800e238: 71fb strb r3, [r7, #7] + 800e228: b580 push {r7, lr} + 800e22a: b086 sub sp, #24 + 800e22c: af02 add r7, sp, #8 + 800e22e: 60f8 str r0, [r7, #12] + 800e230: 60b9 str r1, [r7, #8] + 800e232: 4613 mov r3, r2 + 800e234: 71fb strb r3, [r7, #7] LWIP_ASSERT("arp_table[arp_idx].state >= ETHARP_STATE_STABLE", - 800e23a: 79fa ldrb r2, [r7, #7] - 800e23c: 4944 ldr r1, [pc, #272] ; (800e350 ) - 800e23e: 4613 mov r3, r2 - 800e240: 005b lsls r3, r3, #1 - 800e242: 4413 add r3, r2 - 800e244: 00db lsls r3, r3, #3 - 800e246: 440b add r3, r1 - 800e248: 3314 adds r3, #20 - 800e24a: 781b ldrb r3, [r3, #0] - 800e24c: 2b01 cmp r3, #1 - 800e24e: d806 bhi.n 800e25e - 800e250: 4b40 ldr r3, [pc, #256] ; (800e354 ) - 800e252: f240 22ee movw r2, #750 ; 0x2ee - 800e256: 4940 ldr r1, [pc, #256] ; (800e358 ) - 800e258: 4840 ldr r0, [pc, #256] ; (800e35c ) - 800e25a: f002 f8bb bl 80103d4 + 800e236: 79fa ldrb r2, [r7, #7] + 800e238: 4944 ldr r1, [pc, #272] ; (800e34c ) + 800e23a: 4613 mov r3, r2 + 800e23c: 005b lsls r3, r3, #1 + 800e23e: 4413 add r3, r2 + 800e240: 00db lsls r3, r3, #3 + 800e242: 440b add r3, r1 + 800e244: 3314 adds r3, #20 + 800e246: 781b ldrb r3, [r3, #0] + 800e248: 2b01 cmp r3, #1 + 800e24a: d806 bhi.n 800e25a + 800e24c: 4b40 ldr r3, [pc, #256] ; (800e350 ) + 800e24e: f240 22ee movw r2, #750 ; 0x2ee + 800e252: 4940 ldr r1, [pc, #256] ; (800e354 ) + 800e254: 4840 ldr r0, [pc, #256] ; (800e358 ) + 800e256: f002 f8bb bl 80103d0 arp_table[arp_idx].state >= ETHARP_STATE_STABLE); /* if arp table entry is about to expire: re-request it, but only if its state is ETHARP_STATE_STABLE to prevent flooding the network with ARP requests if this address is used frequently. */ if (arp_table[arp_idx].state == ETHARP_STATE_STABLE) { - 800e25e: 79fa ldrb r2, [r7, #7] - 800e260: 493b ldr r1, [pc, #236] ; (800e350 ) - 800e262: 4613 mov r3, r2 - 800e264: 005b lsls r3, r3, #1 - 800e266: 4413 add r3, r2 - 800e268: 00db lsls r3, r3, #3 - 800e26a: 440b add r3, r1 - 800e26c: 3314 adds r3, #20 - 800e26e: 781b ldrb r3, [r3, #0] - 800e270: 2b02 cmp r3, #2 - 800e272: d153 bne.n 800e31c + 800e25a: 79fa ldrb r2, [r7, #7] + 800e25c: 493b ldr r1, [pc, #236] ; (800e34c ) + 800e25e: 4613 mov r3, r2 + 800e260: 005b lsls r3, r3, #1 + 800e262: 4413 add r3, r2 + 800e264: 00db lsls r3, r3, #3 + 800e266: 440b add r3, r1 + 800e268: 3314 adds r3, #20 + 800e26a: 781b ldrb r3, [r3, #0] + 800e26c: 2b02 cmp r3, #2 + 800e26e: d153 bne.n 800e318 if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_BROADCAST) { - 800e274: 79fa ldrb r2, [r7, #7] - 800e276: 4936 ldr r1, [pc, #216] ; (800e350 ) - 800e278: 4613 mov r3, r2 - 800e27a: 005b lsls r3, r3, #1 - 800e27c: 4413 add r3, r2 - 800e27e: 00db lsls r3, r3, #3 - 800e280: 440b add r3, r1 - 800e282: 3312 adds r3, #18 - 800e284: 881b ldrh r3, [r3, #0] - 800e286: f5b3 7f8e cmp.w r3, #284 ; 0x11c - 800e28a: d919 bls.n 800e2c0 + 800e270: 79fa ldrb r2, [r7, #7] + 800e272: 4936 ldr r1, [pc, #216] ; (800e34c ) + 800e274: 4613 mov r3, r2 + 800e276: 005b lsls r3, r3, #1 + 800e278: 4413 add r3, r2 + 800e27a: 00db lsls r3, r3, #3 + 800e27c: 440b add r3, r1 + 800e27e: 3312 adds r3, #18 + 800e280: 881b ldrh r3, [r3, #0] + 800e282: f5b3 7f8e cmp.w r3, #284 ; 0x11c + 800e286: d919 bls.n 800e2bc /* issue a standard request using broadcast */ if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) { - 800e28c: 79fa ldrb r2, [r7, #7] - 800e28e: 4613 mov r3, r2 - 800e290: 005b lsls r3, r3, #1 - 800e292: 4413 add r3, r2 - 800e294: 00db lsls r3, r3, #3 - 800e296: 4a2e ldr r2, [pc, #184] ; (800e350 ) - 800e298: 4413 add r3, r2 - 800e29a: 3304 adds r3, #4 - 800e29c: 4619 mov r1, r3 - 800e29e: 68f8 ldr r0, [r7, #12] - 800e2a0: f000 fb4c bl 800e93c - 800e2a4: 4603 mov r3, r0 - 800e2a6: 2b00 cmp r3, #0 - 800e2a8: d138 bne.n 800e31c + 800e288: 79fa ldrb r2, [r7, #7] + 800e28a: 4613 mov r3, r2 + 800e28c: 005b lsls r3, r3, #1 + 800e28e: 4413 add r3, r2 + 800e290: 00db lsls r3, r3, #3 + 800e292: 4a2e ldr r2, [pc, #184] ; (800e34c ) + 800e294: 4413 add r3, r2 + 800e296: 3304 adds r3, #4 + 800e298: 4619 mov r1, r3 + 800e29a: 68f8 ldr r0, [r7, #12] + 800e29c: f000 fb4c bl 800e938 + 800e2a0: 4603 mov r3, r0 + 800e2a2: 2b00 cmp r3, #0 + 800e2a4: d138 bne.n 800e318 arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1; - 800e2aa: 79fa ldrb r2, [r7, #7] - 800e2ac: 4928 ldr r1, [pc, #160] ; (800e350 ) - 800e2ae: 4613 mov r3, r2 - 800e2b0: 005b lsls r3, r3, #1 - 800e2b2: 4413 add r3, r2 - 800e2b4: 00db lsls r3, r3, #3 - 800e2b6: 440b add r3, r1 - 800e2b8: 3314 adds r3, #20 - 800e2ba: 2203 movs r2, #3 - 800e2bc: 701a strb r2, [r3, #0] - 800e2be: e02d b.n 800e31c + 800e2a6: 79fa ldrb r2, [r7, #7] + 800e2a8: 4928 ldr r1, [pc, #160] ; (800e34c ) + 800e2aa: 4613 mov r3, r2 + 800e2ac: 005b lsls r3, r3, #1 + 800e2ae: 4413 add r3, r2 + 800e2b0: 00db lsls r3, r3, #3 + 800e2b2: 440b add r3, r1 + 800e2b4: 3314 adds r3, #20 + 800e2b6: 2203 movs r2, #3 + 800e2b8: 701a strb r2, [r3, #0] + 800e2ba: e02d b.n 800e318 } } else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) { - 800e2c0: 79fa ldrb r2, [r7, #7] - 800e2c2: 4923 ldr r1, [pc, #140] ; (800e350 ) - 800e2c4: 4613 mov r3, r2 - 800e2c6: 005b lsls r3, r3, #1 - 800e2c8: 4413 add r3, r2 - 800e2ca: 00db lsls r3, r3, #3 - 800e2cc: 440b add r3, r1 - 800e2ce: 3312 adds r3, #18 - 800e2d0: 881b ldrh r3, [r3, #0] - 800e2d2: f5b3 7f87 cmp.w r3, #270 ; 0x10e - 800e2d6: d321 bcc.n 800e31c + 800e2bc: 79fa ldrb r2, [r7, #7] + 800e2be: 4923 ldr r1, [pc, #140] ; (800e34c ) + 800e2c0: 4613 mov r3, r2 + 800e2c2: 005b lsls r3, r3, #1 + 800e2c4: 4413 add r3, r2 + 800e2c6: 00db lsls r3, r3, #3 + 800e2c8: 440b add r3, r1 + 800e2ca: 3312 adds r3, #18 + 800e2cc: 881b ldrh r3, [r3, #0] + 800e2ce: f5b3 7f87 cmp.w r3, #270 ; 0x10e + 800e2d2: d321 bcc.n 800e318 /* issue a unicast request (for 15 seconds) to prevent unnecessary broadcast */ if (etharp_request_dst(netif, &arp_table[arp_idx].ipaddr, &arp_table[arp_idx].ethaddr) == ERR_OK) { - 800e2d8: 79fa ldrb r2, [r7, #7] - 800e2da: 4613 mov r3, r2 - 800e2dc: 005b lsls r3, r3, #1 - 800e2de: 4413 add r3, r2 - 800e2e0: 00db lsls r3, r3, #3 - 800e2e2: 4a1b ldr r2, [pc, #108] ; (800e350 ) - 800e2e4: 4413 add r3, r2 - 800e2e6: 1d19 adds r1, r3, #4 - 800e2e8: 79fa ldrb r2, [r7, #7] - 800e2ea: 4613 mov r3, r2 - 800e2ec: 005b lsls r3, r3, #1 - 800e2ee: 4413 add r3, r2 - 800e2f0: 00db lsls r3, r3, #3 - 800e2f2: 3308 adds r3, #8 - 800e2f4: 4a16 ldr r2, [pc, #88] ; (800e350 ) - 800e2f6: 4413 add r3, r2 - 800e2f8: 3304 adds r3, #4 - 800e2fa: 461a mov r2, r3 - 800e2fc: 68f8 ldr r0, [r7, #12] - 800e2fe: f000 fafb bl 800e8f8 - 800e302: 4603 mov r3, r0 - 800e304: 2b00 cmp r3, #0 - 800e306: d109 bne.n 800e31c + 800e2d4: 79fa ldrb r2, [r7, #7] + 800e2d6: 4613 mov r3, r2 + 800e2d8: 005b lsls r3, r3, #1 + 800e2da: 4413 add r3, r2 + 800e2dc: 00db lsls r3, r3, #3 + 800e2de: 4a1b ldr r2, [pc, #108] ; (800e34c ) + 800e2e0: 4413 add r3, r2 + 800e2e2: 1d19 adds r1, r3, #4 + 800e2e4: 79fa ldrb r2, [r7, #7] + 800e2e6: 4613 mov r3, r2 + 800e2e8: 005b lsls r3, r3, #1 + 800e2ea: 4413 add r3, r2 + 800e2ec: 00db lsls r3, r3, #3 + 800e2ee: 3308 adds r3, #8 + 800e2f0: 4a16 ldr r2, [pc, #88] ; (800e34c ) + 800e2f2: 4413 add r3, r2 + 800e2f4: 3304 adds r3, #4 + 800e2f6: 461a mov r2, r3 + 800e2f8: 68f8 ldr r0, [r7, #12] + 800e2fa: f000 fafb bl 800e8f4 + 800e2fe: 4603 mov r3, r0 + 800e300: 2b00 cmp r3, #0 + 800e302: d109 bne.n 800e318 arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1; - 800e308: 79fa ldrb r2, [r7, #7] - 800e30a: 4911 ldr r1, [pc, #68] ; (800e350 ) - 800e30c: 4613 mov r3, r2 - 800e30e: 005b lsls r3, r3, #1 - 800e310: 4413 add r3, r2 - 800e312: 00db lsls r3, r3, #3 - 800e314: 440b add r3, r1 - 800e316: 3314 adds r3, #20 - 800e318: 2203 movs r2, #3 - 800e31a: 701a strb r2, [r3, #0] + 800e304: 79fa ldrb r2, [r7, #7] + 800e306: 4911 ldr r1, [pc, #68] ; (800e34c ) + 800e308: 4613 mov r3, r2 + 800e30a: 005b lsls r3, r3, #1 + 800e30c: 4413 add r3, r2 + 800e30e: 00db lsls r3, r3, #3 + 800e310: 440b add r3, r1 + 800e312: 3314 adds r3, #20 + 800e314: 2203 movs r2, #3 + 800e316: 701a strb r2, [r3, #0] } } } return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP); - 800e31c: 68fb ldr r3, [r7, #12] - 800e31e: f103 012a add.w r1, r3, #42 ; 0x2a - 800e322: 79fa ldrb r2, [r7, #7] - 800e324: 4613 mov r3, r2 - 800e326: 005b lsls r3, r3, #1 - 800e328: 4413 add r3, r2 - 800e32a: 00db lsls r3, r3, #3 - 800e32c: 3308 adds r3, #8 - 800e32e: 4a08 ldr r2, [pc, #32] ; (800e350 ) - 800e330: 4413 add r3, r2 - 800e332: 3304 adds r3, #4 - 800e334: f44f 6200 mov.w r2, #2048 ; 0x800 - 800e338: 9200 str r2, [sp, #0] - 800e33a: 460a mov r2, r1 - 800e33c: 68b9 ldr r1, [r7, #8] - 800e33e: 68f8 ldr r0, [r7, #12] - 800e340: f001 ff9c bl 801027c - 800e344: 4603 mov r3, r0 + 800e318: 68fb ldr r3, [r7, #12] + 800e31a: f103 012a add.w r1, r3, #42 ; 0x2a + 800e31e: 79fa ldrb r2, [r7, #7] + 800e320: 4613 mov r3, r2 + 800e322: 005b lsls r3, r3, #1 + 800e324: 4413 add r3, r2 + 800e326: 00db lsls r3, r3, #3 + 800e328: 3308 adds r3, #8 + 800e32a: 4a08 ldr r2, [pc, #32] ; (800e34c ) + 800e32c: 4413 add r3, r2 + 800e32e: 3304 adds r3, #4 + 800e330: f44f 6200 mov.w r2, #2048 ; 0x800 + 800e334: 9200 str r2, [sp, #0] + 800e336: 460a mov r2, r1 + 800e338: 68b9 ldr r1, [r7, #8] + 800e33a: 68f8 ldr r0, [r7, #12] + 800e33c: f001 ff9c bl 8010278 + 800e340: 4603 mov r3, r0 } - 800e346: 4618 mov r0, r3 - 800e348: 3710 adds r7, #16 - 800e34a: 46bd mov sp, r7 - 800e34c: bd80 pop {r7, pc} - 800e34e: bf00 nop - 800e350: 20008c94 .word 0x20008c94 - 800e354: 080175ac .word 0x080175ac - 800e358: 0801771c .word 0x0801771c - 800e35c: 08017624 .word 0x08017624 + 800e342: 4618 mov r0, r3 + 800e344: 3710 adds r7, #16 + 800e346: 46bd mov sp, r7 + 800e348: bd80 pop {r7, pc} + 800e34a: bf00 nop + 800e34c: 20008c94 .word 0x20008c94 + 800e350: 080175ac .word 0x080175ac + 800e354: 0801771c .word 0x0801771c + 800e358: 08017624 .word 0x08017624 -0800e360 : +0800e35c : * - ERR_RTE No route to destination (no gateway to external networks), * or the return type of either etharp_query() or ethernet_output(). */ err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr) { - 800e360: b580 push {r7, lr} - 800e362: b08a sub sp, #40 ; 0x28 - 800e364: af02 add r7, sp, #8 - 800e366: 60f8 str r0, [r7, #12] - 800e368: 60b9 str r1, [r7, #8] - 800e36a: 607a str r2, [r7, #4] + 800e35c: b580 push {r7, lr} + 800e35e: b08a sub sp, #40 ; 0x28 + 800e360: af02 add r7, sp, #8 + 800e362: 60f8 str r0, [r7, #12] + 800e364: 60b9 str r1, [r7, #8] + 800e366: 607a str r2, [r7, #4] const struct eth_addr *dest; struct eth_addr mcastaddr; const ip4_addr_t *dst_addr = ipaddr; - 800e36c: 687b ldr r3, [r7, #4] - 800e36e: 61bb str r3, [r7, #24] + 800e368: 687b ldr r3, [r7, #4] + 800e36a: 61bb str r3, [r7, #24] LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("netif != NULL", netif != NULL); - 800e370: 68fb ldr r3, [r7, #12] - 800e372: 2b00 cmp r3, #0 - 800e374: d106 bne.n 800e384 - 800e376: 4b73 ldr r3, [pc, #460] ; (800e544 ) - 800e378: f240 321e movw r2, #798 ; 0x31e - 800e37c: 4972 ldr r1, [pc, #456] ; (800e548 ) - 800e37e: 4873 ldr r0, [pc, #460] ; (800e54c ) - 800e380: f002 f828 bl 80103d4 + 800e36c: 68fb ldr r3, [r7, #12] + 800e36e: 2b00 cmp r3, #0 + 800e370: d106 bne.n 800e380 + 800e372: 4b73 ldr r3, [pc, #460] ; (800e540 ) + 800e374: f240 321e movw r2, #798 ; 0x31e + 800e378: 4972 ldr r1, [pc, #456] ; (800e544 ) + 800e37a: 4873 ldr r0, [pc, #460] ; (800e548 ) + 800e37c: f002 f828 bl 80103d0 LWIP_ASSERT("q != NULL", q != NULL); - 800e384: 68bb ldr r3, [r7, #8] - 800e386: 2b00 cmp r3, #0 - 800e388: d106 bne.n 800e398 - 800e38a: 4b6e ldr r3, [pc, #440] ; (800e544 ) - 800e38c: f240 321f movw r2, #799 ; 0x31f - 800e390: 496f ldr r1, [pc, #444] ; (800e550 ) - 800e392: 486e ldr r0, [pc, #440] ; (800e54c ) - 800e394: f002 f81e bl 80103d4 + 800e380: 68bb ldr r3, [r7, #8] + 800e382: 2b00 cmp r3, #0 + 800e384: d106 bne.n 800e394 + 800e386: 4b6e ldr r3, [pc, #440] ; (800e540 ) + 800e388: f240 321f movw r2, #799 ; 0x31f + 800e38c: 496f ldr r1, [pc, #444] ; (800e54c ) + 800e38e: 486e ldr r0, [pc, #440] ; (800e548 ) + 800e390: f002 f81e bl 80103d0 LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL); - 800e398: 687b ldr r3, [r7, #4] - 800e39a: 2b00 cmp r3, #0 - 800e39c: d106 bne.n 800e3ac - 800e39e: 4b69 ldr r3, [pc, #420] ; (800e544 ) - 800e3a0: f44f 7248 mov.w r2, #800 ; 0x320 - 800e3a4: 496b ldr r1, [pc, #428] ; (800e554 ) - 800e3a6: 4869 ldr r0, [pc, #420] ; (800e54c ) - 800e3a8: f002 f814 bl 80103d4 + 800e394: 687b ldr r3, [r7, #4] + 800e396: 2b00 cmp r3, #0 + 800e398: d106 bne.n 800e3a8 + 800e39a: 4b69 ldr r3, [pc, #420] ; (800e540 ) + 800e39c: f44f 7248 mov.w r2, #800 ; 0x320 + 800e3a0: 496b ldr r1, [pc, #428] ; (800e550 ) + 800e3a2: 4869 ldr r0, [pc, #420] ; (800e548 ) + 800e3a4: f002 f814 bl 80103d0 /* Determine on destination hardware address. Broadcasts and multicasts * are special, other IP addresses are looked up in the ARP table. */ /* broadcast destination IP address? */ if (ip4_addr_isbroadcast(ipaddr, netif)) { - 800e3ac: 687b ldr r3, [r7, #4] - 800e3ae: 681b ldr r3, [r3, #0] - 800e3b0: 68f9 ldr r1, [r7, #12] - 800e3b2: 4618 mov r0, r3 - 800e3b4: f000 ff16 bl 800f1e4 - 800e3b8: 4603 mov r3, r0 - 800e3ba: 2b00 cmp r3, #0 - 800e3bc: d002 beq.n 800e3c4 + 800e3a8: 687b ldr r3, [r7, #4] + 800e3aa: 681b ldr r3, [r3, #0] + 800e3ac: 68f9 ldr r1, [r7, #12] + 800e3ae: 4618 mov r0, r3 + 800e3b0: f000 ff16 bl 800f1e0 + 800e3b4: 4603 mov r3, r0 + 800e3b6: 2b00 cmp r3, #0 + 800e3b8: d002 beq.n 800e3c0 /* broadcast on Ethernet also */ dest = (const struct eth_addr *)ðbroadcast; - 800e3be: 4b66 ldr r3, [pc, #408] ; (800e558 ) - 800e3c0: 61fb str r3, [r7, #28] - 800e3c2: e0af b.n 800e524 + 800e3ba: 4b66 ldr r3, [pc, #408] ; (800e554 ) + 800e3bc: 61fb str r3, [r7, #28] + 800e3be: e0af b.n 800e520 /* multicast destination IP address? */ } else if (ip4_addr_ismulticast(ipaddr)) { - 800e3c4: 687b ldr r3, [r7, #4] - 800e3c6: 681b ldr r3, [r3, #0] - 800e3c8: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 800e3cc: 2be0 cmp r3, #224 ; 0xe0 - 800e3ce: d118 bne.n 800e402 + 800e3c0: 687b ldr r3, [r7, #4] + 800e3c2: 681b ldr r3, [r3, #0] + 800e3c4: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800e3c8: 2be0 cmp r3, #224 ; 0xe0 + 800e3ca: d118 bne.n 800e3fe /* Hash IP multicast address to MAC address.*/ mcastaddr.addr[0] = LL_IP4_MULTICAST_ADDR_0; - 800e3d0: 2301 movs r3, #1 - 800e3d2: 743b strb r3, [r7, #16] + 800e3cc: 2301 movs r3, #1 + 800e3ce: 743b strb r3, [r7, #16] mcastaddr.addr[1] = LL_IP4_MULTICAST_ADDR_1; - 800e3d4: 2300 movs r3, #0 - 800e3d6: 747b strb r3, [r7, #17] + 800e3d0: 2300 movs r3, #0 + 800e3d2: 747b strb r3, [r7, #17] mcastaddr.addr[2] = LL_IP4_MULTICAST_ADDR_2; - 800e3d8: 235e movs r3, #94 ; 0x5e - 800e3da: 74bb strb r3, [r7, #18] + 800e3d4: 235e movs r3, #94 ; 0x5e + 800e3d6: 74bb strb r3, [r7, #18] mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f; - 800e3dc: 687b ldr r3, [r7, #4] - 800e3de: 3301 adds r3, #1 - 800e3e0: 781b ldrb r3, [r3, #0] - 800e3e2: f003 037f and.w r3, r3, #127 ; 0x7f - 800e3e6: b2db uxtb r3, r3 - 800e3e8: 74fb strb r3, [r7, #19] + 800e3d8: 687b ldr r3, [r7, #4] + 800e3da: 3301 adds r3, #1 + 800e3dc: 781b ldrb r3, [r3, #0] + 800e3de: f003 037f and.w r3, r3, #127 ; 0x7f + 800e3e2: b2db uxtb r3, r3 + 800e3e4: 74fb strb r3, [r7, #19] mcastaddr.addr[4] = ip4_addr3(ipaddr); - 800e3ea: 687b ldr r3, [r7, #4] - 800e3ec: 3302 adds r3, #2 - 800e3ee: 781b ldrb r3, [r3, #0] - 800e3f0: 753b strb r3, [r7, #20] + 800e3e6: 687b ldr r3, [r7, #4] + 800e3e8: 3302 adds r3, #2 + 800e3ea: 781b ldrb r3, [r3, #0] + 800e3ec: 753b strb r3, [r7, #20] mcastaddr.addr[5] = ip4_addr4(ipaddr); - 800e3f2: 687b ldr r3, [r7, #4] - 800e3f4: 3303 adds r3, #3 - 800e3f6: 781b ldrb r3, [r3, #0] - 800e3f8: 757b strb r3, [r7, #21] + 800e3ee: 687b ldr r3, [r7, #4] + 800e3f0: 3303 adds r3, #3 + 800e3f2: 781b ldrb r3, [r3, #0] + 800e3f4: 757b strb r3, [r7, #21] /* destination Ethernet address is multicast */ dest = &mcastaddr; - 800e3fa: f107 0310 add.w r3, r7, #16 - 800e3fe: 61fb str r3, [r7, #28] - 800e400: e090 b.n 800e524 + 800e3f6: f107 0310 add.w r3, r7, #16 + 800e3fa: 61fb str r3, [r7, #28] + 800e3fc: e090 b.n 800e520 /* unicast destination IP address? */ } else { netif_addr_idx_t i; /* outside local network? if so, this can neither be a global broadcast nor a subnet broadcast. */ if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) && - 800e402: 687b ldr r3, [r7, #4] - 800e404: 681a ldr r2, [r3, #0] - 800e406: 68fb ldr r3, [r7, #12] - 800e408: 3304 adds r3, #4 - 800e40a: 681b ldr r3, [r3, #0] - 800e40c: 405a eors r2, r3 - 800e40e: 68fb ldr r3, [r7, #12] - 800e410: 3308 adds r3, #8 - 800e412: 681b ldr r3, [r3, #0] - 800e414: 4013 ands r3, r2 - 800e416: 2b00 cmp r3, #0 - 800e418: d012 beq.n 800e440 + 800e3fe: 687b ldr r3, [r7, #4] + 800e400: 681a ldr r2, [r3, #0] + 800e402: 68fb ldr r3, [r7, #12] + 800e404: 3304 adds r3, #4 + 800e406: 681b ldr r3, [r3, #0] + 800e408: 405a eors r2, r3 + 800e40a: 68fb ldr r3, [r7, #12] + 800e40c: 3308 adds r3, #8 + 800e40e: 681b ldr r3, [r3, #0] + 800e410: 4013 ands r3, r2 + 800e412: 2b00 cmp r3, #0 + 800e414: d012 beq.n 800e43c !ip4_addr_islinklocal(ipaddr)) { - 800e41a: 687b ldr r3, [r7, #4] - 800e41c: 681b ldr r3, [r3, #0] - 800e41e: b29b uxth r3, r3 + 800e416: 687b ldr r3, [r7, #4] + 800e418: 681b ldr r3, [r3, #0] + 800e41a: b29b uxth r3, r3 if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) && - 800e420: f64f 62a9 movw r2, #65193 ; 0xfea9 - 800e424: 4293 cmp r3, r2 - 800e426: d00b beq.n 800e440 + 800e41c: f64f 62a9 movw r2, #65193 ; 0xfea9 + 800e420: 4293 cmp r3, r2 + 800e422: d00b beq.n 800e43c dst_addr = LWIP_HOOK_ETHARP_GET_GW(netif, ipaddr); if (dst_addr == NULL) #endif /* LWIP_HOOK_ETHARP_GET_GW */ { /* interface has default gateway? */ if (!ip4_addr_isany_val(*netif_ip4_gw(netif))) { - 800e428: 68fb ldr r3, [r7, #12] - 800e42a: 330c adds r3, #12 - 800e42c: 681b ldr r3, [r3, #0] - 800e42e: 2b00 cmp r3, #0 - 800e430: d003 beq.n 800e43a + 800e424: 68fb ldr r3, [r7, #12] + 800e426: 330c adds r3, #12 + 800e428: 681b ldr r3, [r3, #0] + 800e42a: 2b00 cmp r3, #0 + 800e42c: d003 beq.n 800e436 /* send to hardware address of default gateway IP address */ dst_addr = netif_ip4_gw(netif); - 800e432: 68fb ldr r3, [r7, #12] - 800e434: 330c adds r3, #12 - 800e436: 61bb str r3, [r7, #24] - 800e438: e002 b.n 800e440 + 800e42e: 68fb ldr r3, [r7, #12] + 800e430: 330c adds r3, #12 + 800e432: 61bb str r3, [r7, #24] + 800e434: e002 b.n 800e43c /* no default gateway available */ } else { /* no route to destination error (default gateway missing) */ return ERR_RTE; - 800e43a: f06f 0303 mvn.w r3, #3 - 800e43e: e07d b.n 800e53c + 800e436: f06f 0303 mvn.w r3, #3 + 800e43a: e07d b.n 800e538 if (netif->hints != NULL) { /* per-pcb cached entry was given */ netif_addr_idx_t etharp_cached_entry = netif->hints->addr_hint; if (etharp_cached_entry < ARP_TABLE_SIZE) { #endif /* LWIP_NETIF_HWADDRHINT */ if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) && - 800e440: 4b46 ldr r3, [pc, #280] ; (800e55c ) - 800e442: 781b ldrb r3, [r3, #0] - 800e444: 4619 mov r1, r3 - 800e446: 4a46 ldr r2, [pc, #280] ; (800e560 ) - 800e448: 460b mov r3, r1 - 800e44a: 005b lsls r3, r3, #1 - 800e44c: 440b add r3, r1 - 800e44e: 00db lsls r3, r3, #3 - 800e450: 4413 add r3, r2 - 800e452: 3314 adds r3, #20 - 800e454: 781b ldrb r3, [r3, #0] - 800e456: 2b01 cmp r3, #1 - 800e458: d925 bls.n 800e4a6 + 800e43c: 4b46 ldr r3, [pc, #280] ; (800e558 ) + 800e43e: 781b ldrb r3, [r3, #0] + 800e440: 4619 mov r1, r3 + 800e442: 4a46 ldr r2, [pc, #280] ; (800e55c ) + 800e444: 460b mov r3, r1 + 800e446: 005b lsls r3, r3, #1 + 800e448: 440b add r3, r1 + 800e44a: 00db lsls r3, r3, #3 + 800e44c: 4413 add r3, r2 + 800e44e: 3314 adds r3, #20 + 800e450: 781b ldrb r3, [r3, #0] + 800e452: 2b01 cmp r3, #1 + 800e454: d925 bls.n 800e4a2 #if ETHARP_TABLE_MATCH_NETIF (arp_table[etharp_cached_entry].netif == netif) && - 800e45a: 4b40 ldr r3, [pc, #256] ; (800e55c ) - 800e45c: 781b ldrb r3, [r3, #0] - 800e45e: 4619 mov r1, r3 - 800e460: 4a3f ldr r2, [pc, #252] ; (800e560 ) - 800e462: 460b mov r3, r1 - 800e464: 005b lsls r3, r3, #1 - 800e466: 440b add r3, r1 - 800e468: 00db lsls r3, r3, #3 - 800e46a: 4413 add r3, r2 - 800e46c: 3308 adds r3, #8 - 800e46e: 681b ldr r3, [r3, #0] + 800e456: 4b40 ldr r3, [pc, #256] ; (800e558 ) + 800e458: 781b ldrb r3, [r3, #0] + 800e45a: 4619 mov r1, r3 + 800e45c: 4a3f ldr r2, [pc, #252] ; (800e55c ) + 800e45e: 460b mov r3, r1 + 800e460: 005b lsls r3, r3, #1 + 800e462: 440b add r3, r1 + 800e464: 00db lsls r3, r3, #3 + 800e466: 4413 add r3, r2 + 800e468: 3308 adds r3, #8 + 800e46a: 681b ldr r3, [r3, #0] if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) && - 800e470: 68fa ldr r2, [r7, #12] - 800e472: 429a cmp r2, r3 - 800e474: d117 bne.n 800e4a6 + 800e46c: 68fa ldr r2, [r7, #12] + 800e46e: 429a cmp r2, r3 + 800e470: d117 bne.n 800e4a2 #endif (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) { - 800e476: 69bb ldr r3, [r7, #24] - 800e478: 681a ldr r2, [r3, #0] - 800e47a: 4b38 ldr r3, [pc, #224] ; (800e55c ) - 800e47c: 781b ldrb r3, [r3, #0] - 800e47e: 4618 mov r0, r3 - 800e480: 4937 ldr r1, [pc, #220] ; (800e560 ) - 800e482: 4603 mov r3, r0 - 800e484: 005b lsls r3, r3, #1 - 800e486: 4403 add r3, r0 - 800e488: 00db lsls r3, r3, #3 - 800e48a: 440b add r3, r1 - 800e48c: 3304 adds r3, #4 - 800e48e: 681b ldr r3, [r3, #0] + 800e472: 69bb ldr r3, [r7, #24] + 800e474: 681a ldr r2, [r3, #0] + 800e476: 4b38 ldr r3, [pc, #224] ; (800e558 ) + 800e478: 781b ldrb r3, [r3, #0] + 800e47a: 4618 mov r0, r3 + 800e47c: 4937 ldr r1, [pc, #220] ; (800e55c ) + 800e47e: 4603 mov r3, r0 + 800e480: 005b lsls r3, r3, #1 + 800e482: 4403 add r3, r0 + 800e484: 00db lsls r3, r3, #3 + 800e486: 440b add r3, r1 + 800e488: 3304 adds r3, #4 + 800e48a: 681b ldr r3, [r3, #0] (arp_table[etharp_cached_entry].netif == netif) && - 800e490: 429a cmp r2, r3 - 800e492: d108 bne.n 800e4a6 + 800e48c: 429a cmp r2, r3 + 800e48e: d108 bne.n 800e4a2 /* the per-pcb-cached entry is stable and the right one! */ ETHARP_STATS_INC(etharp.cachehit); return etharp_output_to_arp_index(netif, q, etharp_cached_entry); - 800e494: 4b31 ldr r3, [pc, #196] ; (800e55c ) - 800e496: 781b ldrb r3, [r3, #0] - 800e498: 461a mov r2, r3 - 800e49a: 68b9 ldr r1, [r7, #8] - 800e49c: 68f8 ldr r0, [r7, #12] - 800e49e: f7ff fec5 bl 800e22c - 800e4a2: 4603 mov r3, r0 - 800e4a4: e04a b.n 800e53c + 800e490: 4b31 ldr r3, [pc, #196] ; (800e558 ) + 800e492: 781b ldrb r3, [r3, #0] + 800e494: 461a mov r2, r3 + 800e496: 68b9 ldr r1, [r7, #8] + 800e498: 68f8 ldr r0, [r7, #12] + 800e49a: f7ff fec5 bl 800e228 + 800e49e: 4603 mov r3, r0 + 800e4a0: e04a b.n 800e538 } #endif /* LWIP_NETIF_HWADDRHINT */ /* find stable entry: do this here since this is a critical path for throughput and etharp_find_entry() is kind of slow */ for (i = 0; i < ARP_TABLE_SIZE; i++) { - 800e4a6: 2300 movs r3, #0 - 800e4a8: 75fb strb r3, [r7, #23] - 800e4aa: e031 b.n 800e510 + 800e4a2: 2300 movs r3, #0 + 800e4a4: 75fb strb r3, [r7, #23] + 800e4a6: e031 b.n 800e50c if ((arp_table[i].state >= ETHARP_STATE_STABLE) && - 800e4ac: 7dfa ldrb r2, [r7, #23] - 800e4ae: 492c ldr r1, [pc, #176] ; (800e560 ) - 800e4b0: 4613 mov r3, r2 - 800e4b2: 005b lsls r3, r3, #1 - 800e4b4: 4413 add r3, r2 - 800e4b6: 00db lsls r3, r3, #3 - 800e4b8: 440b add r3, r1 - 800e4ba: 3314 adds r3, #20 - 800e4bc: 781b ldrb r3, [r3, #0] - 800e4be: 2b01 cmp r3, #1 - 800e4c0: d923 bls.n 800e50a + 800e4a8: 7dfa ldrb r2, [r7, #23] + 800e4aa: 492c ldr r1, [pc, #176] ; (800e55c ) + 800e4ac: 4613 mov r3, r2 + 800e4ae: 005b lsls r3, r3, #1 + 800e4b0: 4413 add r3, r2 + 800e4b2: 00db lsls r3, r3, #3 + 800e4b4: 440b add r3, r1 + 800e4b6: 3314 adds r3, #20 + 800e4b8: 781b ldrb r3, [r3, #0] + 800e4ba: 2b01 cmp r3, #1 + 800e4bc: d923 bls.n 800e506 #if ETHARP_TABLE_MATCH_NETIF (arp_table[i].netif == netif) && - 800e4c2: 7dfa ldrb r2, [r7, #23] - 800e4c4: 4926 ldr r1, [pc, #152] ; (800e560 ) - 800e4c6: 4613 mov r3, r2 - 800e4c8: 005b lsls r3, r3, #1 - 800e4ca: 4413 add r3, r2 - 800e4cc: 00db lsls r3, r3, #3 - 800e4ce: 440b add r3, r1 - 800e4d0: 3308 adds r3, #8 - 800e4d2: 681b ldr r3, [r3, #0] + 800e4be: 7dfa ldrb r2, [r7, #23] + 800e4c0: 4926 ldr r1, [pc, #152] ; (800e55c ) + 800e4c2: 4613 mov r3, r2 + 800e4c4: 005b lsls r3, r3, #1 + 800e4c6: 4413 add r3, r2 + 800e4c8: 00db lsls r3, r3, #3 + 800e4ca: 440b add r3, r1 + 800e4cc: 3308 adds r3, #8 + 800e4ce: 681b ldr r3, [r3, #0] if ((arp_table[i].state >= ETHARP_STATE_STABLE) && - 800e4d4: 68fa ldr r2, [r7, #12] - 800e4d6: 429a cmp r2, r3 - 800e4d8: d117 bne.n 800e50a + 800e4d0: 68fa ldr r2, [r7, #12] + 800e4d2: 429a cmp r2, r3 + 800e4d4: d117 bne.n 800e506 #endif (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) { - 800e4da: 69bb ldr r3, [r7, #24] - 800e4dc: 6819 ldr r1, [r3, #0] - 800e4de: 7dfa ldrb r2, [r7, #23] - 800e4e0: 481f ldr r0, [pc, #124] ; (800e560 ) - 800e4e2: 4613 mov r3, r2 - 800e4e4: 005b lsls r3, r3, #1 - 800e4e6: 4413 add r3, r2 - 800e4e8: 00db lsls r3, r3, #3 - 800e4ea: 4403 add r3, r0 - 800e4ec: 3304 adds r3, #4 - 800e4ee: 681b ldr r3, [r3, #0] + 800e4d6: 69bb ldr r3, [r7, #24] + 800e4d8: 6819 ldr r1, [r3, #0] + 800e4da: 7dfa ldrb r2, [r7, #23] + 800e4dc: 481f ldr r0, [pc, #124] ; (800e55c ) + 800e4de: 4613 mov r3, r2 + 800e4e0: 005b lsls r3, r3, #1 + 800e4e2: 4413 add r3, r2 + 800e4e4: 00db lsls r3, r3, #3 + 800e4e6: 4403 add r3, r0 + 800e4e8: 3304 adds r3, #4 + 800e4ea: 681b ldr r3, [r3, #0] (arp_table[i].netif == netif) && - 800e4f0: 4299 cmp r1, r3 - 800e4f2: d10a bne.n 800e50a + 800e4ec: 4299 cmp r1, r3 + 800e4ee: d10a bne.n 800e506 /* found an existing, stable entry */ ETHARP_SET_ADDRHINT(netif, i); - 800e4f4: 4a19 ldr r2, [pc, #100] ; (800e55c ) - 800e4f6: 7dfb ldrb r3, [r7, #23] - 800e4f8: 7013 strb r3, [r2, #0] + 800e4f0: 4a19 ldr r2, [pc, #100] ; (800e558 ) + 800e4f2: 7dfb ldrb r3, [r7, #23] + 800e4f4: 7013 strb r3, [r2, #0] return etharp_output_to_arp_index(netif, q, i); - 800e4fa: 7dfb ldrb r3, [r7, #23] - 800e4fc: 461a mov r2, r3 - 800e4fe: 68b9 ldr r1, [r7, #8] - 800e500: 68f8 ldr r0, [r7, #12] - 800e502: f7ff fe93 bl 800e22c - 800e506: 4603 mov r3, r0 - 800e508: e018 b.n 800e53c + 800e4f6: 7dfb ldrb r3, [r7, #23] + 800e4f8: 461a mov r2, r3 + 800e4fa: 68b9 ldr r1, [r7, #8] + 800e4fc: 68f8 ldr r0, [r7, #12] + 800e4fe: f7ff fe93 bl 800e228 + 800e502: 4603 mov r3, r0 + 800e504: e018 b.n 800e538 for (i = 0; i < ARP_TABLE_SIZE; i++) { - 800e50a: 7dfb ldrb r3, [r7, #23] - 800e50c: 3301 adds r3, #1 - 800e50e: 75fb strb r3, [r7, #23] - 800e510: 7dfb ldrb r3, [r7, #23] - 800e512: 2b09 cmp r3, #9 - 800e514: d9ca bls.n 800e4ac + 800e506: 7dfb ldrb r3, [r7, #23] + 800e508: 3301 adds r3, #1 + 800e50a: 75fb strb r3, [r7, #23] + 800e50c: 7dfb ldrb r3, [r7, #23] + 800e50e: 2b09 cmp r3, #9 + 800e510: d9ca bls.n 800e4a8 } } /* no stable entry found, use the (slower) query function: queue on destination Ethernet address belonging to ipaddr */ return etharp_query(netif, dst_addr, q); - 800e516: 68ba ldr r2, [r7, #8] - 800e518: 69b9 ldr r1, [r7, #24] - 800e51a: 68f8 ldr r0, [r7, #12] - 800e51c: f000 f822 bl 800e564 - 800e520: 4603 mov r3, r0 - 800e522: e00b b.n 800e53c + 800e512: 68ba ldr r2, [r7, #8] + 800e514: 69b9 ldr r1, [r7, #24] + 800e516: 68f8 ldr r0, [r7, #12] + 800e518: f000 f822 bl 800e560 + 800e51c: 4603 mov r3, r0 + 800e51e: e00b b.n 800e538 } /* continuation for multicast/broadcast destinations */ /* obtain source Ethernet address of the given interface */ /* send packet directly on the link */ return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), dest, ETHTYPE_IP); - 800e524: 68fb ldr r3, [r7, #12] - 800e526: f103 022a add.w r2, r3, #42 ; 0x2a - 800e52a: f44f 6300 mov.w r3, #2048 ; 0x800 - 800e52e: 9300 str r3, [sp, #0] - 800e530: 69fb ldr r3, [r7, #28] - 800e532: 68b9 ldr r1, [r7, #8] - 800e534: 68f8 ldr r0, [r7, #12] - 800e536: f001 fea1 bl 801027c - 800e53a: 4603 mov r3, r0 + 800e520: 68fb ldr r3, [r7, #12] + 800e522: f103 022a add.w r2, r3, #42 ; 0x2a + 800e526: f44f 6300 mov.w r3, #2048 ; 0x800 + 800e52a: 9300 str r3, [sp, #0] + 800e52c: 69fb ldr r3, [r7, #28] + 800e52e: 68b9 ldr r1, [r7, #8] + 800e530: 68f8 ldr r0, [r7, #12] + 800e532: f001 fea1 bl 8010278 + 800e536: 4603 mov r3, r0 } - 800e53c: 4618 mov r0, r3 - 800e53e: 3720 adds r7, #32 - 800e540: 46bd mov sp, r7 - 800e542: bd80 pop {r7, pc} - 800e544: 080175ac .word 0x080175ac - 800e548: 080176fc .word 0x080176fc - 800e54c: 08017624 .word 0x08017624 - 800e550: 0801774c .word 0x0801774c - 800e554: 080176ec .word 0x080176ec - 800e558: 08017de4 .word 0x08017de4 - 800e55c: 20008d84 .word 0x20008d84 - 800e560: 20008c94 .word 0x20008c94 + 800e538: 4618 mov r0, r3 + 800e53a: 3720 adds r7, #32 + 800e53c: 46bd mov sp, r7 + 800e53e: bd80 pop {r7, pc} + 800e540: 080175ac .word 0x080175ac + 800e544: 080176fc .word 0x080176fc + 800e548: 08017624 .word 0x08017624 + 800e54c: 0801774c .word 0x0801774c + 800e550: 080176ec .word 0x080176ec + 800e554: 08017de4 .word 0x08017de4 + 800e558: 20008d84 .word 0x20008d84 + 800e55c: 20008c94 .word 0x20008c94 -0800e564 : +0800e560 : * - ERR_ARG Non-unicast address given, those will not appear in ARP cache. * */ err_t etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q) { - 800e564: b580 push {r7, lr} - 800e566: b08c sub sp, #48 ; 0x30 - 800e568: af02 add r7, sp, #8 - 800e56a: 60f8 str r0, [r7, #12] - 800e56c: 60b9 str r1, [r7, #8] - 800e56e: 607a str r2, [r7, #4] + 800e560: b580 push {r7, lr} + 800e562: b08c sub sp, #48 ; 0x30 + 800e564: af02 add r7, sp, #8 + 800e566: 60f8 str r0, [r7, #12] + 800e568: 60b9 str r1, [r7, #8] + 800e56a: 607a str r2, [r7, #4] struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr; - 800e570: 68fb ldr r3, [r7, #12] - 800e572: 332a adds r3, #42 ; 0x2a - 800e574: 617b str r3, [r7, #20] + 800e56c: 68fb ldr r3, [r7, #12] + 800e56e: 332a adds r3, #42 ; 0x2a + 800e570: 617b str r3, [r7, #20] err_t result = ERR_MEM; - 800e576: 23ff movs r3, #255 ; 0xff - 800e578: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800e572: 23ff movs r3, #255 ; 0xff + 800e574: f887 3027 strb.w r3, [r7, #39] ; 0x27 int is_new_entry = 0; - 800e57c: 2300 movs r3, #0 - 800e57e: 623b str r3, [r7, #32] + 800e578: 2300 movs r3, #0 + 800e57a: 623b str r3, [r7, #32] s16_t i_err; netif_addr_idx_t i; /* non-unicast address? */ if (ip4_addr_isbroadcast(ipaddr, netif) || - 800e580: 68bb ldr r3, [r7, #8] - 800e582: 681b ldr r3, [r3, #0] - 800e584: 68f9 ldr r1, [r7, #12] - 800e586: 4618 mov r0, r3 - 800e588: f000 fe2c bl 800f1e4 - 800e58c: 4603 mov r3, r0 - 800e58e: 2b00 cmp r3, #0 - 800e590: d10c bne.n 800e5ac + 800e57c: 68bb ldr r3, [r7, #8] + 800e57e: 681b ldr r3, [r3, #0] + 800e580: 68f9 ldr r1, [r7, #12] + 800e582: 4618 mov r0, r3 + 800e584: f000 fe2c bl 800f1e0 + 800e588: 4603 mov r3, r0 + 800e58a: 2b00 cmp r3, #0 + 800e58c: d10c bne.n 800e5a8 ip4_addr_ismulticast(ipaddr) || - 800e592: 68bb ldr r3, [r7, #8] - 800e594: 681b ldr r3, [r3, #0] - 800e596: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800e58e: 68bb ldr r3, [r7, #8] + 800e590: 681b ldr r3, [r3, #0] + 800e592: f003 03f0 and.w r3, r3, #240 ; 0xf0 if (ip4_addr_isbroadcast(ipaddr, netif) || - 800e59a: 2be0 cmp r3, #224 ; 0xe0 - 800e59c: d006 beq.n 800e5ac + 800e596: 2be0 cmp r3, #224 ; 0xe0 + 800e598: d006 beq.n 800e5a8 ip4_addr_ismulticast(ipaddr) || - 800e59e: 68bb ldr r3, [r7, #8] - 800e5a0: 2b00 cmp r3, #0 - 800e5a2: d003 beq.n 800e5ac + 800e59a: 68bb ldr r3, [r7, #8] + 800e59c: 2b00 cmp r3, #0 + 800e59e: d003 beq.n 800e5a8 ip4_addr_isany(ipaddr)) { - 800e5a4: 68bb ldr r3, [r7, #8] - 800e5a6: 681b ldr r3, [r3, #0] - 800e5a8: 2b00 cmp r3, #0 - 800e5aa: d102 bne.n 800e5b2 + 800e5a0: 68bb ldr r3, [r7, #8] + 800e5a2: 681b ldr r3, [r3, #0] + 800e5a4: 2b00 cmp r3, #0 + 800e5a6: d102 bne.n 800e5ae LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: will not add non-unicast IP address to ARP cache\n")); return ERR_ARG; - 800e5ac: f06f 030f mvn.w r3, #15 - 800e5b0: e101 b.n 800e7b6 + 800e5a8: f06f 030f mvn.w r3, #15 + 800e5ac: e101 b.n 800e7b2 } /* find entry in ARP cache, ask to create entry if queueing packet */ i_err = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif); - 800e5b2: 68fa ldr r2, [r7, #12] - 800e5b4: 2101 movs r1, #1 - 800e5b6: 68b8 ldr r0, [r7, #8] - 800e5b8: f7ff fb5c bl 800dc74 - 800e5bc: 4603 mov r3, r0 - 800e5be: 827b strh r3, [r7, #18] + 800e5ae: 68fa ldr r2, [r7, #12] + 800e5b0: 2101 movs r1, #1 + 800e5b2: 68b8 ldr r0, [r7, #8] + 800e5b4: f7ff fb5c bl 800dc70 + 800e5b8: 4603 mov r3, r0 + 800e5ba: 827b strh r3, [r7, #18] /* could not find or create entry? */ if (i_err < 0) { - 800e5c0: f9b7 3012 ldrsh.w r3, [r7, #18] - 800e5c4: 2b00 cmp r3, #0 - 800e5c6: da02 bge.n 800e5ce + 800e5bc: f9b7 3012 ldrsh.w r3, [r7, #18] + 800e5c0: 2b00 cmp r3, #0 + 800e5c2: da02 bge.n 800e5ca LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not create ARP entry\n")); if (q) { LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: packet dropped\n")); ETHARP_STATS_INC(etharp.memerr); } return (err_t)i_err; - 800e5c8: 8a7b ldrh r3, [r7, #18] - 800e5ca: b25b sxtb r3, r3 - 800e5cc: e0f3 b.n 800e7b6 + 800e5c4: 8a7b ldrh r3, [r7, #18] + 800e5c6: b25b sxtb r3, r3 + 800e5c8: e0f3 b.n 800e7b2 } LWIP_ASSERT("type overflow", (size_t)i_err < NETIF_ADDR_IDX_MAX); - 800e5ce: 8a7b ldrh r3, [r7, #18] - 800e5d0: 2b7e cmp r3, #126 ; 0x7e - 800e5d2: d906 bls.n 800e5e2 - 800e5d4: 4b7a ldr r3, [pc, #488] ; (800e7c0 ) - 800e5d6: f240 32c1 movw r2, #961 ; 0x3c1 - 800e5da: 497a ldr r1, [pc, #488] ; (800e7c4 ) - 800e5dc: 487a ldr r0, [pc, #488] ; (800e7c8 ) - 800e5de: f001 fef9 bl 80103d4 + 800e5ca: 8a7b ldrh r3, [r7, #18] + 800e5cc: 2b7e cmp r3, #126 ; 0x7e + 800e5ce: d906 bls.n 800e5de + 800e5d0: 4b7a ldr r3, [pc, #488] ; (800e7bc ) + 800e5d2: f240 32c1 movw r2, #961 ; 0x3c1 + 800e5d6: 497a ldr r1, [pc, #488] ; (800e7c0 ) + 800e5d8: 487a ldr r0, [pc, #488] ; (800e7c4 ) + 800e5da: f001 fef9 bl 80103d0 i = (netif_addr_idx_t)i_err; - 800e5e2: 8a7b ldrh r3, [r7, #18] - 800e5e4: 747b strb r3, [r7, #17] + 800e5de: 8a7b ldrh r3, [r7, #18] + 800e5e0: 747b strb r3, [r7, #17] /* mark a fresh entry as pending (we just sent a request) */ if (arp_table[i].state == ETHARP_STATE_EMPTY) { - 800e5e6: 7c7a ldrb r2, [r7, #17] - 800e5e8: 4978 ldr r1, [pc, #480] ; (800e7cc ) - 800e5ea: 4613 mov r3, r2 - 800e5ec: 005b lsls r3, r3, #1 - 800e5ee: 4413 add r3, r2 - 800e5f0: 00db lsls r3, r3, #3 - 800e5f2: 440b add r3, r1 - 800e5f4: 3314 adds r3, #20 - 800e5f6: 781b ldrb r3, [r3, #0] - 800e5f8: 2b00 cmp r3, #0 - 800e5fa: d115 bne.n 800e628 + 800e5e2: 7c7a ldrb r2, [r7, #17] + 800e5e4: 4978 ldr r1, [pc, #480] ; (800e7c8 ) + 800e5e6: 4613 mov r3, r2 + 800e5e8: 005b lsls r3, r3, #1 + 800e5ea: 4413 add r3, r2 + 800e5ec: 00db lsls r3, r3, #3 + 800e5ee: 440b add r3, r1 + 800e5f0: 3314 adds r3, #20 + 800e5f2: 781b ldrb r3, [r3, #0] + 800e5f4: 2b00 cmp r3, #0 + 800e5f6: d115 bne.n 800e624 is_new_entry = 1; - 800e5fc: 2301 movs r3, #1 - 800e5fe: 623b str r3, [r7, #32] + 800e5f8: 2301 movs r3, #1 + 800e5fa: 623b str r3, [r7, #32] arp_table[i].state = ETHARP_STATE_PENDING; - 800e600: 7c7a ldrb r2, [r7, #17] - 800e602: 4972 ldr r1, [pc, #456] ; (800e7cc ) - 800e604: 4613 mov r3, r2 - 800e606: 005b lsls r3, r3, #1 - 800e608: 4413 add r3, r2 - 800e60a: 00db lsls r3, r3, #3 - 800e60c: 440b add r3, r1 - 800e60e: 3314 adds r3, #20 - 800e610: 2201 movs r2, #1 - 800e612: 701a strb r2, [r3, #0] + 800e5fc: 7c7a ldrb r2, [r7, #17] + 800e5fe: 4972 ldr r1, [pc, #456] ; (800e7c8 ) + 800e600: 4613 mov r3, r2 + 800e602: 005b lsls r3, r3, #1 + 800e604: 4413 add r3, r2 + 800e606: 00db lsls r3, r3, #3 + 800e608: 440b add r3, r1 + 800e60a: 3314 adds r3, #20 + 800e60c: 2201 movs r2, #1 + 800e60e: 701a strb r2, [r3, #0] /* record network interface for re-sending arp request in etharp_tmr */ arp_table[i].netif = netif; - 800e614: 7c7a ldrb r2, [r7, #17] - 800e616: 496d ldr r1, [pc, #436] ; (800e7cc ) - 800e618: 4613 mov r3, r2 - 800e61a: 005b lsls r3, r3, #1 - 800e61c: 4413 add r3, r2 - 800e61e: 00db lsls r3, r3, #3 - 800e620: 440b add r3, r1 - 800e622: 3308 adds r3, #8 - 800e624: 68fa ldr r2, [r7, #12] - 800e626: 601a str r2, [r3, #0] + 800e610: 7c7a ldrb r2, [r7, #17] + 800e612: 496d ldr r1, [pc, #436] ; (800e7c8 ) + 800e614: 4613 mov r3, r2 + 800e616: 005b lsls r3, r3, #1 + 800e618: 4413 add r3, r2 + 800e61a: 00db lsls r3, r3, #3 + 800e61c: 440b add r3, r1 + 800e61e: 3308 adds r3, #8 + 800e620: 68fa ldr r2, [r7, #12] + 800e622: 601a str r2, [r3, #0] } /* { i is either a STABLE or (new or existing) PENDING entry } */ LWIP_ASSERT("arp_table[i].state == PENDING or STABLE", - 800e628: 7c7a ldrb r2, [r7, #17] - 800e62a: 4968 ldr r1, [pc, #416] ; (800e7cc ) - 800e62c: 4613 mov r3, r2 - 800e62e: 005b lsls r3, r3, #1 - 800e630: 4413 add r3, r2 - 800e632: 00db lsls r3, r3, #3 - 800e634: 440b add r3, r1 - 800e636: 3314 adds r3, #20 - 800e638: 781b ldrb r3, [r3, #0] - 800e63a: 2b01 cmp r3, #1 - 800e63c: d011 beq.n 800e662 - 800e63e: 7c7a ldrb r2, [r7, #17] - 800e640: 4962 ldr r1, [pc, #392] ; (800e7cc ) - 800e642: 4613 mov r3, r2 - 800e644: 005b lsls r3, r3, #1 - 800e646: 4413 add r3, r2 - 800e648: 00db lsls r3, r3, #3 - 800e64a: 440b add r3, r1 - 800e64c: 3314 adds r3, #20 - 800e64e: 781b ldrb r3, [r3, #0] - 800e650: 2b01 cmp r3, #1 - 800e652: d806 bhi.n 800e662 - 800e654: 4b5a ldr r3, [pc, #360] ; (800e7c0 ) - 800e656: f240 32cd movw r2, #973 ; 0x3cd - 800e65a: 495d ldr r1, [pc, #372] ; (800e7d0 ) - 800e65c: 485a ldr r0, [pc, #360] ; (800e7c8 ) - 800e65e: f001 feb9 bl 80103d4 + 800e624: 7c7a ldrb r2, [r7, #17] + 800e626: 4968 ldr r1, [pc, #416] ; (800e7c8 ) + 800e628: 4613 mov r3, r2 + 800e62a: 005b lsls r3, r3, #1 + 800e62c: 4413 add r3, r2 + 800e62e: 00db lsls r3, r3, #3 + 800e630: 440b add r3, r1 + 800e632: 3314 adds r3, #20 + 800e634: 781b ldrb r3, [r3, #0] + 800e636: 2b01 cmp r3, #1 + 800e638: d011 beq.n 800e65e + 800e63a: 7c7a ldrb r2, [r7, #17] + 800e63c: 4962 ldr r1, [pc, #392] ; (800e7c8 ) + 800e63e: 4613 mov r3, r2 + 800e640: 005b lsls r3, r3, #1 + 800e642: 4413 add r3, r2 + 800e644: 00db lsls r3, r3, #3 + 800e646: 440b add r3, r1 + 800e648: 3314 adds r3, #20 + 800e64a: 781b ldrb r3, [r3, #0] + 800e64c: 2b01 cmp r3, #1 + 800e64e: d806 bhi.n 800e65e + 800e650: 4b5a ldr r3, [pc, #360] ; (800e7bc ) + 800e652: f240 32cd movw r2, #973 ; 0x3cd + 800e656: 495d ldr r1, [pc, #372] ; (800e7cc ) + 800e658: 485a ldr r0, [pc, #360] ; (800e7c4 ) + 800e65a: f001 feb9 bl 80103d0 ((arp_table[i].state == ETHARP_STATE_PENDING) || (arp_table[i].state >= ETHARP_STATE_STABLE))); /* do we have a new entry? or an implicit query request? */ if (is_new_entry || (q == NULL)) { - 800e662: 6a3b ldr r3, [r7, #32] - 800e664: 2b00 cmp r3, #0 - 800e666: d102 bne.n 800e66e - 800e668: 687b ldr r3, [r7, #4] - 800e66a: 2b00 cmp r3, #0 - 800e66c: d10c bne.n 800e688 + 800e65e: 6a3b ldr r3, [r7, #32] + 800e660: 2b00 cmp r3, #0 + 800e662: d102 bne.n 800e66a + 800e664: 687b ldr r3, [r7, #4] + 800e666: 2b00 cmp r3, #0 + 800e668: d10c bne.n 800e684 /* try to resolve it; send out ARP request */ result = etharp_request(netif, ipaddr); - 800e66e: 68b9 ldr r1, [r7, #8] - 800e670: 68f8 ldr r0, [r7, #12] - 800e672: f000 f963 bl 800e93c - 800e676: 4603 mov r3, r0 - 800e678: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800e66a: 68b9 ldr r1, [r7, #8] + 800e66c: 68f8 ldr r0, [r7, #12] + 800e66e: f000 f963 bl 800e938 + 800e672: 4603 mov r3, r0 + 800e674: f887 3027 strb.w r3, [r7, #39] ; 0x27 /* ARP request couldn't be sent */ /* We don't re-send arp request in etharp_tmr, but we still queue packets, since this failure could be temporary, and the next packet calling etharp_query again could lead to sending the queued packets. */ } if (q == NULL) { - 800e67c: 687b ldr r3, [r7, #4] - 800e67e: 2b00 cmp r3, #0 - 800e680: d102 bne.n 800e688 + 800e678: 687b ldr r3, [r7, #4] + 800e67a: 2b00 cmp r3, #0 + 800e67c: d102 bne.n 800e684 return result; - 800e682: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 800e686: e096 b.n 800e7b6 + 800e67e: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 + 800e682: e096 b.n 800e7b2 } } /* packet given? */ LWIP_ASSERT("q != NULL", q != NULL); - 800e688: 687b ldr r3, [r7, #4] - 800e68a: 2b00 cmp r3, #0 - 800e68c: d106 bne.n 800e69c - 800e68e: 4b4c ldr r3, [pc, #304] ; (800e7c0 ) - 800e690: f240 32e1 movw r2, #993 ; 0x3e1 - 800e694: 494f ldr r1, [pc, #316] ; (800e7d4 ) - 800e696: 484c ldr r0, [pc, #304] ; (800e7c8 ) - 800e698: f001 fe9c bl 80103d4 + 800e684: 687b ldr r3, [r7, #4] + 800e686: 2b00 cmp r3, #0 + 800e688: d106 bne.n 800e698 + 800e68a: 4b4c ldr r3, [pc, #304] ; (800e7bc ) + 800e68c: f240 32e1 movw r2, #993 ; 0x3e1 + 800e690: 494f ldr r1, [pc, #316] ; (800e7d0 ) + 800e692: 484c ldr r0, [pc, #304] ; (800e7c4 ) + 800e694: f001 fe9c bl 80103d0 /* stable entry? */ if (arp_table[i].state >= ETHARP_STATE_STABLE) { - 800e69c: 7c7a ldrb r2, [r7, #17] - 800e69e: 494b ldr r1, [pc, #300] ; (800e7cc ) - 800e6a0: 4613 mov r3, r2 - 800e6a2: 005b lsls r3, r3, #1 - 800e6a4: 4413 add r3, r2 - 800e6a6: 00db lsls r3, r3, #3 - 800e6a8: 440b add r3, r1 - 800e6aa: 3314 adds r3, #20 - 800e6ac: 781b ldrb r3, [r3, #0] - 800e6ae: 2b01 cmp r3, #1 - 800e6b0: d917 bls.n 800e6e2 + 800e698: 7c7a ldrb r2, [r7, #17] + 800e69a: 494b ldr r1, [pc, #300] ; (800e7c8 ) + 800e69c: 4613 mov r3, r2 + 800e69e: 005b lsls r3, r3, #1 + 800e6a0: 4413 add r3, r2 + 800e6a2: 00db lsls r3, r3, #3 + 800e6a4: 440b add r3, r1 + 800e6a6: 3314 adds r3, #20 + 800e6a8: 781b ldrb r3, [r3, #0] + 800e6aa: 2b01 cmp r3, #1 + 800e6ac: d917 bls.n 800e6de /* we have a valid IP->Ethernet address mapping */ ETHARP_SET_ADDRHINT(netif, i); - 800e6b2: 4a49 ldr r2, [pc, #292] ; (800e7d8 ) - 800e6b4: 7c7b ldrb r3, [r7, #17] - 800e6b6: 7013 strb r3, [r2, #0] + 800e6ae: 4a49 ldr r2, [pc, #292] ; (800e7d4 ) + 800e6b0: 7c7b ldrb r3, [r7, #17] + 800e6b2: 7013 strb r3, [r2, #0] /* send the packet */ result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP); - 800e6b8: 7c7a ldrb r2, [r7, #17] - 800e6ba: 4613 mov r3, r2 - 800e6bc: 005b lsls r3, r3, #1 - 800e6be: 4413 add r3, r2 - 800e6c0: 00db lsls r3, r3, #3 - 800e6c2: 3308 adds r3, #8 - 800e6c4: 4a41 ldr r2, [pc, #260] ; (800e7cc ) - 800e6c6: 4413 add r3, r2 - 800e6c8: 3304 adds r3, #4 - 800e6ca: f44f 6200 mov.w r2, #2048 ; 0x800 - 800e6ce: 9200 str r2, [sp, #0] - 800e6d0: 697a ldr r2, [r7, #20] - 800e6d2: 6879 ldr r1, [r7, #4] - 800e6d4: 68f8 ldr r0, [r7, #12] - 800e6d6: f001 fdd1 bl 801027c - 800e6da: 4603 mov r3, r0 - 800e6dc: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800e6e0: e067 b.n 800e7b2 + 800e6b4: 7c7a ldrb r2, [r7, #17] + 800e6b6: 4613 mov r3, r2 + 800e6b8: 005b lsls r3, r3, #1 + 800e6ba: 4413 add r3, r2 + 800e6bc: 00db lsls r3, r3, #3 + 800e6be: 3308 adds r3, #8 + 800e6c0: 4a41 ldr r2, [pc, #260] ; (800e7c8 ) + 800e6c2: 4413 add r3, r2 + 800e6c4: 3304 adds r3, #4 + 800e6c6: f44f 6200 mov.w r2, #2048 ; 0x800 + 800e6ca: 9200 str r2, [sp, #0] + 800e6cc: 697a ldr r2, [r7, #20] + 800e6ce: 6879 ldr r1, [r7, #4] + 800e6d0: 68f8 ldr r0, [r7, #12] + 800e6d2: f001 fdd1 bl 8010278 + 800e6d6: 4603 mov r3, r0 + 800e6d8: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800e6dc: e067 b.n 800e7ae /* pending entry? (either just created or already pending */ } else if (arp_table[i].state == ETHARP_STATE_PENDING) { - 800e6e2: 7c7a ldrb r2, [r7, #17] - 800e6e4: 4939 ldr r1, [pc, #228] ; (800e7cc ) - 800e6e6: 4613 mov r3, r2 - 800e6e8: 005b lsls r3, r3, #1 - 800e6ea: 4413 add r3, r2 - 800e6ec: 00db lsls r3, r3, #3 - 800e6ee: 440b add r3, r1 - 800e6f0: 3314 adds r3, #20 - 800e6f2: 781b ldrb r3, [r3, #0] - 800e6f4: 2b01 cmp r3, #1 - 800e6f6: d15c bne.n 800e7b2 + 800e6de: 7c7a ldrb r2, [r7, #17] + 800e6e0: 4939 ldr r1, [pc, #228] ; (800e7c8 ) + 800e6e2: 4613 mov r3, r2 + 800e6e4: 005b lsls r3, r3, #1 + 800e6e6: 4413 add r3, r2 + 800e6e8: 00db lsls r3, r3, #3 + 800e6ea: 440b add r3, r1 + 800e6ec: 3314 adds r3, #20 + 800e6ee: 781b ldrb r3, [r3, #0] + 800e6f0: 2b01 cmp r3, #1 + 800e6f2: d15c bne.n 800e7ae /* entry is still pending, queue the given packet 'q' */ struct pbuf *p; int copy_needed = 0; - 800e6f8: 2300 movs r3, #0 - 800e6fa: 61bb str r3, [r7, #24] + 800e6f4: 2300 movs r3, #0 + 800e6f6: 61bb str r3, [r7, #24] /* IF q includes a pbuf that must be copied, copy the whole chain into a * new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */ p = q; - 800e6fc: 687b ldr r3, [r7, #4] - 800e6fe: 61fb str r3, [r7, #28] + 800e6f8: 687b ldr r3, [r7, #4] + 800e6fa: 61fb str r3, [r7, #28] while (p) { - 800e700: e01c b.n 800e73c + 800e6fc: e01c b.n 800e738 LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0)); + 800e6fe: 69fb ldr r3, [r7, #28] + 800e700: 895a ldrh r2, [r3, #10] 800e702: 69fb ldr r3, [r7, #28] - 800e704: 895a ldrh r2, [r3, #10] - 800e706: 69fb ldr r3, [r7, #28] - 800e708: 891b ldrh r3, [r3, #8] - 800e70a: 429a cmp r2, r3 - 800e70c: d10a bne.n 800e724 - 800e70e: 69fb ldr r3, [r7, #28] - 800e710: 681b ldr r3, [r3, #0] - 800e712: 2b00 cmp r3, #0 - 800e714: d006 beq.n 800e724 - 800e716: 4b2a ldr r3, [pc, #168] ; (800e7c0 ) - 800e718: f240 32f1 movw r2, #1009 ; 0x3f1 - 800e71c: 492f ldr r1, [pc, #188] ; (800e7dc ) - 800e71e: 482a ldr r0, [pc, #168] ; (800e7c8 ) - 800e720: f001 fe58 bl 80103d4 + 800e704: 891b ldrh r3, [r3, #8] + 800e706: 429a cmp r2, r3 + 800e708: d10a bne.n 800e720 + 800e70a: 69fb ldr r3, [r7, #28] + 800e70c: 681b ldr r3, [r3, #0] + 800e70e: 2b00 cmp r3, #0 + 800e710: d006 beq.n 800e720 + 800e712: 4b2a ldr r3, [pc, #168] ; (800e7bc ) + 800e714: f240 32f1 movw r2, #1009 ; 0x3f1 + 800e718: 492f ldr r1, [pc, #188] ; (800e7d8 ) + 800e71a: 482a ldr r0, [pc, #168] ; (800e7c4 ) + 800e71c: f001 fe58 bl 80103d0 if (PBUF_NEEDS_COPY(p)) { - 800e724: 69fb ldr r3, [r7, #28] - 800e726: 7b1b ldrb r3, [r3, #12] - 800e728: f003 0340 and.w r3, r3, #64 ; 0x40 - 800e72c: 2b00 cmp r3, #0 - 800e72e: d002 beq.n 800e736 + 800e720: 69fb ldr r3, [r7, #28] + 800e722: 7b1b ldrb r3, [r3, #12] + 800e724: f003 0340 and.w r3, r3, #64 ; 0x40 + 800e728: 2b00 cmp r3, #0 + 800e72a: d002 beq.n 800e732 copy_needed = 1; - 800e730: 2301 movs r3, #1 - 800e732: 61bb str r3, [r7, #24] + 800e72c: 2301 movs r3, #1 + 800e72e: 61bb str r3, [r7, #24] break; - 800e734: e005 b.n 800e742 + 800e730: e005 b.n 800e73e } p = p->next; - 800e736: 69fb ldr r3, [r7, #28] - 800e738: 681b ldr r3, [r3, #0] - 800e73a: 61fb str r3, [r7, #28] + 800e732: 69fb ldr r3, [r7, #28] + 800e734: 681b ldr r3, [r3, #0] + 800e736: 61fb str r3, [r7, #28] while (p) { - 800e73c: 69fb ldr r3, [r7, #28] - 800e73e: 2b00 cmp r3, #0 - 800e740: d1df bne.n 800e702 + 800e738: 69fb ldr r3, [r7, #28] + 800e73a: 2b00 cmp r3, #0 + 800e73c: d1df bne.n 800e6fe } if (copy_needed) { - 800e742: 69bb ldr r3, [r7, #24] - 800e744: 2b00 cmp r3, #0 - 800e746: d007 beq.n 800e758 + 800e73e: 69bb ldr r3, [r7, #24] + 800e740: 2b00 cmp r3, #0 + 800e742: d007 beq.n 800e754 /* copy the whole packet into new pbufs */ p = pbuf_clone(PBUF_LINK, PBUF_RAM, q); - 800e748: 687a ldr r2, [r7, #4] - 800e74a: f44f 7120 mov.w r1, #640 ; 0x280 - 800e74e: 200e movs r0, #14 - 800e750: f7f7 fb90 bl 8005e74 - 800e754: 61f8 str r0, [r7, #28] - 800e756: e004 b.n 800e762 + 800e744: 687a ldr r2, [r7, #4] + 800e746: f44f 7120 mov.w r1, #640 ; 0x280 + 800e74a: 200e movs r0, #14 + 800e74c: f7f7 fb90 bl 8005e70 + 800e750: 61f8 str r0, [r7, #28] + 800e752: e004 b.n 800e75e } else { /* referencing the old pbuf is enough */ p = q; - 800e758: 687b ldr r3, [r7, #4] - 800e75a: 61fb str r3, [r7, #28] + 800e754: 687b ldr r3, [r7, #4] + 800e756: 61fb str r3, [r7, #28] pbuf_ref(p); - 800e75c: 69f8 ldr r0, [r7, #28] - 800e75e: f7f7 f9bd bl 8005adc + 800e758: 69f8 ldr r0, [r7, #28] + 800e75a: f7f7 f9bd bl 8005ad8 } /* packet could be taken over? */ if (p != NULL) { - 800e762: 69fb ldr r3, [r7, #28] - 800e764: 2b00 cmp r3, #0 - 800e766: d021 beq.n 800e7ac + 800e75e: 69fb ldr r3, [r7, #28] + 800e760: 2b00 cmp r3, #0 + 800e762: d021 beq.n 800e7a8 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not queue a copy of PBUF_REF packet %p (out of memory)\n", (void *)q)); result = ERR_MEM; } #else /* ARP_QUEUEING */ /* always queue one packet per ARP request only, freeing a previously queued packet */ if (arp_table[i].q != NULL) { - 800e768: 7c7a ldrb r2, [r7, #17] - 800e76a: 4918 ldr r1, [pc, #96] ; (800e7cc ) - 800e76c: 4613 mov r3, r2 - 800e76e: 005b lsls r3, r3, #1 - 800e770: 4413 add r3, r2 - 800e772: 00db lsls r3, r3, #3 - 800e774: 440b add r3, r1 - 800e776: 681b ldr r3, [r3, #0] - 800e778: 2b00 cmp r3, #0 - 800e77a: d00a beq.n 800e792 + 800e764: 7c7a ldrb r2, [r7, #17] + 800e766: 4918 ldr r1, [pc, #96] ; (800e7c8 ) + 800e768: 4613 mov r3, r2 + 800e76a: 005b lsls r3, r3, #1 + 800e76c: 4413 add r3, r2 + 800e76e: 00db lsls r3, r3, #3 + 800e770: 440b add r3, r1 + 800e772: 681b ldr r3, [r3, #0] + 800e774: 2b00 cmp r3, #0 + 800e776: d00a beq.n 800e78e LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: dropped previously queued packet %p for ARP entry %"U16_F"\n", (void *)q, (u16_t)i)); pbuf_free(arp_table[i].q); - 800e77c: 7c7a ldrb r2, [r7, #17] - 800e77e: 4913 ldr r1, [pc, #76] ; (800e7cc ) - 800e780: 4613 mov r3, r2 - 800e782: 005b lsls r3, r3, #1 - 800e784: 4413 add r3, r2 - 800e786: 00db lsls r3, r3, #3 - 800e788: 440b add r3, r1 - 800e78a: 681b ldr r3, [r3, #0] - 800e78c: 4618 mov r0, r3 - 800e78e: f7f7 f905 bl 800599c + 800e778: 7c7a ldrb r2, [r7, #17] + 800e77a: 4913 ldr r1, [pc, #76] ; (800e7c8 ) + 800e77c: 4613 mov r3, r2 + 800e77e: 005b lsls r3, r3, #1 + 800e780: 4413 add r3, r2 + 800e782: 00db lsls r3, r3, #3 + 800e784: 440b add r3, r1 + 800e786: 681b ldr r3, [r3, #0] + 800e788: 4618 mov r0, r3 + 800e78a: f7f7 f905 bl 8005998 } arp_table[i].q = p; - 800e792: 7c7a ldrb r2, [r7, #17] - 800e794: 490d ldr r1, [pc, #52] ; (800e7cc ) - 800e796: 4613 mov r3, r2 - 800e798: 005b lsls r3, r3, #1 - 800e79a: 4413 add r3, r2 - 800e79c: 00db lsls r3, r3, #3 - 800e79e: 440b add r3, r1 - 800e7a0: 69fa ldr r2, [r7, #28] - 800e7a2: 601a str r2, [r3, #0] + 800e78e: 7c7a ldrb r2, [r7, #17] + 800e790: 490d ldr r1, [pc, #52] ; (800e7c8 ) + 800e792: 4613 mov r3, r2 + 800e794: 005b lsls r3, r3, #1 + 800e796: 4413 add r3, r2 + 800e798: 00db lsls r3, r3, #3 + 800e79a: 440b add r3, r1 + 800e79c: 69fa ldr r2, [r7, #28] + 800e79e: 601a str r2, [r3, #0] result = ERR_OK; - 800e7a4: 2300 movs r3, #0 - 800e7a6: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 800e7aa: e002 b.n 800e7b2 + 800e7a0: 2300 movs r3, #0 + 800e7a2: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800e7a6: e002 b.n 800e7ae LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"U16_F"\n", (void *)q, (u16_t)i)); #endif /* ARP_QUEUEING */ } else { ETHARP_STATS_INC(etharp.memerr); LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not queue a copy of PBUF_REF packet %p (out of memory)\n", (void *)q)); result = ERR_MEM; - 800e7ac: 23ff movs r3, #255 ; 0xff - 800e7ae: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800e7a8: 23ff movs r3, #255 ; 0xff + 800e7aa: f887 3027 strb.w r3, [r7, #39] ; 0x27 } } return result; - 800e7b2: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 + 800e7ae: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 } - 800e7b6: 4618 mov r0, r3 - 800e7b8: 3728 adds r7, #40 ; 0x28 - 800e7ba: 46bd mov sp, r7 - 800e7bc: bd80 pop {r7, pc} - 800e7be: bf00 nop - 800e7c0: 080175ac .word 0x080175ac - 800e7c4: 08017758 .word 0x08017758 - 800e7c8: 08017624 .word 0x08017624 - 800e7cc: 20008c94 .word 0x20008c94 - 800e7d0: 08017768 .word 0x08017768 - 800e7d4: 0801774c .word 0x0801774c - 800e7d8: 20008d84 .word 0x20008d84 - 800e7dc: 08017790 .word 0x08017790 + 800e7b2: 4618 mov r0, r3 + 800e7b4: 3728 adds r7, #40 ; 0x28 + 800e7b6: 46bd mov sp, r7 + 800e7b8: bd80 pop {r7, pc} + 800e7ba: bf00 nop + 800e7bc: 080175ac .word 0x080175ac + 800e7c0: 08017758 .word 0x08017758 + 800e7c4: 08017624 .word 0x08017624 + 800e7c8: 20008c94 .word 0x20008c94 + 800e7cc: 08017768 .word 0x08017768 + 800e7d0: 0801774c .word 0x0801774c + 800e7d4: 20008d84 .word 0x20008d84 + 800e7d8: 08017790 .word 0x08017790 -0800e7e0 : +0800e7dc : etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr, const struct eth_addr *ethdst_addr, const struct eth_addr *hwsrc_addr, const ip4_addr_t *ipsrc_addr, const struct eth_addr *hwdst_addr, const ip4_addr_t *ipdst_addr, const u16_t opcode) { - 800e7e0: b580 push {r7, lr} - 800e7e2: b08a sub sp, #40 ; 0x28 - 800e7e4: af02 add r7, sp, #8 - 800e7e6: 60f8 str r0, [r7, #12] - 800e7e8: 60b9 str r1, [r7, #8] - 800e7ea: 607a str r2, [r7, #4] - 800e7ec: 603b str r3, [r7, #0] + 800e7dc: b580 push {r7, lr} + 800e7de: b08a sub sp, #40 ; 0x28 + 800e7e0: af02 add r7, sp, #8 + 800e7e2: 60f8 str r0, [r7, #12] + 800e7e4: 60b9 str r1, [r7, #8] + 800e7e6: 607a str r2, [r7, #4] + 800e7e8: 603b str r3, [r7, #0] struct pbuf *p; err_t result = ERR_OK; - 800e7ee: 2300 movs r3, #0 - 800e7f0: 77fb strb r3, [r7, #31] + 800e7ea: 2300 movs r3, #0 + 800e7ec: 77fb strb r3, [r7, #31] struct etharp_hdr *hdr; LWIP_ASSERT("netif != NULL", netif != NULL); - 800e7f2: 68fb ldr r3, [r7, #12] - 800e7f4: 2b00 cmp r3, #0 - 800e7f6: d106 bne.n 800e806 - 800e7f8: 4b3a ldr r3, [pc, #232] ; (800e8e4 ) - 800e7fa: f240 4257 movw r2, #1111 ; 0x457 - 800e7fe: 493a ldr r1, [pc, #232] ; (800e8e8 ) - 800e800: 483a ldr r0, [pc, #232] ; (800e8ec ) - 800e802: f001 fde7 bl 80103d4 + 800e7ee: 68fb ldr r3, [r7, #12] + 800e7f0: 2b00 cmp r3, #0 + 800e7f2: d106 bne.n 800e802 + 800e7f4: 4b3a ldr r3, [pc, #232] ; (800e8e0 ) + 800e7f6: f240 4257 movw r2, #1111 ; 0x457 + 800e7fa: 493a ldr r1, [pc, #232] ; (800e8e4 ) + 800e7fc: 483a ldr r0, [pc, #232] ; (800e8e8 ) + 800e7fe: f001 fde7 bl 80103d0 /* allocate a pbuf for the outgoing ARP request packet */ p = pbuf_alloc(PBUF_LINK, SIZEOF_ETHARP_HDR, PBUF_RAM); - 800e806: f44f 7220 mov.w r2, #640 ; 0x280 - 800e80a: 211c movs r1, #28 - 800e80c: 200e movs r0, #14 - 800e80e: f7f6 fde1 bl 80053d4 - 800e812: 61b8 str r0, [r7, #24] + 800e802: f44f 7220 mov.w r2, #640 ; 0x280 + 800e806: 211c movs r1, #28 + 800e808: 200e movs r0, #14 + 800e80a: f7f6 fde1 bl 80053d0 + 800e80e: 61b8 str r0, [r7, #24] /* could allocate a pbuf for an ARP request? */ if (p == NULL) { - 800e814: 69bb ldr r3, [r7, #24] - 800e816: 2b00 cmp r3, #0 - 800e818: d102 bne.n 800e820 + 800e810: 69bb ldr r3, [r7, #24] + 800e812: 2b00 cmp r3, #0 + 800e814: d102 bne.n 800e81c LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("etharp_raw: could not allocate pbuf for ARP request.\n")); ETHARP_STATS_INC(etharp.memerr); return ERR_MEM; - 800e81a: f04f 33ff mov.w r3, #4294967295 - 800e81e: e05d b.n 800e8dc + 800e816: f04f 33ff mov.w r3, #4294967295 + 800e81a: e05d b.n 800e8d8 } LWIP_ASSERT("check that first pbuf can hold struct etharp_hdr", - 800e820: 69bb ldr r3, [r7, #24] - 800e822: 895b ldrh r3, [r3, #10] - 800e824: 2b1b cmp r3, #27 - 800e826: d806 bhi.n 800e836 - 800e828: 4b2e ldr r3, [pc, #184] ; (800e8e4 ) - 800e82a: f240 4262 movw r2, #1122 ; 0x462 - 800e82e: 4930 ldr r1, [pc, #192] ; (800e8f0 ) - 800e830: 482e ldr r0, [pc, #184] ; (800e8ec ) - 800e832: f001 fdcf bl 80103d4 + 800e81c: 69bb ldr r3, [r7, #24] + 800e81e: 895b ldrh r3, [r3, #10] + 800e820: 2b1b cmp r3, #27 + 800e822: d806 bhi.n 800e832 + 800e824: 4b2e ldr r3, [pc, #184] ; (800e8e0 ) + 800e826: f240 4262 movw r2, #1122 ; 0x462 + 800e82a: 4930 ldr r1, [pc, #192] ; (800e8ec ) + 800e82c: 482e ldr r0, [pc, #184] ; (800e8e8 ) + 800e82e: f001 fdcf bl 80103d0 (p->len >= SIZEOF_ETHARP_HDR)); hdr = (struct etharp_hdr *)p->payload; - 800e836: 69bb ldr r3, [r7, #24] - 800e838: 685b ldr r3, [r3, #4] - 800e83a: 617b str r3, [r7, #20] + 800e832: 69bb ldr r3, [r7, #24] + 800e834: 685b ldr r3, [r3, #4] + 800e836: 617b str r3, [r7, #20] LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n")); hdr->opcode = lwip_htons(opcode); - 800e83c: 8ebb ldrh r3, [r7, #52] ; 0x34 - 800e83e: 4618 mov r0, r3 - 800e840: f7f5 fd42 bl 80042c8 - 800e844: 4603 mov r3, r0 - 800e846: 461a mov r2, r3 - 800e848: 697b ldr r3, [r7, #20] - 800e84a: 80da strh r2, [r3, #6] + 800e838: 8ebb ldrh r3, [r7, #52] ; 0x34 + 800e83a: 4618 mov r0, r3 + 800e83c: f7f5 fd42 bl 80042c4 + 800e840: 4603 mov r3, r0 + 800e842: 461a mov r2, r3 + 800e844: 697b ldr r3, [r7, #20] + 800e846: 80da strh r2, [r3, #6] LWIP_ASSERT("netif->hwaddr_len must be the same as ETH_HWADDR_LEN for etharp!", - 800e84c: 68fb ldr r3, [r7, #12] - 800e84e: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 800e852: 2b06 cmp r3, #6 - 800e854: d006 beq.n 800e864 - 800e856: 4b23 ldr r3, [pc, #140] ; (800e8e4 ) - 800e858: f240 4269 movw r2, #1129 ; 0x469 - 800e85c: 4925 ldr r1, [pc, #148] ; (800e8f4 ) - 800e85e: 4823 ldr r0, [pc, #140] ; (800e8ec ) - 800e860: f001 fdb8 bl 80103d4 + 800e848: 68fb ldr r3, [r7, #12] + 800e84a: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 800e84e: 2b06 cmp r3, #6 + 800e850: d006 beq.n 800e860 + 800e852: 4b23 ldr r3, [pc, #140] ; (800e8e0 ) + 800e854: f240 4269 movw r2, #1129 ; 0x469 + 800e858: 4925 ldr r1, [pc, #148] ; (800e8f0 ) + 800e85a: 4823 ldr r0, [pc, #140] ; (800e8e8 ) + 800e85c: f001 fdb8 bl 80103d0 (netif->hwaddr_len == ETH_HWADDR_LEN)); /* Write the ARP MAC-Addresses */ SMEMCPY(&hdr->shwaddr, hwsrc_addr, ETH_HWADDR_LEN); - 800e864: 697b ldr r3, [r7, #20] - 800e866: 3308 adds r3, #8 - 800e868: 2206 movs r2, #6 - 800e86a: 6839 ldr r1, [r7, #0] - 800e86c: 4618 mov r0, r3 - 800e86e: f001 fd81 bl 8010374 + 800e860: 697b ldr r3, [r7, #20] + 800e862: 3308 adds r3, #8 + 800e864: 2206 movs r2, #6 + 800e866: 6839 ldr r1, [r7, #0] + 800e868: 4618 mov r0, r3 + 800e86a: f001 fd81 bl 8010370 SMEMCPY(&hdr->dhwaddr, hwdst_addr, ETH_HWADDR_LEN); - 800e872: 697b ldr r3, [r7, #20] - 800e874: 3312 adds r3, #18 - 800e876: 2206 movs r2, #6 - 800e878: 6af9 ldr r1, [r7, #44] ; 0x2c - 800e87a: 4618 mov r0, r3 - 800e87c: f001 fd7a bl 8010374 + 800e86e: 697b ldr r3, [r7, #20] + 800e870: 3312 adds r3, #18 + 800e872: 2206 movs r2, #6 + 800e874: 6af9 ldr r1, [r7, #44] ; 0x2c + 800e876: 4618 mov r0, r3 + 800e878: f001 fd7a bl 8010370 /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without * structure packing. */ IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->sipaddr, ipsrc_addr); - 800e880: 697b ldr r3, [r7, #20] - 800e882: 330e adds r3, #14 - 800e884: 6aba ldr r2, [r7, #40] ; 0x28 - 800e886: 6812 ldr r2, [r2, #0] - 800e888: 601a str r2, [r3, #0] + 800e87c: 697b ldr r3, [r7, #20] + 800e87e: 330e adds r3, #14 + 800e880: 6aba ldr r2, [r7, #40] ; 0x28 + 800e882: 6812 ldr r2, [r2, #0] + 800e884: 601a str r2, [r3, #0] IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->dipaddr, ipdst_addr); - 800e88a: 697b ldr r3, [r7, #20] - 800e88c: 3318 adds r3, #24 - 800e88e: 6b3a ldr r2, [r7, #48] ; 0x30 - 800e890: 6812 ldr r2, [r2, #0] - 800e892: 601a str r2, [r3, #0] + 800e886: 697b ldr r3, [r7, #20] + 800e888: 3318 adds r3, #24 + 800e88a: 6b3a ldr r2, [r7, #48] ; 0x30 + 800e88c: 6812 ldr r2, [r2, #0] + 800e88e: 601a str r2, [r3, #0] hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET); - 800e894: 697b ldr r3, [r7, #20] + 800e890: 697b ldr r3, [r7, #20] + 800e892: 2200 movs r2, #0 + 800e894: 701a strb r2, [r3, #0] 800e896: 2200 movs r2, #0 - 800e898: 701a strb r2, [r3, #0] - 800e89a: 2200 movs r2, #0 - 800e89c: f042 0201 orr.w r2, r2, #1 - 800e8a0: 705a strb r2, [r3, #1] + 800e898: f042 0201 orr.w r2, r2, #1 + 800e89c: 705a strb r2, [r3, #1] hdr->proto = PP_HTONS(ETHTYPE_IP); - 800e8a2: 697b ldr r3, [r7, #20] - 800e8a4: 2200 movs r2, #0 - 800e8a6: f042 0208 orr.w r2, r2, #8 - 800e8aa: 709a strb r2, [r3, #2] - 800e8ac: 2200 movs r2, #0 - 800e8ae: 70da strb r2, [r3, #3] + 800e89e: 697b ldr r3, [r7, #20] + 800e8a0: 2200 movs r2, #0 + 800e8a2: f042 0208 orr.w r2, r2, #8 + 800e8a6: 709a strb r2, [r3, #2] + 800e8a8: 2200 movs r2, #0 + 800e8aa: 70da strb r2, [r3, #3] /* set hwlen and protolen */ hdr->hwlen = ETH_HWADDR_LEN; - 800e8b0: 697b ldr r3, [r7, #20] - 800e8b2: 2206 movs r2, #6 - 800e8b4: 711a strb r2, [r3, #4] + 800e8ac: 697b ldr r3, [r7, #20] + 800e8ae: 2206 movs r2, #6 + 800e8b0: 711a strb r2, [r3, #4] hdr->protolen = sizeof(ip4_addr_t); - 800e8b6: 697b ldr r3, [r7, #20] - 800e8b8: 2204 movs r2, #4 - 800e8ba: 715a strb r2, [r3, #5] + 800e8b2: 697b ldr r3, [r7, #20] + 800e8b4: 2204 movs r2, #4 + 800e8b6: 715a strb r2, [r3, #5] if (ip4_addr_islinklocal(ipsrc_addr)) { ethernet_output(netif, p, ethsrc_addr, ðbroadcast, ETHTYPE_ARP); } else #endif /* LWIP_AUTOIP */ { ethernet_output(netif, p, ethsrc_addr, ethdst_addr, ETHTYPE_ARP); - 800e8bc: f640 0306 movw r3, #2054 ; 0x806 - 800e8c0: 9300 str r3, [sp, #0] - 800e8c2: 687b ldr r3, [r7, #4] - 800e8c4: 68ba ldr r2, [r7, #8] - 800e8c6: 69b9 ldr r1, [r7, #24] - 800e8c8: 68f8 ldr r0, [r7, #12] - 800e8ca: f001 fcd7 bl 801027c + 800e8b8: f640 0306 movw r3, #2054 ; 0x806 + 800e8bc: 9300 str r3, [sp, #0] + 800e8be: 687b ldr r3, [r7, #4] + 800e8c0: 68ba ldr r2, [r7, #8] + 800e8c2: 69b9 ldr r1, [r7, #24] + 800e8c4: 68f8 ldr r0, [r7, #12] + 800e8c6: f001 fcd7 bl 8010278 } ETHARP_STATS_INC(etharp.xmit); /* free ARP query packet */ pbuf_free(p); - 800e8ce: 69b8 ldr r0, [r7, #24] - 800e8d0: f7f7 f864 bl 800599c + 800e8ca: 69b8 ldr r0, [r7, #24] + 800e8cc: f7f7 f864 bl 8005998 p = NULL; - 800e8d4: 2300 movs r3, #0 - 800e8d6: 61bb str r3, [r7, #24] + 800e8d0: 2300 movs r3, #0 + 800e8d2: 61bb str r3, [r7, #24] /* could not allocate pbuf for ARP request */ return result; - 800e8d8: f997 301f ldrsb.w r3, [r7, #31] + 800e8d4: f997 301f ldrsb.w r3, [r7, #31] } - 800e8dc: 4618 mov r0, r3 - 800e8de: 3720 adds r7, #32 - 800e8e0: 46bd mov sp, r7 - 800e8e2: bd80 pop {r7, pc} - 800e8e4: 080175ac .word 0x080175ac - 800e8e8: 080176fc .word 0x080176fc - 800e8ec: 08017624 .word 0x08017624 - 800e8f0: 080177ac .word 0x080177ac - 800e8f4: 080177e0 .word 0x080177e0 + 800e8d8: 4618 mov r0, r3 + 800e8da: 3720 adds r7, #32 + 800e8dc: 46bd mov sp, r7 + 800e8de: bd80 pop {r7, pc} + 800e8e0: 080175ac .word 0x080175ac + 800e8e4: 080176fc .word 0x080176fc + 800e8e8: 08017624 .word 0x08017624 + 800e8ec: 080177ac .word 0x080177ac + 800e8f0: 080177e0 .word 0x080177e0 -0800e8f8 : +0800e8f4 : * ERR_MEM if the ARP packet couldn't be allocated * any other err_t on failure */ static err_t etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr) { - 800e8f8: b580 push {r7, lr} - 800e8fa: b088 sub sp, #32 - 800e8fc: af04 add r7, sp, #16 - 800e8fe: 60f8 str r0, [r7, #12] - 800e900: 60b9 str r1, [r7, #8] - 800e902: 607a str r2, [r7, #4] + 800e8f4: b580 push {r7, lr} + 800e8f6: b088 sub sp, #32 + 800e8f8: af04 add r7, sp, #16 + 800e8fa: 60f8 str r0, [r7, #12] + 800e8fc: 60b9 str r1, [r7, #8] + 800e8fe: 607a str r2, [r7, #4] return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, - 800e904: 68fb ldr r3, [r7, #12] - 800e906: f103 012a add.w r1, r3, #42 ; 0x2a + 800e900: 68fb ldr r3, [r7, #12] + 800e902: f103 012a add.w r1, r3, #42 ; 0x2a (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), ðzero, - 800e90a: 68fb ldr r3, [r7, #12] - 800e90c: f103 002a add.w r0, r3, #42 ; 0x2a - 800e910: 68fb ldr r3, [r7, #12] - 800e912: 3304 adds r3, #4 + 800e906: 68fb ldr r3, [r7, #12] + 800e908: f103 002a add.w r0, r3, #42 ; 0x2a + 800e90c: 68fb ldr r3, [r7, #12] + 800e90e: 3304 adds r3, #4 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, - 800e914: 2201 movs r2, #1 - 800e916: 9203 str r2, [sp, #12] - 800e918: 68ba ldr r2, [r7, #8] - 800e91a: 9202 str r2, [sp, #8] - 800e91c: 4a06 ldr r2, [pc, #24] ; (800e938 ) - 800e91e: 9201 str r2, [sp, #4] - 800e920: 9300 str r3, [sp, #0] - 800e922: 4603 mov r3, r0 - 800e924: 687a ldr r2, [r7, #4] - 800e926: 68f8 ldr r0, [r7, #12] - 800e928: f7ff ff5a bl 800e7e0 - 800e92c: 4603 mov r3, r0 + 800e910: 2201 movs r2, #1 + 800e912: 9203 str r2, [sp, #12] + 800e914: 68ba ldr r2, [r7, #8] + 800e916: 9202 str r2, [sp, #8] + 800e918: 4a06 ldr r2, [pc, #24] ; (800e934 ) + 800e91a: 9201 str r2, [sp, #4] + 800e91c: 9300 str r3, [sp, #0] + 800e91e: 4603 mov r3, r0 + 800e920: 687a ldr r2, [r7, #4] + 800e922: 68f8 ldr r0, [r7, #12] + 800e924: f7ff ff5a bl 800e7dc + 800e928: 4603 mov r3, r0 ipaddr, ARP_REQUEST); } - 800e92e: 4618 mov r0, r3 - 800e930: 3710 adds r7, #16 - 800e932: 46bd mov sp, r7 - 800e934: bd80 pop {r7, pc} - 800e936: bf00 nop - 800e938: 08017dec .word 0x08017dec + 800e92a: 4618 mov r0, r3 + 800e92c: 3710 adds r7, #16 + 800e92e: 46bd mov sp, r7 + 800e930: bd80 pop {r7, pc} + 800e932: bf00 nop + 800e934: 08017dec .word 0x08017dec -0800e93c : +0800e938 : * ERR_MEM if the ARP packet couldn't be allocated * any other err_t on failure */ err_t etharp_request(struct netif *netif, const ip4_addr_t *ipaddr) { - 800e93c: b580 push {r7, lr} - 800e93e: b082 sub sp, #8 - 800e940: af00 add r7, sp, #0 - 800e942: 6078 str r0, [r7, #4] - 800e944: 6039 str r1, [r7, #0] + 800e938: b580 push {r7, lr} + 800e93a: b082 sub sp, #8 + 800e93c: af00 add r7, sp, #0 + 800e93e: 6078 str r0, [r7, #4] + 800e940: 6039 str r1, [r7, #0] LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_request: sending ARP request.\n")); return etharp_request_dst(netif, ipaddr, ðbroadcast); - 800e946: 4a05 ldr r2, [pc, #20] ; (800e95c ) - 800e948: 6839 ldr r1, [r7, #0] - 800e94a: 6878 ldr r0, [r7, #4] - 800e94c: f7ff ffd4 bl 800e8f8 - 800e950: 4603 mov r3, r0 + 800e942: 4a05 ldr r2, [pc, #20] ; (800e958 ) + 800e944: 6839 ldr r1, [r7, #0] + 800e946: 6878 ldr r0, [r7, #4] + 800e948: f7ff ffd4 bl 800e8f4 + 800e94c: 4603 mov r3, r0 } - 800e952: 4618 mov r0, r3 - 800e954: 3708 adds r7, #8 - 800e956: 46bd mov sp, r7 - 800e958: bd80 pop {r7, pc} - 800e95a: bf00 nop - 800e95c: 08017de4 .word 0x08017de4 + 800e94e: 4618 mov r0, r3 + 800e950: 3708 adds r7, #8 + 800e952: 46bd mov sp, r7 + 800e954: bd80 pop {r7, pc} + 800e956: bf00 nop + 800e958: 08017de4 .word 0x08017de4 -0800e960 : +0800e95c : * @param p the icmp echo request packet, p->payload pointing to the icmp header * @param inp the netif on which this packet was received */ void icmp_input(struct pbuf *p, struct netif *inp) { - 800e960: b580 push {r7, lr} - 800e962: b08e sub sp, #56 ; 0x38 - 800e964: af04 add r7, sp, #16 - 800e966: 6078 str r0, [r7, #4] - 800e968: 6039 str r1, [r7, #0] + 800e95c: b580 push {r7, lr} + 800e95e: b08e sub sp, #56 ; 0x38 + 800e960: af04 add r7, sp, #16 + 800e962: 6078 str r0, [r7, #4] + 800e964: 6039 str r1, [r7, #0] const ip4_addr_t *src; ICMP_STATS_INC(icmp.recv); MIB2_STATS_INC(mib2.icmpinmsgs); iphdr_in = ip4_current_header(); - 800e96a: 4b79 ldr r3, [pc, #484] ; (800eb50 ) - 800e96c: 689b ldr r3, [r3, #8] - 800e96e: 627b str r3, [r7, #36] ; 0x24 + 800e966: 4b79 ldr r3, [pc, #484] ; (800eb4c ) + 800e968: 689b ldr r3, [r3, #8] + 800e96a: 627b str r3, [r7, #36] ; 0x24 hlen = IPH_HL_BYTES(iphdr_in); - 800e970: 6a7b ldr r3, [r7, #36] ; 0x24 - 800e972: 781b ldrb r3, [r3, #0] - 800e974: f003 030f and.w r3, r3, #15 + 800e96c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800e96e: 781b ldrb r3, [r3, #0] + 800e970: f003 030f and.w r3, r3, #15 + 800e974: b2db uxtb r3, r3 + 800e976: 009b lsls r3, r3, #2 800e978: b2db uxtb r3, r3 - 800e97a: 009b lsls r3, r3, #2 - 800e97c: b2db uxtb r3, r3 - 800e97e: 847b strh r3, [r7, #34] ; 0x22 + 800e97a: 847b strh r3, [r7, #34] ; 0x22 if (hlen < IP_HLEN) { - 800e980: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800e982: 2b13 cmp r3, #19 - 800e984: f240 80cd bls.w 800eb22 + 800e97c: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800e97e: 2b13 cmp r3, #19 + 800e980: f240 80cd bls.w 800eb1e LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short IP header (%"S16_F" bytes) received\n", hlen)); goto lenerr; } if (p->len < sizeof(u16_t) * 2) { - 800e988: 687b ldr r3, [r7, #4] - 800e98a: 895b ldrh r3, [r3, #10] - 800e98c: 2b03 cmp r3, #3 - 800e98e: f240 80ca bls.w 800eb26 + 800e984: 687b ldr r3, [r7, #4] + 800e986: 895b ldrh r3, [r3, #10] + 800e988: 2b03 cmp r3, #3 + 800e98a: f240 80ca bls.w 800eb22 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len)); goto lenerr; } type = *((u8_t *)p->payload); - 800e992: 687b ldr r3, [r7, #4] - 800e994: 685b ldr r3, [r3, #4] - 800e996: 781b ldrb r3, [r3, #0] - 800e998: f887 3021 strb.w r3, [r7, #33] ; 0x21 + 800e98e: 687b ldr r3, [r7, #4] + 800e990: 685b ldr r3, [r3, #4] + 800e992: 781b ldrb r3, [r3, #0] + 800e994: f887 3021 strb.w r3, [r7, #33] ; 0x21 #ifdef LWIP_DEBUG code = *(((u8_t *)p->payload) + 1); /* if debug is enabled but debug statement below is somehow disabled: */ LWIP_UNUSED_ARG(code); #endif /* LWIP_DEBUG */ switch (type) { - 800e99c: f897 3021 ldrb.w r3, [r7, #33] ; 0x21 - 800e9a0: 2b00 cmp r3, #0 - 800e9a2: f000 80b7 beq.w 800eb14 - 800e9a6: 2b08 cmp r3, #8 - 800e9a8: f040 80b7 bne.w 800eb1a + 800e998: f897 3021 ldrb.w r3, [r7, #33] ; 0x21 + 800e99c: 2b00 cmp r3, #0 + 800e99e: f000 80b7 beq.w 800eb10 + 800e9a2: 2b08 cmp r3, #8 + 800e9a4: f040 80b7 bne.w 800eb16 (as obviously, an echo request has been sent, too). */ MIB2_STATS_INC(mib2.icmpinechoreps); break; case ICMP_ECHO: MIB2_STATS_INC(mib2.icmpinechos); src = ip4_current_dest_addr(); - 800e9ac: 4b69 ldr r3, [pc, #420] ; (800eb54 ) - 800e9ae: 61fb str r3, [r7, #28] + 800e9a8: 4b69 ldr r3, [pc, #420] ; (800eb50 ) + 800e9aa: 61fb str r3, [r7, #28] /* multicast destination address? */ if (ip4_addr_ismulticast(ip4_current_dest_addr())) { - 800e9b0: 4b67 ldr r3, [pc, #412] ; (800eb50 ) - 800e9b2: 695b ldr r3, [r3, #20] - 800e9b4: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 800e9b8: 2be0 cmp r3, #224 ; 0xe0 - 800e9ba: f000 80bb beq.w 800eb34 + 800e9ac: 4b67 ldr r3, [pc, #412] ; (800eb4c ) + 800e9ae: 695b ldr r3, [r3, #20] + 800e9b0: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800e9b4: 2be0 cmp r3, #224 ; 0xe0 + 800e9b6: f000 80bb beq.w 800eb30 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to multicast pings\n")); goto icmperr; #endif /* LWIP_MULTICAST_PING */ } /* broadcast destination address? */ if (ip4_addr_isbroadcast(ip4_current_dest_addr(), ip_current_netif())) { - 800e9be: 4b64 ldr r3, [pc, #400] ; (800eb50 ) - 800e9c0: 695b ldr r3, [r3, #20] - 800e9c2: 4a63 ldr r2, [pc, #396] ; (800eb50 ) - 800e9c4: 6812 ldr r2, [r2, #0] - 800e9c6: 4611 mov r1, r2 - 800e9c8: 4618 mov r0, r3 - 800e9ca: f000 fc0b bl 800f1e4 - 800e9ce: 4603 mov r3, r0 - 800e9d0: 2b00 cmp r3, #0 - 800e9d2: f040 80b1 bne.w 800eb38 + 800e9ba: 4b64 ldr r3, [pc, #400] ; (800eb4c ) + 800e9bc: 695b ldr r3, [r3, #20] + 800e9be: 4a63 ldr r2, [pc, #396] ; (800eb4c ) + 800e9c0: 6812 ldr r2, [r2, #0] + 800e9c2: 4611 mov r1, r2 + 800e9c4: 4618 mov r0, r3 + 800e9c6: f000 fc0b bl 800f1e0 + 800e9ca: 4603 mov r3, r0 + 800e9cc: 2b00 cmp r3, #0 + 800e9ce: f040 80b1 bne.w 800eb34 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to broadcast pings\n")); goto icmperr; #endif /* LWIP_BROADCAST_PING */ } LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ping\n")); if (p->tot_len < sizeof(struct icmp_echo_hdr)) { - 800e9d6: 687b ldr r3, [r7, #4] - 800e9d8: 891b ldrh r3, [r3, #8] - 800e9da: 2b07 cmp r3, #7 - 800e9dc: f240 80a5 bls.w 800eb2a + 800e9d2: 687b ldr r3, [r7, #4] + 800e9d4: 891b ldrh r3, [r3, #8] + 800e9d6: 2b07 cmp r3, #7 + 800e9d8: f240 80a5 bls.w 800eb26 return; } } #endif #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN if (pbuf_add_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) { - 800e9e0: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800e9e2: 330e adds r3, #14 - 800e9e4: 4619 mov r1, r3 - 800e9e6: 6878 ldr r0, [r7, #4] - 800e9e8: f7f6 ff42 bl 8005870 - 800e9ec: 4603 mov r3, r0 - 800e9ee: 2b00 cmp r3, #0 - 800e9f0: d04b beq.n 800ea8a + 800e9dc: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800e9de: 330e adds r3, #14 + 800e9e0: 4619 mov r1, r3 + 800e9e2: 6878 ldr r0, [r7, #4] + 800e9e4: f7f6 ff42 bl 800586c + 800e9e8: 4603 mov r3, r0 + 800e9ea: 2b00 cmp r3, #0 + 800e9ec: d04b beq.n 800ea86 /* p is not big enough to contain link headers * allocate a new one and copy p into it */ struct pbuf *r; u16_t alloc_len = (u16_t)(p->tot_len + hlen); - 800e9f2: 687b ldr r3, [r7, #4] - 800e9f4: 891a ldrh r2, [r3, #8] - 800e9f6: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800e9f8: 4413 add r3, r2 - 800e9fa: 837b strh r3, [r7, #26] + 800e9ee: 687b ldr r3, [r7, #4] + 800e9f0: 891a ldrh r2, [r3, #8] + 800e9f2: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800e9f4: 4413 add r3, r2 + 800e9f6: 837b strh r3, [r7, #26] if (alloc_len < p->tot_len) { - 800e9fc: 687b ldr r3, [r7, #4] - 800e9fe: 891b ldrh r3, [r3, #8] - 800ea00: 8b7a ldrh r2, [r7, #26] - 800ea02: 429a cmp r2, r3 - 800ea04: f0c0 809a bcc.w 800eb3c + 800e9f8: 687b ldr r3, [r7, #4] + 800e9fa: 891b ldrh r3, [r3, #8] + 800e9fc: 8b7a ldrh r2, [r7, #26] + 800e9fe: 429a cmp r2, r3 + 800ea00: f0c0 809a bcc.w 800eb38 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed (tot_len overflow)\n")); goto icmperr; } /* allocate new packet buffer with space for link headers */ r = pbuf_alloc(PBUF_LINK, alloc_len, PBUF_RAM); - 800ea08: 8b7b ldrh r3, [r7, #26] - 800ea0a: f44f 7220 mov.w r2, #640 ; 0x280 - 800ea0e: 4619 mov r1, r3 - 800ea10: 200e movs r0, #14 - 800ea12: f7f6 fcdf bl 80053d4 - 800ea16: 6178 str r0, [r7, #20] + 800ea04: 8b7b ldrh r3, [r7, #26] + 800ea06: f44f 7220 mov.w r2, #640 ; 0x280 + 800ea0a: 4619 mov r1, r3 + 800ea0c: 200e movs r0, #14 + 800ea0e: f7f6 fcdf bl 80053d0 + 800ea12: 6178 str r0, [r7, #20] if (r == NULL) { - 800ea18: 697b ldr r3, [r7, #20] - 800ea1a: 2b00 cmp r3, #0 - 800ea1c: f000 8090 beq.w 800eb40 + 800ea14: 697b ldr r3, [r7, #20] + 800ea16: 2b00 cmp r3, #0 + 800ea18: f000 8090 beq.w 800eb3c LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n")); goto icmperr; } if (r->len < hlen + sizeof(struct icmp_echo_hdr)) { - 800ea20: 697b ldr r3, [r7, #20] - 800ea22: 895b ldrh r3, [r3, #10] - 800ea24: 461a mov r2, r3 - 800ea26: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800ea28: 3308 adds r3, #8 - 800ea2a: 429a cmp r2, r3 - 800ea2c: d203 bcs.n 800ea36 + 800ea1c: 697b ldr r3, [r7, #20] + 800ea1e: 895b ldrh r3, [r3, #10] + 800ea20: 461a mov r2, r3 + 800ea22: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800ea24: 3308 adds r3, #8 + 800ea26: 429a cmp r2, r3 + 800ea28: d203 bcs.n 800ea32 LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("first pbuf cannot hold the ICMP header")); pbuf_free(r); - 800ea2e: 6978 ldr r0, [r7, #20] - 800ea30: f7f6 ffb4 bl 800599c + 800ea2a: 6978 ldr r0, [r7, #20] + 800ea2c: f7f6 ffb4 bl 8005998 goto icmperr; - 800ea34: e085 b.n 800eb42 + 800ea30: e085 b.n 800eb3e } /* copy the ip header */ MEMCPY(r->payload, iphdr_in, hlen); - 800ea36: 697b ldr r3, [r7, #20] - 800ea38: 685b ldr r3, [r3, #4] - 800ea3a: 8c7a ldrh r2, [r7, #34] ; 0x22 - 800ea3c: 6a79 ldr r1, [r7, #36] ; 0x24 - 800ea3e: 4618 mov r0, r3 - 800ea40: f001 fc98 bl 8010374 + 800ea32: 697b ldr r3, [r7, #20] + 800ea34: 685b ldr r3, [r3, #4] + 800ea36: 8c7a ldrh r2, [r7, #34] ; 0x22 + 800ea38: 6a79 ldr r1, [r7, #36] ; 0x24 + 800ea3a: 4618 mov r0, r3 + 800ea3c: f001 fc98 bl 8010370 /* switch r->payload back to icmp header (cannot fail) */ if (pbuf_remove_header(r, hlen)) { - 800ea44: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800ea46: 4619 mov r1, r3 - 800ea48: 6978 ldr r0, [r7, #20] - 800ea4a: f7f6 ff21 bl 8005890 - 800ea4e: 4603 mov r3, r0 - 800ea50: 2b00 cmp r3, #0 - 800ea52: d009 beq.n 800ea68 + 800ea40: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800ea42: 4619 mov r1, r3 + 800ea44: 6978 ldr r0, [r7, #20] + 800ea46: f7f6 ff21 bl 800588c + 800ea4a: 4603 mov r3, r0 + 800ea4c: 2b00 cmp r3, #0 + 800ea4e: d009 beq.n 800ea64 LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 0); - 800ea54: 4b40 ldr r3, [pc, #256] ; (800eb58 ) - 800ea56: 22b6 movs r2, #182 ; 0xb6 - 800ea58: 4940 ldr r1, [pc, #256] ; (800eb5c ) - 800ea5a: 4841 ldr r0, [pc, #260] ; (800eb60 ) - 800ea5c: f001 fcba bl 80103d4 + 800ea50: 4b40 ldr r3, [pc, #256] ; (800eb54 ) + 800ea52: 22b6 movs r2, #182 ; 0xb6 + 800ea54: 4940 ldr r1, [pc, #256] ; (800eb58 ) + 800ea56: 4841 ldr r0, [pc, #260] ; (800eb5c ) + 800ea58: f001 fcba bl 80103d0 pbuf_free(r); - 800ea60: 6978 ldr r0, [r7, #20] - 800ea62: f7f6 ff9b bl 800599c + 800ea5c: 6978 ldr r0, [r7, #20] + 800ea5e: f7f6 ff9b bl 8005998 goto icmperr; - 800ea66: e06c b.n 800eb42 + 800ea62: e06c b.n 800eb3e } /* copy the rest of the packet without ip header */ if (pbuf_copy(r, p) != ERR_OK) { - 800ea68: 6879 ldr r1, [r7, #4] - 800ea6a: 6978 ldr r0, [r7, #20] - 800ea6c: f7f7 f8be bl 8005bec - 800ea70: 4603 mov r3, r0 - 800ea72: 2b00 cmp r3, #0 - 800ea74: d003 beq.n 800ea7e + 800ea64: 6879 ldr r1, [r7, #4] + 800ea66: 6978 ldr r0, [r7, #20] + 800ea68: f7f7 f8be bl 8005be8 + 800ea6c: 4603 mov r3, r0 + 800ea6e: 2b00 cmp r3, #0 + 800ea70: d003 beq.n 800ea7a LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("icmp_input: copying to new pbuf failed")); pbuf_free(r); - 800ea76: 6978 ldr r0, [r7, #20] - 800ea78: f7f6 ff90 bl 800599c + 800ea72: 6978 ldr r0, [r7, #20] + 800ea74: f7f6 ff90 bl 8005998 goto icmperr; - 800ea7c: e061 b.n 800eb42 + 800ea78: e061 b.n 800eb3e } /* free the original p */ pbuf_free(p); - 800ea7e: 6878 ldr r0, [r7, #4] - 800ea80: f7f6 ff8c bl 800599c + 800ea7a: 6878 ldr r0, [r7, #4] + 800ea7c: f7f6 ff8c bl 8005998 /* we now have an identical copy of p that has room for link headers */ p = r; - 800ea84: 697b ldr r3, [r7, #20] - 800ea86: 607b str r3, [r7, #4] - 800ea88: e00f b.n 800eaaa + 800ea80: 697b ldr r3, [r7, #20] + 800ea82: 607b str r3, [r7, #4] + 800ea84: e00f b.n 800eaa6 } else { /* restore p->payload to point to icmp header (cannot fail) */ if (pbuf_remove_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) { - 800ea8a: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800ea8c: 330e adds r3, #14 - 800ea8e: 4619 mov r1, r3 - 800ea90: 6878 ldr r0, [r7, #4] - 800ea92: f7f6 fefd bl 8005890 - 800ea96: 4603 mov r3, r0 - 800ea98: 2b00 cmp r3, #0 - 800ea9a: d006 beq.n 800eaaa + 800ea86: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800ea88: 330e adds r3, #14 + 800ea8a: 4619 mov r1, r3 + 800ea8c: 6878 ldr r0, [r7, #4] + 800ea8e: f7f6 fefd bl 800588c + 800ea92: 4603 mov r3, r0 + 800ea94: 2b00 cmp r3, #0 + 800ea96: d006 beq.n 800eaa6 LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0); - 800ea9c: 4b2e ldr r3, [pc, #184] ; (800eb58 ) - 800ea9e: 22c7 movs r2, #199 ; 0xc7 - 800eaa0: 4930 ldr r1, [pc, #192] ; (800eb64 ) - 800eaa2: 482f ldr r0, [pc, #188] ; (800eb60 ) - 800eaa4: f001 fc96 bl 80103d4 + 800ea98: 4b2e ldr r3, [pc, #184] ; (800eb54 ) + 800ea9a: 22c7 movs r2, #199 ; 0xc7 + 800ea9c: 4930 ldr r1, [pc, #192] ; (800eb60 ) + 800ea9e: 482f ldr r0, [pc, #188] ; (800eb5c ) + 800eaa0: f001 fc96 bl 80103d0 goto icmperr; - 800eaa8: e04b b.n 800eb42 + 800eaa4: e04b b.n 800eb3e } #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN */ /* At this point, all checks are OK. */ /* We generate an answer by switching the dest and src ip addresses, * setting the icmp type to ECHO_RESPONSE and updating the checksum. */ iecho = (struct icmp_echo_hdr *)p->payload; - 800eaaa: 687b ldr r3, [r7, #4] - 800eaac: 685b ldr r3, [r3, #4] - 800eaae: 613b str r3, [r7, #16] + 800eaa6: 687b ldr r3, [r7, #4] + 800eaa8: 685b ldr r3, [r3, #4] + 800eaaa: 613b str r3, [r7, #16] if (pbuf_add_header(p, hlen)) { - 800eab0: 8c7b ldrh r3, [r7, #34] ; 0x22 - 800eab2: 4619 mov r1, r3 - 800eab4: 6878 ldr r0, [r7, #4] - 800eab6: f7f6 fedb bl 8005870 - 800eaba: 4603 mov r3, r0 - 800eabc: 2b00 cmp r3, #0 - 800eabe: d12b bne.n 800eb18 + 800eaac: 8c7b ldrh r3, [r7, #34] ; 0x22 + 800eaae: 4619 mov r1, r3 + 800eab0: 6878 ldr r0, [r7, #4] + 800eab2: f7f6 fedb bl 800586c + 800eab6: 4603 mov r3, r0 + 800eab8: 2b00 cmp r3, #0 + 800eaba: d12b bne.n 800eb14 LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over header in packet")); } else { err_t ret; struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; - 800eac0: 687b ldr r3, [r7, #4] - 800eac2: 685b ldr r3, [r3, #4] - 800eac4: 60fb str r3, [r7, #12] + 800eabc: 687b ldr r3, [r7, #4] + 800eabe: 685b ldr r3, [r3, #4] + 800eac0: 60fb str r3, [r7, #12] ip4_addr_copy(iphdr->src, *src); - 800eac6: 69fb ldr r3, [r7, #28] - 800eac8: 681a ldr r2, [r3, #0] - 800eaca: 68fb ldr r3, [r7, #12] - 800eacc: 60da str r2, [r3, #12] + 800eac2: 69fb ldr r3, [r7, #28] + 800eac4: 681a ldr r2, [r3, #0] + 800eac6: 68fb ldr r3, [r7, #12] + 800eac8: 60da str r2, [r3, #12] ip4_addr_copy(iphdr->dest, *ip4_current_src_addr()); - 800eace: 4b20 ldr r3, [pc, #128] ; (800eb50 ) - 800ead0: 691a ldr r2, [r3, #16] - 800ead2: 68fb ldr r3, [r7, #12] - 800ead4: 611a str r2, [r3, #16] + 800eaca: 4b20 ldr r3, [pc, #128] ; (800eb4c ) + 800eacc: 691a ldr r2, [r3, #16] + 800eace: 68fb ldr r3, [r7, #12] + 800ead0: 611a str r2, [r3, #16] ICMPH_TYPE_SET(iecho, ICMP_ER); - 800ead6: 693b ldr r3, [r7, #16] - 800ead8: 2200 movs r2, #0 - 800eada: 701a strb r2, [r3, #0] + 800ead2: 693b ldr r3, [r7, #16] + 800ead4: 2200 movs r2, #0 + 800ead6: 701a strb r2, [r3, #0] else { iecho->chksum = 0; } #endif /* LWIP_CHECKSUM_CTRL_PER_NETIF */ #else /* CHECKSUM_GEN_ICMP */ iecho->chksum = 0; - 800eadc: 693b ldr r3, [r7, #16] + 800ead8: 693b ldr r3, [r7, #16] + 800eada: 2200 movs r2, #0 + 800eadc: 709a strb r2, [r3, #2] 800eade: 2200 movs r2, #0 - 800eae0: 709a strb r2, [r3, #2] - 800eae2: 2200 movs r2, #0 - 800eae4: 70da strb r2, [r3, #3] + 800eae0: 70da strb r2, [r3, #3] #endif /* CHECKSUM_GEN_ICMP */ /* Set the correct TTL and recalculate the header checksum. */ IPH_TTL_SET(iphdr, ICMP_TTL); - 800eae6: 68fb ldr r3, [r7, #12] - 800eae8: 22ff movs r2, #255 ; 0xff - 800eaea: 721a strb r2, [r3, #8] + 800eae2: 68fb ldr r3, [r7, #12] + 800eae4: 22ff movs r2, #255 ; 0xff + 800eae6: 721a strb r2, [r3, #8] IPH_CHKSUM_SET(iphdr, 0); - 800eaec: 68fb ldr r3, [r7, #12] + 800eae8: 68fb ldr r3, [r7, #12] + 800eaea: 2200 movs r2, #0 + 800eaec: 729a strb r2, [r3, #10] 800eaee: 2200 movs r2, #0 - 800eaf0: 729a strb r2, [r3, #10] - 800eaf2: 2200 movs r2, #0 - 800eaf4: 72da strb r2, [r3, #11] + 800eaf0: 72da strb r2, [r3, #11] MIB2_STATS_INC(mib2.icmpoutmsgs); /* increase number of echo replies attempted to send */ MIB2_STATS_INC(mib2.icmpoutechoreps); /* send an ICMP packet */ ret = ip4_output_if(p, src, LWIP_IP_HDRINCL, - 800eaf6: 683b ldr r3, [r7, #0] - 800eaf8: 9302 str r3, [sp, #8] - 800eafa: 2301 movs r3, #1 - 800eafc: 9301 str r3, [sp, #4] - 800eafe: 2300 movs r3, #0 - 800eb00: 9300 str r3, [sp, #0] - 800eb02: 23ff movs r3, #255 ; 0xff - 800eb04: 2200 movs r2, #0 - 800eb06: 69f9 ldr r1, [r7, #28] - 800eb08: 6878 ldr r0, [r7, #4] - 800eb0a: f000 fa93 bl 800f034 - 800eb0e: 4603 mov r3, r0 - 800eb10: 72fb strb r3, [r7, #11] + 800eaf2: 683b ldr r3, [r7, #0] + 800eaf4: 9302 str r3, [sp, #8] + 800eaf6: 2301 movs r3, #1 + 800eaf8: 9301 str r3, [sp, #4] + 800eafa: 2300 movs r3, #0 + 800eafc: 9300 str r3, [sp, #0] + 800eafe: 23ff movs r3, #255 ; 0xff + 800eb00: 2200 movs r2, #0 + 800eb02: 69f9 ldr r1, [r7, #28] + 800eb04: 6878 ldr r0, [r7, #4] + 800eb06: f000 fa93 bl 800f030 + 800eb0a: 4603 mov r3, r0 + 800eb0c: 72fb strb r3, [r7, #11] ICMP_TTL, 0, IP_PROTO_ICMP, inp); if (ret != ERR_OK) { LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ip_output_if returned an error: %s\n", lwip_strerr(ret))); } } break; - 800eb12: e001 b.n 800eb18 + 800eb0e: e001 b.n 800eb14 + break; + 800eb10: bf00 nop + 800eb12: e000 b.n 800eb16 break; 800eb14: bf00 nop - 800eb16: e000 b.n 800eb1a - break; - 800eb18: bf00 nop LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %"S16_F" code %"S16_F" not supported.\n", (s16_t)type, (s16_t)code)); ICMP_STATS_INC(icmp.proterr); ICMP_STATS_INC(icmp.drop); } pbuf_free(p); - 800eb1a: 6878 ldr r0, [r7, #4] - 800eb1c: f7f6 ff3e bl 800599c + 800eb16: 6878 ldr r0, [r7, #4] + 800eb18: f7f6 ff3e bl 8005998 return; - 800eb20: e013 b.n 800eb4a + 800eb1c: e013 b.n 800eb46 + goto lenerr; + 800eb1e: bf00 nop + 800eb20: e002 b.n 800eb28 goto lenerr; 800eb22: bf00 nop - 800eb24: e002 b.n 800eb2c - goto lenerr; - 800eb26: bf00 nop - 800eb28: e000 b.n 800eb2c + 800eb24: e000 b.n 800eb28 goto lenerr; - 800eb2a: bf00 nop + 800eb26: bf00 nop lenerr: pbuf_free(p); - 800eb2c: 6878 ldr r0, [r7, #4] - 800eb2e: f7f6 ff35 bl 800599c + 800eb28: 6878 ldr r0, [r7, #4] + 800eb2a: f7f6 ff35 bl 8005998 ICMP_STATS_INC(icmp.lenerr); MIB2_STATS_INC(mib2.icmpinerrors); return; - 800eb32: e00a b.n 800eb4a + 800eb2e: e00a b.n 800eb46 + goto icmperr; + 800eb30: bf00 nop + 800eb32: e004 b.n 800eb3e goto icmperr; 800eb34: bf00 nop - 800eb36: e004 b.n 800eb42 - goto icmperr; + 800eb36: e002 b.n 800eb3e + goto icmperr; 800eb38: bf00 nop - 800eb3a: e002 b.n 800eb42 + 800eb3a: e000 b.n 800eb3e goto icmperr; 800eb3c: bf00 nop - 800eb3e: e000 b.n 800eb42 - goto icmperr; - 800eb40: bf00 nop #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING icmperr: pbuf_free(p); - 800eb42: 6878 ldr r0, [r7, #4] - 800eb44: f7f6 ff2a bl 800599c + 800eb3e: 6878 ldr r0, [r7, #4] + 800eb40: f7f6 ff2a bl 8005998 ICMP_STATS_INC(icmp.err); MIB2_STATS_INC(mib2.icmpinerrors); return; - 800eb48: bf00 nop + 800eb44: bf00 nop #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING */ } - 800eb4a: 3728 adds r7, #40 ; 0x28 - 800eb4c: 46bd mov sp, r7 - 800eb4e: bd80 pop {r7, pc} - 800eb50: 20005670 .word 0x20005670 - 800eb54: 20005684 .word 0x20005684 - 800eb58: 08017824 .word 0x08017824 - 800eb5c: 0801785c .word 0x0801785c - 800eb60: 08017894 .word 0x08017894 - 800eb64: 080178bc .word 0x080178bc + 800eb46: 3728 adds r7, #40 ; 0x28 + 800eb48: 46bd mov sp, r7 + 800eb4a: bd80 pop {r7, pc} + 800eb4c: 20005670 .word 0x20005670 + 800eb50: 20005684 .word 0x20005684 + 800eb54: 08017824 .word 0x08017824 + 800eb58: 0801785c .word 0x0801785c + 800eb5c: 08017894 .word 0x08017894 + 800eb60: 080178bc .word 0x080178bc -0800eb68 : +0800eb64 : * p->payload pointing to the IP header * @param t type of the 'unreachable' packet */ void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t) { - 800eb68: b580 push {r7, lr} - 800eb6a: b082 sub sp, #8 - 800eb6c: af00 add r7, sp, #0 - 800eb6e: 6078 str r0, [r7, #4] - 800eb70: 460b mov r3, r1 - 800eb72: 70fb strb r3, [r7, #3] + 800eb64: b580 push {r7, lr} + 800eb66: b082 sub sp, #8 + 800eb68: af00 add r7, sp, #0 + 800eb6a: 6078 str r0, [r7, #4] + 800eb6c: 460b mov r3, r1 + 800eb6e: 70fb strb r3, [r7, #3] MIB2_STATS_INC(mib2.icmpoutdestunreachs); icmp_send_response(p, ICMP_DUR, t); - 800eb74: 78fb ldrb r3, [r7, #3] - 800eb76: 461a mov r2, r3 - 800eb78: 2103 movs r1, #3 - 800eb7a: 6878 ldr r0, [r7, #4] - 800eb7c: f000 f814 bl 800eba8 + 800eb70: 78fb ldrb r3, [r7, #3] + 800eb72: 461a mov r2, r3 + 800eb74: 2103 movs r1, #3 + 800eb76: 6878 ldr r0, [r7, #4] + 800eb78: f000 f814 bl 800eba4 } - 800eb80: bf00 nop - 800eb82: 3708 adds r7, #8 - 800eb84: 46bd mov sp, r7 - 800eb86: bd80 pop {r7, pc} + 800eb7c: bf00 nop + 800eb7e: 3708 adds r7, #8 + 800eb80: 46bd mov sp, r7 + 800eb82: bd80 pop {r7, pc} -0800eb88 : +0800eb84 : * p->payload pointing to the IP header * @param t type of the 'time exceeded' packet */ void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t) { - 800eb88: b580 push {r7, lr} - 800eb8a: b082 sub sp, #8 - 800eb8c: af00 add r7, sp, #0 - 800eb8e: 6078 str r0, [r7, #4] - 800eb90: 460b mov r3, r1 - 800eb92: 70fb strb r3, [r7, #3] + 800eb84: b580 push {r7, lr} + 800eb86: b082 sub sp, #8 + 800eb88: af00 add r7, sp, #0 + 800eb8a: 6078 str r0, [r7, #4] + 800eb8c: 460b mov r3, r1 + 800eb8e: 70fb strb r3, [r7, #3] MIB2_STATS_INC(mib2.icmpouttimeexcds); icmp_send_response(p, ICMP_TE, t); - 800eb94: 78fb ldrb r3, [r7, #3] - 800eb96: 461a mov r2, r3 - 800eb98: 210b movs r1, #11 - 800eb9a: 6878 ldr r0, [r7, #4] - 800eb9c: f000 f804 bl 800eba8 + 800eb90: 78fb ldrb r3, [r7, #3] + 800eb92: 461a mov r2, r3 + 800eb94: 210b movs r1, #11 + 800eb96: 6878 ldr r0, [r7, #4] + 800eb98: f000 f804 bl 800eba4 } - 800eba0: bf00 nop - 800eba2: 3708 adds r7, #8 - 800eba4: 46bd mov sp, r7 - 800eba6: bd80 pop {r7, pc} + 800eb9c: bf00 nop + 800eb9e: 3708 adds r7, #8 + 800eba0: 46bd mov sp, r7 + 800eba2: bd80 pop {r7, pc} -0800eba8 : +0800eba4 : * @param type Type of the ICMP header * @param code Code of the ICMP header */ static void icmp_send_response(struct pbuf *p, u8_t type, u8_t code) { - 800eba8: b580 push {r7, lr} - 800ebaa: b08c sub sp, #48 ; 0x30 - 800ebac: af04 add r7, sp, #16 - 800ebae: 6078 str r0, [r7, #4] - 800ebb0: 460b mov r3, r1 - 800ebb2: 70fb strb r3, [r7, #3] - 800ebb4: 4613 mov r3, r2 - 800ebb6: 70bb strb r3, [r7, #2] + 800eba4: b580 push {r7, lr} + 800eba6: b08c sub sp, #48 ; 0x30 + 800eba8: af04 add r7, sp, #16 + 800ebaa: 6078 str r0, [r7, #4] + 800ebac: 460b mov r3, r1 + 800ebae: 70fb strb r3, [r7, #3] + 800ebb0: 4613 mov r3, r2 + 800ebb2: 70bb strb r3, [r7, #2] /* increase number of messages attempted to send */ MIB2_STATS_INC(mib2.icmpoutmsgs); /* ICMP header + IP header + 8 bytes of data */ q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE, - 800ebb8: f44f 7220 mov.w r2, #640 ; 0x280 - 800ebbc: 2124 movs r1, #36 ; 0x24 - 800ebbe: 2022 movs r0, #34 ; 0x22 - 800ebc0: f7f6 fc08 bl 80053d4 - 800ebc4: 61f8 str r0, [r7, #28] + 800ebb4: f44f 7220 mov.w r2, #640 ; 0x280 + 800ebb8: 2124 movs r1, #36 ; 0x24 + 800ebba: 2022 movs r0, #34 ; 0x22 + 800ebbc: f7f6 fc08 bl 80053d0 + 800ebc0: 61f8 str r0, [r7, #28] PBUF_RAM); if (q == NULL) { - 800ebc6: 69fb ldr r3, [r7, #28] - 800ebc8: 2b00 cmp r3, #0 - 800ebca: d04c beq.n 800ec66 + 800ebc2: 69fb ldr r3, [r7, #28] + 800ebc4: 2b00 cmp r3, #0 + 800ebc6: d04c beq.n 800ec62 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded: failed to allocate pbuf for ICMP packet.\n")); MIB2_STATS_INC(mib2.icmpouterrors); return; } LWIP_ASSERT("check that first pbuf can hold icmp message", - 800ebcc: 69fb ldr r3, [r7, #28] - 800ebce: 895b ldrh r3, [r3, #10] - 800ebd0: 2b23 cmp r3, #35 ; 0x23 - 800ebd2: d806 bhi.n 800ebe2 - 800ebd4: 4b26 ldr r3, [pc, #152] ; (800ec70 ) - 800ebd6: f44f 72b4 mov.w r2, #360 ; 0x168 - 800ebda: 4926 ldr r1, [pc, #152] ; (800ec74 ) - 800ebdc: 4826 ldr r0, [pc, #152] ; (800ec78 ) - 800ebde: f001 fbf9 bl 80103d4 + 800ebc8: 69fb ldr r3, [r7, #28] + 800ebca: 895b ldrh r3, [r3, #10] + 800ebcc: 2b23 cmp r3, #35 ; 0x23 + 800ebce: d806 bhi.n 800ebde + 800ebd0: 4b26 ldr r3, [pc, #152] ; (800ec6c ) + 800ebd2: f44f 72b4 mov.w r2, #360 ; 0x168 + 800ebd6: 4926 ldr r1, [pc, #152] ; (800ec70 ) + 800ebd8: 4826 ldr r0, [pc, #152] ; (800ec74 ) + 800ebda: f001 fbf9 bl 80103d0 (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE))); iphdr = (struct ip_hdr *)p->payload; - 800ebe2: 687b ldr r3, [r7, #4] - 800ebe4: 685b ldr r3, [r3, #4] - 800ebe6: 61bb str r3, [r7, #24] + 800ebde: 687b ldr r3, [r7, #4] + 800ebe0: 685b ldr r3, [r3, #4] + 800ebe2: 61bb str r3, [r7, #24] ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->src); LWIP_DEBUGF(ICMP_DEBUG, (" to ")); ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->dest); LWIP_DEBUGF(ICMP_DEBUG, ("\n")); icmphdr = (struct icmp_echo_hdr *)q->payload; - 800ebe8: 69fb ldr r3, [r7, #28] - 800ebea: 685b ldr r3, [r3, #4] - 800ebec: 617b str r3, [r7, #20] + 800ebe4: 69fb ldr r3, [r7, #28] + 800ebe6: 685b ldr r3, [r3, #4] + 800ebe8: 617b str r3, [r7, #20] icmphdr->type = type; - 800ebee: 697b ldr r3, [r7, #20] - 800ebf0: 78fa ldrb r2, [r7, #3] - 800ebf2: 701a strb r2, [r3, #0] + 800ebea: 697b ldr r3, [r7, #20] + 800ebec: 78fa ldrb r2, [r7, #3] + 800ebee: 701a strb r2, [r3, #0] icmphdr->code = code; - 800ebf4: 697b ldr r3, [r7, #20] - 800ebf6: 78ba ldrb r2, [r7, #2] - 800ebf8: 705a strb r2, [r3, #1] + 800ebf0: 697b ldr r3, [r7, #20] + 800ebf2: 78ba ldrb r2, [r7, #2] + 800ebf4: 705a strb r2, [r3, #1] icmphdr->id = 0; - 800ebfa: 697b ldr r3, [r7, #20] + 800ebf6: 697b ldr r3, [r7, #20] + 800ebf8: 2200 movs r2, #0 + 800ebfa: 711a strb r2, [r3, #4] 800ebfc: 2200 movs r2, #0 - 800ebfe: 711a strb r2, [r3, #4] - 800ec00: 2200 movs r2, #0 - 800ec02: 715a strb r2, [r3, #5] + 800ebfe: 715a strb r2, [r3, #5] icmphdr->seqno = 0; - 800ec04: 697b ldr r3, [r7, #20] + 800ec00: 697b ldr r3, [r7, #20] + 800ec02: 2200 movs r2, #0 + 800ec04: 719a strb r2, [r3, #6] 800ec06: 2200 movs r2, #0 - 800ec08: 719a strb r2, [r3, #6] - 800ec0a: 2200 movs r2, #0 - 800ec0c: 71da strb r2, [r3, #7] + 800ec08: 71da strb r2, [r3, #7] /* copy fields from original packet */ SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload, - 800ec0e: 69fb ldr r3, [r7, #28] - 800ec10: 685b ldr r3, [r3, #4] - 800ec12: f103 0008 add.w r0, r3, #8 - 800ec16: 687b ldr r3, [r7, #4] - 800ec18: 685b ldr r3, [r3, #4] - 800ec1a: 221c movs r2, #28 - 800ec1c: 4619 mov r1, r3 - 800ec1e: f001 fba9 bl 8010374 + 800ec0a: 69fb ldr r3, [r7, #28] + 800ec0c: 685b ldr r3, [r3, #4] + 800ec0e: f103 0008 add.w r0, r3, #8 + 800ec12: 687b ldr r3, [r7, #4] + 800ec14: 685b ldr r3, [r3, #4] + 800ec16: 221c movs r2, #28 + 800ec18: 4619 mov r1, r3 + 800ec1a: f001 fba9 bl 8010370 IP_HLEN + ICMP_DEST_UNREACH_DATASIZE); ip4_addr_copy(iphdr_src, iphdr->src); - 800ec22: 69bb ldr r3, [r7, #24] - 800ec24: 68db ldr r3, [r3, #12] - 800ec26: 60fb str r3, [r7, #12] + 800ec1e: 69bb ldr r3, [r7, #24] + 800ec20: 68db ldr r3, [r3, #12] + 800ec22: 60fb str r3, [r7, #12] ip4_addr_t iphdr_dst; ip4_addr_copy(iphdr_dst, iphdr->dest); netif = ip4_route_src(&iphdr_dst, &iphdr_src); } #else netif = ip4_route(&iphdr_src); - 800ec28: f107 030c add.w r3, r7, #12 - 800ec2c: 4618 mov r0, r3 - 800ec2e: f000 f825 bl 800ec7c - 800ec32: 6138 str r0, [r7, #16] + 800ec24: f107 030c add.w r3, r7, #12 + 800ec28: 4618 mov r0, r3 + 800ec2a: f000 f825 bl 800ec78 + 800ec2e: 6138 str r0, [r7, #16] #endif if (netif != NULL) { - 800ec34: 693b ldr r3, [r7, #16] - 800ec36: 2b00 cmp r3, #0 - 800ec38: d011 beq.n 800ec5e + 800ec30: 693b ldr r3, [r7, #16] + 800ec32: 2b00 cmp r3, #0 + 800ec34: d011 beq.n 800ec5a /* calculate checksum */ icmphdr->chksum = 0; - 800ec3a: 697b ldr r3, [r7, #20] + 800ec36: 697b ldr r3, [r7, #20] + 800ec38: 2200 movs r2, #0 + 800ec3a: 709a strb r2, [r3, #2] 800ec3c: 2200 movs r2, #0 - 800ec3e: 709a strb r2, [r3, #2] - 800ec40: 2200 movs r2, #0 - 800ec42: 70da strb r2, [r3, #3] + 800ec3e: 70da strb r2, [r3, #3] IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP) { icmphdr->chksum = inet_chksum(icmphdr, q->len); } #endif ICMP_STATS_INC(icmp.xmit); ip4_output_if(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP, netif); - 800ec44: f107 020c add.w r2, r7, #12 - 800ec48: 693b ldr r3, [r7, #16] - 800ec4a: 9302 str r3, [sp, #8] - 800ec4c: 2301 movs r3, #1 - 800ec4e: 9301 str r3, [sp, #4] - 800ec50: 2300 movs r3, #0 - 800ec52: 9300 str r3, [sp, #0] - 800ec54: 23ff movs r3, #255 ; 0xff - 800ec56: 2100 movs r1, #0 - 800ec58: 69f8 ldr r0, [r7, #28] - 800ec5a: f000 f9eb bl 800f034 + 800ec40: f107 020c add.w r2, r7, #12 + 800ec44: 693b ldr r3, [r7, #16] + 800ec46: 9302 str r3, [sp, #8] + 800ec48: 2301 movs r3, #1 + 800ec4a: 9301 str r3, [sp, #4] + 800ec4c: 2300 movs r3, #0 + 800ec4e: 9300 str r3, [sp, #0] + 800ec50: 23ff movs r3, #255 ; 0xff + 800ec52: 2100 movs r1, #0 + 800ec54: 69f8 ldr r0, [r7, #28] + 800ec56: f000 f9eb bl 800f030 } pbuf_free(q); - 800ec5e: 69f8 ldr r0, [r7, #28] - 800ec60: f7f6 fe9c bl 800599c - 800ec64: e000 b.n 800ec68 + 800ec5a: 69f8 ldr r0, [r7, #28] + 800ec5c: f7f6 fe9c bl 8005998 + 800ec60: e000 b.n 800ec64 return; - 800ec66: bf00 nop + 800ec62: bf00 nop } - 800ec68: 3720 adds r7, #32 - 800ec6a: 46bd mov sp, r7 - 800ec6c: bd80 pop {r7, pc} - 800ec6e: bf00 nop - 800ec70: 08017824 .word 0x08017824 - 800ec74: 080178f0 .word 0x080178f0 - 800ec78: 08017894 .word 0x08017894 + 800ec64: 3720 adds r7, #32 + 800ec66: 46bd mov sp, r7 + 800ec68: bd80 pop {r7, pc} + 800ec6a: bf00 nop + 800ec6c: 08017824 .word 0x08017824 + 800ec70: 080178f0 .word 0x080178f0 + 800ec74: 08017894 .word 0x08017894 -0800ec7c : +0800ec78 : * @param dest the destination IP address for which to find the route * @return the netif on which to send to reach dest */ struct netif * ip4_route(const ip4_addr_t *dest) { - 800ec7c: b480 push {r7} - 800ec7e: b085 sub sp, #20 - 800ec80: af00 add r7, sp, #0 - 800ec82: 6078 str r0, [r7, #4] + 800ec78: b480 push {r7} + 800ec7a: b085 sub sp, #20 + 800ec7c: af00 add r7, sp, #0 + 800ec7e: 6078 str r0, [r7, #4] /* bug #54569: in case LWIP_SINGLE_NETIF=1 and LWIP_DEBUGF() disabled, the following loop is optimized away */ LWIP_UNUSED_ARG(dest); /* iterate through netifs */ NETIF_FOREACH(netif) { - 800ec84: 4b33 ldr r3, [pc, #204] ; (800ed54 ) - 800ec86: 681b ldr r3, [r3, #0] - 800ec88: 60fb str r3, [r7, #12] - 800ec8a: e036 b.n 800ecfa + 800ec80: 4b33 ldr r3, [pc, #204] ; (800ed50 ) + 800ec82: 681b ldr r3, [r3, #0] + 800ec84: 60fb str r3, [r7, #12] + 800ec86: e036 b.n 800ecf6 /* is the netif up, does it have a link and a valid address? */ if (netif_is_up(netif) && netif_is_link_up(netif) && !ip4_addr_isany_val(*netif_ip4_addr(netif))) { - 800ec8c: 68fb ldr r3, [r7, #12] - 800ec8e: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800ec92: f003 0301 and.w r3, r3, #1 - 800ec96: b2db uxtb r3, r3 - 800ec98: 2b00 cmp r3, #0 - 800ec9a: d02b beq.n 800ecf4 - 800ec9c: 68fb ldr r3, [r7, #12] - 800ec9e: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800eca2: 089b lsrs r3, r3, #2 - 800eca4: f003 0301 and.w r3, r3, #1 - 800eca8: b2db uxtb r3, r3 - 800ecaa: 2b00 cmp r3, #0 - 800ecac: d022 beq.n 800ecf4 - 800ecae: 68fb ldr r3, [r7, #12] - 800ecb0: 3304 adds r3, #4 - 800ecb2: 681b ldr r3, [r3, #0] - 800ecb4: 2b00 cmp r3, #0 - 800ecb6: d01d beq.n 800ecf4 + 800ec88: 68fb ldr r3, [r7, #12] + 800ec8a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800ec8e: f003 0301 and.w r3, r3, #1 + 800ec92: b2db uxtb r3, r3 + 800ec94: 2b00 cmp r3, #0 + 800ec96: d02b beq.n 800ecf0 + 800ec98: 68fb ldr r3, [r7, #12] + 800ec9a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800ec9e: 089b lsrs r3, r3, #2 + 800eca0: f003 0301 and.w r3, r3, #1 + 800eca4: b2db uxtb r3, r3 + 800eca6: 2b00 cmp r3, #0 + 800eca8: d022 beq.n 800ecf0 + 800ecaa: 68fb ldr r3, [r7, #12] + 800ecac: 3304 adds r3, #4 + 800ecae: 681b ldr r3, [r3, #0] + 800ecb0: 2b00 cmp r3, #0 + 800ecb2: d01d beq.n 800ecf0 /* network mask matches? */ if (ip4_addr_netcmp(dest, netif_ip4_addr(netif), netif_ip4_netmask(netif))) { - 800ecb8: 687b ldr r3, [r7, #4] - 800ecba: 681a ldr r2, [r3, #0] - 800ecbc: 68fb ldr r3, [r7, #12] - 800ecbe: 3304 adds r3, #4 - 800ecc0: 681b ldr r3, [r3, #0] - 800ecc2: 405a eors r2, r3 - 800ecc4: 68fb ldr r3, [r7, #12] - 800ecc6: 3308 adds r3, #8 - 800ecc8: 681b ldr r3, [r3, #0] - 800ecca: 4013 ands r3, r2 - 800eccc: 2b00 cmp r3, #0 - 800ecce: d101 bne.n 800ecd4 + 800ecb4: 687b ldr r3, [r7, #4] + 800ecb6: 681a ldr r2, [r3, #0] + 800ecb8: 68fb ldr r3, [r7, #12] + 800ecba: 3304 adds r3, #4 + 800ecbc: 681b ldr r3, [r3, #0] + 800ecbe: 405a eors r2, r3 + 800ecc0: 68fb ldr r3, [r7, #12] + 800ecc2: 3308 adds r3, #8 + 800ecc4: 681b ldr r3, [r3, #0] + 800ecc6: 4013 ands r3, r2 + 800ecc8: 2b00 cmp r3, #0 + 800ecca: d101 bne.n 800ecd0 /* return netif on which to forward IP packet */ return netif; - 800ecd0: 68fb ldr r3, [r7, #12] - 800ecd2: e038 b.n 800ed46 + 800eccc: 68fb ldr r3, [r7, #12] + 800ecce: e038 b.n 800ed42 } /* gateway matches on a non broadcast interface? (i.e. peer in a point to point interface) */ if (((netif->flags & NETIF_FLAG_BROADCAST) == 0) && ip4_addr_cmp(dest, netif_ip4_gw(netif))) { - 800ecd4: 68fb ldr r3, [r7, #12] - 800ecd6: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800ecda: f003 0302 and.w r3, r3, #2 - 800ecde: 2b00 cmp r3, #0 - 800ece0: d108 bne.n 800ecf4 - 800ece2: 687b ldr r3, [r7, #4] - 800ece4: 681a ldr r2, [r3, #0] - 800ece6: 68fb ldr r3, [r7, #12] - 800ece8: 330c adds r3, #12 - 800ecea: 681b ldr r3, [r3, #0] - 800ecec: 429a cmp r2, r3 - 800ecee: d101 bne.n 800ecf4 + 800ecd0: 68fb ldr r3, [r7, #12] + 800ecd2: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800ecd6: f003 0302 and.w r3, r3, #2 + 800ecda: 2b00 cmp r3, #0 + 800ecdc: d108 bne.n 800ecf0 + 800ecde: 687b ldr r3, [r7, #4] + 800ece0: 681a ldr r2, [r3, #0] + 800ece2: 68fb ldr r3, [r7, #12] + 800ece4: 330c adds r3, #12 + 800ece6: 681b ldr r3, [r3, #0] + 800ece8: 429a cmp r2, r3 + 800ecea: d101 bne.n 800ecf0 /* return netif on which to forward IP packet */ return netif; - 800ecf0: 68fb ldr r3, [r7, #12] - 800ecf2: e028 b.n 800ed46 + 800ecec: 68fb ldr r3, [r7, #12] + 800ecee: e028 b.n 800ed42 NETIF_FOREACH(netif) { - 800ecf4: 68fb ldr r3, [r7, #12] - 800ecf6: 681b ldr r3, [r3, #0] - 800ecf8: 60fb str r3, [r7, #12] - 800ecfa: 68fb ldr r3, [r7, #12] - 800ecfc: 2b00 cmp r3, #0 - 800ecfe: d1c5 bne.n 800ec8c + 800ecf0: 68fb ldr r3, [r7, #12] + 800ecf2: 681b ldr r3, [r3, #0] + 800ecf4: 60fb str r3, [r7, #12] + 800ecf6: 68fb ldr r3, [r7, #12] + 800ecf8: 2b00 cmp r3, #0 + 800ecfa: d1c5 bne.n 800ec88 return netif; } #endif #endif /* !LWIP_SINGLE_NETIF */ if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) || - 800ed00: 4b15 ldr r3, [pc, #84] ; (800ed58 ) - 800ed02: 681b ldr r3, [r3, #0] - 800ed04: 2b00 cmp r3, #0 - 800ed06: d01a beq.n 800ed3e - 800ed08: 4b13 ldr r3, [pc, #76] ; (800ed58 ) - 800ed0a: 681b ldr r3, [r3, #0] - 800ed0c: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800ed10: f003 0301 and.w r3, r3, #1 - 800ed14: 2b00 cmp r3, #0 - 800ed16: d012 beq.n 800ed3e - 800ed18: 4b0f ldr r3, [pc, #60] ; (800ed58 ) - 800ed1a: 681b ldr r3, [r3, #0] - 800ed1c: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800ed20: f003 0304 and.w r3, r3, #4 - 800ed24: 2b00 cmp r3, #0 - 800ed26: d00a beq.n 800ed3e + 800ecfc: 4b15 ldr r3, [pc, #84] ; (800ed54 ) + 800ecfe: 681b ldr r3, [r3, #0] + 800ed00: 2b00 cmp r3, #0 + 800ed02: d01a beq.n 800ed3a + 800ed04: 4b13 ldr r3, [pc, #76] ; (800ed54 ) + 800ed06: 681b ldr r3, [r3, #0] + 800ed08: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800ed0c: f003 0301 and.w r3, r3, #1 + 800ed10: 2b00 cmp r3, #0 + 800ed12: d012 beq.n 800ed3a + 800ed14: 4b0f ldr r3, [pc, #60] ; (800ed54 ) + 800ed16: 681b ldr r3, [r3, #0] + 800ed18: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800ed1c: f003 0304 and.w r3, r3, #4 + 800ed20: 2b00 cmp r3, #0 + 800ed22: d00a beq.n 800ed3a ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) { - 800ed28: 4b0b ldr r3, [pc, #44] ; (800ed58 ) + 800ed24: 4b0b ldr r3, [pc, #44] ; (800ed54 ) + 800ed26: 681b ldr r3, [r3, #0] + 800ed28: 3304 adds r3, #4 800ed2a: 681b ldr r3, [r3, #0] - 800ed2c: 3304 adds r3, #4 - 800ed2e: 681b ldr r3, [r3, #0] if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) || - 800ed30: 2b00 cmp r3, #0 - 800ed32: d004 beq.n 800ed3e + 800ed2c: 2b00 cmp r3, #0 + 800ed2e: d004 beq.n 800ed3a ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) { - 800ed34: 687b ldr r3, [r7, #4] - 800ed36: 681b ldr r3, [r3, #0] - 800ed38: b2db uxtb r3, r3 - 800ed3a: 2b7f cmp r3, #127 ; 0x7f - 800ed3c: d101 bne.n 800ed42 + 800ed30: 687b ldr r3, [r7, #4] + 800ed32: 681b ldr r3, [r3, #0] + 800ed34: b2db uxtb r3, r3 + 800ed36: 2b7f cmp r3, #127 ; 0x7f + 800ed38: d101 bne.n 800ed3e If this is not good enough for you, use LWIP_HOOK_IP4_ROUTE() */ LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_route: No route to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest))); IP_STATS_INC(ip.rterr); MIB2_STATS_INC(mib2.ipoutnoroutes); return NULL; - 800ed3e: 2300 movs r3, #0 - 800ed40: e001 b.n 800ed46 + 800ed3a: 2300 movs r3, #0 + 800ed3c: e001 b.n 800ed42 } return netif_default; - 800ed42: 4b05 ldr r3, [pc, #20] ; (800ed58 ) - 800ed44: 681b ldr r3, [r3, #0] + 800ed3e: 4b05 ldr r3, [pc, #20] ; (800ed54 ) + 800ed40: 681b ldr r3, [r3, #0] } - 800ed46: 4618 mov r0, r3 - 800ed48: 3714 adds r7, #20 - 800ed4a: 46bd mov sp, r7 - 800ed4c: f85d 7b04 ldr.w r7, [sp], #4 - 800ed50: 4770 bx lr - 800ed52: bf00 nop - 800ed54: 20008bf4 .word 0x20008bf4 - 800ed58: 20008bf8 .word 0x20008bf8 + 800ed42: 4618 mov r0, r3 + 800ed44: 3714 adds r7, #20 + 800ed46: 46bd mov sp, r7 + 800ed48: f85d 7b04 ldr.w r7, [sp], #4 + 800ed4c: 4770 bx lr + 800ed4e: bf00 nop + 800ed50: 20008bf4 .word 0x20008bf4 + 800ed54: 20008bf8 .word 0x20008bf8 -0800ed5c : +0800ed58 : #endif /* IP_FORWARD */ /** Return true if the current input packet should be accepted on this netif */ static int ip4_input_accept(struct netif *netif) { - 800ed5c: b580 push {r7, lr} - 800ed5e: b082 sub sp, #8 - 800ed60: af00 add r7, sp, #0 - 800ed62: 6078 str r0, [r7, #4] + 800ed58: b580 push {r7, lr} + 800ed5a: b082 sub sp, #8 + 800ed5c: af00 add r7, sp, #0 + 800ed5e: 6078 str r0, [r7, #4] ip4_addr_get_u32(ip4_current_dest_addr()) & ip4_addr_get_u32(netif_ip4_netmask(netif)), ip4_addr_get_u32(netif_ip4_addr(netif)) & ip4_addr_get_u32(netif_ip4_netmask(netif)), ip4_addr_get_u32(ip4_current_dest_addr()) & ~ip4_addr_get_u32(netif_ip4_netmask(netif)))); /* interface is up and configured? */ if ((netif_is_up(netif)) && (!ip4_addr_isany_val(*netif_ip4_addr(netif)))) { - 800ed64: 687b ldr r3, [r7, #4] - 800ed66: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800ed6a: f003 0301 and.w r3, r3, #1 - 800ed6e: b2db uxtb r3, r3 - 800ed70: 2b00 cmp r3, #0 - 800ed72: d016 beq.n 800eda2 - 800ed74: 687b ldr r3, [r7, #4] - 800ed76: 3304 adds r3, #4 - 800ed78: 681b ldr r3, [r3, #0] - 800ed7a: 2b00 cmp r3, #0 - 800ed7c: d011 beq.n 800eda2 + 800ed60: 687b ldr r3, [r7, #4] + 800ed62: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800ed66: f003 0301 and.w r3, r3, #1 + 800ed6a: b2db uxtb r3, r3 + 800ed6c: 2b00 cmp r3, #0 + 800ed6e: d016 beq.n 800ed9e + 800ed70: 687b ldr r3, [r7, #4] + 800ed72: 3304 adds r3, #4 + 800ed74: 681b ldr r3, [r3, #0] + 800ed76: 2b00 cmp r3, #0 + 800ed78: d011 beq.n 800ed9e /* unicast to this interface address? */ if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) || - 800ed7e: 4b0b ldr r3, [pc, #44] ; (800edac ) - 800ed80: 695a ldr r2, [r3, #20] - 800ed82: 687b ldr r3, [r7, #4] - 800ed84: 3304 adds r3, #4 - 800ed86: 681b ldr r3, [r3, #0] - 800ed88: 429a cmp r2, r3 - 800ed8a: d008 beq.n 800ed9e + 800ed7a: 4b0b ldr r3, [pc, #44] ; (800eda8 ) + 800ed7c: 695a ldr r2, [r3, #20] + 800ed7e: 687b ldr r3, [r7, #4] + 800ed80: 3304 adds r3, #4 + 800ed82: 681b ldr r3, [r3, #0] + 800ed84: 429a cmp r2, r3 + 800ed86: d008 beq.n 800ed9a /* or broadcast on this interface network address? */ ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) - 800ed8c: 4b07 ldr r3, [pc, #28] ; (800edac ) - 800ed8e: 695b ldr r3, [r3, #20] - 800ed90: 6879 ldr r1, [r7, #4] - 800ed92: 4618 mov r0, r3 - 800ed94: f000 fa26 bl 800f1e4 - 800ed98: 4603 mov r3, r0 + 800ed88: 4b07 ldr r3, [pc, #28] ; (800eda8 ) + 800ed8a: 695b ldr r3, [r3, #20] + 800ed8c: 6879 ldr r1, [r7, #4] + 800ed8e: 4618 mov r0, r3 + 800ed90: f000 fa26 bl 800f1e0 + 800ed94: 4603 mov r3, r0 if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) || - 800ed9a: 2b00 cmp r3, #0 - 800ed9c: d001 beq.n 800eda2 + 800ed96: 2b00 cmp r3, #0 + 800ed98: d001 beq.n 800ed9e #endif /* LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF */ ) { LWIP_DEBUGF(IP_DEBUG, ("ip4_input: packet accepted on interface %c%c\n", netif->name[0], netif->name[1])); /* accept on this netif */ return 1; - 800ed9e: 2301 movs r3, #1 - 800eda0: e000 b.n 800eda4 + 800ed9a: 2301 movs r3, #1 + 800ed9c: e000 b.n 800eda0 /* accept on this netif */ return 1; } #endif /* LWIP_AUTOIP */ } return 0; - 800eda2: 2300 movs r3, #0 + 800ed9e: 2300 movs r3, #0 } - 800eda4: 4618 mov r0, r3 - 800eda6: 3708 adds r7, #8 - 800eda8: 46bd mov sp, r7 - 800edaa: bd80 pop {r7, pc} - 800edac: 20005670 .word 0x20005670 + 800eda0: 4618 mov r0, r3 + 800eda2: 3708 adds r7, #8 + 800eda4: 46bd mov sp, r7 + 800eda6: bd80 pop {r7, pc} + 800eda8: 20005670 .word 0x20005670 -0800edb0 : +0800edac : * @return ERR_OK if the packet was processed (could return ERR_* if it wasn't * processed, but currently always returns ERR_OK) */ err_t ip4_input(struct pbuf *p, struct netif *inp) { - 800edb0: b580 push {r7, lr} - 800edb2: b088 sub sp, #32 - 800edb4: af00 add r7, sp, #0 - 800edb6: 6078 str r0, [r7, #4] - 800edb8: 6039 str r1, [r7, #0] + 800edac: b580 push {r7, lr} + 800edae: b088 sub sp, #32 + 800edb0: af00 add r7, sp, #0 + 800edb2: 6078 str r0, [r7, #4] + 800edb4: 6039 str r1, [r7, #0] const struct ip_hdr *iphdr; struct netif *netif; u16_t iphdr_hlen; u16_t iphdr_len; #if IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP int check_ip_src = 1; - 800edba: 2301 movs r3, #1 - 800edbc: 617b str r3, [r7, #20] + 800edb6: 2301 movs r3, #1 + 800edb8: 617b str r3, [r7, #20] IP_STATS_INC(ip.recv); MIB2_STATS_INC(mib2.ipinreceives); /* identify the IP header */ iphdr = (struct ip_hdr *)p->payload; - 800edbe: 687b ldr r3, [r7, #4] - 800edc0: 685b ldr r3, [r3, #4] - 800edc2: 61fb str r3, [r7, #28] + 800edba: 687b ldr r3, [r7, #4] + 800edbc: 685b ldr r3, [r3, #4] + 800edbe: 61fb str r3, [r7, #28] if (IPH_V(iphdr) != 4) { - 800edc4: 69fb ldr r3, [r7, #28] - 800edc6: 781b ldrb r3, [r3, #0] - 800edc8: 091b lsrs r3, r3, #4 - 800edca: b2db uxtb r3, r3 - 800edcc: 2b04 cmp r3, #4 - 800edce: d004 beq.n 800edda + 800edc0: 69fb ldr r3, [r7, #28] + 800edc2: 781b ldrb r3, [r3, #0] + 800edc4: 091b lsrs r3, r3, #4 + 800edc6: b2db uxtb r3, r3 + 800edc8: 2b04 cmp r3, #4 + 800edca: d004 beq.n 800edd6 LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_WARNING, ("IP packet dropped due to bad version number %"U16_F"\n", (u16_t)IPH_V(iphdr))); ip4_debug_print(p); pbuf_free(p); - 800edd0: 6878 ldr r0, [r7, #4] - 800edd2: f7f6 fde3 bl 800599c + 800edcc: 6878 ldr r0, [r7, #4] + 800edce: f7f6 fde3 bl 8005998 IP_STATS_INC(ip.err); IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipinhdrerrors); return ERR_OK; - 800edd6: 2300 movs r3, #0 - 800edd8: e123 b.n 800f022 + 800edd2: 2300 movs r3, #0 + 800edd4: e123 b.n 800f01e return ERR_OK; } #endif /* obtain IP header length in bytes */ iphdr_hlen = IPH_HL_BYTES(iphdr); - 800edda: 69fb ldr r3, [r7, #28] - 800eddc: 781b ldrb r3, [r3, #0] - 800edde: f003 030f and.w r3, r3, #15 + 800edd6: 69fb ldr r3, [r7, #28] + 800edd8: 781b ldrb r3, [r3, #0] + 800edda: f003 030f and.w r3, r3, #15 + 800edde: b2db uxtb r3, r3 + 800ede0: 009b lsls r3, r3, #2 800ede2: b2db uxtb r3, r3 - 800ede4: 009b lsls r3, r3, #2 - 800ede6: b2db uxtb r3, r3 - 800ede8: 827b strh r3, [r7, #18] + 800ede4: 827b strh r3, [r7, #18] /* obtain ip length in bytes */ iphdr_len = lwip_ntohs(IPH_LEN(iphdr)); - 800edea: 69fb ldr r3, [r7, #28] - 800edec: 885b ldrh r3, [r3, #2] - 800edee: b29b uxth r3, r3 - 800edf0: 4618 mov r0, r3 - 800edf2: f7f5 fa69 bl 80042c8 - 800edf6: 4603 mov r3, r0 - 800edf8: 823b strh r3, [r7, #16] + 800ede6: 69fb ldr r3, [r7, #28] + 800ede8: 885b ldrh r3, [r3, #2] + 800edea: b29b uxth r3, r3 + 800edec: 4618 mov r0, r3 + 800edee: f7f5 fa69 bl 80042c4 + 800edf2: 4603 mov r3, r0 + 800edf4: 823b strh r3, [r7, #16] /* Trim pbuf. This is especially required for packets < 60 bytes. */ if (iphdr_len < p->tot_len) { - 800edfa: 687b ldr r3, [r7, #4] - 800edfc: 891b ldrh r3, [r3, #8] - 800edfe: 8a3a ldrh r2, [r7, #16] - 800ee00: 429a cmp r2, r3 - 800ee02: d204 bcs.n 800ee0e + 800edf6: 687b ldr r3, [r7, #4] + 800edf8: 891b ldrh r3, [r3, #8] + 800edfa: 8a3a ldrh r2, [r7, #16] + 800edfc: 429a cmp r2, r3 + 800edfe: d204 bcs.n 800ee0a pbuf_realloc(p, iphdr_len); - 800ee04: 8a3b ldrh r3, [r7, #16] - 800ee06: 4619 mov r1, r3 - 800ee08: 6878 ldr r0, [r7, #4] - 800ee0a: f7f6 fc41 bl 8005690 + 800ee00: 8a3b ldrh r3, [r7, #16] + 800ee02: 4619 mov r1, r3 + 800ee04: 6878 ldr r0, [r7, #4] + 800ee06: f7f6 fc41 bl 800568c } /* header length exceeds first pbuf length, or ip length exceeds total pbuf length? */ if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) { - 800ee0e: 687b ldr r3, [r7, #4] - 800ee10: 895b ldrh r3, [r3, #10] - 800ee12: 8a7a ldrh r2, [r7, #18] - 800ee14: 429a cmp r2, r3 - 800ee16: d807 bhi.n 800ee28 - 800ee18: 687b ldr r3, [r7, #4] - 800ee1a: 891b ldrh r3, [r3, #8] - 800ee1c: 8a3a ldrh r2, [r7, #16] - 800ee1e: 429a cmp r2, r3 - 800ee20: d802 bhi.n 800ee28 - 800ee22: 8a7b ldrh r3, [r7, #18] - 800ee24: 2b13 cmp r3, #19 - 800ee26: d804 bhi.n 800ee32 + 800ee0a: 687b ldr r3, [r7, #4] + 800ee0c: 895b ldrh r3, [r3, #10] + 800ee0e: 8a7a ldrh r2, [r7, #18] + 800ee10: 429a cmp r2, r3 + 800ee12: d807 bhi.n 800ee24 + 800ee14: 687b ldr r3, [r7, #4] + 800ee16: 891b ldrh r3, [r3, #8] + 800ee18: 8a3a ldrh r2, [r7, #16] + 800ee1a: 429a cmp r2, r3 + 800ee1c: d802 bhi.n 800ee24 + 800ee1e: 8a7b ldrh r3, [r7, #18] + 800ee20: 2b13 cmp r3, #19 + 800ee22: d804 bhi.n 800ee2e LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("IP (len %"U16_F") is longer than pbuf (len %"U16_F"), IP packet dropped.\n", iphdr_len, p->tot_len)); } /* free (drop) packet pbufs */ pbuf_free(p); - 800ee28: 6878 ldr r0, [r7, #4] - 800ee2a: f7f6 fdb7 bl 800599c + 800ee24: 6878 ldr r0, [r7, #4] + 800ee26: f7f6 fdb7 bl 8005998 IP_STATS_INC(ip.lenerr); IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipindiscards); return ERR_OK; - 800ee2e: 2300 movs r3, #0 - 800ee30: e0f7 b.n 800f022 + 800ee2a: 2300 movs r3, #0 + 800ee2c: e0f7 b.n 800f01e } } #endif /* copy IP addresses to aligned ip_addr_t */ ip_addr_copy_from_ip4(ip_data.current_iphdr_dest, iphdr->dest); - 800ee32: 69fb ldr r3, [r7, #28] - 800ee34: 691b ldr r3, [r3, #16] - 800ee36: 4a7d ldr r2, [pc, #500] ; (800f02c ) - 800ee38: 6153 str r3, [r2, #20] + 800ee2e: 69fb ldr r3, [r7, #28] + 800ee30: 691b ldr r3, [r3, #16] + 800ee32: 4a7d ldr r2, [pc, #500] ; (800f028 ) + 800ee34: 6153 str r3, [r2, #20] ip_addr_copy_from_ip4(ip_data.current_iphdr_src, iphdr->src); - 800ee3a: 69fb ldr r3, [r7, #28] - 800ee3c: 68db ldr r3, [r3, #12] - 800ee3e: 4a7b ldr r2, [pc, #492] ; (800f02c ) - 800ee40: 6113 str r3, [r2, #16] + 800ee36: 69fb ldr r3, [r7, #28] + 800ee38: 68db ldr r3, [r3, #12] + 800ee3a: 4a7b ldr r2, [pc, #492] ; (800f028 ) + 800ee3c: 6113 str r3, [r2, #16] /* match packet against an interface, i.e. is this packet for us? */ if (ip4_addr_ismulticast(ip4_current_dest_addr())) { - 800ee42: 4b7a ldr r3, [pc, #488] ; (800f02c ) - 800ee44: 695b ldr r3, [r3, #20] - 800ee46: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 800ee4a: 2be0 cmp r3, #224 ; 0xe0 - 800ee4c: d112 bne.n 800ee74 + 800ee3e: 4b7a ldr r3, [pc, #488] ; (800f028 ) + 800ee40: 695b ldr r3, [r3, #20] + 800ee42: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800ee46: 2be0 cmp r3, #224 ; 0xe0 + 800ee48: d112 bne.n 800ee70 netif = inp; } else { netif = NULL; } #else /* LWIP_IGMP */ if ((netif_is_up(inp)) && (!ip4_addr_isany_val(*netif_ip4_addr(inp)))) { - 800ee4e: 683b ldr r3, [r7, #0] - 800ee50: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800ee54: f003 0301 and.w r3, r3, #1 - 800ee58: b2db uxtb r3, r3 - 800ee5a: 2b00 cmp r3, #0 - 800ee5c: d007 beq.n 800ee6e - 800ee5e: 683b ldr r3, [r7, #0] - 800ee60: 3304 adds r3, #4 - 800ee62: 681b ldr r3, [r3, #0] - 800ee64: 2b00 cmp r3, #0 - 800ee66: d002 beq.n 800ee6e + 800ee4a: 683b ldr r3, [r7, #0] + 800ee4c: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800ee50: f003 0301 and.w r3, r3, #1 + 800ee54: b2db uxtb r3, r3 + 800ee56: 2b00 cmp r3, #0 + 800ee58: d007 beq.n 800ee6a + 800ee5a: 683b ldr r3, [r7, #0] + 800ee5c: 3304 adds r3, #4 + 800ee5e: 681b ldr r3, [r3, #0] + 800ee60: 2b00 cmp r3, #0 + 800ee62: d002 beq.n 800ee6a netif = inp; - 800ee68: 683b ldr r3, [r7, #0] - 800ee6a: 61bb str r3, [r7, #24] - 800ee6c: e02a b.n 800eec4 + 800ee64: 683b ldr r3, [r7, #0] + 800ee66: 61bb str r3, [r7, #24] + 800ee68: e02a b.n 800eec0 } else { netif = NULL; - 800ee6e: 2300 movs r3, #0 - 800ee70: 61bb str r3, [r7, #24] - 800ee72: e027 b.n 800eec4 + 800ee6a: 2300 movs r3, #0 + 800ee6c: 61bb str r3, [r7, #24] + 800ee6e: e027 b.n 800eec0 } #endif /* LWIP_IGMP */ } else { /* start trying with inp. if that's not acceptable, start walking the list of configured netifs. */ if (ip4_input_accept(inp)) { - 800ee74: 6838 ldr r0, [r7, #0] - 800ee76: f7ff ff71 bl 800ed5c - 800ee7a: 4603 mov r3, r0 - 800ee7c: 2b00 cmp r3, #0 - 800ee7e: d002 beq.n 800ee86 + 800ee70: 6838 ldr r0, [r7, #0] + 800ee72: f7ff ff71 bl 800ed58 + 800ee76: 4603 mov r3, r0 + 800ee78: 2b00 cmp r3, #0 + 800ee7a: d002 beq.n 800ee82 netif = inp; - 800ee80: 683b ldr r3, [r7, #0] - 800ee82: 61bb str r3, [r7, #24] - 800ee84: e01e b.n 800eec4 + 800ee7c: 683b ldr r3, [r7, #0] + 800ee7e: 61bb str r3, [r7, #24] + 800ee80: e01e b.n 800eec0 } else { netif = NULL; - 800ee86: 2300 movs r3, #0 - 800ee88: 61bb str r3, [r7, #24] + 800ee82: 2300 movs r3, #0 + 800ee84: 61bb str r3, [r7, #24] #if !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF /* Packets sent to the loopback address must not be accepted on an * interface that does not have the loopback address assigned to it, * unless a non-loopback interface is used for loopback traffic. */ if (!ip4_addr_isloopback(ip4_current_dest_addr())) - 800ee8a: 4b68 ldr r3, [pc, #416] ; (800f02c ) - 800ee8c: 695b ldr r3, [r3, #20] - 800ee8e: b2db uxtb r3, r3 - 800ee90: 2b7f cmp r3, #127 ; 0x7f - 800ee92: d017 beq.n 800eec4 + 800ee86: 4b68 ldr r3, [pc, #416] ; (800f028 ) + 800ee88: 695b ldr r3, [r3, #20] + 800ee8a: b2db uxtb r3, r3 + 800ee8c: 2b7f cmp r3, #127 ; 0x7f + 800ee8e: d017 beq.n 800eec0 #endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */ { #if !LWIP_SINGLE_NETIF NETIF_FOREACH(netif) { - 800ee94: 4b66 ldr r3, [pc, #408] ; (800f030 ) - 800ee96: 681b ldr r3, [r3, #0] - 800ee98: 61bb str r3, [r7, #24] - 800ee9a: e00e b.n 800eeba + 800ee90: 4b66 ldr r3, [pc, #408] ; (800f02c ) + 800ee92: 681b ldr r3, [r3, #0] + 800ee94: 61bb str r3, [r7, #24] + 800ee96: e00e b.n 800eeb6 if (netif == inp) { - 800ee9c: 69ba ldr r2, [r7, #24] - 800ee9e: 683b ldr r3, [r7, #0] - 800eea0: 429a cmp r2, r3 - 800eea2: d006 beq.n 800eeb2 + 800ee98: 69ba ldr r2, [r7, #24] + 800ee9a: 683b ldr r3, [r7, #0] + 800ee9c: 429a cmp r2, r3 + 800ee9e: d006 beq.n 800eeae /* we checked that before already */ continue; } if (ip4_input_accept(netif)) { - 800eea4: 69b8 ldr r0, [r7, #24] - 800eea6: f7ff ff59 bl 800ed5c - 800eeaa: 4603 mov r3, r0 - 800eeac: 2b00 cmp r3, #0 - 800eeae: d108 bne.n 800eec2 - 800eeb0: e000 b.n 800eeb4 + 800eea0: 69b8 ldr r0, [r7, #24] + 800eea2: f7ff ff59 bl 800ed58 + 800eea6: 4603 mov r3, r0 + 800eea8: 2b00 cmp r3, #0 + 800eeaa: d108 bne.n 800eebe + 800eeac: e000 b.n 800eeb0 continue; - 800eeb2: bf00 nop + 800eeae: bf00 nop NETIF_FOREACH(netif) { - 800eeb4: 69bb ldr r3, [r7, #24] - 800eeb6: 681b ldr r3, [r3, #0] - 800eeb8: 61bb str r3, [r7, #24] - 800eeba: 69bb ldr r3, [r7, #24] - 800eebc: 2b00 cmp r3, #0 - 800eebe: d1ed bne.n 800ee9c - 800eec0: e000 b.n 800eec4 + 800eeb0: 69bb ldr r3, [r7, #24] + 800eeb2: 681b ldr r3, [r3, #0] + 800eeb4: 61bb str r3, [r7, #24] + 800eeb6: 69bb ldr r3, [r7, #24] + 800eeb8: 2b00 cmp r3, #0 + 800eeba: d1ed bne.n 800ee98 + 800eebc: e000 b.n 800eec0 break; - 800eec2: bf00 nop + 800eebe: bf00 nop * If you want to accept private broadcast communication while a netif is down, * define LWIP_IP_ACCEPT_UDP_PORT(dst_port), e.g.: * * #define LWIP_IP_ACCEPT_UDP_PORT(dst_port) ((dst_port) == PP_NTOHS(12345)) */ if (netif == NULL) { - 800eec4: 69bb ldr r3, [r7, #24] - 800eec6: 2b00 cmp r3, #0 - 800eec8: d111 bne.n 800eeee + 800eec0: 69bb ldr r3, [r7, #24] + 800eec2: 2b00 cmp r3, #0 + 800eec4: d111 bne.n 800eeea /* remote port is DHCP server? */ if (IPH_PROTO(iphdr) == IP_PROTO_UDP) { - 800eeca: 69fb ldr r3, [r7, #28] - 800eecc: 7a5b ldrb r3, [r3, #9] - 800eece: 2b11 cmp r3, #17 - 800eed0: d10d bne.n 800eeee + 800eec6: 69fb ldr r3, [r7, #28] + 800eec8: 7a5b ldrb r3, [r3, #9] + 800eeca: 2b11 cmp r3, #17 + 800eecc: d10d bne.n 800eeea const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen); - 800eed2: 8a7b ldrh r3, [r7, #18] - 800eed4: 69fa ldr r2, [r7, #28] - 800eed6: 4413 add r3, r2 - 800eed8: 60fb str r3, [r7, #12] + 800eece: 8a7b ldrh r3, [r7, #18] + 800eed0: 69fa ldr r2, [r7, #28] + 800eed2: 4413 add r3, r2 + 800eed4: 60fb str r3, [r7, #12] LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: UDP packet to DHCP client port %"U16_F"\n", lwip_ntohs(udphdr->dest))); if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) { - 800eeda: 68fb ldr r3, [r7, #12] - 800eedc: 885b ldrh r3, [r3, #2] - 800eede: b29b uxth r3, r3 - 800eee0: f5b3 4f88 cmp.w r3, #17408 ; 0x4400 - 800eee4: d103 bne.n 800eeee + 800eed6: 68fb ldr r3, [r7, #12] + 800eed8: 885b ldrh r3, [r3, #2] + 800eeda: b29b uxth r3, r3 + 800eedc: f5b3 4f88 cmp.w r3, #17408 ; 0x4400 + 800eee0: d103 bne.n 800eeea LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: DHCP packet accepted.\n")); netif = inp; - 800eee6: 683b ldr r3, [r7, #0] - 800eee8: 61bb str r3, [r7, #24] + 800eee2: 683b ldr r3, [r7, #0] + 800eee4: 61bb str r3, [r7, #24] check_ip_src = 0; - 800eeea: 2300 movs r3, #0 - 800eeec: 617b str r3, [r7, #20] + 800eee6: 2300 movs r3, #0 + 800eee8: 617b str r3, [r7, #20] } #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */ /* broadcast or multicast packet source address? Compliant with RFC 1122: 3.2.1.3 */ #if LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING if (check_ip_src - 800eeee: 697b ldr r3, [r7, #20] - 800eef0: 2b00 cmp r3, #0 - 800eef2: d017 beq.n 800ef24 + 800eeea: 697b ldr r3, [r7, #20] + 800eeec: 2b00 cmp r3, #0 + 800eeee: d017 beq.n 800ef20 #if IP_ACCEPT_LINK_LAYER_ADDRESSING /* DHCP servers need 0.0.0.0 to be allowed as source address (RFC 1.1.2.2: 3.2.1.3/a) */ && !ip4_addr_isany_val(*ip4_current_src_addr()) - 800eef4: 4b4d ldr r3, [pc, #308] ; (800f02c ) - 800eef6: 691b ldr r3, [r3, #16] - 800eef8: 2b00 cmp r3, #0 - 800eefa: d013 beq.n 800ef24 + 800eef0: 4b4d ldr r3, [pc, #308] ; (800f028 ) + 800eef2: 691b ldr r3, [r3, #16] + 800eef4: 2b00 cmp r3, #0 + 800eef6: d013 beq.n 800ef20 #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */ ) #endif /* LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING */ { if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) || - 800eefc: 4b4b ldr r3, [pc, #300] ; (800f02c ) - 800eefe: 691b ldr r3, [r3, #16] - 800ef00: 6839 ldr r1, [r7, #0] - 800ef02: 4618 mov r0, r3 - 800ef04: f000 f96e bl 800f1e4 - 800ef08: 4603 mov r3, r0 - 800ef0a: 2b00 cmp r3, #0 - 800ef0c: d105 bne.n 800ef1a + 800eef8: 4b4b ldr r3, [pc, #300] ; (800f028 ) + 800eefa: 691b ldr r3, [r3, #16] + 800eefc: 6839 ldr r1, [r7, #0] + 800eefe: 4618 mov r0, r3 + 800ef00: f000 f96e bl 800f1e0 + 800ef04: 4603 mov r3, r0 + 800ef06: 2b00 cmp r3, #0 + 800ef08: d105 bne.n 800ef16 (ip4_addr_ismulticast(ip4_current_src_addr()))) { - 800ef0e: 4b47 ldr r3, [pc, #284] ; (800f02c ) - 800ef10: 691b ldr r3, [r3, #16] - 800ef12: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800ef0a: 4b47 ldr r3, [pc, #284] ; (800f028 ) + 800ef0c: 691b ldr r3, [r3, #16] + 800ef0e: f003 03f0 and.w r3, r3, #240 ; 0xf0 if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) || - 800ef16: 2be0 cmp r3, #224 ; 0xe0 - 800ef18: d104 bne.n 800ef24 + 800ef12: 2be0 cmp r3, #224 ; 0xe0 + 800ef14: d104 bne.n 800ef20 /* packet source is not valid */ LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("ip4_input: packet source is not valid.\n")); /* free (drop) packet pbufs */ pbuf_free(p); - 800ef1a: 6878 ldr r0, [r7, #4] - 800ef1c: f7f6 fd3e bl 800599c + 800ef16: 6878 ldr r0, [r7, #4] + 800ef18: f7f6 fd3e bl 8005998 IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipinaddrerrors); MIB2_STATS_INC(mib2.ipindiscards); return ERR_OK; - 800ef20: 2300 movs r3, #0 - 800ef22: e07e b.n 800f022 + 800ef1c: 2300 movs r3, #0 + 800ef1e: e07e b.n 800f01e } } /* packet not for us? */ if (netif == NULL) { - 800ef24: 69bb ldr r3, [r7, #24] - 800ef26: 2b00 cmp r3, #0 - 800ef28: d104 bne.n 800ef34 + 800ef20: 69bb ldr r3, [r7, #24] + 800ef22: 2b00 cmp r3, #0 + 800ef24: d104 bne.n 800ef30 { IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipinaddrerrors); MIB2_STATS_INC(mib2.ipindiscards); } pbuf_free(p); - 800ef2a: 6878 ldr r0, [r7, #4] - 800ef2c: f7f6 fd36 bl 800599c + 800ef26: 6878 ldr r0, [r7, #4] + 800ef28: f7f6 fd36 bl 8005998 return ERR_OK; - 800ef30: 2300 movs r3, #0 - 800ef32: e076 b.n 800f022 + 800ef2c: 2300 movs r3, #0 + 800ef2e: e076 b.n 800f01e } /* packet consists of multiple fragments? */ if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) { - 800ef34: 69fb ldr r3, [r7, #28] - 800ef36: 88db ldrh r3, [r3, #6] - 800ef38: b29b uxth r3, r3 - 800ef3a: 461a mov r2, r3 - 800ef3c: f64f 733f movw r3, #65343 ; 0xff3f - 800ef40: 4013 ands r3, r2 - 800ef42: 2b00 cmp r3, #0 - 800ef44: d00b beq.n 800ef5e + 800ef30: 69fb ldr r3, [r7, #28] + 800ef32: 88db ldrh r3, [r3, #6] + 800ef34: b29b uxth r3, r3 + 800ef36: 461a mov r2, r3 + 800ef38: f64f 733f movw r3, #65343 ; 0xff3f + 800ef3c: 4013 ands r3, r2 + 800ef3e: 2b00 cmp r3, #0 + 800ef40: d00b beq.n 800ef5a #if IP_REASSEMBLY /* packet fragment reassembly code present? */ LWIP_DEBUGF(IP_DEBUG, ("IP packet is a fragment (id=0x%04"X16_F" tot_len=%"U16_F" len=%"U16_F" MF=%"U16_F" offset=%"U16_F"), calling ip4_reass()\n", lwip_ntohs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), (u16_t)((lwip_ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK) * 8))); /* reassemble the packet*/ p = ip4_reass(p); - 800ef46: 6878 ldr r0, [r7, #4] - 800ef48: f000 fdd0 bl 800faec - 800ef4c: 6078 str r0, [r7, #4] + 800ef42: 6878 ldr r0, [r7, #4] + 800ef44: f000 fdd0 bl 800fae8 + 800ef48: 6078 str r0, [r7, #4] /* packet not fully reassembled yet? */ if (p == NULL) { - 800ef4e: 687b ldr r3, [r7, #4] - 800ef50: 2b00 cmp r3, #0 - 800ef52: d101 bne.n 800ef58 + 800ef4a: 687b ldr r3, [r7, #4] + 800ef4c: 2b00 cmp r3, #0 + 800ef4e: d101 bne.n 800ef54 return ERR_OK; - 800ef54: 2300 movs r3, #0 - 800ef56: e064 b.n 800f022 + 800ef50: 2300 movs r3, #0 + 800ef52: e064 b.n 800f01e } iphdr = (const struct ip_hdr *)p->payload; - 800ef58: 687b ldr r3, [r7, #4] - 800ef5a: 685b ldr r3, [r3, #4] - 800ef5c: 61fb str r3, [r7, #28] + 800ef54: 687b ldr r3, [r7, #4] + 800ef56: 685b ldr r3, [r3, #4] + 800ef58: 61fb str r3, [r7, #28] /* send to upper layers */ LWIP_DEBUGF(IP_DEBUG, ("ip4_input: \n")); ip4_debug_print(p); LWIP_DEBUGF(IP_DEBUG, ("ip4_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len)); ip_data.current_netif = netif; - 800ef5e: 4a33 ldr r2, [pc, #204] ; (800f02c ) - 800ef60: 69bb ldr r3, [r7, #24] - 800ef62: 6013 str r3, [r2, #0] + 800ef5a: 4a33 ldr r2, [pc, #204] ; (800f028 ) + 800ef5c: 69bb ldr r3, [r7, #24] + 800ef5e: 6013 str r3, [r2, #0] ip_data.current_input_netif = inp; - 800ef64: 4a31 ldr r2, [pc, #196] ; (800f02c ) - 800ef66: 683b ldr r3, [r7, #0] - 800ef68: 6053 str r3, [r2, #4] + 800ef60: 4a31 ldr r2, [pc, #196] ; (800f028 ) + 800ef62: 683b ldr r3, [r7, #0] + 800ef64: 6053 str r3, [r2, #4] ip_data.current_ip4_header = iphdr; - 800ef6a: 4a30 ldr r2, [pc, #192] ; (800f02c ) - 800ef6c: 69fb ldr r3, [r7, #28] - 800ef6e: 6093 str r3, [r2, #8] + 800ef66: 4a30 ldr r2, [pc, #192] ; (800f028 ) + 800ef68: 69fb ldr r3, [r7, #28] + 800ef6a: 6093 str r3, [r2, #8] ip_data.current_ip_header_tot_len = IPH_HL_BYTES(iphdr); - 800ef70: 69fb ldr r3, [r7, #28] - 800ef72: 781b ldrb r3, [r3, #0] - 800ef74: f003 030f and.w r3, r3, #15 + 800ef6c: 69fb ldr r3, [r7, #28] + 800ef6e: 781b ldrb r3, [r3, #0] + 800ef70: f003 030f and.w r3, r3, #15 + 800ef74: b2db uxtb r3, r3 + 800ef76: 009b lsls r3, r3, #2 800ef78: b2db uxtb r3, r3 - 800ef7a: 009b lsls r3, r3, #2 - 800ef7c: b2db uxtb r3, r3 - 800ef7e: b29a uxth r2, r3 - 800ef80: 4b2a ldr r3, [pc, #168] ; (800f02c ) - 800ef82: 819a strh r2, [r3, #12] + 800ef7a: b29a uxth r2, r3 + 800ef7c: 4b2a ldr r3, [pc, #168] ; (800f028 ) + 800ef7e: 819a strh r2, [r3, #12] /* raw input did not eat the packet? */ raw_status = raw_input(p, inp); if (raw_status != RAW_INPUT_EATEN) #endif /* LWIP_RAW */ { pbuf_remove_header(p, iphdr_hlen); /* Move to payload, no check necessary. */ - 800ef84: 8a7b ldrh r3, [r7, #18] - 800ef86: 4619 mov r1, r3 - 800ef88: 6878 ldr r0, [r7, #4] - 800ef8a: f7f6 fc81 bl 8005890 + 800ef80: 8a7b ldrh r3, [r7, #18] + 800ef82: 4619 mov r1, r3 + 800ef84: 6878 ldr r0, [r7, #4] + 800ef86: f7f6 fc81 bl 800588c switch (IPH_PROTO(iphdr)) { - 800ef8e: 69fb ldr r3, [r7, #28] - 800ef90: 7a5b ldrb r3, [r3, #9] + 800ef8a: 69fb ldr r3, [r7, #28] + 800ef8c: 7a5b ldrb r3, [r3, #9] + 800ef8e: 2b11 cmp r3, #17 + 800ef90: d006 beq.n 800efa0 800ef92: 2b11 cmp r3, #17 - 800ef94: d006 beq.n 800efa4 - 800ef96: 2b11 cmp r3, #17 - 800ef98: dc13 bgt.n 800efc2 - 800ef9a: 2b01 cmp r3, #1 - 800ef9c: d00c beq.n 800efb8 - 800ef9e: 2b06 cmp r3, #6 - 800efa0: d005 beq.n 800efae - 800efa2: e00e b.n 800efc2 + 800ef94: dc13 bgt.n 800efbe + 800ef96: 2b01 cmp r3, #1 + 800ef98: d00c beq.n 800efb4 + 800ef9a: 2b06 cmp r3, #6 + 800ef9c: d005 beq.n 800efaa + 800ef9e: e00e b.n 800efbe case IP_PROTO_UDP: #if LWIP_UDPLITE case IP_PROTO_UDPLITE: #endif /* LWIP_UDPLITE */ MIB2_STATS_INC(mib2.ipindelivers); udp_input(p, inp); - 800efa4: 6839 ldr r1, [r7, #0] - 800efa6: 6878 ldr r0, [r7, #4] - 800efa8: f7fc faea bl 800b580 + 800efa0: 6839 ldr r1, [r7, #0] + 800efa2: 6878 ldr r0, [r7, #4] + 800efa4: f7fc faea bl 800b57c break; - 800efac: e026 b.n 800effc + 800efa8: e026 b.n 800eff8 #endif /* LWIP_UDP */ #if LWIP_TCP case IP_PROTO_TCP: MIB2_STATS_INC(mib2.ipindelivers); tcp_input(p, inp); - 800efae: 6839 ldr r1, [r7, #0] - 800efb0: 6878 ldr r0, [r7, #4] - 800efb2: f7f8 fb2b bl 800760c + 800efaa: 6839 ldr r1, [r7, #0] + 800efac: 6878 ldr r0, [r7, #4] + 800efae: f7f8 fb2b bl 8007608 break; - 800efb6: e021 b.n 800effc + 800efb2: e021 b.n 800eff8 #endif /* LWIP_TCP */ #if LWIP_ICMP case IP_PROTO_ICMP: MIB2_STATS_INC(mib2.ipindelivers); icmp_input(p, inp); - 800efb8: 6839 ldr r1, [r7, #0] - 800efba: 6878 ldr r0, [r7, #4] - 800efbc: f7ff fcd0 bl 800e960 + 800efb4: 6839 ldr r1, [r7, #0] + 800efb6: 6878 ldr r0, [r7, #4] + 800efb8: f7ff fcd0 bl 800e95c break; - 800efc0: e01c b.n 800effc + 800efbc: e01c b.n 800eff8 } else #endif /* LWIP_RAW */ { #if LWIP_ICMP /* send ICMP destination protocol unreachable unless is was a broadcast */ if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) && - 800efc2: 4b1a ldr r3, [pc, #104] ; (800f02c ) - 800efc4: 695b ldr r3, [r3, #20] - 800efc6: 69b9 ldr r1, [r7, #24] - 800efc8: 4618 mov r0, r3 - 800efca: f000 f90b bl 800f1e4 - 800efce: 4603 mov r3, r0 - 800efd0: 2b00 cmp r3, #0 - 800efd2: d10f bne.n 800eff4 + 800efbe: 4b1a ldr r3, [pc, #104] ; (800f028 ) + 800efc0: 695b ldr r3, [r3, #20] + 800efc2: 69b9 ldr r1, [r7, #24] + 800efc4: 4618 mov r0, r3 + 800efc6: f000 f90b bl 800f1e0 + 800efca: 4603 mov r3, r0 + 800efcc: 2b00 cmp r3, #0 + 800efce: d10f bne.n 800eff0 !ip4_addr_ismulticast(ip4_current_dest_addr())) { - 800efd4: 4b15 ldr r3, [pc, #84] ; (800f02c ) - 800efd6: 695b ldr r3, [r3, #20] - 800efd8: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 800efd0: 4b15 ldr r3, [pc, #84] ; (800f028 ) + 800efd2: 695b ldr r3, [r3, #20] + 800efd4: f003 03f0 and.w r3, r3, #240 ; 0xf0 if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) && - 800efdc: 2be0 cmp r3, #224 ; 0xe0 - 800efde: d009 beq.n 800eff4 + 800efd8: 2be0 cmp r3, #224 ; 0xe0 + 800efda: d009 beq.n 800eff0 pbuf_header_force(p, (s16_t)iphdr_hlen); /* Move to ip header, no check necessary. */ - 800efe0: f9b7 3012 ldrsh.w r3, [r7, #18] - 800efe4: 4619 mov r1, r3 - 800efe6: 6878 ldr r0, [r7, #4] - 800efe8: f7f6 fcc5 bl 8005976 + 800efdc: f9b7 3012 ldrsh.w r3, [r7, #18] + 800efe0: 4619 mov r1, r3 + 800efe2: 6878 ldr r0, [r7, #4] + 800efe4: f7f6 fcc5 bl 8005972 icmp_dest_unreach(p, ICMP_DUR_PROTO); - 800efec: 2102 movs r1, #2 - 800efee: 6878 ldr r0, [r7, #4] - 800eff0: f7ff fdba bl 800eb68 + 800efe8: 2102 movs r1, #2 + 800efea: 6878 ldr r0, [r7, #4] + 800efec: f7ff fdba bl 800eb64 IP_STATS_INC(ip.proterr); IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipinunknownprotos); } pbuf_free(p); - 800eff4: 6878 ldr r0, [r7, #4] - 800eff6: f7f6 fcd1 bl 800599c + 800eff0: 6878 ldr r0, [r7, #4] + 800eff2: f7f6 fcd1 bl 8005998 break; - 800effa: bf00 nop + 800eff6: bf00 nop } } /* @todo: this is not really necessary... */ ip_data.current_netif = NULL; - 800effc: 4b0b ldr r3, [pc, #44] ; (800f02c ) - 800effe: 2200 movs r2, #0 - 800f000: 601a str r2, [r3, #0] + 800eff8: 4b0b ldr r3, [pc, #44] ; (800f028 ) + 800effa: 2200 movs r2, #0 + 800effc: 601a str r2, [r3, #0] ip_data.current_input_netif = NULL; - 800f002: 4b0a ldr r3, [pc, #40] ; (800f02c ) - 800f004: 2200 movs r2, #0 - 800f006: 605a str r2, [r3, #4] + 800effe: 4b0a ldr r3, [pc, #40] ; (800f028 ) + 800f000: 2200 movs r2, #0 + 800f002: 605a str r2, [r3, #4] ip_data.current_ip4_header = NULL; - 800f008: 4b08 ldr r3, [pc, #32] ; (800f02c ) - 800f00a: 2200 movs r2, #0 - 800f00c: 609a str r2, [r3, #8] + 800f004: 4b08 ldr r3, [pc, #32] ; (800f028 ) + 800f006: 2200 movs r2, #0 + 800f008: 609a str r2, [r3, #8] ip_data.current_ip_header_tot_len = 0; - 800f00e: 4b07 ldr r3, [pc, #28] ; (800f02c ) - 800f010: 2200 movs r2, #0 - 800f012: 819a strh r2, [r3, #12] + 800f00a: 4b07 ldr r3, [pc, #28] ; (800f028 ) + 800f00c: 2200 movs r2, #0 + 800f00e: 819a strh r2, [r3, #12] ip4_addr_set_any(ip4_current_src_addr()); - 800f014: 4b05 ldr r3, [pc, #20] ; (800f02c ) - 800f016: 2200 movs r2, #0 - 800f018: 611a str r2, [r3, #16] + 800f010: 4b05 ldr r3, [pc, #20] ; (800f028 ) + 800f012: 2200 movs r2, #0 + 800f014: 611a str r2, [r3, #16] ip4_addr_set_any(ip4_current_dest_addr()); - 800f01a: 4b04 ldr r3, [pc, #16] ; (800f02c ) - 800f01c: 2200 movs r2, #0 - 800f01e: 615a str r2, [r3, #20] + 800f016: 4b04 ldr r3, [pc, #16] ; (800f028 ) + 800f018: 2200 movs r2, #0 + 800f01a: 615a str r2, [r3, #20] return ERR_OK; - 800f020: 2300 movs r3, #0 + 800f01c: 2300 movs r3, #0 } - 800f022: 4618 mov r0, r3 - 800f024: 3720 adds r7, #32 - 800f026: 46bd mov sp, r7 - 800f028: bd80 pop {r7, pc} - 800f02a: bf00 nop - 800f02c: 20005670 .word 0x20005670 - 800f030: 20008bf4 .word 0x20008bf4 + 800f01e: 4618 mov r0, r3 + 800f020: 3720 adds r7, #32 + 800f022: 46bd mov sp, r7 + 800f024: bd80 pop {r7, pc} + 800f026: bf00 nop + 800f028: 20005670 .word 0x20005670 + 800f02c: 20008bf4 .word 0x20008bf4 -0800f034 : +0800f030 : */ err_t ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) { - 800f034: b580 push {r7, lr} - 800f036: b08a sub sp, #40 ; 0x28 - 800f038: af04 add r7, sp, #16 - 800f03a: 60f8 str r0, [r7, #12] - 800f03c: 60b9 str r1, [r7, #8] - 800f03e: 607a str r2, [r7, #4] - 800f040: 70fb strb r3, [r7, #3] + 800f030: b580 push {r7, lr} + 800f032: b08a sub sp, #40 ; 0x28 + 800f034: af04 add r7, sp, #16 + 800f036: 60f8 str r0, [r7, #12] + 800f038: 60b9 str r1, [r7, #8] + 800f03a: 607a str r2, [r7, #4] + 800f03c: 70fb strb r3, [r7, #3] ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, u16_t optlen) { #endif /* IP_OPTIONS_SEND */ const ip4_addr_t *src_used = src; - 800f042: 68bb ldr r3, [r7, #8] - 800f044: 617b str r3, [r7, #20] + 800f03e: 68bb ldr r3, [r7, #8] + 800f040: 617b str r3, [r7, #20] if (dest != LWIP_IP_HDRINCL) { - 800f046: 687b ldr r3, [r7, #4] - 800f048: 2b00 cmp r3, #0 - 800f04a: d009 beq.n 800f060 + 800f042: 687b ldr r3, [r7, #4] + 800f044: 2b00 cmp r3, #0 + 800f046: d009 beq.n 800f05c if (ip4_addr_isany(src)) { - 800f04c: 68bb ldr r3, [r7, #8] - 800f04e: 2b00 cmp r3, #0 - 800f050: d003 beq.n 800f05a - 800f052: 68bb ldr r3, [r7, #8] - 800f054: 681b ldr r3, [r3, #0] - 800f056: 2b00 cmp r3, #0 - 800f058: d102 bne.n 800f060 + 800f048: 68bb ldr r3, [r7, #8] + 800f04a: 2b00 cmp r3, #0 + 800f04c: d003 beq.n 800f056 + 800f04e: 68bb ldr r3, [r7, #8] + 800f050: 681b ldr r3, [r3, #0] + 800f052: 2b00 cmp r3, #0 + 800f054: d102 bne.n 800f05c src_used = netif_ip4_addr(netif); - 800f05a: 6abb ldr r3, [r7, #40] ; 0x28 - 800f05c: 3304 adds r3, #4 - 800f05e: 617b str r3, [r7, #20] + 800f056: 6abb ldr r3, [r7, #40] ; 0x28 + 800f058: 3304 adds r3, #4 + 800f05a: 617b str r3, [r7, #20] #if IP_OPTIONS_SEND return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif, ip_options, optlen); #else /* IP_OPTIONS_SEND */ return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif); - 800f060: 78fa ldrb r2, [r7, #3] - 800f062: 6abb ldr r3, [r7, #40] ; 0x28 - 800f064: 9302 str r3, [sp, #8] - 800f066: f897 3024 ldrb.w r3, [r7, #36] ; 0x24 - 800f06a: 9301 str r3, [sp, #4] - 800f06c: f897 3020 ldrb.w r3, [r7, #32] - 800f070: 9300 str r3, [sp, #0] - 800f072: 4613 mov r3, r2 - 800f074: 687a ldr r2, [r7, #4] - 800f076: 6979 ldr r1, [r7, #20] - 800f078: 68f8 ldr r0, [r7, #12] - 800f07a: f000 f805 bl 800f088 - 800f07e: 4603 mov r3, r0 + 800f05c: 78fa ldrb r2, [r7, #3] + 800f05e: 6abb ldr r3, [r7, #40] ; 0x28 + 800f060: 9302 str r3, [sp, #8] + 800f062: f897 3024 ldrb.w r3, [r7, #36] ; 0x24 + 800f066: 9301 str r3, [sp, #4] + 800f068: f897 3020 ldrb.w r3, [r7, #32] + 800f06c: 9300 str r3, [sp, #0] + 800f06e: 4613 mov r3, r2 + 800f070: 687a ldr r2, [r7, #4] + 800f072: 6979 ldr r1, [r7, #20] + 800f074: 68f8 ldr r0, [r7, #12] + 800f076: f000 f805 bl 800f084 + 800f07a: 4603 mov r3, r0 #endif /* IP_OPTIONS_SEND */ } - 800f080: 4618 mov r0, r3 - 800f082: 3718 adds r7, #24 - 800f084: 46bd mov sp, r7 - 800f086: bd80 pop {r7, pc} + 800f07c: 4618 mov r0, r3 + 800f07e: 3718 adds r7, #24 + 800f080: 46bd mov sp, r7 + 800f082: bd80 pop {r7, pc} -0800f088 : +0800f084 : */ err_t ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) { - 800f088: b580 push {r7, lr} - 800f08a: b088 sub sp, #32 - 800f08c: af00 add r7, sp, #0 - 800f08e: 60f8 str r0, [r7, #12] - 800f090: 60b9 str r1, [r7, #8] - 800f092: 607a str r2, [r7, #4] - 800f094: 70fb strb r3, [r7, #3] + 800f084: b580 push {r7, lr} + 800f086: b088 sub sp, #32 + 800f088: af00 add r7, sp, #0 + 800f08a: 60f8 str r0, [r7, #12] + 800f08c: 60b9 str r1, [r7, #8] + 800f08e: 607a str r2, [r7, #4] + 800f090: 70fb strb r3, [r7, #3] #if CHECKSUM_GEN_IP_INLINE u32_t chk_sum = 0; #endif /* CHECKSUM_GEN_IP_INLINE */ LWIP_ASSERT_CORE_LOCKED(); LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p); - 800f096: 68fb ldr r3, [r7, #12] - 800f098: 7b9b ldrb r3, [r3, #14] - 800f09a: 2b01 cmp r3, #1 - 800f09c: d006 beq.n 800f0ac - 800f09e: 4b4b ldr r3, [pc, #300] ; (800f1cc ) - 800f0a0: f44f 7255 mov.w r2, #852 ; 0x354 - 800f0a4: 494a ldr r1, [pc, #296] ; (800f1d0 ) - 800f0a6: 484b ldr r0, [pc, #300] ; (800f1d4 ) - 800f0a8: f001 f994 bl 80103d4 + 800f092: 68fb ldr r3, [r7, #12] + 800f094: 7b9b ldrb r3, [r3, #14] + 800f096: 2b01 cmp r3, #1 + 800f098: d006 beq.n 800f0a8 + 800f09a: 4b4b ldr r3, [pc, #300] ; (800f1c8 ) + 800f09c: f44f 7255 mov.w r2, #852 ; 0x354 + 800f0a0: 494a ldr r1, [pc, #296] ; (800f1cc ) + 800f0a2: 484b ldr r0, [pc, #300] ; (800f1d0 ) + 800f0a4: f001 f994 bl 80103d0 MIB2_STATS_INC(mib2.ipoutrequests); /* Should the IP header be generated or is it already included in p? */ if (dest != LWIP_IP_HDRINCL) { - 800f0ac: 687b ldr r3, [r7, #4] - 800f0ae: 2b00 cmp r3, #0 - 800f0b0: d060 beq.n 800f174 + 800f0a8: 687b ldr r3, [r7, #4] + 800f0aa: 2b00 cmp r3, #0 + 800f0ac: d060 beq.n 800f170 u16_t ip_hlen = IP_HLEN; - 800f0b2: 2314 movs r3, #20 - 800f0b4: 837b strh r3, [r7, #26] + 800f0ae: 2314 movs r3, #20 + 800f0b0: 837b strh r3, [r7, #26] } #endif /* CHECKSUM_GEN_IP_INLINE */ } #endif /* IP_OPTIONS_SEND */ /* generate IP header */ if (pbuf_add_header(p, IP_HLEN)) { - 800f0b6: 2114 movs r1, #20 - 800f0b8: 68f8 ldr r0, [r7, #12] - 800f0ba: f7f6 fbd9 bl 8005870 - 800f0be: 4603 mov r3, r0 - 800f0c0: 2b00 cmp r3, #0 - 800f0c2: d002 beq.n 800f0ca + 800f0b2: 2114 movs r1, #20 + 800f0b4: 68f8 ldr r0, [r7, #12] + 800f0b6: f7f6 fbd9 bl 800586c + 800f0ba: 4603 mov r3, r0 + 800f0bc: 2b00 cmp r3, #0 + 800f0be: d002 beq.n 800f0c6 LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: not enough room for IP header in pbuf\n")); IP_STATS_INC(ip.err); MIB2_STATS_INC(mib2.ipoutdiscards); return ERR_BUF; - 800f0c4: f06f 0301 mvn.w r3, #1 - 800f0c8: e07c b.n 800f1c4 + 800f0c0: f06f 0301 mvn.w r3, #1 + 800f0c4: e07c b.n 800f1c0 } iphdr = (struct ip_hdr *)p->payload; - 800f0ca: 68fb ldr r3, [r7, #12] - 800f0cc: 685b ldr r3, [r3, #4] - 800f0ce: 61fb str r3, [r7, #28] + 800f0c6: 68fb ldr r3, [r7, #12] + 800f0c8: 685b ldr r3, [r3, #4] + 800f0ca: 61fb str r3, [r7, #28] LWIP_ASSERT("check that first pbuf can hold struct ip_hdr", - 800f0d0: 68fb ldr r3, [r7, #12] - 800f0d2: 895b ldrh r3, [r3, #10] - 800f0d4: 2b13 cmp r3, #19 - 800f0d6: d806 bhi.n 800f0e6 - 800f0d8: 4b3c ldr r3, [pc, #240] ; (800f1cc ) - 800f0da: f44f 7262 mov.w r2, #904 ; 0x388 - 800f0de: 493e ldr r1, [pc, #248] ; (800f1d8 ) - 800f0e0: 483c ldr r0, [pc, #240] ; (800f1d4 ) - 800f0e2: f001 f977 bl 80103d4 + 800f0cc: 68fb ldr r3, [r7, #12] + 800f0ce: 895b ldrh r3, [r3, #10] + 800f0d0: 2b13 cmp r3, #19 + 800f0d2: d806 bhi.n 800f0e2 + 800f0d4: 4b3c ldr r3, [pc, #240] ; (800f1c8 ) + 800f0d6: f44f 7262 mov.w r2, #904 ; 0x388 + 800f0da: 493e ldr r1, [pc, #248] ; (800f1d4 ) + 800f0dc: 483c ldr r0, [pc, #240] ; (800f1d0 ) + 800f0de: f001 f977 bl 80103d0 (p->len >= sizeof(struct ip_hdr))); IPH_TTL_SET(iphdr, ttl); - 800f0e6: 69fb ldr r3, [r7, #28] - 800f0e8: 78fa ldrb r2, [r7, #3] - 800f0ea: 721a strb r2, [r3, #8] + 800f0e2: 69fb ldr r3, [r7, #28] + 800f0e4: 78fa ldrb r2, [r7, #3] + 800f0e6: 721a strb r2, [r3, #8] IPH_PROTO_SET(iphdr, proto); - 800f0ec: 69fb ldr r3, [r7, #28] - 800f0ee: f897 202c ldrb.w r2, [r7, #44] ; 0x2c - 800f0f2: 725a strb r2, [r3, #9] + 800f0e8: 69fb ldr r3, [r7, #28] + 800f0ea: f897 202c ldrb.w r2, [r7, #44] ; 0x2c + 800f0ee: 725a strb r2, [r3, #9] #if CHECKSUM_GEN_IP_INLINE chk_sum += PP_NTOHS(proto | (ttl << 8)); #endif /* CHECKSUM_GEN_IP_INLINE */ /* dest cannot be NULL here */ ip4_addr_copy(iphdr->dest, *dest); - 800f0f4: 687b ldr r3, [r7, #4] - 800f0f6: 681a ldr r2, [r3, #0] - 800f0f8: 69fb ldr r3, [r7, #28] - 800f0fa: 611a str r2, [r3, #16] + 800f0f0: 687b ldr r3, [r7, #4] + 800f0f2: 681a ldr r2, [r3, #0] + 800f0f4: 69fb ldr r3, [r7, #28] + 800f0f6: 611a str r2, [r3, #16] #if CHECKSUM_GEN_IP_INLINE chk_sum += ip4_addr_get_u32(&iphdr->dest) & 0xFFFF; chk_sum += ip4_addr_get_u32(&iphdr->dest) >> 16; #endif /* CHECKSUM_GEN_IP_INLINE */ IPH_VHL_SET(iphdr, 4, ip_hlen / 4); - 800f0fc: 8b7b ldrh r3, [r7, #26] - 800f0fe: 089b lsrs r3, r3, #2 - 800f100: b29b uxth r3, r3 - 800f102: b2db uxtb r3, r3 - 800f104: f043 0340 orr.w r3, r3, #64 ; 0x40 - 800f108: b2da uxtb r2, r3 - 800f10a: 69fb ldr r3, [r7, #28] - 800f10c: 701a strb r2, [r3, #0] + 800f0f8: 8b7b ldrh r3, [r7, #26] + 800f0fa: 089b lsrs r3, r3, #2 + 800f0fc: b29b uxth r3, r3 + 800f0fe: b2db uxtb r3, r3 + 800f100: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800f104: b2da uxtb r2, r3 + 800f106: 69fb ldr r3, [r7, #28] + 800f108: 701a strb r2, [r3, #0] IPH_TOS_SET(iphdr, tos); - 800f10e: 69fb ldr r3, [r7, #28] - 800f110: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 - 800f114: 705a strb r2, [r3, #1] + 800f10a: 69fb ldr r3, [r7, #28] + 800f10c: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 + 800f110: 705a strb r2, [r3, #1] #if CHECKSUM_GEN_IP_INLINE chk_sum += PP_NTOHS(tos | (iphdr->_v_hl << 8)); #endif /* CHECKSUM_GEN_IP_INLINE */ IPH_LEN_SET(iphdr, lwip_htons(p->tot_len)); - 800f116: 68fb ldr r3, [r7, #12] - 800f118: 891b ldrh r3, [r3, #8] - 800f11a: 4618 mov r0, r3 - 800f11c: f7f5 f8d4 bl 80042c8 - 800f120: 4603 mov r3, r0 - 800f122: 461a mov r2, r3 - 800f124: 69fb ldr r3, [r7, #28] - 800f126: 805a strh r2, [r3, #2] + 800f112: 68fb ldr r3, [r7, #12] + 800f114: 891b ldrh r3, [r3, #8] + 800f116: 4618 mov r0, r3 + 800f118: f7f5 f8d4 bl 80042c4 + 800f11c: 4603 mov r3, r0 + 800f11e: 461a mov r2, r3 + 800f120: 69fb ldr r3, [r7, #28] + 800f122: 805a strh r2, [r3, #2] #if CHECKSUM_GEN_IP_INLINE chk_sum += iphdr->_len; #endif /* CHECKSUM_GEN_IP_INLINE */ IPH_OFFSET_SET(iphdr, 0); - 800f128: 69fb ldr r3, [r7, #28] + 800f124: 69fb ldr r3, [r7, #28] + 800f126: 2200 movs r2, #0 + 800f128: 719a strb r2, [r3, #6] 800f12a: 2200 movs r2, #0 - 800f12c: 719a strb r2, [r3, #6] - 800f12e: 2200 movs r2, #0 - 800f130: 71da strb r2, [r3, #7] + 800f12c: 71da strb r2, [r3, #7] IPH_ID_SET(iphdr, lwip_htons(ip_id)); - 800f132: 4b2a ldr r3, [pc, #168] ; (800f1dc ) - 800f134: 881b ldrh r3, [r3, #0] - 800f136: 4618 mov r0, r3 - 800f138: f7f5 f8c6 bl 80042c8 - 800f13c: 4603 mov r3, r0 - 800f13e: 461a mov r2, r3 - 800f140: 69fb ldr r3, [r7, #28] - 800f142: 809a strh r2, [r3, #4] + 800f12e: 4b2a ldr r3, [pc, #168] ; (800f1d8 ) + 800f130: 881b ldrh r3, [r3, #0] + 800f132: 4618 mov r0, r3 + 800f134: f7f5 f8c6 bl 80042c4 + 800f138: 4603 mov r3, r0 + 800f13a: 461a mov r2, r3 + 800f13c: 69fb ldr r3, [r7, #28] + 800f13e: 809a strh r2, [r3, #4] #if CHECKSUM_GEN_IP_INLINE chk_sum += iphdr->_id; #endif /* CHECKSUM_GEN_IP_INLINE */ ++ip_id; - 800f144: 4b25 ldr r3, [pc, #148] ; (800f1dc ) - 800f146: 881b ldrh r3, [r3, #0] - 800f148: 3301 adds r3, #1 - 800f14a: b29a uxth r2, r3 - 800f14c: 4b23 ldr r3, [pc, #140] ; (800f1dc ) - 800f14e: 801a strh r2, [r3, #0] + 800f140: 4b25 ldr r3, [pc, #148] ; (800f1d8 ) + 800f142: 881b ldrh r3, [r3, #0] + 800f144: 3301 adds r3, #1 + 800f146: b29a uxth r2, r3 + 800f148: 4b23 ldr r3, [pc, #140] ; (800f1d8 ) + 800f14a: 801a strh r2, [r3, #0] if (src == NULL) { - 800f150: 68bb ldr r3, [r7, #8] - 800f152: 2b00 cmp r3, #0 - 800f154: d104 bne.n 800f160 + 800f14c: 68bb ldr r3, [r7, #8] + 800f14e: 2b00 cmp r3, #0 + 800f150: d104 bne.n 800f15c ip4_addr_copy(iphdr->src, *IP4_ADDR_ANY4); - 800f156: 4b22 ldr r3, [pc, #136] ; (800f1e0 ) - 800f158: 681a ldr r2, [r3, #0] - 800f15a: 69fb ldr r3, [r7, #28] - 800f15c: 60da str r2, [r3, #12] - 800f15e: e003 b.n 800f168 + 800f152: 4b22 ldr r3, [pc, #136] ; (800f1dc ) + 800f154: 681a ldr r2, [r3, #0] + 800f156: 69fb ldr r3, [r7, #28] + 800f158: 60da str r2, [r3, #12] + 800f15a: e003 b.n 800f164 } else { /* src cannot be NULL here */ ip4_addr_copy(iphdr->src, *src); - 800f160: 68bb ldr r3, [r7, #8] - 800f162: 681a ldr r2, [r3, #0] - 800f164: 69fb ldr r3, [r7, #28] - 800f166: 60da str r2, [r3, #12] + 800f15c: 68bb ldr r3, [r7, #8] + 800f15e: 681a ldr r2, [r3, #0] + 800f160: 69fb ldr r3, [r7, #28] + 800f162: 60da str r2, [r3, #12] else { IPH_CHKSUM_SET(iphdr, 0); } #endif /* LWIP_CHECKSUM_CTRL_PER_NETIF*/ #else /* CHECKSUM_GEN_IP_INLINE */ IPH_CHKSUM_SET(iphdr, 0); - 800f168: 69fb ldr r3, [r7, #28] + 800f164: 69fb ldr r3, [r7, #28] + 800f166: 2200 movs r2, #0 + 800f168: 729a strb r2, [r3, #10] 800f16a: 2200 movs r2, #0 - 800f16c: 729a strb r2, [r3, #10] - 800f16e: 2200 movs r2, #0 - 800f170: 72da strb r2, [r3, #11] - 800f172: e00f b.n 800f194 + 800f16c: 72da strb r2, [r3, #11] + 800f16e: e00f b.n 800f190 } #endif /* CHECKSUM_GEN_IP */ #endif /* CHECKSUM_GEN_IP_INLINE */ } else { /* IP header already included in p */ if (p->len < IP_HLEN) { - 800f174: 68fb ldr r3, [r7, #12] - 800f176: 895b ldrh r3, [r3, #10] - 800f178: 2b13 cmp r3, #19 - 800f17a: d802 bhi.n 800f182 + 800f170: 68fb ldr r3, [r7, #12] + 800f172: 895b ldrh r3, [r3, #10] + 800f174: 2b13 cmp r3, #19 + 800f176: d802 bhi.n 800f17e LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: LWIP_IP_HDRINCL but pbuf is too short\n")); IP_STATS_INC(ip.err); MIB2_STATS_INC(mib2.ipoutdiscards); return ERR_BUF; - 800f17c: f06f 0301 mvn.w r3, #1 - 800f180: e020 b.n 800f1c4 + 800f178: f06f 0301 mvn.w r3, #1 + 800f17c: e020 b.n 800f1c0 } iphdr = (struct ip_hdr *)p->payload; - 800f182: 68fb ldr r3, [r7, #12] - 800f184: 685b ldr r3, [r3, #4] - 800f186: 61fb str r3, [r7, #28] + 800f17e: 68fb ldr r3, [r7, #12] + 800f180: 685b ldr r3, [r3, #4] + 800f182: 61fb str r3, [r7, #28] ip4_addr_copy(dest_addr, iphdr->dest); - 800f188: 69fb ldr r3, [r7, #28] - 800f18a: 691b ldr r3, [r3, #16] - 800f18c: 617b str r3, [r7, #20] + 800f184: 69fb ldr r3, [r7, #28] + 800f186: 691b ldr r3, [r3, #16] + 800f188: 617b str r3, [r7, #20] dest = &dest_addr; - 800f18e: f107 0314 add.w r3, r7, #20 - 800f192: 607b str r3, [r7, #4] + 800f18a: f107 0314 add.w r3, r7, #20 + 800f18e: 607b str r3, [r7, #4] } #endif /* LWIP_MULTICAST_TX_OPTIONS */ #endif /* ENABLE_LOOPBACK */ #if IP_FRAG /* don't fragment if interface has mtu set to 0 [loopif] */ if (netif->mtu && (p->tot_len > netif->mtu)) { - 800f194: 6b3b ldr r3, [r7, #48] ; 0x30 - 800f196: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800f198: 2b00 cmp r3, #0 - 800f19a: d00c beq.n 800f1b6 - 800f19c: 68fb ldr r3, [r7, #12] - 800f19e: 891a ldrh r2, [r3, #8] - 800f1a0: 6b3b ldr r3, [r7, #48] ; 0x30 - 800f1a2: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800f1a4: 429a cmp r2, r3 - 800f1a6: d906 bls.n 800f1b6 + 800f190: 6b3b ldr r3, [r7, #48] ; 0x30 + 800f192: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800f194: 2b00 cmp r3, #0 + 800f196: d00c beq.n 800f1b2 + 800f198: 68fb ldr r3, [r7, #12] + 800f19a: 891a ldrh r2, [r3, #8] + 800f19c: 6b3b ldr r3, [r7, #48] ; 0x30 + 800f19e: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800f1a0: 429a cmp r2, r3 + 800f1a2: d906 bls.n 800f1b2 return ip4_frag(p, netif, dest); - 800f1a8: 687a ldr r2, [r7, #4] - 800f1aa: 6b39 ldr r1, [r7, #48] ; 0x30 - 800f1ac: 68f8 ldr r0, [r7, #12] - 800f1ae: f000 fe91 bl 800fed4 - 800f1b2: 4603 mov r3, r0 - 800f1b4: e006 b.n 800f1c4 + 800f1a4: 687a ldr r2, [r7, #4] + 800f1a6: 6b39 ldr r1, [r7, #48] ; 0x30 + 800f1a8: 68f8 ldr r0, [r7, #12] + 800f1aa: f000 fe91 bl 800fed0 + 800f1ae: 4603 mov r3, r0 + 800f1b0: e006 b.n 800f1c0 } #endif /* IP_FRAG */ LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n")); return netif->output(netif, p, dest); - 800f1b6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800f1b8: 695b ldr r3, [r3, #20] - 800f1ba: 687a ldr r2, [r7, #4] - 800f1bc: 68f9 ldr r1, [r7, #12] - 800f1be: 6b38 ldr r0, [r7, #48] ; 0x30 - 800f1c0: 4798 blx r3 - 800f1c2: 4603 mov r3, r0 + 800f1b2: 6b3b ldr r3, [r7, #48] ; 0x30 + 800f1b4: 695b ldr r3, [r3, #20] + 800f1b6: 687a ldr r2, [r7, #4] + 800f1b8: 68f9 ldr r1, [r7, #12] + 800f1ba: 6b38 ldr r0, [r7, #48] ; 0x30 + 800f1bc: 4798 blx r3 + 800f1be: 4603 mov r3, r0 } - 800f1c4: 4618 mov r0, r3 - 800f1c6: 3720 adds r7, #32 - 800f1c8: 46bd mov sp, r7 - 800f1ca: bd80 pop {r7, pc} - 800f1cc: 0801791c .word 0x0801791c - 800f1d0: 08017950 .word 0x08017950 - 800f1d4: 0801795c .word 0x0801795c - 800f1d8: 08017984 .word 0x08017984 - 800f1dc: 20008d86 .word 0x20008d86 - 800f1e0: 08017ddc .word 0x08017ddc + 800f1c0: 4618 mov r0, r3 + 800f1c2: 3720 adds r7, #32 + 800f1c4: 46bd mov sp, r7 + 800f1c6: bd80 pop {r7, pc} + 800f1c8: 0801791c .word 0x0801791c + 800f1cc: 08017950 .word 0x08017950 + 800f1d0: 0801795c .word 0x0801795c + 800f1d4: 08017984 .word 0x08017984 + 800f1d8: 20008d86 .word 0x20008d86 + 800f1dc: 08017ddc .word 0x08017ddc -0800f1e4 : +0800f1e0 : * @param netif the network interface against which the address is checked * @return returns non-zero if the address is a broadcast address */ u8_t ip4_addr_isbroadcast_u32(u32_t addr, const struct netif *netif) { - 800f1e4: b480 push {r7} - 800f1e6: b085 sub sp, #20 - 800f1e8: af00 add r7, sp, #0 - 800f1ea: 6078 str r0, [r7, #4] - 800f1ec: 6039 str r1, [r7, #0] + 800f1e0: b480 push {r7} + 800f1e2: b085 sub sp, #20 + 800f1e4: af00 add r7, sp, #0 + 800f1e6: 6078 str r0, [r7, #4] + 800f1e8: 6039 str r1, [r7, #0] ip4_addr_t ipaddr; ip4_addr_set_u32(&ipaddr, addr); - 800f1ee: 687b ldr r3, [r7, #4] - 800f1f0: 60fb str r3, [r7, #12] + 800f1ea: 687b ldr r3, [r7, #4] + 800f1ec: 60fb str r3, [r7, #12] /* all ones (broadcast) or all zeroes (old skool broadcast) */ if ((~addr == IPADDR_ANY) || - 800f1f2: 687b ldr r3, [r7, #4] - 800f1f4: f1b3 3fff cmp.w r3, #4294967295 - 800f1f8: d002 beq.n 800f200 - 800f1fa: 687b ldr r3, [r7, #4] - 800f1fc: 2b00 cmp r3, #0 - 800f1fe: d101 bne.n 800f204 + 800f1ee: 687b ldr r3, [r7, #4] + 800f1f0: f1b3 3fff cmp.w r3, #4294967295 + 800f1f4: d002 beq.n 800f1fc + 800f1f6: 687b ldr r3, [r7, #4] + 800f1f8: 2b00 cmp r3, #0 + 800f1fa: d101 bne.n 800f200 (addr == IPADDR_ANY)) { return 1; - 800f200: 2301 movs r3, #1 - 800f202: e02a b.n 800f25a + 800f1fc: 2301 movs r3, #1 + 800f1fe: e02a b.n 800f256 /* no broadcast support on this network interface? */ } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) { - 800f204: 683b ldr r3, [r7, #0] - 800f206: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800f20a: f003 0302 and.w r3, r3, #2 - 800f20e: 2b00 cmp r3, #0 - 800f210: d101 bne.n 800f216 + 800f200: 683b ldr r3, [r7, #0] + 800f202: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800f206: f003 0302 and.w r3, r3, #2 + 800f20a: 2b00 cmp r3, #0 + 800f20c: d101 bne.n 800f212 /* the given address cannot be a broadcast address * nor can we check against any broadcast addresses */ return 0; - 800f212: 2300 movs r3, #0 - 800f214: e021 b.n 800f25a + 800f20e: 2300 movs r3, #0 + 800f210: e021 b.n 800f256 /* address matches network interface address exactly? => no broadcast */ } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) { - 800f216: 683b ldr r3, [r7, #0] - 800f218: 3304 adds r3, #4 - 800f21a: 681b ldr r3, [r3, #0] - 800f21c: 687a ldr r2, [r7, #4] - 800f21e: 429a cmp r2, r3 - 800f220: d101 bne.n 800f226 + 800f212: 683b ldr r3, [r7, #0] + 800f214: 3304 adds r3, #4 + 800f216: 681b ldr r3, [r3, #0] + 800f218: 687a ldr r2, [r7, #4] + 800f21a: 429a cmp r2, r3 + 800f21c: d101 bne.n 800f222 return 0; - 800f222: 2300 movs r3, #0 - 800f224: e019 b.n 800f25a + 800f21e: 2300 movs r3, #0 + 800f220: e019 b.n 800f256 /* on the same (sub) network... */ } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) - 800f226: 68fa ldr r2, [r7, #12] - 800f228: 683b ldr r3, [r7, #0] - 800f22a: 3304 adds r3, #4 - 800f22c: 681b ldr r3, [r3, #0] - 800f22e: 405a eors r2, r3 - 800f230: 683b ldr r3, [r7, #0] - 800f232: 3308 adds r3, #8 - 800f234: 681b ldr r3, [r3, #0] - 800f236: 4013 ands r3, r2 - 800f238: 2b00 cmp r3, #0 - 800f23a: d10d bne.n 800f258 + 800f222: 68fa ldr r2, [r7, #12] + 800f224: 683b ldr r3, [r7, #0] + 800f226: 3304 adds r3, #4 + 800f228: 681b ldr r3, [r3, #0] + 800f22a: 405a eors r2, r3 + 800f22c: 683b ldr r3, [r7, #0] + 800f22e: 3308 adds r3, #8 + 800f230: 681b ldr r3, [r3, #0] + 800f232: 4013 ands r3, r2 + 800f234: 2b00 cmp r3, #0 + 800f236: d10d bne.n 800f254 /* ...and host identifier bits are all ones? =>... */ && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) == - 800f23c: 683b ldr r3, [r7, #0] - 800f23e: 3308 adds r3, #8 - 800f240: 681b ldr r3, [r3, #0] - 800f242: 43da mvns r2, r3 - 800f244: 687b ldr r3, [r7, #4] - 800f246: 401a ands r2, r3 + 800f238: 683b ldr r3, [r7, #0] + 800f23a: 3308 adds r3, #8 + 800f23c: 681b ldr r3, [r3, #0] + 800f23e: 43da mvns r2, r3 + 800f240: 687b ldr r3, [r7, #4] + 800f242: 401a ands r2, r3 (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) { - 800f248: 683b ldr r3, [r7, #0] - 800f24a: 3308 adds r3, #8 - 800f24c: 681b ldr r3, [r3, #0] - 800f24e: 43db mvns r3, r3 + 800f244: 683b ldr r3, [r7, #0] + 800f246: 3308 adds r3, #8 + 800f248: 681b ldr r3, [r3, #0] + 800f24a: 43db mvns r3, r3 && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) == - 800f250: 429a cmp r2, r3 - 800f252: d101 bne.n 800f258 + 800f24c: 429a cmp r2, r3 + 800f24e: d101 bne.n 800f254 /* => network broadcast address */ return 1; - 800f254: 2301 movs r3, #1 - 800f256: e000 b.n 800f25a + 800f250: 2301 movs r3, #1 + 800f252: e000 b.n 800f256 } else { return 0; - 800f258: 2300 movs r3, #0 + 800f254: 2300 movs r3, #0 } } - 800f25a: 4618 mov r0, r3 - 800f25c: 3714 adds r7, #20 - 800f25e: 46bd mov sp, r7 - 800f260: f85d 7b04 ldr.w r7, [sp], #4 - 800f264: 4770 bx lr + 800f256: 4618 mov r0, r3 + 800f258: 3714 adds r7, #20 + 800f25a: 46bd mov sp, r7 + 800f25c: f85d 7b04 ldr.w r7, [sp], #4 + 800f260: 4770 bx lr -0800f266 : +0800f262 : * @param cp IP address in ascii representation (e.g. "127.0.0.1") * @return ip address in network order */ u32_t ipaddr_addr(const char *cp) { - 800f266: b580 push {r7, lr} - 800f268: b084 sub sp, #16 - 800f26a: af00 add r7, sp, #0 - 800f26c: 6078 str r0, [r7, #4] + 800f262: b580 push {r7, lr} + 800f264: b084 sub sp, #16 + 800f266: af00 add r7, sp, #0 + 800f268: 6078 str r0, [r7, #4] ip4_addr_t val; if (ip4addr_aton(cp, &val)) { - 800f26e: f107 030c add.w r3, r7, #12 - 800f272: 4619 mov r1, r3 - 800f274: 6878 ldr r0, [r7, #4] - 800f276: f000 f80b bl 800f290 - 800f27a: 4603 mov r3, r0 - 800f27c: 2b00 cmp r3, #0 - 800f27e: d001 beq.n 800f284 + 800f26a: f107 030c add.w r3, r7, #12 + 800f26e: 4619 mov r1, r3 + 800f270: 6878 ldr r0, [r7, #4] + 800f272: f000 f80b bl 800f28c + 800f276: 4603 mov r3, r0 + 800f278: 2b00 cmp r3, #0 + 800f27a: d001 beq.n 800f280 return ip4_addr_get_u32(&val); - 800f280: 68fb ldr r3, [r7, #12] - 800f282: e001 b.n 800f288 + 800f27c: 68fb ldr r3, [r7, #12] + 800f27e: e001 b.n 800f284 } return (IPADDR_NONE); - 800f284: f04f 33ff mov.w r3, #4294967295 + 800f280: f04f 33ff mov.w r3, #4294967295 } - 800f288: 4618 mov r0, r3 - 800f28a: 3710 adds r7, #16 - 800f28c: 46bd mov sp, r7 - 800f28e: bd80 pop {r7, pc} + 800f284: 4618 mov r0, r3 + 800f286: 3710 adds r7, #16 + 800f288: 46bd mov sp, r7 + 800f28a: bd80 pop {r7, pc} -0800f290 : +0800f28c : * @param addr pointer to which to save the ip address in network order * @return 1 if cp could be converted to addr, 0 on failure */ int ip4addr_aton(const char *cp, ip4_addr_t *addr) { - 800f290: b580 push {r7, lr} - 800f292: b08a sub sp, #40 ; 0x28 - 800f294: af00 add r7, sp, #0 - 800f296: 6078 str r0, [r7, #4] - 800f298: 6039 str r1, [r7, #0] + 800f28c: b580 push {r7, lr} + 800f28e: b08a sub sp, #40 ; 0x28 + 800f290: af00 add r7, sp, #0 + 800f292: 6078 str r0, [r7, #4] + 800f294: 6039 str r1, [r7, #0] u32_t val; u8_t base; char c; u32_t parts[4]; u32_t *pp = parts; - 800f29a: f107 030c add.w r3, r7, #12 - 800f29e: 61fb str r3, [r7, #28] + 800f296: f107 030c add.w r3, r7, #12 + 800f29a: 61fb str r3, [r7, #28] c = *cp; - 800f2a0: 687b ldr r3, [r7, #4] - 800f2a2: 781b ldrb r3, [r3, #0] - 800f2a4: f887 3022 strb.w r3, [r7, #34] ; 0x22 + 800f29c: 687b ldr r3, [r7, #4] + 800f29e: 781b ldrb r3, [r3, #0] + 800f2a0: f887 3022 strb.w r3, [r7, #34] ; 0x22 /* * Collect number up to ``.''. * Values are specified as for C: * 0x=hex, 0=octal, 1-9=decimal. */ if (!lwip_isdigit(c)) { - 800f2a8: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f2ac: 3301 adds r3, #1 - 800f2ae: 4a89 ldr r2, [pc, #548] ; (800f4d4 ) - 800f2b0: 4413 add r3, r2 - 800f2b2: 781b ldrb r3, [r3, #0] - 800f2b4: f003 0304 and.w r3, r3, #4 - 800f2b8: 2b00 cmp r3, #0 - 800f2ba: d101 bne.n 800f2c0 + 800f2a4: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f2a8: 3301 adds r3, #1 + 800f2aa: 4a89 ldr r2, [pc, #548] ; (800f4d0 ) + 800f2ac: 4413 add r3, r2 + 800f2ae: 781b ldrb r3, [r3, #0] + 800f2b0: f003 0304 and.w r3, r3, #4 + 800f2b4: 2b00 cmp r3, #0 + 800f2b6: d101 bne.n 800f2bc return 0; - 800f2bc: 2300 movs r3, #0 - 800f2be: e105 b.n 800f4cc + 800f2b8: 2300 movs r3, #0 + 800f2ba: e105 b.n 800f4c8 } val = 0; - 800f2c0: 2300 movs r3, #0 - 800f2c2: 627b str r3, [r7, #36] ; 0x24 + 800f2bc: 2300 movs r3, #0 + 800f2be: 627b str r3, [r7, #36] ; 0x24 base = 10; - 800f2c4: 230a movs r3, #10 - 800f2c6: f887 3023 strb.w r3, [r7, #35] ; 0x23 + 800f2c0: 230a movs r3, #10 + 800f2c2: f887 3023 strb.w r3, [r7, #35] ; 0x23 if (c == '0') { - 800f2ca: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f2ce: 2b30 cmp r3, #48 ; 0x30 - 800f2d0: d11c bne.n 800f30c + 800f2c6: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f2ca: 2b30 cmp r3, #48 ; 0x30 + 800f2cc: d11c bne.n 800f308 c = *++cp; - 800f2d2: 687b ldr r3, [r7, #4] - 800f2d4: 3301 adds r3, #1 - 800f2d6: 607b str r3, [r7, #4] - 800f2d8: 687b ldr r3, [r7, #4] - 800f2da: 781b ldrb r3, [r3, #0] - 800f2dc: f887 3022 strb.w r3, [r7, #34] ; 0x22 + 800f2ce: 687b ldr r3, [r7, #4] + 800f2d0: 3301 adds r3, #1 + 800f2d2: 607b str r3, [r7, #4] + 800f2d4: 687b ldr r3, [r7, #4] + 800f2d6: 781b ldrb r3, [r3, #0] + 800f2d8: f887 3022 strb.w r3, [r7, #34] ; 0x22 if (c == 'x' || c == 'X') { - 800f2e0: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f2e4: 2b78 cmp r3, #120 ; 0x78 - 800f2e6: d003 beq.n 800f2f0 - 800f2e8: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f2ec: 2b58 cmp r3, #88 ; 0x58 - 800f2ee: d10a bne.n 800f306 + 800f2dc: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f2e0: 2b78 cmp r3, #120 ; 0x78 + 800f2e2: d003 beq.n 800f2ec + 800f2e4: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f2e8: 2b58 cmp r3, #88 ; 0x58 + 800f2ea: d10a bne.n 800f302 base = 16; - 800f2f0: 2310 movs r3, #16 - 800f2f2: f887 3023 strb.w r3, [r7, #35] ; 0x23 + 800f2ec: 2310 movs r3, #16 + 800f2ee: f887 3023 strb.w r3, [r7, #35] ; 0x23 c = *++cp; - 800f2f6: 687b ldr r3, [r7, #4] - 800f2f8: 3301 adds r3, #1 - 800f2fa: 607b str r3, [r7, #4] - 800f2fc: 687b ldr r3, [r7, #4] - 800f2fe: 781b ldrb r3, [r3, #0] - 800f300: f887 3022 strb.w r3, [r7, #34] ; 0x22 - 800f304: e002 b.n 800f30c + 800f2f2: 687b ldr r3, [r7, #4] + 800f2f4: 3301 adds r3, #1 + 800f2f6: 607b str r3, [r7, #4] + 800f2f8: 687b ldr r3, [r7, #4] + 800f2fa: 781b ldrb r3, [r3, #0] + 800f2fc: f887 3022 strb.w r3, [r7, #34] ; 0x22 + 800f300: e002 b.n 800f308 } else { base = 8; - 800f306: 2308 movs r3, #8 - 800f308: f887 3023 strb.w r3, [r7, #35] ; 0x23 + 800f302: 2308 movs r3, #8 + 800f304: f887 3023 strb.w r3, [r7, #35] ; 0x23 } } for (;;) { if (lwip_isdigit(c)) { - 800f30c: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f310: 3301 adds r3, #1 - 800f312: 4a70 ldr r2, [pc, #448] ; (800f4d4 ) - 800f314: 4413 add r3, r2 - 800f316: 781b ldrb r3, [r3, #0] - 800f318: f003 0304 and.w r3, r3, #4 - 800f31c: 2b00 cmp r3, #0 - 800f31e: d011 beq.n 800f344 + 800f308: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f30c: 3301 adds r3, #1 + 800f30e: 4a70 ldr r2, [pc, #448] ; (800f4d0 ) + 800f310: 4413 add r3, r2 + 800f312: 781b ldrb r3, [r3, #0] + 800f314: f003 0304 and.w r3, r3, #4 + 800f318: 2b00 cmp r3, #0 + 800f31a: d011 beq.n 800f340 val = (val * base) + (u32_t)(c - '0'); - 800f320: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 800f324: 6a7a ldr r2, [r7, #36] ; 0x24 - 800f326: fb03 f202 mul.w r2, r3, r2 - 800f32a: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f32e: 4413 add r3, r2 - 800f330: 3b30 subs r3, #48 ; 0x30 - 800f332: 627b str r3, [r7, #36] ; 0x24 + 800f31c: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 800f320: 6a7a ldr r2, [r7, #36] ; 0x24 + 800f322: fb03 f202 mul.w r2, r3, r2 + 800f326: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f32a: 4413 add r3, r2 + 800f32c: 3b30 subs r3, #48 ; 0x30 + 800f32e: 627b str r3, [r7, #36] ; 0x24 c = *++cp; - 800f334: 687b ldr r3, [r7, #4] - 800f336: 3301 adds r3, #1 - 800f338: 607b str r3, [r7, #4] - 800f33a: 687b ldr r3, [r7, #4] - 800f33c: 781b ldrb r3, [r3, #0] - 800f33e: f887 3022 strb.w r3, [r7, #34] ; 0x22 - 800f342: e7e3 b.n 800f30c + 800f330: 687b ldr r3, [r7, #4] + 800f332: 3301 adds r3, #1 + 800f334: 607b str r3, [r7, #4] + 800f336: 687b ldr r3, [r7, #4] + 800f338: 781b ldrb r3, [r3, #0] + 800f33a: f887 3022 strb.w r3, [r7, #34] ; 0x22 + 800f33e: e7e3 b.n 800f308 } else if (base == 16 && lwip_isxdigit(c)) { - 800f344: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 800f348: 2b10 cmp r3, #16 - 800f34a: d127 bne.n 800f39c - 800f34c: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f350: 3301 adds r3, #1 - 800f352: 4a60 ldr r2, [pc, #384] ; (800f4d4 ) - 800f354: 4413 add r3, r2 - 800f356: 781b ldrb r3, [r3, #0] - 800f358: f003 0344 and.w r3, r3, #68 ; 0x44 - 800f35c: 2b00 cmp r3, #0 - 800f35e: d01d beq.n 800f39c + 800f340: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 800f344: 2b10 cmp r3, #16 + 800f346: d127 bne.n 800f398 + 800f348: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f34c: 3301 adds r3, #1 + 800f34e: 4a60 ldr r2, [pc, #384] ; (800f4d0 ) + 800f350: 4413 add r3, r2 + 800f352: 781b ldrb r3, [r3, #0] + 800f354: f003 0344 and.w r3, r3, #68 ; 0x44 + 800f358: 2b00 cmp r3, #0 + 800f35a: d01d beq.n 800f398 val = (val << 4) | (u32_t)(c + 10 - (lwip_islower(c) ? 'a' : 'A')); - 800f360: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f362: 011b lsls r3, r3, #4 - 800f364: f897 2022 ldrb.w r2, [r7, #34] ; 0x22 - 800f368: f102 010a add.w r1, r2, #10 - 800f36c: f897 2022 ldrb.w r2, [r7, #34] ; 0x22 - 800f370: 3201 adds r2, #1 - 800f372: 4858 ldr r0, [pc, #352] ; (800f4d4 ) - 800f374: 4402 add r2, r0 - 800f376: 7812 ldrb r2, [r2, #0] - 800f378: f002 0203 and.w r2, r2, #3 - 800f37c: 2a02 cmp r2, #2 - 800f37e: d101 bne.n 800f384 - 800f380: 2261 movs r2, #97 ; 0x61 - 800f382: e000 b.n 800f386 - 800f384: 2241 movs r2, #65 ; 0x41 - 800f386: 1a8a subs r2, r1, r2 - 800f388: 4313 orrs r3, r2 - 800f38a: 627b str r3, [r7, #36] ; 0x24 + 800f35c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f35e: 011b lsls r3, r3, #4 + 800f360: f897 2022 ldrb.w r2, [r7, #34] ; 0x22 + 800f364: f102 010a add.w r1, r2, #10 + 800f368: f897 2022 ldrb.w r2, [r7, #34] ; 0x22 + 800f36c: 3201 adds r2, #1 + 800f36e: 4858 ldr r0, [pc, #352] ; (800f4d0 ) + 800f370: 4402 add r2, r0 + 800f372: 7812 ldrb r2, [r2, #0] + 800f374: f002 0203 and.w r2, r2, #3 + 800f378: 2a02 cmp r2, #2 + 800f37a: d101 bne.n 800f380 + 800f37c: 2261 movs r2, #97 ; 0x61 + 800f37e: e000 b.n 800f382 + 800f380: 2241 movs r2, #65 ; 0x41 + 800f382: 1a8a subs r2, r1, r2 + 800f384: 4313 orrs r3, r2 + 800f386: 627b str r3, [r7, #36] ; 0x24 c = *++cp; - 800f38c: 687b ldr r3, [r7, #4] - 800f38e: 3301 adds r3, #1 - 800f390: 607b str r3, [r7, #4] - 800f392: 687b ldr r3, [r7, #4] - 800f394: 781b ldrb r3, [r3, #0] - 800f396: f887 3022 strb.w r3, [r7, #34] ; 0x22 + 800f388: 687b ldr r3, [r7, #4] + 800f38a: 3301 adds r3, #1 + 800f38c: 607b str r3, [r7, #4] + 800f38e: 687b ldr r3, [r7, #4] + 800f390: 781b ldrb r3, [r3, #0] + 800f392: f887 3022 strb.w r3, [r7, #34] ; 0x22 if (lwip_isdigit(c)) { - 800f39a: e7b7 b.n 800f30c + 800f396: e7b7 b.n 800f308 } else { break; } } if (c == '.') { - 800f39c: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f3a0: 2b2e cmp r3, #46 ; 0x2e - 800f3a2: d114 bne.n 800f3ce + 800f398: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f39c: 2b2e cmp r3, #46 ; 0x2e + 800f39e: d114 bne.n 800f3ca * Internet format: * a.b.c.d * a.b.c (with c treated as 16 bits) * a.b (with b treated as 24 bits) */ if (pp >= parts + 3) { - 800f3a4: f107 030c add.w r3, r7, #12 - 800f3a8: 330c adds r3, #12 - 800f3aa: 69fa ldr r2, [r7, #28] - 800f3ac: 429a cmp r2, r3 - 800f3ae: d301 bcc.n 800f3b4 + 800f3a0: f107 030c add.w r3, r7, #12 + 800f3a4: 330c adds r3, #12 + 800f3a6: 69fa ldr r2, [r7, #28] + 800f3a8: 429a cmp r2, r3 + 800f3aa: d301 bcc.n 800f3b0 return 0; - 800f3b0: 2300 movs r3, #0 - 800f3b2: e08b b.n 800f4cc + 800f3ac: 2300 movs r3, #0 + 800f3ae: e08b b.n 800f4c8 } *pp++ = val; - 800f3b4: 69fb ldr r3, [r7, #28] - 800f3b6: 1d1a adds r2, r3, #4 - 800f3b8: 61fa str r2, [r7, #28] - 800f3ba: 6a7a ldr r2, [r7, #36] ; 0x24 - 800f3bc: 601a str r2, [r3, #0] + 800f3b0: 69fb ldr r3, [r7, #28] + 800f3b2: 1d1a adds r2, r3, #4 + 800f3b4: 61fa str r2, [r7, #28] + 800f3b6: 6a7a ldr r2, [r7, #36] ; 0x24 + 800f3b8: 601a str r2, [r3, #0] c = *++cp; - 800f3be: 687b ldr r3, [r7, #4] - 800f3c0: 3301 adds r3, #1 - 800f3c2: 607b str r3, [r7, #4] - 800f3c4: 687b ldr r3, [r7, #4] - 800f3c6: 781b ldrb r3, [r3, #0] - 800f3c8: f887 3022 strb.w r3, [r7, #34] ; 0x22 + 800f3ba: 687b ldr r3, [r7, #4] + 800f3bc: 3301 adds r3, #1 + 800f3be: 607b str r3, [r7, #4] + 800f3c0: 687b ldr r3, [r7, #4] + 800f3c2: 781b ldrb r3, [r3, #0] + 800f3c4: f887 3022 strb.w r3, [r7, #34] ; 0x22 if (!lwip_isdigit(c)) { - 800f3cc: e76c b.n 800f2a8 + 800f3c8: e76c b.n 800f2a4 } else { break; - 800f3ce: bf00 nop + 800f3ca: bf00 nop } } /* * Check for trailing characters. */ if (c != '\0' && !lwip_isspace(c)) { - 800f3d0: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f3d4: 2b00 cmp r3, #0 - 800f3d6: d00b beq.n 800f3f0 - 800f3d8: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 - 800f3dc: 3301 adds r3, #1 - 800f3de: 4a3d ldr r2, [pc, #244] ; (800f4d4 ) - 800f3e0: 4413 add r3, r2 - 800f3e2: 781b ldrb r3, [r3, #0] - 800f3e4: f003 0308 and.w r3, r3, #8 - 800f3e8: 2b00 cmp r3, #0 - 800f3ea: d101 bne.n 800f3f0 + 800f3cc: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f3d0: 2b00 cmp r3, #0 + 800f3d2: d00b beq.n 800f3ec + 800f3d4: f897 3022 ldrb.w r3, [r7, #34] ; 0x22 + 800f3d8: 3301 adds r3, #1 + 800f3da: 4a3d ldr r2, [pc, #244] ; (800f4d0 ) + 800f3dc: 4413 add r3, r2 + 800f3de: 781b ldrb r3, [r3, #0] + 800f3e0: f003 0308 and.w r3, r3, #8 + 800f3e4: 2b00 cmp r3, #0 + 800f3e6: d101 bne.n 800f3ec return 0; - 800f3ec: 2300 movs r3, #0 - 800f3ee: e06d b.n 800f4cc + 800f3e8: 2300 movs r3, #0 + 800f3ea: e06d b.n 800f4c8 } /* * Concoct the address according to * the number of parts specified. */ switch (pp - parts + 1) { - 800f3f0: f107 030c add.w r3, r7, #12 - 800f3f4: 69fa ldr r2, [r7, #28] - 800f3f6: 1ad3 subs r3, r2, r3 - 800f3f8: 109b asrs r3, r3, #2 - 800f3fa: 3301 adds r3, #1 - 800f3fc: 2b04 cmp r3, #4 - 800f3fe: d853 bhi.n 800f4a8 - 800f400: a201 add r2, pc, #4 ; (adr r2, 800f408 ) - 800f402: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800f406: bf00 nop - 800f408: 0800f41d .word 0x0800f41d - 800f40c: 0800f4b7 .word 0x0800f4b7 - 800f410: 0800f421 .word 0x0800f421 - 800f414: 0800f443 .word 0x0800f443 - 800f418: 0800f471 .word 0x0800f471 + 800f3ec: f107 030c add.w r3, r7, #12 + 800f3f0: 69fa ldr r2, [r7, #28] + 800f3f2: 1ad3 subs r3, r2, r3 + 800f3f4: 109b asrs r3, r3, #2 + 800f3f6: 3301 adds r3, #1 + 800f3f8: 2b04 cmp r3, #4 + 800f3fa: d853 bhi.n 800f4a4 + 800f3fc: a201 add r2, pc, #4 ; (adr r2, 800f404 ) + 800f3fe: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800f402: bf00 nop + 800f404: 0800f419 .word 0x0800f419 + 800f408: 0800f4b3 .word 0x0800f4b3 + 800f40c: 0800f41d .word 0x0800f41d + 800f410: 0800f43f .word 0x0800f43f + 800f414: 0800f46d .word 0x0800f46d case 0: return 0; /* initial nondigit */ - 800f41c: 2300 movs r3, #0 - 800f41e: e055 b.n 800f4cc + 800f418: 2300 movs r3, #0 + 800f41a: e055 b.n 800f4c8 case 1: /* a -- 32 bits */ break; case 2: /* a.b -- 8.24 bits */ if (val > 0xffffffUL) { - 800f420: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f422: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 - 800f426: d301 bcc.n 800f42c + 800f41c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f41e: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 + 800f422: d301 bcc.n 800f428 return 0; - 800f428: 2300 movs r3, #0 - 800f42a: e04f b.n 800f4cc + 800f424: 2300 movs r3, #0 + 800f426: e04f b.n 800f4c8 } if (parts[0] > 0xff) { - 800f42c: 68fb ldr r3, [r7, #12] - 800f42e: 2bff cmp r3, #255 ; 0xff - 800f430: d901 bls.n 800f436 + 800f428: 68fb ldr r3, [r7, #12] + 800f42a: 2bff cmp r3, #255 ; 0xff + 800f42c: d901 bls.n 800f432 return 0; - 800f432: 2300 movs r3, #0 - 800f434: e04a b.n 800f4cc + 800f42e: 2300 movs r3, #0 + 800f430: e04a b.n 800f4c8 } val |= parts[0] << 24; - 800f436: 68fb ldr r3, [r7, #12] - 800f438: 061b lsls r3, r3, #24 - 800f43a: 6a7a ldr r2, [r7, #36] ; 0x24 - 800f43c: 4313 orrs r3, r2 - 800f43e: 627b str r3, [r7, #36] ; 0x24 + 800f432: 68fb ldr r3, [r7, #12] + 800f434: 061b lsls r3, r3, #24 + 800f436: 6a7a ldr r2, [r7, #36] ; 0x24 + 800f438: 4313 orrs r3, r2 + 800f43a: 627b str r3, [r7, #36] ; 0x24 break; - 800f440: e03a b.n 800f4b8 + 800f43c: e03a b.n 800f4b4 case 3: /* a.b.c -- 8.8.16 bits */ if (val > 0xffff) { - 800f442: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f444: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800f448: d301 bcc.n 800f44e + 800f43e: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f440: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800f444: d301 bcc.n 800f44a return 0; - 800f44a: 2300 movs r3, #0 - 800f44c: e03e b.n 800f4cc + 800f446: 2300 movs r3, #0 + 800f448: e03e b.n 800f4c8 } if ((parts[0] > 0xff) || (parts[1] > 0xff)) { - 800f44e: 68fb ldr r3, [r7, #12] - 800f450: 2bff cmp r3, #255 ; 0xff - 800f452: d802 bhi.n 800f45a - 800f454: 693b ldr r3, [r7, #16] - 800f456: 2bff cmp r3, #255 ; 0xff - 800f458: d901 bls.n 800f45e + 800f44a: 68fb ldr r3, [r7, #12] + 800f44c: 2bff cmp r3, #255 ; 0xff + 800f44e: d802 bhi.n 800f456 + 800f450: 693b ldr r3, [r7, #16] + 800f452: 2bff cmp r3, #255 ; 0xff + 800f454: d901 bls.n 800f45a return 0; - 800f45a: 2300 movs r3, #0 - 800f45c: e036 b.n 800f4cc + 800f456: 2300 movs r3, #0 + 800f458: e036 b.n 800f4c8 } val |= (parts[0] << 24) | (parts[1] << 16); - 800f45e: 68fb ldr r3, [r7, #12] - 800f460: 061a lsls r2, r3, #24 - 800f462: 693b ldr r3, [r7, #16] - 800f464: 041b lsls r3, r3, #16 + 800f45a: 68fb ldr r3, [r7, #12] + 800f45c: 061a lsls r2, r3, #24 + 800f45e: 693b ldr r3, [r7, #16] + 800f460: 041b lsls r3, r3, #16 + 800f462: 4313 orrs r3, r2 + 800f464: 6a7a ldr r2, [r7, #36] ; 0x24 800f466: 4313 orrs r3, r2 - 800f468: 6a7a ldr r2, [r7, #36] ; 0x24 - 800f46a: 4313 orrs r3, r2 - 800f46c: 627b str r3, [r7, #36] ; 0x24 + 800f468: 627b str r3, [r7, #36] ; 0x24 break; - 800f46e: e023 b.n 800f4b8 + 800f46a: e023 b.n 800f4b4 case 4: /* a.b.c.d -- 8.8.8.8 bits */ if (val > 0xff) { - 800f470: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f472: 2bff cmp r3, #255 ; 0xff - 800f474: d901 bls.n 800f47a + 800f46c: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f46e: 2bff cmp r3, #255 ; 0xff + 800f470: d901 bls.n 800f476 return 0; - 800f476: 2300 movs r3, #0 - 800f478: e028 b.n 800f4cc + 800f472: 2300 movs r3, #0 + 800f474: e028 b.n 800f4c8 } if ((parts[0] > 0xff) || (parts[1] > 0xff) || (parts[2] > 0xff)) { - 800f47a: 68fb ldr r3, [r7, #12] - 800f47c: 2bff cmp r3, #255 ; 0xff - 800f47e: d805 bhi.n 800f48c - 800f480: 693b ldr r3, [r7, #16] - 800f482: 2bff cmp r3, #255 ; 0xff - 800f484: d802 bhi.n 800f48c - 800f486: 697b ldr r3, [r7, #20] - 800f488: 2bff cmp r3, #255 ; 0xff - 800f48a: d901 bls.n 800f490 + 800f476: 68fb ldr r3, [r7, #12] + 800f478: 2bff cmp r3, #255 ; 0xff + 800f47a: d805 bhi.n 800f488 + 800f47c: 693b ldr r3, [r7, #16] + 800f47e: 2bff cmp r3, #255 ; 0xff + 800f480: d802 bhi.n 800f488 + 800f482: 697b ldr r3, [r7, #20] + 800f484: 2bff cmp r3, #255 ; 0xff + 800f486: d901 bls.n 800f48c return 0; - 800f48c: 2300 movs r3, #0 - 800f48e: e01d b.n 800f4cc + 800f488: 2300 movs r3, #0 + 800f48a: e01d b.n 800f4c8 } val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8); - 800f490: 68fb ldr r3, [r7, #12] - 800f492: 061a lsls r2, r3, #24 - 800f494: 693b ldr r3, [r7, #16] - 800f496: 041b lsls r3, r3, #16 - 800f498: 431a orrs r2, r3 - 800f49a: 697b ldr r3, [r7, #20] - 800f49c: 021b lsls r3, r3, #8 + 800f48c: 68fb ldr r3, [r7, #12] + 800f48e: 061a lsls r2, r3, #24 + 800f490: 693b ldr r3, [r7, #16] + 800f492: 041b lsls r3, r3, #16 + 800f494: 431a orrs r2, r3 + 800f496: 697b ldr r3, [r7, #20] + 800f498: 021b lsls r3, r3, #8 + 800f49a: 4313 orrs r3, r2 + 800f49c: 6a7a ldr r2, [r7, #36] ; 0x24 800f49e: 4313 orrs r3, r2 - 800f4a0: 6a7a ldr r2, [r7, #36] ; 0x24 - 800f4a2: 4313 orrs r3, r2 - 800f4a4: 627b str r3, [r7, #36] ; 0x24 + 800f4a0: 627b str r3, [r7, #36] ; 0x24 break; - 800f4a6: e007 b.n 800f4b8 + 800f4a2: e007 b.n 800f4b4 default: LWIP_ASSERT("unhandled", 0); - 800f4a8: 4b0b ldr r3, [pc, #44] ; (800f4d8 ) - 800f4aa: 22f9 movs r2, #249 ; 0xf9 - 800f4ac: 490b ldr r1, [pc, #44] ; (800f4dc ) - 800f4ae: 480c ldr r0, [pc, #48] ; (800f4e0 ) - 800f4b0: f000 ff90 bl 80103d4 + 800f4a4: 4b0b ldr r3, [pc, #44] ; (800f4d4 ) + 800f4a6: 22f9 movs r2, #249 ; 0xf9 + 800f4a8: 490b ldr r1, [pc, #44] ; (800f4d8 ) + 800f4aa: 480c ldr r0, [pc, #48] ; (800f4dc ) + 800f4ac: f000 ff90 bl 80103d0 break; - 800f4b4: e000 b.n 800f4b8 + 800f4b0: e000 b.n 800f4b4 break; - 800f4b6: bf00 nop + 800f4b2: bf00 nop } if (addr) { - 800f4b8: 683b ldr r3, [r7, #0] - 800f4ba: 2b00 cmp r3, #0 - 800f4bc: d005 beq.n 800f4ca + 800f4b4: 683b ldr r3, [r7, #0] + 800f4b6: 2b00 cmp r3, #0 + 800f4b8: d005 beq.n 800f4c6 ip4_addr_set_u32(addr, lwip_htonl(val)); - 800f4be: 6a78 ldr r0, [r7, #36] ; 0x24 - 800f4c0: f7f4 ff17 bl 80042f2 - 800f4c4: 4602 mov r2, r0 - 800f4c6: 683b ldr r3, [r7, #0] - 800f4c8: 601a str r2, [r3, #0] + 800f4ba: 6a78 ldr r0, [r7, #36] ; 0x24 + 800f4bc: f7f4 ff17 bl 80042ee + 800f4c0: 4602 mov r2, r0 + 800f4c2: 683b ldr r3, [r7, #0] + 800f4c4: 601a str r2, [r3, #0] } return 1; - 800f4ca: 2301 movs r3, #1 + 800f4c6: 2301 movs r3, #1 } - 800f4cc: 4618 mov r0, r3 - 800f4ce: 3728 adds r7, #40 ; 0x28 - 800f4d0: 46bd mov sp, r7 - 800f4d2: bd80 pop {r7, pc} - 800f4d4: 08017df2 .word 0x08017df2 - 800f4d8: 080179b4 .word 0x080179b4 - 800f4dc: 080179f0 .word 0x080179f0 - 800f4e0: 080179fc .word 0x080179fc + 800f4c8: 4618 mov r0, r3 + 800f4ca: 3728 adds r7, #40 ; 0x28 + 800f4cc: 46bd mov sp, r7 + 800f4ce: bd80 pop {r7, pc} + 800f4d0: 08017df2 .word 0x08017df2 + 800f4d4: 080179b4 .word 0x080179b4 + 800f4d8: 080179f0 .word 0x080179f0 + 800f4dc: 080179fc .word 0x080179fc -0800f4e4 : +0800f4e0 : * * Should be called every 1000 msec (defined by IP_TMR_INTERVAL). */ void ip_reass_tmr(void) { - 800f4e4: b580 push {r7, lr} - 800f4e6: b084 sub sp, #16 - 800f4e8: af00 add r7, sp, #0 + 800f4e0: b580 push {r7, lr} + 800f4e2: b084 sub sp, #16 + 800f4e4: af00 add r7, sp, #0 struct ip_reassdata *r, *prev = NULL; - 800f4ea: 2300 movs r3, #0 - 800f4ec: 60bb str r3, [r7, #8] + 800f4e6: 2300 movs r3, #0 + 800f4e8: 60bb str r3, [r7, #8] r = reassdatagrams; - 800f4ee: 4b12 ldr r3, [pc, #72] ; (800f538 ) - 800f4f0: 681b ldr r3, [r3, #0] - 800f4f2: 60fb str r3, [r7, #12] + 800f4ea: 4b12 ldr r3, [pc, #72] ; (800f534 ) + 800f4ec: 681b ldr r3, [r3, #0] + 800f4ee: 60fb str r3, [r7, #12] while (r != NULL) { - 800f4f4: e018 b.n 800f528 + 800f4f0: e018 b.n 800f524 /* Decrement the timer. Once it reaches 0, * clean up the incomplete fragment assembly */ if (r->timer > 0) { - 800f4f6: 68fb ldr r3, [r7, #12] - 800f4f8: 7fdb ldrb r3, [r3, #31] - 800f4fa: 2b00 cmp r3, #0 - 800f4fc: d00b beq.n 800f516 + 800f4f2: 68fb ldr r3, [r7, #12] + 800f4f4: 7fdb ldrb r3, [r3, #31] + 800f4f6: 2b00 cmp r3, #0 + 800f4f8: d00b beq.n 800f512 r->timer--; - 800f4fe: 68fb ldr r3, [r7, #12] - 800f500: 7fdb ldrb r3, [r3, #31] - 800f502: 3b01 subs r3, #1 - 800f504: b2da uxtb r2, r3 - 800f506: 68fb ldr r3, [r7, #12] - 800f508: 77da strb r2, [r3, #31] + 800f4fa: 68fb ldr r3, [r7, #12] + 800f4fc: 7fdb ldrb r3, [r3, #31] + 800f4fe: 3b01 subs r3, #1 + 800f500: b2da uxtb r2, r3 + 800f502: 68fb ldr r3, [r7, #12] + 800f504: 77da strb r2, [r3, #31] LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer)); prev = r; - 800f50a: 68fb ldr r3, [r7, #12] - 800f50c: 60bb str r3, [r7, #8] + 800f506: 68fb ldr r3, [r7, #12] + 800f508: 60bb str r3, [r7, #8] r = r->next; - 800f50e: 68fb ldr r3, [r7, #12] - 800f510: 681b ldr r3, [r3, #0] - 800f512: 60fb str r3, [r7, #12] - 800f514: e008 b.n 800f528 + 800f50a: 68fb ldr r3, [r7, #12] + 800f50c: 681b ldr r3, [r3, #0] + 800f50e: 60fb str r3, [r7, #12] + 800f510: e008 b.n 800f524 } else { /* reassembly timed out */ struct ip_reassdata *tmp; LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n")); tmp = r; - 800f516: 68fb ldr r3, [r7, #12] - 800f518: 607b str r3, [r7, #4] + 800f512: 68fb ldr r3, [r7, #12] + 800f514: 607b str r3, [r7, #4] /* get the next pointer before freeing */ r = r->next; - 800f51a: 68fb ldr r3, [r7, #12] - 800f51c: 681b ldr r3, [r3, #0] - 800f51e: 60fb str r3, [r7, #12] + 800f516: 68fb ldr r3, [r7, #12] + 800f518: 681b ldr r3, [r3, #0] + 800f51a: 60fb str r3, [r7, #12] /* free the helper struct and all enqueued pbufs */ ip_reass_free_complete_datagram(tmp, prev); - 800f520: 68b9 ldr r1, [r7, #8] - 800f522: 6878 ldr r0, [r7, #4] - 800f524: f000 f80a bl 800f53c + 800f51c: 68b9 ldr r1, [r7, #8] + 800f51e: 6878 ldr r0, [r7, #4] + 800f520: f000 f80a bl 800f538 while (r != NULL) { - 800f528: 68fb ldr r3, [r7, #12] - 800f52a: 2b00 cmp r3, #0 - 800f52c: d1e3 bne.n 800f4f6 + 800f524: 68fb ldr r3, [r7, #12] + 800f526: 2b00 cmp r3, #0 + 800f528: d1e3 bne.n 800f4f2 } } } - 800f52e: bf00 nop - 800f530: bf00 nop - 800f532: 3710 adds r7, #16 - 800f534: 46bd mov sp, r7 - 800f536: bd80 pop {r7, pc} - 800f538: 20008d88 .word 0x20008d88 + 800f52a: bf00 nop + 800f52c: bf00 nop + 800f52e: 3710 adds r7, #16 + 800f530: 46bd mov sp, r7 + 800f532: bd80 pop {r7, pc} + 800f534: 20008d88 .word 0x20008d88 -0800f53c : +0800f538 : * @param prev the previous datagram in the linked list * @return the number of pbufs freed */ static int ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev) { - 800f53c: b580 push {r7, lr} - 800f53e: b088 sub sp, #32 - 800f540: af00 add r7, sp, #0 - 800f542: 6078 str r0, [r7, #4] - 800f544: 6039 str r1, [r7, #0] + 800f538: b580 push {r7, lr} + 800f53a: b088 sub sp, #32 + 800f53c: af00 add r7, sp, #0 + 800f53e: 6078 str r0, [r7, #4] + 800f540: 6039 str r1, [r7, #0] u16_t pbufs_freed = 0; - 800f546: 2300 movs r3, #0 - 800f548: 83fb strh r3, [r7, #30] + 800f542: 2300 movs r3, #0 + 800f544: 83fb strh r3, [r7, #30] u16_t clen; struct pbuf *p; struct ip_reass_helper *iprh; LWIP_ASSERT("prev != ipr", prev != ipr); - 800f54a: 683a ldr r2, [r7, #0] - 800f54c: 687b ldr r3, [r7, #4] - 800f54e: 429a cmp r2, r3 - 800f550: d105 bne.n 800f55e - 800f552: 4b45 ldr r3, [pc, #276] ; (800f668 ) - 800f554: 22ab movs r2, #171 ; 0xab - 800f556: 4945 ldr r1, [pc, #276] ; (800f66c ) - 800f558: 4845 ldr r0, [pc, #276] ; (800f670 ) - 800f55a: f000 ff3b bl 80103d4 + 800f546: 683a ldr r2, [r7, #0] + 800f548: 687b ldr r3, [r7, #4] + 800f54a: 429a cmp r2, r3 + 800f54c: d105 bne.n 800f55a + 800f54e: 4b45 ldr r3, [pc, #276] ; (800f664 ) + 800f550: 22ab movs r2, #171 ; 0xab + 800f552: 4945 ldr r1, [pc, #276] ; (800f668 ) + 800f554: 4845 ldr r0, [pc, #276] ; (800f66c ) + 800f556: f000 ff3b bl 80103d0 if (prev != NULL) { - 800f55e: 683b ldr r3, [r7, #0] - 800f560: 2b00 cmp r3, #0 - 800f562: d00a beq.n 800f57a + 800f55a: 683b ldr r3, [r7, #0] + 800f55c: 2b00 cmp r3, #0 + 800f55e: d00a beq.n 800f576 LWIP_ASSERT("prev->next == ipr", prev->next == ipr); - 800f564: 683b ldr r3, [r7, #0] - 800f566: 681b ldr r3, [r3, #0] - 800f568: 687a ldr r2, [r7, #4] - 800f56a: 429a cmp r2, r3 - 800f56c: d005 beq.n 800f57a - 800f56e: 4b3e ldr r3, [pc, #248] ; (800f668 ) - 800f570: 22ad movs r2, #173 ; 0xad - 800f572: 4940 ldr r1, [pc, #256] ; (800f674 ) - 800f574: 483e ldr r0, [pc, #248] ; (800f670 ) - 800f576: f000 ff2d bl 80103d4 + 800f560: 683b ldr r3, [r7, #0] + 800f562: 681b ldr r3, [r3, #0] + 800f564: 687a ldr r2, [r7, #4] + 800f566: 429a cmp r2, r3 + 800f568: d005 beq.n 800f576 + 800f56a: 4b3e ldr r3, [pc, #248] ; (800f664 ) + 800f56c: 22ad movs r2, #173 ; 0xad + 800f56e: 4940 ldr r1, [pc, #256] ; (800f670 ) + 800f570: 483e ldr r0, [pc, #248] ; (800f66c ) + 800f572: f000 ff2d bl 80103d0 } MIB2_STATS_INC(mib2.ipreasmfails); #if LWIP_ICMP iprh = (struct ip_reass_helper *)ipr->p->payload; - 800f57a: 687b ldr r3, [r7, #4] - 800f57c: 685b ldr r3, [r3, #4] - 800f57e: 685b ldr r3, [r3, #4] - 800f580: 617b str r3, [r7, #20] + 800f576: 687b ldr r3, [r7, #4] + 800f578: 685b ldr r3, [r3, #4] + 800f57a: 685b ldr r3, [r3, #4] + 800f57c: 617b str r3, [r7, #20] if (iprh->start == 0) { - 800f582: 697b ldr r3, [r7, #20] - 800f584: 889b ldrh r3, [r3, #4] - 800f586: b29b uxth r3, r3 - 800f588: 2b00 cmp r3, #0 - 800f58a: d12a bne.n 800f5e2 + 800f57e: 697b ldr r3, [r7, #20] + 800f580: 889b ldrh r3, [r3, #4] + 800f582: b29b uxth r3, r3 + 800f584: 2b00 cmp r3, #0 + 800f586: d12a bne.n 800f5de /* The first fragment was received, send ICMP time exceeded. */ /* First, de-queue the first pbuf from r->p. */ p = ipr->p; - 800f58c: 687b ldr r3, [r7, #4] - 800f58e: 685b ldr r3, [r3, #4] - 800f590: 61bb str r3, [r7, #24] + 800f588: 687b ldr r3, [r7, #4] + 800f58a: 685b ldr r3, [r3, #4] + 800f58c: 61bb str r3, [r7, #24] ipr->p = iprh->next_pbuf; - 800f592: 697b ldr r3, [r7, #20] - 800f594: 681a ldr r2, [r3, #0] - 800f596: 687b ldr r3, [r7, #4] - 800f598: 605a str r2, [r3, #4] + 800f58e: 697b ldr r3, [r7, #20] + 800f590: 681a ldr r2, [r3, #0] + 800f592: 687b ldr r3, [r7, #4] + 800f594: 605a str r2, [r3, #4] /* Then, copy the original header into it. */ SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); - 800f59a: 69bb ldr r3, [r7, #24] - 800f59c: 6858 ldr r0, [r3, #4] - 800f59e: 687b ldr r3, [r7, #4] - 800f5a0: 3308 adds r3, #8 - 800f5a2: 2214 movs r2, #20 - 800f5a4: 4619 mov r1, r3 - 800f5a6: f000 fee5 bl 8010374 + 800f596: 69bb ldr r3, [r7, #24] + 800f598: 6858 ldr r0, [r3, #4] + 800f59a: 687b ldr r3, [r7, #4] + 800f59c: 3308 adds r3, #8 + 800f59e: 2214 movs r2, #20 + 800f5a0: 4619 mov r1, r3 + 800f5a2: f000 fee5 bl 8010370 icmp_time_exceeded(p, ICMP_TE_FRAG); - 800f5aa: 2101 movs r1, #1 - 800f5ac: 69b8 ldr r0, [r7, #24] - 800f5ae: f7ff faeb bl 800eb88 + 800f5a6: 2101 movs r1, #1 + 800f5a8: 69b8 ldr r0, [r7, #24] + 800f5aa: f7ff faeb bl 800eb84 clen = pbuf_clen(p); - 800f5b2: 69b8 ldr r0, [r7, #24] - 800f5b4: f7f6 fa7a bl 8005aac - 800f5b8: 4603 mov r3, r0 - 800f5ba: 827b strh r3, [r7, #18] + 800f5ae: 69b8 ldr r0, [r7, #24] + 800f5b0: f7f6 fa7a bl 8005aa8 + 800f5b4: 4603 mov r3, r0 + 800f5b6: 827b strh r3, [r7, #18] LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - 800f5bc: 8bfa ldrh r2, [r7, #30] - 800f5be: 8a7b ldrh r3, [r7, #18] - 800f5c0: 4413 add r3, r2 - 800f5c2: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800f5c6: db05 blt.n 800f5d4 - 800f5c8: 4b27 ldr r3, [pc, #156] ; (800f668 ) - 800f5ca: 22bc movs r2, #188 ; 0xbc - 800f5cc: 492a ldr r1, [pc, #168] ; (800f678 ) - 800f5ce: 4828 ldr r0, [pc, #160] ; (800f670 ) - 800f5d0: f000 ff00 bl 80103d4 + 800f5b8: 8bfa ldrh r2, [r7, #30] + 800f5ba: 8a7b ldrh r3, [r7, #18] + 800f5bc: 4413 add r3, r2 + 800f5be: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800f5c2: db05 blt.n 800f5d0 + 800f5c4: 4b27 ldr r3, [pc, #156] ; (800f664 ) + 800f5c6: 22bc movs r2, #188 ; 0xbc + 800f5c8: 492a ldr r1, [pc, #168] ; (800f674 ) + 800f5ca: 4828 ldr r0, [pc, #160] ; (800f66c ) + 800f5cc: f000 ff00 bl 80103d0 pbufs_freed = (u16_t)(pbufs_freed + clen); - 800f5d4: 8bfa ldrh r2, [r7, #30] - 800f5d6: 8a7b ldrh r3, [r7, #18] - 800f5d8: 4413 add r3, r2 - 800f5da: 83fb strh r3, [r7, #30] + 800f5d0: 8bfa ldrh r2, [r7, #30] + 800f5d2: 8a7b ldrh r3, [r7, #18] + 800f5d4: 4413 add r3, r2 + 800f5d6: 83fb strh r3, [r7, #30] pbuf_free(p); - 800f5dc: 69b8 ldr r0, [r7, #24] - 800f5de: f7f6 f9dd bl 800599c + 800f5d8: 69b8 ldr r0, [r7, #24] + 800f5da: f7f6 f9dd bl 8005998 } #endif /* LWIP_ICMP */ /* First, free all received pbufs. The individual pbufs need to be released separately as they have not yet been chained */ p = ipr->p; - 800f5e2: 687b ldr r3, [r7, #4] - 800f5e4: 685b ldr r3, [r3, #4] - 800f5e6: 61bb str r3, [r7, #24] + 800f5de: 687b ldr r3, [r7, #4] + 800f5e0: 685b ldr r3, [r3, #4] + 800f5e2: 61bb str r3, [r7, #24] while (p != NULL) { - 800f5e8: e01f b.n 800f62a + 800f5e4: e01f b.n 800f626 struct pbuf *pcur; iprh = (struct ip_reass_helper *)p->payload; - 800f5ea: 69bb ldr r3, [r7, #24] - 800f5ec: 685b ldr r3, [r3, #4] - 800f5ee: 617b str r3, [r7, #20] + 800f5e6: 69bb ldr r3, [r7, #24] + 800f5e8: 685b ldr r3, [r3, #4] + 800f5ea: 617b str r3, [r7, #20] pcur = p; - 800f5f0: 69bb ldr r3, [r7, #24] - 800f5f2: 60fb str r3, [r7, #12] + 800f5ec: 69bb ldr r3, [r7, #24] + 800f5ee: 60fb str r3, [r7, #12] /* get the next pointer before freeing */ p = iprh->next_pbuf; - 800f5f4: 697b ldr r3, [r7, #20] - 800f5f6: 681b ldr r3, [r3, #0] - 800f5f8: 61bb str r3, [r7, #24] + 800f5f0: 697b ldr r3, [r7, #20] + 800f5f2: 681b ldr r3, [r3, #0] + 800f5f4: 61bb str r3, [r7, #24] clen = pbuf_clen(pcur); - 800f5fa: 68f8 ldr r0, [r7, #12] - 800f5fc: f7f6 fa56 bl 8005aac - 800f600: 4603 mov r3, r0 - 800f602: 827b strh r3, [r7, #18] + 800f5f6: 68f8 ldr r0, [r7, #12] + 800f5f8: f7f6 fa56 bl 8005aa8 + 800f5fc: 4603 mov r3, r0 + 800f5fe: 827b strh r3, [r7, #18] LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - 800f604: 8bfa ldrh r2, [r7, #30] - 800f606: 8a7b ldrh r3, [r7, #18] - 800f608: 4413 add r3, r2 - 800f60a: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800f60e: db05 blt.n 800f61c - 800f610: 4b15 ldr r3, [pc, #84] ; (800f668 ) - 800f612: 22cc movs r2, #204 ; 0xcc - 800f614: 4918 ldr r1, [pc, #96] ; (800f678 ) - 800f616: 4816 ldr r0, [pc, #88] ; (800f670 ) - 800f618: f000 fedc bl 80103d4 + 800f600: 8bfa ldrh r2, [r7, #30] + 800f602: 8a7b ldrh r3, [r7, #18] + 800f604: 4413 add r3, r2 + 800f606: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800f60a: db05 blt.n 800f618 + 800f60c: 4b15 ldr r3, [pc, #84] ; (800f664 ) + 800f60e: 22cc movs r2, #204 ; 0xcc + 800f610: 4918 ldr r1, [pc, #96] ; (800f674 ) + 800f612: 4816 ldr r0, [pc, #88] ; (800f66c ) + 800f614: f000 fedc bl 80103d0 pbufs_freed = (u16_t)(pbufs_freed + clen); - 800f61c: 8bfa ldrh r2, [r7, #30] - 800f61e: 8a7b ldrh r3, [r7, #18] - 800f620: 4413 add r3, r2 - 800f622: 83fb strh r3, [r7, #30] + 800f618: 8bfa ldrh r2, [r7, #30] + 800f61a: 8a7b ldrh r3, [r7, #18] + 800f61c: 4413 add r3, r2 + 800f61e: 83fb strh r3, [r7, #30] pbuf_free(pcur); - 800f624: 68f8 ldr r0, [r7, #12] - 800f626: f7f6 f9b9 bl 800599c + 800f620: 68f8 ldr r0, [r7, #12] + 800f622: f7f6 f9b9 bl 8005998 while (p != NULL) { - 800f62a: 69bb ldr r3, [r7, #24] - 800f62c: 2b00 cmp r3, #0 - 800f62e: d1dc bne.n 800f5ea + 800f626: 69bb ldr r3, [r7, #24] + 800f628: 2b00 cmp r3, #0 + 800f62a: d1dc bne.n 800f5e6 } /* Then, unchain the struct ip_reassdata from the list and free it. */ ip_reass_dequeue_datagram(ipr, prev); - 800f630: 6839 ldr r1, [r7, #0] - 800f632: 6878 ldr r0, [r7, #4] - 800f634: f000 f8c2 bl 800f7bc + 800f62c: 6839 ldr r1, [r7, #0] + 800f62e: 6878 ldr r0, [r7, #4] + 800f630: f000 f8c2 bl 800f7b8 LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed); - 800f638: 4b10 ldr r3, [pc, #64] ; (800f67c ) - 800f63a: 881b ldrh r3, [r3, #0] - 800f63c: 8bfa ldrh r2, [r7, #30] - 800f63e: 429a cmp r2, r3 - 800f640: d905 bls.n 800f64e - 800f642: 4b09 ldr r3, [pc, #36] ; (800f668 ) - 800f644: 22d2 movs r2, #210 ; 0xd2 - 800f646: 490e ldr r1, [pc, #56] ; (800f680 ) - 800f648: 4809 ldr r0, [pc, #36] ; (800f670 ) - 800f64a: f000 fec3 bl 80103d4 + 800f634: 4b10 ldr r3, [pc, #64] ; (800f678 ) + 800f636: 881b ldrh r3, [r3, #0] + 800f638: 8bfa ldrh r2, [r7, #30] + 800f63a: 429a cmp r2, r3 + 800f63c: d905 bls.n 800f64a + 800f63e: 4b09 ldr r3, [pc, #36] ; (800f664 ) + 800f640: 22d2 movs r2, #210 ; 0xd2 + 800f642: 490e ldr r1, [pc, #56] ; (800f67c ) + 800f644: 4809 ldr r0, [pc, #36] ; (800f66c ) + 800f646: f000 fec3 bl 80103d0 ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed); - 800f64e: 4b0b ldr r3, [pc, #44] ; (800f67c ) - 800f650: 881a ldrh r2, [r3, #0] - 800f652: 8bfb ldrh r3, [r7, #30] - 800f654: 1ad3 subs r3, r2, r3 - 800f656: b29a uxth r2, r3 - 800f658: 4b08 ldr r3, [pc, #32] ; (800f67c ) - 800f65a: 801a strh r2, [r3, #0] + 800f64a: 4b0b ldr r3, [pc, #44] ; (800f678 ) + 800f64c: 881a ldrh r2, [r3, #0] + 800f64e: 8bfb ldrh r3, [r7, #30] + 800f650: 1ad3 subs r3, r2, r3 + 800f652: b29a uxth r2, r3 + 800f654: 4b08 ldr r3, [pc, #32] ; (800f678 ) + 800f656: 801a strh r2, [r3, #0] return pbufs_freed; - 800f65c: 8bfb ldrh r3, [r7, #30] + 800f658: 8bfb ldrh r3, [r7, #30] } - 800f65e: 4618 mov r0, r3 - 800f660: 3720 adds r7, #32 - 800f662: 46bd mov sp, r7 - 800f664: bd80 pop {r7, pc} - 800f666: bf00 nop - 800f668: 08017a24 .word 0x08017a24 - 800f66c: 08017a60 .word 0x08017a60 - 800f670: 08017a6c .word 0x08017a6c - 800f674: 08017a94 .word 0x08017a94 - 800f678: 08017aa8 .word 0x08017aa8 - 800f67c: 20008d8c .word 0x20008d8c - 800f680: 08017ac8 .word 0x08017ac8 + 800f65a: 4618 mov r0, r3 + 800f65c: 3720 adds r7, #32 + 800f65e: 46bd mov sp, r7 + 800f660: bd80 pop {r7, pc} + 800f662: bf00 nop + 800f664: 08017a24 .word 0x08017a24 + 800f668: 08017a60 .word 0x08017a60 + 800f66c: 08017a6c .word 0x08017a6c + 800f670: 08017a94 .word 0x08017a94 + 800f674: 08017aa8 .word 0x08017aa8 + 800f678: 20008d8c .word 0x20008d8c + 800f67c: 08017ac8 .word 0x08017ac8 -0800f684 : +0800f680 : * (used for freeing other datagrams if not enough space) * @return the number of pbufs freed */ static int ip_reass_remove_oldest_datagram(struct ip_hdr *fraghdr, int pbufs_needed) { - 800f684: b580 push {r7, lr} - 800f686: b08a sub sp, #40 ; 0x28 - 800f688: af00 add r7, sp, #0 - 800f68a: 6078 str r0, [r7, #4] - 800f68c: 6039 str r1, [r7, #0] + 800f680: b580 push {r7, lr} + 800f682: b08a sub sp, #40 ; 0x28 + 800f684: af00 add r7, sp, #0 + 800f686: 6078 str r0, [r7, #4] + 800f688: 6039 str r1, [r7, #0] /* @todo Can't we simply remove the last datagram in the * linked list behind reassdatagrams? */ struct ip_reassdata *r, *oldest, *prev, *oldest_prev; int pbufs_freed = 0, pbufs_freed_current; - 800f68e: 2300 movs r3, #0 - 800f690: 617b str r3, [r7, #20] + 800f68a: 2300 movs r3, #0 + 800f68c: 617b str r3, [r7, #20] int other_datagrams; /* Free datagrams until being allowed to enqueue 'pbufs_needed' pbufs, * but don't free the datagram that 'fraghdr' belongs to! */ do { oldest = NULL; - 800f692: 2300 movs r3, #0 - 800f694: 623b str r3, [r7, #32] + 800f68e: 2300 movs r3, #0 + 800f690: 623b str r3, [r7, #32] prev = NULL; - 800f696: 2300 movs r3, #0 - 800f698: 61fb str r3, [r7, #28] + 800f692: 2300 movs r3, #0 + 800f694: 61fb str r3, [r7, #28] oldest_prev = NULL; - 800f69a: 2300 movs r3, #0 - 800f69c: 61bb str r3, [r7, #24] + 800f696: 2300 movs r3, #0 + 800f698: 61bb str r3, [r7, #24] other_datagrams = 0; - 800f69e: 2300 movs r3, #0 - 800f6a0: 613b str r3, [r7, #16] + 800f69a: 2300 movs r3, #0 + 800f69c: 613b str r3, [r7, #16] r = reassdatagrams; - 800f6a2: 4b28 ldr r3, [pc, #160] ; (800f744 ) - 800f6a4: 681b ldr r3, [r3, #0] - 800f6a6: 627b str r3, [r7, #36] ; 0x24 + 800f69e: 4b28 ldr r3, [pc, #160] ; (800f740 ) + 800f6a0: 681b ldr r3, [r3, #0] + 800f6a2: 627b str r3, [r7, #36] ; 0x24 while (r != NULL) { - 800f6a8: e030 b.n 800f70c + 800f6a4: e030 b.n 800f708 if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) { - 800f6aa: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f6ac: 695a ldr r2, [r3, #20] - 800f6ae: 687b ldr r3, [r7, #4] - 800f6b0: 68db ldr r3, [r3, #12] - 800f6b2: 429a cmp r2, r3 - 800f6b4: d10c bne.n 800f6d0 - 800f6b6: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f6b8: 699a ldr r2, [r3, #24] - 800f6ba: 687b ldr r3, [r7, #4] - 800f6bc: 691b ldr r3, [r3, #16] - 800f6be: 429a cmp r2, r3 - 800f6c0: d106 bne.n 800f6d0 - 800f6c2: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f6c4: 899a ldrh r2, [r3, #12] - 800f6c6: 687b ldr r3, [r7, #4] - 800f6c8: 889b ldrh r3, [r3, #4] - 800f6ca: b29b uxth r3, r3 - 800f6cc: 429a cmp r2, r3 - 800f6ce: d014 beq.n 800f6fa + 800f6a6: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f6a8: 695a ldr r2, [r3, #20] + 800f6aa: 687b ldr r3, [r7, #4] + 800f6ac: 68db ldr r3, [r3, #12] + 800f6ae: 429a cmp r2, r3 + 800f6b0: d10c bne.n 800f6cc + 800f6b2: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f6b4: 699a ldr r2, [r3, #24] + 800f6b6: 687b ldr r3, [r7, #4] + 800f6b8: 691b ldr r3, [r3, #16] + 800f6ba: 429a cmp r2, r3 + 800f6bc: d106 bne.n 800f6cc + 800f6be: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f6c0: 899a ldrh r2, [r3, #12] + 800f6c2: 687b ldr r3, [r7, #4] + 800f6c4: 889b ldrh r3, [r3, #4] + 800f6c6: b29b uxth r3, r3 + 800f6c8: 429a cmp r2, r3 + 800f6ca: d014 beq.n 800f6f6 /* Not the same datagram as fraghdr */ other_datagrams++; - 800f6d0: 693b ldr r3, [r7, #16] - 800f6d2: 3301 adds r3, #1 - 800f6d4: 613b str r3, [r7, #16] + 800f6cc: 693b ldr r3, [r7, #16] + 800f6ce: 3301 adds r3, #1 + 800f6d0: 613b str r3, [r7, #16] if (oldest == NULL) { - 800f6d6: 6a3b ldr r3, [r7, #32] - 800f6d8: 2b00 cmp r3, #0 - 800f6da: d104 bne.n 800f6e6 + 800f6d2: 6a3b ldr r3, [r7, #32] + 800f6d4: 2b00 cmp r3, #0 + 800f6d6: d104 bne.n 800f6e2 oldest = r; - 800f6dc: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f6de: 623b str r3, [r7, #32] + 800f6d8: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f6da: 623b str r3, [r7, #32] oldest_prev = prev; - 800f6e0: 69fb ldr r3, [r7, #28] - 800f6e2: 61bb str r3, [r7, #24] - 800f6e4: e009 b.n 800f6fa + 800f6dc: 69fb ldr r3, [r7, #28] + 800f6de: 61bb str r3, [r7, #24] + 800f6e0: e009 b.n 800f6f6 } else if (r->timer <= oldest->timer) { - 800f6e6: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f6e8: 7fda ldrb r2, [r3, #31] - 800f6ea: 6a3b ldr r3, [r7, #32] - 800f6ec: 7fdb ldrb r3, [r3, #31] - 800f6ee: 429a cmp r2, r3 - 800f6f0: d803 bhi.n 800f6fa + 800f6e2: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f6e4: 7fda ldrb r2, [r3, #31] + 800f6e6: 6a3b ldr r3, [r7, #32] + 800f6e8: 7fdb ldrb r3, [r3, #31] + 800f6ea: 429a cmp r2, r3 + 800f6ec: d803 bhi.n 800f6f6 /* older than the previous oldest */ oldest = r; - 800f6f2: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f6f4: 623b str r3, [r7, #32] + 800f6ee: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f6f0: 623b str r3, [r7, #32] oldest_prev = prev; - 800f6f6: 69fb ldr r3, [r7, #28] - 800f6f8: 61bb str r3, [r7, #24] + 800f6f2: 69fb ldr r3, [r7, #28] + 800f6f4: 61bb str r3, [r7, #24] } } if (r->next != NULL) { - 800f6fa: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f6fc: 681b ldr r3, [r3, #0] - 800f6fe: 2b00 cmp r3, #0 - 800f700: d001 beq.n 800f706 + 800f6f6: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f6f8: 681b ldr r3, [r3, #0] + 800f6fa: 2b00 cmp r3, #0 + 800f6fc: d001 beq.n 800f702 prev = r; - 800f702: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f704: 61fb str r3, [r7, #28] + 800f6fe: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f700: 61fb str r3, [r7, #28] } r = r->next; - 800f706: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f708: 681b ldr r3, [r3, #0] - 800f70a: 627b str r3, [r7, #36] ; 0x24 + 800f702: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f704: 681b ldr r3, [r3, #0] + 800f706: 627b str r3, [r7, #36] ; 0x24 while (r != NULL) { - 800f70c: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f70e: 2b00 cmp r3, #0 - 800f710: d1cb bne.n 800f6aa + 800f708: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f70a: 2b00 cmp r3, #0 + 800f70c: d1cb bne.n 800f6a6 } if (oldest != NULL) { - 800f712: 6a3b ldr r3, [r7, #32] - 800f714: 2b00 cmp r3, #0 - 800f716: d008 beq.n 800f72a + 800f70e: 6a3b ldr r3, [r7, #32] + 800f710: 2b00 cmp r3, #0 + 800f712: d008 beq.n 800f726 pbufs_freed_current = ip_reass_free_complete_datagram(oldest, oldest_prev); - 800f718: 69b9 ldr r1, [r7, #24] - 800f71a: 6a38 ldr r0, [r7, #32] - 800f71c: f7ff ff0e bl 800f53c - 800f720: 60f8 str r0, [r7, #12] + 800f714: 69b9 ldr r1, [r7, #24] + 800f716: 6a38 ldr r0, [r7, #32] + 800f718: f7ff ff0e bl 800f538 + 800f71c: 60f8 str r0, [r7, #12] pbufs_freed += pbufs_freed_current; - 800f722: 697a ldr r2, [r7, #20] - 800f724: 68fb ldr r3, [r7, #12] - 800f726: 4413 add r3, r2 - 800f728: 617b str r3, [r7, #20] + 800f71e: 697a ldr r2, [r7, #20] + 800f720: 68fb ldr r3, [r7, #12] + 800f722: 4413 add r3, r2 + 800f724: 617b str r3, [r7, #20] } } while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1)); - 800f72a: 697a ldr r2, [r7, #20] - 800f72c: 683b ldr r3, [r7, #0] - 800f72e: 429a cmp r2, r3 - 800f730: da02 bge.n 800f738 - 800f732: 693b ldr r3, [r7, #16] - 800f734: 2b01 cmp r3, #1 - 800f736: dcac bgt.n 800f692 + 800f726: 697a ldr r2, [r7, #20] + 800f728: 683b ldr r3, [r7, #0] + 800f72a: 429a cmp r2, r3 + 800f72c: da02 bge.n 800f734 + 800f72e: 693b ldr r3, [r7, #16] + 800f730: 2b01 cmp r3, #1 + 800f732: dcac bgt.n 800f68e return pbufs_freed; - 800f738: 697b ldr r3, [r7, #20] + 800f734: 697b ldr r3, [r7, #20] } - 800f73a: 4618 mov r0, r3 - 800f73c: 3728 adds r7, #40 ; 0x28 - 800f73e: 46bd mov sp, r7 - 800f740: bd80 pop {r7, pc} - 800f742: bf00 nop - 800f744: 20008d88 .word 0x20008d88 + 800f736: 4618 mov r0, r3 + 800f738: 3728 adds r7, #40 ; 0x28 + 800f73a: 46bd mov sp, r7 + 800f73c: bd80 pop {r7, pc} + 800f73e: bf00 nop + 800f740: 20008d88 .word 0x20008d88 -0800f748 : +0800f744 : * @param clen number of pbufs needed to enqueue (used for freeing other datagrams if not enough space) * @return A pointer to the queue location into which the fragment was enqueued */ static struct ip_reassdata * ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen) { - 800f748: b580 push {r7, lr} - 800f74a: b084 sub sp, #16 - 800f74c: af00 add r7, sp, #0 - 800f74e: 6078 str r0, [r7, #4] - 800f750: 6039 str r1, [r7, #0] + 800f744: b580 push {r7, lr} + 800f746: b084 sub sp, #16 + 800f748: af00 add r7, sp, #0 + 800f74a: 6078 str r0, [r7, #4] + 800f74c: 6039 str r1, [r7, #0] #if ! IP_REASS_FREE_OLDEST LWIP_UNUSED_ARG(clen); #endif /* No matching previous fragment found, allocate a new reassdata struct */ ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA); - 800f752: 2004 movs r0, #4 - 800f754: f7f5 fa30 bl 8004bb8 - 800f758: 60f8 str r0, [r7, #12] + 800f74e: 2004 movs r0, #4 + 800f750: f7f5 fa30 bl 8004bb4 + 800f754: 60f8 str r0, [r7, #12] if (ipr == NULL) { - 800f75a: 68fb ldr r3, [r7, #12] - 800f75c: 2b00 cmp r3, #0 - 800f75e: d110 bne.n 800f782 + 800f756: 68fb ldr r3, [r7, #12] + 800f758: 2b00 cmp r3, #0 + 800f75a: d110 bne.n 800f77e #if IP_REASS_FREE_OLDEST if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) { - 800f760: 6839 ldr r1, [r7, #0] - 800f762: 6878 ldr r0, [r7, #4] - 800f764: f7ff ff8e bl 800f684 - 800f768: 4602 mov r2, r0 - 800f76a: 683b ldr r3, [r7, #0] - 800f76c: 4293 cmp r3, r2 - 800f76e: dc03 bgt.n 800f778 + 800f75c: 6839 ldr r1, [r7, #0] + 800f75e: 6878 ldr r0, [r7, #4] + 800f760: f7ff ff8e bl 800f680 + 800f764: 4602 mov r2, r0 + 800f766: 683b ldr r3, [r7, #0] + 800f768: 4293 cmp r3, r2 + 800f76a: dc03 bgt.n 800f774 ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA); - 800f770: 2004 movs r0, #4 - 800f772: f7f5 fa21 bl 8004bb8 - 800f776: 60f8 str r0, [r7, #12] + 800f76c: 2004 movs r0, #4 + 800f76e: f7f5 fa21 bl 8004bb4 + 800f772: 60f8 str r0, [r7, #12] } if (ipr == NULL) - 800f778: 68fb ldr r3, [r7, #12] - 800f77a: 2b00 cmp r3, #0 - 800f77c: d101 bne.n 800f782 + 800f774: 68fb ldr r3, [r7, #12] + 800f776: 2b00 cmp r3, #0 + 800f778: d101 bne.n 800f77e #endif /* IP_REASS_FREE_OLDEST */ { IPFRAG_STATS_INC(ip_frag.memerr); LWIP_DEBUGF(IP_REASS_DEBUG, ("Failed to alloc reassdata struct\n")); return NULL; - 800f77e: 2300 movs r3, #0 - 800f780: e016 b.n 800f7b0 + 800f77a: 2300 movs r3, #0 + 800f77c: e016 b.n 800f7ac } } memset(ipr, 0, sizeof(struct ip_reassdata)); - 800f782: 2220 movs r2, #32 - 800f784: 2100 movs r1, #0 - 800f786: 68f8 ldr r0, [r7, #12] - 800f788: f000 fe1c bl 80103c4 + 800f77e: 2220 movs r2, #32 + 800f780: 2100 movs r1, #0 + 800f782: 68f8 ldr r0, [r7, #12] + 800f784: f000 fe1c bl 80103c0 ipr->timer = IP_REASS_MAXAGE; - 800f78c: 68fb ldr r3, [r7, #12] - 800f78e: 220f movs r2, #15 - 800f790: 77da strb r2, [r3, #31] + 800f788: 68fb ldr r3, [r7, #12] + 800f78a: 220f movs r2, #15 + 800f78c: 77da strb r2, [r3, #31] /* enqueue the new structure to the front of the list */ ipr->next = reassdatagrams; - 800f792: 4b09 ldr r3, [pc, #36] ; (800f7b8 ) - 800f794: 681a ldr r2, [r3, #0] - 800f796: 68fb ldr r3, [r7, #12] - 800f798: 601a str r2, [r3, #0] + 800f78e: 4b09 ldr r3, [pc, #36] ; (800f7b4 ) + 800f790: 681a ldr r2, [r3, #0] + 800f792: 68fb ldr r3, [r7, #12] + 800f794: 601a str r2, [r3, #0] reassdatagrams = ipr; - 800f79a: 4a07 ldr r2, [pc, #28] ; (800f7b8 ) - 800f79c: 68fb ldr r3, [r7, #12] - 800f79e: 6013 str r3, [r2, #0] + 800f796: 4a07 ldr r2, [pc, #28] ; (800f7b4 ) + 800f798: 68fb ldr r3, [r7, #12] + 800f79a: 6013 str r3, [r2, #0] /* copy the ip header for later tests and input */ /* @todo: no ip options supported? */ SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN); - 800f7a0: 68fb ldr r3, [r7, #12] - 800f7a2: 3308 adds r3, #8 - 800f7a4: 2214 movs r2, #20 - 800f7a6: 6879 ldr r1, [r7, #4] - 800f7a8: 4618 mov r0, r3 - 800f7aa: f000 fde3 bl 8010374 + 800f79c: 68fb ldr r3, [r7, #12] + 800f79e: 3308 adds r3, #8 + 800f7a0: 2214 movs r2, #20 + 800f7a2: 6879 ldr r1, [r7, #4] + 800f7a4: 4618 mov r0, r3 + 800f7a6: f000 fde3 bl 8010370 return ipr; - 800f7ae: 68fb ldr r3, [r7, #12] + 800f7aa: 68fb ldr r3, [r7, #12] } - 800f7b0: 4618 mov r0, r3 - 800f7b2: 3710 adds r7, #16 - 800f7b4: 46bd mov sp, r7 - 800f7b6: bd80 pop {r7, pc} - 800f7b8: 20008d88 .word 0x20008d88 + 800f7ac: 4618 mov r0, r3 + 800f7ae: 3710 adds r7, #16 + 800f7b0: 46bd mov sp, r7 + 800f7b2: bd80 pop {r7, pc} + 800f7b4: 20008d88 .word 0x20008d88 -0800f7bc : +0800f7b8 : * Dequeues a datagram from the datagram queue. Doesn't deallocate the pbufs. * @param ipr points to the queue entry to dequeue */ static void ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev) { - 800f7bc: b580 push {r7, lr} - 800f7be: b082 sub sp, #8 - 800f7c0: af00 add r7, sp, #0 - 800f7c2: 6078 str r0, [r7, #4] - 800f7c4: 6039 str r1, [r7, #0] + 800f7b8: b580 push {r7, lr} + 800f7ba: b082 sub sp, #8 + 800f7bc: af00 add r7, sp, #0 + 800f7be: 6078 str r0, [r7, #4] + 800f7c0: 6039 str r1, [r7, #0] /* dequeue the reass struct */ if (reassdatagrams == ipr) { - 800f7c6: 4b10 ldr r3, [pc, #64] ; (800f808 ) - 800f7c8: 681b ldr r3, [r3, #0] - 800f7ca: 687a ldr r2, [r7, #4] - 800f7cc: 429a cmp r2, r3 - 800f7ce: d104 bne.n 800f7da + 800f7c2: 4b10 ldr r3, [pc, #64] ; (800f804 ) + 800f7c4: 681b ldr r3, [r3, #0] + 800f7c6: 687a ldr r2, [r7, #4] + 800f7c8: 429a cmp r2, r3 + 800f7ca: d104 bne.n 800f7d6 /* it was the first in the list */ reassdatagrams = ipr->next; - 800f7d0: 687b ldr r3, [r7, #4] - 800f7d2: 681b ldr r3, [r3, #0] - 800f7d4: 4a0c ldr r2, [pc, #48] ; (800f808 ) - 800f7d6: 6013 str r3, [r2, #0] - 800f7d8: e00d b.n 800f7f6 + 800f7cc: 687b ldr r3, [r7, #4] + 800f7ce: 681b ldr r3, [r3, #0] + 800f7d0: 4a0c ldr r2, [pc, #48] ; (800f804 ) + 800f7d2: 6013 str r3, [r2, #0] + 800f7d4: e00d b.n 800f7f2 } else { /* it wasn't the first, so it must have a valid 'prev' */ LWIP_ASSERT("sanity check linked list", prev != NULL); - 800f7da: 683b ldr r3, [r7, #0] - 800f7dc: 2b00 cmp r3, #0 - 800f7de: d106 bne.n 800f7ee - 800f7e0: 4b0a ldr r3, [pc, #40] ; (800f80c ) - 800f7e2: f240 1245 movw r2, #325 ; 0x145 - 800f7e6: 490a ldr r1, [pc, #40] ; (800f810 ) - 800f7e8: 480a ldr r0, [pc, #40] ; (800f814 ) - 800f7ea: f000 fdf3 bl 80103d4 + 800f7d6: 683b ldr r3, [r7, #0] + 800f7d8: 2b00 cmp r3, #0 + 800f7da: d106 bne.n 800f7ea + 800f7dc: 4b0a ldr r3, [pc, #40] ; (800f808 ) + 800f7de: f240 1245 movw r2, #325 ; 0x145 + 800f7e2: 490a ldr r1, [pc, #40] ; (800f80c ) + 800f7e4: 480a ldr r0, [pc, #40] ; (800f810 ) + 800f7e6: f000 fdf3 bl 80103d0 prev->next = ipr->next; - 800f7ee: 687b ldr r3, [r7, #4] - 800f7f0: 681a ldr r2, [r3, #0] - 800f7f2: 683b ldr r3, [r7, #0] - 800f7f4: 601a str r2, [r3, #0] + 800f7ea: 687b ldr r3, [r7, #4] + 800f7ec: 681a ldr r2, [r3, #0] + 800f7ee: 683b ldr r3, [r7, #0] + 800f7f0: 601a str r2, [r3, #0] } /* now we can free the ip_reassdata struct */ memp_free(MEMP_REASSDATA, ipr); - 800f7f6: 6879 ldr r1, [r7, #4] - 800f7f8: 2004 movs r0, #4 - 800f7fa: f7f5 fa4d bl 8004c98 + 800f7f2: 6879 ldr r1, [r7, #4] + 800f7f4: 2004 movs r0, #4 + 800f7f6: f7f5 fa4d bl 8004c94 } - 800f7fe: bf00 nop - 800f800: 3708 adds r7, #8 - 800f802: 46bd mov sp, r7 - 800f804: bd80 pop {r7, pc} - 800f806: bf00 nop - 800f808: 20008d88 .word 0x20008d88 - 800f80c: 08017a24 .word 0x08017a24 - 800f810: 08017aec .word 0x08017aec - 800f814: 08017a6c .word 0x08017a6c + 800f7fa: bf00 nop + 800f7fc: 3708 adds r7, #8 + 800f7fe: 46bd mov sp, r7 + 800f800: bd80 pop {r7, pc} + 800f802: bf00 nop + 800f804: 20008d88 .word 0x20008d88 + 800f808: 08017a24 .word 0x08017a24 + 800f80c: 08017aec .word 0x08017aec + 800f810: 08017a6c .word 0x08017a6c -0800f818 : +0800f814 : * @param is_last is 1 if this pbuf has MF==0 (ipr->flags not updated yet) * @return see IP_REASS_VALIDATE_* defines */ static int ip_reass_chain_frag_into_datagram_and_validate(struct ip_reassdata *ipr, struct pbuf *new_p, int is_last) { - 800f818: b580 push {r7, lr} - 800f81a: b08c sub sp, #48 ; 0x30 - 800f81c: af00 add r7, sp, #0 - 800f81e: 60f8 str r0, [r7, #12] - 800f820: 60b9 str r1, [r7, #8] - 800f822: 607a str r2, [r7, #4] + 800f814: b580 push {r7, lr} + 800f816: b08c sub sp, #48 ; 0x30 + 800f818: af00 add r7, sp, #0 + 800f81a: 60f8 str r0, [r7, #12] + 800f81c: 60b9 str r1, [r7, #8] + 800f81e: 607a str r2, [r7, #4] struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev = NULL; - 800f824: 2300 movs r3, #0 - 800f826: 62bb str r3, [r7, #40] ; 0x28 + 800f820: 2300 movs r3, #0 + 800f822: 62bb str r3, [r7, #40] ; 0x28 struct pbuf *q; u16_t offset, len; u8_t hlen; struct ip_hdr *fraghdr; int valid = 1; - 800f828: 2301 movs r3, #1 - 800f82a: 623b str r3, [r7, #32] + 800f824: 2301 movs r3, #1 + 800f826: 623b str r3, [r7, #32] /* Extract length and fragment offset from current fragment */ fraghdr = (struct ip_hdr *)new_p->payload; - 800f82c: 68bb ldr r3, [r7, #8] - 800f82e: 685b ldr r3, [r3, #4] - 800f830: 61fb str r3, [r7, #28] + 800f828: 68bb ldr r3, [r7, #8] + 800f82a: 685b ldr r3, [r3, #4] + 800f82c: 61fb str r3, [r7, #28] len = lwip_ntohs(IPH_LEN(fraghdr)); - 800f832: 69fb ldr r3, [r7, #28] - 800f834: 885b ldrh r3, [r3, #2] - 800f836: b29b uxth r3, r3 - 800f838: 4618 mov r0, r3 - 800f83a: f7f4 fd45 bl 80042c8 - 800f83e: 4603 mov r3, r0 - 800f840: 837b strh r3, [r7, #26] + 800f82e: 69fb ldr r3, [r7, #28] + 800f830: 885b ldrh r3, [r3, #2] + 800f832: b29b uxth r3, r3 + 800f834: 4618 mov r0, r3 + 800f836: f7f4 fd45 bl 80042c4 + 800f83a: 4603 mov r3, r0 + 800f83c: 837b strh r3, [r7, #26] hlen = IPH_HL_BYTES(fraghdr); - 800f842: 69fb ldr r3, [r7, #28] - 800f844: 781b ldrb r3, [r3, #0] - 800f846: f003 030f and.w r3, r3, #15 - 800f84a: b2db uxtb r3, r3 - 800f84c: 009b lsls r3, r3, #2 - 800f84e: 767b strb r3, [r7, #25] + 800f83e: 69fb ldr r3, [r7, #28] + 800f840: 781b ldrb r3, [r3, #0] + 800f842: f003 030f and.w r3, r3, #15 + 800f846: b2db uxtb r3, r3 + 800f848: 009b lsls r3, r3, #2 + 800f84a: 767b strb r3, [r7, #25] if (hlen > len) { - 800f850: 7e7b ldrb r3, [r7, #25] - 800f852: b29b uxth r3, r3 - 800f854: 8b7a ldrh r2, [r7, #26] - 800f856: 429a cmp r2, r3 - 800f858: d202 bcs.n 800f860 + 800f84c: 7e7b ldrb r3, [r7, #25] + 800f84e: b29b uxth r3, r3 + 800f850: 8b7a ldrh r2, [r7, #26] + 800f852: 429a cmp r2, r3 + 800f854: d202 bcs.n 800f85c /* invalid datagram */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 800f85a: f04f 33ff mov.w r3, #4294967295 - 800f85e: e135 b.n 800facc + 800f856: f04f 33ff mov.w r3, #4294967295 + 800f85a: e135 b.n 800fac8 } len = (u16_t)(len - hlen); - 800f860: 7e7b ldrb r3, [r7, #25] - 800f862: b29b uxth r3, r3 - 800f864: 8b7a ldrh r2, [r7, #26] - 800f866: 1ad3 subs r3, r2, r3 - 800f868: 837b strh r3, [r7, #26] + 800f85c: 7e7b ldrb r3, [r7, #25] + 800f85e: b29b uxth r3, r3 + 800f860: 8b7a ldrh r2, [r7, #26] + 800f862: 1ad3 subs r3, r2, r3 + 800f864: 837b strh r3, [r7, #26] offset = IPH_OFFSET_BYTES(fraghdr); - 800f86a: 69fb ldr r3, [r7, #28] - 800f86c: 88db ldrh r3, [r3, #6] - 800f86e: b29b uxth r3, r3 - 800f870: 4618 mov r0, r3 - 800f872: f7f4 fd29 bl 80042c8 - 800f876: 4603 mov r3, r0 - 800f878: f3c3 030c ubfx r3, r3, #0, #13 - 800f87c: b29b uxth r3, r3 - 800f87e: 00db lsls r3, r3, #3 - 800f880: 82fb strh r3, [r7, #22] + 800f866: 69fb ldr r3, [r7, #28] + 800f868: 88db ldrh r3, [r3, #6] + 800f86a: b29b uxth r3, r3 + 800f86c: 4618 mov r0, r3 + 800f86e: f7f4 fd29 bl 80042c4 + 800f872: 4603 mov r3, r0 + 800f874: f3c3 030c ubfx r3, r3, #0, #13 + 800f878: b29b uxth r3, r3 + 800f87a: 00db lsls r3, r3, #3 + 800f87c: 82fb strh r3, [r7, #22] /* overwrite the fragment's ip header from the pbuf with our helper struct, * and setup the embedded helper structure. */ /* make sure the struct ip_reass_helper fits into the IP header */ LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN", sizeof(struct ip_reass_helper) <= IP_HLEN); iprh = (struct ip_reass_helper *)new_p->payload; - 800f882: 68bb ldr r3, [r7, #8] - 800f884: 685b ldr r3, [r3, #4] - 800f886: 62fb str r3, [r7, #44] ; 0x2c + 800f87e: 68bb ldr r3, [r7, #8] + 800f880: 685b ldr r3, [r3, #4] + 800f882: 62fb str r3, [r7, #44] ; 0x2c iprh->next_pbuf = NULL; - 800f888: 6afb ldr r3, [r7, #44] ; 0x2c + 800f884: 6afb ldr r3, [r7, #44] ; 0x2c + 800f886: 2200 movs r2, #0 + 800f888: 701a strb r2, [r3, #0] 800f88a: 2200 movs r2, #0 - 800f88c: 701a strb r2, [r3, #0] + 800f88c: 705a strb r2, [r3, #1] 800f88e: 2200 movs r2, #0 - 800f890: 705a strb r2, [r3, #1] + 800f890: 709a strb r2, [r3, #2] 800f892: 2200 movs r2, #0 - 800f894: 709a strb r2, [r3, #2] - 800f896: 2200 movs r2, #0 - 800f898: 70da strb r2, [r3, #3] + 800f894: 70da strb r2, [r3, #3] iprh->start = offset; - 800f89a: 6afb ldr r3, [r7, #44] ; 0x2c - 800f89c: 8afa ldrh r2, [r7, #22] - 800f89e: 809a strh r2, [r3, #4] + 800f896: 6afb ldr r3, [r7, #44] ; 0x2c + 800f898: 8afa ldrh r2, [r7, #22] + 800f89a: 809a strh r2, [r3, #4] iprh->end = (u16_t)(offset + len); - 800f8a0: 8afa ldrh r2, [r7, #22] - 800f8a2: 8b7b ldrh r3, [r7, #26] - 800f8a4: 4413 add r3, r2 - 800f8a6: b29a uxth r2, r3 - 800f8a8: 6afb ldr r3, [r7, #44] ; 0x2c - 800f8aa: 80da strh r2, [r3, #6] + 800f89c: 8afa ldrh r2, [r7, #22] + 800f89e: 8b7b ldrh r3, [r7, #26] + 800f8a0: 4413 add r3, r2 + 800f8a2: b29a uxth r2, r3 + 800f8a4: 6afb ldr r3, [r7, #44] ; 0x2c + 800f8a6: 80da strh r2, [r3, #6] if (iprh->end < offset) { - 800f8ac: 6afb ldr r3, [r7, #44] ; 0x2c - 800f8ae: 88db ldrh r3, [r3, #6] - 800f8b0: b29b uxth r3, r3 - 800f8b2: 8afa ldrh r2, [r7, #22] - 800f8b4: 429a cmp r2, r3 - 800f8b6: d902 bls.n 800f8be + 800f8a8: 6afb ldr r3, [r7, #44] ; 0x2c + 800f8aa: 88db ldrh r3, [r3, #6] + 800f8ac: b29b uxth r3, r3 + 800f8ae: 8afa ldrh r2, [r7, #22] + 800f8b0: 429a cmp r2, r3 + 800f8b2: d902 bls.n 800f8ba /* u16_t overflow, cannot handle this */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 800f8b8: f04f 33ff mov.w r3, #4294967295 - 800f8bc: e106 b.n 800facc + 800f8b4: f04f 33ff mov.w r3, #4294967295 + 800f8b8: e106 b.n 800fac8 } /* Iterate through until we either get to the end of the list (append), * or we find one with a larger offset (insert). */ for (q = ipr->p; q != NULL;) { - 800f8be: 68fb ldr r3, [r7, #12] - 800f8c0: 685b ldr r3, [r3, #4] - 800f8c2: 627b str r3, [r7, #36] ; 0x24 - 800f8c4: e068 b.n 800f998 + 800f8ba: 68fb ldr r3, [r7, #12] + 800f8bc: 685b ldr r3, [r3, #4] + 800f8be: 627b str r3, [r7, #36] ; 0x24 + 800f8c0: e068 b.n 800f994 iprh_tmp = (struct ip_reass_helper *)q->payload; - 800f8c6: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f8c8: 685b ldr r3, [r3, #4] - 800f8ca: 613b str r3, [r7, #16] + 800f8c2: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f8c4: 685b ldr r3, [r3, #4] + 800f8c6: 613b str r3, [r7, #16] if (iprh->start < iprh_tmp->start) { - 800f8cc: 6afb ldr r3, [r7, #44] ; 0x2c - 800f8ce: 889b ldrh r3, [r3, #4] - 800f8d0: b29a uxth r2, r3 - 800f8d2: 693b ldr r3, [r7, #16] - 800f8d4: 889b ldrh r3, [r3, #4] - 800f8d6: b29b uxth r3, r3 - 800f8d8: 429a cmp r2, r3 - 800f8da: d235 bcs.n 800f948 + 800f8c8: 6afb ldr r3, [r7, #44] ; 0x2c + 800f8ca: 889b ldrh r3, [r3, #4] + 800f8cc: b29a uxth r2, r3 + 800f8ce: 693b ldr r3, [r7, #16] + 800f8d0: 889b ldrh r3, [r3, #4] + 800f8d2: b29b uxth r3, r3 + 800f8d4: 429a cmp r2, r3 + 800f8d6: d235 bcs.n 800f944 /* the new pbuf should be inserted before this */ iprh->next_pbuf = q; - 800f8dc: 6afb ldr r3, [r7, #44] ; 0x2c - 800f8de: 6a7a ldr r2, [r7, #36] ; 0x24 - 800f8e0: 601a str r2, [r3, #0] + 800f8d8: 6afb ldr r3, [r7, #44] ; 0x2c + 800f8da: 6a7a ldr r2, [r7, #36] ; 0x24 + 800f8dc: 601a str r2, [r3, #0] if (iprh_prev != NULL) { - 800f8e2: 6abb ldr r3, [r7, #40] ; 0x28 - 800f8e4: 2b00 cmp r3, #0 - 800f8e6: d020 beq.n 800f92a + 800f8de: 6abb ldr r3, [r7, #40] ; 0x28 + 800f8e0: 2b00 cmp r3, #0 + 800f8e2: d020 beq.n 800f926 /* not the fragment with the lowest offset */ #if IP_REASS_CHECK_OVERLAP if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) { - 800f8e8: 6afb ldr r3, [r7, #44] ; 0x2c - 800f8ea: 889b ldrh r3, [r3, #4] - 800f8ec: b29a uxth r2, r3 - 800f8ee: 6abb ldr r3, [r7, #40] ; 0x28 - 800f8f0: 88db ldrh r3, [r3, #6] - 800f8f2: b29b uxth r3, r3 - 800f8f4: 429a cmp r2, r3 - 800f8f6: d307 bcc.n 800f908 - 800f8f8: 6afb ldr r3, [r7, #44] ; 0x2c - 800f8fa: 88db ldrh r3, [r3, #6] - 800f8fc: b29a uxth r2, r3 - 800f8fe: 693b ldr r3, [r7, #16] - 800f900: 889b ldrh r3, [r3, #4] - 800f902: b29b uxth r3, r3 - 800f904: 429a cmp r2, r3 - 800f906: d902 bls.n 800f90e + 800f8e4: 6afb ldr r3, [r7, #44] ; 0x2c + 800f8e6: 889b ldrh r3, [r3, #4] + 800f8e8: b29a uxth r2, r3 + 800f8ea: 6abb ldr r3, [r7, #40] ; 0x28 + 800f8ec: 88db ldrh r3, [r3, #6] + 800f8ee: b29b uxth r3, r3 + 800f8f0: 429a cmp r2, r3 + 800f8f2: d307 bcc.n 800f904 + 800f8f4: 6afb ldr r3, [r7, #44] ; 0x2c + 800f8f6: 88db ldrh r3, [r3, #6] + 800f8f8: b29a uxth r2, r3 + 800f8fa: 693b ldr r3, [r7, #16] + 800f8fc: 889b ldrh r3, [r3, #4] + 800f8fe: b29b uxth r3, r3 + 800f900: 429a cmp r2, r3 + 800f902: d902 bls.n 800f90a /* fragment overlaps with previous or following, throw away */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 800f908: f04f 33ff mov.w r3, #4294967295 - 800f90c: e0de b.n 800facc + 800f904: f04f 33ff mov.w r3, #4294967295 + 800f908: e0de b.n 800fac8 } #endif /* IP_REASS_CHECK_OVERLAP */ iprh_prev->next_pbuf = new_p; - 800f90e: 6abb ldr r3, [r7, #40] ; 0x28 - 800f910: 68ba ldr r2, [r7, #8] - 800f912: 601a str r2, [r3, #0] + 800f90a: 6abb ldr r3, [r7, #40] ; 0x28 + 800f90c: 68ba ldr r2, [r7, #8] + 800f90e: 601a str r2, [r3, #0] if (iprh_prev->end != iprh->start) { - 800f914: 6abb ldr r3, [r7, #40] ; 0x28 - 800f916: 88db ldrh r3, [r3, #6] - 800f918: b29a uxth r2, r3 - 800f91a: 6afb ldr r3, [r7, #44] ; 0x2c - 800f91c: 889b ldrh r3, [r3, #4] - 800f91e: b29b uxth r3, r3 - 800f920: 429a cmp r2, r3 - 800f922: d03d beq.n 800f9a0 + 800f910: 6abb ldr r3, [r7, #40] ; 0x28 + 800f912: 88db ldrh r3, [r3, #6] + 800f914: b29a uxth r2, r3 + 800f916: 6afb ldr r3, [r7, #44] ; 0x2c + 800f918: 889b ldrh r3, [r3, #4] + 800f91a: b29b uxth r3, r3 + 800f91c: 429a cmp r2, r3 + 800f91e: d03d beq.n 800f99c /* There is a fragment missing between the current * and the previous fragment */ valid = 0; - 800f924: 2300 movs r3, #0 - 800f926: 623b str r3, [r7, #32] + 800f920: 2300 movs r3, #0 + 800f922: 623b str r3, [r7, #32] } #endif /* IP_REASS_CHECK_OVERLAP */ /* fragment with the lowest offset */ ipr->p = new_p; } break; - 800f928: e03a b.n 800f9a0 + 800f924: e03a b.n 800f99c if (iprh->end > iprh_tmp->start) { - 800f92a: 6afb ldr r3, [r7, #44] ; 0x2c - 800f92c: 88db ldrh r3, [r3, #6] - 800f92e: b29a uxth r2, r3 - 800f930: 693b ldr r3, [r7, #16] - 800f932: 889b ldrh r3, [r3, #4] - 800f934: b29b uxth r3, r3 - 800f936: 429a cmp r2, r3 - 800f938: d902 bls.n 800f940 + 800f926: 6afb ldr r3, [r7, #44] ; 0x2c + 800f928: 88db ldrh r3, [r3, #6] + 800f92a: b29a uxth r2, r3 + 800f92c: 693b ldr r3, [r7, #16] + 800f92e: 889b ldrh r3, [r3, #4] + 800f930: b29b uxth r3, r3 + 800f932: 429a cmp r2, r3 + 800f934: d902 bls.n 800f93c return IP_REASS_VALIDATE_PBUF_DROPPED; - 800f93a: f04f 33ff mov.w r3, #4294967295 - 800f93e: e0c5 b.n 800facc + 800f936: f04f 33ff mov.w r3, #4294967295 + 800f93a: e0c5 b.n 800fac8 ipr->p = new_p; - 800f940: 68fb ldr r3, [r7, #12] - 800f942: 68ba ldr r2, [r7, #8] - 800f944: 605a str r2, [r3, #4] + 800f93c: 68fb ldr r3, [r7, #12] + 800f93e: 68ba ldr r2, [r7, #8] + 800f940: 605a str r2, [r3, #4] break; - 800f946: e02b b.n 800f9a0 + 800f942: e02b b.n 800f99c } else if (iprh->start == iprh_tmp->start) { - 800f948: 6afb ldr r3, [r7, #44] ; 0x2c - 800f94a: 889b ldrh r3, [r3, #4] - 800f94c: b29a uxth r2, r3 - 800f94e: 693b ldr r3, [r7, #16] - 800f950: 889b ldrh r3, [r3, #4] - 800f952: b29b uxth r3, r3 - 800f954: 429a cmp r2, r3 - 800f956: d102 bne.n 800f95e + 800f944: 6afb ldr r3, [r7, #44] ; 0x2c + 800f946: 889b ldrh r3, [r3, #4] + 800f948: b29a uxth r2, r3 + 800f94a: 693b ldr r3, [r7, #16] + 800f94c: 889b ldrh r3, [r3, #4] + 800f94e: b29b uxth r3, r3 + 800f950: 429a cmp r2, r3 + 800f952: d102 bne.n 800f95a /* received the same datagram twice: no need to keep the datagram */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 800f958: f04f 33ff mov.w r3, #4294967295 - 800f95c: e0b6 b.n 800facc + 800f954: f04f 33ff mov.w r3, #4294967295 + 800f958: e0b6 b.n 800fac8 #if IP_REASS_CHECK_OVERLAP } else if (iprh->start < iprh_tmp->end) { - 800f95e: 6afb ldr r3, [r7, #44] ; 0x2c - 800f960: 889b ldrh r3, [r3, #4] - 800f962: b29a uxth r2, r3 - 800f964: 693b ldr r3, [r7, #16] - 800f966: 88db ldrh r3, [r3, #6] - 800f968: b29b uxth r3, r3 - 800f96a: 429a cmp r2, r3 - 800f96c: d202 bcs.n 800f974 + 800f95a: 6afb ldr r3, [r7, #44] ; 0x2c + 800f95c: 889b ldrh r3, [r3, #4] + 800f95e: b29a uxth r2, r3 + 800f960: 693b ldr r3, [r7, #16] + 800f962: 88db ldrh r3, [r3, #6] + 800f964: b29b uxth r3, r3 + 800f966: 429a cmp r2, r3 + 800f968: d202 bcs.n 800f970 /* overlap: no need to keep the new datagram */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 800f96e: f04f 33ff mov.w r3, #4294967295 - 800f972: e0ab b.n 800facc + 800f96a: f04f 33ff mov.w r3, #4294967295 + 800f96e: e0ab b.n 800fac8 #endif /* IP_REASS_CHECK_OVERLAP */ } else { /* Check if the fragments received so far have no holes. */ if (iprh_prev != NULL) { - 800f974: 6abb ldr r3, [r7, #40] ; 0x28 - 800f976: 2b00 cmp r3, #0 - 800f978: d009 beq.n 800f98e + 800f970: 6abb ldr r3, [r7, #40] ; 0x28 + 800f972: 2b00 cmp r3, #0 + 800f974: d009 beq.n 800f98a if (iprh_prev->end != iprh_tmp->start) { - 800f97a: 6abb ldr r3, [r7, #40] ; 0x28 - 800f97c: 88db ldrh r3, [r3, #6] - 800f97e: b29a uxth r2, r3 - 800f980: 693b ldr r3, [r7, #16] - 800f982: 889b ldrh r3, [r3, #4] - 800f984: b29b uxth r3, r3 - 800f986: 429a cmp r2, r3 - 800f988: d001 beq.n 800f98e + 800f976: 6abb ldr r3, [r7, #40] ; 0x28 + 800f978: 88db ldrh r3, [r3, #6] + 800f97a: b29a uxth r2, r3 + 800f97c: 693b ldr r3, [r7, #16] + 800f97e: 889b ldrh r3, [r3, #4] + 800f980: b29b uxth r3, r3 + 800f982: 429a cmp r2, r3 + 800f984: d001 beq.n 800f98a /* There is a fragment missing between the current * and the previous fragment */ valid = 0; - 800f98a: 2300 movs r3, #0 - 800f98c: 623b str r3, [r7, #32] + 800f986: 2300 movs r3, #0 + 800f988: 623b str r3, [r7, #32] } } } q = iprh_tmp->next_pbuf; - 800f98e: 693b ldr r3, [r7, #16] - 800f990: 681b ldr r3, [r3, #0] - 800f992: 627b str r3, [r7, #36] ; 0x24 + 800f98a: 693b ldr r3, [r7, #16] + 800f98c: 681b ldr r3, [r3, #0] + 800f98e: 627b str r3, [r7, #36] ; 0x24 iprh_prev = iprh_tmp; - 800f994: 693b ldr r3, [r7, #16] - 800f996: 62bb str r3, [r7, #40] ; 0x28 + 800f990: 693b ldr r3, [r7, #16] + 800f992: 62bb str r3, [r7, #40] ; 0x28 for (q = ipr->p; q != NULL;) { - 800f998: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f99a: 2b00 cmp r3, #0 - 800f99c: d193 bne.n 800f8c6 - 800f99e: e000 b.n 800f9a2 + 800f994: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f996: 2b00 cmp r3, #0 + 800f998: d193 bne.n 800f8c2 + 800f99a: e000 b.n 800f99e break; - 800f9a0: bf00 nop + 800f99c: bf00 nop } /* If q is NULL, then we made it to the end of the list. Determine what to do now */ if (q == NULL) { - 800f9a2: 6a7b ldr r3, [r7, #36] ; 0x24 - 800f9a4: 2b00 cmp r3, #0 - 800f9a6: d12d bne.n 800fa04 + 800f99e: 6a7b ldr r3, [r7, #36] ; 0x24 + 800f9a0: 2b00 cmp r3, #0 + 800f9a2: d12d bne.n 800fa00 if (iprh_prev != NULL) { - 800f9a8: 6abb ldr r3, [r7, #40] ; 0x28 - 800f9aa: 2b00 cmp r3, #0 - 800f9ac: d01c beq.n 800f9e8 + 800f9a4: 6abb ldr r3, [r7, #40] ; 0x28 + 800f9a6: 2b00 cmp r3, #0 + 800f9a8: d01c beq.n 800f9e4 /* this is (for now), the fragment with the highest offset: * chain it to the last fragment */ #if IP_REASS_CHECK_OVERLAP LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start); - 800f9ae: 6abb ldr r3, [r7, #40] ; 0x28 - 800f9b0: 88db ldrh r3, [r3, #6] - 800f9b2: b29a uxth r2, r3 - 800f9b4: 6afb ldr r3, [r7, #44] ; 0x2c - 800f9b6: 889b ldrh r3, [r3, #4] - 800f9b8: b29b uxth r3, r3 - 800f9ba: 429a cmp r2, r3 - 800f9bc: d906 bls.n 800f9cc - 800f9be: 4b45 ldr r3, [pc, #276] ; (800fad4 ) - 800f9c0: f44f 72db mov.w r2, #438 ; 0x1b6 - 800f9c4: 4944 ldr r1, [pc, #272] ; (800fad8 ) - 800f9c6: 4845 ldr r0, [pc, #276] ; (800fadc ) - 800f9c8: f000 fd04 bl 80103d4 + 800f9aa: 6abb ldr r3, [r7, #40] ; 0x28 + 800f9ac: 88db ldrh r3, [r3, #6] + 800f9ae: b29a uxth r2, r3 + 800f9b0: 6afb ldr r3, [r7, #44] ; 0x2c + 800f9b2: 889b ldrh r3, [r3, #4] + 800f9b4: b29b uxth r3, r3 + 800f9b6: 429a cmp r2, r3 + 800f9b8: d906 bls.n 800f9c8 + 800f9ba: 4b45 ldr r3, [pc, #276] ; (800fad0 ) + 800f9bc: f44f 72db mov.w r2, #438 ; 0x1b6 + 800f9c0: 4944 ldr r1, [pc, #272] ; (800fad4 ) + 800f9c2: 4845 ldr r0, [pc, #276] ; (800fad8 ) + 800f9c4: f000 fd04 bl 80103d0 #endif /* IP_REASS_CHECK_OVERLAP */ iprh_prev->next_pbuf = new_p; - 800f9cc: 6abb ldr r3, [r7, #40] ; 0x28 - 800f9ce: 68ba ldr r2, [r7, #8] - 800f9d0: 601a str r2, [r3, #0] + 800f9c8: 6abb ldr r3, [r7, #40] ; 0x28 + 800f9ca: 68ba ldr r2, [r7, #8] + 800f9cc: 601a str r2, [r3, #0] if (iprh_prev->end != iprh->start) { - 800f9d2: 6abb ldr r3, [r7, #40] ; 0x28 - 800f9d4: 88db ldrh r3, [r3, #6] - 800f9d6: b29a uxth r2, r3 - 800f9d8: 6afb ldr r3, [r7, #44] ; 0x2c - 800f9da: 889b ldrh r3, [r3, #4] - 800f9dc: b29b uxth r3, r3 - 800f9de: 429a cmp r2, r3 - 800f9e0: d010 beq.n 800fa04 + 800f9ce: 6abb ldr r3, [r7, #40] ; 0x28 + 800f9d0: 88db ldrh r3, [r3, #6] + 800f9d2: b29a uxth r2, r3 + 800f9d4: 6afb ldr r3, [r7, #44] ; 0x2c + 800f9d6: 889b ldrh r3, [r3, #4] + 800f9d8: b29b uxth r3, r3 + 800f9da: 429a cmp r2, r3 + 800f9dc: d010 beq.n 800fa00 valid = 0; - 800f9e2: 2300 movs r3, #0 - 800f9e4: 623b str r3, [r7, #32] - 800f9e6: e00d b.n 800fa04 + 800f9de: 2300 movs r3, #0 + 800f9e0: 623b str r3, [r7, #32] + 800f9e2: e00d b.n 800fa00 } } else { #if IP_REASS_CHECK_OVERLAP LWIP_ASSERT("no previous fragment, this must be the first fragment!", - 800f9e8: 68fb ldr r3, [r7, #12] - 800f9ea: 685b ldr r3, [r3, #4] - 800f9ec: 2b00 cmp r3, #0 - 800f9ee: d006 beq.n 800f9fe - 800f9f0: 4b38 ldr r3, [pc, #224] ; (800fad4 ) - 800f9f2: f44f 72df mov.w r2, #446 ; 0x1be - 800f9f6: 493a ldr r1, [pc, #232] ; (800fae0 ) - 800f9f8: 4838 ldr r0, [pc, #224] ; (800fadc ) - 800f9fa: f000 fceb bl 80103d4 + 800f9e4: 68fb ldr r3, [r7, #12] + 800f9e6: 685b ldr r3, [r3, #4] + 800f9e8: 2b00 cmp r3, #0 + 800f9ea: d006 beq.n 800f9fa + 800f9ec: 4b38 ldr r3, [pc, #224] ; (800fad0 ) + 800f9ee: f44f 72df mov.w r2, #446 ; 0x1be + 800f9f2: 493a ldr r1, [pc, #232] ; (800fadc ) + 800f9f4: 4838 ldr r0, [pc, #224] ; (800fad8 ) + 800f9f6: f000 fceb bl 80103d0 ipr->p == NULL); #endif /* IP_REASS_CHECK_OVERLAP */ /* this is the first fragment we ever received for this ip datagram */ ipr->p = new_p; - 800f9fe: 68fb ldr r3, [r7, #12] - 800fa00: 68ba ldr r2, [r7, #8] - 800fa02: 605a str r2, [r3, #4] + 800f9fa: 68fb ldr r3, [r7, #12] + 800f9fc: 68ba ldr r2, [r7, #8] + 800f9fe: 605a str r2, [r3, #4] } } /* At this point, the validation part begins: */ /* If we already received the last fragment */ if (is_last || ((ipr->flags & IP_REASS_FLAG_LASTFRAG) != 0)) { - 800fa04: 687b ldr r3, [r7, #4] - 800fa06: 2b00 cmp r3, #0 - 800fa08: d105 bne.n 800fa16 - 800fa0a: 68fb ldr r3, [r7, #12] - 800fa0c: 7f9b ldrb r3, [r3, #30] - 800fa0e: f003 0301 and.w r3, r3, #1 - 800fa12: 2b00 cmp r3, #0 - 800fa14: d059 beq.n 800faca + 800fa00: 687b ldr r3, [r7, #4] + 800fa02: 2b00 cmp r3, #0 + 800fa04: d105 bne.n 800fa12 + 800fa06: 68fb ldr r3, [r7, #12] + 800fa08: 7f9b ldrb r3, [r3, #30] + 800fa0a: f003 0301 and.w r3, r3, #1 + 800fa0e: 2b00 cmp r3, #0 + 800fa10: d059 beq.n 800fac6 /* and had no holes so far */ if (valid) { - 800fa16: 6a3b ldr r3, [r7, #32] - 800fa18: 2b00 cmp r3, #0 - 800fa1a: d04f beq.n 800fabc + 800fa12: 6a3b ldr r3, [r7, #32] + 800fa14: 2b00 cmp r3, #0 + 800fa16: d04f beq.n 800fab8 /* then check if the rest of the fragments is here */ /* Check if the queue starts with the first datagram */ if ((ipr->p == NULL) || (((struct ip_reass_helper *)ipr->p->payload)->start != 0)) { - 800fa1c: 68fb ldr r3, [r7, #12] - 800fa1e: 685b ldr r3, [r3, #4] - 800fa20: 2b00 cmp r3, #0 - 800fa22: d006 beq.n 800fa32 - 800fa24: 68fb ldr r3, [r7, #12] - 800fa26: 685b ldr r3, [r3, #4] - 800fa28: 685b ldr r3, [r3, #4] - 800fa2a: 889b ldrh r3, [r3, #4] - 800fa2c: b29b uxth r3, r3 - 800fa2e: 2b00 cmp r3, #0 - 800fa30: d002 beq.n 800fa38 + 800fa18: 68fb ldr r3, [r7, #12] + 800fa1a: 685b ldr r3, [r3, #4] + 800fa1c: 2b00 cmp r3, #0 + 800fa1e: d006 beq.n 800fa2e + 800fa20: 68fb ldr r3, [r7, #12] + 800fa22: 685b ldr r3, [r3, #4] + 800fa24: 685b ldr r3, [r3, #4] + 800fa26: 889b ldrh r3, [r3, #4] + 800fa28: b29b uxth r3, r3 + 800fa2a: 2b00 cmp r3, #0 + 800fa2c: d002 beq.n 800fa34 valid = 0; - 800fa32: 2300 movs r3, #0 - 800fa34: 623b str r3, [r7, #32] - 800fa36: e041 b.n 800fabc + 800fa2e: 2300 movs r3, #0 + 800fa30: 623b str r3, [r7, #32] + 800fa32: e041 b.n 800fab8 } else { /* and check that there are no holes after this datagram */ iprh_prev = iprh; - 800fa38: 6afb ldr r3, [r7, #44] ; 0x2c - 800fa3a: 62bb str r3, [r7, #40] ; 0x28 + 800fa34: 6afb ldr r3, [r7, #44] ; 0x2c + 800fa36: 62bb str r3, [r7, #40] ; 0x28 q = iprh->next_pbuf; - 800fa3c: 6afb ldr r3, [r7, #44] ; 0x2c - 800fa3e: 681b ldr r3, [r3, #0] - 800fa40: 627b str r3, [r7, #36] ; 0x24 + 800fa38: 6afb ldr r3, [r7, #44] ; 0x2c + 800fa3a: 681b ldr r3, [r3, #0] + 800fa3c: 627b str r3, [r7, #36] ; 0x24 while (q != NULL) { - 800fa42: e012 b.n 800fa6a + 800fa3e: e012 b.n 800fa66 iprh = (struct ip_reass_helper *)q->payload; - 800fa44: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fa46: 685b ldr r3, [r3, #4] - 800fa48: 62fb str r3, [r7, #44] ; 0x2c + 800fa40: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fa42: 685b ldr r3, [r3, #4] + 800fa44: 62fb str r3, [r7, #44] ; 0x2c if (iprh_prev->end != iprh->start) { - 800fa4a: 6abb ldr r3, [r7, #40] ; 0x28 - 800fa4c: 88db ldrh r3, [r3, #6] - 800fa4e: b29a uxth r2, r3 - 800fa50: 6afb ldr r3, [r7, #44] ; 0x2c - 800fa52: 889b ldrh r3, [r3, #4] - 800fa54: b29b uxth r3, r3 - 800fa56: 429a cmp r2, r3 - 800fa58: d002 beq.n 800fa60 + 800fa46: 6abb ldr r3, [r7, #40] ; 0x28 + 800fa48: 88db ldrh r3, [r3, #6] + 800fa4a: b29a uxth r2, r3 + 800fa4c: 6afb ldr r3, [r7, #44] ; 0x2c + 800fa4e: 889b ldrh r3, [r3, #4] + 800fa50: b29b uxth r3, r3 + 800fa52: 429a cmp r2, r3 + 800fa54: d002 beq.n 800fa5c valid = 0; - 800fa5a: 2300 movs r3, #0 - 800fa5c: 623b str r3, [r7, #32] + 800fa56: 2300 movs r3, #0 + 800fa58: 623b str r3, [r7, #32] break; - 800fa5e: e007 b.n 800fa70 + 800fa5a: e007 b.n 800fa6c } iprh_prev = iprh; - 800fa60: 6afb ldr r3, [r7, #44] ; 0x2c - 800fa62: 62bb str r3, [r7, #40] ; 0x28 + 800fa5c: 6afb ldr r3, [r7, #44] ; 0x2c + 800fa5e: 62bb str r3, [r7, #40] ; 0x28 q = iprh->next_pbuf; - 800fa64: 6afb ldr r3, [r7, #44] ; 0x2c - 800fa66: 681b ldr r3, [r3, #0] - 800fa68: 627b str r3, [r7, #36] ; 0x24 + 800fa60: 6afb ldr r3, [r7, #44] ; 0x2c + 800fa62: 681b ldr r3, [r3, #0] + 800fa64: 627b str r3, [r7, #36] ; 0x24 while (q != NULL) { - 800fa6a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fa6c: 2b00 cmp r3, #0 - 800fa6e: d1e9 bne.n 800fa44 + 800fa66: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fa68: 2b00 cmp r3, #0 + 800fa6a: d1e9 bne.n 800fa40 } /* if still valid, all fragments are received * (because to the MF==0 already arrived */ if (valid) { - 800fa70: 6a3b ldr r3, [r7, #32] - 800fa72: 2b00 cmp r3, #0 - 800fa74: d022 beq.n 800fabc + 800fa6c: 6a3b ldr r3, [r7, #32] + 800fa6e: 2b00 cmp r3, #0 + 800fa70: d022 beq.n 800fab8 LWIP_ASSERT("sanity check", ipr->p != NULL); - 800fa76: 68fb ldr r3, [r7, #12] - 800fa78: 685b ldr r3, [r3, #4] - 800fa7a: 2b00 cmp r3, #0 - 800fa7c: d106 bne.n 800fa8c - 800fa7e: 4b15 ldr r3, [pc, #84] ; (800fad4 ) - 800fa80: f240 12df movw r2, #479 ; 0x1df - 800fa84: 4917 ldr r1, [pc, #92] ; (800fae4 ) - 800fa86: 4815 ldr r0, [pc, #84] ; (800fadc ) - 800fa88: f000 fca4 bl 80103d4 + 800fa72: 68fb ldr r3, [r7, #12] + 800fa74: 685b ldr r3, [r3, #4] + 800fa76: 2b00 cmp r3, #0 + 800fa78: d106 bne.n 800fa88 + 800fa7a: 4b15 ldr r3, [pc, #84] ; (800fad0 ) + 800fa7c: f240 12df movw r2, #479 ; 0x1df + 800fa80: 4917 ldr r1, [pc, #92] ; (800fae0 ) + 800fa82: 4815 ldr r0, [pc, #84] ; (800fad8 ) + 800fa84: f000 fca4 bl 80103d0 LWIP_ASSERT("sanity check", - 800fa8c: 68fb ldr r3, [r7, #12] - 800fa8e: 685b ldr r3, [r3, #4] - 800fa90: 685b ldr r3, [r3, #4] - 800fa92: 6afa ldr r2, [r7, #44] ; 0x2c - 800fa94: 429a cmp r2, r3 - 800fa96: d106 bne.n 800faa6 - 800fa98: 4b0e ldr r3, [pc, #56] ; (800fad4 ) - 800fa9a: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 800fa9e: 4911 ldr r1, [pc, #68] ; (800fae4 ) - 800faa0: 480e ldr r0, [pc, #56] ; (800fadc ) - 800faa2: f000 fc97 bl 80103d4 + 800fa88: 68fb ldr r3, [r7, #12] + 800fa8a: 685b ldr r3, [r3, #4] + 800fa8c: 685b ldr r3, [r3, #4] + 800fa8e: 6afa ldr r2, [r7, #44] ; 0x2c + 800fa90: 429a cmp r2, r3 + 800fa92: d106 bne.n 800faa2 + 800fa94: 4b0e ldr r3, [pc, #56] ; (800fad0 ) + 800fa96: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 800fa9a: 4911 ldr r1, [pc, #68] ; (800fae0 ) + 800fa9c: 480e ldr r0, [pc, #56] ; (800fad8 ) + 800fa9e: f000 fc97 bl 80103d0 ((struct ip_reass_helper *)ipr->p->payload) != iprh); LWIP_ASSERT("validate_datagram:next_pbuf!=NULL", - 800faa6: 6afb ldr r3, [r7, #44] ; 0x2c - 800faa8: 681b ldr r3, [r3, #0] - 800faaa: 2b00 cmp r3, #0 - 800faac: d006 beq.n 800fabc - 800faae: 4b09 ldr r3, [pc, #36] ; (800fad4 ) - 800fab0: f44f 72f1 mov.w r2, #482 ; 0x1e2 - 800fab4: 490c ldr r1, [pc, #48] ; (800fae8 ) - 800fab6: 4809 ldr r0, [pc, #36] ; (800fadc ) - 800fab8: f000 fc8c bl 80103d4 + 800faa2: 6afb ldr r3, [r7, #44] ; 0x2c + 800faa4: 681b ldr r3, [r3, #0] + 800faa6: 2b00 cmp r3, #0 + 800faa8: d006 beq.n 800fab8 + 800faaa: 4b09 ldr r3, [pc, #36] ; (800fad0 ) + 800faac: f44f 72f1 mov.w r2, #482 ; 0x1e2 + 800fab0: 490c ldr r1, [pc, #48] ; (800fae4 ) + 800fab2: 4809 ldr r0, [pc, #36] ; (800fad8 ) + 800fab4: f000 fc8c bl 80103d0 } } /* If valid is 0 here, there are some fragments missing in the middle * (since MF == 0 has already arrived). Such datagrams simply time out if * no more fragments are received... */ return valid ? IP_REASS_VALIDATE_TELEGRAM_FINISHED : IP_REASS_VALIDATE_PBUF_QUEUED; - 800fabc: 6a3b ldr r3, [r7, #32] - 800fabe: 2b00 cmp r3, #0 - 800fac0: bf14 ite ne - 800fac2: 2301 movne r3, #1 - 800fac4: 2300 moveq r3, #0 - 800fac6: b2db uxtb r3, r3 - 800fac8: e000 b.n 800facc + 800fab8: 6a3b ldr r3, [r7, #32] + 800faba: 2b00 cmp r3, #0 + 800fabc: bf14 ite ne + 800fabe: 2301 movne r3, #1 + 800fac0: 2300 moveq r3, #0 + 800fac2: b2db uxtb r3, r3 + 800fac4: e000 b.n 800fac8 } /* If we come here, not all fragments were received, yet! */ return IP_REASS_VALIDATE_PBUF_QUEUED; /* not yet valid! */ - 800faca: 2300 movs r3, #0 + 800fac6: 2300 movs r3, #0 } - 800facc: 4618 mov r0, r3 - 800face: 3730 adds r7, #48 ; 0x30 - 800fad0: 46bd mov sp, r7 - 800fad2: bd80 pop {r7, pc} - 800fad4: 08017a24 .word 0x08017a24 - 800fad8: 08017b08 .word 0x08017b08 - 800fadc: 08017a6c .word 0x08017a6c - 800fae0: 08017b28 .word 0x08017b28 - 800fae4: 08017b60 .word 0x08017b60 - 800fae8: 08017b70 .word 0x08017b70 + 800fac8: 4618 mov r0, r3 + 800faca: 3730 adds r7, #48 ; 0x30 + 800facc: 46bd mov sp, r7 + 800face: bd80 pop {r7, pc} + 800fad0: 08017a24 .word 0x08017a24 + 800fad4: 08017b08 .word 0x08017b08 + 800fad8: 08017a6c .word 0x08017a6c + 800fadc: 08017b28 .word 0x08017b28 + 800fae0: 08017b60 .word 0x08017b60 + 800fae4: 08017b70 .word 0x08017b70 -0800faec : +0800fae8 : * @param p points to a pbuf chain of the fragment * @return NULL if reassembly is incomplete, ? otherwise */ struct pbuf * ip4_reass(struct pbuf *p) { - 800faec: b580 push {r7, lr} - 800faee: b08e sub sp, #56 ; 0x38 - 800faf0: af00 add r7, sp, #0 - 800faf2: 6078 str r0, [r7, #4] + 800fae8: b580 push {r7, lr} + 800faea: b08e sub sp, #56 ; 0x38 + 800faec: af00 add r7, sp, #0 + 800faee: 6078 str r0, [r7, #4] int is_last; IPFRAG_STATS_INC(ip_frag.recv); MIB2_STATS_INC(mib2.ipreasmreqds); fraghdr = (struct ip_hdr *)p->payload; - 800faf4: 687b ldr r3, [r7, #4] - 800faf6: 685b ldr r3, [r3, #4] - 800faf8: 62bb str r3, [r7, #40] ; 0x28 + 800faf0: 687b ldr r3, [r7, #4] + 800faf2: 685b ldr r3, [r3, #4] + 800faf4: 62bb str r3, [r7, #40] ; 0x28 if (IPH_HL_BYTES(fraghdr) != IP_HLEN) { - 800fafa: 6abb ldr r3, [r7, #40] ; 0x28 - 800fafc: 781b ldrb r3, [r3, #0] - 800fafe: f003 030f and.w r3, r3, #15 + 800faf6: 6abb ldr r3, [r7, #40] ; 0x28 + 800faf8: 781b ldrb r3, [r3, #0] + 800fafa: f003 030f and.w r3, r3, #15 + 800fafe: b2db uxtb r3, r3 + 800fb00: 009b lsls r3, r3, #2 800fb02: b2db uxtb r3, r3 - 800fb04: 009b lsls r3, r3, #2 - 800fb06: b2db uxtb r3, r3 - 800fb08: 2b14 cmp r3, #20 - 800fb0a: f040 8171 bne.w 800fdf0 + 800fb04: 2b14 cmp r3, #20 + 800fb06: f040 8171 bne.w 800fdec LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: IP options currently not supported!\n")); IPFRAG_STATS_INC(ip_frag.err); goto nullreturn; } offset = IPH_OFFSET_BYTES(fraghdr); - 800fb0e: 6abb ldr r3, [r7, #40] ; 0x28 - 800fb10: 88db ldrh r3, [r3, #6] - 800fb12: b29b uxth r3, r3 - 800fb14: 4618 mov r0, r3 - 800fb16: f7f4 fbd7 bl 80042c8 - 800fb1a: 4603 mov r3, r0 - 800fb1c: f3c3 030c ubfx r3, r3, #0, #13 - 800fb20: b29b uxth r3, r3 - 800fb22: 00db lsls r3, r3, #3 - 800fb24: 84fb strh r3, [r7, #38] ; 0x26 + 800fb0a: 6abb ldr r3, [r7, #40] ; 0x28 + 800fb0c: 88db ldrh r3, [r3, #6] + 800fb0e: b29b uxth r3, r3 + 800fb10: 4618 mov r0, r3 + 800fb12: f7f4 fbd7 bl 80042c4 + 800fb16: 4603 mov r3, r0 + 800fb18: f3c3 030c ubfx r3, r3, #0, #13 + 800fb1c: b29b uxth r3, r3 + 800fb1e: 00db lsls r3, r3, #3 + 800fb20: 84fb strh r3, [r7, #38] ; 0x26 len = lwip_ntohs(IPH_LEN(fraghdr)); - 800fb26: 6abb ldr r3, [r7, #40] ; 0x28 - 800fb28: 885b ldrh r3, [r3, #2] - 800fb2a: b29b uxth r3, r3 - 800fb2c: 4618 mov r0, r3 - 800fb2e: f7f4 fbcb bl 80042c8 - 800fb32: 4603 mov r3, r0 - 800fb34: 84bb strh r3, [r7, #36] ; 0x24 + 800fb22: 6abb ldr r3, [r7, #40] ; 0x28 + 800fb24: 885b ldrh r3, [r3, #2] + 800fb26: b29b uxth r3, r3 + 800fb28: 4618 mov r0, r3 + 800fb2a: f7f4 fbcb bl 80042c4 + 800fb2e: 4603 mov r3, r0 + 800fb30: 84bb strh r3, [r7, #36] ; 0x24 hlen = IPH_HL_BYTES(fraghdr); - 800fb36: 6abb ldr r3, [r7, #40] ; 0x28 - 800fb38: 781b ldrb r3, [r3, #0] - 800fb3a: f003 030f and.w r3, r3, #15 - 800fb3e: b2db uxtb r3, r3 - 800fb40: 009b lsls r3, r3, #2 - 800fb42: f887 3023 strb.w r3, [r7, #35] ; 0x23 + 800fb32: 6abb ldr r3, [r7, #40] ; 0x28 + 800fb34: 781b ldrb r3, [r3, #0] + 800fb36: f003 030f and.w r3, r3, #15 + 800fb3a: b2db uxtb r3, r3 + 800fb3c: 009b lsls r3, r3, #2 + 800fb3e: f887 3023 strb.w r3, [r7, #35] ; 0x23 if (hlen > len) { - 800fb46: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 800fb4a: b29b uxth r3, r3 - 800fb4c: 8cba ldrh r2, [r7, #36] ; 0x24 - 800fb4e: 429a cmp r2, r3 - 800fb50: f0c0 8150 bcc.w 800fdf4 + 800fb42: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 800fb46: b29b uxth r3, r3 + 800fb48: 8cba ldrh r2, [r7, #36] ; 0x24 + 800fb4a: 429a cmp r2, r3 + 800fb4c: f0c0 8150 bcc.w 800fdf0 /* invalid datagram */ goto nullreturn; } len = (u16_t)(len - hlen); - 800fb54: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 800fb58: b29b uxth r3, r3 - 800fb5a: 8cba ldrh r2, [r7, #36] ; 0x24 - 800fb5c: 1ad3 subs r3, r2, r3 - 800fb5e: 84bb strh r3, [r7, #36] ; 0x24 + 800fb50: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 800fb54: b29b uxth r3, r3 + 800fb56: 8cba ldrh r2, [r7, #36] ; 0x24 + 800fb58: 1ad3 subs r3, r2, r3 + 800fb5a: 84bb strh r3, [r7, #36] ; 0x24 /* Check if we are allowed to enqueue more datagrams. */ clen = pbuf_clen(p); - 800fb60: 6878 ldr r0, [r7, #4] - 800fb62: f7f5 ffa3 bl 8005aac - 800fb66: 4603 mov r3, r0 - 800fb68: 843b strh r3, [r7, #32] + 800fb5c: 6878 ldr r0, [r7, #4] + 800fb5e: f7f5 ffa3 bl 8005aa8 + 800fb62: 4603 mov r3, r0 + 800fb64: 843b strh r3, [r7, #32] if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) { - 800fb6a: 4b8c ldr r3, [pc, #560] ; (800fd9c ) - 800fb6c: 881b ldrh r3, [r3, #0] - 800fb6e: 461a mov r2, r3 - 800fb70: 8c3b ldrh r3, [r7, #32] - 800fb72: 4413 add r3, r2 - 800fb74: 2b0a cmp r3, #10 - 800fb76: dd10 ble.n 800fb9a + 800fb66: 4b8c ldr r3, [pc, #560] ; (800fd98 ) + 800fb68: 881b ldrh r3, [r3, #0] + 800fb6a: 461a mov r2, r3 + 800fb6c: 8c3b ldrh r3, [r7, #32] + 800fb6e: 4413 add r3, r2 + 800fb70: 2b0a cmp r3, #10 + 800fb72: dd10 ble.n 800fb96 #if IP_REASS_FREE_OLDEST if (!ip_reass_remove_oldest_datagram(fraghdr, clen) || - 800fb78: 8c3b ldrh r3, [r7, #32] - 800fb7a: 4619 mov r1, r3 - 800fb7c: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800fb7e: f7ff fd81 bl 800f684 - 800fb82: 4603 mov r3, r0 - 800fb84: 2b00 cmp r3, #0 - 800fb86: f000 8137 beq.w 800fdf8 + 800fb74: 8c3b ldrh r3, [r7, #32] + 800fb76: 4619 mov r1, r3 + 800fb78: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800fb7a: f7ff fd81 bl 800f680 + 800fb7e: 4603 mov r3, r0 + 800fb80: 2b00 cmp r3, #0 + 800fb82: f000 8137 beq.w 800fdf4 ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS)) - 800fb8a: 4b84 ldr r3, [pc, #528] ; (800fd9c ) - 800fb8c: 881b ldrh r3, [r3, #0] - 800fb8e: 461a mov r2, r3 - 800fb90: 8c3b ldrh r3, [r7, #32] - 800fb92: 4413 add r3, r2 + 800fb86: 4b84 ldr r3, [pc, #528] ; (800fd98 ) + 800fb88: 881b ldrh r3, [r3, #0] + 800fb8a: 461a mov r2, r3 + 800fb8c: 8c3b ldrh r3, [r7, #32] + 800fb8e: 4413 add r3, r2 if (!ip_reass_remove_oldest_datagram(fraghdr, clen) || - 800fb94: 2b0a cmp r3, #10 - 800fb96: f300 812f bgt.w 800fdf8 + 800fb90: 2b0a cmp r3, #10 + 800fb92: f300 812f bgt.w 800fdf4 } } /* Look for the datagram the fragment belongs to in the current datagram queue, * remembering the previous in the queue for later dequeueing. */ for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) { - 800fb9a: 4b81 ldr r3, [pc, #516] ; (800fda0 ) - 800fb9c: 681b ldr r3, [r3, #0] - 800fb9e: 633b str r3, [r7, #48] ; 0x30 - 800fba0: e015 b.n 800fbce + 800fb96: 4b81 ldr r3, [pc, #516] ; (800fd9c ) + 800fb98: 681b ldr r3, [r3, #0] + 800fb9a: 633b str r3, [r7, #48] ; 0x30 + 800fb9c: e015 b.n 800fbca /* Check if the incoming fragment matches the one currently present in the reassembly buffer. If so, we proceed with copying the fragment into the buffer. */ if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) { - 800fba2: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fba4: 695a ldr r2, [r3, #20] - 800fba6: 6abb ldr r3, [r7, #40] ; 0x28 - 800fba8: 68db ldr r3, [r3, #12] - 800fbaa: 429a cmp r2, r3 - 800fbac: d10c bne.n 800fbc8 - 800fbae: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fbb0: 699a ldr r2, [r3, #24] - 800fbb2: 6abb ldr r3, [r7, #40] ; 0x28 - 800fbb4: 691b ldr r3, [r3, #16] - 800fbb6: 429a cmp r2, r3 - 800fbb8: d106 bne.n 800fbc8 - 800fbba: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fbbc: 899a ldrh r2, [r3, #12] - 800fbbe: 6abb ldr r3, [r7, #40] ; 0x28 - 800fbc0: 889b ldrh r3, [r3, #4] - 800fbc2: b29b uxth r3, r3 - 800fbc4: 429a cmp r2, r3 - 800fbc6: d006 beq.n 800fbd6 + 800fb9e: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fba0: 695a ldr r2, [r3, #20] + 800fba2: 6abb ldr r3, [r7, #40] ; 0x28 + 800fba4: 68db ldr r3, [r3, #12] + 800fba6: 429a cmp r2, r3 + 800fba8: d10c bne.n 800fbc4 + 800fbaa: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fbac: 699a ldr r2, [r3, #24] + 800fbae: 6abb ldr r3, [r7, #40] ; 0x28 + 800fbb0: 691b ldr r3, [r3, #16] + 800fbb2: 429a cmp r2, r3 + 800fbb4: d106 bne.n 800fbc4 + 800fbb6: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fbb8: 899a ldrh r2, [r3, #12] + 800fbba: 6abb ldr r3, [r7, #40] ; 0x28 + 800fbbc: 889b ldrh r3, [r3, #4] + 800fbbe: b29b uxth r3, r3 + 800fbc0: 429a cmp r2, r3 + 800fbc2: d006 beq.n 800fbd2 for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) { - 800fbc8: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fbca: 681b ldr r3, [r3, #0] - 800fbcc: 633b str r3, [r7, #48] ; 0x30 - 800fbce: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fbd0: 2b00 cmp r3, #0 - 800fbd2: d1e6 bne.n 800fba2 - 800fbd4: e000 b.n 800fbd8 + 800fbc4: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fbc6: 681b ldr r3, [r3, #0] + 800fbc8: 633b str r3, [r7, #48] ; 0x30 + 800fbca: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fbcc: 2b00 cmp r3, #0 + 800fbce: d1e6 bne.n 800fb9e + 800fbd0: e000 b.n 800fbd4 LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: matching previous fragment ID=%"X16_F"\n", lwip_ntohs(IPH_ID(fraghdr)))); IPFRAG_STATS_INC(ip_frag.cachehit); break; - 800fbd6: bf00 nop + 800fbd2: bf00 nop } } if (ipr == NULL) { - 800fbd8: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fbda: 2b00 cmp r3, #0 - 800fbdc: d109 bne.n 800fbf2 + 800fbd4: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fbd6: 2b00 cmp r3, #0 + 800fbd8: d109 bne.n 800fbee /* Enqueue a new datagram into the datagram queue */ ipr = ip_reass_enqueue_new_datagram(fraghdr, clen); - 800fbde: 8c3b ldrh r3, [r7, #32] - 800fbe0: 4619 mov r1, r3 - 800fbe2: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800fbe4: f7ff fdb0 bl 800f748 - 800fbe8: 6338 str r0, [r7, #48] ; 0x30 + 800fbda: 8c3b ldrh r3, [r7, #32] + 800fbdc: 4619 mov r1, r3 + 800fbde: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800fbe0: f7ff fdb0 bl 800f744 + 800fbe4: 6338 str r0, [r7, #48] ; 0x30 /* Bail if unable to enqueue */ if (ipr == NULL) { - 800fbea: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fbec: 2b00 cmp r3, #0 - 800fbee: d11c bne.n 800fc2a + 800fbe6: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fbe8: 2b00 cmp r3, #0 + 800fbea: d11c bne.n 800fc26 goto nullreturn; - 800fbf0: e105 b.n 800fdfe + 800fbec: e105 b.n 800fdfa } } else { if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && - 800fbf2: 6abb ldr r3, [r7, #40] ; 0x28 - 800fbf4: 88db ldrh r3, [r3, #6] - 800fbf6: b29b uxth r3, r3 - 800fbf8: 4618 mov r0, r3 - 800fbfa: f7f4 fb65 bl 80042c8 - 800fbfe: 4603 mov r3, r0 - 800fc00: f3c3 030c ubfx r3, r3, #0, #13 - 800fc04: 2b00 cmp r3, #0 - 800fc06: d110 bne.n 800fc2a + 800fbee: 6abb ldr r3, [r7, #40] ; 0x28 + 800fbf0: 88db ldrh r3, [r3, #6] + 800fbf2: b29b uxth r3, r3 + 800fbf4: 4618 mov r0, r3 + 800fbf6: f7f4 fb65 bl 80042c4 + 800fbfa: 4603 mov r3, r0 + 800fbfc: f3c3 030c ubfx r3, r3, #0, #13 + 800fc00: 2b00 cmp r3, #0 + 800fc02: d110 bne.n 800fc26 ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) { - 800fc08: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fc0a: 89db ldrh r3, [r3, #14] - 800fc0c: 4618 mov r0, r3 - 800fc0e: f7f4 fb5b bl 80042c8 - 800fc12: 4603 mov r3, r0 - 800fc14: f3c3 030c ubfx r3, r3, #0, #13 + 800fc04: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fc06: 89db ldrh r3, [r3, #14] + 800fc08: 4618 mov r0, r3 + 800fc0a: f7f4 fb5b bl 80042c4 + 800fc0e: 4603 mov r3, r0 + 800fc10: f3c3 030c ubfx r3, r3, #0, #13 if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && - 800fc18: 2b00 cmp r3, #0 - 800fc1a: d006 beq.n 800fc2a + 800fc14: 2b00 cmp r3, #0 + 800fc16: d006 beq.n 800fc26 /* ipr->iphdr is not the header from the first fragment, but fraghdr is * -> copy fraghdr into ipr->iphdr since we want to have the header * of the first fragment (for ICMP time exceeded and later, for copying * all options, if supported)*/ SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN); - 800fc1c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fc1e: 3308 adds r3, #8 - 800fc20: 2214 movs r2, #20 - 800fc22: 6ab9 ldr r1, [r7, #40] ; 0x28 - 800fc24: 4618 mov r0, r3 - 800fc26: f000 fba5 bl 8010374 + 800fc18: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fc1a: 3308 adds r3, #8 + 800fc1c: 2214 movs r2, #20 + 800fc1e: 6ab9 ldr r1, [r7, #40] ; 0x28 + 800fc20: 4618 mov r0, r3 + 800fc22: f000 fba5 bl 8010370 /* At this point, we have either created a new entry or pointing * to an existing one */ /* check for 'no more fragments', and update queue entry*/ is_last = (IPH_OFFSET(fraghdr) & PP_NTOHS(IP_MF)) == 0; - 800fc2a: 6abb ldr r3, [r7, #40] ; 0x28 - 800fc2c: 88db ldrh r3, [r3, #6] - 800fc2e: b29b uxth r3, r3 - 800fc30: f003 0320 and.w r3, r3, #32 - 800fc34: 2b00 cmp r3, #0 - 800fc36: bf0c ite eq - 800fc38: 2301 moveq r3, #1 - 800fc3a: 2300 movne r3, #0 - 800fc3c: b2db uxtb r3, r3 - 800fc3e: 61fb str r3, [r7, #28] + 800fc26: 6abb ldr r3, [r7, #40] ; 0x28 + 800fc28: 88db ldrh r3, [r3, #6] + 800fc2a: b29b uxth r3, r3 + 800fc2c: f003 0320 and.w r3, r3, #32 + 800fc30: 2b00 cmp r3, #0 + 800fc32: bf0c ite eq + 800fc34: 2301 moveq r3, #1 + 800fc36: 2300 movne r3, #0 + 800fc38: b2db uxtb r3, r3 + 800fc3a: 61fb str r3, [r7, #28] if (is_last) { - 800fc40: 69fb ldr r3, [r7, #28] - 800fc42: 2b00 cmp r3, #0 - 800fc44: d00e beq.n 800fc64 + 800fc3c: 69fb ldr r3, [r7, #28] + 800fc3e: 2b00 cmp r3, #0 + 800fc40: d00e beq.n 800fc60 u16_t datagram_len = (u16_t)(offset + len); - 800fc46: 8cfa ldrh r2, [r7, #38] ; 0x26 - 800fc48: 8cbb ldrh r3, [r7, #36] ; 0x24 - 800fc4a: 4413 add r3, r2 - 800fc4c: 837b strh r3, [r7, #26] + 800fc42: 8cfa ldrh r2, [r7, #38] ; 0x26 + 800fc44: 8cbb ldrh r3, [r7, #36] ; 0x24 + 800fc46: 4413 add r3, r2 + 800fc48: 837b strh r3, [r7, #26] if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) { - 800fc4e: 8b7a ldrh r2, [r7, #26] - 800fc50: 8cfb ldrh r3, [r7, #38] ; 0x26 - 800fc52: 429a cmp r2, r3 - 800fc54: f0c0 80a0 bcc.w 800fd98 - 800fc58: 8b7b ldrh r3, [r7, #26] - 800fc5a: f64f 72eb movw r2, #65515 ; 0xffeb - 800fc5e: 4293 cmp r3, r2 - 800fc60: f200 809a bhi.w 800fd98 + 800fc4a: 8b7a ldrh r2, [r7, #26] + 800fc4c: 8cfb ldrh r3, [r7, #38] ; 0x26 + 800fc4e: 429a cmp r2, r3 + 800fc50: f0c0 80a0 bcc.w 800fd94 + 800fc54: 8b7b ldrh r3, [r7, #26] + 800fc56: f64f 72eb movw r2, #65515 ; 0xffeb + 800fc5a: 4293 cmp r3, r2 + 800fc5c: f200 809a bhi.w 800fd94 goto nullreturn_ipr; } } /* find the right place to insert this pbuf */ /* @todo: trim pbufs if fragments are overlapping */ valid = ip_reass_chain_frag_into_datagram_and_validate(ipr, p, is_last); - 800fc64: 69fa ldr r2, [r7, #28] - 800fc66: 6879 ldr r1, [r7, #4] - 800fc68: 6b38 ldr r0, [r7, #48] ; 0x30 - 800fc6a: f7ff fdd5 bl 800f818 - 800fc6e: 6178 str r0, [r7, #20] + 800fc60: 69fa ldr r2, [r7, #28] + 800fc62: 6879 ldr r1, [r7, #4] + 800fc64: 6b38 ldr r0, [r7, #48] ; 0x30 + 800fc66: f7ff fdd5 bl 800f814 + 800fc6a: 6178 str r0, [r7, #20] if (valid == IP_REASS_VALIDATE_PBUF_DROPPED) { - 800fc70: 697b ldr r3, [r7, #20] - 800fc72: f1b3 3fff cmp.w r3, #4294967295 - 800fc76: f000 809b beq.w 800fdb0 + 800fc6c: 697b ldr r3, [r7, #20] + 800fc6e: f1b3 3fff cmp.w r3, #4294967295 + 800fc72: f000 809b beq.w 800fdac /* if we come here, the pbuf has been enqueued */ /* Track the current number of pbufs current 'in-flight', in order to limit the number of fragments that may be enqueued at any one time (overflow checked by testing against IP_REASS_MAX_PBUFS) */ ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount + clen); - 800fc7a: 4b48 ldr r3, [pc, #288] ; (800fd9c ) - 800fc7c: 881a ldrh r2, [r3, #0] - 800fc7e: 8c3b ldrh r3, [r7, #32] - 800fc80: 4413 add r3, r2 - 800fc82: b29a uxth r2, r3 - 800fc84: 4b45 ldr r3, [pc, #276] ; (800fd9c ) - 800fc86: 801a strh r2, [r3, #0] + 800fc76: 4b48 ldr r3, [pc, #288] ; (800fd98 ) + 800fc78: 881a ldrh r2, [r3, #0] + 800fc7a: 8c3b ldrh r3, [r7, #32] + 800fc7c: 4413 add r3, r2 + 800fc7e: b29a uxth r2, r3 + 800fc80: 4b45 ldr r3, [pc, #276] ; (800fd98 ) + 800fc82: 801a strh r2, [r3, #0] if (is_last) { - 800fc88: 69fb ldr r3, [r7, #28] - 800fc8a: 2b00 cmp r3, #0 - 800fc8c: d00d beq.n 800fcaa + 800fc84: 69fb ldr r3, [r7, #28] + 800fc86: 2b00 cmp r3, #0 + 800fc88: d00d beq.n 800fca6 u16_t datagram_len = (u16_t)(offset + len); - 800fc8e: 8cfa ldrh r2, [r7, #38] ; 0x26 - 800fc90: 8cbb ldrh r3, [r7, #36] ; 0x24 - 800fc92: 4413 add r3, r2 - 800fc94: 827b strh r3, [r7, #18] + 800fc8a: 8cfa ldrh r2, [r7, #38] ; 0x26 + 800fc8c: 8cbb ldrh r3, [r7, #36] ; 0x24 + 800fc8e: 4413 add r3, r2 + 800fc90: 827b strh r3, [r7, #18] ipr->datagram_len = datagram_len; - 800fc96: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fc98: 8a7a ldrh r2, [r7, #18] - 800fc9a: 839a strh r2, [r3, #28] + 800fc92: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fc94: 8a7a ldrh r2, [r7, #18] + 800fc96: 839a strh r2, [r3, #28] ipr->flags |= IP_REASS_FLAG_LASTFRAG; - 800fc9c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fc9e: 7f9b ldrb r3, [r3, #30] - 800fca0: f043 0301 orr.w r3, r3, #1 - 800fca4: b2da uxtb r2, r3 - 800fca6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fca8: 779a strb r2, [r3, #30] + 800fc98: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fc9a: 7f9b ldrb r3, [r3, #30] + 800fc9c: f043 0301 orr.w r3, r3, #1 + 800fca0: b2da uxtb r2, r3 + 800fca2: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fca4: 779a strb r2, [r3, #30] LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: last fragment seen, total len %"S16_F"\n", ipr->datagram_len)); } if (valid == IP_REASS_VALIDATE_TELEGRAM_FINISHED) { - 800fcaa: 697b ldr r3, [r7, #20] - 800fcac: 2b01 cmp r3, #1 - 800fcae: d171 bne.n 800fd94 + 800fca6: 697b ldr r3, [r7, #20] + 800fca8: 2b01 cmp r3, #1 + 800fcaa: d171 bne.n 800fd90 struct ip_reassdata *ipr_prev; /* the totally last fragment (flag more fragments = 0) was received at least * once AND all fragments are received */ u16_t datagram_len = (u16_t)(ipr->datagram_len + IP_HLEN); - 800fcb0: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fcb2: 8b9b ldrh r3, [r3, #28] - 800fcb4: 3314 adds r3, #20 - 800fcb6: 823b strh r3, [r7, #16] + 800fcac: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fcae: 8b9b ldrh r3, [r3, #28] + 800fcb0: 3314 adds r3, #20 + 800fcb2: 823b strh r3, [r7, #16] /* save the second pbuf before copying the header over the pointer */ r = ((struct ip_reass_helper *)ipr->p->payload)->next_pbuf; - 800fcb8: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fcba: 685b ldr r3, [r3, #4] - 800fcbc: 685b ldr r3, [r3, #4] - 800fcbe: 681b ldr r3, [r3, #0] - 800fcc0: 637b str r3, [r7, #52] ; 0x34 + 800fcb4: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fcb6: 685b ldr r3, [r3, #4] + 800fcb8: 685b ldr r3, [r3, #4] + 800fcba: 681b ldr r3, [r3, #0] + 800fcbc: 637b str r3, [r7, #52] ; 0x34 /* copy the original ip header back to the first pbuf */ fraghdr = (struct ip_hdr *)(ipr->p->payload); - 800fcc2: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fcc4: 685b ldr r3, [r3, #4] - 800fcc6: 685b ldr r3, [r3, #4] - 800fcc8: 62bb str r3, [r7, #40] ; 0x28 + 800fcbe: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fcc0: 685b ldr r3, [r3, #4] + 800fcc2: 685b ldr r3, [r3, #4] + 800fcc4: 62bb str r3, [r7, #40] ; 0x28 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); - 800fcca: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fccc: 3308 adds r3, #8 - 800fcce: 2214 movs r2, #20 - 800fcd0: 4619 mov r1, r3 - 800fcd2: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800fcd4: f000 fb4e bl 8010374 + 800fcc6: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fcc8: 3308 adds r3, #8 + 800fcca: 2214 movs r2, #20 + 800fccc: 4619 mov r1, r3 + 800fcce: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800fcd0: f000 fb4e bl 8010370 IPH_LEN_SET(fraghdr, lwip_htons(datagram_len)); - 800fcd8: 8a3b ldrh r3, [r7, #16] - 800fcda: 4618 mov r0, r3 - 800fcdc: f7f4 faf4 bl 80042c8 - 800fce0: 4603 mov r3, r0 - 800fce2: 461a mov r2, r3 - 800fce4: 6abb ldr r3, [r7, #40] ; 0x28 - 800fce6: 805a strh r2, [r3, #2] + 800fcd4: 8a3b ldrh r3, [r7, #16] + 800fcd6: 4618 mov r0, r3 + 800fcd8: f7f4 faf4 bl 80042c4 + 800fcdc: 4603 mov r3, r0 + 800fcde: 461a mov r2, r3 + 800fce0: 6abb ldr r3, [r7, #40] ; 0x28 + 800fce2: 805a strh r2, [r3, #2] IPH_OFFSET_SET(fraghdr, 0); - 800fce8: 6abb ldr r3, [r7, #40] ; 0x28 + 800fce4: 6abb ldr r3, [r7, #40] ; 0x28 + 800fce6: 2200 movs r2, #0 + 800fce8: 719a strb r2, [r3, #6] 800fcea: 2200 movs r2, #0 - 800fcec: 719a strb r2, [r3, #6] - 800fcee: 2200 movs r2, #0 - 800fcf0: 71da strb r2, [r3, #7] + 800fcec: 71da strb r2, [r3, #7] IPH_CHKSUM_SET(fraghdr, 0); - 800fcf2: 6abb ldr r3, [r7, #40] ; 0x28 + 800fcee: 6abb ldr r3, [r7, #40] ; 0x28 + 800fcf0: 2200 movs r2, #0 + 800fcf2: 729a strb r2, [r3, #10] 800fcf4: 2200 movs r2, #0 - 800fcf6: 729a strb r2, [r3, #10] - 800fcf8: 2200 movs r2, #0 - 800fcfa: 72da strb r2, [r3, #11] + 800fcf6: 72da strb r2, [r3, #11] IF__NETIF_CHECKSUM_ENABLED(ip_current_input_netif(), NETIF_CHECKSUM_GEN_IP) { IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN)); } #endif /* CHECKSUM_GEN_IP */ p = ipr->p; - 800fcfc: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fcfe: 685b ldr r3, [r3, #4] - 800fd00: 607b str r3, [r7, #4] + 800fcf8: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fcfa: 685b ldr r3, [r3, #4] + 800fcfc: 607b str r3, [r7, #4] /* chain together the pbufs contained within the reass_data list. */ while (r != NULL) { - 800fd02: e00d b.n 800fd20 + 800fcfe: e00d b.n 800fd1c iprh = (struct ip_reass_helper *)r->payload; - 800fd04: 6b7b ldr r3, [r7, #52] ; 0x34 - 800fd06: 685b ldr r3, [r3, #4] - 800fd08: 60fb str r3, [r7, #12] + 800fd00: 6b7b ldr r3, [r7, #52] ; 0x34 + 800fd02: 685b ldr r3, [r3, #4] + 800fd04: 60fb str r3, [r7, #12] /* hide the ip header for every succeeding fragment */ pbuf_remove_header(r, IP_HLEN); - 800fd0a: 2114 movs r1, #20 - 800fd0c: 6b78 ldr r0, [r7, #52] ; 0x34 - 800fd0e: f7f5 fdbf bl 8005890 + 800fd06: 2114 movs r1, #20 + 800fd08: 6b78 ldr r0, [r7, #52] ; 0x34 + 800fd0a: f7f5 fdbf bl 800588c pbuf_cat(p, r); - 800fd12: 6b79 ldr r1, [r7, #52] ; 0x34 - 800fd14: 6878 ldr r0, [r7, #4] - 800fd16: f7f5 ff03 bl 8005b20 + 800fd0e: 6b79 ldr r1, [r7, #52] ; 0x34 + 800fd10: 6878 ldr r0, [r7, #4] + 800fd12: f7f5 ff03 bl 8005b1c r = iprh->next_pbuf; - 800fd1a: 68fb ldr r3, [r7, #12] - 800fd1c: 681b ldr r3, [r3, #0] - 800fd1e: 637b str r3, [r7, #52] ; 0x34 + 800fd16: 68fb ldr r3, [r7, #12] + 800fd18: 681b ldr r3, [r3, #0] + 800fd1a: 637b str r3, [r7, #52] ; 0x34 while (r != NULL) { - 800fd20: 6b7b ldr r3, [r7, #52] ; 0x34 - 800fd22: 2b00 cmp r3, #0 - 800fd24: d1ee bne.n 800fd04 + 800fd1c: 6b7b ldr r3, [r7, #52] ; 0x34 + 800fd1e: 2b00 cmp r3, #0 + 800fd20: d1ee bne.n 800fd00 } /* find the previous entry in the linked list */ if (ipr == reassdatagrams) { - 800fd26: 4b1e ldr r3, [pc, #120] ; (800fda0 ) - 800fd28: 681b ldr r3, [r3, #0] - 800fd2a: 6b3a ldr r2, [r7, #48] ; 0x30 - 800fd2c: 429a cmp r2, r3 - 800fd2e: d102 bne.n 800fd36 + 800fd22: 4b1e ldr r3, [pc, #120] ; (800fd9c ) + 800fd24: 681b ldr r3, [r3, #0] + 800fd26: 6b3a ldr r2, [r7, #48] ; 0x30 + 800fd28: 429a cmp r2, r3 + 800fd2a: d102 bne.n 800fd32 ipr_prev = NULL; - 800fd30: 2300 movs r3, #0 - 800fd32: 62fb str r3, [r7, #44] ; 0x2c - 800fd34: e010 b.n 800fd58 + 800fd2c: 2300 movs r3, #0 + 800fd2e: 62fb str r3, [r7, #44] ; 0x2c + 800fd30: e010 b.n 800fd54 } else { for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - 800fd36: 4b1a ldr r3, [pc, #104] ; (800fda0 ) - 800fd38: 681b ldr r3, [r3, #0] - 800fd3a: 62fb str r3, [r7, #44] ; 0x2c - 800fd3c: e007 b.n 800fd4e + 800fd32: 4b1a ldr r3, [pc, #104] ; (800fd9c ) + 800fd34: 681b ldr r3, [r3, #0] + 800fd36: 62fb str r3, [r7, #44] ; 0x2c + 800fd38: e007 b.n 800fd4a if (ipr_prev->next == ipr) { - 800fd3e: 6afb ldr r3, [r7, #44] ; 0x2c - 800fd40: 681b ldr r3, [r3, #0] - 800fd42: 6b3a ldr r2, [r7, #48] ; 0x30 - 800fd44: 429a cmp r2, r3 - 800fd46: d006 beq.n 800fd56 + 800fd3a: 6afb ldr r3, [r7, #44] ; 0x2c + 800fd3c: 681b ldr r3, [r3, #0] + 800fd3e: 6b3a ldr r2, [r7, #48] ; 0x30 + 800fd40: 429a cmp r2, r3 + 800fd42: d006 beq.n 800fd52 for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - 800fd48: 6afb ldr r3, [r7, #44] ; 0x2c - 800fd4a: 681b ldr r3, [r3, #0] - 800fd4c: 62fb str r3, [r7, #44] ; 0x2c - 800fd4e: 6afb ldr r3, [r7, #44] ; 0x2c - 800fd50: 2b00 cmp r3, #0 - 800fd52: d1f4 bne.n 800fd3e - 800fd54: e000 b.n 800fd58 + 800fd44: 6afb ldr r3, [r7, #44] ; 0x2c + 800fd46: 681b ldr r3, [r3, #0] + 800fd48: 62fb str r3, [r7, #44] ; 0x2c + 800fd4a: 6afb ldr r3, [r7, #44] ; 0x2c + 800fd4c: 2b00 cmp r3, #0 + 800fd4e: d1f4 bne.n 800fd3a + 800fd50: e000 b.n 800fd54 break; - 800fd56: bf00 nop + 800fd52: bf00 nop } } } /* release the sources allocate for the fragment queue entry */ ip_reass_dequeue_datagram(ipr, ipr_prev); - 800fd58: 6af9 ldr r1, [r7, #44] ; 0x2c - 800fd5a: 6b38 ldr r0, [r7, #48] ; 0x30 - 800fd5c: f7ff fd2e bl 800f7bc + 800fd54: 6af9 ldr r1, [r7, #44] ; 0x2c + 800fd56: 6b38 ldr r0, [r7, #48] ; 0x30 + 800fd58: f7ff fd2e bl 800f7b8 /* and adjust the number of pbufs currently queued for reassembly. */ clen = pbuf_clen(p); - 800fd60: 6878 ldr r0, [r7, #4] - 800fd62: f7f5 fea3 bl 8005aac - 800fd66: 4603 mov r3, r0 - 800fd68: 843b strh r3, [r7, #32] + 800fd5c: 6878 ldr r0, [r7, #4] + 800fd5e: f7f5 fea3 bl 8005aa8 + 800fd62: 4603 mov r3, r0 + 800fd64: 843b strh r3, [r7, #32] LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen); - 800fd6a: 4b0c ldr r3, [pc, #48] ; (800fd9c ) - 800fd6c: 881b ldrh r3, [r3, #0] - 800fd6e: 8c3a ldrh r2, [r7, #32] - 800fd70: 429a cmp r2, r3 - 800fd72: d906 bls.n 800fd82 - 800fd74: 4b0b ldr r3, [pc, #44] ; (800fda4 ) - 800fd76: f240 229b movw r2, #667 ; 0x29b - 800fd7a: 490b ldr r1, [pc, #44] ; (800fda8 ) - 800fd7c: 480b ldr r0, [pc, #44] ; (800fdac ) - 800fd7e: f000 fb29 bl 80103d4 + 800fd66: 4b0c ldr r3, [pc, #48] ; (800fd98 ) + 800fd68: 881b ldrh r3, [r3, #0] + 800fd6a: 8c3a ldrh r2, [r7, #32] + 800fd6c: 429a cmp r2, r3 + 800fd6e: d906 bls.n 800fd7e + 800fd70: 4b0b ldr r3, [pc, #44] ; (800fda0 ) + 800fd72: f240 229b movw r2, #667 ; 0x29b + 800fd76: 490b ldr r1, [pc, #44] ; (800fda4 ) + 800fd78: 480b ldr r0, [pc, #44] ; (800fda8 ) + 800fd7a: f000 fb29 bl 80103d0 ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - clen); - 800fd82: 4b06 ldr r3, [pc, #24] ; (800fd9c ) - 800fd84: 881a ldrh r2, [r3, #0] - 800fd86: 8c3b ldrh r3, [r7, #32] - 800fd88: 1ad3 subs r3, r2, r3 - 800fd8a: b29a uxth r2, r3 - 800fd8c: 4b03 ldr r3, [pc, #12] ; (800fd9c ) - 800fd8e: 801a strh r2, [r3, #0] + 800fd7e: 4b06 ldr r3, [pc, #24] ; (800fd98 ) + 800fd80: 881a ldrh r2, [r3, #0] + 800fd82: 8c3b ldrh r3, [r7, #32] + 800fd84: 1ad3 subs r3, r2, r3 + 800fd86: b29a uxth r2, r3 + 800fd88: 4b03 ldr r3, [pc, #12] ; (800fd98 ) + 800fd8a: 801a strh r2, [r3, #0] MIB2_STATS_INC(mib2.ipreasmoks); /* Return the pbuf chain */ return p; - 800fd90: 687b ldr r3, [r7, #4] - 800fd92: e038 b.n 800fe06 + 800fd8c: 687b ldr r3, [r7, #4] + 800fd8e: e038 b.n 800fe02 } /* the datagram is not (yet?) reassembled completely */ LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount)); return NULL; - 800fd94: 2300 movs r3, #0 - 800fd96: e036 b.n 800fe06 + 800fd90: 2300 movs r3, #0 + 800fd92: e036 b.n 800fe02 goto nullreturn_ipr; - 800fd98: bf00 nop - 800fd9a: e00a b.n 800fdb2 - 800fd9c: 20008d8c .word 0x20008d8c - 800fda0: 20008d88 .word 0x20008d88 - 800fda4: 08017a24 .word 0x08017a24 - 800fda8: 08017b94 .word 0x08017b94 - 800fdac: 08017a6c .word 0x08017a6c + 800fd94: bf00 nop + 800fd96: e00a b.n 800fdae + 800fd98: 20008d8c .word 0x20008d8c + 800fd9c: 20008d88 .word 0x20008d88 + 800fda0: 08017a24 .word 0x08017a24 + 800fda4: 08017b94 .word 0x08017b94 + 800fda8: 08017a6c .word 0x08017a6c goto nullreturn_ipr; - 800fdb0: bf00 nop + 800fdac: bf00 nop nullreturn_ipr: LWIP_ASSERT("ipr != NULL", ipr != NULL); - 800fdb2: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fdb4: 2b00 cmp r3, #0 - 800fdb6: d106 bne.n 800fdc6 - 800fdb8: 4b15 ldr r3, [pc, #84] ; (800fe10 ) - 800fdba: f44f 722a mov.w r2, #680 ; 0x2a8 - 800fdbe: 4915 ldr r1, [pc, #84] ; (800fe14 ) - 800fdc0: 4815 ldr r0, [pc, #84] ; (800fe18 ) - 800fdc2: f000 fb07 bl 80103d4 + 800fdae: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fdb0: 2b00 cmp r3, #0 + 800fdb2: d106 bne.n 800fdc2 + 800fdb4: 4b15 ldr r3, [pc, #84] ; (800fe0c ) + 800fdb6: f44f 722a mov.w r2, #680 ; 0x2a8 + 800fdba: 4915 ldr r1, [pc, #84] ; (800fe10 ) + 800fdbc: 4815 ldr r0, [pc, #84] ; (800fe14 ) + 800fdbe: f000 fb07 bl 80103d0 if (ipr->p == NULL) { - 800fdc6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800fdc8: 685b ldr r3, [r3, #4] - 800fdca: 2b00 cmp r3, #0 - 800fdcc: d116 bne.n 800fdfc + 800fdc2: 6b3b ldr r3, [r7, #48] ; 0x30 + 800fdc4: 685b ldr r3, [r3, #4] + 800fdc6: 2b00 cmp r3, #0 + 800fdc8: d116 bne.n 800fdf8 /* dropped pbuf after creating a new datagram entry: remove the entry, too */ LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams); - 800fdce: 4b13 ldr r3, [pc, #76] ; (800fe1c ) - 800fdd0: 681b ldr r3, [r3, #0] - 800fdd2: 6b3a ldr r2, [r7, #48] ; 0x30 - 800fdd4: 429a cmp r2, r3 - 800fdd6: d006 beq.n 800fde6 - 800fdd8: 4b0d ldr r3, [pc, #52] ; (800fe10 ) - 800fdda: f240 22ab movw r2, #683 ; 0x2ab - 800fdde: 4910 ldr r1, [pc, #64] ; (800fe20 ) - 800fde0: 480d ldr r0, [pc, #52] ; (800fe18 ) - 800fde2: f000 faf7 bl 80103d4 + 800fdca: 4b13 ldr r3, [pc, #76] ; (800fe18 ) + 800fdcc: 681b ldr r3, [r3, #0] + 800fdce: 6b3a ldr r2, [r7, #48] ; 0x30 + 800fdd0: 429a cmp r2, r3 + 800fdd2: d006 beq.n 800fde2 + 800fdd4: 4b0d ldr r3, [pc, #52] ; (800fe0c ) + 800fdd6: f240 22ab movw r2, #683 ; 0x2ab + 800fdda: 4910 ldr r1, [pc, #64] ; (800fe1c ) + 800fddc: 480d ldr r0, [pc, #52] ; (800fe14 ) + 800fdde: f000 faf7 bl 80103d0 ip_reass_dequeue_datagram(ipr, NULL); - 800fde6: 2100 movs r1, #0 - 800fde8: 6b38 ldr r0, [r7, #48] ; 0x30 - 800fdea: f7ff fce7 bl 800f7bc - 800fdee: e006 b.n 800fdfe + 800fde2: 2100 movs r1, #0 + 800fde4: 6b38 ldr r0, [r7, #48] ; 0x30 + 800fde6: f7ff fce7 bl 800f7b8 + 800fdea: e006 b.n 800fdfa + goto nullreturn; + 800fdec: bf00 nop + 800fdee: e004 b.n 800fdfa goto nullreturn; 800fdf0: bf00 nop - 800fdf2: e004 b.n 800fdfe - goto nullreturn; - 800fdf4: bf00 nop - 800fdf6: e002 b.n 800fdfe + 800fdf2: e002 b.n 800fdfa goto nullreturn; - 800fdf8: bf00 nop - 800fdfa: e000 b.n 800fdfe + 800fdf4: bf00 nop + 800fdf6: e000 b.n 800fdfa } nullreturn: - 800fdfc: bf00 nop + 800fdf8: bf00 nop LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: nullreturn\n")); IPFRAG_STATS_INC(ip_frag.drop); pbuf_free(p); - 800fdfe: 6878 ldr r0, [r7, #4] - 800fe00: f7f5 fdcc bl 800599c + 800fdfa: 6878 ldr r0, [r7, #4] + 800fdfc: f7f5 fdcc bl 8005998 return NULL; - 800fe04: 2300 movs r3, #0 + 800fe00: 2300 movs r3, #0 } - 800fe06: 4618 mov r0, r3 - 800fe08: 3738 adds r7, #56 ; 0x38 - 800fe0a: 46bd mov sp, r7 - 800fe0c: bd80 pop {r7, pc} - 800fe0e: bf00 nop - 800fe10: 08017a24 .word 0x08017a24 - 800fe14: 08017bb0 .word 0x08017bb0 - 800fe18: 08017a6c .word 0x08017a6c - 800fe1c: 20008d88 .word 0x20008d88 - 800fe20: 08017bbc .word 0x08017bbc + 800fe02: 4618 mov r0, r3 + 800fe04: 3738 adds r7, #56 ; 0x38 + 800fe06: 46bd mov sp, r7 + 800fe08: bd80 pop {r7, pc} + 800fe0a: bf00 nop + 800fe0c: 08017a24 .word 0x08017a24 + 800fe10: 08017bb0 .word 0x08017bb0 + 800fe14: 08017a6c .word 0x08017a6c + 800fe18: 20008d88 .word 0x20008d88 + 800fe1c: 08017bbc .word 0x08017bbc -0800fe24 : +0800fe20 : #if IP_FRAG #if !LWIP_NETIF_TX_SINGLE_PBUF /** Allocate a new struct pbuf_custom_ref */ static struct pbuf_custom_ref * ip_frag_alloc_pbuf_custom_ref(void) { - 800fe24: b580 push {r7, lr} - 800fe26: af00 add r7, sp, #0 + 800fe20: b580 push {r7, lr} + 800fe22: af00 add r7, sp, #0 return (struct pbuf_custom_ref *)memp_malloc(MEMP_FRAG_PBUF); - 800fe28: 2005 movs r0, #5 - 800fe2a: f7f4 fec5 bl 8004bb8 - 800fe2e: 4603 mov r3, r0 + 800fe24: 2005 movs r0, #5 + 800fe26: f7f4 fec5 bl 8004bb4 + 800fe2a: 4603 mov r3, r0 } - 800fe30: 4618 mov r0, r3 - 800fe32: bd80 pop {r7, pc} + 800fe2c: 4618 mov r0, r3 + 800fe2e: bd80 pop {r7, pc} -0800fe34 : +0800fe30 : /** Free a struct pbuf_custom_ref */ static void ip_frag_free_pbuf_custom_ref(struct pbuf_custom_ref *p) { - 800fe34: b580 push {r7, lr} - 800fe36: b082 sub sp, #8 - 800fe38: af00 add r7, sp, #0 - 800fe3a: 6078 str r0, [r7, #4] + 800fe30: b580 push {r7, lr} + 800fe32: b082 sub sp, #8 + 800fe34: af00 add r7, sp, #0 + 800fe36: 6078 str r0, [r7, #4] LWIP_ASSERT("p != NULL", p != NULL); - 800fe3c: 687b ldr r3, [r7, #4] - 800fe3e: 2b00 cmp r3, #0 - 800fe40: d106 bne.n 800fe50 - 800fe42: 4b07 ldr r3, [pc, #28] ; (800fe60 ) - 800fe44: f44f 7231 mov.w r2, #708 ; 0x2c4 - 800fe48: 4906 ldr r1, [pc, #24] ; (800fe64 ) - 800fe4a: 4807 ldr r0, [pc, #28] ; (800fe68 ) - 800fe4c: f000 fac2 bl 80103d4 + 800fe38: 687b ldr r3, [r7, #4] + 800fe3a: 2b00 cmp r3, #0 + 800fe3c: d106 bne.n 800fe4c + 800fe3e: 4b07 ldr r3, [pc, #28] ; (800fe5c ) + 800fe40: f44f 7231 mov.w r2, #708 ; 0x2c4 + 800fe44: 4906 ldr r1, [pc, #24] ; (800fe60 ) + 800fe46: 4807 ldr r0, [pc, #28] ; (800fe64 ) + 800fe48: f000 fac2 bl 80103d0 memp_free(MEMP_FRAG_PBUF, p); - 800fe50: 6879 ldr r1, [r7, #4] - 800fe52: 2005 movs r0, #5 - 800fe54: f7f4 ff20 bl 8004c98 + 800fe4c: 6879 ldr r1, [r7, #4] + 800fe4e: 2005 movs r0, #5 + 800fe50: f7f4 ff20 bl 8004c94 } - 800fe58: bf00 nop - 800fe5a: 3708 adds r7, #8 - 800fe5c: 46bd mov sp, r7 - 800fe5e: bd80 pop {r7, pc} - 800fe60: 08017a24 .word 0x08017a24 - 800fe64: 08017bdc .word 0x08017bdc - 800fe68: 08017a6c .word 0x08017a6c + 800fe54: bf00 nop + 800fe56: 3708 adds r7, #8 + 800fe58: 46bd mov sp, r7 + 800fe5a: bd80 pop {r7, pc} + 800fe5c: 08017a24 .word 0x08017a24 + 800fe60: 08017bdc .word 0x08017bdc + 800fe64: 08017a6c .word 0x08017a6c -0800fe6c : +0800fe68 : /** Free-callback function to free a 'struct pbuf_custom_ref', called by * pbuf_free. */ static void ipfrag_free_pbuf_custom(struct pbuf *p) { - 800fe6c: b580 push {r7, lr} - 800fe6e: b084 sub sp, #16 - 800fe70: af00 add r7, sp, #0 - 800fe72: 6078 str r0, [r7, #4] + 800fe68: b580 push {r7, lr} + 800fe6a: b084 sub sp, #16 + 800fe6c: af00 add r7, sp, #0 + 800fe6e: 6078 str r0, [r7, #4] struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref *)p; - 800fe74: 687b ldr r3, [r7, #4] - 800fe76: 60fb str r3, [r7, #12] + 800fe70: 687b ldr r3, [r7, #4] + 800fe72: 60fb str r3, [r7, #12] LWIP_ASSERT("pcr != NULL", pcr != NULL); - 800fe78: 68fb ldr r3, [r7, #12] - 800fe7a: 2b00 cmp r3, #0 - 800fe7c: d106 bne.n 800fe8c - 800fe7e: 4b11 ldr r3, [pc, #68] ; (800fec4 ) - 800fe80: f240 22ce movw r2, #718 ; 0x2ce - 800fe84: 4910 ldr r1, [pc, #64] ; (800fec8 ) - 800fe86: 4811 ldr r0, [pc, #68] ; (800fecc ) - 800fe88: f000 faa4 bl 80103d4 + 800fe74: 68fb ldr r3, [r7, #12] + 800fe76: 2b00 cmp r3, #0 + 800fe78: d106 bne.n 800fe88 + 800fe7a: 4b11 ldr r3, [pc, #68] ; (800fec0 ) + 800fe7c: f240 22ce movw r2, #718 ; 0x2ce + 800fe80: 4910 ldr r1, [pc, #64] ; (800fec4 ) + 800fe82: 4811 ldr r0, [pc, #68] ; (800fec8 ) + 800fe84: f000 faa4 bl 80103d0 LWIP_ASSERT("pcr == p", (void *)pcr == (void *)p); - 800fe8c: 68fa ldr r2, [r7, #12] - 800fe8e: 687b ldr r3, [r7, #4] - 800fe90: 429a cmp r2, r3 - 800fe92: d006 beq.n 800fea2 - 800fe94: 4b0b ldr r3, [pc, #44] ; (800fec4 ) - 800fe96: f240 22cf movw r2, #719 ; 0x2cf - 800fe9a: 490d ldr r1, [pc, #52] ; (800fed0 ) - 800fe9c: 480b ldr r0, [pc, #44] ; (800fecc ) - 800fe9e: f000 fa99 bl 80103d4 + 800fe88: 68fa ldr r2, [r7, #12] + 800fe8a: 687b ldr r3, [r7, #4] + 800fe8c: 429a cmp r2, r3 + 800fe8e: d006 beq.n 800fe9e + 800fe90: 4b0b ldr r3, [pc, #44] ; (800fec0 ) + 800fe92: f240 22cf movw r2, #719 ; 0x2cf + 800fe96: 490d ldr r1, [pc, #52] ; (800fecc ) + 800fe98: 480b ldr r0, [pc, #44] ; (800fec8 ) + 800fe9a: f000 fa99 bl 80103d0 if (pcr->original != NULL) { - 800fea2: 68fb ldr r3, [r7, #12] - 800fea4: 695b ldr r3, [r3, #20] - 800fea6: 2b00 cmp r3, #0 - 800fea8: d004 beq.n 800feb4 + 800fe9e: 68fb ldr r3, [r7, #12] + 800fea0: 695b ldr r3, [r3, #20] + 800fea2: 2b00 cmp r3, #0 + 800fea4: d004 beq.n 800feb0 pbuf_free(pcr->original); - 800feaa: 68fb ldr r3, [r7, #12] - 800feac: 695b ldr r3, [r3, #20] - 800feae: 4618 mov r0, r3 - 800feb0: f7f5 fd74 bl 800599c + 800fea6: 68fb ldr r3, [r7, #12] + 800fea8: 695b ldr r3, [r3, #20] + 800feaa: 4618 mov r0, r3 + 800feac: f7f5 fd74 bl 8005998 } ip_frag_free_pbuf_custom_ref(pcr); - 800feb4: 68f8 ldr r0, [r7, #12] - 800feb6: f7ff ffbd bl 800fe34 + 800feb0: 68f8 ldr r0, [r7, #12] + 800feb2: f7ff ffbd bl 800fe30 } - 800feba: bf00 nop - 800febc: 3710 adds r7, #16 - 800febe: 46bd mov sp, r7 - 800fec0: bd80 pop {r7, pc} - 800fec2: bf00 nop - 800fec4: 08017a24 .word 0x08017a24 - 800fec8: 08017be8 .word 0x08017be8 - 800fecc: 08017a6c .word 0x08017a6c - 800fed0: 08017bf4 .word 0x08017bf4 + 800feb6: bf00 nop + 800feb8: 3710 adds r7, #16 + 800feba: 46bd mov sp, r7 + 800febc: bd80 pop {r7, pc} + 800febe: bf00 nop + 800fec0: 08017a24 .word 0x08017a24 + 800fec4: 08017be8 .word 0x08017be8 + 800fec8: 08017a6c .word 0x08017a6c + 800fecc: 08017bf4 .word 0x08017bf4 -0800fed4 : +0800fed0 : * * @return ERR_OK if sent successfully, err_t otherwise */ err_t ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest) { - 800fed4: b580 push {r7, lr} - 800fed6: b094 sub sp, #80 ; 0x50 - 800fed8: af02 add r7, sp, #8 - 800feda: 60f8 str r0, [r7, #12] - 800fedc: 60b9 str r1, [r7, #8] - 800fede: 607a str r2, [r7, #4] + 800fed0: b580 push {r7, lr} + 800fed2: b094 sub sp, #80 ; 0x50 + 800fed4: af02 add r7, sp, #8 + 800fed6: 60f8 str r0, [r7, #12] + 800fed8: 60b9 str r1, [r7, #8] + 800feda: 607a str r2, [r7, #4] struct pbuf *rambuf; #if !LWIP_NETIF_TX_SINGLE_PBUF struct pbuf *newpbuf; u16_t newpbuflen = 0; - 800fee0: 2300 movs r3, #0 - 800fee2: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 + 800fedc: 2300 movs r3, #0 + 800fede: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 u16_t left_to_copy; #endif struct ip_hdr *original_iphdr; struct ip_hdr *iphdr; const u16_t nfb = (u16_t)((netif->mtu - IP_HLEN) / 8); - 800fee6: 68bb ldr r3, [r7, #8] - 800fee8: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800feea: 3b14 subs r3, #20 - 800feec: 2b00 cmp r3, #0 - 800feee: da00 bge.n 800fef2 - 800fef0: 3307 adds r3, #7 - 800fef2: 10db asrs r3, r3, #3 - 800fef4: 877b strh r3, [r7, #58] ; 0x3a + 800fee2: 68bb ldr r3, [r7, #8] + 800fee4: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800fee6: 3b14 subs r3, #20 + 800fee8: 2b00 cmp r3, #0 + 800feea: da00 bge.n 800feee + 800feec: 3307 adds r3, #7 + 800feee: 10db asrs r3, r3, #3 + 800fef0: 877b strh r3, [r7, #58] ; 0x3a u16_t left, fragsize; u16_t ofo; int last; u16_t poff = IP_HLEN; - 800fef6: 2314 movs r3, #20 - 800fef8: 87fb strh r3, [r7, #62] ; 0x3e + 800fef2: 2314 movs r3, #20 + 800fef4: 87fb strh r3, [r7, #62] ; 0x3e u16_t tmp; int mf_set; original_iphdr = (struct ip_hdr *)p->payload; - 800fefa: 68fb ldr r3, [r7, #12] - 800fefc: 685b ldr r3, [r3, #4] - 800fefe: 637b str r3, [r7, #52] ; 0x34 + 800fef6: 68fb ldr r3, [r7, #12] + 800fef8: 685b ldr r3, [r3, #4] + 800fefa: 637b str r3, [r7, #52] ; 0x34 iphdr = original_iphdr; - 800ff00: 6b7b ldr r3, [r7, #52] ; 0x34 - 800ff02: 633b str r3, [r7, #48] ; 0x30 + 800fefc: 6b7b ldr r3, [r7, #52] ; 0x34 + 800fefe: 633b str r3, [r7, #48] ; 0x30 if (IPH_HL_BYTES(iphdr) != IP_HLEN) { - 800ff04: 6b3b ldr r3, [r7, #48] ; 0x30 - 800ff06: 781b ldrb r3, [r3, #0] - 800ff08: f003 030f and.w r3, r3, #15 + 800ff00: 6b3b ldr r3, [r7, #48] ; 0x30 + 800ff02: 781b ldrb r3, [r3, #0] + 800ff04: f003 030f and.w r3, r3, #15 + 800ff08: b2db uxtb r3, r3 + 800ff0a: 009b lsls r3, r3, #2 800ff0c: b2db uxtb r3, r3 - 800ff0e: 009b lsls r3, r3, #2 - 800ff10: b2db uxtb r3, r3 - 800ff12: 2b14 cmp r3, #20 - 800ff14: d002 beq.n 800ff1c + 800ff0e: 2b14 cmp r3, #20 + 800ff10: d002 beq.n 800ff18 /* ip4_frag() does not support IP options */ return ERR_VAL; - 800ff16: f06f 0305 mvn.w r3, #5 - 800ff1a: e110 b.n 801013e + 800ff12: f06f 0305 mvn.w r3, #5 + 800ff16: e110 b.n 801013a } LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL); - 800ff1c: 68fb ldr r3, [r7, #12] - 800ff1e: 895b ldrh r3, [r3, #10] - 800ff20: 2b13 cmp r3, #19 - 800ff22: d809 bhi.n 800ff38 - 800ff24: 4b88 ldr r3, [pc, #544] ; (8010148 ) - 800ff26: f44f 723f mov.w r2, #764 ; 0x2fc - 800ff2a: 4988 ldr r1, [pc, #544] ; (801014c ) - 800ff2c: 4888 ldr r0, [pc, #544] ; (8010150 ) - 800ff2e: f000 fa51 bl 80103d4 - 800ff32: f06f 0305 mvn.w r3, #5 - 800ff36: e102 b.n 801013e + 800ff18: 68fb ldr r3, [r7, #12] + 800ff1a: 895b ldrh r3, [r3, #10] + 800ff1c: 2b13 cmp r3, #19 + 800ff1e: d809 bhi.n 800ff34 + 800ff20: 4b88 ldr r3, [pc, #544] ; (8010144 ) + 800ff22: f44f 723f mov.w r2, #764 ; 0x2fc + 800ff26: 4988 ldr r1, [pc, #544] ; (8010148 ) + 800ff28: 4888 ldr r0, [pc, #544] ; (801014c ) + 800ff2a: f000 fa51 bl 80103d0 + 800ff2e: f06f 0305 mvn.w r3, #5 + 800ff32: e102 b.n 801013a /* Save original offset */ tmp = lwip_ntohs(IPH_OFFSET(iphdr)); - 800ff38: 6b3b ldr r3, [r7, #48] ; 0x30 - 800ff3a: 88db ldrh r3, [r3, #6] - 800ff3c: b29b uxth r3, r3 - 800ff3e: 4618 mov r0, r3 - 800ff40: f7f4 f9c2 bl 80042c8 - 800ff44: 4603 mov r3, r0 - 800ff46: 87bb strh r3, [r7, #60] ; 0x3c + 800ff34: 6b3b ldr r3, [r7, #48] ; 0x30 + 800ff36: 88db ldrh r3, [r3, #6] + 800ff38: b29b uxth r3, r3 + 800ff3a: 4618 mov r0, r3 + 800ff3c: f7f4 f9c2 bl 80042c4 + 800ff40: 4603 mov r3, r0 + 800ff42: 87bb strh r3, [r7, #60] ; 0x3c ofo = tmp & IP_OFFMASK; - 800ff48: 8fbb ldrh r3, [r7, #60] ; 0x3c - 800ff4a: f3c3 030c ubfx r3, r3, #0, #13 - 800ff4e: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 + 800ff44: 8fbb ldrh r3, [r7, #60] ; 0x3c + 800ff46: f3c3 030c ubfx r3, r3, #0, #13 + 800ff4a: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 /* already fragmented? if so, the last fragment we create must have MF, too */ mf_set = tmp & IP_MF; - 800ff52: 8fbb ldrh r3, [r7, #60] ; 0x3c - 800ff54: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 800ff58: 62fb str r3, [r7, #44] ; 0x2c + 800ff4e: 8fbb ldrh r3, [r7, #60] ; 0x3c + 800ff50: f403 5300 and.w r3, r3, #8192 ; 0x2000 + 800ff54: 62fb str r3, [r7, #44] ; 0x2c left = (u16_t)(p->tot_len - IP_HLEN); - 800ff5a: 68fb ldr r3, [r7, #12] - 800ff5c: 891b ldrh r3, [r3, #8] - 800ff5e: 3b14 subs r3, #20 - 800ff60: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 + 800ff56: 68fb ldr r3, [r7, #12] + 800ff58: 891b ldrh r3, [r3, #8] + 800ff5a: 3b14 subs r3, #20 + 800ff5c: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 while (left) { - 800ff64: e0e1 b.n 801012a + 800ff60: e0e1 b.n 8010126 /* Fill this fragment */ fragsize = LWIP_MIN(left, (u16_t)(nfb * 8)); - 800ff66: 8f7b ldrh r3, [r7, #58] ; 0x3a - 800ff68: 00db lsls r3, r3, #3 - 800ff6a: b29b uxth r3, r3 - 800ff6c: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 800ff70: 4293 cmp r3, r2 - 800ff72: bf28 it cs - 800ff74: 4613 movcs r3, r2 - 800ff76: 857b strh r3, [r7, #42] ; 0x2a + 800ff62: 8f7b ldrh r3, [r7, #58] ; 0x3a + 800ff64: 00db lsls r3, r3, #3 + 800ff66: b29b uxth r3, r3 + 800ff68: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 800ff6c: 4293 cmp r3, r2 + 800ff6e: bf28 it cs + 800ff70: 4613 movcs r3, r2 + 800ff72: 857b strh r3, [r7, #42] ; 0x2a /* When not using a static buffer, create a chain of pbufs. * The first will be a PBUF_RAM holding the link and IP header. * The rest will be PBUF_REFs mirroring the pbuf chain to be fragged, * but limited to the size of an mtu. */ rambuf = pbuf_alloc(PBUF_LINK, IP_HLEN, PBUF_RAM); - 800ff78: f44f 7220 mov.w r2, #640 ; 0x280 - 800ff7c: 2114 movs r1, #20 - 800ff7e: 200e movs r0, #14 - 800ff80: f7f5 fa28 bl 80053d4 - 800ff84: 6278 str r0, [r7, #36] ; 0x24 + 800ff74: f44f 7220 mov.w r2, #640 ; 0x280 + 800ff78: 2114 movs r1, #20 + 800ff7a: 200e movs r0, #14 + 800ff7c: f7f5 fa28 bl 80053d0 + 800ff80: 6278 str r0, [r7, #36] ; 0x24 if (rambuf == NULL) { - 800ff86: 6a7b ldr r3, [r7, #36] ; 0x24 - 800ff88: 2b00 cmp r3, #0 - 800ff8a: f000 80d5 beq.w 8010138 + 800ff82: 6a7b ldr r3, [r7, #36] ; 0x24 + 800ff84: 2b00 cmp r3, #0 + 800ff86: f000 80d5 beq.w 8010134 goto memerr; } LWIP_ASSERT("this needs a pbuf in one piece!", - 800ff8e: 6a7b ldr r3, [r7, #36] ; 0x24 - 800ff90: 895b ldrh r3, [r3, #10] - 800ff92: 2b13 cmp r3, #19 - 800ff94: d806 bhi.n 800ffa4 - 800ff96: 4b6c ldr r3, [pc, #432] ; (8010148 ) - 800ff98: f44f 7249 mov.w r2, #804 ; 0x324 - 800ff9c: 496d ldr r1, [pc, #436] ; (8010154 ) - 800ff9e: 486c ldr r0, [pc, #432] ; (8010150 ) - 800ffa0: f000 fa18 bl 80103d4 + 800ff8a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800ff8c: 895b ldrh r3, [r3, #10] + 800ff8e: 2b13 cmp r3, #19 + 800ff90: d806 bhi.n 800ffa0 + 800ff92: 4b6c ldr r3, [pc, #432] ; (8010144 ) + 800ff94: f44f 7249 mov.w r2, #804 ; 0x324 + 800ff98: 496d ldr r1, [pc, #436] ; (8010150 ) + 800ff9a: 486c ldr r0, [pc, #432] ; (801014c ) + 800ff9c: f000 fa18 bl 80103d0 (rambuf->len >= (IP_HLEN))); SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN); - 800ffa4: 6a7b ldr r3, [r7, #36] ; 0x24 - 800ffa6: 685b ldr r3, [r3, #4] - 800ffa8: 2214 movs r2, #20 - 800ffaa: 6b79 ldr r1, [r7, #52] ; 0x34 - 800ffac: 4618 mov r0, r3 - 800ffae: f000 f9e1 bl 8010374 + 800ffa0: 6a7b ldr r3, [r7, #36] ; 0x24 + 800ffa2: 685b ldr r3, [r3, #4] + 800ffa4: 2214 movs r2, #20 + 800ffa6: 6b79 ldr r1, [r7, #52] ; 0x34 + 800ffa8: 4618 mov r0, r3 + 800ffaa: f000 f9e1 bl 8010370 iphdr = (struct ip_hdr *)rambuf->payload; - 800ffb2: 6a7b ldr r3, [r7, #36] ; 0x24 - 800ffb4: 685b ldr r3, [r3, #4] - 800ffb6: 633b str r3, [r7, #48] ; 0x30 + 800ffae: 6a7b ldr r3, [r7, #36] ; 0x24 + 800ffb0: 685b ldr r3, [r3, #4] + 800ffb2: 633b str r3, [r7, #48] ; 0x30 left_to_copy = fragsize; - 800ffb8: 8d7b ldrh r3, [r7, #42] ; 0x2a - 800ffba: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 + 800ffb4: 8d7b ldrh r3, [r7, #42] ; 0x2a + 800ffb6: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 while (left_to_copy) { - 800ffbe: e064 b.n 801008a + 800ffba: e064 b.n 8010086 struct pbuf_custom_ref *pcr; u16_t plen = (u16_t)(p->len - poff); - 800ffc0: 68fb ldr r3, [r7, #12] - 800ffc2: 895a ldrh r2, [r3, #10] - 800ffc4: 8ffb ldrh r3, [r7, #62] ; 0x3e - 800ffc6: 1ad3 subs r3, r2, r3 - 800ffc8: 83fb strh r3, [r7, #30] + 800ffbc: 68fb ldr r3, [r7, #12] + 800ffbe: 895a ldrh r2, [r3, #10] + 800ffc0: 8ffb ldrh r3, [r7, #62] ; 0x3e + 800ffc2: 1ad3 subs r3, r2, r3 + 800ffc4: 83fb strh r3, [r7, #30] LWIP_ASSERT("p->len >= poff", p->len >= poff); - 800ffca: 68fb ldr r3, [r7, #12] - 800ffcc: 895b ldrh r3, [r3, #10] - 800ffce: 8ffa ldrh r2, [r7, #62] ; 0x3e - 800ffd0: 429a cmp r2, r3 - 800ffd2: d906 bls.n 800ffe2 - 800ffd4: 4b5c ldr r3, [pc, #368] ; (8010148 ) - 800ffd6: f240 322d movw r2, #813 ; 0x32d - 800ffda: 495f ldr r1, [pc, #380] ; (8010158 ) - 800ffdc: 485c ldr r0, [pc, #368] ; (8010150 ) - 800ffde: f000 f9f9 bl 80103d4 + 800ffc6: 68fb ldr r3, [r7, #12] + 800ffc8: 895b ldrh r3, [r3, #10] + 800ffca: 8ffa ldrh r2, [r7, #62] ; 0x3e + 800ffcc: 429a cmp r2, r3 + 800ffce: d906 bls.n 800ffde + 800ffd0: 4b5c ldr r3, [pc, #368] ; (8010144 ) + 800ffd2: f240 322d movw r2, #813 ; 0x32d + 800ffd6: 495f ldr r1, [pc, #380] ; (8010154 ) + 800ffd8: 485c ldr r0, [pc, #368] ; (801014c ) + 800ffda: f000 f9f9 bl 80103d0 newpbuflen = LWIP_MIN(left_to_copy, plen); - 800ffe2: 8bfa ldrh r2, [r7, #30] - 800ffe4: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 800ffe8: 4293 cmp r3, r2 - 800ffea: bf28 it cs - 800ffec: 4613 movcs r3, r2 - 800ffee: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 + 800ffde: 8bfa ldrh r2, [r7, #30] + 800ffe0: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 + 800ffe4: 4293 cmp r3, r2 + 800ffe6: bf28 it cs + 800ffe8: 4613 movcs r3, r2 + 800ffea: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 /* Is this pbuf already empty? */ if (!newpbuflen) { - 800fff2: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 800fff6: 2b00 cmp r3, #0 - 800fff8: d105 bne.n 8010006 + 800ffee: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 + 800fff2: 2b00 cmp r3, #0 + 800fff4: d105 bne.n 8010002 poff = 0; - 800fffa: 2300 movs r3, #0 - 800fffc: 87fb strh r3, [r7, #62] ; 0x3e + 800fff6: 2300 movs r3, #0 + 800fff8: 87fb strh r3, [r7, #62] ; 0x3e p = p->next; - 800fffe: 68fb ldr r3, [r7, #12] - 8010000: 681b ldr r3, [r3, #0] - 8010002: 60fb str r3, [r7, #12] + 800fffa: 68fb ldr r3, [r7, #12] + 800fffc: 681b ldr r3, [r3, #0] + 800fffe: 60fb str r3, [r7, #12] continue; - 8010004: e041 b.n 801008a + 8010000: e041 b.n 8010086 } pcr = ip_frag_alloc_pbuf_custom_ref(); - 8010006: f7ff ff0d bl 800fe24 - 801000a: 61b8 str r0, [r7, #24] + 8010002: f7ff ff0d bl 800fe20 + 8010006: 61b8 str r0, [r7, #24] if (pcr == NULL) { - 801000c: 69bb ldr r3, [r7, #24] - 801000e: 2b00 cmp r3, #0 - 8010010: d103 bne.n 801001a + 8010008: 69bb ldr r3, [r7, #24] + 801000a: 2b00 cmp r3, #0 + 801000c: d103 bne.n 8010016 pbuf_free(rambuf); - 8010012: 6a78 ldr r0, [r7, #36] ; 0x24 - 8010014: f7f5 fcc2 bl 800599c + 801000e: 6a78 ldr r0, [r7, #36] ; 0x24 + 8010010: f7f5 fcc2 bl 8005998 goto memerr; - 8010018: e08f b.n 801013a + 8010014: e08f b.n 8010136 } /* Mirror this pbuf, although we might not need all of it. */ newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc, - 801001a: 69b8 ldr r0, [r7, #24] + 8010016: 69b8 ldr r0, [r7, #24] (u8_t *)p->payload + poff, newpbuflen); - 801001c: 68fb ldr r3, [r7, #12] - 801001e: 685a ldr r2, [r3, #4] + 8010018: 68fb ldr r3, [r7, #12] + 801001a: 685a ldr r2, [r3, #4] newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc, - 8010020: 8ffb ldrh r3, [r7, #62] ; 0x3e - 8010022: 4413 add r3, r2 - 8010024: f8b7 1046 ldrh.w r1, [r7, #70] ; 0x46 - 8010028: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 - 801002c: 9201 str r2, [sp, #4] - 801002e: 9300 str r3, [sp, #0] - 8010030: 4603 mov r3, r0 - 8010032: 2241 movs r2, #65 ; 0x41 - 8010034: 2000 movs r0, #0 - 8010036: f7f5 faf7 bl 8005628 - 801003a: 6178 str r0, [r7, #20] + 801001c: 8ffb ldrh r3, [r7, #62] ; 0x3e + 801001e: 4413 add r3, r2 + 8010020: f8b7 1046 ldrh.w r1, [r7, #70] ; 0x46 + 8010024: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 + 8010028: 9201 str r2, [sp, #4] + 801002a: 9300 str r3, [sp, #0] + 801002c: 4603 mov r3, r0 + 801002e: 2241 movs r2, #65 ; 0x41 + 8010030: 2000 movs r0, #0 + 8010032: f7f5 faf7 bl 8005624 + 8010036: 6178 str r0, [r7, #20] if (newpbuf == NULL) { - 801003c: 697b ldr r3, [r7, #20] - 801003e: 2b00 cmp r3, #0 - 8010040: d106 bne.n 8010050 + 8010038: 697b ldr r3, [r7, #20] + 801003a: 2b00 cmp r3, #0 + 801003c: d106 bne.n 801004c ip_frag_free_pbuf_custom_ref(pcr); - 8010042: 69b8 ldr r0, [r7, #24] - 8010044: f7ff fef6 bl 800fe34 + 801003e: 69b8 ldr r0, [r7, #24] + 8010040: f7ff fef6 bl 800fe30 pbuf_free(rambuf); - 8010048: 6a78 ldr r0, [r7, #36] ; 0x24 - 801004a: f7f5 fca7 bl 800599c + 8010044: 6a78 ldr r0, [r7, #36] ; 0x24 + 8010046: f7f5 fca7 bl 8005998 goto memerr; - 801004e: e074 b.n 801013a + 801004a: e074 b.n 8010136 } pbuf_ref(p); - 8010050: 68f8 ldr r0, [r7, #12] - 8010052: f7f5 fd43 bl 8005adc + 801004c: 68f8 ldr r0, [r7, #12] + 801004e: f7f5 fd43 bl 8005ad8 pcr->original = p; - 8010056: 69bb ldr r3, [r7, #24] - 8010058: 68fa ldr r2, [r7, #12] - 801005a: 615a str r2, [r3, #20] + 8010052: 69bb ldr r3, [r7, #24] + 8010054: 68fa ldr r2, [r7, #12] + 8010056: 615a str r2, [r3, #20] pcr->pc.custom_free_function = ipfrag_free_pbuf_custom; - 801005c: 69bb ldr r3, [r7, #24] - 801005e: 4a3f ldr r2, [pc, #252] ; (801015c ) - 8010060: 611a str r2, [r3, #16] + 8010058: 69bb ldr r3, [r7, #24] + 801005a: 4a3f ldr r2, [pc, #252] ; (8010158 ) + 801005c: 611a str r2, [r3, #16] /* Add it to end of rambuf's chain, but using pbuf_cat, not pbuf_chain * so that it is removed when pbuf_dechain is later called on rambuf. */ pbuf_cat(rambuf, newpbuf); - 8010062: 6979 ldr r1, [r7, #20] - 8010064: 6a78 ldr r0, [r7, #36] ; 0x24 - 8010066: f7f5 fd5b bl 8005b20 + 801005e: 6979 ldr r1, [r7, #20] + 8010060: 6a78 ldr r0, [r7, #36] ; 0x24 + 8010062: f7f5 fd5b bl 8005b1c left_to_copy = (u16_t)(left_to_copy - newpbuflen); - 801006a: f8b7 2044 ldrh.w r2, [r7, #68] ; 0x44 - 801006e: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 8010072: 1ad3 subs r3, r2, r3 - 8010074: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 + 8010066: f8b7 2044 ldrh.w r2, [r7, #68] ; 0x44 + 801006a: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 + 801006e: 1ad3 subs r3, r2, r3 + 8010070: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 if (left_to_copy) { - 8010078: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 801007c: 2b00 cmp r3, #0 - 801007e: d004 beq.n 801008a + 8010074: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 + 8010078: 2b00 cmp r3, #0 + 801007a: d004 beq.n 8010086 poff = 0; - 8010080: 2300 movs r3, #0 - 8010082: 87fb strh r3, [r7, #62] ; 0x3e + 801007c: 2300 movs r3, #0 + 801007e: 87fb strh r3, [r7, #62] ; 0x3e p = p->next; - 8010084: 68fb ldr r3, [r7, #12] - 8010086: 681b ldr r3, [r3, #0] - 8010088: 60fb str r3, [r7, #12] + 8010080: 68fb ldr r3, [r7, #12] + 8010082: 681b ldr r3, [r3, #0] + 8010084: 60fb str r3, [r7, #12] while (left_to_copy) { - 801008a: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 801008e: 2b00 cmp r3, #0 - 8010090: d196 bne.n 800ffc0 + 8010086: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 + 801008a: 2b00 cmp r3, #0 + 801008c: d196 bne.n 800ffbc } } poff = (u16_t)(poff + newpbuflen); - 8010092: 8ffa ldrh r2, [r7, #62] ; 0x3e - 8010094: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 8010098: 4413 add r3, r2 - 801009a: 87fb strh r3, [r7, #62] ; 0x3e + 801008e: 8ffa ldrh r2, [r7, #62] ; 0x3e + 8010090: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 + 8010094: 4413 add r3, r2 + 8010096: 87fb strh r3, [r7, #62] ; 0x3e #endif /* LWIP_NETIF_TX_SINGLE_PBUF */ /* Correct header */ last = (left <= netif->mtu - IP_HLEN); - 801009c: 68bb ldr r3, [r7, #8] - 801009e: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80100a0: f1a3 0213 sub.w r2, r3, #19 - 80100a4: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 80100a8: 429a cmp r2, r3 - 80100aa: bfcc ite gt - 80100ac: 2301 movgt r3, #1 - 80100ae: 2300 movle r3, #0 - 80100b0: b2db uxtb r3, r3 - 80100b2: 623b str r3, [r7, #32] + 8010098: 68bb ldr r3, [r7, #8] + 801009a: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801009c: f1a3 0213 sub.w r2, r3, #19 + 80100a0: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 80100a4: 429a cmp r2, r3 + 80100a6: bfcc ite gt + 80100a8: 2301 movgt r3, #1 + 80100aa: 2300 movle r3, #0 + 80100ac: b2db uxtb r3, r3 + 80100ae: 623b str r3, [r7, #32] /* Set new offset and MF flag */ tmp = (IP_OFFMASK & (ofo)); - 80100b4: f8b7 3040 ldrh.w r3, [r7, #64] ; 0x40 - 80100b8: f3c3 030c ubfx r3, r3, #0, #13 - 80100bc: 87bb strh r3, [r7, #60] ; 0x3c + 80100b0: f8b7 3040 ldrh.w r3, [r7, #64] ; 0x40 + 80100b4: f3c3 030c ubfx r3, r3, #0, #13 + 80100b8: 87bb strh r3, [r7, #60] ; 0x3c if (!last || mf_set) { - 80100be: 6a3b ldr r3, [r7, #32] - 80100c0: 2b00 cmp r3, #0 - 80100c2: d002 beq.n 80100ca - 80100c4: 6afb ldr r3, [r7, #44] ; 0x2c - 80100c6: 2b00 cmp r3, #0 - 80100c8: d003 beq.n 80100d2 + 80100ba: 6a3b ldr r3, [r7, #32] + 80100bc: 2b00 cmp r3, #0 + 80100be: d002 beq.n 80100c6 + 80100c0: 6afb ldr r3, [r7, #44] ; 0x2c + 80100c2: 2b00 cmp r3, #0 + 80100c4: d003 beq.n 80100ce /* the last fragment has MF set if the input frame had it */ tmp = tmp | IP_MF; - 80100ca: 8fbb ldrh r3, [r7, #60] ; 0x3c - 80100cc: f443 5300 orr.w r3, r3, #8192 ; 0x2000 - 80100d0: 87bb strh r3, [r7, #60] ; 0x3c + 80100c6: 8fbb ldrh r3, [r7, #60] ; 0x3c + 80100c8: f443 5300 orr.w r3, r3, #8192 ; 0x2000 + 80100cc: 87bb strh r3, [r7, #60] ; 0x3c } IPH_OFFSET_SET(iphdr, lwip_htons(tmp)); - 80100d2: 8fbb ldrh r3, [r7, #60] ; 0x3c - 80100d4: 4618 mov r0, r3 - 80100d6: f7f4 f8f7 bl 80042c8 - 80100da: 4603 mov r3, r0 - 80100dc: 461a mov r2, r3 - 80100de: 6b3b ldr r3, [r7, #48] ; 0x30 - 80100e0: 80da strh r2, [r3, #6] + 80100ce: 8fbb ldrh r3, [r7, #60] ; 0x3c + 80100d0: 4618 mov r0, r3 + 80100d2: f7f4 f8f7 bl 80042c4 + 80100d6: 4603 mov r3, r0 + 80100d8: 461a mov r2, r3 + 80100da: 6b3b ldr r3, [r7, #48] ; 0x30 + 80100dc: 80da strh r2, [r3, #6] IPH_LEN_SET(iphdr, lwip_htons((u16_t)(fragsize + IP_HLEN))); - 80100e2: 8d7b ldrh r3, [r7, #42] ; 0x2a - 80100e4: 3314 adds r3, #20 - 80100e6: b29b uxth r3, r3 - 80100e8: 4618 mov r0, r3 - 80100ea: f7f4 f8ed bl 80042c8 - 80100ee: 4603 mov r3, r0 - 80100f0: 461a mov r2, r3 - 80100f2: 6b3b ldr r3, [r7, #48] ; 0x30 - 80100f4: 805a strh r2, [r3, #2] + 80100de: 8d7b ldrh r3, [r7, #42] ; 0x2a + 80100e0: 3314 adds r3, #20 + 80100e2: b29b uxth r3, r3 + 80100e4: 4618 mov r0, r3 + 80100e6: f7f4 f8ed bl 80042c4 + 80100ea: 4603 mov r3, r0 + 80100ec: 461a mov r2, r3 + 80100ee: 6b3b ldr r3, [r7, #48] ; 0x30 + 80100f0: 805a strh r2, [r3, #2] IPH_CHKSUM_SET(iphdr, 0); - 80100f6: 6b3b ldr r3, [r7, #48] ; 0x30 + 80100f2: 6b3b ldr r3, [r7, #48] ; 0x30 + 80100f4: 2200 movs r2, #0 + 80100f6: 729a strb r2, [r3, #10] 80100f8: 2200 movs r2, #0 - 80100fa: 729a strb r2, [r3, #10] - 80100fc: 2200 movs r2, #0 - 80100fe: 72da strb r2, [r3, #11] + 80100fa: 72da strb r2, [r3, #11] #endif /* CHECKSUM_GEN_IP */ /* No need for separate header pbuf - we allowed room for it in rambuf * when allocated. */ netif->output(netif, rambuf, dest); - 8010100: 68bb ldr r3, [r7, #8] - 8010102: 695b ldr r3, [r3, #20] - 8010104: 687a ldr r2, [r7, #4] - 8010106: 6a79 ldr r1, [r7, #36] ; 0x24 - 8010108: 68b8 ldr r0, [r7, #8] - 801010a: 4798 blx r3 + 80100fc: 68bb ldr r3, [r7, #8] + 80100fe: 695b ldr r3, [r3, #20] + 8010100: 687a ldr r2, [r7, #4] + 8010102: 6a79 ldr r1, [r7, #36] ; 0x24 + 8010104: 68b8 ldr r0, [r7, #8] + 8010106: 4798 blx r3 * recreate it next time round the loop. If we're lucky the hardware * will have already sent the packet, the free will really free, and * there will be zero memory penalty. */ pbuf_free(rambuf); - 801010c: 6a78 ldr r0, [r7, #36] ; 0x24 - 801010e: f7f5 fc45 bl 800599c + 8010108: 6a78 ldr r0, [r7, #36] ; 0x24 + 801010a: f7f5 fc45 bl 8005998 left = (u16_t)(left - fragsize); - 8010112: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 8010116: 8d7b ldrh r3, [r7, #42] ; 0x2a - 8010118: 1ad3 subs r3, r2, r3 - 801011a: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 + 801010e: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 8010112: 8d7b ldrh r3, [r7, #42] ; 0x2a + 8010114: 1ad3 subs r3, r2, r3 + 8010116: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 ofo = (u16_t)(ofo + nfb); - 801011e: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 - 8010122: 8f7b ldrh r3, [r7, #58] ; 0x3a - 8010124: 4413 add r3, r2 - 8010126: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 + 801011a: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 + 801011e: 8f7b ldrh r3, [r7, #58] ; 0x3a + 8010120: 4413 add r3, r2 + 8010122: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 while (left) { - 801012a: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 801012e: 2b00 cmp r3, #0 - 8010130: f47f af19 bne.w 800ff66 + 8010126: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 801012a: 2b00 cmp r3, #0 + 801012c: f47f af19 bne.w 800ff62 } MIB2_STATS_INC(mib2.ipfragoks); return ERR_OK; - 8010134: 2300 movs r3, #0 - 8010136: e002 b.n 801013e + 8010130: 2300 movs r3, #0 + 8010132: e002 b.n 801013a goto memerr; - 8010138: bf00 nop + 8010134: bf00 nop memerr: MIB2_STATS_INC(mib2.ipfragfails); return ERR_MEM; - 801013a: f04f 33ff mov.w r3, #4294967295 + 8010136: f04f 33ff mov.w r3, #4294967295 } - 801013e: 4618 mov r0, r3 - 8010140: 3748 adds r7, #72 ; 0x48 - 8010142: 46bd mov sp, r7 - 8010144: bd80 pop {r7, pc} - 8010146: bf00 nop - 8010148: 08017a24 .word 0x08017a24 - 801014c: 08017c00 .word 0x08017c00 - 8010150: 08017a6c .word 0x08017a6c - 8010154: 08017c1c .word 0x08017c1c - 8010158: 08017c3c .word 0x08017c3c - 801015c: 0800fe6d .word 0x0800fe6d + 801013a: 4618 mov r0, r3 + 801013c: 3748 adds r7, #72 ; 0x48 + 801013e: 46bd mov sp, r7 + 8010140: bd80 pop {r7, pc} + 8010142: bf00 nop + 8010144: 08017a24 .word 0x08017a24 + 8010148: 08017c00 .word 0x08017c00 + 801014c: 08017a6c .word 0x08017a6c + 8010150: 08017c1c .word 0x08017c1c + 8010154: 08017c3c .word 0x08017c3c + 8010158: 0800fe69 .word 0x0800fe69 -08010160 : +0801015c : * @see ETHARP_SUPPORT_VLAN * @see LWIP_HOOK_VLAN_CHECK */ err_t ethernet_input(struct pbuf *p, struct netif *netif) { - 8010160: b580 push {r7, lr} - 8010162: b086 sub sp, #24 - 8010164: af00 add r7, sp, #0 - 8010166: 6078 str r0, [r7, #4] - 8010168: 6039 str r1, [r7, #0] + 801015c: b580 push {r7, lr} + 801015e: b086 sub sp, #24 + 8010160: af00 add r7, sp, #0 + 8010162: 6078 str r0, [r7, #4] + 8010164: 6039 str r1, [r7, #0] struct eth_hdr *ethhdr; u16_t type; #if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6 u16_t next_hdr_offset = SIZEOF_ETH_HDR; - 801016a: 230e movs r3, #14 - 801016c: 82fb strh r3, [r7, #22] + 8010166: 230e movs r3, #14 + 8010168: 82fb strh r3, [r7, #22] #endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */ LWIP_ASSERT_CORE_LOCKED(); if (p->len <= SIZEOF_ETH_HDR) { - 801016e: 687b ldr r3, [r7, #4] - 8010170: 895b ldrh r3, [r3, #10] - 8010172: 2b0e cmp r3, #14 - 8010174: d96e bls.n 8010254 + 801016a: 687b ldr r3, [r7, #4] + 801016c: 895b ldrh r3, [r3, #10] + 801016e: 2b0e cmp r3, #14 + 8010170: d96e bls.n 8010250 ETHARP_STATS_INC(etharp.drop); MIB2_STATS_NETIF_INC(netif, ifinerrors); goto free_and_return; } if (p->if_idx == NETIF_NO_INDEX) { - 8010176: 687b ldr r3, [r7, #4] - 8010178: 7bdb ldrb r3, [r3, #15] - 801017a: 2b00 cmp r3, #0 - 801017c: d106 bne.n 801018c + 8010172: 687b ldr r3, [r7, #4] + 8010174: 7bdb ldrb r3, [r3, #15] + 8010176: 2b00 cmp r3, #0 + 8010178: d106 bne.n 8010188 p->if_idx = netif_get_index(netif); - 801017e: 683b ldr r3, [r7, #0] - 8010180: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8010184: 3301 adds r3, #1 - 8010186: b2da uxtb r2, r3 - 8010188: 687b ldr r3, [r7, #4] - 801018a: 73da strb r2, [r3, #15] + 801017a: 683b ldr r3, [r7, #0] + 801017c: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8010180: 3301 adds r3, #1 + 8010182: b2da uxtb r2, r3 + 8010184: 687b ldr r3, [r7, #4] + 8010186: 73da strb r2, [r3, #15] } /* points to packet payload, which starts with an Ethernet header */ ethhdr = (struct eth_hdr *)p->payload; - 801018c: 687b ldr r3, [r7, #4] - 801018e: 685b ldr r3, [r3, #4] - 8010190: 613b str r3, [r7, #16] + 8010188: 687b ldr r3, [r7, #4] + 801018a: 685b ldr r3, [r3, #4] + 801018c: 613b str r3, [r7, #16] (unsigned char)ethhdr->dest.addr[3], (unsigned char)ethhdr->dest.addr[4], (unsigned char)ethhdr->dest.addr[5], (unsigned char)ethhdr->src.addr[0], (unsigned char)ethhdr->src.addr[1], (unsigned char)ethhdr->src.addr[2], (unsigned char)ethhdr->src.addr[3], (unsigned char)ethhdr->src.addr[4], (unsigned char)ethhdr->src.addr[5], lwip_htons(ethhdr->type))); type = ethhdr->type; - 8010192: 693b ldr r3, [r7, #16] - 8010194: 7b1a ldrb r2, [r3, #12] - 8010196: 7b5b ldrb r3, [r3, #13] - 8010198: 021b lsls r3, r3, #8 - 801019a: 4313 orrs r3, r2 - 801019c: 81fb strh r3, [r7, #14] + 801018e: 693b ldr r3, [r7, #16] + 8010190: 7b1a ldrb r2, [r3, #12] + 8010192: 7b5b ldrb r3, [r3, #13] + 8010194: 021b lsls r3, r3, #8 + 8010196: 4313 orrs r3, r2 + 8010198: 81fb strh r3, [r7, #14] #if LWIP_ARP_FILTER_NETIF netif = LWIP_ARP_FILTER_NETIF_FN(p, netif, lwip_htons(type)); #endif /* LWIP_ARP_FILTER_NETIF*/ if (ethhdr->dest.addr[0] & 1) { - 801019e: 693b ldr r3, [r7, #16] - 80101a0: 781b ldrb r3, [r3, #0] - 80101a2: f003 0301 and.w r3, r3, #1 - 80101a6: 2b00 cmp r3, #0 - 80101a8: d023 beq.n 80101f2 + 801019a: 693b ldr r3, [r7, #16] + 801019c: 781b ldrb r3, [r3, #0] + 801019e: f003 0301 and.w r3, r3, #1 + 80101a2: 2b00 cmp r3, #0 + 80101a4: d023 beq.n 80101ee /* this might be a multicast or broadcast packet */ if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) { - 80101aa: 693b ldr r3, [r7, #16] - 80101ac: 781b ldrb r3, [r3, #0] - 80101ae: 2b01 cmp r3, #1 - 80101b0: d10f bne.n 80101d2 + 80101a6: 693b ldr r3, [r7, #16] + 80101a8: 781b ldrb r3, [r3, #0] + 80101aa: 2b01 cmp r3, #1 + 80101ac: d10f bne.n 80101ce #if LWIP_IPV4 if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) && - 80101b2: 693b ldr r3, [r7, #16] - 80101b4: 785b ldrb r3, [r3, #1] - 80101b6: 2b00 cmp r3, #0 - 80101b8: d11b bne.n 80101f2 + 80101ae: 693b ldr r3, [r7, #16] + 80101b0: 785b ldrb r3, [r3, #1] + 80101b2: 2b00 cmp r3, #0 + 80101b4: d11b bne.n 80101ee (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) { - 80101ba: 693b ldr r3, [r7, #16] - 80101bc: 789b ldrb r3, [r3, #2] + 80101b6: 693b ldr r3, [r7, #16] + 80101b8: 789b ldrb r3, [r3, #2] if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) && - 80101be: 2b5e cmp r3, #94 ; 0x5e - 80101c0: d117 bne.n 80101f2 + 80101ba: 2b5e cmp r3, #94 ; 0x5e + 80101bc: d117 bne.n 80101ee /* mark the pbuf as link-layer multicast */ p->flags |= PBUF_FLAG_LLMCAST; - 80101c2: 687b ldr r3, [r7, #4] - 80101c4: 7b5b ldrb r3, [r3, #13] - 80101c6: f043 0310 orr.w r3, r3, #16 - 80101ca: b2da uxtb r2, r3 - 80101cc: 687b ldr r3, [r7, #4] - 80101ce: 735a strb r2, [r3, #13] - 80101d0: e00f b.n 80101f2 + 80101be: 687b ldr r3, [r7, #4] + 80101c0: 7b5b ldrb r3, [r3, #13] + 80101c2: f043 0310 orr.w r3, r3, #16 + 80101c6: b2da uxtb r2, r3 + 80101c8: 687b ldr r3, [r7, #4] + 80101ca: 735a strb r2, [r3, #13] + 80101cc: e00f b.n 80101ee (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) { /* mark the pbuf as link-layer multicast */ p->flags |= PBUF_FLAG_LLMCAST; } #endif /* LWIP_IPV6 */ else if (eth_addr_cmp(ðhdr->dest, ðbroadcast)) { - 80101d2: 693b ldr r3, [r7, #16] - 80101d4: 2206 movs r2, #6 - 80101d6: 4928 ldr r1, [pc, #160] ; (8010278 ) - 80101d8: 4618 mov r0, r3 - 80101da: f000 f8bb bl 8010354 - 80101de: 4603 mov r3, r0 - 80101e0: 2b00 cmp r3, #0 - 80101e2: d106 bne.n 80101f2 + 80101ce: 693b ldr r3, [r7, #16] + 80101d0: 2206 movs r2, #6 + 80101d2: 4928 ldr r1, [pc, #160] ; (8010274 ) + 80101d4: 4618 mov r0, r3 + 80101d6: f000 f8bb bl 8010350 + 80101da: 4603 mov r3, r0 + 80101dc: 2b00 cmp r3, #0 + 80101de: d106 bne.n 80101ee /* mark the pbuf as link-layer broadcast */ p->flags |= PBUF_FLAG_LLBCAST; - 80101e4: 687b ldr r3, [r7, #4] - 80101e6: 7b5b ldrb r3, [r3, #13] - 80101e8: f043 0308 orr.w r3, r3, #8 - 80101ec: b2da uxtb r2, r3 - 80101ee: 687b ldr r3, [r7, #4] - 80101f0: 735a strb r2, [r3, #13] + 80101e0: 687b ldr r3, [r7, #4] + 80101e2: 7b5b ldrb r3, [r3, #13] + 80101e4: f043 0308 orr.w r3, r3, #8 + 80101e8: b2da uxtb r2, r3 + 80101ea: 687b ldr r3, [r7, #4] + 80101ec: 735a strb r2, [r3, #13] } } switch (type) { - 80101f2: 89fb ldrh r3, [r7, #14] - 80101f4: 2b08 cmp r3, #8 - 80101f6: d003 beq.n 8010200 - 80101f8: f5b3 6fc1 cmp.w r3, #1544 ; 0x608 - 80101fc: d014 beq.n 8010228 + 80101ee: 89fb ldrh r3, [r7, #14] + 80101f0: 2b08 cmp r3, #8 + 80101f2: d003 beq.n 80101fc + 80101f4: f5b3 6fc1 cmp.w r3, #1544 ; 0x608 + 80101f8: d014 beq.n 8010224 } #endif ETHARP_STATS_INC(etharp.proterr); ETHARP_STATS_INC(etharp.drop); MIB2_STATS_NETIF_INC(netif, ifinunknownprotos); goto free_and_return; - 80101fe: e032 b.n 8010266 + 80101fa: e032 b.n 8010262 if (!(netif->flags & NETIF_FLAG_ETHARP)) { - 8010200: 683b ldr r3, [r7, #0] - 8010202: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8010206: f003 0308 and.w r3, r3, #8 - 801020a: 2b00 cmp r3, #0 - 801020c: d024 beq.n 8010258 + 80101fc: 683b ldr r3, [r7, #0] + 80101fe: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8010202: f003 0308 and.w r3, r3, #8 + 8010206: 2b00 cmp r3, #0 + 8010208: d024 beq.n 8010254 if (pbuf_remove_header(p, next_hdr_offset)) { - 801020e: 8afb ldrh r3, [r7, #22] - 8010210: 4619 mov r1, r3 - 8010212: 6878 ldr r0, [r7, #4] - 8010214: f7f5 fb3c bl 8005890 - 8010218: 4603 mov r3, r0 - 801021a: 2b00 cmp r3, #0 - 801021c: d11e bne.n 801025c + 801020a: 8afb ldrh r3, [r7, #22] + 801020c: 4619 mov r1, r3 + 801020e: 6878 ldr r0, [r7, #4] + 8010210: f7f5 fb3c bl 800588c + 8010214: 4603 mov r3, r0 + 8010216: 2b00 cmp r3, #0 + 8010218: d11e bne.n 8010258 ip4_input(p, netif); - 801021e: 6839 ldr r1, [r7, #0] - 8010220: 6878 ldr r0, [r7, #4] - 8010222: f7fe fdc5 bl 800edb0 + 801021a: 6839 ldr r1, [r7, #0] + 801021c: 6878 ldr r0, [r7, #4] + 801021e: f7fe fdc5 bl 800edac break; - 8010226: e013 b.n 8010250 + 8010222: e013 b.n 801024c if (!(netif->flags & NETIF_FLAG_ETHARP)) { - 8010228: 683b ldr r3, [r7, #0] - 801022a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801022e: f003 0308 and.w r3, r3, #8 - 8010232: 2b00 cmp r3, #0 - 8010234: d014 beq.n 8010260 + 8010224: 683b ldr r3, [r7, #0] + 8010226: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801022a: f003 0308 and.w r3, r3, #8 + 801022e: 2b00 cmp r3, #0 + 8010230: d014 beq.n 801025c if (pbuf_remove_header(p, next_hdr_offset)) { - 8010236: 8afb ldrh r3, [r7, #22] - 8010238: 4619 mov r1, r3 - 801023a: 6878 ldr r0, [r7, #4] - 801023c: f7f5 fb28 bl 8005890 - 8010240: 4603 mov r3, r0 - 8010242: 2b00 cmp r3, #0 - 8010244: d10e bne.n 8010264 + 8010232: 8afb ldrh r3, [r7, #22] + 8010234: 4619 mov r1, r3 + 8010236: 6878 ldr r0, [r7, #4] + 8010238: f7f5 fb28 bl 800588c + 801023c: 4603 mov r3, r0 + 801023e: 2b00 cmp r3, #0 + 8010240: d10e bne.n 8010260 etharp_input(p, netif); - 8010246: 6839 ldr r1, [r7, #0] - 8010248: 6878 ldr r0, [r7, #4] - 801024a: f7fd ff61 bl 800e110 + 8010242: 6839 ldr r1, [r7, #0] + 8010244: 6878 ldr r0, [r7, #4] + 8010246: f7fd ff61 bl 800e10c break; - 801024e: bf00 nop + 801024a: bf00 nop } /* This means the pbuf is freed or consumed, so the caller doesn't have to free it again */ return ERR_OK; - 8010250: 2300 movs r3, #0 - 8010252: e00c b.n 801026e + 801024c: 2300 movs r3, #0 + 801024e: e00c b.n 801026a goto free_and_return; + 8010250: bf00 nop + 8010252: e006 b.n 8010262 + goto free_and_return; 8010254: bf00 nop - 8010256: e006 b.n 8010266 + 8010256: e004 b.n 8010262 goto free_and_return; 8010258: bf00 nop - 801025a: e004 b.n 8010266 + 801025a: e002 b.n 8010262 goto free_and_return; 801025c: bf00 nop - 801025e: e002 b.n 8010266 + 801025e: e000 b.n 8010262 goto free_and_return; 8010260: bf00 nop - 8010262: e000 b.n 8010266 - goto free_and_return; - 8010264: bf00 nop free_and_return: pbuf_free(p); - 8010266: 6878 ldr r0, [r7, #4] - 8010268: f7f5 fb98 bl 800599c + 8010262: 6878 ldr r0, [r7, #4] + 8010264: f7f5 fb98 bl 8005998 return ERR_OK; - 801026c: 2300 movs r3, #0 + 8010268: 2300 movs r3, #0 } - 801026e: 4618 mov r0, r3 - 8010270: 3718 adds r7, #24 - 8010272: 46bd mov sp, r7 - 8010274: bd80 pop {r7, pc} - 8010276: bf00 nop - 8010278: 08017de4 .word 0x08017de4 + 801026a: 4618 mov r0, r3 + 801026c: 3718 adds r7, #24 + 801026e: 46bd mov sp, r7 + 8010270: bd80 pop {r7, pc} + 8010272: bf00 nop + 8010274: 08017de4 .word 0x08017de4 -0801027c : +08010278 : * @return ERR_OK if the packet was sent, any other err_t on failure */ err_t ethernet_output(struct netif * netif, struct pbuf * p, const struct eth_addr * src, const struct eth_addr * dst, u16_t eth_type) { - 801027c: b580 push {r7, lr} - 801027e: b086 sub sp, #24 - 8010280: af00 add r7, sp, #0 - 8010282: 60f8 str r0, [r7, #12] - 8010284: 60b9 str r1, [r7, #8] - 8010286: 607a str r2, [r7, #4] - 8010288: 603b str r3, [r7, #0] + 8010278: b580 push {r7, lr} + 801027a: b086 sub sp, #24 + 801027c: af00 add r7, sp, #0 + 801027e: 60f8 str r0, [r7, #12] + 8010280: 60b9 str r1, [r7, #8] + 8010282: 607a str r2, [r7, #4] + 8010284: 603b str r3, [r7, #0] struct eth_hdr *ethhdr; u16_t eth_type_be = lwip_htons(eth_type); - 801028a: 8c3b ldrh r3, [r7, #32] - 801028c: 4618 mov r0, r3 - 801028e: f7f4 f81b bl 80042c8 - 8010292: 4603 mov r3, r0 - 8010294: 82fb strh r3, [r7, #22] + 8010286: 8c3b ldrh r3, [r7, #32] + 8010288: 4618 mov r0, r3 + 801028a: f7f4 f81b bl 80042c4 + 801028e: 4603 mov r3, r0 + 8010290: 82fb strh r3, [r7, #22] eth_type_be = PP_HTONS(ETHTYPE_VLAN); } else #endif /* ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET) */ { if (pbuf_add_header(p, SIZEOF_ETH_HDR) != 0) { - 8010296: 210e movs r1, #14 - 8010298: 68b8 ldr r0, [r7, #8] - 801029a: f7f5 fae9 bl 8005870 - 801029e: 4603 mov r3, r0 - 80102a0: 2b00 cmp r3, #0 - 80102a2: d125 bne.n 80102f0 + 8010292: 210e movs r1, #14 + 8010294: 68b8 ldr r0, [r7, #8] + 8010296: f7f5 fae9 bl 800586c + 801029a: 4603 mov r3, r0 + 801029c: 2b00 cmp r3, #0 + 801029e: d125 bne.n 80102ec } } LWIP_ASSERT_CORE_LOCKED(); ethhdr = (struct eth_hdr *)p->payload; - 80102a4: 68bb ldr r3, [r7, #8] - 80102a6: 685b ldr r3, [r3, #4] - 80102a8: 613b str r3, [r7, #16] + 80102a0: 68bb ldr r3, [r7, #8] + 80102a2: 685b ldr r3, [r3, #4] + 80102a4: 613b str r3, [r7, #16] ethhdr->type = eth_type_be; - 80102aa: 693b ldr r3, [r7, #16] - 80102ac: 8afa ldrh r2, [r7, #22] - 80102ae: 819a strh r2, [r3, #12] + 80102a6: 693b ldr r3, [r7, #16] + 80102a8: 8afa ldrh r2, [r7, #22] + 80102aa: 819a strh r2, [r3, #12] SMEMCPY(ðhdr->dest, dst, ETH_HWADDR_LEN); - 80102b0: 693b ldr r3, [r7, #16] - 80102b2: 2206 movs r2, #6 - 80102b4: 6839 ldr r1, [r7, #0] - 80102b6: 4618 mov r0, r3 - 80102b8: f000 f85c bl 8010374 + 80102ac: 693b ldr r3, [r7, #16] + 80102ae: 2206 movs r2, #6 + 80102b0: 6839 ldr r1, [r7, #0] + 80102b2: 4618 mov r0, r3 + 80102b4: f000 f85c bl 8010370 SMEMCPY(ðhdr->src, src, ETH_HWADDR_LEN); - 80102bc: 693b ldr r3, [r7, #16] - 80102be: 3306 adds r3, #6 - 80102c0: 2206 movs r2, #6 - 80102c2: 6879 ldr r1, [r7, #4] - 80102c4: 4618 mov r0, r3 - 80102c6: f000 f855 bl 8010374 + 80102b8: 693b ldr r3, [r7, #16] + 80102ba: 3306 adds r3, #6 + 80102bc: 2206 movs r2, #6 + 80102be: 6879 ldr r1, [r7, #4] + 80102c0: 4618 mov r0, r3 + 80102c2: f000 f855 bl 8010370 LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!", - 80102ca: 68fb ldr r3, [r7, #12] - 80102cc: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 80102d0: 2b06 cmp r3, #6 - 80102d2: d006 beq.n 80102e2 - 80102d4: 4b0a ldr r3, [pc, #40] ; (8010300 ) - 80102d6: f44f 7299 mov.w r2, #306 ; 0x132 - 80102da: 490a ldr r1, [pc, #40] ; (8010304 ) - 80102dc: 480a ldr r0, [pc, #40] ; (8010308 ) - 80102de: f000 f879 bl 80103d4 + 80102c6: 68fb ldr r3, [r7, #12] + 80102c8: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 80102cc: 2b06 cmp r3, #6 + 80102ce: d006 beq.n 80102de + 80102d0: 4b0a ldr r3, [pc, #40] ; (80102fc ) + 80102d2: f44f 7299 mov.w r2, #306 ; 0x132 + 80102d6: 490a ldr r1, [pc, #40] ; (8010300 ) + 80102d8: 480a ldr r0, [pc, #40] ; (8010304 ) + 80102da: f000 f879 bl 80103d0 (netif->hwaddr_len == ETH_HWADDR_LEN)); LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("ethernet_output: sending packet %p\n", (void *)p)); /* send the packet */ return netif->linkoutput(netif, p); - 80102e2: 68fb ldr r3, [r7, #12] - 80102e4: 699b ldr r3, [r3, #24] - 80102e6: 68b9 ldr r1, [r7, #8] - 80102e8: 68f8 ldr r0, [r7, #12] - 80102ea: 4798 blx r3 - 80102ec: 4603 mov r3, r0 - 80102ee: e002 b.n 80102f6 + 80102de: 68fb ldr r3, [r7, #12] + 80102e0: 699b ldr r3, [r3, #24] + 80102e2: 68b9 ldr r1, [r7, #8] + 80102e4: 68f8 ldr r0, [r7, #12] + 80102e6: 4798 blx r3 + 80102e8: 4603 mov r3, r0 + 80102ea: e002 b.n 80102f2 goto pbuf_header_failed; - 80102f0: bf00 nop + 80102ec: bf00 nop pbuf_header_failed: LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("ethernet_output: could not allocate room for header.\n")); LINK_STATS_INC(link.lenerr); return ERR_BUF; - 80102f2: f06f 0301 mvn.w r3, #1 + 80102ee: f06f 0301 mvn.w r3, #1 } - 80102f6: 4618 mov r0, r3 - 80102f8: 3718 adds r7, #24 - 80102fa: 46bd mov sp, r7 - 80102fc: bd80 pop {r7, pc} - 80102fe: bf00 nop - 8010300: 08017c4c .word 0x08017c4c - 8010304: 08017c84 .word 0x08017c84 - 8010308: 08017cb8 .word 0x08017cb8 + 80102f2: 4618 mov r0, r3 + 80102f4: 3718 adds r7, #24 + 80102f6: 46bd mov sp, r7 + 80102f8: bd80 pop {r7, pc} + 80102fa: bf00 nop + 80102fc: 08017c4c .word 0x08017c4c + 8010300: 08017c84 .word 0x08017c84 + 8010304: 08017cb8 .word 0x08017cb8 -0801030c <__libc_init_array>: - 801030c: b570 push {r4, r5, r6, lr} - 801030e: 4d0d ldr r5, [pc, #52] ; (8010344 <__libc_init_array+0x38>) - 8010310: 4c0d ldr r4, [pc, #52] ; (8010348 <__libc_init_array+0x3c>) - 8010312: 1b64 subs r4, r4, r5 - 8010314: 10a4 asrs r4, r4, #2 - 8010316: 2600 movs r6, #0 - 8010318: 42a6 cmp r6, r4 - 801031a: d109 bne.n 8010330 <__libc_init_array+0x24> - 801031c: 4d0b ldr r5, [pc, #44] ; (801034c <__libc_init_array+0x40>) - 801031e: 4c0c ldr r4, [pc, #48] ; (8010350 <__libc_init_array+0x44>) - 8010320: f004 fdc6 bl 8014eb0 <_init> - 8010324: 1b64 subs r4, r4, r5 - 8010326: 10a4 asrs r4, r4, #2 - 8010328: 2600 movs r6, #0 - 801032a: 42a6 cmp r6, r4 - 801032c: d105 bne.n 801033a <__libc_init_array+0x2e> - 801032e: bd70 pop {r4, r5, r6, pc} - 8010330: f855 3b04 ldr.w r3, [r5], #4 - 8010334: 4798 blx r3 - 8010336: 3601 adds r6, #1 - 8010338: e7ee b.n 8010318 <__libc_init_array+0xc> - 801033a: f855 3b04 ldr.w r3, [r5], #4 - 801033e: 4798 blx r3 - 8010340: 3601 adds r6, #1 - 8010342: e7f2 b.n 801032a <__libc_init_array+0x1e> +08010308 <__libc_init_array>: + 8010308: b570 push {r4, r5, r6, lr} + 801030a: 4d0d ldr r5, [pc, #52] ; (8010340 <__libc_init_array+0x38>) + 801030c: 4c0d ldr r4, [pc, #52] ; (8010344 <__libc_init_array+0x3c>) + 801030e: 1b64 subs r4, r4, r5 + 8010310: 10a4 asrs r4, r4, #2 + 8010312: 2600 movs r6, #0 + 8010314: 42a6 cmp r6, r4 + 8010316: d109 bne.n 801032c <__libc_init_array+0x24> + 8010318: 4d0b ldr r5, [pc, #44] ; (8010348 <__libc_init_array+0x40>) + 801031a: 4c0c ldr r4, [pc, #48] ; (801034c <__libc_init_array+0x44>) + 801031c: f004 fdc8 bl 8014eb0 <_init> + 8010320: 1b64 subs r4, r4, r5 + 8010322: 10a4 asrs r4, r4, #2 + 8010324: 2600 movs r6, #0 + 8010326: 42a6 cmp r6, r4 + 8010328: d105 bne.n 8010336 <__libc_init_array+0x2e> + 801032a: bd70 pop {r4, r5, r6, pc} + 801032c: f855 3b04 ldr.w r3, [r5], #4 + 8010330: 4798 blx r3 + 8010332: 3601 adds r6, #1 + 8010334: e7ee b.n 8010314 <__libc_init_array+0xc> + 8010336: f855 3b04 ldr.w r3, [r5], #4 + 801033a: 4798 blx r3 + 801033c: 3601 adds r6, #1 + 801033e: e7f2 b.n 8010326 <__libc_init_array+0x1e> + 8010340: 08018194 .word 0x08018194 8010344: 08018194 .word 0x08018194 8010348: 08018194 .word 0x08018194 - 801034c: 08018194 .word 0x08018194 - 8010350: 0801819c .word 0x0801819c + 801034c: 0801819c .word 0x0801819c -08010354 : - 8010354: b510 push {r4, lr} - 8010356: 3901 subs r1, #1 - 8010358: 4402 add r2, r0 - 801035a: 4290 cmp r0, r2 - 801035c: d101 bne.n 8010362 - 801035e: 2000 movs r0, #0 - 8010360: e005 b.n 801036e - 8010362: 7803 ldrb r3, [r0, #0] - 8010364: f811 4f01 ldrb.w r4, [r1, #1]! - 8010368: 42a3 cmp r3, r4 - 801036a: d001 beq.n 8010370 - 801036c: 1b18 subs r0, r3, r4 - 801036e: bd10 pop {r4, pc} - 8010370: 3001 adds r0, #1 - 8010372: e7f2 b.n 801035a +08010350 : + 8010350: b510 push {r4, lr} + 8010352: 3901 subs r1, #1 + 8010354: 4402 add r2, r0 + 8010356: 4290 cmp r0, r2 + 8010358: d101 bne.n 801035e + 801035a: 2000 movs r0, #0 + 801035c: e005 b.n 801036a + 801035e: 7803 ldrb r3, [r0, #0] + 8010360: f811 4f01 ldrb.w r4, [r1, #1]! + 8010364: 42a3 cmp r3, r4 + 8010366: d001 beq.n 801036c + 8010368: 1b18 subs r0, r3, r4 + 801036a: bd10 pop {r4, pc} + 801036c: 3001 adds r0, #1 + 801036e: e7f2 b.n 8010356 -08010374 : - 8010374: 440a add r2, r1 - 8010376: 4291 cmp r1, r2 - 8010378: f100 33ff add.w r3, r0, #4294967295 - 801037c: d100 bne.n 8010380 - 801037e: 4770 bx lr - 8010380: b510 push {r4, lr} - 8010382: f811 4b01 ldrb.w r4, [r1], #1 - 8010386: f803 4f01 strb.w r4, [r3, #1]! - 801038a: 4291 cmp r1, r2 - 801038c: d1f9 bne.n 8010382 - 801038e: bd10 pop {r4, pc} +08010370 : + 8010370: 440a add r2, r1 + 8010372: 4291 cmp r1, r2 + 8010374: f100 33ff add.w r3, r0, #4294967295 + 8010378: d100 bne.n 801037c + 801037a: 4770 bx lr + 801037c: b510 push {r4, lr} + 801037e: f811 4b01 ldrb.w r4, [r1], #1 + 8010382: f803 4f01 strb.w r4, [r3, #1]! + 8010386: 4291 cmp r1, r2 + 8010388: d1f9 bne.n 801037e + 801038a: bd10 pop {r4, pc} -08010390 : - 8010390: 4288 cmp r0, r1 - 8010392: b510 push {r4, lr} - 8010394: eb01 0402 add.w r4, r1, r2 - 8010398: d902 bls.n 80103a0 - 801039a: 4284 cmp r4, r0 - 801039c: 4623 mov r3, r4 - 801039e: d807 bhi.n 80103b0 - 80103a0: 1e43 subs r3, r0, #1 - 80103a2: 42a1 cmp r1, r4 - 80103a4: d008 beq.n 80103b8 - 80103a6: f811 2b01 ldrb.w r2, [r1], #1 - 80103aa: f803 2f01 strb.w r2, [r3, #1]! - 80103ae: e7f8 b.n 80103a2 - 80103b0: 4402 add r2, r0 - 80103b2: 4601 mov r1, r0 - 80103b4: 428a cmp r2, r1 - 80103b6: d100 bne.n 80103ba - 80103b8: bd10 pop {r4, pc} - 80103ba: f813 4d01 ldrb.w r4, [r3, #-1]! - 80103be: f802 4d01 strb.w r4, [r2, #-1]! - 80103c2: e7f7 b.n 80103b4 +0801038c : + 801038c: 4288 cmp r0, r1 + 801038e: b510 push {r4, lr} + 8010390: eb01 0402 add.w r4, r1, r2 + 8010394: d902 bls.n 801039c + 8010396: 4284 cmp r4, r0 + 8010398: 4623 mov r3, r4 + 801039a: d807 bhi.n 80103ac + 801039c: 1e43 subs r3, r0, #1 + 801039e: 42a1 cmp r1, r4 + 80103a0: d008 beq.n 80103b4 + 80103a2: f811 2b01 ldrb.w r2, [r1], #1 + 80103a6: f803 2f01 strb.w r2, [r3, #1]! + 80103aa: e7f8 b.n 801039e + 80103ac: 4402 add r2, r0 + 80103ae: 4601 mov r1, r0 + 80103b0: 428a cmp r2, r1 + 80103b2: d100 bne.n 80103b6 + 80103b4: bd10 pop {r4, pc} + 80103b6: f813 4d01 ldrb.w r4, [r3, #-1]! + 80103ba: f802 4d01 strb.w r4, [r2, #-1]! + 80103be: e7f7 b.n 80103b0 -080103c4 : - 80103c4: 4402 add r2, r0 - 80103c6: 4603 mov r3, r0 - 80103c8: 4293 cmp r3, r2 - 80103ca: d100 bne.n 80103ce - 80103cc: 4770 bx lr - 80103ce: f803 1b01 strb.w r1, [r3], #1 - 80103d2: e7f9 b.n 80103c8 +080103c0 : + 80103c0: 4402 add r2, r0 + 80103c2: 4603 mov r3, r0 + 80103c4: 4293 cmp r3, r2 + 80103c6: d100 bne.n 80103ca + 80103c8: 4770 bx lr + 80103ca: f803 1b01 strb.w r1, [r3], #1 + 80103ce: e7f9 b.n 80103c4 -080103d4 : - 80103d4: b40f push {r0, r1, r2, r3} - 80103d6: b507 push {r0, r1, r2, lr} - 80103d8: 4906 ldr r1, [pc, #24] ; (80103f4 ) - 80103da: ab04 add r3, sp, #16 - 80103dc: 6808 ldr r0, [r1, #0] - 80103de: f853 2b04 ldr.w r2, [r3], #4 - 80103e2: 6881 ldr r1, [r0, #8] - 80103e4: 9301 str r3, [sp, #4] - 80103e6: f000 f823 bl 8010430 <_vfprintf_r> - 80103ea: b003 add sp, #12 - 80103ec: f85d eb04 ldr.w lr, [sp], #4 - 80103f0: b004 add sp, #16 - 80103f2: 4770 bx lr - 80103f4: 20000030 .word 0x20000030 +080103d0 : + 80103d0: b40f push {r0, r1, r2, r3} + 80103d2: b507 push {r0, r1, r2, lr} + 80103d4: 4906 ldr r1, [pc, #24] ; (80103f0 ) + 80103d6: ab04 add r3, sp, #16 + 80103d8: 6808 ldr r0, [r1, #0] + 80103da: f853 2b04 ldr.w r2, [r3], #4 + 80103de: 6881 ldr r1, [r0, #8] + 80103e0: 9301 str r3, [sp, #4] + 80103e2: f000 f825 bl 8010430 <_vfprintf_r> + 80103e6: b003 add sp, #12 + 80103e8: f85d eb04 ldr.w lr, [sp], #4 + 80103ec: b004 add sp, #16 + 80103ee: 4770 bx lr + 80103f0: 20000030 .word 0x20000030 -080103f8 : - 80103f8: 4b0a ldr r3, [pc, #40] ; (8010424 ) - 80103fa: 4a0b ldr r2, [pc, #44] ; (8010428 ) - 80103fc: 490b ldr r1, [pc, #44] ; (801042c ) - 80103fe: b510 push {r4, lr} - 8010400: 681c ldr r4, [r3, #0] - 8010402: f8d4 00a8 ldr.w r0, [r4, #168] ; 0xa8 - 8010406: f8d4 30ac ldr.w r3, [r4, #172] ; 0xac - 801040a: 4342 muls r2, r0 - 801040c: fb01 2203 mla r2, r1, r3, r2 - 8010410: fba0 0101 umull r0, r1, r0, r1 - 8010414: 1c43 adds r3, r0, #1 - 8010416: eb42 0001 adc.w r0, r2, r1 - 801041a: e9c4 302a strd r3, r0, [r4, #168] ; 0xa8 - 801041e: f020 4000 bic.w r0, r0, #2147483648 ; 0x80000000 - 8010422: bd10 pop {r4, pc} - 8010424: 20000030 .word 0x20000030 - 8010428: 5851f42d .word 0x5851f42d - 801042c: 4c957f2d .word 0x4c957f2d +080103f4 : + 80103f4: 4b0a ldr r3, [pc, #40] ; (8010420 ) + 80103f6: 4a0b ldr r2, [pc, #44] ; (8010424 ) + 80103f8: 490b ldr r1, [pc, #44] ; (8010428 ) + 80103fa: b510 push {r4, lr} + 80103fc: 681c ldr r4, [r3, #0] + 80103fe: f8d4 00a8 ldr.w r0, [r4, #168] ; 0xa8 + 8010402: f8d4 30ac ldr.w r3, [r4, #172] ; 0xac + 8010406: 4342 muls r2, r0 + 8010408: fb01 2203 mla r2, r1, r3, r2 + 801040c: fba0 0101 umull r0, r1, r0, r1 + 8010410: 1c43 adds r3, r0, #1 + 8010412: eb42 0001 adc.w r0, r2, r1 + 8010416: e9c4 302a strd r3, r0, [r4, #168] ; 0xa8 + 801041a: f020 4000 bic.w r0, r0, #2147483648 ; 0x80000000 + 801041e: bd10 pop {r4, pc} + 8010420: 20000030 .word 0x20000030 + 8010424: 5851f42d .word 0x5851f42d + 8010428: 4c957f2d .word 0x4c957f2d + 801042c: 00000000 .word 0x00000000 08010430 <_vfprintf_r>: 8010430: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} @@ -45715,7 +45720,7 @@ pbuf_header_failed: 80124a0: 0092 lsls r2, r2, #2 80124a2: f107 010c add.w r1, r7, #12 80124a6: 300c adds r0, #12 - 80124a8: f7fd ff64 bl 8010374 + 80124a8: f7fd ff62 bl 8010370 80124ac: 2201 movs r2, #1 80124ae: 4629 mov r1, r5 80124b0: 4620 mov r0, r4 @@ -46105,7 +46110,7 @@ pbuf_header_failed: 8012848: 4619 mov r1, r3 801284a: 2208 movs r2, #8 801284c: 305c adds r0, #92 ; 0x5c - 801284e: f7fd fdb9 bl 80103c4 + 801284e: f7fd fdb7 bl 80103c0 8012852: 4b07 ldr r3, [pc, #28] ; (8012870 ) 8012854: 6223 str r3, [r4, #32] 8012856: 4b07 ldr r3, [pc, #28] ; (8012874 ) @@ -47076,7 +47081,7 @@ pbuf_header_failed: 80131ce: f104 010c add.w r1, r4, #12 80131d2: 0092 lsls r2, r2, #2 80131d4: 300c adds r0, #12 - 80131d6: f7fd f8cd bl 8010374 + 80131d6: f7fd f8cb bl 8010370 80131da: 4621 mov r1, r4 80131dc: 4638 mov r0, r7 80131de: f7ff ffbe bl 801315e <_Bfree> @@ -48892,7 +48897,7 @@ pbuf_header_failed: 801442a: 4603 mov r3, r0 801442c: e7ed b.n 801440a <_calloc_r+0x3e> 801442e: 4629 mov r1, r5 - 8014430: f7fb ffc8 bl 80103c4 + 8014430: f7fb ffc6 bl 80103c0 8014434: e7d2 b.n 80143dc <_calloc_r+0x10> ... @@ -49168,7 +49173,7 @@ pbuf_header_failed: 801469e: f340 80f0 ble.w 8014882 <__sfvwrite_r+0x25a> 80146a2: 4651 mov r1, sl 80146a4: 462a mov r2, r5 - 80146a6: f7fb fe73 bl 8010390 + 80146a6: f7fb fe71 bl 801038c 80146aa: 6823 ldr r3, [r4, #0] 80146ac: 442b add r3, r5 80146ae: 6023 str r3, [r4, #0] @@ -49268,7 +49273,7 @@ pbuf_header_failed: 801479c: 465a mov r2, fp 801479e: 6921 ldr r1, [r4, #16] 80147a0: 9001 str r0, [sp, #4] - 80147a2: f7fb fde7 bl 8010374 + 80147a2: f7fb fde5 bl 8010370 80147a6: 89a2 ldrh r2, [r4, #12] 80147a8: 9b01 ldr r3, [sp, #4] 80147aa: f422 6290 bic.w r2, r2, #1152 ; 0x480 @@ -49287,7 +49292,7 @@ pbuf_header_failed: 80147ca: 6820 ldr r0, [r4, #0] 80147cc: 9201 str r2, [sp, #4] 80147ce: 4649 mov r1, r9 - 80147d0: f7fb fdde bl 8010390 + 80147d0: f7fb fddc bl 801038c 80147d4: 68a3 ldr r3, [r4, #8] 80147d6: 9a01 ldr r2, [sp, #4] 80147d8: 1a9b subs r3, r3, r2 @@ -49328,7 +49333,7 @@ pbuf_header_failed: 801482a: 4652 movcs r2, sl 801482c: 4649 mov r1, r9 801482e: 4615 mov r5, r2 - 8014830: f7fb fdae bl 8010390 + 8014830: f7fb fdac bl 801038c 8014834: 68a3 ldr r3, [r4, #8] 8014836: 6822 ldr r2, [r4, #0] 8014838: 1b5b subs r3, r3, r5 @@ -49375,7 +49380,7 @@ pbuf_header_failed: 8014896: e779 b.n 801478c <__sfvwrite_r+0x164> 8014898: 4651 mov r1, sl 801489a: 9201 str r2, [sp, #4] - 801489c: f7fb fd78 bl 8010390 + 801489c: f7fb fd76 bl 801038c 80148a0: 9a01 ldr r2, [sp, #4] 80148a2: 68a3 ldr r3, [r4, #8] 80148a4: 1a9b subs r3, r3, r2 @@ -49611,7 +49616,7 @@ pbuf_header_failed: 8014ace: e7d2 b.n 8014a76 <_realloc_r+0x122> 8014ad0: 4621 mov r1, r4 8014ad2: 4658 mov r0, fp - 8014ad4: f7fb fc5c bl 8010390 + 8014ad4: f7fb fc5a bl 801038c 8014ad8: e7d3 b.n 8014a82 <_realloc_r+0x12e> 8014ada: 45b8 cmp r8, r7 8014adc: dc53 bgt.n 8014b86 <_realloc_r+0x232> @@ -49680,7 +49685,7 @@ pbuf_header_failed: 8014b7a: 3418 addeq r4, #24 8014b7c: e7c7 b.n 8014b0e <_realloc_r+0x1ba> 8014b7e: 4621 mov r1, r4 - 8014b80: f7fb fc06 bl 8010390 + 8014b80: f7fb fc04 bl 801038c 8014b84: e7c9 b.n 8014b1a <_realloc_r+0x1c6> 8014b86: 45d8 cmp r8, fp 8014b88: dc31 bgt.n 8014bee <_realloc_r+0x29a> @@ -49727,7 +49732,7 @@ pbuf_header_failed: 8014be2: 3418 addeq r4, #24 8014be4: e7e5 b.n 8014bb2 <_realloc_r+0x25e> 8014be6: 4621 mov r1, r4 - 8014be8: f7fb fbd2 bl 8010390 + 8014be8: f7fb fbd0 bl 801038c 8014bec: e7e7 b.n 8014bbe <_realloc_r+0x26a> 8014bee: 4611 mov r1, r2 8014bf0: 4648 mov r0, r9 @@ -49789,7 +49794,7 @@ pbuf_header_failed: 8014c7e: 4622 mov r2, r4 8014c80: e7dd b.n 8014c3e <_realloc_r+0x2ea> 8014c82: 4621 mov r1, r4 - 8014c84: f7fb fb84 bl 8010390 + 8014c84: f7fb fb82 bl 801038c 8014c88: e7df b.n 8014c4a <_realloc_r+0x2f6> 8014c8a: 4637 mov r7, r6 8014c8c: e6c3 b.n 8014a16 <_realloc_r+0xc2> diff --git a/Release/Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk b/Release/Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk index 7ade331..46dcf49 100644 --- a/Release/Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk +++ b/Release/Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk @@ -19,8 +19,10 @@ C_SRCS += \ ../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c \ ../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c \ ../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c \ +../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.c \ ../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c \ -../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c +../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c \ +../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.c OBJS += \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o \ @@ -37,8 +39,10 @@ OBJS += \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o \ +./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.o \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o \ -./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o +./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o \ +./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.o C_DEPS += \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.d \ @@ -55,8 +59,10 @@ C_DEPS += \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.d \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.d \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.d \ +./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.d \ ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.d \ -./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.d +./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.d \ +./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.d # Each subdirectory must supply rules for building sources it contributes @@ -66,7 +72,7 @@ Drivers/STM32F4xx_HAL_Driver/Src/%.o Drivers/STM32F4xx_HAL_Driver/Src/%.su: ../D clean: clean-Drivers-2f-STM32F4xx_HAL_Driver-2f-Src clean-Drivers-2f-STM32F4xx_HAL_Driver-2f-Src: - -$(RM) ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_eth.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_eth.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_eth.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.su + -$(RM) ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_eth.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_eth.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_eth.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.su ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.o ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.su .PHONY: clean-Drivers-2f-STM32F4xx_HAL_Driver-2f-Src diff --git a/Release/makefile b/Release/makefile index 57c2d00..67d3d82 100644 --- a/Release/makefile +++ b/Release/makefile @@ -44,34 +44,34 @@ $(wildcard ../makefile.init) \ $(wildcard ../makefile.targets) \ -BUILD_ARTIFACT_NAME := second_try +BUILD_ARTIFACT_NAME := yau-07b BUILD_ARTIFACT_EXTENSION := elf BUILD_ARTIFACT_PREFIX := BUILD_ARTIFACT := $(BUILD_ARTIFACT_PREFIX)$(BUILD_ARTIFACT_NAME)$(if $(BUILD_ARTIFACT_EXTENSION),.$(BUILD_ARTIFACT_EXTENSION),) # Add inputs and outputs from these tool invocations to the build variables EXECUTABLES += \ -second_try.elf \ +yau-07b.elf \ MAP_FILES += \ -second_try.map \ +yau-07b.map \ SIZE_OUTPUT += \ default.size.stdout \ OBJDUMP_LIST += \ -second_try.list \ +yau-07b.list \ # All Target all: main-build # Main-build Target -main-build: second_try.elf secondary-outputs +main-build: yau-07b.elf secondary-outputs # Tool invocations -second_try.elf second_try.map: $(OBJS) $(USER_OBJS) D:\Work\CubeMX\ Projects\second_try\STM32F429ZITX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) - arm-none-eabi-gcc -o "second_try.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"D:\Work\CubeMX Projects\second_try\STM32F429ZITX_FLASH.ld" --specs=nosys.specs -Wl,-Map="second_try.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group +yau-07b.elf yau-07b.map: $(OBJS) $(USER_OBJS) D:\Work\CubeMX\ Projects\yau-07b\STM32F429ZITX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) + arm-none-eabi-gcc -o "yau-07b.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"D:\Work\CubeMX Projects\yau-07b\STM32F429ZITX_FLASH.ld" --specs=nosys.specs -Wl,-Map="yau-07b.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group @echo 'Finished building target: $@' @echo ' ' @@ -80,14 +80,14 @@ default.size.stdout: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) @echo 'Finished building: $@' @echo ' ' -second_try.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) - arm-none-eabi-objdump -h -S $(EXECUTABLES) > "second_try.list" +yau-07b.list: $(EXECUTABLES) makefile objects.list $(OPTIONAL_TOOL_DEPS) + arm-none-eabi-objdump -h -S $(EXECUTABLES) > "yau-07b.list" @echo 'Finished building: $@' @echo ' ' # Other Targets clean: - -$(RM) default.size.stdout second_try.elf second_try.list second_try.map + -$(RM) default.size.stdout yau-07b.elf yau-07b.list yau-07b.map -@echo ' ' secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) diff --git a/Release/objects.list b/Release/objects.list index b8fa5c7..87ca6e6 100644 --- a/Release/objects.list +++ b/Release/objects.list @@ -18,8 +18,10 @@ "./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.o" "./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o" "./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o" +"./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.o" "./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o" "./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o" +"./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.o" "./LWIP/App/lwip.o" "./LWIP/Target/ethernetif.o" "./Middlewares/Third_Party/LwIP/src/api/api_lib.o" diff --git a/Release/yau-07b.list b/Release/yau-07b.list new file mode 100644 index 0000000..bc3dcff --- /dev/null +++ b/Release/yau-07b.list @@ -0,0 +1,16850 @@ + +yau-07b.elf: file format elf32-littlearm + +Sections: +Idx Name Size VMA LMA File off Algn + 0 .isr_vector 000001ac 08000000 08000000 00010000 2**0 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 1 .text 0000a350 080001b0 080001b0 000101b0 2**4 + CONTENTS, ALLOC, LOAD, READONLY, CODE + 2 .rodata 0000228c 0800a500 0800a500 0001a500 2**2 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 3 .ARM.extab 00000000 0800c78c 0800c78c 0002008c 2**0 + CONTENTS + 4 .ARM 00000008 0800c78c 0800c78c 0001c78c 2**2 + CONTENTS, ALLOC, LOAD, READONLY, DATA + 5 .preinit_array 00000000 0800c794 0800c794 0002008c 2**0 + CONTENTS, ALLOC, LOAD, DATA + 6 .init_array 00000004 0800c794 0800c794 0001c794 2**2 + CONTENTS, ALLOC, LOAD, DATA + 7 .fini_array 00000004 0800c798 0800c798 0001c798 2**2 + CONTENTS, ALLOC, LOAD, DATA + 8 .data 0000008c 20000000 0800c79c 00020000 2**2 + CONTENTS, ALLOC, LOAD, DATA + 9 .ccmram 00000000 10000000 10000000 0002008c 2**0 + CONTENTS + 10 .bss 000083c8 2000008c 2000008c 0002008c 2**2 + ALLOC + 11 ._user_heap_stack 00000604 20008454 20008454 0002008c 2**0 + ALLOC + 12 .ARM.attributes 00000030 00000000 00000000 0002008c 2**0 + CONTENTS, READONLY + 13 .comment 00000050 00000000 00000000 000200bc 2**0 + CONTENTS, READONLY + 14 .debug_frame 00000c40 00000000 00000000 0002010c 2**2 + CONTENTS, READONLY, DEBUGGING, OCTETS + 15 .stab 000000cc 00000000 00000000 00020d4c 2**2 + CONTENTS, READONLY, DEBUGGING + 16 .stabstr 000001b9 00000000 00000000 00020e18 2**0 + CONTENTS, READONLY, DEBUGGING + +Disassembly of section .text: + +080001b0 <__do_global_dtors_aux>: + 80001b0: b510 push {r4, lr} + 80001b2: 4c05 ldr r4, [pc, #20] ; (80001c8 <__do_global_dtors_aux+0x18>) + 80001b4: 7823 ldrb r3, [r4, #0] + 80001b6: b933 cbnz r3, 80001c6 <__do_global_dtors_aux+0x16> + 80001b8: 4b04 ldr r3, [pc, #16] ; (80001cc <__do_global_dtors_aux+0x1c>) + 80001ba: b113 cbz r3, 80001c2 <__do_global_dtors_aux+0x12> + 80001bc: 4804 ldr r0, [pc, #16] ; (80001d0 <__do_global_dtors_aux+0x20>) + 80001be: f3af 8000 nop.w + 80001c2: 2301 movs r3, #1 + 80001c4: 7023 strb r3, [r4, #0] + 80001c6: bd10 pop {r4, pc} + 80001c8: 2000008c .word 0x2000008c + 80001cc: 00000000 .word 0x00000000 + 80001d0: 0800a4e8 .word 0x0800a4e8 + +080001d4 : + 80001d4: b508 push {r3, lr} + 80001d6: 4b03 ldr r3, [pc, #12] ; (80001e4 ) + 80001d8: b11b cbz r3, 80001e2 + 80001da: 4903 ldr r1, [pc, #12] ; (80001e8 ) + 80001dc: 4803 ldr r0, [pc, #12] ; (80001ec ) + 80001de: f3af 8000 nop.w + 80001e2: bd08 pop {r3, pc} + 80001e4: 00000000 .word 0x00000000 + 80001e8: 20000090 .word 0x20000090 + 80001ec: 0800a4e8 .word 0x0800a4e8 + +080001f0 : + 80001f0: f001 01ff and.w r1, r1, #255 ; 0xff + 80001f4: 2a10 cmp r2, #16 + 80001f6: db2b blt.n 8000250 + 80001f8: f010 0f07 tst.w r0, #7 + 80001fc: d008 beq.n 8000210 + 80001fe: f810 3b01 ldrb.w r3, [r0], #1 + 8000202: 3a01 subs r2, #1 + 8000204: 428b cmp r3, r1 + 8000206: d02d beq.n 8000264 + 8000208: f010 0f07 tst.w r0, #7 + 800020c: b342 cbz r2, 8000260 + 800020e: d1f6 bne.n 80001fe + 8000210: b4f0 push {r4, r5, r6, r7} + 8000212: ea41 2101 orr.w r1, r1, r1, lsl #8 + 8000216: ea41 4101 orr.w r1, r1, r1, lsl #16 + 800021a: f022 0407 bic.w r4, r2, #7 + 800021e: f07f 0700 mvns.w r7, #0 + 8000222: 2300 movs r3, #0 + 8000224: e8f0 5602 ldrd r5, r6, [r0], #8 + 8000228: 3c08 subs r4, #8 + 800022a: ea85 0501 eor.w r5, r5, r1 + 800022e: ea86 0601 eor.w r6, r6, r1 + 8000232: fa85 f547 uadd8 r5, r5, r7 + 8000236: faa3 f587 sel r5, r3, r7 + 800023a: fa86 f647 uadd8 r6, r6, r7 + 800023e: faa5 f687 sel r6, r5, r7 + 8000242: b98e cbnz r6, 8000268 + 8000244: d1ee bne.n 8000224 + 8000246: bcf0 pop {r4, r5, r6, r7} + 8000248: f001 01ff and.w r1, r1, #255 ; 0xff + 800024c: f002 0207 and.w r2, r2, #7 + 8000250: b132 cbz r2, 8000260 + 8000252: f810 3b01 ldrb.w r3, [r0], #1 + 8000256: 3a01 subs r2, #1 + 8000258: ea83 0301 eor.w r3, r3, r1 + 800025c: b113 cbz r3, 8000264 + 800025e: d1f8 bne.n 8000252 + 8000260: 2000 movs r0, #0 + 8000262: 4770 bx lr + 8000264: 3801 subs r0, #1 + 8000266: 4770 bx lr + 8000268: 2d00 cmp r5, #0 + 800026a: bf06 itte eq + 800026c: 4635 moveq r5, r6 + 800026e: 3803 subeq r0, #3 + 8000270: 3807 subne r0, #7 + 8000272: f015 0f01 tst.w r5, #1 + 8000276: d107 bne.n 8000288 + 8000278: 3001 adds r0, #1 + 800027a: f415 7f80 tst.w r5, #256 ; 0x100 + 800027e: bf02 ittt eq + 8000280: 3001 addeq r0, #1 + 8000282: f415 3fc0 tsteq.w r5, #98304 ; 0x18000 + 8000286: 3001 addeq r0, #1 + 8000288: bcf0 pop {r4, r5, r6, r7} + 800028a: 3801 subs r0, #1 + 800028c: 4770 bx lr + 800028e: bf00 nop + +08000290 <__aeabi_uldivmod>: + 8000290: b953 cbnz r3, 80002a8 <__aeabi_uldivmod+0x18> + 8000292: b94a cbnz r2, 80002a8 <__aeabi_uldivmod+0x18> + 8000294: 2900 cmp r1, #0 + 8000296: bf08 it eq + 8000298: 2800 cmpeq r0, #0 + 800029a: bf1c itt ne + 800029c: f04f 31ff movne.w r1, #4294967295 + 80002a0: f04f 30ff movne.w r0, #4294967295 + 80002a4: f000 b974 b.w 8000590 <__aeabi_idiv0> + 80002a8: f1ad 0c08 sub.w ip, sp, #8 + 80002ac: e96d ce04 strd ip, lr, [sp, #-16]! + 80002b0: f000 f806 bl 80002c0 <__udivmoddi4> + 80002b4: f8dd e004 ldr.w lr, [sp, #4] + 80002b8: e9dd 2302 ldrd r2, r3, [sp, #8] + 80002bc: b004 add sp, #16 + 80002be: 4770 bx lr + +080002c0 <__udivmoddi4>: + 80002c0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80002c4: 9d08 ldr r5, [sp, #32] + 80002c6: 4604 mov r4, r0 + 80002c8: 468e mov lr, r1 + 80002ca: 2b00 cmp r3, #0 + 80002cc: d14d bne.n 800036a <__udivmoddi4+0xaa> + 80002ce: 428a cmp r2, r1 + 80002d0: 4694 mov ip, r2 + 80002d2: d969 bls.n 80003a8 <__udivmoddi4+0xe8> + 80002d4: fab2 f282 clz r2, r2 + 80002d8: b152 cbz r2, 80002f0 <__udivmoddi4+0x30> + 80002da: fa01 f302 lsl.w r3, r1, r2 + 80002de: f1c2 0120 rsb r1, r2, #32 + 80002e2: fa20 f101 lsr.w r1, r0, r1 + 80002e6: fa0c fc02 lsl.w ip, ip, r2 + 80002ea: ea41 0e03 orr.w lr, r1, r3 + 80002ee: 4094 lsls r4, r2 + 80002f0: ea4f 481c mov.w r8, ip, lsr #16 + 80002f4: 0c21 lsrs r1, r4, #16 + 80002f6: fbbe f6f8 udiv r6, lr, r8 + 80002fa: fa1f f78c uxth.w r7, ip + 80002fe: fb08 e316 mls r3, r8, r6, lr + 8000302: ea41 4303 orr.w r3, r1, r3, lsl #16 + 8000306: fb06 f107 mul.w r1, r6, r7 + 800030a: 4299 cmp r1, r3 + 800030c: d90a bls.n 8000324 <__udivmoddi4+0x64> + 800030e: eb1c 0303 adds.w r3, ip, r3 + 8000312: f106 30ff add.w r0, r6, #4294967295 + 8000316: f080 811f bcs.w 8000558 <__udivmoddi4+0x298> + 800031a: 4299 cmp r1, r3 + 800031c: f240 811c bls.w 8000558 <__udivmoddi4+0x298> + 8000320: 3e02 subs r6, #2 + 8000322: 4463 add r3, ip + 8000324: 1a5b subs r3, r3, r1 + 8000326: b2a4 uxth r4, r4 + 8000328: fbb3 f0f8 udiv r0, r3, r8 + 800032c: fb08 3310 mls r3, r8, r0, r3 + 8000330: ea44 4403 orr.w r4, r4, r3, lsl #16 + 8000334: fb00 f707 mul.w r7, r0, r7 + 8000338: 42a7 cmp r7, r4 + 800033a: d90a bls.n 8000352 <__udivmoddi4+0x92> + 800033c: eb1c 0404 adds.w r4, ip, r4 + 8000340: f100 33ff add.w r3, r0, #4294967295 + 8000344: f080 810a bcs.w 800055c <__udivmoddi4+0x29c> + 8000348: 42a7 cmp r7, r4 + 800034a: f240 8107 bls.w 800055c <__udivmoddi4+0x29c> + 800034e: 4464 add r4, ip + 8000350: 3802 subs r0, #2 + 8000352: ea40 4006 orr.w r0, r0, r6, lsl #16 + 8000356: 1be4 subs r4, r4, r7 + 8000358: 2600 movs r6, #0 + 800035a: b11d cbz r5, 8000364 <__udivmoddi4+0xa4> + 800035c: 40d4 lsrs r4, r2 + 800035e: 2300 movs r3, #0 + 8000360: e9c5 4300 strd r4, r3, [r5] + 8000364: 4631 mov r1, r6 + 8000366: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800036a: 428b cmp r3, r1 + 800036c: d909 bls.n 8000382 <__udivmoddi4+0xc2> + 800036e: 2d00 cmp r5, #0 + 8000370: f000 80ef beq.w 8000552 <__udivmoddi4+0x292> + 8000374: 2600 movs r6, #0 + 8000376: e9c5 0100 strd r0, r1, [r5] + 800037a: 4630 mov r0, r6 + 800037c: 4631 mov r1, r6 + 800037e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8000382: fab3 f683 clz r6, r3 + 8000386: 2e00 cmp r6, #0 + 8000388: d14a bne.n 8000420 <__udivmoddi4+0x160> + 800038a: 428b cmp r3, r1 + 800038c: d302 bcc.n 8000394 <__udivmoddi4+0xd4> + 800038e: 4282 cmp r2, r0 + 8000390: f200 80f9 bhi.w 8000586 <__udivmoddi4+0x2c6> + 8000394: 1a84 subs r4, r0, r2 + 8000396: eb61 0303 sbc.w r3, r1, r3 + 800039a: 2001 movs r0, #1 + 800039c: 469e mov lr, r3 + 800039e: 2d00 cmp r5, #0 + 80003a0: d0e0 beq.n 8000364 <__udivmoddi4+0xa4> + 80003a2: e9c5 4e00 strd r4, lr, [r5] + 80003a6: e7dd b.n 8000364 <__udivmoddi4+0xa4> + 80003a8: b902 cbnz r2, 80003ac <__udivmoddi4+0xec> + 80003aa: deff udf #255 ; 0xff + 80003ac: fab2 f282 clz r2, r2 + 80003b0: 2a00 cmp r2, #0 + 80003b2: f040 8092 bne.w 80004da <__udivmoddi4+0x21a> + 80003b6: eba1 010c sub.w r1, r1, ip + 80003ba: ea4f 471c mov.w r7, ip, lsr #16 + 80003be: fa1f fe8c uxth.w lr, ip + 80003c2: 2601 movs r6, #1 + 80003c4: 0c20 lsrs r0, r4, #16 + 80003c6: fbb1 f3f7 udiv r3, r1, r7 + 80003ca: fb07 1113 mls r1, r7, r3, r1 + 80003ce: ea40 4101 orr.w r1, r0, r1, lsl #16 + 80003d2: fb0e f003 mul.w r0, lr, r3 + 80003d6: 4288 cmp r0, r1 + 80003d8: d908 bls.n 80003ec <__udivmoddi4+0x12c> + 80003da: eb1c 0101 adds.w r1, ip, r1 + 80003de: f103 38ff add.w r8, r3, #4294967295 + 80003e2: d202 bcs.n 80003ea <__udivmoddi4+0x12a> + 80003e4: 4288 cmp r0, r1 + 80003e6: f200 80cb bhi.w 8000580 <__udivmoddi4+0x2c0> + 80003ea: 4643 mov r3, r8 + 80003ec: 1a09 subs r1, r1, r0 + 80003ee: b2a4 uxth r4, r4 + 80003f0: fbb1 f0f7 udiv r0, r1, r7 + 80003f4: fb07 1110 mls r1, r7, r0, r1 + 80003f8: ea44 4401 orr.w r4, r4, r1, lsl #16 + 80003fc: fb0e fe00 mul.w lr, lr, r0 + 8000400: 45a6 cmp lr, r4 + 8000402: d908 bls.n 8000416 <__udivmoddi4+0x156> + 8000404: eb1c 0404 adds.w r4, ip, r4 + 8000408: f100 31ff add.w r1, r0, #4294967295 + 800040c: d202 bcs.n 8000414 <__udivmoddi4+0x154> + 800040e: 45a6 cmp lr, r4 + 8000410: f200 80bb bhi.w 800058a <__udivmoddi4+0x2ca> + 8000414: 4608 mov r0, r1 + 8000416: eba4 040e sub.w r4, r4, lr + 800041a: ea40 4003 orr.w r0, r0, r3, lsl #16 + 800041e: e79c b.n 800035a <__udivmoddi4+0x9a> + 8000420: f1c6 0720 rsb r7, r6, #32 + 8000424: 40b3 lsls r3, r6 + 8000426: fa22 fc07 lsr.w ip, r2, r7 + 800042a: ea4c 0c03 orr.w ip, ip, r3 + 800042e: fa20 f407 lsr.w r4, r0, r7 + 8000432: fa01 f306 lsl.w r3, r1, r6 + 8000436: 431c orrs r4, r3 + 8000438: 40f9 lsrs r1, r7 + 800043a: ea4f 491c mov.w r9, ip, lsr #16 + 800043e: fa00 f306 lsl.w r3, r0, r6 + 8000442: fbb1 f8f9 udiv r8, r1, r9 + 8000446: 0c20 lsrs r0, r4, #16 + 8000448: fa1f fe8c uxth.w lr, ip + 800044c: fb09 1118 mls r1, r9, r8, r1 + 8000450: ea40 4101 orr.w r1, r0, r1, lsl #16 + 8000454: fb08 f00e mul.w r0, r8, lr + 8000458: 4288 cmp r0, r1 + 800045a: fa02 f206 lsl.w r2, r2, r6 + 800045e: d90b bls.n 8000478 <__udivmoddi4+0x1b8> + 8000460: eb1c 0101 adds.w r1, ip, r1 + 8000464: f108 3aff add.w sl, r8, #4294967295 + 8000468: f080 8088 bcs.w 800057c <__udivmoddi4+0x2bc> + 800046c: 4288 cmp r0, r1 + 800046e: f240 8085 bls.w 800057c <__udivmoddi4+0x2bc> + 8000472: f1a8 0802 sub.w r8, r8, #2 + 8000476: 4461 add r1, ip + 8000478: 1a09 subs r1, r1, r0 + 800047a: b2a4 uxth r4, r4 + 800047c: fbb1 f0f9 udiv r0, r1, r9 + 8000480: fb09 1110 mls r1, r9, r0, r1 + 8000484: ea44 4101 orr.w r1, r4, r1, lsl #16 + 8000488: fb00 fe0e mul.w lr, r0, lr + 800048c: 458e cmp lr, r1 + 800048e: d908 bls.n 80004a2 <__udivmoddi4+0x1e2> + 8000490: eb1c 0101 adds.w r1, ip, r1 + 8000494: f100 34ff add.w r4, r0, #4294967295 + 8000498: d26c bcs.n 8000574 <__udivmoddi4+0x2b4> + 800049a: 458e cmp lr, r1 + 800049c: d96a bls.n 8000574 <__udivmoddi4+0x2b4> + 800049e: 3802 subs r0, #2 + 80004a0: 4461 add r1, ip + 80004a2: ea40 4008 orr.w r0, r0, r8, lsl #16 + 80004a6: fba0 9402 umull r9, r4, r0, r2 + 80004aa: eba1 010e sub.w r1, r1, lr + 80004ae: 42a1 cmp r1, r4 + 80004b0: 46c8 mov r8, r9 + 80004b2: 46a6 mov lr, r4 + 80004b4: d356 bcc.n 8000564 <__udivmoddi4+0x2a4> + 80004b6: d053 beq.n 8000560 <__udivmoddi4+0x2a0> + 80004b8: b15d cbz r5, 80004d2 <__udivmoddi4+0x212> + 80004ba: ebb3 0208 subs.w r2, r3, r8 + 80004be: eb61 010e sbc.w r1, r1, lr + 80004c2: fa01 f707 lsl.w r7, r1, r7 + 80004c6: fa22 f306 lsr.w r3, r2, r6 + 80004ca: 40f1 lsrs r1, r6 + 80004cc: 431f orrs r7, r3 + 80004ce: e9c5 7100 strd r7, r1, [r5] + 80004d2: 2600 movs r6, #0 + 80004d4: 4631 mov r1, r6 + 80004d6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 80004da: f1c2 0320 rsb r3, r2, #32 + 80004de: 40d8 lsrs r0, r3 + 80004e0: fa0c fc02 lsl.w ip, ip, r2 + 80004e4: fa21 f303 lsr.w r3, r1, r3 + 80004e8: 4091 lsls r1, r2 + 80004ea: 4301 orrs r1, r0 + 80004ec: ea4f 471c mov.w r7, ip, lsr #16 + 80004f0: fa1f fe8c uxth.w lr, ip + 80004f4: fbb3 f0f7 udiv r0, r3, r7 + 80004f8: fb07 3610 mls r6, r7, r0, r3 + 80004fc: 0c0b lsrs r3, r1, #16 + 80004fe: ea43 4306 orr.w r3, r3, r6, lsl #16 + 8000502: fb00 f60e mul.w r6, r0, lr + 8000506: 429e cmp r6, r3 + 8000508: fa04 f402 lsl.w r4, r4, r2 + 800050c: d908 bls.n 8000520 <__udivmoddi4+0x260> + 800050e: eb1c 0303 adds.w r3, ip, r3 + 8000512: f100 38ff add.w r8, r0, #4294967295 + 8000516: d22f bcs.n 8000578 <__udivmoddi4+0x2b8> + 8000518: 429e cmp r6, r3 + 800051a: d92d bls.n 8000578 <__udivmoddi4+0x2b8> + 800051c: 3802 subs r0, #2 + 800051e: 4463 add r3, ip + 8000520: 1b9b subs r3, r3, r6 + 8000522: b289 uxth r1, r1 + 8000524: fbb3 f6f7 udiv r6, r3, r7 + 8000528: fb07 3316 mls r3, r7, r6, r3 + 800052c: ea41 4103 orr.w r1, r1, r3, lsl #16 + 8000530: fb06 f30e mul.w r3, r6, lr + 8000534: 428b cmp r3, r1 + 8000536: d908 bls.n 800054a <__udivmoddi4+0x28a> + 8000538: eb1c 0101 adds.w r1, ip, r1 + 800053c: f106 38ff add.w r8, r6, #4294967295 + 8000540: d216 bcs.n 8000570 <__udivmoddi4+0x2b0> + 8000542: 428b cmp r3, r1 + 8000544: d914 bls.n 8000570 <__udivmoddi4+0x2b0> + 8000546: 3e02 subs r6, #2 + 8000548: 4461 add r1, ip + 800054a: 1ac9 subs r1, r1, r3 + 800054c: ea46 4600 orr.w r6, r6, r0, lsl #16 + 8000550: e738 b.n 80003c4 <__udivmoddi4+0x104> + 8000552: 462e mov r6, r5 + 8000554: 4628 mov r0, r5 + 8000556: e705 b.n 8000364 <__udivmoddi4+0xa4> + 8000558: 4606 mov r6, r0 + 800055a: e6e3 b.n 8000324 <__udivmoddi4+0x64> + 800055c: 4618 mov r0, r3 + 800055e: e6f8 b.n 8000352 <__udivmoddi4+0x92> + 8000560: 454b cmp r3, r9 + 8000562: d2a9 bcs.n 80004b8 <__udivmoddi4+0x1f8> + 8000564: ebb9 0802 subs.w r8, r9, r2 + 8000568: eb64 0e0c sbc.w lr, r4, ip + 800056c: 3801 subs r0, #1 + 800056e: e7a3 b.n 80004b8 <__udivmoddi4+0x1f8> + 8000570: 4646 mov r6, r8 + 8000572: e7ea b.n 800054a <__udivmoddi4+0x28a> + 8000574: 4620 mov r0, r4 + 8000576: e794 b.n 80004a2 <__udivmoddi4+0x1e2> + 8000578: 4640 mov r0, r8 + 800057a: e7d1 b.n 8000520 <__udivmoddi4+0x260> + 800057c: 46d0 mov r8, sl + 800057e: e77b b.n 8000478 <__udivmoddi4+0x1b8> + 8000580: 3b02 subs r3, #2 + 8000582: 4461 add r1, ip + 8000584: e732 b.n 80003ec <__udivmoddi4+0x12c> + 8000586: 4630 mov r0, r6 + 8000588: e709 b.n 800039e <__udivmoddi4+0xde> + 800058a: 4464 add r4, ip + 800058c: 3802 subs r0, #2 + 800058e: e742 b.n 8000416 <__udivmoddi4+0x156> + +08000590 <__aeabi_idiv0>: + 8000590: 4770 bx lr + 8000592: bf00 nop + +08000594 : + 8000594: b510 push {r4, lr} + 8000596: b094 sub sp, #80 ; 0x50 + 8000598: 2214 movs r2, #20 + 800059a: 2100 movs r1, #0 + 800059c: a809 add r0, sp, #36 ; 0x24 + 800059e: f008 fefb bl 8009398 + 80005a2: 2214 movs r2, #20 + 80005a4: 2100 movs r1, #0 + 80005a6: a803 add r0, sp, #12 + 80005a8: f008 fef6 bl 8009398 + 80005ac: 4b20 ldr r3, [pc, #128] ; (8000630 ) + 80005ae: 2200 movs r2, #0 + 80005b0: 9201 str r2, [sp, #4] + 80005b2: 6c19 ldr r1, [r3, #64] ; 0x40 + 80005b4: f041 5180 orr.w r1, r1, #268435456 ; 0x10000000 + 80005b8: 6419 str r1, [r3, #64] ; 0x40 + 80005ba: 6c1b ldr r3, [r3, #64] ; 0x40 + 80005bc: 491d ldr r1, [pc, #116] ; (8000634 ) + 80005be: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80005c2: 9301 str r3, [sp, #4] + 80005c4: 9b01 ldr r3, [sp, #4] + 80005c6: 9202 str r2, [sp, #8] + 80005c8: 680b ldr r3, [r1, #0] + 80005ca: f423 4340 bic.w r3, r3, #49152 ; 0xc000 + 80005ce: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 80005d2: 600b str r3, [r1, #0] + 80005d4: 680b ldr r3, [r1, #0] + 80005d6: f403 4340 and.w r3, r3, #49152 ; 0xc000 + 80005da: 9302 str r3, [sp, #8] + 80005dc: 9b02 ldr r3, [sp, #8] + 80005de: 2101 movs r1, #1 + 80005e0: 2310 movs r3, #16 + 80005e2: 2008 movs r0, #8 + 80005e4: e9cd 130b strd r1, r3, [sp, #44] ; 0x2c + 80005e8: 2364 movs r3, #100 ; 0x64 + 80005ea: 2402 movs r4, #2 + 80005ec: e9cd 0310 strd r0, r3, [sp, #64] ; 0x40 + 80005f0: 2304 movs r3, #4 + 80005f2: a808 add r0, sp, #32 + 80005f4: e9cd 420e strd r4, r2, [sp, #56] ; 0x38 + 80005f8: 9408 str r4, [sp, #32] + 80005fa: 9412 str r4, [sp, #72] ; 0x48 + 80005fc: 9313 str r3, [sp, #76] ; 0x4c + 80005fe: f001 f8cd bl 800179c + 8000602: b108 cbz r0, 8000608 + 8000604: b672 cpsid i + 8000606: e7fe b.n 8000606 + 8000608: 230f movs r3, #15 + 800060a: e9cd 3403 strd r3, r4, [sp, #12] + 800060e: 9005 str r0, [sp, #20] + 8000610: f44f 52a0 mov.w r2, #5120 ; 0x1400 + 8000614: f44f 5380 mov.w r3, #4096 ; 0x1000 + 8000618: 2103 movs r1, #3 + 800061a: a803 add r0, sp, #12 + 800061c: e9cd 2306 strd r2, r3, [sp, #24] + 8000620: f001 fa9a bl 8001b58 + 8000624: b108 cbz r0, 800062a + 8000626: b672 cpsid i + 8000628: e7fe b.n 8000628 + 800062a: b014 add sp, #80 ; 0x50 + 800062c: bd10 pop {r4, pc} + 800062e: bf00 nop + 8000630: 40023800 .word 0x40023800 + 8000634: 40007000 .word 0x40007000 + +08000638
: + 8000638: b500 push {lr} + 800063a: b097 sub sp, #92 ; 0x5c + 800063c: f000 fa2a bl 8000a94 + 8000640: f7ff ffa8 bl 8000594 + 8000644: 2214 movs r2, #20 + 8000646: 2100 movs r1, #0 + 8000648: a80f add r0, sp, #60 ; 0x3c + 800064a: f008 fea5 bl 8009398 + 800064e: 2400 movs r4, #0 + 8000650: 4b46 ldr r3, [pc, #280] ; (800076c ) + 8000652: 9401 str r4, [sp, #4] + 8000654: 6b1a ldr r2, [r3, #48] ; 0x30 + 8000656: 4846 ldr r0, [pc, #280] ; (8000770 ) + 8000658: f042 0210 orr.w r2, r2, #16 + 800065c: 631a str r2, [r3, #48] ; 0x30 + 800065e: 6b1a ldr r2, [r3, #48] ; 0x30 + 8000660: f002 0210 and.w r2, r2, #16 + 8000664: 9201 str r2, [sp, #4] + 8000666: 9a01 ldr r2, [sp, #4] + 8000668: 9402 str r4, [sp, #8] + 800066a: 6b1a ldr r2, [r3, #48] ; 0x30 + 800066c: f042 0204 orr.w r2, r2, #4 + 8000670: 631a str r2, [r3, #48] ; 0x30 + 8000672: 6b1a ldr r2, [r3, #48] ; 0x30 + 8000674: f002 0204 and.w r2, r2, #4 + 8000678: 9202 str r2, [sp, #8] + 800067a: 9a02 ldr r2, [sp, #8] + 800067c: 9403 str r4, [sp, #12] + 800067e: 6b1a ldr r2, [r3, #48] ; 0x30 + 8000680: f042 0220 orr.w r2, r2, #32 + 8000684: 631a str r2, [r3, #48] ; 0x30 + 8000686: 6b1a ldr r2, [r3, #48] ; 0x30 + 8000688: f002 0220 and.w r2, r2, #32 + 800068c: 9203 str r2, [sp, #12] + 800068e: 9a03 ldr r2, [sp, #12] + 8000690: 9404 str r4, [sp, #16] + 8000692: 6b1a ldr r2, [r3, #48] ; 0x30 + 8000694: f042 0201 orr.w r2, r2, #1 + 8000698: 631a str r2, [r3, #48] ; 0x30 + 800069a: 6b1a ldr r2, [r3, #48] ; 0x30 + 800069c: f002 0201 and.w r2, r2, #1 + 80006a0: 9204 str r2, [sp, #16] + 80006a2: 9a04 ldr r2, [sp, #16] + 80006a4: 9405 str r4, [sp, #20] + 80006a6: 6b1a ldr r2, [r3, #48] ; 0x30 + 80006a8: f042 0240 orr.w r2, r2, #64 ; 0x40 + 80006ac: 631a str r2, [r3, #48] ; 0x30 + 80006ae: 6b1a ldr r2, [r3, #48] ; 0x30 + 80006b0: f002 0240 and.w r2, r2, #64 ; 0x40 + 80006b4: 9205 str r2, [sp, #20] + 80006b6: 9a05 ldr r2, [sp, #20] + 80006b8: 9406 str r4, [sp, #24] + 80006ba: 6b1a ldr r2, [r3, #48] ; 0x30 + 80006bc: f042 0202 orr.w r2, r2, #2 + 80006c0: 631a str r2, [r3, #48] ; 0x30 + 80006c2: 6b1a ldr r2, [r3, #48] ; 0x30 + 80006c4: f002 0202 and.w r2, r2, #2 + 80006c8: 9206 str r2, [sp, #24] + 80006ca: 9a06 ldr r2, [sp, #24] + 80006cc: 9407 str r4, [sp, #28] + 80006ce: 6b1a ldr r2, [r3, #48] ; 0x30 + 80006d0: f042 0208 orr.w r2, r2, #8 + 80006d4: 631a str r2, [r3, #48] ; 0x30 + 80006d6: 6b1b ldr r3, [r3, #48] ; 0x30 + 80006d8: f003 0308 and.w r3, r3, #8 + 80006dc: 4622 mov r2, r4 + 80006de: 9307 str r3, [sp, #28] + 80006e0: f44f 4180 mov.w r1, #16384 ; 0x4000 + 80006e4: 9b07 ldr r3, [sp, #28] + 80006e6: f44f 4580 mov.w r5, #16384 ; 0x4000 + 80006ea: f001 f851 bl 8001790 + 80006ee: 2301 movs r3, #1 + 80006f0: 481f ldr r0, [pc, #124] ; (8000770 ) + 80006f2: a90f add r1, sp, #60 ; 0x3c + 80006f4: e9cd 530f strd r5, r3, [sp, #60] ; 0x3c + 80006f8: e9cd 4411 strd r4, r4, [sp, #68] ; 0x44 + 80006fc: f000 ff62 bl 80015c4 + 8000700: f001 fb90 bl 8001e24 + 8000704: 481b ldr r0, [pc, #108] ; (8000774 ) + 8000706: 940e str r4, [sp, #56] ; 0x38 + 8000708: f04f 4320 mov.w r3, #2684354560 ; 0xa0000000 + 800070c: 6003 str r3, [r0, #0] + 800070e: f503 7382 add.w r3, r3, #260 ; 0x104 + 8000712: 2210 movs r2, #16 + 8000714: 2111 movs r1, #17 + 8000716: e9c0 3401 strd r3, r4, [r0, #4] + 800071a: f44f 5380 mov.w r3, #4096 ; 0x1000 + 800071e: e9c0 2405 strd r2, r4, [r0, #20] + 8000722: e9c0 340a strd r3, r4, [r0, #40] ; 0x28 + 8000726: e9cd 2113 strd r2, r1, [sp, #76] ; 0x4c + 800072a: 230f movs r3, #15 + 800072c: e9c0 4403 strd r4, r4, [r0, #12] + 8000730: e9c0 4407 strd r4, r4, [r0, #28] + 8000734: e9c0 540c strd r5, r4, [r0, #48] ; 0x30 + 8000738: e9c0 440e strd r4, r4, [r0, #56] ; 0x38 + 800073c: 9415 str r4, [sp, #84] ; 0x54 + 800073e: 6244 str r4, [r0, #36] ; 0x24 + 8000740: 6444 str r4, [r0, #68] ; 0x44 + 8000742: 920c str r2, [sp, #48] ; 0x30 + 8000744: 24ff movs r4, #255 ; 0xff + 8000746: 910d str r1, [sp, #52] ; 0x34 + 8000748: aa0f add r2, sp, #60 ; 0x3c + 800074a: a908 add r1, sp, #32 + 800074c: e9cd 3308 strd r3, r3, [sp, #32] + 8000750: e9cd 430a strd r4, r3, [sp, #40] ; 0x28 + 8000754: e9cd 330f strd r3, r3, [sp, #60] ; 0x3c + 8000758: e9cd 4311 strd r4, r3, [sp, #68] ; 0x44 + 800075c: f001 fa9e bl 8001c9c + 8000760: b108 cbz r0, 8000766 + 8000762: b672 cpsid i + 8000764: e7fe b.n 8000764 + 8000766: f001 fba7 bl 8001eb8 + 800076a: e7fc b.n 8000766 + 800076c: 40023800 .word 0x40023800 + 8000770: 40020800 .word 0x40020800 + 8000774: 200000a8 .word 0x200000a8 + +08000778 : + 8000778: b672 cpsid i + 800077a: e7fe b.n 800077a + +0800077c : + 800077c: b082 sub sp, #8 + 800077e: 4b0c ldr r3, [pc, #48] ; (80007b0 ) + 8000780: 2100 movs r1, #0 + 8000782: 9100 str r1, [sp, #0] + 8000784: 6c5a ldr r2, [r3, #68] ; 0x44 + 8000786: f442 4280 orr.w r2, r2, #16384 ; 0x4000 + 800078a: 645a str r2, [r3, #68] ; 0x44 + 800078c: 6c5a ldr r2, [r3, #68] ; 0x44 + 800078e: f402 4280 and.w r2, r2, #16384 ; 0x4000 + 8000792: 9200 str r2, [sp, #0] + 8000794: 9a00 ldr r2, [sp, #0] + 8000796: 9101 str r1, [sp, #4] + 8000798: 6c1a ldr r2, [r3, #64] ; 0x40 + 800079a: f042 5280 orr.w r2, r2, #268435456 ; 0x10000000 + 800079e: 641a str r2, [r3, #64] ; 0x40 + 80007a0: 6c1b ldr r3, [r3, #64] ; 0x40 + 80007a2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80007a6: 9301 str r3, [sp, #4] + 80007a8: 9b01 ldr r3, [sp, #4] + 80007aa: b002 add sp, #8 + 80007ac: 4770 bx lr + 80007ae: bf00 nop + 80007b0: 40023800 .word 0x40023800 + +080007b4 : + 80007b4: b5f0 push {r4, r5, r6, r7, lr} + 80007b6: b087 sub sp, #28 + 80007b8: 2300 movs r3, #0 + 80007ba: 9303 str r3, [sp, #12] + 80007bc: 4b1f ldr r3, [pc, #124] ; (800083c ) + 80007be: 681c ldr r4, [r3, #0] + 80007c0: 2c00 cmp r4, #0 + 80007c2: d139 bne.n 8000838 + 80007c4: 2201 movs r2, #1 + 80007c6: 601a str r2, [r3, #0] + 80007c8: 4b1d ldr r3, [pc, #116] ; (8000840 ) + 80007ca: 9400 str r4, [sp, #0] + 80007cc: 6b9a ldr r2, [r3, #56] ; 0x38 + 80007ce: 481d ldr r0, [pc, #116] ; (8000844 ) + 80007d0: f042 0201 orr.w r2, r2, #1 + 80007d4: 639a str r2, [r3, #56] ; 0x38 + 80007d6: 6b9b ldr r3, [r3, #56] ; 0x38 + 80007d8: f003 0301 and.w r3, r3, #1 + 80007dc: 9300 str r3, [sp, #0] + 80007de: 2702 movs r7, #2 + 80007e0: 2603 movs r6, #3 + 80007e2: 250c movs r5, #12 + 80007e4: 9b00 ldr r3, [sp, #0] + 80007e6: a901 add r1, sp, #4 + 80007e8: f64f 73f8 movw r3, #65528 ; 0xfff8 + 80007ec: e9cd 3701 strd r3, r7, [sp, #4] + 80007f0: e9cd 6504 strd r6, r5, [sp, #16] + 80007f4: f000 fee6 bl 80015c4 + 80007f8: f24f 033f movw r3, #61503 ; 0xf03f + 80007fc: 4812 ldr r0, [pc, #72] ; (8000848 ) + 80007fe: 9505 str r5, [sp, #20] + 8000800: a901 add r1, sp, #4 + 8000802: e9cd 3701 strd r3, r7, [sp, #4] + 8000806: e9cd 4603 strd r4, r6, [sp, #12] + 800080a: f000 fedb bl 80015c4 + 800080e: 233f movs r3, #63 ; 0x3f + 8000810: 480e ldr r0, [pc, #56] ; (800084c ) + 8000812: 9505 str r5, [sp, #20] + 8000814: a901 add r1, sp, #4 + 8000816: e9cd 3701 strd r3, r7, [sp, #4] + 800081a: e9cd 4603 strd r4, r6, [sp, #12] + 800081e: f000 fed1 bl 80015c4 + 8000822: f64f 73b3 movw r3, #65459 ; 0xffb3 + 8000826: 480a ldr r0, [pc, #40] ; (8000850 ) + 8000828: 9505 str r5, [sp, #20] + 800082a: a901 add r1, sp, #4 + 800082c: e9cd 3701 strd r3, r7, [sp, #4] + 8000830: e9cd 4603 strd r4, r6, [sp, #12] + 8000834: f000 fec6 bl 80015c4 + 8000838: b007 add sp, #28 + 800083a: bdf0 pop {r4, r5, r6, r7, pc} + 800083c: 200000f8 .word 0x200000f8 + 8000840: 40023800 .word 0x40023800 + 8000844: 40021000 .word 0x40021000 + 8000848: 40021400 .word 0x40021400 + 800084c: 40021800 .word 0x40021800 + 8000850: 40020c00 .word 0x40020c00 + +08000854 : + 8000854: e7fe b.n 8000854 + +08000856 : + 8000856: e7fe b.n 8000856 + +08000858 : + 8000858: e7fe b.n 8000858 + +0800085a : + 800085a: e7fe b.n 800085a + +0800085c : + 800085c: e7fe b.n 800085c + +0800085e : + 800085e: 4770 bx lr + +08000860 : + 8000860: 4770 bx lr + +08000862 : + 8000862: 4770 bx lr + +08000864 : + 8000864: f000 b930 b.w 8000ac8 + +08000868 : + 8000868: 4a03 ldr r2, [pc, #12] ; (8000878 ) + 800086a: f8d2 3088 ldr.w r3, [r2, #136] ; 0x88 + 800086e: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 + 8000872: f8c2 3088 str.w r3, [r2, #136] ; 0x88 + 8000876: 4770 bx lr + 8000878: e000ed00 .word 0xe000ed00 + +0800087c : + 800087c: 480d ldr r0, [pc, #52] ; (80008b4 ) + 800087e: 4685 mov sp, r0 + 8000880: f7ff fff2 bl 8000868 + 8000884: 480c ldr r0, [pc, #48] ; (80008b8 ) + 8000886: 490d ldr r1, [pc, #52] ; (80008bc ) + 8000888: 4a0d ldr r2, [pc, #52] ; (80008c0 ) + 800088a: 2300 movs r3, #0 + 800088c: e002 b.n 8000894 + +0800088e : + 800088e: 58d4 ldr r4, [r2, r3] + 8000890: 50c4 str r4, [r0, r3] + 8000892: 3304 adds r3, #4 + +08000894 : + 8000894: 18c4 adds r4, r0, r3 + 8000896: 428c cmp r4, r1 + 8000898: d3f9 bcc.n 800088e + 800089a: 4a0a ldr r2, [pc, #40] ; (80008c4 ) + 800089c: 4c0a ldr r4, [pc, #40] ; (80008c8 ) + 800089e: 2300 movs r3, #0 + 80008a0: e001 b.n 80008a6 + +080008a2 : + 80008a2: 6013 str r3, [r2, #0] + 80008a4: 3204 adds r2, #4 + +080008a6 : + 80008a6: 42a2 cmp r2, r4 + 80008a8: d3fb bcc.n 80008a2 + 80008aa: f008 fd33 bl 8009314 <__libc_init_array> + 80008ae: f7ff fec3 bl 8000638
+ +080008b2 : + 80008b2: e7fe b.n 80008b2 + 80008b4: 20030000 .word 0x20030000 + 80008b8: 20000000 .word 0x20000000 + 80008bc: 2000008c .word 0x2000008c + 80008c0: 0800c79c .word 0x0800c79c + 80008c4: 2000008c .word 0x2000008c + 80008c8: 20008454 .word 0x20008454 + +080008cc : + 80008cc: e7fe b.n 80008cc + +080008ce : + 80008ce: b530 push {r4, r5, lr} + 80008d0: b170 cbz r0, 80008f0 + 80008d2: 68cc ldr r4, [r1, #12] + 80008d4: b164 cbz r4, 80008f0 + 80008d6: 688a ldr r2, [r1, #8] + 80008d8: b152 cbz r2, 80008f0 + 80008da: 690b ldr r3, [r1, #16] + 80008dc: b143 cbz r3, 80008f0 + 80008de: 680d ldr r5, [r1, #0] + 80008e0: 6849 ldr r1, [r1, #4] + 80008e2: 6085 str r5, [r0, #8] + 80008e4: e9c0 2404 strd r2, r4, [r0, #16] + 80008e8: 60c1 str r1, [r0, #12] + 80008ea: 6183 str r3, [r0, #24] + 80008ec: 2000 movs r0, #0 + 80008ee: bd30 pop {r4, r5, pc} + 80008f0: f04f 30ff mov.w r0, #4294967295 + 80008f4: e7fb b.n 80008ee + +080008f6 : + 80008f6: b573 push {r0, r1, r4, r5, r6, lr} + 80008f8: 6846 ldr r6, [r0, #4] + 80008fa: 2300 movs r3, #0 + 80008fc: 4604 mov r4, r0 + 80008fe: 9301 str r3, [sp, #4] + 8000900: b166 cbz r6, 800091c + 8000902: 69a3 ldr r3, [r4, #24] + 8000904: 4798 blx r3 + 8000906: 4605 mov r5, r0 + 8000908: 69a3 ldr r3, [r4, #24] + 800090a: 4798 blx r3 + 800090c: 1b43 subs r3, r0, r5 + 800090e: f5b3 6ffa cmp.w r3, #2000 ; 0x7d0 + 8000912: d9f9 bls.n 8000908 + 8000914: 2301 movs r3, #1 + 8000916: 6063 str r3, [r4, #4] + 8000918: 2500 movs r5, #0 + 800091a: e027 b.n 800096c + 800091c: 6883 ldr r3, [r0, #8] + 800091e: b103 cbz r3, 8000922 + 8000920: 4798 blx r3 + 8000922: 2320 movs r3, #32 + 8000924: 6023 str r3, [r4, #0] + 8000926: 2500 movs r5, #0 + 8000928: 6963 ldr r3, [r4, #20] + 800092a: aa01 add r2, sp, #4 + 800092c: 2119 movs r1, #25 + 800092e: 4630 mov r0, r6 + 8000930: 4798 blx r3 + 8000932: 2800 cmp r0, #0 + 8000934: db1d blt.n 8000972 + 8000936: 9b01 ldr r3, [sp, #4] + 8000938: f003 031f and.w r3, r3, #31 + 800093c: 42b3 cmp r3, r6 + 800093e: d11a bne.n 8000976 + 8000940: 6026 str r6, [r4, #0] + 8000942: 2500 movs r5, #0 + 8000944: 6820 ldr r0, [r4, #0] + 8000946: 281f cmp r0, #31 + 8000948: d82d bhi.n 80009a6 + 800094a: b97d cbnz r5, 800096c + 800094c: 6923 ldr r3, [r4, #16] + 800094e: f44f 4200 mov.w r2, #32768 ; 0x8000 + 8000952: 4629 mov r1, r5 + 8000954: 4798 blx r3 + 8000956: 2800 cmp r0, #0 + 8000958: db28 blt.n 80009ac + 800095a: 6963 ldr r3, [r4, #20] + 800095c: 6820 ldr r0, [r4, #0] + 800095e: aa01 add r2, sp, #4 + 8000960: 4629 mov r1, r5 + 8000962: 4798 blx r3 + 8000964: 2800 cmp r0, #0 + 8000966: da0a bge.n 800097e + 8000968: f06f 0504 mvn.w r5, #4 + 800096c: 4628 mov r0, r5 + 800096e: b002 add sp, #8 + 8000970: bd70 pop {r4, r5, r6, pc} + 8000972: f06f 0504 mvn.w r5, #4 + 8000976: 3601 adds r6, #1 + 8000978: 2e20 cmp r6, #32 + 800097a: d1d5 bne.n 8000928 + 800097c: e7e2 b.n 8000944 + 800097e: 69a3 ldr r3, [r4, #24] + 8000980: 4798 blx r3 + 8000982: 4605 mov r5, r0 + 8000984: 9b01 ldr r3, [sp, #4] + 8000986: 69a2 ldr r2, [r4, #24] + 8000988: 041b lsls r3, r3, #16 + 800098a: d5ba bpl.n 8000902 + 800098c: 4790 blx r2 + 800098e: 1b40 subs r0, r0, r5 + 8000990: f5b0 7ffa cmp.w r0, #500 ; 0x1f4 + 8000994: d80d bhi.n 80009b2 + 8000996: 6963 ldr r3, [r4, #20] + 8000998: 6820 ldr r0, [r4, #0] + 800099a: aa01 add r2, sp, #4 + 800099c: 2100 movs r1, #0 + 800099e: 4798 blx r3 + 80009a0: 2800 cmp r0, #0 + 80009a2: daef bge.n 8000984 + 80009a4: e7e0 b.n 8000968 + 80009a6: f06f 0502 mvn.w r5, #2 + 80009aa: e7df b.n 800096c + 80009ac: f06f 0503 mvn.w r5, #3 + 80009b0: e7dc b.n 800096c + 80009b2: f06f 0501 mvn.w r5, #1 + 80009b6: e7d9 b.n 800096c + +080009b8 : + 80009b8: b537 push {r0, r1, r2, r4, r5, lr} + 80009ba: 2500 movs r5, #0 + 80009bc: 6943 ldr r3, [r0, #20] + 80009be: 9501 str r5, [sp, #4] + 80009c0: 4604 mov r4, r0 + 80009c2: aa01 add r2, sp, #4 + 80009c4: 6800 ldr r0, [r0, #0] + 80009c6: 2101 movs r1, #1 + 80009c8: 4798 blx r3 + 80009ca: 42a8 cmp r0, r5 + 80009cc: da03 bge.n 80009d6 + 80009ce: f06f 0004 mvn.w r0, #4 + 80009d2: b003 add sp, #12 + 80009d4: bd30 pop {r4, r5, pc} + 80009d6: 6963 ldr r3, [r4, #20] + 80009d8: 6820 ldr r0, [r4, #0] + 80009da: aa01 add r2, sp, #4 + 80009dc: 2101 movs r1, #1 + 80009de: 4798 blx r3 + 80009e0: 2800 cmp r0, #0 + 80009e2: dbf4 blt.n 80009ce + 80009e4: 9b01 ldr r3, [sp, #4] + 80009e6: 075b lsls r3, r3, #29 + 80009e8: d52c bpl.n 8000a44 + 80009ea: 6963 ldr r3, [r4, #20] + 80009ec: 6820 ldr r0, [r4, #0] + 80009ee: aa01 add r2, sp, #4 + 80009f0: 4629 mov r1, r5 + 80009f2: 4798 blx r3 + 80009f4: 2800 cmp r0, #0 + 80009f6: dbea blt.n 80009ce + 80009f8: 9b01 ldr r3, [sp, #4] + 80009fa: 04dd lsls r5, r3, #19 + 80009fc: d40e bmi.n 8000a1c + 80009fe: f403 5204 and.w r2, r3, #8448 ; 0x2100 + 8000a02: f5b2 5f04 cmp.w r2, #8448 ; 0x2100 + 8000a06: d101 bne.n 8000a0c + 8000a08: 2002 movs r0, #2 + 8000a0a: e7e2 b.n 80009d2 + 8000a0c: 0498 lsls r0, r3, #18 + 8000a0e: d501 bpl.n 8000a14 + 8000a10: 2003 movs r0, #3 + 8000a12: e7de b.n 80009d2 + 8000a14: 05d9 lsls r1, r3, #23 + 8000a16: d513 bpl.n 8000a40 + 8000a18: 2004 movs r0, #4 + 8000a1a: e7da b.n 80009d2 + 8000a1c: 6963 ldr r3, [r4, #20] + 8000a1e: 6820 ldr r0, [r4, #0] + 8000a20: aa01 add r2, sp, #4 + 8000a22: 2110 movs r1, #16 + 8000a24: 4798 blx r3 + 8000a26: 2800 cmp r0, #0 + 8000a28: dbd1 blt.n 80009ce + 8000a2a: 9b01 ldr r3, [sp, #4] + 8000a2c: 05da lsls r2, r3, #23 + 8000a2e: d50b bpl.n 8000a48 + 8000a30: f003 0306 and.w r3, r3, #6 + 8000a34: 2b04 cmp r3, #4 + 8000a36: d0e7 beq.n 8000a08 + 8000a38: 2b00 cmp r3, #0 + 8000a3a: d0e9 beq.n 8000a10 + 8000a3c: 2b06 cmp r3, #6 + 8000a3e: d0eb beq.n 8000a18 + 8000a40: 2005 movs r0, #5 + 8000a42: e7c6 b.n 80009d2 + 8000a44: 2001 movs r0, #1 + 8000a46: e7c4 b.n 80009d2 + 8000a48: 2006 movs r0, #6 + 8000a4a: e7c2 b.n 80009d2 + +08000a4c : + 8000a4c: b538 push {r3, r4, r5, lr} + 8000a4e: 4a0e ldr r2, [pc, #56] ; (8000a88 ) + 8000a50: 4b0e ldr r3, [pc, #56] ; (8000a8c ) + 8000a52: 4605 mov r5, r0 + 8000a54: 7818 ldrb r0, [r3, #0] + 8000a56: f44f 737a mov.w r3, #1000 ; 0x3e8 + 8000a5a: fbb3 f3f0 udiv r3, r3, r0 + 8000a5e: 6810 ldr r0, [r2, #0] + 8000a60: fbb0 f0f3 udiv r0, r0, r3 + 8000a64: f000 f89a bl 8000b9c + 8000a68: 4604 mov r4, r0 + 8000a6a: b958 cbnz r0, 8000a84 + 8000a6c: 2d0f cmp r5, #15 + 8000a6e: d809 bhi.n 8000a84 + 8000a70: 4602 mov r2, r0 + 8000a72: 4629 mov r1, r5 + 8000a74: f04f 30ff mov.w r0, #4294967295 + 8000a78: f000 f85e bl 8000b38 + 8000a7c: 4b04 ldr r3, [pc, #16] ; (8000a90 ) + 8000a7e: 4620 mov r0, r4 + 8000a80: 601d str r5, [r3, #0] + 8000a82: bd38 pop {r3, r4, r5, pc} + 8000a84: 2001 movs r0, #1 + 8000a86: e7fc b.n 8000a82 + 8000a88: 20000000 .word 0x20000000 + 8000a8c: 20000004 .word 0x20000004 + 8000a90: 20000008 .word 0x20000008 + +08000a94 : + 8000a94: b508 push {r3, lr} + 8000a96: 4b0b ldr r3, [pc, #44] ; (8000ac4 ) + 8000a98: 681a ldr r2, [r3, #0] + 8000a9a: f442 7200 orr.w r2, r2, #512 ; 0x200 + 8000a9e: 601a str r2, [r3, #0] + 8000aa0: 681a ldr r2, [r3, #0] + 8000aa2: f442 6280 orr.w r2, r2, #1024 ; 0x400 + 8000aa6: 601a str r2, [r3, #0] + 8000aa8: 681a ldr r2, [r3, #0] + 8000aaa: f442 7280 orr.w r2, r2, #256 ; 0x100 + 8000aae: 601a str r2, [r3, #0] + 8000ab0: 2003 movs r0, #3 + 8000ab2: f000 f82f bl 8000b14 + 8000ab6: 200f movs r0, #15 + 8000ab8: f7ff ffc8 bl 8000a4c + 8000abc: f7ff fe5e bl 800077c + 8000ac0: 2000 movs r0, #0 + 8000ac2: bd08 pop {r3, pc} + 8000ac4: 40023c00 .word 0x40023c00 + +08000ac8 : + 8000ac8: 4a03 ldr r2, [pc, #12] ; (8000ad8 ) + 8000aca: 4b04 ldr r3, [pc, #16] ; (8000adc ) + 8000acc: 6811 ldr r1, [r2, #0] + 8000ace: 781b ldrb r3, [r3, #0] + 8000ad0: 440b add r3, r1 + 8000ad2: 6013 str r3, [r2, #0] + 8000ad4: 4770 bx lr + 8000ad6: bf00 nop + 8000ad8: 200000fc .word 0x200000fc + 8000adc: 20000004 .word 0x20000004 + +08000ae0 : + 8000ae0: 4b01 ldr r3, [pc, #4] ; (8000ae8 ) + 8000ae2: 6818 ldr r0, [r3, #0] + 8000ae4: 4770 bx lr + 8000ae6: bf00 nop + 8000ae8: 200000fc .word 0x200000fc + +08000aec : + 8000aec: b538 push {r3, r4, r5, lr} + 8000aee: 4604 mov r4, r0 + 8000af0: f7ff fff6 bl 8000ae0 + 8000af4: 1c63 adds r3, r4, #1 + 8000af6: bf1c itt ne + 8000af8: 4b05 ldrne r3, [pc, #20] ; (8000b10 ) + 8000afa: 781b ldrbne r3, [r3, #0] + 8000afc: 4605 mov r5, r0 + 8000afe: bf18 it ne + 8000b00: 18e4 addne r4, r4, r3 + 8000b02: f7ff ffed bl 8000ae0 + 8000b06: 1b43 subs r3, r0, r5 + 8000b08: 42a3 cmp r3, r4 + 8000b0a: d3fa bcc.n 8000b02 + 8000b0c: bd38 pop {r3, r4, r5, pc} + 8000b0e: bf00 nop + 8000b10: 20000004 .word 0x20000004 + +08000b14 : + 8000b14: 4907 ldr r1, [pc, #28] ; (8000b34 ) + 8000b16: 68ca ldr r2, [r1, #12] + 8000b18: f422 62e0 bic.w r2, r2, #1792 ; 0x700 + 8000b1c: 0203 lsls r3, r0, #8 + 8000b1e: 0412 lsls r2, r2, #16 + 8000b20: f403 63e0 and.w r3, r3, #1792 ; 0x700 + 8000b24: 0c12 lsrs r2, r2, #16 + 8000b26: 4313 orrs r3, r2 + 8000b28: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 + 8000b2c: f443 3300 orr.w r3, r3, #131072 ; 0x20000 + 8000b30: 60cb str r3, [r1, #12] + 8000b32: 4770 bx lr + 8000b34: e000ed00 .word 0xe000ed00 + +08000b38 : + 8000b38: 4b16 ldr r3, [pc, #88] ; (8000b94 ) + 8000b3a: b530 push {r4, r5, lr} + 8000b3c: 68dc ldr r4, [r3, #12] + 8000b3e: f3c4 2402 ubfx r4, r4, #8, #3 + 8000b42: f1c4 0507 rsb r5, r4, #7 + 8000b46: 1d23 adds r3, r4, #4 + 8000b48: 2d04 cmp r5, #4 + 8000b4a: bf28 it cs + 8000b4c: 2504 movcs r5, #4 + 8000b4e: 2b06 cmp r3, #6 + 8000b50: f04f 33ff mov.w r3, #4294967295 + 8000b54: bf8c ite hi + 8000b56: 3c03 subhi r4, #3 + 8000b58: 2400 movls r4, #0 + 8000b5a: fa03 f505 lsl.w r5, r3, r5 + 8000b5e: ea21 0105 bic.w r1, r1, r5 + 8000b62: 40a3 lsls r3, r4 + 8000b64: ea22 0203 bic.w r2, r2, r3 + 8000b68: 40a1 lsls r1, r4 + 8000b6a: 2800 cmp r0, #0 + 8000b6c: ea41 0302 orr.w r3, r1, r2 + 8000b70: bfac ite ge + 8000b72: f100 4060 addge.w r0, r0, #3758096384 ; 0xe0000000 + 8000b76: 4a08 ldrlt r2, [pc, #32] ; (8000b98 ) + 8000b78: ea4f 1303 mov.w r3, r3, lsl #4 + 8000b7c: bfb8 it lt + 8000b7e: f000 000f andlt.w r0, r0, #15 + 8000b82: b2db uxtb r3, r3 + 8000b84: bfaa itet ge + 8000b86: f500 4061 addge.w r0, r0, #57600 ; 0xe100 + 8000b8a: 5413 strblt r3, [r2, r0] + 8000b8c: f880 3300 strbge.w r3, [r0, #768] ; 0x300 + 8000b90: bd30 pop {r4, r5, pc} + 8000b92: bf00 nop + 8000b94: e000ed00 .word 0xe000ed00 + 8000b98: e000ed14 .word 0xe000ed14 + +08000b9c : + 8000b9c: 3801 subs r0, #1 + 8000b9e: f1b0 7f80 cmp.w r0, #16777216 ; 0x1000000 + 8000ba2: d20b bcs.n 8000bbc + 8000ba4: f04f 23e0 mov.w r3, #3758153728 ; 0xe000e000 + 8000ba8: 4a05 ldr r2, [pc, #20] ; (8000bc0 ) + 8000baa: 6158 str r0, [r3, #20] + 8000bac: 21f0 movs r1, #240 ; 0xf0 + 8000bae: f882 1023 strb.w r1, [r2, #35] ; 0x23 + 8000bb2: 2000 movs r0, #0 + 8000bb4: 2207 movs r2, #7 + 8000bb6: 6198 str r0, [r3, #24] + 8000bb8: 611a str r2, [r3, #16] + 8000bba: 4770 bx lr + 8000bbc: 2001 movs r0, #1 + 8000bbe: 4770 bx lr + 8000bc0: e000ed00 .word 0xe000ed00 + +08000bc4 : + 8000bc4: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8000bc8: 6a86 ldr r6, [r0, #40] ; 0x28 + 8000bca: eb00 0c86 add.w ip, r0, r6, lsl #2 + 8000bce: f8dc 3018 ldr.w r3, [ip, #24] + 8000bd2: 681c ldr r4, [r3, #0] + 8000bd4: 2c00 cmp r4, #0 + 8000bd6: da02 bge.n 8000bde + 8000bd8: 2002 movs r0, #2 + 8000bda: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8000bde: f8dc 402c ldr.w r4, [ip, #44] ; 0x2c + 8000be2: 2c00 cmp r4, #0 + 8000be4: d1f8 bne.n 8000bd8 + 8000be6: 688c ldr r4, [r1, #8] + 8000be8: f8d1 e000 ldr.w lr, [r1] + 8000bec: 6825 ldr r5, [r4, #0] + 8000bee: 609d str r5, [r3, #8] + 8000bf0: 685d ldr r5, [r3, #4] + 8000bf2: 6867 ldr r7, [r4, #4] + 8000bf4: f425 55ff bic.w r5, r5, #8160 ; 0x1fe0 + 8000bf8: f025 051f bic.w r5, r5, #31 + 8000bfc: 433d orrs r5, r7 + 8000bfe: f01e 0f01 tst.w lr, #1 + 8000c02: 605d str r5, [r3, #4] + 8000c04: d005 beq.n 8000c12 + 8000c06: 681f ldr r7, [r3, #0] + 8000c08: 694d ldr r5, [r1, #20] + 8000c0a: f427 0740 bic.w r7, r7, #12582912 ; 0xc00000 + 8000c0e: 433d orrs r5, r7 + 8000c10: 601d str r5, [r3, #0] + 8000c12: f01e 0f20 tst.w lr, #32 + 8000c16: d005 beq.n 8000c24 + 8000c18: 681d ldr r5, [r3, #0] + 8000c1a: 6909 ldr r1, [r1, #16] + 8000c1c: f025 6540 bic.w r5, r5, #201326592 ; 0xc000000 + 8000c20: 4329 orrs r1, r5 + 8000c22: 6019 str r1, [r3, #0] + 8000c24: f01e 0f04 tst.w lr, #4 + 8000c28: bf1e ittt ne + 8000c2a: 6819 ldrne r1, [r3, #0] + 8000c2c: f041 0180 orrne.w r1, r1, #128 ; 0x80 + 8000c30: 6019 strne r1, [r3, #0] + 8000c32: 6819 ldr r1, [r3, #0] + 8000c34: f041 5180 orr.w r1, r1, #268435456 ; 0x10000000 + 8000c38: 6019 str r1, [r3, #0] + 8000c3a: f3bf 8f5f dmb sy + 8000c3e: 6819 ldr r1, [r3, #0] + 8000c40: f8df 80d0 ldr.w r8, [pc, #208] ; 8000d14 + 8000c44: f041 4100 orr.w r1, r1, #2147483648 ; 0x80000000 + 8000c48: 6019 str r1, [r3, #0] + 8000c4a: 2500 movs r5, #0 + 8000c4c: 4631 mov r1, r6 + 8000c4e: 68a4 ldr r4, [r4, #8] + 8000c50: f105 0e01 add.w lr, r5, #1 + 8000c54: b9b4 cbnz r4, 8000c84 + 8000c56: 2a00 cmp r2, #0 + 8000c58: d057 beq.n 8000d0a + 8000c5a: 681a ldr r2, [r3, #0] + 8000c5c: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000 + 8000c60: 601a str r2, [r3, #0] + 8000c62: 681a ldr r2, [r3, #0] + 8000c64: f042 5200 orr.w r2, r2, #536870912 ; 0x20000000 + 8000c68: 601a str r2, [r3, #0] + 8000c6a: eb00 0381 add.w r3, r0, r1, lsl #2 + 8000c6e: 6bc2 ldr r2, [r0, #60] ; 0x3c + 8000c70: 62da str r2, [r3, #44] ; 0x2c + 8000c72: 6281 str r1, [r0, #40] ; 0x28 + 8000c74: b672 cpsid i + 8000c76: 6c03 ldr r3, [r0, #64] ; 0x40 + 8000c78: 3301 adds r3, #1 + 8000c7a: 442b add r3, r5 + 8000c7c: 6403 str r3, [r0, #64] ; 0x40 + 8000c7e: b662 cpsie i + 8000c80: 2000 movs r0, #0 + 8000c82: e7aa b.n 8000bda + 8000c84: 681d ldr r5, [r3, #0] + 8000c86: f025 5500 bic.w r5, r5, #536870912 ; 0x20000000 + 8000c8a: 601d str r5, [r3, #0] + 8000c8c: 681d ldr r5, [r3, #0] + 8000c8e: b32a cbz r2, 8000cdc + 8000c90: f045 4580 orr.w r5, r5, #1073741824 ; 0x40000000 + 8000c94: 1c4f adds r7, r1, #1 + 8000c96: 2f03 cmp r7, #3 + 8000c98: bf88 it hi + 8000c9a: 1ecf subhi r7, r1, #3 + 8000c9c: 601d str r5, [r3, #0] + 8000c9e: eb00 0587 add.w r5, r0, r7, lsl #2 + 8000ca2: 69ab ldr r3, [r5, #24] + 8000ca4: 6819 ldr r1, [r3, #0] + 8000ca6: f021 5180 bic.w r1, r1, #268435456 ; 0x10000000 + 8000caa: 6019 str r1, [r3, #0] + 8000cac: 6819 ldr r1, [r3, #0] + 8000cae: 2900 cmp r1, #0 + 8000cb0: da17 bge.n 8000ce2 + 8000cb2: f8dc 1018 ldr.w r1, [ip, #24] + 8000cb6: 2200 movs r2, #0 + 8000cb8: 4572 cmp r2, lr + 8000cba: d08d beq.n 8000bd8 + 8000cbc: f3bf 8f5f dmb sy + 8000cc0: 680b ldr r3, [r1, #0] + 8000cc2: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000 + 8000cc6: 600b str r3, [r1, #0] + 8000cc8: 1c73 adds r3, r6, #1 + 8000cca: 2b03 cmp r3, #3 + 8000ccc: bf88 it hi + 8000cce: 1ef3 subhi r3, r6, #3 + 8000cd0: eb00 0183 add.w r1, r0, r3, lsl #2 + 8000cd4: 3201 adds r2, #1 + 8000cd6: 6989 ldr r1, [r1, #24] + 8000cd8: 461e mov r6, r3 + 8000cda: e7ed b.n 8000cb8 + 8000cdc: f025 4580 bic.w r5, r5, #1073741824 ; 0x40000000 + 8000ce0: e7d8 b.n 8000c94 + 8000ce2: 6ae9 ldr r1, [r5, #44] ; 0x2c + 8000ce4: 2900 cmp r1, #0 + 8000ce6: d1e4 bne.n 8000cb2 + 8000ce8: 6821 ldr r1, [r4, #0] + 8000cea: 6099 str r1, [r3, #8] + 8000cec: 6859 ldr r1, [r3, #4] + 8000cee: 6865 ldr r5, [r4, #4] + 8000cf0: ea01 0108 and.w r1, r1, r8 + 8000cf4: 4329 orrs r1, r5 + 8000cf6: 6059 str r1, [r3, #4] + 8000cf8: f3bf 8f5f dmb sy + 8000cfc: 6819 ldr r1, [r3, #0] + 8000cfe: f041 4100 orr.w r1, r1, #2147483648 ; 0x80000000 + 8000d02: 6019 str r1, [r3, #0] + 8000d04: 4675 mov r5, lr + 8000d06: 4639 mov r1, r7 + 8000d08: e7a1 b.n 8000c4e + 8000d0a: 681a ldr r2, [r3, #0] + 8000d0c: f022 4280 bic.w r2, r2, #1073741824 ; 0x40000000 + 8000d10: e7a6 b.n 8000c60 + 8000d12: bf00 nop + 8000d14: ffffe000 .word 0xffffe000 + +08000d18 : + 8000d18: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8000d1c: 6802 ldr r2, [r0, #0] + 8000d1e: f8df c0fc ldr.w ip, [pc, #252] ; 8000e1c + 8000d22: 6813 ldr r3, [r2, #0] + 8000d24: f891 801f ldrb.w r8, [r1, #31] + 8000d28: ea03 0c0c and.w ip, r3, ip + 8000d2c: 7c0b ldrb r3, [r1, #16] + 8000d2e: 2b00 cmp r3, #0 + 8000d30: 7c4b ldrb r3, [r1, #17] + 8000d32: 460d mov r5, r1 + 8000d34: bf0c ite eq + 8000d36: f44f 0700 moveq.w r7, #8388608 ; 0x800000 + 8000d3a: 2700 movne r7, #0 + 8000d3c: 2b00 cmp r3, #0 + 8000d3e: 688b ldr r3, [r1, #8] + 8000d40: 6949 ldr r1, [r1, #20] + 8000d42: f895 901c ldrb.w r9, [r5, #28] + 8000d46: f895 e004 ldrb.w lr, [r5, #4] + 8000d4a: ea43 0301 orr.w r3, r3, r1 + 8000d4e: 7fa9 ldrb r1, [r5, #30] + 8000d50: bf0c ite eq + 8000d52: f44f 0680 moveq.w r6, #4194304 ; 0x400000 + 8000d56: 2600 movne r6, #0 + 8000d58: 2900 cmp r1, #0 + 8000d5a: 69a9 ldr r1, [r5, #24] + 8000d5c: ea43 0301 orr.w r3, r3, r1 + 8000d60: f895 1020 ldrb.w r1, [r5, #32] + 8000d64: 4604 mov r4, r0 + 8000d66: bf0c ite eq + 8000d68: f44f 5000 moveq.w r0, #8192 ; 0x2000 + 8000d6c: 2000 movne r0, #0 + 8000d6e: 2900 cmp r1, #0 + 8000d70: 6a69 ldr r1, [r5, #36] ; 0x24 + 8000d72: ea43 0301 orr.w r3, r3, r1 + 8000d76: ea43 4308 orr.w r3, r3, r8, lsl #16 + 8000d7a: ea43 3309 orr.w r3, r3, r9, lsl #12 + 8000d7e: ea43 238e orr.w r3, r3, lr, lsl #10 + 8000d82: f895 e00f ldrb.w lr, [r5, #15] + 8000d86: ea43 13ce orr.w r3, r3, lr, lsl #7 + 8000d8a: f895 e028 ldrb.w lr, [r5, #40] ; 0x28 + 8000d8e: ea43 130e orr.w r3, r3, lr, lsl #4 + 8000d92: ea43 030c orr.w r3, r3, ip + 8000d96: ea43 0307 orr.w r3, r3, r7 + 8000d9a: ea43 0306 orr.w r3, r3, r6 + 8000d9e: bf0c ite eq + 8000da0: f44f 7a00 moveq.w sl, #512 ; 0x200 + 8000da4: f04f 0a00 movne.w sl, #0 + 8000da8: 4303 orrs r3, r0 + 8000daa: ea43 030a orr.w r3, r3, sl + 8000dae: 6013 str r3, [r2, #0] + 8000db0: 2001 movs r0, #1 + 8000db2: 6816 ldr r6, [r2, #0] + 8000db4: f7ff fe9a bl 8000aec + 8000db8: 6821 ldr r1, [r4, #0] + 8000dba: 6d2a ldr r2, [r5, #80] ; 0x50 + 8000dbc: 600e str r6, [r1, #0] + 8000dbe: 6988 ldr r0, [r1, #24] + 8000dc0: 6cae ldr r6, [r5, #72] ; 0x48 + 8000dc2: f895 304c ldrb.w r3, [r5, #76] ; 0x4c + 8000dc6: f020 00be bic.w r0, r0, #190 ; 0xbe + 8000dca: 0400 lsls r0, r0, #16 + 8000dcc: 0c00 lsrs r0, r0, #16 + 8000dce: ea42 4206 orr.w r2, r2, r6, lsl #16 + 8000dd2: 4302 orrs r2, r0 + 8000dd4: f895 0055 ldrb.w r0, [r5, #85] ; 0x55 + 8000dd8: 2b00 cmp r3, #0 + 8000dda: bf0c ite eq + 8000ddc: 2380 moveq r3, #128 ; 0x80 + 8000dde: 2300 movne r3, #0 + 8000de0: 2801 cmp r0, #1 + 8000de2: bf0c ite eq + 8000de4: 2008 moveq r0, #8 + 8000de6: 2000 movne r0, #0 + 8000de8: 431a orrs r2, r3 + 8000dea: f895 3056 ldrb.w r3, [r5, #86] ; 0x56 + 8000dee: 4302 orrs r2, r0 + 8000df0: f895 0054 ldrb.w r0, [r5, #84] ; 0x54 + 8000df4: 2b01 cmp r3, #1 + 8000df6: bf0c ite eq + 8000df8: 2304 moveq r3, #4 + 8000dfa: 2300 movne r3, #0 + 8000dfc: 2801 cmp r0, #1 + 8000dfe: bf0c ite eq + 8000e00: 2002 moveq r0, #2 + 8000e02: 2000 movne r0, #0 + 8000e04: 4313 orrs r3, r2 + 8000e06: 4303 orrs r3, r0 + 8000e08: 618b str r3, [r1, #24] + 8000e0a: 2001 movs r0, #1 + 8000e0c: 698d ldr r5, [r1, #24] + 8000e0e: f7ff fe6d bl 8000aec + 8000e12: 6823 ldr r3, [r4, #0] + 8000e14: 619d str r5, [r3, #24] + 8000e16: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8000e1a: bf00 nop + 8000e1c: ff20810f .word 0xff20810f + +08000e20 : + 8000e20: 6802 ldr r2, [r0, #0] + 8000e22: b5f8 push {r3, r4, r5, r6, r7, lr} + 8000e24: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 8000e28: 4605 mov r5, r0 + 8000e2a: 6993 ldr r3, [r2, #24] + 8000e2c: 4826 ldr r0, [pc, #152] ; (8000ec8 ) + 8000e2e: f891 c00d ldrb.w ip, [r1, #13] + 8000e32: 4018 ands r0, r3 + 8000e34: 7b0b ldrb r3, [r1, #12] + 8000e36: 460c mov r4, r1 + 8000e38: 2b00 cmp r3, #0 + 8000e3a: 7f4b ldrb r3, [r1, #29] + 8000e3c: 6a27 ldr r7, [r4, #32] + 8000e3e: bf0c ite eq + 8000e40: f04f 6680 moveq.w r6, #67108864 ; 0x4000000 + 8000e44: 2600 movne r6, #0 + 8000e46: 2b00 cmp r3, #0 + 8000e48: 6963 ldr r3, [r4, #20] + 8000e4a: ea43 0307 orr.w r3, r3, r7 + 8000e4e: 7ba7 ldrb r7, [r4, #14] + 8000e50: ea43 634c orr.w r3, r3, ip, lsl #25 + 8000e54: ea43 5347 orr.w r3, r3, r7, lsl #21 + 8000e58: 7f27 ldrb r7, [r4, #28] + 8000e5a: ea43 13c7 orr.w r3, r3, r7, lsl #7 + 8000e5e: 7fa7 ldrb r7, [r4, #30] + 8000e60: ea43 1387 orr.w r3, r3, r7, lsl #6 + 8000e64: f894 7024 ldrb.w r7, [r4, #36] ; 0x24 + 8000e68: ea43 0387 orr.w r3, r3, r7, lsl #2 + 8000e6c: ea43 0300 orr.w r3, r3, r0 + 8000e70: bf0c ite eq + 8000e72: f44f 1180 moveq.w r1, #1048576 ; 0x100000 + 8000e76: 2100 movne r1, #0 + 8000e78: 4333 orrs r3, r6 + 8000e7a: 430b orrs r3, r1 + 8000e7c: 6193 str r3, [r2, #24] + 8000e7e: 2001 movs r0, #1 + 8000e80: 6996 ldr r6, [r2, #24] + 8000e82: f7ff fe33 bl 8000aec + 8000e86: 682a ldr r2, [r5, #0] + 8000e88: 69a1 ldr r1, [r4, #24] + 8000e8a: 68a3 ldr r3, [r4, #8] + 8000e8c: f502 5280 add.w r2, r2, #4096 ; 0x1000 + 8000e90: 430b orrs r3, r1 + 8000e92: 6196 str r6, [r2, #24] + 8000e94: f894 1025 ldrb.w r1, [r4, #37] ; 0x25 + 8000e98: ea43 13c1 orr.w r3, r3, r1, lsl #7 + 8000e9c: 6921 ldr r1, [r4, #16] + 8000e9e: 430b orrs r3, r1 + 8000ea0: 6821 ldr r1, [r4, #0] + 8000ea2: 430b orrs r3, r1 + 8000ea4: 6aa1 ldr r1, [r4, #40] ; 0x28 + 8000ea6: ea43 0381 orr.w r3, r3, r1, lsl #2 + 8000eaa: 7921 ldrb r1, [r4, #4] + 8000eac: ea43 6341 orr.w r3, r3, r1, lsl #25 + 8000eb0: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 + 8000eb4: 6013 str r3, [r2, #0] + 8000eb6: 2001 movs r0, #1 + 8000eb8: 6814 ldr r4, [r2, #0] + 8000eba: f7ff fe17 bl 8000aec + 8000ebe: 682b ldr r3, [r5, #0] + 8000ec0: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8000ec4: 601c str r4, [r3, #0] + 8000ec6: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8000ec8: f8de3f23 .word 0xf8de3f23 + +08000ecc : + 8000ecc: b513 push {r0, r1, r4, lr} + 8000ece: 2300 movs r3, #0 + 8000ed0: 9301 str r3, [sp, #4] + 8000ed2: 6803 ldr r3, [r0, #0] + 8000ed4: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8000ed8: 4604 mov r4, r0 + 8000eda: 699a ldr r2, [r3, #24] + 8000edc: f442 1280 orr.w r2, r2, #1048576 ; 0x100000 + 8000ee0: 619a str r2, [r3, #24] + 8000ee2: 699b ldr r3, [r3, #24] + 8000ee4: 9301 str r3, [sp, #4] + 8000ee6: 2001 movs r0, #1 + 8000ee8: f7ff fe00 bl 8000aec + 8000eec: 6823 ldr r3, [r4, #0] + 8000eee: 9a01 ldr r2, [sp, #4] + 8000ef0: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8000ef4: 619a str r2, [r3, #24] + 8000ef6: b002 add sp, #8 + 8000ef8: bd10 pop {r4, pc} + ... + +08000efc : + 8000efc: e92d 47f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, r9, sl, lr} + 8000f00: 6e87 ldr r7, [r0, #104] ; 0x68 + 8000f02: 6ec6 ldr r6, [r0, #108] ; 0x6c + 8000f04: f8df a080 ldr.w sl, [pc, #128] ; 8000f88 + 8000f08: 2300 movs r3, #0 + 8000f0a: 9301 str r3, [sp, #4] + 8000f0c: f107 0312 add.w r3, r7, #18 + 8000f10: 4604 mov r4, r0 + 8000f12: f850 5023 ldr.w r5, [r0, r3, lsl #2] + 8000f16: f04f 0801 mov.w r8, #1 + 8000f1a: f244 59f8 movw r9, #17912 ; 0x45f8 + 8000f1e: b116 cbz r6, 8000f26 + 8000f20: f1b8 0f00 cmp.w r8, #0 + 8000f24: d10c bne.n 8000f40 + 8000f26: 6ee3 ldr r3, [r4, #108] ; 0x6c + 8000f28: 42b3 cmp r3, r6 + 8000f2a: d006 beq.n 8000f3a + 8000f2c: 6823 ldr r3, [r4, #0] + 8000f2e: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8000f32: 2200 movs r2, #0 + 8000f34: 609a str r2, [r3, #8] + 8000f36: e9c4 761a strd r7, r6, [r4, #104] ; 0x68 + 8000f3a: b002 add sp, #8 + 8000f3c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8000f40: 6a2b ldr r3, [r5, #32] + 8000f42: b933 cbnz r3, 8000f52 + 8000f44: a801 add r0, sp, #4 + 8000f46: f001 f9bf bl 80022c8 + 8000f4a: 9b01 ldr r3, [sp, #4] + 8000f4c: b1cb cbz r3, 8000f82 + 8000f4e: 622b str r3, [r5, #32] + 8000f50: 60ab str r3, [r5, #8] + 8000f52: 6da3 ldr r3, [r4, #88] ; 0x58 + 8000f54: b993 cbnz r3, 8000f7c + 8000f56: f8c5 a004 str.w sl, [r5, #4] + 8000f5a: f3bf 8f5f dmb sy + 8000f5e: 682b ldr r3, [r5, #0] + 8000f60: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000 + 8000f64: 602b str r3, [r5, #0] + 8000f66: 1c7b adds r3, r7, #1 + 8000f68: 2b03 cmp r3, #3 + 8000f6a: bf88 it hi + 8000f6c: 1efb subhi r3, r7, #3 + 8000f6e: f103 0212 add.w r2, r3, #18 + 8000f72: 3e01 subs r6, #1 + 8000f74: f854 5022 ldr.w r5, [r4, r2, lsl #2] + 8000f78: 461f mov r7, r3 + 8000f7a: e7d0 b.n 8000f1e + 8000f7c: f8c5 9004 str.w r9, [r5, #4] + 8000f80: e7eb b.n 8000f5a + 8000f82: 4698 mov r8, r3 + 8000f84: e7cb b.n 8000f1e + 8000f86: bf00 nop + 8000f88: 800045f8 .word 0x800045f8 + +08000f8c : + 8000f8c: b5f0 push {r4, r5, r6, r7, lr} + 8000f8e: 4604 mov r4, r0 + 8000f90: b0a7 sub sp, #156 ; 0x9c + 8000f92: 2800 cmp r0, #0 + 8000f94: f000 80dc beq.w 8001150 + 8000f98: f8d0 3084 ldr.w r3, [r0, #132] ; 0x84 + 8000f9c: b923 cbnz r3, 8000fa8 + 8000f9e: 2323 movs r3, #35 ; 0x23 + 8000fa0: f8c0 3084 str.w r3, [r0, #132] ; 0x84 + 8000fa4: f001 f82e bl 8002004 + 8000fa8: 2300 movs r3, #0 + 8000faa: 9301 str r3, [sp, #4] + 8000fac: 4b69 ldr r3, [pc, #420] ; (8001154 ) + 8000fae: 68a1 ldr r1, [r4, #8] + 8000fb0: 6c5a ldr r2, [r3, #68] ; 0x44 + 8000fb2: f442 4280 orr.w r2, r2, #16384 ; 0x4000 + 8000fb6: 645a str r2, [r3, #68] ; 0x44 + 8000fb8: 6c5b ldr r3, [r3, #68] ; 0x44 + 8000fba: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 8000fbe: 9301 str r3, [sp, #4] + 8000fc0: 9b01 ldr r3, [sp, #4] + 8000fc2: 4b65 ldr r3, [pc, #404] ; (8001158 ) + 8000fc4: 685a ldr r2, [r3, #4] + 8000fc6: f422 0200 bic.w r2, r2, #8388608 ; 0x800000 + 8000fca: 605a str r2, [r3, #4] + 8000fcc: 685a ldr r2, [r3, #4] + 8000fce: 430a orrs r2, r1 + 8000fd0: 605a str r2, [r3, #4] + 8000fd2: 685b ldr r3, [r3, #4] + 8000fd4: 6823 ldr r3, [r4, #0] + 8000fd6: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8000fda: 681a ldr r2, [r3, #0] + 8000fdc: f042 0201 orr.w r2, r2, #1 + 8000fe0: 601a str r2, [r3, #0] + 8000fe2: f7ff fd7d bl 8000ae0 + 8000fe6: 4606 mov r6, r0 + 8000fe8: 6823 ldr r3, [r4, #0] + 8000fea: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8000fee: 681d ldr r5, [r3, #0] + 8000ff0: f015 0501 ands.w r5, r5, #1 + 8000ff4: f040 809f bne.w 8001136 + 8000ff8: 2601 movs r6, #1 + 8000ffa: f44f 4280 mov.w r2, #16384 ; 0x4000 + 8000ffe: f240 1701 movw r7, #257 ; 0x101 + 8001002: f44f 6300 mov.w r3, #2048 ; 0x800 + 8001006: a90d add r1, sp, #52 ; 0x34 + 8001008: 4620 mov r0, r4 + 800100a: e9cd 2312 strd r2, r3, [sp, #72] ; 0x48 + 800100e: f88d 6038 strb.w r6, [sp, #56] ; 0x38 + 8001012: f8ad 6052 strh.w r6, [sp, #82] ; 0x52 + 8001016: 950f str r5, [sp, #60] ; 0x3c + 8001018: f88d 5050 strb.w r5, [sp, #80] ; 0x50 + 800101c: f88d 5054 strb.w r5, [sp, #84] ; 0x54 + 8001020: f88d 5043 strb.w r5, [sp, #67] ; 0x43 + 8001024: f8ad 7044 strh.w r7, [sp, #68] ; 0x44 + 8001028: 9516 str r5, [sp, #88] ; 0x58 + 800102a: f88d 505c strb.w r5, [sp, #92] ; 0x5c + 800102e: 951f str r5, [sp, #124] ; 0x7c + 8001030: f88d 5080 strb.w r5, [sp, #128] ; 0x80 + 8001034: 9521 str r5, [sp, #132] ; 0x84 + 8001036: f8ad 5088 strh.w r5, [sp, #136] ; 0x88 + 800103a: f88d 508a strb.w r5, [sp, #138] ; 0x8a + 800103e: f7ff fe6b bl 8000d18 + 8001042: f44f 3380 mov.w r3, #65536 ; 0x10000 + 8001046: 9304 str r3, [sp, #16] + 8001048: f44f 5300 mov.w r3, #8192 ; 0x2000 + 800104c: e9cd 3506 strd r3, r5, [sp, #24] + 8001050: f44f 0380 mov.w r3, #4194304 ; 0x400000 + 8001054: 9308 str r3, [sp, #32] + 8001056: 4620 mov r0, r4 + 8001058: f44f 7380 mov.w r3, #256 ; 0x100 + 800105c: a902 add r1, sp, #8 + 800105e: f88d 600c strb.w r6, [sp, #12] + 8001062: f88d 6016 strb.w r6, [sp, #22] + 8001066: f8ad 3024 strh.w r3, [sp, #36] ; 0x24 + 800106a: f8ad 7014 strh.w r7, [sp, #20] + 800106e: f88d 5026 strb.w r5, [sp, #38] ; 0x26 + 8001072: 950a str r5, [sp, #40] ; 0x28 + 8001074: f8ad 702c strh.w r7, [sp, #44] ; 0x2c + 8001078: 950c str r5, [sp, #48] ; 0x30 + 800107a: 9502 str r5, [sp, #8] + 800107c: f7ff fed0 bl 8000e20 + 8001080: 68e6 ldr r6, [r4, #12] + 8001082: f104 0c18 add.w ip, r4, #24 + 8001086: 4633 mov r3, r6 + 8001088: 462a mov r2, r5 + 800108a: 4628 mov r0, r5 + 800108c: 6018 str r0, [r3, #0] + 800108e: 6058 str r0, [r3, #4] + 8001090: 6098 str r0, [r3, #8] + 8001092: 60d8 str r0, [r3, #12] + 8001094: f84c 3b04 str.w r3, [ip], #4 + 8001098: 681f ldr r7, [r3, #0] + 800109a: 4619 mov r1, r3 + 800109c: f447 1780 orr.w r7, r7, #1048576 ; 0x100000 + 80010a0: f841 7b28 str.w r7, [r1], #40 + 80010a4: 2a03 cmp r2, #3 + 80010a6: bf14 ite ne + 80010a8: 60d9 strne r1, [r3, #12] + 80010aa: 60de streq r6, [r3, #12] + 80010ac: 681f ldr r7, [r3, #0] + 80010ae: 3201 adds r2, #1 + 80010b0: f447 0740 orr.w r7, r7, #12582912 ; 0xc00000 + 80010b4: 2a04 cmp r2, #4 + 80010b6: 601f str r7, [r3, #0] + 80010b8: 460b mov r3, r1 + 80010ba: d1e7 bne.n 800108c + 80010bc: 6821 ldr r1, [r4, #0] + 80010be: f501 5180 add.w r1, r1, #4096 ; 0x1000 + 80010c2: 2200 movs r2, #0 + 80010c4: 62a2 str r2, [r4, #40] ; 0x28 + 80010c6: 610e str r6, [r1, #16] + 80010c8: 6926 ldr r6, [r4, #16] + 80010ca: f104 0748 add.w r7, r4, #72 ; 0x48 + 80010ce: 4633 mov r3, r6 + 80010d0: f04f 4c00 mov.w ip, #2147483648 ; 0x80000000 + 80010d4: f244 5ef8 movw lr, #17912 ; 0x45f8 + 80010d8: 601a str r2, [r3, #0] + 80010da: 605a str r2, [r3, #4] + 80010dc: 609a str r2, [r3, #8] + 80010de: 60da str r2, [r3, #12] + 80010e0: f8c3 c000 str.w ip, [r3] + 80010e4: f8c3 e004 str.w lr, [r3, #4] + 80010e8: 6858 ldr r0, [r3, #4] + 80010ea: f020 4000 bic.w r0, r0, #2147483648 ; 0x80000000 + 80010ee: 6058 str r0, [r3, #4] + 80010f0: 2d03 cmp r5, #3 + 80010f2: f103 0028 add.w r0, r3, #40 ; 0x28 + 80010f6: f105 0501 add.w r5, r5, #1 + 80010fa: e9c3 2208 strd r2, r2, [r3, #32] + 80010fe: f847 3b04 str.w r3, [r7], #4 + 8001102: bf14 ite ne + 8001104: 60d8 strne r0, [r3, #12] + 8001106: 60de streq r6, [r3, #12] + 8001108: 2d04 cmp r5, #4 + 800110a: 4603 mov r3, r0 + 800110c: d1e4 bne.n 80010d8 + 800110e: 2000 movs r0, #0 + 8001110: e9c4 0017 strd r0, r0, [r4, #92] ; 0x5c + 8001114: e9c4 001a strd r0, r0, [r4, #104] ; 0x68 + 8001118: 6862 ldr r2, [r4, #4] + 800111a: 65a0 str r0, [r4, #88] ; 0x58 + 800111c: 4b0f ldr r3, [pc, #60] ; (800115c ) + 800111e: 60ce str r6, [r1, #12] + 8001120: 8891 ldrh r1, [r2, #4] + 8001122: 6419 str r1, [r3, #64] ; 0x40 + 8001124: 6812 ldr r2, [r2, #0] + 8001126: 645a str r2, [r3, #68] ; 0x44 + 8001128: 2310 movs r3, #16 + 800112a: f8c4 0088 str.w r0, [r4, #136] ; 0x88 + 800112e: f8c4 3084 str.w r3, [r4, #132] ; 0x84 + 8001132: b027 add sp, #156 ; 0x9c + 8001134: bdf0 pop {r4, r5, r6, r7, pc} + 8001136: f7ff fcd3 bl 8000ae0 + 800113a: 1b80 subs r0, r0, r6 + 800113c: f5b0 7ffa cmp.w r0, #500 ; 0x1f4 + 8001140: f67f af52 bls.w 8000fe8 + 8001144: 2304 movs r3, #4 + 8001146: f8c4 3088 str.w r3, [r4, #136] ; 0x88 + 800114a: 23e0 movs r3, #224 ; 0xe0 + 800114c: f8c4 3084 str.w r3, [r4, #132] ; 0x84 + 8001150: 2001 movs r0, #1 + 8001152: e7ee b.n 8001132 + 8001154: 40023800 .word 0x40023800 + 8001158: 40013800 .word 0x40013800 + 800115c: 40028000 .word 0x40028000 + +08001160 : + 8001160: f8d0 3084 ldr.w r3, [r0, #132] ; 0x84 + 8001164: 2b10 cmp r3, #16 + 8001166: b570 push {r4, r5, r6, lr} + 8001168: 4604 mov r4, r0 + 800116a: d12d bne.n 80011c8 + 800116c: 2304 movs r3, #4 + 800116e: 2523 movs r5, #35 ; 0x23 + 8001170: 66c3 str r3, [r0, #108] ; 0x6c + 8001172: f8c0 5084 str.w r5, [r0, #132] ; 0x84 + 8001176: f7ff fec1 bl 8000efc + 800117a: 6823 ldr r3, [r4, #0] + 800117c: 681a ldr r2, [r3, #0] + 800117e: f042 0208 orr.w r2, r2, #8 + 8001182: 601a str r2, [r3, #0] + 8001184: 2001 movs r0, #1 + 8001186: 681e ldr r6, [r3, #0] + 8001188: f7ff fcb0 bl 8000aec + 800118c: 6823 ldr r3, [r4, #0] + 800118e: 601e str r6, [r3, #0] + 8001190: 681a ldr r2, [r3, #0] + 8001192: f042 0204 orr.w r2, r2, #4 + 8001196: 601a str r2, [r3, #0] + 8001198: 2001 movs r0, #1 + 800119a: 681e ldr r6, [r3, #0] + 800119c: f7ff fca6 bl 8000aec + 80011a0: 6823 ldr r3, [r4, #0] + 80011a2: 4620 mov r0, r4 + 80011a4: 601e str r6, [r3, #0] + 80011a6: f7ff fe91 bl 8000ecc + 80011aa: 6823 ldr r3, [r4, #0] + 80011ac: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80011b0: 2000 movs r0, #0 + 80011b2: 699a ldr r2, [r3, #24] + 80011b4: f442 5200 orr.w r2, r2, #8192 ; 0x2000 + 80011b8: 619a str r2, [r3, #24] + 80011ba: 699a ldr r2, [r3, #24] + 80011bc: f042 0202 orr.w r2, r2, #2 + 80011c0: 619a str r2, [r3, #24] + 80011c2: f8c4 5084 str.w r5, [r4, #132] ; 0x84 + 80011c6: bd70 pop {r4, r5, r6, pc} + 80011c8: 2001 movs r0, #1 + 80011ca: e7fc b.n 80011c6 + +080011cc : + 80011cc: b538 push {r3, r4, r5, lr} + 80011ce: f8d0 3084 ldr.w r3, [r0, #132] ; 0x84 + 80011d2: 2b23 cmp r3, #35 ; 0x23 + 80011d4: 4604 mov r4, r0 + 80011d6: d129 bne.n 800122c + 80011d8: f8c0 3084 str.w r3, [r0, #132] ; 0x84 + 80011dc: 6803 ldr r3, [r0, #0] + 80011de: f503 5280 add.w r2, r3, #4096 ; 0x1000 + 80011e2: 2001 movs r0, #1 + 80011e4: 6991 ldr r1, [r2, #24] + 80011e6: f421 5100 bic.w r1, r1, #8192 ; 0x2000 + 80011ea: 6191 str r1, [r2, #24] + 80011ec: 6991 ldr r1, [r2, #24] + 80011ee: f021 0102 bic.w r1, r1, #2 + 80011f2: 6191 str r1, [r2, #24] + 80011f4: 681a ldr r2, [r3, #0] + 80011f6: f022 0204 bic.w r2, r2, #4 + 80011fa: 601a str r2, [r3, #0] + 80011fc: 681d ldr r5, [r3, #0] + 80011fe: f7ff fc75 bl 8000aec + 8001202: 6823 ldr r3, [r4, #0] + 8001204: 4620 mov r0, r4 + 8001206: 601d str r5, [r3, #0] + 8001208: f7ff fe60 bl 8000ecc + 800120c: 6823 ldr r3, [r4, #0] + 800120e: 681a ldr r2, [r3, #0] + 8001210: f022 0208 bic.w r2, r2, #8 + 8001214: 601a str r2, [r3, #0] + 8001216: 2001 movs r0, #1 + 8001218: 681d ldr r5, [r3, #0] + 800121a: f7ff fc67 bl 8000aec + 800121e: 6823 ldr r3, [r4, #0] + 8001220: 601d str r5, [r3, #0] + 8001222: 2310 movs r3, #16 + 8001224: f8c4 3084 str.w r3, [r4, #132] ; 0x84 + 8001228: 2000 movs r0, #0 + 800122a: bd38 pop {r3, r4, r5, pc} + 800122c: 2001 movs r0, #1 + 800122e: e7fc b.n 800122a + +08001230 : + 8001230: b5f8 push {r3, r4, r5, r6, r7, lr} + 8001232: 4604 mov r4, r0 + 8001234: 4615 mov r5, r2 + 8001236: b939 cbnz r1, 8001248 + 8001238: f8d0 3088 ldr.w r3, [r0, #136] ; 0x88 + 800123c: f043 0301 orr.w r3, r3, #1 + 8001240: f8c4 3088 str.w r3, [r4, #136] ; 0x88 + 8001244: 2001 movs r0, #1 + 8001246: e027 b.n 8001298 + 8001248: f8d0 3084 ldr.w r3, [r0, #132] ; 0x84 + 800124c: 2b23 cmp r3, #35 ; 0x23 + 800124e: d1f9 bne.n 8001244 + 8001250: 2200 movs r2, #0 + 8001252: f7ff fcb7 bl 8000bc4 + 8001256: b120 cbz r0, 8001262 + 8001258: f8d4 3088 ldr.w r3, [r4, #136] ; 0x88 + 800125c: f043 0302 orr.w r3, r3, #2 + 8001260: e7ee b.n 8001240 + 8001262: f3bf 8f4f dsb sy + 8001266: 6aa3 ldr r3, [r4, #40] ; 0x28 + 8001268: 1d9a adds r2, r3, #6 + 800126a: f854 7022 ldr.w r7, [r4, r2, lsl #2] + 800126e: 1c5a adds r2, r3, #1 + 8001270: 2a03 cmp r2, #3 + 8001272: bf86 itte hi + 8001274: 3b03 subhi r3, #3 + 8001276: 62a3 strhi r3, [r4, #40] ; 0x28 + 8001278: 62a2 strls r2, [r4, #40] ; 0x28 + 800127a: 6aa2 ldr r2, [r4, #40] ; 0x28 + 800127c: 6823 ldr r3, [r4, #0] + 800127e: 3206 adds r2, #6 + 8001280: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8001284: f854 2022 ldr.w r2, [r4, r2, lsl #2] + 8001288: 605a str r2, [r3, #4] + 800128a: f7ff fc29 bl 8000ae0 + 800128e: 4606 mov r6, r0 + 8001290: 683b ldr r3, [r7, #0] + 8001292: 2b00 cmp r3, #0 + 8001294: db01 blt.n 800129a + 8001296: 2000 movs r0, #0 + 8001298: bdf8 pop {r3, r4, r5, r6, r7, pc} + 800129a: 6823 ldr r3, [r4, #0] + 800129c: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80012a0: 695a ldr r2, [r3, #20] + 80012a2: 0492 lsls r2, r2, #18 + 80012a4: d509 bpl.n 80012ba + 80012a6: f8d4 2088 ldr.w r2, [r4, #136] ; 0x88 + 80012aa: f042 0208 orr.w r2, r2, #8 + 80012ae: f8c4 2088 str.w r2, [r4, #136] ; 0x88 + 80012b2: 695b ldr r3, [r3, #20] + 80012b4: f8c4 308c str.w r3, [r4, #140] ; 0x8c + 80012b8: e7c4 b.n 8001244 + 80012ba: 1c6b adds r3, r5, #1 + 80012bc: d0e8 beq.n 8001290 + 80012be: f7ff fc0f bl 8000ae0 + 80012c2: 1b80 subs r0, r0, r6 + 80012c4: 42a8 cmp r0, r5 + 80012c6: d801 bhi.n 80012cc + 80012c8: 2d00 cmp r5, #0 + 80012ca: d1e1 bne.n 8001290 + 80012cc: f8d4 3088 ldr.w r3, [r4, #136] ; 0x88 + 80012d0: f043 0304 orr.w r3, r3, #4 + 80012d4: f8c4 3088 str.w r3, [r4, #136] ; 0x88 + 80012d8: f04f 5340 mov.w r3, #805306368 ; 0x30000000 + 80012dc: 603b str r3, [r7, #0] + 80012de: e7b1 b.n 8001244 + +080012e0 : + 80012e0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80012e4: 4604 mov r4, r0 + 80012e6: b085 sub sp, #20 + 80012e8: 468a mov sl, r1 + 80012ea: b949 cbnz r1, 8001300 + 80012ec: f8d0 3088 ldr.w r3, [r0, #136] ; 0x88 + 80012f0: f043 0301 orr.w r3, r3, #1 + 80012f4: f8c0 3088 str.w r3, [r0, #136] ; 0x88 + 80012f8: 2001 movs r0, #1 + 80012fa: b005 add sp, #20 + 80012fc: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8001300: f8d0 3084 ldr.w r3, [r0, #132] ; 0x84 + 8001304: 2b23 cmp r3, #35 ; 0x23 + 8001306: d1f7 bne.n 80012f8 + 8001308: f8d0 905c ldr.w r9, [r0, #92] ; 0x5c + 800130c: f109 0312 add.w r3, r9, #18 + 8001310: f04f 0800 mov.w r8, #0 + 8001314: f850 5023 ldr.w r5, [r0, r3, lsl #2] + 8001318: 6ec3 ldr r3, [r0, #108] ; 0x6c + 800131a: f1c3 0304 rsb r3, r3, #4 + 800131e: f100 0180 add.w r1, r0, #128 ; 0x80 + 8001322: 9301 str r3, [sp, #4] + 8001324: 4646 mov r6, r8 + 8001326: 307c adds r0, #124 ; 0x7c + 8001328: 46c3 mov fp, r8 + 800132a: 682b ldr r3, [r5, #0] + 800132c: 2b00 cmp r3, #0 + 800132e: db05 blt.n 800133c + 8001330: 9b01 ldr r3, [sp, #4] + 8001332: 429e cmp r6, r3 + 8001334: d002 beq.n 800133c + 8001336: f1b8 0f00 cmp.w r8, #0 + 800133a: d011 beq.n 8001360 + 800133c: 6ee3 ldr r3, [r4, #108] ; 0x6c + 800133e: 441e add r6, r3 + 8001340: 66e6 str r6, [r4, #108] ; 0x6c + 8001342: b116 cbz r6, 800134a + 8001344: 4620 mov r0, r4 + 8001346: f7ff fdd9 bl 8000efc + 800134a: f8c4 905c str.w r9, [r4, #92] ; 0x5c + 800134e: f1b8 0f00 cmp.w r8, #0 + 8001352: d0d1 beq.n 80012f8 + 8001354: 6fe3 ldr r3, [r4, #124] ; 0x7c + 8001356: f8ca 3000 str.w r3, [sl] + 800135a: 2000 movs r0, #0 + 800135c: 67e0 str r0, [r4, #124] ; 0x7c + 800135e: e7cc b.n 80012fa + 8001360: 682b ldr r3, [r5, #0] + 8001362: 05db lsls r3, r3, #23 + 8001364: bf41 itttt mi + 8001366: 69ab ldrmi r3, [r5, #24] + 8001368: 67a3 strmi r3, [r4, #120] ; 0x78 + 800136a: 69eb ldrmi r3, [r5, #28] + 800136c: 6763 strmi r3, [r4, #116] ; 0x74 + 800136e: 682b ldr r3, [r5, #0] + 8001370: 059f lsls r7, r3, #22 + 8001372: d401 bmi.n 8001378 + 8001374: 6fe3 ldr r3, [r4, #124] ; 0x7c + 8001376: b31b cbz r3, 80013c0 + 8001378: 682b ldr r3, [r5, #0] + 800137a: 059a lsls r2, r3, #22 + 800137c: 682b ldr r3, [r5, #0] + 800137e: bf48 it mi + 8001380: e9c4 bb18 strdmi fp, fp, [r4, #96] ; 0x60 + 8001384: 05db lsls r3, r3, #23 + 8001386: bf4a itet mi + 8001388: 682f ldrmi r7, [r5, #0] + 800138a: 6967 ldrpl r7, [r4, #20] + 800138c: 682b ldrmi r3, [r5, #0] + 800138e: 68aa ldr r2, [r5, #8] + 8001390: bf42 ittt mi + 8001392: 6723 strmi r3, [r4, #112] ; 0x70 + 8001394: f3c7 470d ubfxmi r7, r7, #16, #14 + 8001398: 3f04 submi r7, #4 + 800139a: b2bb uxth r3, r7 + 800139c: 622a str r2, [r5, #32] + 800139e: e9cd 0102 strd r0, r1, [sp, #8] + 80013a2: bf48 it mi + 80013a4: f04f 0801 movmi.w r8, #1 + 80013a8: f000 ffb0 bl 800230c + 80013ac: 6e23 ldr r3, [r4, #96] ; 0x60 + 80013ae: 3301 adds r3, #1 + 80013b0: 6623 str r3, [r4, #96] ; 0x60 + 80013b2: 6e63 ldr r3, [r4, #100] ; 0x64 + 80013b4: e9dd 0102 ldrd r0, r1, [sp, #8] + 80013b8: 443b add r3, r7 + 80013ba: 6663 str r3, [r4, #100] ; 0x64 + 80013bc: f8c5 b020 str.w fp, [r5, #32] + 80013c0: f109 0301 add.w r3, r9, #1 + 80013c4: 2b03 cmp r3, #3 + 80013c6: bf88 it hi + 80013c8: f1a9 0303 subhi.w r3, r9, #3 + 80013cc: f103 0212 add.w r2, r3, #18 + 80013d0: 3601 adds r6, #1 + 80013d2: f854 5022 ldr.w r5, [r4, r2, lsl #2] + 80013d6: 4699 mov r9, r3 + 80013d8: e7a7 b.n 800132a + +080013da : + 80013da: b5f8 push {r3, r4, r5, r6, r7, lr} + 80013dc: 4605 mov r5, r0 + 80013de: 6800 ldr r0, [r0, #0] + 80013e0: 461e mov r6, r3 + 80013e2: 6903 ldr r3, [r0, #16] + 80013e4: 0192 lsls r2, r2, #6 + 80013e6: f402 64f8 and.w r4, r2, #1984 ; 0x7c0 + 80013ea: f003 021c and.w r2, r3, #28 + 80013ee: 4322 orrs r2, r4 + 80013f0: 02cc lsls r4, r1, #11 + 80013f2: b2a4 uxth r4, r4 + 80013f4: 4314 orrs r4, r2 + 80013f6: f044 0401 orr.w r4, r4, #1 + 80013fa: 6104 str r4, [r0, #16] + 80013fc: f7ff fb70 bl 8000ae0 + 8001400: 4607 mov r7, r0 + 8001402: f014 0401 ands.w r4, r4, #1 + 8001406: d105 bne.n 8001414 + 8001408: 682b ldr r3, [r5, #0] + 800140a: 695b ldr r3, [r3, #20] + 800140c: b29b uxth r3, r3 + 800140e: 6033 str r3, [r6, #0] + 8001410: 4620 mov r0, r4 + 8001412: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8001414: f7ff fb64 bl 8000ae0 + 8001418: 1bc0 subs r0, r0, r7 + 800141a: f5b0 3f80 cmp.w r0, #65536 ; 0x10000 + 800141e: d202 bcs.n 8001426 + 8001420: 682b ldr r3, [r5, #0] + 8001422: 691c ldr r4, [r3, #16] + 8001424: e7ed b.n 8001402 + 8001426: 2001 movs r0, #1 + 8001428: e7f3 b.n 8001412 + +0800142a : + 800142a: b570 push {r4, r5, r6, lr} + 800142c: 4605 mov r5, r0 + 800142e: 6800 ldr r0, [r0, #0] + 8001430: 6906 ldr r6, [r0, #16] + 8001432: 0192 lsls r2, r2, #6 + 8001434: f402 64f8 and.w r4, r2, #1984 ; 0x7c0 + 8001438: f006 021c and.w r2, r6, #28 + 800143c: 4322 orrs r2, r4 + 800143e: 02cc lsls r4, r1, #11 + 8001440: b2a4 uxth r4, r4 + 8001442: 4314 orrs r4, r2 + 8001444: b29b uxth r3, r3 + 8001446: f044 0403 orr.w r4, r4, #3 + 800144a: 6143 str r3, [r0, #20] + 800144c: 6104 str r4, [r0, #16] + 800144e: f7ff fb47 bl 8000ae0 + 8001452: 4606 mov r6, r0 + 8001454: f014 0401 ands.w r4, r4, #1 + 8001458: d101 bne.n 800145e + 800145a: 4620 mov r0, r4 + 800145c: bd70 pop {r4, r5, r6, pc} + 800145e: f7ff fb3f bl 8000ae0 + 8001462: 1b80 subs r0, r0, r6 + 8001464: f5b0 3f80 cmp.w r0, #65536 ; 0x10000 + 8001468: d202 bcs.n 8001470 + 800146a: 682b ldr r3, [r5, #0] + 800146c: 691c ldr r4, [r3, #16] + 800146e: e7f1 b.n 8001454 + 8001470: 2001 movs r0, #1 + 8001472: e7f3 b.n 800145c + +08001474 : + 8001474: 2900 cmp r1, #0 + 8001476: d05d beq.n 8001534 + 8001478: 6803 ldr r3, [r0, #0] + 800147a: 681a ldr r2, [r3, #0] + 800147c: f3c2 1200 ubfx r2, r2, #4, #1 + 8001480: f881 2028 strb.w r2, [r1, #40] ; 0x28 + 8001484: 681a ldr r2, [r3, #0] + 8001486: f002 0260 and.w r2, r2, #96 ; 0x60 + 800148a: 624a str r2, [r1, #36] ; 0x24 + 800148c: 681a ldr r2, [r3, #0] + 800148e: f482 7200 eor.w r2, r2, #512 ; 0x200 + 8001492: f3c2 2240 ubfx r2, r2, #9, #1 + 8001496: f881 2020 strb.w r2, [r1, #32] + 800149a: 681a ldr r2, [r3, #0] + 800149c: f3c2 4200 ubfx r2, r2, #16, #1 + 80014a0: 77ca strb r2, [r1, #31] + 80014a2: 681a ldr r2, [r3, #0] + 80014a4: f482 5200 eor.w r2, r2, #8192 ; 0x2000 + 80014a8: f3c2 3240 ubfx r2, r2, #13, #1 + 80014ac: 778a strb r2, [r1, #30] + 80014ae: 681a ldr r2, [r3, #0] + 80014b0: f3c2 3200 ubfx r2, r2, #12, #1 + 80014b4: 770a strb r2, [r1, #28] + 80014b6: 681a ldr r2, [r3, #0] + 80014b8: f402 6200 and.w r2, r2, #2048 ; 0x800 + 80014bc: 618a str r2, [r1, #24] + 80014be: 681a ldr r2, [r3, #0] + 80014c0: f402 4280 and.w r2, r2, #16384 ; 0x4000 + 80014c4: 614a str r2, [r1, #20] + 80014c6: 681a ldr r2, [r3, #0] + 80014c8: f482 0280 eor.w r2, r2, #4194304 ; 0x400000 + 80014cc: f3c2 5280 ubfx r2, r2, #22, #1 + 80014d0: 744a strb r2, [r1, #17] + 80014d2: 681a ldr r2, [r3, #0] + 80014d4: f482 0200 eor.w r2, r2, #8388608 ; 0x800000 + 80014d8: f3c2 52c0 ubfx r2, r2, #23, #1 + 80014dc: 740a strb r2, [r1, #16] + 80014de: 681a ldr r2, [r3, #0] + 80014e0: f3c2 12c0 ubfx r2, r2, #7, #1 + 80014e4: 73ca strb r2, [r1, #15] + 80014e6: 681a ldr r2, [r3, #0] + 80014e8: f402 2260 and.w r2, r2, #917504 ; 0xe0000 + 80014ec: 608a str r2, [r1, #8] + 80014ee: 681a ldr r2, [r3, #0] + 80014f0: f3c2 2280 ubfx r2, r2, #10, #1 + 80014f4: 710a strb r2, [r1, #4] + 80014f6: 699a ldr r2, [r3, #24] + 80014f8: f3c2 0240 ubfx r2, r2, #1, #1 + 80014fc: f881 2054 strb.w r2, [r1, #84] ; 0x54 + 8001500: 699a ldr r2, [r3, #24] + 8001502: f082 0280 eor.w r2, r2, #128 ; 0x80 + 8001506: f3c2 12c0 ubfx r2, r2, #7, #1 + 800150a: f881 204c strb.w r2, [r1, #76] ; 0x4c + 800150e: 699a ldr r2, [r3, #24] + 8001510: f002 0230 and.w r2, r2, #48 ; 0x30 + 8001514: 650a str r2, [r1, #80] ; 0x50 + 8001516: 699a ldr r2, [r3, #24] + 8001518: 0c12 lsrs r2, r2, #16 + 800151a: 648a str r2, [r1, #72] ; 0x48 + 800151c: 699a ldr r2, [r3, #24] + 800151e: f3c2 0280 ubfx r2, r2, #2, #1 + 8001522: f881 2056 strb.w r2, [r1, #86] ; 0x56 + 8001526: 699b ldr r3, [r3, #24] + 8001528: f3c3 03c0 ubfx r3, r3, #3, #1 + 800152c: f881 3055 strb.w r3, [r1, #85] ; 0x55 + 8001530: 2000 movs r0, #0 + 8001532: 4770 bx lr + 8001534: 2001 movs r0, #1 + 8001536: 4770 bx lr + +08001538 : + 8001538: b508 push {r3, lr} + 800153a: b139 cbz r1, 800154c + 800153c: f8d0 3084 ldr.w r3, [r0, #132] ; 0x84 + 8001540: 2b10 cmp r3, #16 + 8001542: d103 bne.n 800154c + 8001544: f7ff fbe8 bl 8000d18 + 8001548: 2000 movs r0, #0 + 800154a: bd08 pop {r3, pc} + 800154c: 2001 movs r0, #1 + 800154e: e7fc b.n 800154a + +08001550 : + 8001550: b538 push {r3, r4, r5, lr} + 8001552: 6803 ldr r3, [r0, #0] + 8001554: 4605 mov r5, r0 + 8001556: 691c ldr r4, [r3, #16] + 8001558: f000 fb9a bl 8001c90 + 800155c: 4b11 ldr r3, [pc, #68] ; (80015a4 ) + 800155e: 4a12 ldr r2, [pc, #72] ; (80015a8 ) + 8001560: 4403 add r3, r0 + 8001562: 4293 cmp r3, r2 + 8001564: f024 041c bic.w r4, r4, #28 + 8001568: d204 bcs.n 8001574 + 800156a: f044 0408 orr.w r4, r4, #8 + 800156e: 682b ldr r3, [r5, #0] + 8001570: 611c str r4, [r3, #16] + 8001572: bd38 pop {r3, r4, r5, pc} + 8001574: 4b0d ldr r3, [pc, #52] ; (80015ac ) + 8001576: 4a0e ldr r2, [pc, #56] ; (80015b0 ) + 8001578: 4403 add r3, r0 + 800157a: 4293 cmp r3, r2 + 800157c: d802 bhi.n 8001584 + 800157e: f044 040c orr.w r4, r4, #12 + 8001582: e7f4 b.n 800156e + 8001584: 4b0b ldr r3, [pc, #44] ; (80015b4 ) + 8001586: 4a0c ldr r2, [pc, #48] ; (80015b8 ) + 8001588: 4403 add r3, r0 + 800158a: 4293 cmp r3, r2 + 800158c: d3ef bcc.n 800156e + 800158e: 4b0b ldr r3, [pc, #44] ; (80015bc ) + 8001590: 4a0b ldr r2, [pc, #44] ; (80015c0 ) + 8001592: 4403 add r3, r0 + 8001594: 4293 cmp r3, r2 + 8001596: bf94 ite ls + 8001598: f044 0404 orrls.w r4, r4, #4 + 800159c: f044 0410 orrhi.w r4, r4, #16 + 80015a0: e7e5 b.n 800156e + 80015a2: bf00 nop + 80015a4: feced300 .word 0xfeced300 + 80015a8: 00e4e1c0 .word 0x00e4e1c0 + 80015ac: fde9f140 .word 0xfde9f140 + 80015b0: 017d783f .word 0x017d783f + 80015b4: fc6c7900 .word 0xfc6c7900 + 80015b8: 02625a00 .word 0x02625a00 + 80015bc: fa0a1f00 .word 0xfa0a1f00 + 80015c0: 02faf07f .word 0x02faf07f + +080015c4 : + 80015c4: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80015c8: f8df 91c0 ldr.w r9, [pc, #448] ; 800178c + 80015cc: 4a6d ldr r2, [pc, #436] ; (8001784 ) + 80015ce: 2300 movs r3, #0 + 80015d0: 680d ldr r5, [r1, #0] + 80015d2: 2401 movs r4, #1 + 80015d4: 409c lsls r4, r3 + 80015d6: ea04 0c05 and.w ip, r4, r5 + 80015da: 43ac bics r4, r5 + 80015dc: f040 80b9 bne.w 8001752 + 80015e0: 684d ldr r5, [r1, #4] + 80015e2: f005 0403 and.w r4, r5, #3 + 80015e6: ea4f 0843 mov.w r8, r3, lsl #1 + 80015ea: 2603 movs r6, #3 + 80015ec: 1e67 subs r7, r4, #1 + 80015ee: fa06 f608 lsl.w r6, r6, r8 + 80015f2: 2f01 cmp r7, #1 + 80015f4: ea6f 0606 mvn.w r6, r6 + 80015f8: d834 bhi.n 8001664 + 80015fa: 6887 ldr r7, [r0, #8] + 80015fc: ea07 0e06 and.w lr, r7, r6 + 8001600: 68cf ldr r7, [r1, #12] + 8001602: fa07 f708 lsl.w r7, r7, r8 + 8001606: ea47 070e orr.w r7, r7, lr + 800160a: 6087 str r7, [r0, #8] + 800160c: 6847 ldr r7, [r0, #4] + 800160e: ea27 0e0c bic.w lr, r7, ip + 8001612: f3c5 1700 ubfx r7, r5, #4, #1 + 8001616: 409f lsls r7, r3 + 8001618: ea47 070e orr.w r7, r7, lr + 800161c: 6047 str r7, [r0, #4] + 800161e: 68c7 ldr r7, [r0, #12] + 8001620: ea07 0e06 and.w lr, r7, r6 + 8001624: 688f ldr r7, [r1, #8] + 8001626: fa07 f708 lsl.w r7, r7, r8 + 800162a: ea47 070e orr.w r7, r7, lr + 800162e: 2c02 cmp r4, #2 + 8001630: 60c7 str r7, [r0, #12] + 8001632: d119 bne.n 8001668 + 8001634: ea4f 0ad3 mov.w sl, r3, lsr #3 + 8001638: eb00 0a8a add.w sl, r0, sl, lsl #2 + 800163c: f003 0b07 and.w fp, r3, #7 + 8001640: f8da 7020 ldr.w r7, [sl, #32] + 8001644: ea4f 0b8b mov.w fp, fp, lsl #2 + 8001648: f04f 0e0f mov.w lr, #15 + 800164c: fa0e fe0b lsl.w lr, lr, fp + 8001650: ea27 0e0e bic.w lr, r7, lr + 8001654: 690f ldr r7, [r1, #16] + 8001656: fa07 f70b lsl.w r7, r7, fp + 800165a: ea47 070e orr.w r7, r7, lr + 800165e: f8ca 7020 str.w r7, [sl, #32] + 8001662: e001 b.n 8001668 + 8001664: 2c03 cmp r4, #3 + 8001666: d1da bne.n 800161e + 8001668: 6807 ldr r7, [r0, #0] + 800166a: fa04 f408 lsl.w r4, r4, r8 + 800166e: 403e ands r6, r7 + 8001670: 4326 orrs r6, r4 + 8001672: f415 3f40 tst.w r5, #196608 ; 0x30000 + 8001676: 6006 str r6, [r0, #0] + 8001678: d06b beq.n 8001752 + 800167a: f04f 0a00 mov.w sl, #0 + 800167e: f8cd a004 str.w sl, [sp, #4] + 8001682: f8d9 6044 ldr.w r6, [r9, #68] ; 0x44 + 8001686: 4c40 ldr r4, [pc, #256] ; (8001788 ) + 8001688: f446 4680 orr.w r6, r6, #16384 ; 0x4000 + 800168c: f8c9 6044 str.w r6, [r9, #68] ; 0x44 + 8001690: f8d9 6044 ldr.w r6, [r9, #68] ; 0x44 + 8001694: f406 4680 and.w r6, r6, #16384 ; 0x4000 + 8001698: 9601 str r6, [sp, #4] + 800169a: 9e01 ldr r6, [sp, #4] + 800169c: f023 0603 bic.w r6, r3, #3 + 80016a0: f106 4680 add.w r6, r6, #1073741824 ; 0x40000000 + 80016a4: f506 369c add.w r6, r6, #79872 ; 0x13800 + 80016a8: f003 0e03 and.w lr, r3, #3 + 80016ac: f8d6 8008 ldr.w r8, [r6, #8] + 80016b0: ea4f 0e8e mov.w lr, lr, lsl #2 + 80016b4: 270f movs r7, #15 + 80016b6: fa07 f70e lsl.w r7, r7, lr + 80016ba: 42a0 cmp r0, r4 + 80016bc: ea28 0707 bic.w r7, r8, r7 + 80016c0: d04e beq.n 8001760 + 80016c2: f504 6480 add.w r4, r4, #1024 ; 0x400 + 80016c6: 42a0 cmp r0, r4 + 80016c8: d04c beq.n 8001764 + 80016ca: f504 6480 add.w r4, r4, #1024 ; 0x400 + 80016ce: 42a0 cmp r0, r4 + 80016d0: d04a beq.n 8001768 + 80016d2: f504 6480 add.w r4, r4, #1024 ; 0x400 + 80016d6: 42a0 cmp r0, r4 + 80016d8: d048 beq.n 800176c + 80016da: f504 6480 add.w r4, r4, #1024 ; 0x400 + 80016de: 42a0 cmp r0, r4 + 80016e0: d046 beq.n 8001770 + 80016e2: f504 6480 add.w r4, r4, #1024 ; 0x400 + 80016e6: 42a0 cmp r0, r4 + 80016e8: d044 beq.n 8001774 + 80016ea: f504 6480 add.w r4, r4, #1024 ; 0x400 + 80016ee: 42a0 cmp r0, r4 + 80016f0: d042 beq.n 8001778 + 80016f2: f504 6480 add.w r4, r4, #1024 ; 0x400 + 80016f6: 42a0 cmp r0, r4 + 80016f8: d040 beq.n 800177c + 80016fa: f504 6480 add.w r4, r4, #1024 ; 0x400 + 80016fe: 42a0 cmp r0, r4 + 8001700: d03e beq.n 8001780 + 8001702: f504 6480 add.w r4, r4, #1024 ; 0x400 + 8001706: 42a0 cmp r0, r4 + 8001708: bf0c ite eq + 800170a: 2409 moveq r4, #9 + 800170c: 240a movne r4, #10 + 800170e: fa04 f40e lsl.w r4, r4, lr + 8001712: 433c orrs r4, r7 + 8001714: 60b4 str r4, [r6, #8] + 8001716: 6894 ldr r4, [r2, #8] + 8001718: ea6f 060c mvn.w r6, ip + 800171c: 02ef lsls r7, r5, #11 + 800171e: bf54 ite pl + 8001720: 4034 andpl r4, r6 + 8001722: ea4c 0404 orrmi.w r4, ip, r4 + 8001726: 6094 str r4, [r2, #8] + 8001728: 68d4 ldr r4, [r2, #12] + 800172a: 02af lsls r7, r5, #10 + 800172c: bf54 ite pl + 800172e: 4034 andpl r4, r6 + 8001730: ea4c 0404 orrmi.w r4, ip, r4 + 8001734: 60d4 str r4, [r2, #12] + 8001736: 6854 ldr r4, [r2, #4] + 8001738: 03af lsls r7, r5, #14 + 800173a: bf54 ite pl + 800173c: 4034 andpl r4, r6 + 800173e: ea4c 0404 orrmi.w r4, ip, r4 + 8001742: 6054 str r4, [r2, #4] + 8001744: 6814 ldr r4, [r2, #0] + 8001746: 03ed lsls r5, r5, #15 + 8001748: bf54 ite pl + 800174a: 4034 andpl r4, r6 + 800174c: ea4c 0404 orrmi.w r4, ip, r4 + 8001750: 6014 str r4, [r2, #0] + 8001752: 3301 adds r3, #1 + 8001754: 2b10 cmp r3, #16 + 8001756: f47f af3b bne.w 80015d0 + 800175a: b003 add sp, #12 + 800175c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8001760: 4654 mov r4, sl + 8001762: e7d4 b.n 800170e + 8001764: 2401 movs r4, #1 + 8001766: e7d2 b.n 800170e + 8001768: 2402 movs r4, #2 + 800176a: e7d0 b.n 800170e + 800176c: 2403 movs r4, #3 + 800176e: e7ce b.n 800170e + 8001770: 2404 movs r4, #4 + 8001772: e7cc b.n 800170e + 8001774: 2405 movs r4, #5 + 8001776: e7ca b.n 800170e + 8001778: 2406 movs r4, #6 + 800177a: e7c8 b.n 800170e + 800177c: 2407 movs r4, #7 + 800177e: e7c6 b.n 800170e + 8001780: 2408 movs r4, #8 + 8001782: e7c4 b.n 800170e + 8001784: 40013c00 .word 0x40013c00 + 8001788: 40020000 .word 0x40020000 + 800178c: 40023800 .word 0x40023800 + +08001790 : + 8001790: b10a cbz r2, 8001796 + 8001792: 6181 str r1, [r0, #24] + 8001794: 4770 bx lr + 8001796: 0409 lsls r1, r1, #16 + 8001798: e7fb b.n 8001792 + ... + +0800179c : + 800179c: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr} + 80017a0: 4604 mov r4, r0 + 80017a2: b340 cbz r0, 80017f6 + 80017a4: 6803 ldr r3, [r0, #0] + 80017a6: 07dd lsls r5, r3, #31 + 80017a8: d410 bmi.n 80017cc + 80017aa: 6823 ldr r3, [r4, #0] + 80017ac: 0798 lsls r0, r3, #30 + 80017ae: d45e bmi.n 800186e + 80017b0: 6823 ldr r3, [r4, #0] + 80017b2: 071a lsls r2, r3, #28 + 80017b4: f100 80a0 bmi.w 80018f8 + 80017b8: 6823 ldr r3, [r4, #0] + 80017ba: 075b lsls r3, r3, #29 + 80017bc: f100 80c0 bmi.w 8001940 + 80017c0: 69a0 ldr r0, [r4, #24] + 80017c2: 2800 cmp r0, #0 + 80017c4: f040 8128 bne.w 8001a18 + 80017c8: 2000 movs r0, #0 + 80017ca: e02b b.n 8001824 + 80017cc: 4b8f ldr r3, [pc, #572] ; (8001a0c ) + 80017ce: 689a ldr r2, [r3, #8] + 80017d0: f002 020c and.w r2, r2, #12 + 80017d4: 2a04 cmp r2, #4 + 80017d6: d007 beq.n 80017e8 + 80017d8: 689a ldr r2, [r3, #8] + 80017da: f002 020c and.w r2, r2, #12 + 80017de: 2a08 cmp r2, #8 + 80017e0: d10b bne.n 80017fa + 80017e2: 685a ldr r2, [r3, #4] + 80017e4: 0251 lsls r1, r2, #9 + 80017e6: d508 bpl.n 80017fa + 80017e8: 4b88 ldr r3, [pc, #544] ; (8001a0c ) + 80017ea: 681b ldr r3, [r3, #0] + 80017ec: 039a lsls r2, r3, #14 + 80017ee: d5dc bpl.n 80017aa + 80017f0: 6863 ldr r3, [r4, #4] + 80017f2: 2b00 cmp r3, #0 + 80017f4: d1d9 bne.n 80017aa + 80017f6: 2001 movs r0, #1 + 80017f8: e014 b.n 8001824 + 80017fa: 6862 ldr r2, [r4, #4] + 80017fc: f5b2 3f80 cmp.w r2, #65536 ; 0x10000 + 8001800: d113 bne.n 800182a + 8001802: 681a ldr r2, [r3, #0] + 8001804: f442 3280 orr.w r2, r2, #65536 ; 0x10000 + 8001808: 601a str r2, [r3, #0] + 800180a: f7ff f969 bl 8000ae0 + 800180e: 4e7f ldr r6, [pc, #508] ; (8001a0c ) + 8001810: 4605 mov r5, r0 + 8001812: 6833 ldr r3, [r6, #0] + 8001814: 039b lsls r3, r3, #14 + 8001816: d4c8 bmi.n 80017aa + 8001818: f7ff f962 bl 8000ae0 + 800181c: 1b40 subs r0, r0, r5 + 800181e: 2864 cmp r0, #100 ; 0x64 + 8001820: d9f7 bls.n 8001812 + 8001822: 2003 movs r0, #3 + 8001824: b002 add sp, #8 + 8001826: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800182a: 4d78 ldr r5, [pc, #480] ; (8001a0c ) + 800182c: f5b2 2fa0 cmp.w r2, #327680 ; 0x50000 + 8001830: 682b ldr r3, [r5, #0] + 8001832: d107 bne.n 8001844 + 8001834: f443 2380 orr.w r3, r3, #262144 ; 0x40000 + 8001838: 602b str r3, [r5, #0] + 800183a: 682b ldr r3, [r5, #0] + 800183c: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8001840: 602b str r3, [r5, #0] + 8001842: e7e2 b.n 800180a + 8001844: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8001848: 602b str r3, [r5, #0] + 800184a: 682b ldr r3, [r5, #0] + 800184c: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 8001850: 602b str r3, [r5, #0] + 8001852: 2a00 cmp r2, #0 + 8001854: d1d9 bne.n 800180a + 8001856: f7ff f943 bl 8000ae0 + 800185a: 4606 mov r6, r0 + 800185c: 682b ldr r3, [r5, #0] + 800185e: 039f lsls r7, r3, #14 + 8001860: d5a3 bpl.n 80017aa + 8001862: f7ff f93d bl 8000ae0 + 8001866: 1b80 subs r0, r0, r6 + 8001868: 2864 cmp r0, #100 ; 0x64 + 800186a: d9f7 bls.n 800185c + 800186c: e7d9 b.n 8001822 + 800186e: 4b67 ldr r3, [pc, #412] ; (8001a0c ) + 8001870: 689a ldr r2, [r3, #8] + 8001872: f012 0f0c tst.w r2, #12 + 8001876: d007 beq.n 8001888 + 8001878: 689a ldr r2, [r3, #8] + 800187a: f002 020c and.w r2, r2, #12 + 800187e: 2a08 cmp r2, #8 + 8001880: d111 bne.n 80018a6 + 8001882: 685b ldr r3, [r3, #4] + 8001884: 025e lsls r6, r3, #9 + 8001886: d40e bmi.n 80018a6 + 8001888: 4a60 ldr r2, [pc, #384] ; (8001a0c ) + 800188a: 6813 ldr r3, [r2, #0] + 800188c: 079d lsls r5, r3, #30 + 800188e: d502 bpl.n 8001896 + 8001890: 68e3 ldr r3, [r4, #12] + 8001892: 2b01 cmp r3, #1 + 8001894: d1af bne.n 80017f6 + 8001896: 6813 ldr r3, [r2, #0] + 8001898: 6921 ldr r1, [r4, #16] + 800189a: f023 03f8 bic.w r3, r3, #248 ; 0xf8 + 800189e: ea43 03c1 orr.w r3, r3, r1, lsl #3 + 80018a2: 6013 str r3, [r2, #0] + 80018a4: e784 b.n 80017b0 + 80018a6: 68e2 ldr r2, [r4, #12] + 80018a8: 4b59 ldr r3, [pc, #356] ; (8001a10 ) + 80018aa: b1b2 cbz r2, 80018da + 80018ac: 2201 movs r2, #1 + 80018ae: 601a str r2, [r3, #0] + 80018b0: f7ff f916 bl 8000ae0 + 80018b4: 4d55 ldr r5, [pc, #340] ; (8001a0c ) + 80018b6: 4606 mov r6, r0 + 80018b8: 682b ldr r3, [r5, #0] + 80018ba: 0798 lsls r0, r3, #30 + 80018bc: d507 bpl.n 80018ce + 80018be: 682b ldr r3, [r5, #0] + 80018c0: 6922 ldr r2, [r4, #16] + 80018c2: f023 03f8 bic.w r3, r3, #248 ; 0xf8 + 80018c6: ea43 03c2 orr.w r3, r3, r2, lsl #3 + 80018ca: 602b str r3, [r5, #0] + 80018cc: e770 b.n 80017b0 + 80018ce: f7ff f907 bl 8000ae0 + 80018d2: 1b80 subs r0, r0, r6 + 80018d4: 2802 cmp r0, #2 + 80018d6: d9ef bls.n 80018b8 + 80018d8: e7a3 b.n 8001822 + 80018da: 601a str r2, [r3, #0] + 80018dc: f7ff f900 bl 8000ae0 + 80018e0: 4e4a ldr r6, [pc, #296] ; (8001a0c ) + 80018e2: 4605 mov r5, r0 + 80018e4: 6833 ldr r3, [r6, #0] + 80018e6: 0799 lsls r1, r3, #30 + 80018e8: f57f af62 bpl.w 80017b0 + 80018ec: f7ff f8f8 bl 8000ae0 + 80018f0: 1b40 subs r0, r0, r5 + 80018f2: 2802 cmp r0, #2 + 80018f4: d9f6 bls.n 80018e4 + 80018f6: e794 b.n 8001822 + 80018f8: 6962 ldr r2, [r4, #20] + 80018fa: 4b45 ldr r3, [pc, #276] ; (8001a10 ) + 80018fc: b182 cbz r2, 8001920 + 80018fe: 2201 movs r2, #1 + 8001900: f8c3 2e80 str.w r2, [r3, #3712] ; 0xe80 + 8001904: f7ff f8ec bl 8000ae0 + 8001908: 4e40 ldr r6, [pc, #256] ; (8001a0c ) + 800190a: 4605 mov r5, r0 + 800190c: 6f73 ldr r3, [r6, #116] ; 0x74 + 800190e: 079f lsls r7, r3, #30 + 8001910: f53f af52 bmi.w 80017b8 + 8001914: f7ff f8e4 bl 8000ae0 + 8001918: 1b40 subs r0, r0, r5 + 800191a: 2802 cmp r0, #2 + 800191c: d9f6 bls.n 800190c + 800191e: e780 b.n 8001822 + 8001920: f8c3 2e80 str.w r2, [r3, #3712] ; 0xe80 + 8001924: f7ff f8dc bl 8000ae0 + 8001928: 4e38 ldr r6, [pc, #224] ; (8001a0c ) + 800192a: 4605 mov r5, r0 + 800192c: 6f73 ldr r3, [r6, #116] ; 0x74 + 800192e: 0798 lsls r0, r3, #30 + 8001930: f57f af42 bpl.w 80017b8 + 8001934: f7ff f8d4 bl 8000ae0 + 8001938: 1b40 subs r0, r0, r5 + 800193a: 2802 cmp r0, #2 + 800193c: d9f6 bls.n 800192c + 800193e: e770 b.n 8001822 + 8001940: 4b32 ldr r3, [pc, #200] ; (8001a0c ) + 8001942: 6c1a ldr r2, [r3, #64] ; 0x40 + 8001944: f012 5280 ands.w r2, r2, #268435456 ; 0x10000000 + 8001948: d128 bne.n 800199c + 800194a: 9201 str r2, [sp, #4] + 800194c: 6c1a ldr r2, [r3, #64] ; 0x40 + 800194e: f042 5280 orr.w r2, r2, #268435456 ; 0x10000000 + 8001952: 641a str r2, [r3, #64] ; 0x40 + 8001954: 6c1b ldr r3, [r3, #64] ; 0x40 + 8001956: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 800195a: 9301 str r3, [sp, #4] + 800195c: 9b01 ldr r3, [sp, #4] + 800195e: 2701 movs r7, #1 + 8001960: 4d2c ldr r5, [pc, #176] ; (8001a14 ) + 8001962: 682b ldr r3, [r5, #0] + 8001964: 05d9 lsls r1, r3, #23 + 8001966: d51b bpl.n 80019a0 + 8001968: 68a3 ldr r3, [r4, #8] + 800196a: 4d28 ldr r5, [pc, #160] ; (8001a0c ) + 800196c: 2b01 cmp r3, #1 + 800196e: d127 bne.n 80019c0 + 8001970: 6f2b ldr r3, [r5, #112] ; 0x70 + 8001972: f043 0301 orr.w r3, r3, #1 + 8001976: 672b str r3, [r5, #112] ; 0x70 + 8001978: f7ff f8b2 bl 8000ae0 + 800197c: 4e23 ldr r6, [pc, #140] ; (8001a0c ) + 800197e: 4605 mov r5, r0 + 8001980: f241 3888 movw r8, #5000 ; 0x1388 + 8001984: 6f33 ldr r3, [r6, #112] ; 0x70 + 8001986: 079b lsls r3, r3, #30 + 8001988: d539 bpl.n 80019fe + 800198a: 2f00 cmp r7, #0 + 800198c: f43f af18 beq.w 80017c0 + 8001990: 4a1e ldr r2, [pc, #120] ; (8001a0c ) + 8001992: 6c13 ldr r3, [r2, #64] ; 0x40 + 8001994: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 8001998: 6413 str r3, [r2, #64] ; 0x40 + 800199a: e711 b.n 80017c0 + 800199c: 2700 movs r7, #0 + 800199e: e7df b.n 8001960 + 80019a0: 682b ldr r3, [r5, #0] + 80019a2: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80019a6: 602b str r3, [r5, #0] + 80019a8: f7ff f89a bl 8000ae0 + 80019ac: 4606 mov r6, r0 + 80019ae: 682b ldr r3, [r5, #0] + 80019b0: 05da lsls r2, r3, #23 + 80019b2: d4d9 bmi.n 8001968 + 80019b4: f7ff f894 bl 8000ae0 + 80019b8: 1b80 subs r0, r0, r6 + 80019ba: 2802 cmp r0, #2 + 80019bc: d9f7 bls.n 80019ae + 80019be: e730 b.n 8001822 + 80019c0: 2b05 cmp r3, #5 + 80019c2: d104 bne.n 80019ce + 80019c4: 6f2b ldr r3, [r5, #112] ; 0x70 + 80019c6: f043 0304 orr.w r3, r3, #4 + 80019ca: 672b str r3, [r5, #112] ; 0x70 + 80019cc: e7d0 b.n 8001970 + 80019ce: 6f2a ldr r2, [r5, #112] ; 0x70 + 80019d0: f022 0201 bic.w r2, r2, #1 + 80019d4: 672a str r2, [r5, #112] ; 0x70 + 80019d6: 6f2a ldr r2, [r5, #112] ; 0x70 + 80019d8: f022 0204 bic.w r2, r2, #4 + 80019dc: 672a str r2, [r5, #112] ; 0x70 + 80019de: 2b00 cmp r3, #0 + 80019e0: d1ca bne.n 8001978 + 80019e2: f7ff f87d bl 8000ae0 + 80019e6: f241 3888 movw r8, #5000 ; 0x1388 + 80019ea: 4606 mov r6, r0 + 80019ec: 6f2b ldr r3, [r5, #112] ; 0x70 + 80019ee: 0798 lsls r0, r3, #30 + 80019f0: d5cb bpl.n 800198a + 80019f2: f7ff f875 bl 8000ae0 + 80019f6: 1b80 subs r0, r0, r6 + 80019f8: 4540 cmp r0, r8 + 80019fa: d9f7 bls.n 80019ec + 80019fc: e711 b.n 8001822 + 80019fe: f7ff f86f bl 8000ae0 + 8001a02: 1b40 subs r0, r0, r5 + 8001a04: 4540 cmp r0, r8 + 8001a06: d9bd bls.n 8001984 + 8001a08: e70b b.n 8001822 + 8001a0a: bf00 nop + 8001a0c: 40023800 .word 0x40023800 + 8001a10: 42470000 .word 0x42470000 + 8001a14: 40007000 .word 0x40007000 + 8001a18: 4d36 ldr r5, [pc, #216] ; (8001af4 ) + 8001a1a: 68ab ldr r3, [r5, #8] + 8001a1c: f003 030c and.w r3, r3, #12 + 8001a20: 2b08 cmp r3, #8 + 8001a22: d03d beq.n 8001aa0 + 8001a24: 4b34 ldr r3, [pc, #208] ; (8001af8 ) + 8001a26: 2200 movs r2, #0 + 8001a28: 2802 cmp r0, #2 + 8001a2a: 661a str r2, [r3, #96] ; 0x60 + 8001a2c: d12b bne.n 8001a86 + 8001a2e: f7ff f857 bl 8000ae0 + 8001a32: 4606 mov r6, r0 + 8001a34: 682b ldr r3, [r5, #0] + 8001a36: 0199 lsls r1, r3, #6 + 8001a38: d41f bmi.n 8001a7a + 8001a3a: e9d4 3207 ldrd r3, r2, [r4, #28] + 8001a3e: 4313 orrs r3, r2 + 8001a40: 6a62 ldr r2, [r4, #36] ; 0x24 + 8001a42: ea43 1382 orr.w r3, r3, r2, lsl #6 + 8001a46: 6ae2 ldr r2, [r4, #44] ; 0x2c + 8001a48: ea43 6302 orr.w r3, r3, r2, lsl #24 + 8001a4c: 6aa2 ldr r2, [r4, #40] ; 0x28 + 8001a4e: 0852 lsrs r2, r2, #1 + 8001a50: 3a01 subs r2, #1 + 8001a52: ea43 4302 orr.w r3, r3, r2, lsl #16 + 8001a56: 606b str r3, [r5, #4] + 8001a58: 4b27 ldr r3, [pc, #156] ; (8001af8 ) + 8001a5a: 4d26 ldr r5, [pc, #152] ; (8001af4 ) + 8001a5c: 2201 movs r2, #1 + 8001a5e: 661a str r2, [r3, #96] ; 0x60 + 8001a60: f7ff f83e bl 8000ae0 + 8001a64: 4604 mov r4, r0 + 8001a66: 682b ldr r3, [r5, #0] + 8001a68: 019a lsls r2, r3, #6 + 8001a6a: f53f aead bmi.w 80017c8 + 8001a6e: f7ff f837 bl 8000ae0 + 8001a72: 1b00 subs r0, r0, r4 + 8001a74: 2802 cmp r0, #2 + 8001a76: d9f6 bls.n 8001a66 + 8001a78: e6d3 b.n 8001822 + 8001a7a: f7ff f831 bl 8000ae0 + 8001a7e: 1b80 subs r0, r0, r6 + 8001a80: 2802 cmp r0, #2 + 8001a82: d9d7 bls.n 8001a34 + 8001a84: e6cd b.n 8001822 + 8001a86: f7ff f82b bl 8000ae0 + 8001a8a: 4604 mov r4, r0 + 8001a8c: 682b ldr r3, [r5, #0] + 8001a8e: 019b lsls r3, r3, #6 + 8001a90: f57f ae9a bpl.w 80017c8 + 8001a94: f7ff f824 bl 8000ae0 + 8001a98: 1b00 subs r0, r0, r4 + 8001a9a: 2802 cmp r0, #2 + 8001a9c: d9f6 bls.n 8001a8c + 8001a9e: e6c0 b.n 8001822 + 8001aa0: 2801 cmp r0, #1 + 8001aa2: f43f aebf beq.w 8001824 + 8001aa6: 686b ldr r3, [r5, #4] + 8001aa8: 69e2 ldr r2, [r4, #28] + 8001aaa: f403 0180 and.w r1, r3, #4194304 ; 0x400000 + 8001aae: 4291 cmp r1, r2 + 8001ab0: f47f aea1 bne.w 80017f6 + 8001ab4: 6a21 ldr r1, [r4, #32] + 8001ab6: f003 023f and.w r2, r3, #63 ; 0x3f + 8001aba: 428a cmp r2, r1 + 8001abc: f47f ae9b bne.w 80017f6 + 8001ac0: 6a61 ldr r1, [r4, #36] ; 0x24 + 8001ac2: f647 72c0 movw r2, #32704 ; 0x7fc0 + 8001ac6: 401a ands r2, r3 + 8001ac8: ebb2 1f81 cmp.w r2, r1, lsl #6 + 8001acc: f47f ae93 bne.w 80017f6 + 8001ad0: 6aa2 ldr r2, [r4, #40] ; 0x28 + 8001ad2: 0852 lsrs r2, r2, #1 + 8001ad4: f403 3140 and.w r1, r3, #196608 ; 0x30000 + 8001ad8: 3a01 subs r2, #1 + 8001ada: ebb1 4f02 cmp.w r1, r2, lsl #16 + 8001ade: f47f ae8a bne.w 80017f6 + 8001ae2: 6ae2 ldr r2, [r4, #44] ; 0x2c + 8001ae4: f003 6370 and.w r3, r3, #251658240 ; 0xf000000 + 8001ae8: ebb3 6f02 cmp.w r3, r2, lsl #24 + 8001aec: f43f ae6c beq.w 80017c8 + 8001af0: e681 b.n 80017f6 + 8001af2: bf00 nop + 8001af4: 40023800 .word 0x40023800 + 8001af8: 42470000 .word 0x42470000 + +08001afc : + 8001afc: 4913 ldr r1, [pc, #76] ; (8001b4c ) + 8001afe: b508 push {r3, lr} + 8001b00: 688b ldr r3, [r1, #8] + 8001b02: f003 030c and.w r3, r3, #12 + 8001b06: 2b04 cmp r3, #4 + 8001b08: d01c beq.n 8001b44 + 8001b0a: 2b08 cmp r3, #8 + 8001b0c: d11c bne.n 8001b48 + 8001b0e: 684a ldr r2, [r1, #4] + 8001b10: 684b ldr r3, [r1, #4] + 8001b12: 6849 ldr r1, [r1, #4] + 8001b14: f413 0380 ands.w r3, r3, #4194304 ; 0x400000 + 8001b18: bf14 ite ne + 8001b1a: 480d ldrne r0, [pc, #52] ; (8001b50 ) + 8001b1c: 480d ldreq r0, [pc, #52] ; (8001b54 ) + 8001b1e: f3c1 1188 ubfx r1, r1, #6, #9 + 8001b22: bf18 it ne + 8001b24: 2300 movne r3, #0 + 8001b26: f002 023f and.w r2, r2, #63 ; 0x3f + 8001b2a: fba1 0100 umull r0, r1, r1, r0 + 8001b2e: f7fe fbaf bl 8000290 <__aeabi_uldivmod> + 8001b32: 4b06 ldr r3, [pc, #24] ; (8001b4c ) + 8001b34: 685b ldr r3, [r3, #4] + 8001b36: f3c3 4301 ubfx r3, r3, #16, #2 + 8001b3a: 3301 adds r3, #1 + 8001b3c: 005b lsls r3, r3, #1 + 8001b3e: fbb0 f0f3 udiv r0, r0, r3 + 8001b42: bd08 pop {r3, pc} + 8001b44: 4802 ldr r0, [pc, #8] ; (8001b50 ) + 8001b46: e7fc b.n 8001b42 + 8001b48: 4802 ldr r0, [pc, #8] ; (8001b54 ) + 8001b4a: e7fa b.n 8001b42 + 8001b4c: 40023800 .word 0x40023800 + 8001b50: 017d7840 .word 0x017d7840 + 8001b54: 00f42400 .word 0x00f42400 + +08001b58 : + 8001b58: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8001b5c: 460d mov r5, r1 + 8001b5e: 4604 mov r4, r0 + 8001b60: b910 cbnz r0, 8001b68 + 8001b62: 2001 movs r0, #1 + 8001b64: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8001b68: 4b44 ldr r3, [pc, #272] ; (8001c7c ) + 8001b6a: 681a ldr r2, [r3, #0] + 8001b6c: f002 020f and.w r2, r2, #15 + 8001b70: 428a cmp r2, r1 + 8001b72: d328 bcc.n 8001bc6 + 8001b74: 6822 ldr r2, [r4, #0] + 8001b76: 0797 lsls r7, r2, #30 + 8001b78: d42d bmi.n 8001bd6 + 8001b7a: 07d0 lsls r0, r2, #31 + 8001b7c: d441 bmi.n 8001c02 + 8001b7e: 4b3f ldr r3, [pc, #252] ; (8001c7c ) + 8001b80: 681a ldr r2, [r3, #0] + 8001b82: f002 020f and.w r2, r2, #15 + 8001b86: 42aa cmp r2, r5 + 8001b88: d866 bhi.n 8001c58 + 8001b8a: 6822 ldr r2, [r4, #0] + 8001b8c: 0751 lsls r1, r2, #29 + 8001b8e: d46c bmi.n 8001c6a + 8001b90: 0713 lsls r3, r2, #28 + 8001b92: d507 bpl.n 8001ba4 + 8001b94: 4a3a ldr r2, [pc, #232] ; (8001c80 ) + 8001b96: 6921 ldr r1, [r4, #16] + 8001b98: 6893 ldr r3, [r2, #8] + 8001b9a: f423 4360 bic.w r3, r3, #57344 ; 0xe000 + 8001b9e: ea43 03c1 orr.w r3, r3, r1, lsl #3 + 8001ba2: 6093 str r3, [r2, #8] + 8001ba4: f7ff ffaa bl 8001afc + 8001ba8: 4b35 ldr r3, [pc, #212] ; (8001c80 ) + 8001baa: 4a36 ldr r2, [pc, #216] ; (8001c84 ) + 8001bac: 689b ldr r3, [r3, #8] + 8001bae: f3c3 1303 ubfx r3, r3, #4, #4 + 8001bb2: 5cd3 ldrb r3, [r2, r3] + 8001bb4: 40d8 lsrs r0, r3 + 8001bb6: 4b34 ldr r3, [pc, #208] ; (8001c88 ) + 8001bb8: 6018 str r0, [r3, #0] + 8001bba: 4b34 ldr r3, [pc, #208] ; (8001c8c ) + 8001bbc: 6818 ldr r0, [r3, #0] + 8001bbe: f7fe ff45 bl 8000a4c + 8001bc2: 2000 movs r0, #0 + 8001bc4: e7ce b.n 8001b64 + 8001bc6: b2ca uxtb r2, r1 + 8001bc8: 701a strb r2, [r3, #0] + 8001bca: 681b ldr r3, [r3, #0] + 8001bcc: f003 030f and.w r3, r3, #15 + 8001bd0: 428b cmp r3, r1 + 8001bd2: d1c6 bne.n 8001b62 + 8001bd4: e7ce b.n 8001b74 + 8001bd6: 4b2a ldr r3, [pc, #168] ; (8001c80 ) + 8001bd8: f012 0f04 tst.w r2, #4 + 8001bdc: bf1e ittt ne + 8001bde: 6899 ldrne r1, [r3, #8] + 8001be0: f441 51e0 orrne.w r1, r1, #7168 ; 0x1c00 + 8001be4: 6099 strne r1, [r3, #8] + 8001be6: 0716 lsls r6, r2, #28 + 8001be8: bf42 ittt mi + 8001bea: 6899 ldrmi r1, [r3, #8] + 8001bec: f441 4160 orrmi.w r1, r1, #57344 ; 0xe000 + 8001bf0: 6099 strmi r1, [r3, #8] + 8001bf2: 4923 ldr r1, [pc, #140] ; (8001c80 ) + 8001bf4: 68a0 ldr r0, [r4, #8] + 8001bf6: 688b ldr r3, [r1, #8] + 8001bf8: f023 03f0 bic.w r3, r3, #240 ; 0xf0 + 8001bfc: 4303 orrs r3, r0 + 8001bfe: 608b str r3, [r1, #8] + 8001c00: e7bb b.n 8001b7a + 8001c02: 6862 ldr r2, [r4, #4] + 8001c04: 4b1e ldr r3, [pc, #120] ; (8001c80 ) + 8001c06: 2a01 cmp r2, #1 + 8001c08: d11c bne.n 8001c44 + 8001c0a: 681b ldr r3, [r3, #0] + 8001c0c: f413 3f00 tst.w r3, #131072 ; 0x20000 + 8001c10: d0a7 beq.n 8001b62 + 8001c12: 4e1b ldr r6, [pc, #108] ; (8001c80 ) + 8001c14: 68b3 ldr r3, [r6, #8] + 8001c16: f023 0303 bic.w r3, r3, #3 + 8001c1a: 4313 orrs r3, r2 + 8001c1c: 60b3 str r3, [r6, #8] + 8001c1e: f7fe ff5f bl 8000ae0 + 8001c22: f241 3888 movw r8, #5000 ; 0x1388 + 8001c26: 4607 mov r7, r0 + 8001c28: 68b3 ldr r3, [r6, #8] + 8001c2a: 6862 ldr r2, [r4, #4] + 8001c2c: f003 030c and.w r3, r3, #12 + 8001c30: ebb3 0f82 cmp.w r3, r2, lsl #2 + 8001c34: d0a3 beq.n 8001b7e + 8001c36: f7fe ff53 bl 8000ae0 + 8001c3a: 1bc0 subs r0, r0, r7 + 8001c3c: 4540 cmp r0, r8 + 8001c3e: d9f3 bls.n 8001c28 + 8001c40: 2003 movs r0, #3 + 8001c42: e78f b.n 8001b64 + 8001c44: 1e91 subs r1, r2, #2 + 8001c46: 2901 cmp r1, #1 + 8001c48: 681b ldr r3, [r3, #0] + 8001c4a: d802 bhi.n 8001c52 + 8001c4c: f013 7f00 tst.w r3, #33554432 ; 0x2000000 + 8001c50: e7de b.n 8001c10 + 8001c52: f013 0f02 tst.w r3, #2 + 8001c56: e7db b.n 8001c10 + 8001c58: b2ea uxtb r2, r5 + 8001c5a: 701a strb r2, [r3, #0] + 8001c5c: 681b ldr r3, [r3, #0] + 8001c5e: f003 030f and.w r3, r3, #15 + 8001c62: 42ab cmp r3, r5 + 8001c64: f47f af7d bne.w 8001b62 + 8001c68: e78f b.n 8001b8a + 8001c6a: 4905 ldr r1, [pc, #20] ; (8001c80 ) + 8001c6c: 68e0 ldr r0, [r4, #12] + 8001c6e: 688b ldr r3, [r1, #8] + 8001c70: f423 53e0 bic.w r3, r3, #7168 ; 0x1c00 + 8001c74: 4303 orrs r3, r0 + 8001c76: 608b str r3, [r1, #8] + 8001c78: e78a b.n 8001b90 + 8001c7a: bf00 nop + 8001c7c: 40023c00 .word 0x40023c00 + 8001c80: 40023800 .word 0x40023800 + 8001c84: 0800a500 .word 0x0800a500 + 8001c88: 20000000 .word 0x20000000 + 8001c8c: 20000008 .word 0x20000008 + +08001c90 : + 8001c90: 4b01 ldr r3, [pc, #4] ; (8001c98 ) + 8001c92: 6818 ldr r0, [r3, #0] + 8001c94: 4770 bx lr + 8001c96: bf00 nop + 8001c98: 20000000 .word 0x20000000 + +08001c9c : + 8001c9c: b570 push {r4, r5, r6, lr} + 8001c9e: 460e mov r6, r1 + 8001ca0: 4615 mov r5, r2 + 8001ca2: 4604 mov r4, r0 + 8001ca4: b328 cbz r0, 8001cf2 + 8001ca6: f890 3049 ldrb.w r3, [r0, #73] ; 0x49 + 8001caa: f003 02ff and.w r2, r3, #255 ; 0xff + 8001cae: b91b cbnz r3, 8001cb8 + 8001cb0: f880 2048 strb.w r2, [r0, #72] ; 0x48 + 8001cb4: f7fe fd7e bl 80007b4 + 8001cb8: f104 0108 add.w r1, r4, #8 + 8001cbc: 6820 ldr r0, [r4, #0] + 8001cbe: f000 f81b bl 8001cf8 + 8001cc2: 68a2 ldr r2, [r4, #8] + 8001cc4: 6820 ldr r0, [r4, #0] + 8001cc6: 4631 mov r1, r6 + 8001cc8: f000 f860 bl 8001d8c + 8001ccc: 6b23 ldr r3, [r4, #48] ; 0x30 + 8001cce: 68a2 ldr r2, [r4, #8] + 8001cd0: 6860 ldr r0, [r4, #4] + 8001cd2: 4629 mov r1, r5 + 8001cd4: f000 f886 bl 8001de4 + 8001cd8: 6822 ldr r2, [r4, #0] + 8001cda: 68a1 ldr r1, [r4, #8] + 8001cdc: f852 3021 ldr.w r3, [r2, r1, lsl #2] + 8001ce0: f043 0301 orr.w r3, r3, #1 + 8001ce4: f842 3021 str.w r3, [r2, r1, lsl #2] + 8001ce8: 2301 movs r3, #1 + 8001cea: f884 3049 strb.w r3, [r4, #73] ; 0x49 + 8001cee: 2000 movs r0, #0 + 8001cf0: bd70 pop {r4, r5, r6, pc} + 8001cf2: 2001 movs r0, #1 + 8001cf4: e7fc b.n 8001cf0 + ... + +08001cf8 : + 8001cf8: 680a ldr r2, [r1, #0] + 8001cfa: f850 3022 ldr.w r3, [r0, r2, lsl #2] + 8001cfe: f023 0301 bic.w r3, r3, #1 + 8001d02: b5f0 push {r4, r5, r6, r7, lr} + 8001d04: 684f ldr r7, [r1, #4] + 8001d06: f840 3022 str.w r3, [r0, r2, lsl #2] + 8001d0a: 688b ldr r3, [r1, #8] + 8001d0c: 6b4c ldr r4, [r1, #52] ; 0x34 + 8001d0e: f850 6022 ldr.w r6, [r0, r2, lsl #2] + 8001d12: 2b08 cmp r3, #8 + 8001d14: ea43 0307 orr.w r3, r3, r7 + 8001d18: 68cf ldr r7, [r1, #12] + 8001d1a: ea43 0307 orr.w r3, r3, r7 + 8001d1e: 690f ldr r7, [r1, #16] + 8001d20: ea43 0307 orr.w r3, r3, r7 + 8001d24: 694f ldr r7, [r1, #20] + 8001d26: ea43 0307 orr.w r3, r3, r7 + 8001d2a: 69cf ldr r7, [r1, #28] + 8001d2c: ea43 0307 orr.w r3, r3, r7 + 8001d30: 6a0f ldr r7, [r1, #32] + 8001d32: ea43 0307 orr.w r3, r3, r7 + 8001d36: 6a4f ldr r7, [r1, #36] ; 0x24 + 8001d38: ea43 0307 orr.w r3, r3, r7 + 8001d3c: 6a8f ldr r7, [r1, #40] ; 0x28 + 8001d3e: ea43 0307 orr.w r3, r3, r7 + 8001d42: 6acf ldr r7, [r1, #44] ; 0x2c + 8001d44: ea43 0307 orr.w r3, r3, r7 + 8001d48: 6b0f ldr r7, [r1, #48] ; 0x30 + 8001d4a: ea43 0307 orr.w r3, r3, r7 + 8001d4e: 698f ldr r7, [r1, #24] + 8001d50: 6bc9 ldr r1, [r1, #60] ; 0x3c + 8001d52: ea43 0307 orr.w r3, r3, r7 + 8001d56: ea43 0304 orr.w r3, r3, r4 + 8001d5a: ea43 0301 orr.w r3, r3, r1 + 8001d5e: 490a ldr r1, [pc, #40] ; (8001d88 ) + 8001d60: ea01 0106 and.w r1, r1, r6 + 8001d64: bf0c ite eq + 8001d66: 2540 moveq r5, #64 ; 0x40 + 8001d68: 2500 movne r5, #0 + 8001d6a: 430b orrs r3, r1 + 8001d6c: 432b orrs r3, r5 + 8001d6e: f5b4 1f80 cmp.w r4, #1048576 ; 0x100000 + 8001d72: f840 3022 str.w r3, [r0, r2, lsl #2] + 8001d76: d104 bne.n 8001d82 + 8001d78: b11a cbz r2, 8001d82 + 8001d7a: 6803 ldr r3, [r0, #0] + 8001d7c: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 + 8001d80: 6003 str r3, [r0, #0] + 8001d82: 2000 movs r0, #0 + 8001d84: bdf0 pop {r4, r5, r6, r7, pc} + 8001d86: bf00 nop + 8001d88: ffe00080 .word 0xffe00080 + +08001d8c : + 8001d8c: 690b ldr r3, [r1, #16] + 8001d8e: b5f0 push {r4, r5, r6, r7, lr} + 8001d90: 698f ldr r7, [r1, #24] + 8001d92: 1e5d subs r5, r3, #1 + 8001d94: 680b ldr r3, [r1, #0] + 8001d96: 433b orrs r3, r7 + 8001d98: 684f ldr r7, [r1, #4] + 8001d9a: ea43 1307 orr.w r3, r3, r7, lsl #4 + 8001d9e: 688f ldr r7, [r1, #8] + 8001da0: eb00 0282 add.w r2, r0, r2, lsl #2 + 8001da4: ea43 2307 orr.w r3, r3, r7, lsl #8 + 8001da8: 68cf ldr r7, [r1, #12] + 8001daa: 6949 ldr r1, [r1, #20] + 8001dac: 6856 ldr r6, [r2, #4] + 8001dae: ea43 4307 orr.w r3, r3, r7, lsl #16 + 8001db2: 3902 subs r1, #2 + 8001db4: ea43 5305 orr.w r3, r3, r5, lsl #20 + 8001db8: ea43 6301 orr.w r3, r3, r1, lsl #24 + 8001dbc: f006 4140 and.w r1, r6, #3221225472 ; 0xc0000000 + 8001dc0: 430b orrs r3, r1 + 8001dc2: 6053 str r3, [r2, #4] + 8001dc4: 6803 ldr r3, [r0, #0] + 8001dc6: 02db lsls r3, r3, #11 + 8001dc8: ea4f 5405 mov.w r4, r5, lsl #20 + 8001dcc: d508 bpl.n 8001de0 + 8001dce: 6842 ldr r2, [r0, #4] + 8001dd0: 6843 ldr r3, [r0, #4] + 8001dd2: f422 0270 bic.w r2, r2, #15728640 ; 0xf00000 + 8001dd6: f423 0370 bic.w r3, r3, #15728640 ; 0xf00000 + 8001dda: 4314 orrs r4, r2 + 8001ddc: 4323 orrs r3, r4 + 8001dde: 6043 str r3, [r0, #4] + 8001de0: 2000 movs r0, #0 + 8001de2: bdf0 pop {r4, r5, r6, r7, pc} + +08001de4 : + 8001de4: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 8001de8: b530 push {r4, r5, lr} + 8001dea: d114 bne.n 8001e16 + 8001dec: 698d ldr r5, [r1, #24] + 8001dee: 680b ldr r3, [r1, #0] + 8001df0: f850 4022 ldr.w r4, [r0, r2, lsl #2] + 8001df4: 432b orrs r3, r5 + 8001df6: 684d ldr r5, [r1, #4] + 8001df8: ea43 1305 orr.w r3, r3, r5, lsl #4 + 8001dfc: 688d ldr r5, [r1, #8] + 8001dfe: 68c9 ldr r1, [r1, #12] + 8001e00: ea43 2305 orr.w r3, r3, r5, lsl #8 + 8001e04: ea43 4301 orr.w r3, r3, r1, lsl #16 + 8001e08: 4904 ldr r1, [pc, #16] ; (8001e1c ) + 8001e0a: 4021 ands r1, r4 + 8001e0c: 430b orrs r3, r1 + 8001e0e: f840 3022 str.w r3, [r0, r2, lsl #2] + 8001e12: 2000 movs r0, #0 + 8001e14: bd30 pop {r4, r5, pc} + 8001e16: f06f 4370 mvn.w r3, #4026531840 ; 0xf0000000 + 8001e1a: e7f8 b.n 8001e0e + 8001e1c: cff00000 .word 0xcff00000 + +08001e20 : + 8001e20: 4770 bx lr + ... + +08001e24 : + 8001e24: b57f push {r0, r1, r2, r3, r4, r5, r6, lr} + 8001e26: f000 fa8f bl 8002348 + 8001e2a: 4819 ldr r0, [pc, #100] ; (8001e90 ) + 8001e2c: 4d19 ldr r5, [pc, #100] ; (8001e94 ) + 8001e2e: 4e1a ldr r6, [pc, #104] ; (8001e98 ) + 8001e30: 4c1a ldr r4, [pc, #104] ; (8001e9c ) + 8001e32: f006 fdfd bl 8008a30 + 8001e36: 6028 str r0, [r5, #0] + 8001e38: 4819 ldr r0, [pc, #100] ; (8001ea0 ) + 8001e3a: f006 fdf9 bl 8008a30 + 8001e3e: 6030 str r0, [r6, #0] + 8001e40: 4818 ldr r0, [pc, #96] ; (8001ea4 ) + 8001e42: f006 fdf5 bl 8008a30 + 8001e46: 4b18 ldr r3, [pc, #96] ; (8001ea8 ) + 8001e48: 4a18 ldr r2, [pc, #96] ; (8001eac ) + 8001e4a: 6018 str r0, [r3, #0] + 8001e4c: 9202 str r2, [sp, #8] + 8001e4e: 4a18 ldr r2, [pc, #96] ; (8001eb0 ) + 8001e50: 9201 str r2, [sp, #4] + 8001e52: 2200 movs r2, #0 + 8001e54: 9200 str r2, [sp, #0] + 8001e56: 4629 mov r1, r5 + 8001e58: 4632 mov r2, r6 + 8001e5a: 4620 mov r0, r4 + 8001e5c: f000 fdd6 bl 8002a0c + 8001e60: 4620 mov r0, r4 + 8001e62: f000 fe69 bl 8002b38 + 8001e66: f894 3031 ldrb.w r3, [r4, #49] ; 0x31 + 8001e6a: 075b lsls r3, r3, #29 + 8001e6c: 4620 mov r0, r4 + 8001e6e: d50b bpl.n 8001e88 + 8001e70: f000 fe68 bl 8002b44 + 8001e74: 490f ldr r1, [pc, #60] ; (8001eb4 ) + 8001e76: 4809 ldr r0, [pc, #36] ; (8001e9c ) + 8001e78: f000 fedc bl 8002c34 + 8001e7c: 4807 ldr r0, [pc, #28] ; (8001e9c ) + 8001e7e: b004 add sp, #16 + 8001e80: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} + 8001e84: f005 bda8 b.w 80079d8 + 8001e88: f000 fe76 bl 8002b78 + 8001e8c: e7f2 b.n 8001e74 + 8001e8e: bf00 nop + 8001e90: 0800a510 .word 0x0800a510 + 8001e94: 20000140 .word 0x20000140 + 8001e98: 20000144 .word 0x20000144 + 8001e9c: 20000104 .word 0x20000104 + 8001ea0: 0800a51a .word 0x0800a51a + 8001ea4: 0800a528 .word 0x0800a528 + 8001ea8: 2000013c .word 0x2000013c + 8001eac: 08009205 .word 0x08009205 + 8001eb0: 080021ad .word 0x080021ad + 8001eb4: 08001e21 .word 0x08001e21 + +08001eb8 : + 8001eb8: b510 push {r4, lr} + 8001eba: 480a ldr r0, [pc, #40] ; (8001ee4 ) + 8001ebc: 4c0a ldr r4, [pc, #40] ; (8001ee8 ) + 8001ebe: f000 f87d bl 8001fbc + 8001ec2: f004 fb19 bl 80064f8 + 8001ec6: f7fe fe0b bl 8000ae0 + 8001eca: 6823 ldr r3, [r4, #0] + 8001ecc: 1ac0 subs r0, r0, r3 + 8001ece: 2863 cmp r0, #99 ; 0x63 + 8001ed0: d907 bls.n 8001ee2 + 8001ed2: f7fe fe05 bl 8000ae0 + 8001ed6: 6020 str r0, [r4, #0] + 8001ed8: e8bd 4010 ldmia.w sp!, {r4, lr} + 8001edc: 4801 ldr r0, [pc, #4] ; (8001ee4 ) + 8001ede: f000 b91f b.w 8002120 + 8001ee2: bd10 pop {r4, pc} + 8001ee4: 20000104 .word 0x20000104 + 8001ee8: 20000100 .word 0x20000100 + +08001eec : + 8001eec: 2000 movs r0, #0 + 8001eee: 4770 bx lr + +08001ef0 : + 8001ef0: b530 push {r4, r5, lr} + 8001ef2: b08d sub sp, #52 ; 0x34 + 8001ef4: 460d mov r5, r1 + 8001ef6: 2230 movs r2, #48 ; 0x30 + 8001ef8: 2100 movs r1, #0 + 8001efa: 4668 mov r0, sp + 8001efc: f007 fa4c bl 8009398 + 8001f00: 462c mov r4, r5 + 8001f02: 466b mov r3, sp + 8001f04: 2200 movs r2, #0 + 8001f06: b964 cbnz r4, 8001f22 + 8001f08: 490f ldr r1, [pc, #60] ; (8001f48 ) + 8001f0a: 892b ldrh r3, [r5, #8] + 8001f0c: 480f ldr r0, [pc, #60] ; (8001f4c ) + 8001f0e: 604b str r3, [r1, #4] + 8001f10: 2214 movs r2, #20 + 8001f12: f8c1 d008 str.w sp, [r1, #8] + 8001f16: 634d str r5, [r1, #52] ; 0x34 + 8001f18: f7ff f98a bl 8001230 + 8001f1c: 4620 mov r0, r4 + 8001f1e: b00d add sp, #52 ; 0x34 + 8001f20: bd30 pop {r4, r5, pc} + 8001f22: 2a04 cmp r2, #4 + 8001f24: d00c beq.n 8001f40 + 8001f26: 6861 ldr r1, [r4, #4] + 8001f28: 6019 str r1, [r3, #0] + 8001f2a: 8961 ldrh r1, [r4, #10] + 8001f2c: 6059 str r1, [r3, #4] + 8001f2e: b10a cbz r2, 8001f34 + 8001f30: f843 3c04 str.w r3, [r3, #-4] + 8001f34: 6824 ldr r4, [r4, #0] + 8001f36: b904 cbnz r4, 8001f3a + 8001f38: 609c str r4, [r3, #8] + 8001f3a: 3201 adds r2, #1 + 8001f3c: 330c adds r3, #12 + 8001f3e: e7e2 b.n 8001f06 + 8001f40: f06f 000b mvn.w r0, #11 + 8001f44: e7eb b.n 8001f1e + 8001f46: bf00 nop + 8001f48: 200002ac .word 0x200002ac + 8001f4c: 200002e4 .word 0x200002e4 + +08001f50 : + 8001f50: b508 push {r3, lr} + 8001f52: 4601 mov r1, r0 + 8001f54: 4804 ldr r0, [pc, #16] ; (8001f68 ) + 8001f56: f000 fcb1 bl 80028bc + 8001f5a: 4b04 ldr r3, [pc, #16] ; (8001f6c ) + 8001f5c: 781a ldrb r2, [r3, #0] + 8001f5e: 2a01 cmp r2, #1 + 8001f60: bf04 itt eq + 8001f62: 2200 moveq r2, #0 + 8001f64: 701a strbeq r2, [r3, #0] + 8001f66: bd08 pop {r3, pc} + 8001f68: 0800a588 .word 0x0800a588 + 8001f6c: 200002a8 .word 0x200002a8 + +08001f70 : + 8001f70: f7fe bdb6 b.w 8000ae0 + +08001f74 : + 8001f74: b508 push {r3, lr} + 8001f76: 4802 ldr r0, [pc, #8] ; (8001f80 ) + 8001f78: f7ff faea bl 8001550 + 8001f7c: 2000 movs r0, #0 + 8001f7e: bd08 pop {r3, pc} + 8001f80: 200002e4 .word 0x200002e4 + +08001f84 : + 8001f84: b508 push {r3, lr} + 8001f86: 4613 mov r3, r2 + 8001f88: 460a mov r2, r1 + 8001f8a: 4601 mov r1, r0 + 8001f8c: 4803 ldr r0, [pc, #12] ; (8001f9c ) + 8001f8e: f7ff fa24 bl 80013da + 8001f92: 3800 subs r0, #0 + 8001f94: bf18 it ne + 8001f96: 2001 movne r0, #1 + 8001f98: 4240 negs r0, r0 + 8001f9a: bd08 pop {r3, pc} + 8001f9c: 200002e4 .word 0x200002e4 + +08001fa0 : + 8001fa0: b508 push {r3, lr} + 8001fa2: 4613 mov r3, r2 + 8001fa4: 460a mov r2, r1 + 8001fa6: 4601 mov r1, r0 + 8001fa8: 4803 ldr r0, [pc, #12] ; (8001fb8 ) + 8001faa: f7ff fa3e bl 800142a + 8001fae: 3800 subs r0, #0 + 8001fb0: bf18 it ne + 8001fb2: 2001 movne r0, #1 + 8001fb4: 4240 negs r0, r0 + 8001fb6: bd08 pop {r3, pc} + 8001fb8: 200002e4 .word 0x200002e4 + +08001fbc : + 8001fbc: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr} + 8001fc0: 4f0d ldr r7, [pc, #52] ; (8001ff8 ) + 8001fc2: f8df 8038 ldr.w r8, [pc, #56] ; 8001ffc + 8001fc6: 4604 mov r4, r0 + 8001fc8: 2600 movs r6, #0 + 8001fca: 783b ldrb r3, [r7, #0] + 8001fcc: 9601 str r6, [sp, #4] + 8001fce: b91b cbnz r3, 8001fd8 + 8001fd0: a901 add r1, sp, #4 + 8001fd2: 4640 mov r0, r8 + 8001fd4: f7ff f984 bl 80012e0 + 8001fd8: 9d01 ldr r5, [sp, #4] + 8001fda: b14d cbz r5, 8001ff0 + 8001fdc: 6923 ldr r3, [r4, #16] + 8001fde: 4621 mov r1, r4 + 8001fe0: 4628 mov r0, r5 + 8001fe2: 4798 blx r3 + 8001fe4: 2800 cmp r0, #0 + 8001fe6: d0f0 beq.n 8001fca + 8001fe8: 4628 mov r0, r5 + 8001fea: f000 fef3 bl 8002dd4 + 8001fee: e7ec b.n 8001fca + 8001ff0: b002 add sp, #8 + 8001ff2: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8001ff6: bf00 nop + 8001ff8: 200002a8 .word 0x200002a8 + 8001ffc: 200002e4 .word 0x200002e4 + +08002000 : + 8002000: f7fe bd6e b.w 8000ae0 + +08002004 : + 8002004: b5f0 push {r4, r5, r6, r7, lr} + 8002006: 4604 mov r4, r0 + 8002008: b08d sub sp, #52 ; 0x34 + 800200a: 2214 movs r2, #20 + 800200c: 2100 movs r1, #0 + 800200e: a807 add r0, sp, #28 + 8002010: f007 f9c2 bl 8009398 + 8002014: 6822 ldr r2, [r4, #0] + 8002016: 4b3d ldr r3, [pc, #244] ; (800210c ) + 8002018: 429a cmp r2, r3 + 800201a: d174 bne.n 8002106 + 800201c: f5a3 4390 sub.w r3, r3, #18432 ; 0x4800 + 8002020: 2400 movs r4, #0 + 8002022: 9400 str r4, [sp, #0] + 8002024: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002026: 483a ldr r0, [pc, #232] ; (8002110 ) + 8002028: f042 7200 orr.w r2, r2, #33554432 ; 0x2000000 + 800202c: 631a str r2, [r3, #48] ; 0x30 + 800202e: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002030: f002 7200 and.w r2, r2, #33554432 ; 0x2000000 + 8002034: 9200 str r2, [sp, #0] + 8002036: 9a00 ldr r2, [sp, #0] + 8002038: 9401 str r4, [sp, #4] + 800203a: 6b1a ldr r2, [r3, #48] ; 0x30 + 800203c: f042 6280 orr.w r2, r2, #67108864 ; 0x4000000 + 8002040: 631a str r2, [r3, #48] ; 0x30 + 8002042: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002044: f002 6280 and.w r2, r2, #67108864 ; 0x4000000 + 8002048: 9201 str r2, [sp, #4] + 800204a: 9a01 ldr r2, [sp, #4] + 800204c: 9402 str r4, [sp, #8] + 800204e: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002050: f042 6200 orr.w r2, r2, #134217728 ; 0x8000000 + 8002054: 631a str r2, [r3, #48] ; 0x30 + 8002056: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002058: f002 6200 and.w r2, r2, #134217728 ; 0x8000000 + 800205c: 9202 str r2, [sp, #8] + 800205e: 9a02 ldr r2, [sp, #8] + 8002060: 9403 str r4, [sp, #12] + 8002062: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002064: f042 0204 orr.w r2, r2, #4 + 8002068: 631a str r2, [r3, #48] ; 0x30 + 800206a: 6b1a ldr r2, [r3, #48] ; 0x30 + 800206c: f002 0204 and.w r2, r2, #4 + 8002070: 9203 str r2, [sp, #12] + 8002072: 9a03 ldr r2, [sp, #12] + 8002074: 9404 str r4, [sp, #16] + 8002076: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002078: f042 0201 orr.w r2, r2, #1 + 800207c: 631a str r2, [r3, #48] ; 0x30 + 800207e: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002080: f002 0201 and.w r2, r2, #1 + 8002084: 9204 str r2, [sp, #16] + 8002086: 9a04 ldr r2, [sp, #16] + 8002088: 9405 str r4, [sp, #20] + 800208a: 6b1a ldr r2, [r3, #48] ; 0x30 + 800208c: f042 0202 orr.w r2, r2, #2 + 8002090: 631a str r2, [r3, #48] ; 0x30 + 8002092: 6b1a ldr r2, [r3, #48] ; 0x30 + 8002094: f002 0202 and.w r2, r2, #2 + 8002098: 9205 str r2, [sp, #20] + 800209a: 9a05 ldr r2, [sp, #20] + 800209c: 9406 str r4, [sp, #24] + 800209e: 6b1a ldr r2, [r3, #48] ; 0x30 + 80020a0: f042 0240 orr.w r2, r2, #64 ; 0x40 + 80020a4: 631a str r2, [r3, #48] ; 0x30 + 80020a6: 6b1b ldr r3, [r3, #48] ; 0x30 + 80020a8: f003 0340 and.w r3, r3, #64 ; 0x40 + 80020ac: 9306 str r3, [sp, #24] + 80020ae: 2702 movs r7, #2 + 80020b0: 2603 movs r6, #3 + 80020b2: 250b movs r5, #11 + 80020b4: 9b06 ldr r3, [sp, #24] + 80020b6: a907 add r1, sp, #28 + 80020b8: 2332 movs r3, #50 ; 0x32 + 80020ba: e9cd 3707 strd r3, r7, [sp, #28] + 80020be: e9cd 650a strd r6, r5, [sp, #40] ; 0x28 + 80020c2: f7ff fa7f bl 80015c4 + 80020c6: 2386 movs r3, #134 ; 0x86 + 80020c8: 4812 ldr r0, [pc, #72] ; (8002114 ) + 80020ca: 950b str r5, [sp, #44] ; 0x2c + 80020cc: a907 add r1, sp, #28 + 80020ce: e9cd 3707 strd r3, r7, [sp, #28] + 80020d2: e9cd 4609 strd r4, r6, [sp, #36] ; 0x24 + 80020d6: f7ff fa75 bl 80015c4 + 80020da: f44f 53c0 mov.w r3, #6144 ; 0x1800 + 80020de: 480e ldr r0, [pc, #56] ; (8002118 ) + 80020e0: 950b str r5, [sp, #44] ; 0x2c + 80020e2: a907 add r1, sp, #28 + 80020e4: e9cd 3707 strd r3, r7, [sp, #28] + 80020e8: e9cd 4609 strd r4, r6, [sp, #36] ; 0x24 + 80020ec: f7ff fa6a bl 80015c4 + 80020f0: f44f 4380 mov.w r3, #16384 ; 0x4000 + 80020f4: 4809 ldr r0, [pc, #36] ; (800211c ) + 80020f6: 950b str r5, [sp, #44] ; 0x2c + 80020f8: a907 add r1, sp, #28 + 80020fa: e9cd 3707 strd r3, r7, [sp, #28] + 80020fe: e9cd 4609 strd r4, r6, [sp, #36] ; 0x24 + 8002102: f7ff fa5f bl 80015c4 + 8002106: b00d add sp, #52 ; 0x34 + 8002108: bdf0 pop {r4, r5, r6, r7, pc} + 800210a: bf00 nop + 800210c: 40028000 .word 0x40028000 + 8002110: 40020800 .word 0x40020800 + 8002114: 40020000 .word 0x40020000 + 8002118: 40020400 .word 0x40020400 + 800211c: 40021800 .word 0x40021800 + +08002120 : + 8002120: b570 push {r4, r5, r6, lr} + 8002122: b09a sub sp, #104 ; 0x68 + 8002124: 2264 movs r2, #100 ; 0x64 + 8002126: 2100 movs r1, #0 + 8002128: 4604 mov r4, r0 + 800212a: a801 add r0, sp, #4 + 800212c: f007 f934 bl 8009398 + 8002130: 481a ldr r0, [pc, #104] ; (800219c ) + 8002132: f7fe fc41 bl 80009b8 + 8002136: f894 2031 ldrb.w r2, [r4, #49] ; 0x31 + 800213a: 0751 lsls r1, r2, #29 + 800213c: 4603 mov r3, r0 + 800213e: d50e bpl.n 800215e + 8002140: 2801 cmp r0, #1 + 8002142: dc0a bgt.n 800215a + 8002144: 4816 ldr r0, [pc, #88] ; (80021a0 ) + 8002146: f7ff f841 bl 80011cc + 800214a: 4620 mov r0, r4 + 800214c: f000 fd14 bl 8002b78 + 8002150: 4620 mov r0, r4 + 8002152: f000 fd55 bl 8002c00 + 8002156: b01a add sp, #104 ; 0x68 + 8002158: bd70 pop {r4, r5, r6, pc} + 800215a: 0752 lsls r2, r2, #29 + 800215c: d4fb bmi.n 8002156 + 800215e: 2b01 cmp r3, #1 + 8002160: ddf9 ble.n 8002156 + 8002162: 3b02 subs r3, #2 + 8002164: 2b03 cmp r3, #3 + 8002166: d8f6 bhi.n 8002156 + 8002168: 4a0e ldr r2, [pc, #56] ; (80021a4 ) + 800216a: 480d ldr r0, [pc, #52] ; (80021a0 ) + 800216c: f832 5013 ldrh.w r5, [r2, r3, lsl #1] + 8002170: 4a0d ldr r2, [pc, #52] ; (80021a8 ) + 8002172: a901 add r1, sp, #4 + 8002174: f832 6013 ldrh.w r6, [r2, r3, lsl #1] + 8002178: f7ff f97c bl 8001474 + 800217c: a901 add r1, sp, #4 + 800217e: 4808 ldr r0, [pc, #32] ; (80021a0 ) + 8002180: e9cd 5606 strd r5, r6, [sp, #24] + 8002184: f7ff f9d8 bl 8001538 + 8002188: 4805 ldr r0, [pc, #20] ; (80021a0 ) + 800218a: f7fe ffe9 bl 8001160 + 800218e: 4620 mov r0, r4 + 8002190: f000 fcd8 bl 8002b44 + 8002194: 4620 mov r0, r4 + 8002196: f000 fd0b bl 8002bb0 + 800219a: e7dc b.n 8002156 + 800219c: 20000288 .word 0x20000288 + 80021a0: 200002e4 .word 0x200002e4 + 80021a4: 0800a576 .word 0x0800a576 + 80021a8: 0800a57e .word 0x0800a57e + +080021ac : + 80021ac: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} + 80021ae: 4604 mov r4, r0 + 80021b0: b930 cbnz r0, 80021c0 + 80021b2: 4b38 ldr r3, [pc, #224] ; (8002294 ) + 80021b4: 4938 ldr r1, [pc, #224] ; (8002298 ) + 80021b6: 4839 ldr r0, [pc, #228] ; (800229c ) + 80021b8: f240 126b movw r2, #363 ; 0x16b + 80021bc: f007 f8f4 bl 80093a8 + 80021c0: f247 4373 movw r3, #29811 ; 0x7473 + 80021c4: 8663 strh r3, [r4, #50] ; 0x32 + 80021c6: 4b36 ldr r3, [pc, #216] ; (80022a0 ) + 80021c8: 4d36 ldr r5, [pc, #216] ; (80022a4 ) + 80021ca: 6163 str r3, [r4, #20] + 80021cc: 4b36 ldr r3, [pc, #216] ; (80022a8 ) + 80021ce: 61a3 str r3, [r4, #24] + 80021d0: 4b36 ldr r3, [pc, #216] ; (80022ac ) + 80021d2: 602b str r3, [r5, #0] + 80021d4: 23fb movs r3, #251 ; 0xfb + 80021d6: f88d 3000 strb.w r3, [sp] + 80021da: 2380 movs r3, #128 ; 0x80 + 80021dc: f88d 3001 strb.w r3, [sp, #1] + 80021e0: 23e1 movs r3, #225 ; 0xe1 + 80021e2: f88d 3002 strb.w r3, [sp, #2] + 80021e6: 2315 movs r3, #21 + 80021e8: f88d 3003 strb.w r3, [sp, #3] + 80021ec: 2385 movs r3, #133 ; 0x85 + 80021ee: f88d 3004 strb.w r3, [sp, #4] + 80021f2: 23a3 movs r3, #163 ; 0xa3 + 80021f4: f88d 3005 strb.w r3, [sp, #5] + 80021f8: f44f 0300 mov.w r3, #8388608 ; 0x800000 + 80021fc: 60ab str r3, [r5, #8] + 80021fe: 4b2c ldr r3, [pc, #176] ; (80022b0 ) + 8002200: 60eb str r3, [r5, #12] + 8002202: 4b2c ldr r3, [pc, #176] ; (80022b4 ) + 8002204: 612b str r3, [r5, #16] + 8002206: 4628 mov r0, r5 + 8002208: f44f 63c0 mov.w r3, #1536 ; 0x600 + 800220c: 616b str r3, [r5, #20] + 800220e: f8c5 d004 str.w sp, [r5, #4] + 8002212: f7fe febb bl 8000f8c + 8002216: 4f28 ldr r7, [pc, #160] ; (80022b8 ) + 8002218: 2234 movs r2, #52 ; 0x34 + 800221a: 2100 movs r1, #0 + 800221c: 4606 mov r6, r0 + 800221e: 1d38 adds r0, r7, #4 + 8002220: f007 f8ba bl 8009398 + 8002224: 2321 movs r3, #33 ; 0x21 + 8002226: 4825 ldr r0, [pc, #148] ; (80022bc ) + 8002228: 603b str r3, [r7, #0] + 800222a: f44f 0340 mov.w r3, #12582912 ; 0xc00000 + 800222e: 617b str r3, [r7, #20] + 8002230: f000 faee bl 8002810 + 8002234: 2306 movs r3, #6 + 8002236: f884 3030 strb.w r3, [r4, #48] ; 0x30 + 800223a: 686b ldr r3, [r5, #4] + 800223c: 4920 ldr r1, [pc, #128] ; (80022c0 ) + 800223e: 781a ldrb r2, [r3, #0] + 8002240: f884 202a strb.w r2, [r4, #42] ; 0x2a + 8002244: 785a ldrb r2, [r3, #1] + 8002246: f884 202b strb.w r2, [r4, #43] ; 0x2b + 800224a: 789a ldrb r2, [r3, #2] + 800224c: f884 202c strb.w r2, [r4, #44] ; 0x2c + 8002250: 78da ldrb r2, [r3, #3] + 8002252: f884 202d strb.w r2, [r4, #45] ; 0x2d + 8002256: 791a ldrb r2, [r3, #4] + 8002258: f884 202e strb.w r2, [r4, #46] ; 0x2e + 800225c: 795b ldrb r3, [r3, #5] + 800225e: f884 302f strb.w r3, [r4, #47] ; 0x2f + 8002262: f240 53dc movw r3, #1500 ; 0x5dc + 8002266: 8523 strh r3, [r4, #40] ; 0x28 + 8002268: f894 3031 ldrb.w r3, [r4, #49] ; 0x31 + 800226c: 4815 ldr r0, [pc, #84] ; (80022c4 ) + 800226e: f043 030a orr.w r3, r3, #10 + 8002272: f884 3031 strb.w r3, [r4, #49] ; 0x31 + 8002276: f7fe fb2a bl 80008ce + 800227a: 4812 ldr r0, [pc, #72] ; (80022c4 ) + 800227c: f7fe fb3b bl 80008f6 + 8002280: b92e cbnz r6, 800228e + 8002282: 4620 mov r0, r4 + 8002284: f7ff ff4c bl 8002120 + 8002288: 2000 movs r0, #0 + 800228a: b003 add sp, #12 + 800228c: bdf0 pop {r4, r5, r6, r7, pc} + 800228e: f7fe fa73 bl 8000778 + 8002292: e7f9 b.n 8002288 + 8002294: 0800a531 .word 0x0800a531 + 8002298: 0800be96 .word 0x0800be96 + 800229c: 0800a54d .word 0x0800a54d + 80022a0: 08008281 .word 0x08008281 + 80022a4: 200002e4 .word 0x200002e4 + 80022a8: 08001ef1 .word 0x08001ef1 + 80022ac: 40028000 .word 0x40028000 + 80022b0: 200001e8 .word 0x200001e8 + 80022b4: 20000148 .word 0x20000148 + 80022b8: 200002ac .word 0x200002ac + 80022bc: 0800a588 .word 0x0800a588 + 80022c0: 2000000c .word 0x2000000c + 80022c4: 20000288 .word 0x20000288 + +080022c8 : + 80022c8: b513 push {r0, r1, r4, lr} + 80022ca: 4604 mov r4, r0 + 80022cc: 480c ldr r0, [pc, #48] ; (8002300 ) + 80022ce: f000 fac1 bl 8002854 + 80022d2: 4603 mov r3, r0 + 80022d4: b178 cbz r0, 80022f6 + 80022d6: f100 0220 add.w r2, r0, #32 + 80022da: 490a ldr r1, [pc, #40] ; (8002304 ) + 80022dc: 6022 str r2, [r4, #0] + 80022de: 6101 str r1, [r0, #16] + 80022e0: f44f 61c0 mov.w r1, #1536 ; 0x600 + 80022e4: e9cd 2100 strd r2, r1, [sp] + 80022e8: 2100 movs r1, #0 + 80022ea: 2241 movs r2, #65 ; 0x41 + 80022ec: 4608 mov r0, r1 + 80022ee: f000 fd1f bl 8002d30 + 80022f2: b002 add sp, #8 + 80022f4: bd10 pop {r4, pc} + 80022f6: 4a04 ldr r2, [pc, #16] ; (8002308 ) + 80022f8: 6020 str r0, [r4, #0] + 80022fa: 2101 movs r1, #1 + 80022fc: 7011 strb r1, [r2, #0] + 80022fe: e7f8 b.n 80022f2 + 8002300: 0800a588 .word 0x0800a588 + 8002304: 08001f51 .word 0x08001f51 + 8002308: 200002a8 .word 0x200002a8 + +0800230c : + 800230c: b530 push {r4, r5, lr} + 800230e: 2500 movs r5, #0 + 8002310: f842 5c20 str.w r5, [r2, #-32] + 8002314: f1a2 0420 sub.w r4, r2, #32 + 8002318: f822 5c18 strh.w r5, [r2, #-24] + 800231c: f822 3c16 strh.w r3, [r2, #-22] + 8002320: 6802 ldr r2, [r0, #0] + 8002322: b922 cbnz r2, 800232e + 8002324: 6004 str r4, [r0, #0] + 8002326: 600c str r4, [r1, #0] + 8002328: 6802 ldr r2, [r0, #0] + 800232a: b91a cbnz r2, 8002334 + 800232c: bd30 pop {r4, r5, pc} + 800232e: 680a ldr r2, [r1, #0] + 8002330: 6014 str r4, [r2, #0] + 8002332: e7f8 b.n 8002326 + 8002334: 8911 ldrh r1, [r2, #8] + 8002336: 4419 add r1, r3 + 8002338: 8111 strh r1, [r2, #8] + 800233a: 6812 ldr r2, [r2, #0] + 800233c: e7f5 b.n 800232a + +0800233e : + 800233e: ba40 rev16 r0, r0 + 8002340: b280 uxth r0, r0 + 8002342: 4770 bx lr + +08002344 : + 8002344: ba00 rev r0, r0 + 8002346: 4770 bx lr + +08002348 : + 8002348: b508 push {r3, lr} + 800234a: f000 f80d bl 8002368 + 800234e: f000 fa73 bl 8002838 + 8002352: f000 fb2d bl 80029b0 + 8002356: f004 f8fb bl 8006550 + 800235a: f000 ffeb bl 8003334 + 800235e: e8bd 4008 ldmia.w sp!, {r3, lr} + 8002362: f004 b8b7 b.w 80064d4 + ... + +08002368 : + 8002368: 4b0b ldr r3, [pc, #44] ; (8002398 ) + 800236a: 4a0c ldr r2, [pc, #48] ; (800239c ) + 800236c: f023 0303 bic.w r3, r3, #3 + 8002370: 6013 str r3, [r2, #0] + 8002372: f44f 62c8 mov.w r2, #1600 ; 0x640 + 8002376: 601a str r2, [r3, #0] + 8002378: 2200 movs r2, #0 + 800237a: 711a strb r2, [r3, #4] + 800237c: 4a08 ldr r2, [pc, #32] ; (80023a0 ) + 800237e: f503 61c8 add.w r1, r3, #1600 ; 0x640 + 8002382: 6011 str r1, [r2, #0] + 8002384: 4a07 ldr r2, [pc, #28] ; (80023a4 ) + 8002386: f8c3 2640 str.w r2, [r3, #1600] ; 0x640 + 800238a: 2201 movs r2, #1 + 800238c: f883 2644 strb.w r2, [r3, #1604] ; 0x644 + 8002390: 4a05 ldr r2, [pc, #20] ; (80023a8 ) + 8002392: 6013 str r3, [r2, #0] + 8002394: 4770 bx lr + 8002396: bf00 nop + 8002398: 20004d43 .word 0x20004d43 + 800239c: 20004d38 .word 0x20004d38 + 80023a0: 20004d3c .word 0x20004d3c + 80023a4: 06400640 .word 0x06400640 + 80023a8: 20004d34 .word 0x20004d34 + +080023ac : + 80023ac: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 80023b0: 4604 mov r4, r0 + 80023b2: 2800 cmp r0, #0 + 80023b4: f000 8098 beq.w 80024e8 + 80023b8: 0783 lsls r3, r0, #30 + 80023ba: d008 beq.n 80023ce + 80023bc: 4b4b ldr r3, [pc, #300] ; (80024ec ) + 80023be: 494c ldr r1, [pc, #304] ; (80024f0 ) + 80023c0: f240 2273 movw r2, #627 ; 0x273 + 80023c4: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 80023c8: 484a ldr r0, [pc, #296] ; (80024f4 ) + 80023ca: f006 bfed b.w 80093a8 + 80023ce: f8df 8148 ldr.w r8, [pc, #328] ; 8002518 + 80023d2: f8d8 3000 ldr.w r3, [r8] + 80023d6: f1a0 0508 sub.w r5, r0, #8 + 80023da: 42ab cmp r3, r5 + 80023dc: d805 bhi.n 80023ea + 80023de: 4f46 ldr r7, [pc, #280] ; (80024f8 ) + 80023e0: 6839 ldr r1, [r7, #0] + 80023e2: f100 020c add.w r2, r0, #12 + 80023e6: 4291 cmp r1, r2 + 80023e8: d204 bcs.n 80023f4 + 80023ea: 4b40 ldr r3, [pc, #256] ; (80024ec ) + 80023ec: 4943 ldr r1, [pc, #268] ; (80024fc ) + 80023ee: f240 227f movw r2, #639 ; 0x27f + 80023f2: e7e7 b.n 80023c4 + 80023f4: f810 2c04 ldrb.w r2, [r0, #-4] + 80023f8: b922 cbnz r2, 8002404 + 80023fa: 4b3c ldr r3, [pc, #240] ; (80024ec ) + 80023fc: 4940 ldr r1, [pc, #256] ; (8002500 ) + 80023fe: f44f 7223 mov.w r2, #652 ; 0x28c + 8002402: e7df b.n 80023c4 + 8002404: f830 6c08 ldrh.w r6, [r0, #-8] + 8002408: f5b6 6fc8 cmp.w r6, #1600 ; 0x640 + 800240c: d811 bhi.n 8002432 + 800240e: f830 0c06 ldrh.w r0, [r0, #-6] + 8002412: f5b0 6fc8 cmp.w r0, #1600 ; 0x640 + 8002416: d80c bhi.n 8002432 + 8002418: 1aea subs r2, r5, r3 + 800241a: b292 uxth r2, r2 + 800241c: 4282 cmp r2, r0 + 800241e: d002 beq.n 8002426 + 8002420: 5a18 ldrh r0, [r3, r0] + 8002422: 4290 cmp r0, r2 + 8002424: d105 bne.n 8002432 + 8002426: 4433 add r3, r6 + 8002428: 4299 cmp r1, r3 + 800242a: d007 beq.n 800243c + 800242c: 885b ldrh r3, [r3, #2] + 800242e: 4293 cmp r3, r2 + 8002430: d004 beq.n 800243c + 8002432: 4b2e ldr r3, [pc, #184] ; (80024ec ) + 8002434: 4933 ldr r1, [pc, #204] ; (8002504 ) + 8002436: f240 2295 movw r2, #661 ; 0x295 + 800243a: e7c3 b.n 80023c4 + 800243c: 4e32 ldr r6, [pc, #200] ; (8002508 ) + 800243e: 2300 movs r3, #0 + 8002440: f804 3c04 strb.w r3, [r4, #-4] + 8002444: 6833 ldr r3, [r6, #0] + 8002446: 42ab cmp r3, r5 + 8002448: bf88 it hi + 800244a: 6035 strhi r5, [r6, #0] + 800244c: 42a9 cmp r1, r5 + 800244e: d81c bhi.n 800248a + 8002450: 4b26 ldr r3, [pc, #152] ; (80024ec ) + 8002452: 492e ldr r1, [pc, #184] ; (800250c ) + 8002454: 4827 ldr r0, [pc, #156] ; (80024f4 ) + 8002456: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 800245a: f006 ffa5 bl 80093a8 + 800245e: f814 3c04 ldrb.w r3, [r4, #-4] + 8002462: b133 cbz r3, 8002472 + 8002464: 4b21 ldr r3, [pc, #132] ; (80024ec ) + 8002466: 492a ldr r1, [pc, #168] ; (8002510 ) + 8002468: 4822 ldr r0, [pc, #136] ; (80024f4 ) + 800246a: f240 12e1 movw r2, #481 ; 0x1e1 + 800246e: f006 ff9b bl 80093a8 + 8002472: f834 3c08 ldrh.w r3, [r4, #-8] + 8002476: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 800247a: d906 bls.n 800248a + 800247c: 4b1b ldr r3, [pc, #108] ; (80024ec ) + 800247e: 4925 ldr r1, [pc, #148] ; (8002514 ) + 8002480: 481c ldr r0, [pc, #112] ; (80024f4 ) + 8002482: f44f 72f2 mov.w r2, #484 ; 0x1e4 + 8002486: f006 ff8f bl 80093a8 + 800248a: f8d8 3000 ldr.w r3, [r8] + 800248e: f834 1c08 ldrh.w r1, [r4, #-8] + 8002492: 185a adds r2, r3, r1 + 8002494: 4295 cmp r5, r2 + 8002496: d012 beq.n 80024be + 8002498: 7910 ldrb r0, [r2, #4] + 800249a: b980 cbnz r0, 80024be + 800249c: 6838 ldr r0, [r7, #0] + 800249e: 4282 cmp r2, r0 + 80024a0: d00d beq.n 80024be + 80024a2: 6830 ldr r0, [r6, #0] + 80024a4: 4282 cmp r2, r0 + 80024a6: 5a5a ldrh r2, [r3, r1] + 80024a8: f824 2c08 strh.w r2, [r4, #-8] + 80024ac: 5a5a ldrh r2, [r3, r1] + 80024ae: bf08 it eq + 80024b0: 6035 streq r5, [r6, #0] + 80024b2: f5b2 6fc8 cmp.w r2, #1600 ; 0x640 + 80024b6: bf1e ittt ne + 80024b8: 18d2 addne r2, r2, r3 + 80024ba: 1ae9 subne r1, r5, r3 + 80024bc: 8051 strhne r1, [r2, #2] + 80024be: f834 2c06 ldrh.w r2, [r4, #-6] + 80024c2: 1899 adds r1, r3, r2 + 80024c4: 428d cmp r5, r1 + 80024c6: d00f beq.n 80024e8 + 80024c8: 7908 ldrb r0, [r1, #4] + 80024ca: b968 cbnz r0, 80024e8 + 80024cc: 6830 ldr r0, [r6, #0] + 80024ce: 4285 cmp r5, r0 + 80024d0: bf08 it eq + 80024d2: 6031 streq r1, [r6, #0] + 80024d4: f834 1c08 ldrh.w r1, [r4, #-8] + 80024d8: 5299 strh r1, [r3, r2] + 80024da: f834 1c08 ldrh.w r1, [r4, #-8] + 80024de: f5b1 6fc8 cmp.w r1, #1600 ; 0x640 + 80024e2: bf1c itt ne + 80024e4: 185b addne r3, r3, r1 + 80024e6: 805a strhne r2, [r3, #2] + 80024e8: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 80024ec: 0800a594 .word 0x0800a594 + 80024f0: 0800a5c3 .word 0x0800a5c3 + 80024f4: 0800a54d .word 0x0800a54d + 80024f8: 20004d3c .word 0x20004d3c + 80024fc: 0800a5e4 .word 0x0800a5e4 + 8002500: 0800a5fd .word 0x0800a5fd + 8002504: 0800a623 .word 0x0800a623 + 8002508: 20004d34 .word 0x20004d34 + 800250c: 0800a655 .word 0x0800a655 + 8002510: 0800a66f .word 0x0800a66f + 8002514: 0800a68a .word 0x0800a68a + 8002518: 20004d38 .word 0x20004d38 + +0800251c : + 800251c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8002520: 1ccc adds r4, r1, #3 + 8002522: f024 0403 bic.w r4, r4, #3 + 8002526: b2a4 uxth r4, r4 + 8002528: 2c0b cmp r4, #11 + 800252a: 4605 mov r5, r0 + 800252c: d904 bls.n 8002538 + 800252e: f5b4 6fc8 cmp.w r4, #1600 ; 0x640 + 8002532: d902 bls.n 800253a + 8002534: 2500 movs r5, #0 + 8002536: e059 b.n 80025ec + 8002538: 240c movs r4, #12 + 800253a: 42a1 cmp r1, r4 + 800253c: d8fa bhi.n 8002534 + 800253e: 4f41 ldr r7, [pc, #260] ; (8002644 ) + 8002540: 683b ldr r3, [r7, #0] + 8002542: 42ab cmp r3, r5 + 8002544: d803 bhi.n 800254e + 8002546: 4b40 ldr r3, [pc, #256] ; (8002648 ) + 8002548: 681b ldr r3, [r3, #0] + 800254a: 42ab cmp r3, r5 + 800254c: d806 bhi.n 800255c + 800254e: 4b3f ldr r3, [pc, #252] ; (800264c ) + 8002550: 493f ldr r1, [pc, #252] ; (8002650 ) + 8002552: 4840 ldr r0, [pc, #256] ; (8002654 ) + 8002554: f240 22d1 movw r2, #721 ; 0x2d1 + 8002558: f006 ff26 bl 80093a8 + 800255c: f8d7 a000 ldr.w sl, [r7] + 8002560: 45aa cmp sl, r5 + 8002562: d843 bhi.n 80025ec + 8002564: 4b38 ldr r3, [pc, #224] ; (8002648 ) + 8002566: 681b ldr r3, [r3, #0] + 8002568: 42ab cmp r3, r5 + 800256a: d93f bls.n 80025ec + 800256c: f835 9c08 ldrh.w r9, [r5, #-8] + 8002570: f1a5 0608 sub.w r6, r5, #8 + 8002574: eba6 060a sub.w r6, r6, sl + 8002578: b2b6 uxth r6, r6 + 800257a: f1a9 0308 sub.w r3, r9, #8 + 800257e: 1b9b subs r3, r3, r6 + 8002580: b29b uxth r3, r3 + 8002582: 42a3 cmp r3, r4 + 8002584: d207 bcs.n 8002596 + 8002586: 4b31 ldr r3, [pc, #196] ; (800264c ) + 8002588: 4933 ldr r1, [pc, #204] ; (8002658 ) + 800258a: 4832 ldr r0, [pc, #200] ; (8002654 ) + 800258c: f44f 7239 mov.w r2, #740 ; 0x2e4 + 8002590: f006 ff0a bl 80093a8 + 8002594: e7ce b.n 8002534 + 8002596: d029 beq.n 80025ec + 8002598: eb0a 0809 add.w r8, sl, r9 + 800259c: f898 2004 ldrb.w r2, [r8, #4] + 80025a0: bb3a cbnz r2, 80025f2 + 80025a2: f5b9 6fc8 cmp.w r9, #1600 ; 0x640 + 80025a6: d106 bne.n 80025b6 + 80025a8: 4b28 ldr r3, [pc, #160] ; (800264c ) + 80025aa: 492c ldr r1, [pc, #176] ; (800265c ) + 80025ac: 4829 ldr r0, [pc, #164] ; (8002654 ) + 80025ae: f240 22f5 movw r2, #757 ; 0x2f5 + 80025b2: f006 fef9 bl 80093a8 + 80025b6: 492a ldr r1, [pc, #168] ; (8002660 ) + 80025b8: f83a c009 ldrh.w ip, [sl, r9] + 80025bc: 6808 ldr r0, [r1, #0] + 80025be: f106 0308 add.w r3, r6, #8 + 80025c2: 441c add r4, r3 + 80025c4: 683b ldr r3, [r7, #0] + 80025c6: b2a2 uxth r2, r4 + 80025c8: 4540 cmp r0, r8 + 80025ca: fa13 f484 uxtah r4, r3, r4 + 80025ce: bf08 it eq + 80025d0: 600c streq r4, [r1, #0] + 80025d2: 2100 movs r1, #0 + 80025d4: 7121 strb r1, [r4, #4] + 80025d6: f823 c002 strh.w ip, [r3, r2] + 80025da: 8066 strh r6, [r4, #2] + 80025dc: f825 2c08 strh.w r2, [r5, #-8] + 80025e0: 5a99 ldrh r1, [r3, r2] + 80025e2: f5b1 6fc8 cmp.w r1, #1600 ; 0x640 + 80025e6: d001 beq.n 80025ec + 80025e8: 440b add r3, r1 + 80025ea: 805a strh r2, [r3, #2] + 80025ec: 4628 mov r0, r5 + 80025ee: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 80025f2: f104 0214 add.w r2, r4, #20 + 80025f6: b292 uxth r2, r2 + 80025f8: 429a cmp r2, r3 + 80025fa: d8f7 bhi.n 80025ec + 80025fc: f106 0308 add.w r3, r6, #8 + 8002600: 441c add r4, r3 + 8002602: f5b9 6fc8 cmp.w r9, #1600 ; 0x640 + 8002606: b2a4 uxth r4, r4 + 8002608: d106 bne.n 8002618 + 800260a: 4b10 ldr r3, [pc, #64] ; (800264c ) + 800260c: 4913 ldr r1, [pc, #76] ; (800265c ) + 800260e: 4811 ldr r0, [pc, #68] ; (8002654 ) + 8002610: f240 3216 movw r2, #790 ; 0x316 + 8002614: f006 fec8 bl 80093a8 + 8002618: 4911 ldr r1, [pc, #68] ; (8002660 ) + 800261a: 683b ldr r3, [r7, #0] + 800261c: 6808 ldr r0, [r1, #0] + 800261e: 191a adds r2, r3, r4 + 8002620: 4290 cmp r0, r2 + 8002622: bf88 it hi + 8002624: 600a strhi r2, [r1, #0] + 8002626: 2100 movs r1, #0 + 8002628: 7111 strb r1, [r2, #4] + 800262a: f835 1c08 ldrh.w r1, [r5, #-8] + 800262e: 5319 strh r1, [r3, r4] + 8002630: 8056 strh r6, [r2, #2] + 8002632: f825 4c08 strh.w r4, [r5, #-8] + 8002636: 5b1a ldrh r2, [r3, r4] + 8002638: f5b2 6fc8 cmp.w r2, #1600 ; 0x640 + 800263c: d0d6 beq.n 80025ec + 800263e: 4413 add r3, r2 + 8002640: 805c strh r4, [r3, #2] + 8002642: e7d3 b.n 80025ec + 8002644: 20004d38 .word 0x20004d38 + 8002648: 20004d3c .word 0x20004d3c + 800264c: 0800a594 .word 0x0800a594 + 8002650: 0800a6b4 .word 0x0800a6b4 + 8002654: 0800a54d .word 0x0800a54d + 8002658: 0800a6cb .word 0x0800a6cb + 800265c: 0800a6eb .word 0x0800a6eb + 8002660: 20004d34 .word 0x20004d34 + +08002664 : + 8002664: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 8002668: 2800 cmp r0, #0 + 800266a: f000 8084 beq.w 8002776 + 800266e: 1cc3 adds r3, r0, #3 + 8002670: f023 0303 bic.w r3, r3, #3 + 8002674: b29b uxth r3, r3 + 8002676: 2b0b cmp r3, #11 + 8002678: d904 bls.n 8002684 + 800267a: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 800267e: d902 bls.n 8002686 + 8002680: 2000 movs r0, #0 + 8002682: e078 b.n 8002776 + 8002684: 230c movs r3, #12 + 8002686: 4298 cmp r0, r3 + 8002688: d8fa bhi.n 8002680 + 800268a: f8df 8124 ldr.w r8, [pc, #292] ; 80027b0 + 800268e: 4f3f ldr r7, [pc, #252] ; (800278c ) + 8002690: f8d8 1000 ldr.w r1, [r8] + 8002694: 683d ldr r5, [r7, #0] + 8002696: 1a6d subs r5, r5, r1 + 8002698: b2ad uxth r5, r5 + 800269a: f5c3 66c8 rsb r6, r3, #1600 ; 0x640 + 800269e: f06f 0c07 mvn.w ip, #7 + 80026a2: 42b5 cmp r5, r6 + 80026a4: d2ec bcs.n 8002680 + 80026a6: 194c adds r4, r1, r5 + 80026a8: 5b48 ldrh r0, [r1, r5] + 80026aa: 7922 ldrb r2, [r4, #4] + 80026ac: 2a00 cmp r2, #0 + 80026ae: d16a bne.n 8002786 + 80026b0: ebac 0205 sub.w r2, ip, r5 + 80026b4: 4402 add r2, r0 + 80026b6: 429a cmp r2, r3 + 80026b8: d365 bcc.n 8002786 + 80026ba: f103 0608 add.w r6, r3, #8 + 80026be: 3314 adds r3, #20 + 80026c0: b29b uxth r3, r3 + 80026c2: 429a cmp r2, r3 + 80026c4: b2b6 uxth r6, r6 + 80026c6: d358 bcc.n 800277a + 80026c8: eb06 0905 add.w r9, r6, r5 + 80026cc: fa1f f989 uxth.w r9, r9 + 80026d0: f5b9 6fc8 cmp.w r9, #1600 ; 0x640 + 80026d4: d106 bne.n 80026e4 + 80026d6: 4b2e ldr r3, [pc, #184] ; (8002790 ) + 80026d8: 492e ldr r1, [pc, #184] ; (8002794 ) + 80026da: 482f ldr r0, [pc, #188] ; (8002798 ) + 80026dc: f240 3287 movw r2, #903 ; 0x387 + 80026e0: f006 fe62 bl 80093a8 + 80026e4: f8d8 3000 ldr.w r3, [r8] + 80026e8: eb03 0209 add.w r2, r3, r9 + 80026ec: 2100 movs r1, #0 + 80026ee: 7111 strb r1, [r2, #4] + 80026f0: 8821 ldrh r1, [r4, #0] + 80026f2: f823 1009 strh.w r1, [r3, r9] + 80026f6: 8055 strh r5, [r2, #2] + 80026f8: 2201 movs r2, #1 + 80026fa: f8a4 9000 strh.w r9, [r4] + 80026fe: 7122 strb r2, [r4, #4] + 8002700: f833 2009 ldrh.w r2, [r3, r9] + 8002704: f5b2 6fc8 cmp.w r2, #1600 ; 0x640 + 8002708: d002 beq.n 8002710 + 800270a: 4413 add r3, r2 + 800270c: f8a3 9002 strh.w r9, [r3, #2] + 8002710: 683b ldr r3, [r7, #0] + 8002712: 4d22 ldr r5, [pc, #136] ; (800279c ) + 8002714: 42a3 cmp r3, r4 + 8002716: d111 bne.n 800273c + 8002718: 6829 ldr r1, [r5, #0] + 800271a: f8d8 0000 ldr.w r0, [r8] + 800271e: 791a ldrb r2, [r3, #4] + 8002720: b10a cbz r2, 8002726 + 8002722: 428b cmp r3, r1 + 8002724: d12c bne.n 8002780 + 8002726: 428b cmp r3, r1 + 8002728: 603b str r3, [r7, #0] + 800272a: d007 beq.n 800273c + 800272c: b132 cbz r2, 800273c + 800272e: 4b18 ldr r3, [pc, #96] ; (8002790 ) + 8002730: 491b ldr r1, [pc, #108] ; (80027a0 ) + 8002732: 4819 ldr r0, [pc, #100] ; (8002798 ) + 8002734: f240 32b5 movw r2, #949 ; 0x3b5 + 8002738: f006 fe36 bl 80093a8 + 800273c: 682b ldr r3, [r5, #0] + 800273e: 4426 add r6, r4 + 8002740: 42b3 cmp r3, r6 + 8002742: d206 bcs.n 8002752 + 8002744: 4b12 ldr r3, [pc, #72] ; (8002790 ) + 8002746: 4917 ldr r1, [pc, #92] ; (80027a4 ) + 8002748: 4813 ldr r0, [pc, #76] ; (8002798 ) + 800274a: f240 32b9 movw r2, #953 ; 0x3b9 + 800274e: f006 fe2b bl 80093a8 + 8002752: 07a3 lsls r3, r4, #30 + 8002754: d00d beq.n 8002772 + 8002756: 4b0e ldr r3, [pc, #56] ; (8002790 ) + 8002758: 4913 ldr r1, [pc, #76] ; (80027a8 ) + 800275a: 480f ldr r0, [pc, #60] ; (8002798 ) + 800275c: f240 32bb movw r2, #955 ; 0x3bb + 8002760: f006 fe22 bl 80093a8 + 8002764: 4b0a ldr r3, [pc, #40] ; (8002790 ) + 8002766: 4911 ldr r1, [pc, #68] ; (80027ac ) + 8002768: 480b ldr r0, [pc, #44] ; (8002798 ) + 800276a: f240 32bd movw r2, #957 ; 0x3bd + 800276e: f006 fe1b bl 80093a8 + 8002772: f104 0008 add.w r0, r4, #8 + 8002776: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 800277a: 2301 movs r3, #1 + 800277c: 7123 strb r3, [r4, #4] + 800277e: e7c7 b.n 8002710 + 8002780: 881b ldrh r3, [r3, #0] + 8002782: 4403 add r3, r0 + 8002784: e7cb b.n 800271e + 8002786: 4605 mov r5, r0 + 8002788: e78b b.n 80026a2 + 800278a: bf00 nop + 800278c: 20004d34 .word 0x20004d34 + 8002790: 0800a594 .word 0x0800a594 + 8002794: 0800a6eb .word 0x0800a6eb + 8002798: 0800a54d .word 0x0800a54d + 800279c: 20004d3c .word 0x20004d3c + 80027a0: 0800a6fc .word 0x0800a6fc + 80027a4: 0800a715 .word 0x0800a715 + 80027a8: 0800a745 .word 0x0800a745 + 80027ac: 0800a774 .word 0x0800a774 + 80027b0: 20004d38 .word 0x20004d38 + +080027b4 : + 80027b4: b538 push {r3, r4, r5, lr} + 80027b6: 078b lsls r3, r1, #30 + 80027b8: 4605 mov r5, r0 + 80027ba: 460c mov r4, r1 + 80027bc: d006 beq.n 80027cc + 80027be: 4b06 ldr r3, [pc, #24] ; (80027d8 ) + 80027c0: 4906 ldr r1, [pc, #24] ; (80027dc ) + 80027c2: 4807 ldr r0, [pc, #28] ; (80027e0 ) + 80027c4: f44f 72b6 mov.w r2, #364 ; 0x16c + 80027c8: f006 fdee bl 80093a8 + 80027cc: 68ab ldr r3, [r5, #8] + 80027ce: 681a ldr r2, [r3, #0] + 80027d0: 6022 str r2, [r4, #0] + 80027d2: 601c str r4, [r3, #0] + 80027d4: bd38 pop {r3, r4, r5, pc} + 80027d6: bf00 nop + 80027d8: 0800a797 .word 0x0800a797 + 80027dc: 0800a7c7 .word 0x0800a7c7 + 80027e0: 0800a54d .word 0x0800a54d + +080027e4 : + 80027e4: b510 push {r4, lr} + 80027e6: 6804 ldr r4, [r0, #0] + 80027e8: b154 cbz r4, 8002800 + 80027ea: 6823 ldr r3, [r4, #0] + 80027ec: 6003 str r3, [r0, #0] + 80027ee: 07a3 lsls r3, r4, #30 + 80027f0: d006 beq.n 8002800 + 80027f2: 4b04 ldr r3, [pc, #16] ; (8002804 ) + 80027f4: 4904 ldr r1, [pc, #16] ; (8002808 ) + 80027f6: 4805 ldr r0, [pc, #20] ; (800280c ) + 80027f8: f44f 728c mov.w r2, #280 ; 0x118 + 80027fc: f006 fdd4 bl 80093a8 + 8002800: 4620 mov r0, r4 + 8002802: bd10 pop {r4, pc} + 8002804: 0800a797 .word 0x0800a797 + 8002808: 0800a7e7 .word 0x0800a7e7 + 800280c: 0800a54d .word 0x0800a54d + +08002810 : + 8002810: 6843 ldr r3, [r0, #4] + 8002812: 6881 ldr r1, [r0, #8] + 8002814: b530 push {r4, r5, lr} + 8002816: 2200 movs r2, #0 + 8002818: 3303 adds r3, #3 + 800281a: 8844 ldrh r4, [r0, #2] + 800281c: 600a str r2, [r1, #0] + 800281e: f023 0303 bic.w r3, r3, #3 + 8002822: 4294 cmp r4, r2 + 8002824: dc00 bgt.n 8002828 + 8002826: bd30 pop {r4, r5, pc} + 8002828: 680d ldr r5, [r1, #0] + 800282a: 601d str r5, [r3, #0] + 800282c: 8805 ldrh r5, [r0, #0] + 800282e: 600b str r3, [r1, #0] + 8002830: 3201 adds r2, #1 + 8002832: 442b add r3, r5 + 8002834: e7f5 b.n 8002822 + ... + +08002838 : + 8002838: b538 push {r3, r4, r5, lr} + 800283a: 4d05 ldr r5, [pc, #20] ; (8002850 ) + 800283c: 2409 movs r4, #9 + 800283e: 3c01 subs r4, #1 + 8002840: f855 0b04 ldr.w r0, [r5], #4 + 8002844: b2a4 uxth r4, r4 + 8002846: f7ff ffe3 bl 8002810 + 800284a: 2c00 cmp r4, #0 + 800284c: d1f7 bne.n 800283e + 800284e: bd38 pop {r3, r4, r5, pc} + 8002850: 0800a8c0 .word 0x0800a8c0 + +08002854 : + 8002854: b510 push {r4, lr} + 8002856: 4604 mov r4, r0 + 8002858: b120 cbz r0, 8002864 + 800285a: e8bd 4010 ldmia.w sp!, {r4, lr} + 800285e: 6880 ldr r0, [r0, #8] + 8002860: f7ff bfc0 b.w 80027e4 + 8002864: 4b04 ldr r3, [pc, #16] ; (8002878 ) + 8002866: 4905 ldr r1, [pc, #20] ; (800287c ) + 8002868: 4805 ldr r0, [pc, #20] ; (8002880 ) + 800286a: f44f 729e mov.w r2, #316 ; 0x13c + 800286e: f006 fd9b bl 80093a8 + 8002872: 4620 mov r0, r4 + 8002874: bd10 pop {r4, pc} + 8002876: bf00 nop + 8002878: 0800a797 .word 0x0800a797 + 800287c: 0800a80a .word 0x0800a80a + 8002880: 0800a54d .word 0x0800a54d + +08002884 : + 8002884: 2808 cmp r0, #8 + 8002886: b508 push {r3, lr} + 8002888: d807 bhi.n 800289a + 800288a: 4b08 ldr r3, [pc, #32] ; (80028ac ) + 800288c: f853 3020 ldr.w r3, [r3, r0, lsl #2] + 8002890: 6898 ldr r0, [r3, #8] + 8002892: e8bd 4008 ldmia.w sp!, {r3, lr} + 8002896: f7ff bfa5 b.w 80027e4 + 800289a: 4b05 ldr r3, [pc, #20] ; (80028b0 ) + 800289c: 4905 ldr r1, [pc, #20] ; (80028b4 ) + 800289e: 4806 ldr r0, [pc, #24] ; (80028b8 ) + 80028a0: f240 1257 movw r2, #343 ; 0x157 + 80028a4: f006 fd80 bl 80093a8 + 80028a8: 2000 movs r0, #0 + 80028aa: bd08 pop {r3, pc} + 80028ac: 0800a8c0 .word 0x0800a8c0 + 80028b0: 0800a797 .word 0x0800a797 + 80028b4: 0800a81c .word 0x0800a81c + 80028b8: 0800a54d .word 0x0800a54d + +080028bc : + 80028bc: b940 cbnz r0, 80028d0 + 80028be: 4b06 ldr r3, [pc, #24] ; (80028d8 ) + 80028c0: 4906 ldr r1, [pc, #24] ; (80028dc ) + 80028c2: 4807 ldr r0, [pc, #28] ; (80028e0 ) + 80028c4: f240 1295 movw r2, #405 ; 0x195 + 80028c8: f006 bd6e b.w 80093a8 + 80028cc: f7ff bf72 b.w 80027b4 + 80028d0: 2900 cmp r1, #0 + 80028d2: d1fb bne.n 80028cc + 80028d4: 4770 bx lr + 80028d6: bf00 nop + 80028d8: 0800a797 .word 0x0800a797 + 80028dc: 0800a80a .word 0x0800a80a + 80028e0: 0800a54d .word 0x0800a54d + +080028e4 : + 80028e4: 2808 cmp r0, #8 + 80028e6: d906 bls.n 80028f6 + 80028e8: 4b06 ldr r3, [pc, #24] ; (8002904 ) + 80028ea: 4907 ldr r1, [pc, #28] ; (8002908 ) + 80028ec: 4807 ldr r0, [pc, #28] ; (800290c ) + 80028ee: f44f 72d5 mov.w r2, #426 ; 0x1aa + 80028f2: f006 bd59 b.w 80093a8 + 80028f6: b121 cbz r1, 8002902 + 80028f8: 4b05 ldr r3, [pc, #20] ; (8002910 ) + 80028fa: f853 0020 ldr.w r0, [r3, r0, lsl #2] + 80028fe: f7ff bf59 b.w 80027b4 + 8002902: 4770 bx lr + 8002904: 0800a797 .word 0x0800a797 + 8002908: 0800a839 .word 0x0800a839 + 800290c: 0800a54d .word 0x0800a54d + 8002910: 0800a8c0 .word 0x0800a8c0 + +08002914 : + 8002914: f06f 000b mvn.w r0, #11 + 8002918: 4770 bx lr + ... + +0800291c : + 800291c: b510 push {r4, lr} + 800291e: 4604 mov r4, r0 + 8002920: b930 cbnz r0, 8002930 + 8002922: 4b0c ldr r3, [pc, #48] ; (8002954 ) + 8002924: 490c ldr r1, [pc, #48] ; (8002958 ) + 8002926: 480d ldr r0, [pc, #52] ; (800295c ) + 8002928: f240 326d movw r2, #877 ; 0x36d + 800292c: f006 fd3c bl 80093a8 + 8002930: f894 3031 ldrb.w r3, [r4, #49] ; 0x31 + 8002934: f003 0205 and.w r2, r3, #5 + 8002938: 2a05 cmp r2, #5 + 800293a: d109 bne.n 8002950 + 800293c: 6862 ldr r2, [r4, #4] + 800293e: b13a cbz r2, 8002950 + 8002940: 071b lsls r3, r3, #28 + 8002942: d505 bpl.n 8002950 + 8002944: 1d21 adds r1, r4, #4 + 8002946: 4620 mov r0, r4 + 8002948: e8bd 4010 ldmia.w sp!, {r4, lr} + 800294c: f005 bb6a b.w 8008024 + 8002950: bd10 pop {r4, pc} + 8002952: bf00 nop + 8002954: 0800a8e4 .word 0x0800a8e4 + 8002958: 0800a915 .word 0x0800a915 + 800295c: 0800a54d .word 0x0800a54d + +08002960 : + 8002960: b573 push {r0, r1, r4, r5, r6, lr} + 8002962: 4605 mov r5, r0 + 8002964: 4616 mov r6, r2 + 8002966: 460c mov r4, r1 + 8002968: b931 cbnz r1, 8002978 + 800296a: 4b0e ldr r3, [pc, #56] ; (80029a4 ) + 800296c: 490e ldr r1, [pc, #56] ; (80029a8 ) + 800296e: 480f ldr r0, [pc, #60] ; (80029ac ) + 8002970: f240 12cb movw r2, #459 ; 0x1cb + 8002974: f006 fd18 bl 80093a8 + 8002978: 686b ldr r3, [r5, #4] + 800297a: 6822 ldr r2, [r4, #0] + 800297c: 429a cmp r2, r3 + 800297e: d00f beq.n 80029a0 + 8002980: 6033 str r3, [r6, #0] + 8002982: a901 add r1, sp, #4 + 8002984: 4630 mov r0, r6 + 8002986: 9201 str r2, [sp, #4] + 8002988: f000 ff24 bl 80037d4 + 800298c: a901 add r1, sp, #4 + 800298e: 4630 mov r0, r6 + 8002990: f004 f882 bl 8006a98 + 8002994: 6823 ldr r3, [r4, #0] + 8002996: 606b str r3, [r5, #4] + 8002998: 2101 movs r1, #1 + 800299a: 4628 mov r0, r5 + 800299c: f7ff ffbe bl 800291c + 80029a0: b002 add sp, #8 + 80029a2: bd70 pop {r4, r5, r6, pc} + 80029a4: 0800a8e4 .word 0x0800a8e4 + 80029a8: 0800a938 .word 0x0800a938 + 80029ac: 0800a54d .word 0x0800a54d + +080029b0 : + 80029b0: 4770 bx lr + ... + +080029b4 : + 80029b4: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} + 80029b6: 4d14 ldr r5, [pc, #80] ; (8002a08 ) + 80029b8: 2900 cmp r1, #0 + 80029ba: bf14 ite ne + 80029bc: 460e movne r6, r1 + 80029be: 462e moveq r6, r5 + 80029c0: 2a00 cmp r2, #0 + 80029c2: bf14 ite ne + 80029c4: 4617 movne r7, r2 + 80029c6: 462f moveq r7, r5 + 80029c8: 2b00 cmp r3, #0 + 80029ca: bf18 it ne + 80029cc: 461d movne r5, r3 + 80029ce: 6833 ldr r3, [r6, #0] + 80029d0: 4604 mov r4, r0 + 80029d2: b9b3 cbnz r3, 8002a02 + 80029d4: aa01 add r2, sp, #4 + 80029d6: 4631 mov r1, r6 + 80029d8: f7ff ffc2 bl 8002960 + 80029dc: 2301 movs r3, #1 + 80029de: 683a ldr r2, [r7, #0] + 80029e0: 68a1 ldr r1, [r4, #8] + 80029e2: 428a cmp r2, r1 + 80029e4: bf18 it ne + 80029e6: 60a2 strne r2, [r4, #8] + 80029e8: 682a ldr r2, [r5, #0] + 80029ea: 68e1 ldr r1, [r4, #12] + 80029ec: 428a cmp r2, r1 + 80029ee: bf18 it ne + 80029f0: 60e2 strne r2, [r4, #12] + 80029f2: b923 cbnz r3, 80029fe + 80029f4: aa01 add r2, sp, #4 + 80029f6: 4631 mov r1, r6 + 80029f8: 4620 mov r0, r4 + 80029fa: f7ff ffb1 bl 8002960 + 80029fe: b003 add sp, #12 + 8002a00: bdf0 pop {r4, r5, r6, r7, pc} + 8002a02: 2300 movs r3, #0 + 8002a04: e7eb b.n 80029de + 8002a06: bf00 nop + 8002a08: 0800c304 .word 0x0800c304 + +08002a0c : + 8002a0c: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8002a10: f8dd 802c ldr.w r8, [sp, #44] ; 0x2c + 8002a14: 4604 mov r4, r0 + 8002a16: b948 cbnz r0, 8002a2c + 8002a18: 4b3d ldr r3, [pc, #244] ; (8002b10 ) + 8002a1a: 493e ldr r1, [pc, #248] ; (8002b14 ) + 8002a1c: 483e ldr r0, [pc, #248] ; (8002b18 ) + 8002a1e: f240 1227 movw r2, #295 ; 0x127 + 8002a22: f006 fcc1 bl 80093a8 + 8002a26: 4620 mov r0, r4 + 8002a28: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8002a2c: f1b8 0f00 cmp.w r8, #0 + 8002a30: d108 bne.n 8002a44 + 8002a32: 4b37 ldr r3, [pc, #220] ; (8002b10 ) + 8002a34: 4939 ldr r1, [pc, #228] ; (8002b1c ) + 8002a36: 4838 ldr r0, [pc, #224] ; (8002b18 ) + 8002a38: f44f 7294 mov.w r2, #296 ; 0x128 + 8002a3c: f006 fcb4 bl 80093a8 + 8002a40: 4644 mov r4, r8 + 8002a42: e7f0 b.n 8002a26 + 8002a44: 4e36 ldr r6, [pc, #216] ; (8002b20 ) + 8002a46: 6146 str r6, [r0, #20] + 8002a48: 9e0a ldr r6, [sp, #40] ; 0x28 + 8002a4a: 6206 str r6, [r0, #32] + 8002a4c: 4e35 ldr r6, [pc, #212] ; (8002b24 ) + 8002a4e: f8df c0e0 ldr.w ip, [pc, #224] ; 8002b30 + 8002a52: 7837 ldrb r7, [r6, #0] + 8002a54: f880 7034 strb.w r7, [r0, #52] ; 0x34 + 8002a58: 2500 movs r5, #0 + 8002a5a: 9f0c ldr r7, [sp, #48] ; 0x30 + 8002a5c: 60c5 str r5, [r0, #12] + 8002a5e: e9c0 5501 strd r5, r5, [r0, #4] + 8002a62: 8505 strh r5, [r0, #40] ; 0x28 + 8002a64: f880 5031 strb.w r5, [r0, #49] ; 0x31 + 8002a68: 6245 str r5, [r0, #36] ; 0x24 + 8002a6a: 61c5 str r5, [r0, #28] + 8002a6c: 6107 str r7, [r0, #16] + 8002a6e: 42ab cmp r3, r5 + 8002a70: bf08 it eq + 8002a72: 4663 moveq r3, ip + 8002a74: 42aa cmp r2, r5 + 8002a76: bf08 it eq + 8002a78: 4662 moveq r2, ip + 8002a7a: 42a9 cmp r1, r5 + 8002a7c: bf08 it eq + 8002a7e: 4661 moveq r1, ip + 8002a80: f7ff ff98 bl 80029b4 + 8002a84: 4620 mov r0, r4 + 8002a86: 47c0 blx r8 + 8002a88: 2800 cmp r0, #0 + 8002a8a: d13f bne.n 8002b0c + 8002a8c: 4f26 ldr r7, [pc, #152] ; (8002b28 ) + 8002a8e: f8df b080 ldr.w fp, [pc, #128] ; 8002b10 + 8002a92: f894 3034 ldrb.w r3, [r4, #52] ; 0x34 + 8002a96: 683d ldr r5, [r7, #0] + 8002a98: f8df a098 ldr.w sl, [pc, #152] ; 8002b34 + 8002a9c: f8df 9078 ldr.w r9, [pc, #120] ; 8002b18 + 8002aa0: 2bff cmp r3, #255 ; 0xff + 8002aa2: bf04 itt eq + 8002aa4: 2300 moveq r3, #0 + 8002aa6: f884 3034 strbeq.w r3, [r4, #52] ; 0x34 + 8002aaa: f04f 0800 mov.w r8, #0 + 8002aae: b92d cbnz r5, 8002abc + 8002ab0: f894 3034 ldrb.w r3, [r4, #52] ; 0x34 + 8002ab4: 2bfe cmp r3, #254 ; 0xfe + 8002ab6: d122 bne.n 8002afe + 8002ab8: 462b mov r3, r5 + 8002aba: e022 b.n 8002b02 + 8002abc: 42a5 cmp r5, r4 + 8002abe: d106 bne.n 8002ace + 8002ac0: 465b mov r3, fp + 8002ac2: f240 128b movw r2, #395 ; 0x18b + 8002ac6: 4651 mov r1, sl + 8002ac8: 4648 mov r0, r9 + 8002aca: f006 fc6d bl 80093a8 + 8002ace: f108 0801 add.w r8, r8, #1 + 8002ad2: f1b8 0fff cmp.w r8, #255 ; 0xff + 8002ad6: dd06 ble.n 8002ae6 + 8002ad8: 4914 ldr r1, [pc, #80] ; (8002b2c ) + 8002ada: 465b mov r3, fp + 8002adc: f240 128d movw r2, #397 ; 0x18d + 8002ae0: 4648 mov r0, r9 + 8002ae2: f006 fc61 bl 80093a8 + 8002ae6: f894 3034 ldrb.w r3, [r4, #52] ; 0x34 + 8002aea: f895 2034 ldrb.w r2, [r5, #52] ; 0x34 + 8002aee: 429a cmp r2, r3 + 8002af0: d103 bne.n 8002afa + 8002af2: 3201 adds r2, #1 + 8002af4: f884 2034 strb.w r2, [r4, #52] ; 0x34 + 8002af8: e7cb b.n 8002a92 + 8002afa: 682d ldr r5, [r5, #0] + 8002afc: e7d7 b.n 8002aae + 8002afe: 3301 adds r3, #1 + 8002b00: b2db uxtb r3, r3 + 8002b02: 7033 strb r3, [r6, #0] + 8002b04: 683b ldr r3, [r7, #0] + 8002b06: 6023 str r3, [r4, #0] + 8002b08: 603c str r4, [r7, #0] + 8002b0a: e78c b.n 8002a26 + 8002b0c: 462c mov r4, r5 + 8002b0e: e78a b.n 8002a26 + 8002b10: 0800a8e4 .word 0x0800a8e4 + 8002b14: 0800a948 .word 0x0800a948 + 8002b18: 0800a54d .word 0x0800a54d + 8002b1c: 0800a961 .word 0x0800a961 + 8002b20: 08002915 .word 0x08002915 + 8002b24: 200082a0 .word 0x200082a0 + 8002b28: 2000829c .word 0x2000829c + 8002b2c: 0800a997 .word 0x0800a997 + 8002b30: 0800c304 .word 0x0800c304 + 8002b34: 0800a983 .word 0x0800a983 + +08002b38 : + 8002b38: 4b01 ldr r3, [pc, #4] ; (8002b40 ) + 8002b3a: 6018 str r0, [r3, #0] + 8002b3c: 4770 bx lr + 8002b3e: bf00 nop + 8002b40: 20008298 .word 0x20008298 + +08002b44 : + 8002b44: b930 cbnz r0, 8002b54 + 8002b46: 4b09 ldr r3, [pc, #36] ; (8002b6c ) + 8002b48: 4909 ldr r1, [pc, #36] ; (8002b70 ) + 8002b4a: 480a ldr r0, [pc, #40] ; (8002b74 ) + 8002b4c: f44f 7254 mov.w r2, #848 ; 0x350 + 8002b50: f006 bc2a b.w 80093a8 + 8002b54: f890 2031 ldrb.w r2, [r0, #49] ; 0x31 + 8002b58: 07d1 lsls r1, r2, #31 + 8002b5a: d406 bmi.n 8002b6a + 8002b5c: f042 0201 orr.w r2, r2, #1 + 8002b60: f880 2031 strb.w r2, [r0, #49] ; 0x31 + 8002b64: 2103 movs r1, #3 + 8002b66: f7ff bed9 b.w 800291c + 8002b6a: 4770 bx lr + 8002b6c: 0800a8e4 .word 0x0800a8e4 + 8002b70: 0800a9c5 .word 0x0800a9c5 + 8002b74: 0800a54d .word 0x0800a54d + +08002b78 : + 8002b78: b930 cbnz r0, 8002b88 + 8002b7a: 4b0a ldr r3, [pc, #40] ; (8002ba4 ) + 8002b7c: 490a ldr r1, [pc, #40] ; (8002ba8 ) + 8002b7e: 480b ldr r0, [pc, #44] ; (8002bac ) + 8002b80: f240 329b movw r2, #923 ; 0x39b + 8002b84: f006 bc10 b.w 80093a8 + 8002b88: f890 2031 ldrb.w r2, [r0, #49] ; 0x31 + 8002b8c: 07d1 lsls r1, r2, #31 + 8002b8e: d507 bpl.n 8002ba0 + 8002b90: f022 0101 bic.w r1, r2, #1 + 8002b94: 0713 lsls r3, r2, #28 + 8002b96: f880 1031 strb.w r1, [r0, #49] ; 0x31 + 8002b9a: d501 bpl.n 8002ba0 + 8002b9c: f005 b97e b.w 8007e9c + 8002ba0: 4770 bx lr + 8002ba2: bf00 nop + 8002ba4: 0800a8e4 .word 0x0800a8e4 + 8002ba8: 0800a9e1 .word 0x0800a9e1 + 8002bac: 0800a54d .word 0x0800a54d + +08002bb0 : + 8002bb0: b510 push {r4, lr} + 8002bb2: 4604 mov r4, r0 + 8002bb4: b940 cbnz r0, 8002bc8 + 8002bb6: e8bd 4010 ldmia.w sp!, {r4, lr} + 8002bba: 4b0e ldr r3, [pc, #56] ; (8002bf4 ) + 8002bbc: 490e ldr r1, [pc, #56] ; (8002bf8 ) + 8002bbe: 480f ldr r0, [pc, #60] ; (8002bfc ) + 8002bc0: f44f 7278 mov.w r2, #992 ; 0x3e0 + 8002bc4: f006 bbf0 b.w 80093a8 + 8002bc8: f890 3031 ldrb.w r3, [r0, #49] ; 0x31 + 8002bcc: 075a lsls r2, r3, #29 + 8002bce: d40f bmi.n 8002bf0 + 8002bd0: f043 0304 orr.w r3, r3, #4 + 8002bd4: f880 3031 strb.w r3, [r0, #49] ; 0x31 + 8002bd8: f004 fd90 bl 80076fc + 8002bdc: 2103 movs r1, #3 + 8002bde: 4620 mov r0, r4 + 8002be0: f7ff fe9c bl 800291c + 8002be4: 69e3 ldr r3, [r4, #28] + 8002be6: b11b cbz r3, 8002bf0 + 8002be8: 4620 mov r0, r4 + 8002bea: e8bd 4010 ldmia.w sp!, {r4, lr} + 8002bee: 4718 bx r3 + 8002bf0: bd10 pop {r4, pc} + 8002bf2: bf00 nop + 8002bf4: 0800a8e4 .word 0x0800a8e4 + 8002bf8: 0800a9ff .word 0x0800a9ff + 8002bfc: 0800a54d .word 0x0800a54d + +08002c00 : + 8002c00: b930 cbnz r0, 8002c10 + 8002c02: 4b09 ldr r3, [pc, #36] ; (8002c28 ) + 8002c04: 4909 ldr r1, [pc, #36] ; (8002c2c ) + 8002c06: 480a ldr r0, [pc, #40] ; (8002c30 ) + 8002c08: f240 4206 movw r2, #1030 ; 0x406 + 8002c0c: f006 bbcc b.w 80093a8 + 8002c10: f890 2031 ldrb.w r2, [r0, #49] ; 0x31 + 8002c14: 0751 lsls r1, r2, #29 + 8002c16: d506 bpl.n 8002c26 + 8002c18: 69c3 ldr r3, [r0, #28] + 8002c1a: f022 0204 bic.w r2, r2, #4 + 8002c1e: f880 2031 strb.w r2, [r0, #49] ; 0x31 + 8002c22: b103 cbz r3, 8002c26 + 8002c24: 4718 bx r3 + 8002c26: 4770 bx lr + 8002c28: 0800a8e4 .word 0x0800a8e4 + 8002c2c: 0800aa20 .word 0x0800aa20 + 8002c30: 0800a54d .word 0x0800a54d + +08002c34 : + 8002c34: b100 cbz r0, 8002c38 + 8002c36: 61c1 str r1, [r0, #28] + 8002c38: 4770 bx lr + ... + +08002c3c : + 8002c3c: 4603 mov r3, r0 + 8002c3e: b158 cbz r0, 8002c58 + 8002c40: 4a06 ldr r2, [pc, #24] ; (8002c5c ) + 8002c42: 6810 ldr r0, [r2, #0] + 8002c44: b900 cbnz r0, 8002c48 + 8002c46: 4770 bx lr + 8002c48: f890 2034 ldrb.w r2, [r0, #52] ; 0x34 + 8002c4c: 3201 adds r2, #1 + 8002c4e: b2d2 uxtb r2, r2 + 8002c50: 429a cmp r2, r3 + 8002c52: d001 beq.n 8002c58 + 8002c54: 6800 ldr r0, [r0, #0] + 8002c56: e7f5 b.n 8002c44 + 8002c58: 4770 bx lr + 8002c5a: bf00 nop + 8002c5c: 2000829c .word 0x2000829c + +08002c60 : + 8002c60: b538 push {r3, r4, r5, lr} + 8002c62: b968 cbnz r0, 8002c80 + 8002c64: 4b14 ldr r3, [pc, #80] ; (8002cb8 ) + 8002c66: 4915 ldr r1, [pc, #84] ; (8002cbc ) + 8002c68: 4815 ldr r0, [pc, #84] ; (8002cc0 ) + 8002c6a: f240 12df movw r2, #479 ; 0x1df + 8002c6e: f006 fb9b bl 80093a8 + 8002c72: 2001 movs r0, #1 + 8002c74: e01f b.n 8002cb6 + 8002c76: 2a00 cmp r2, #0 + 8002c78: d0fb beq.n 8002c72 + 8002c7a: 6842 ldr r2, [r0, #4] + 8002c7c: 1a51 subs r1, r2, r1 + 8002c7e: e014 b.n 8002caa + 8002c80: f5b1 3f80 cmp.w r1, #65536 ; 0x10000 + 8002c84: d2f5 bcs.n 8002c72 + 8002c86: b1a9 cbz r1, 8002cb4 + 8002c88: 8903 ldrh r3, [r0, #8] + 8002c8a: fa13 f381 uxtah r3, r3, r1 + 8002c8e: b28c uxth r4, r1 + 8002c90: b29b uxth r3, r3 + 8002c92: 429c cmp r4, r3 + 8002c94: d8ed bhi.n 8002c72 + 8002c96: f990 500c ldrsb.w r5, [r0, #12] + 8002c9a: 2d00 cmp r5, #0 + 8002c9c: daeb bge.n 8002c76 + 8002c9e: 6842 ldr r2, [r0, #4] + 8002ca0: 1a51 subs r1, r2, r1 + 8002ca2: f100 0210 add.w r2, r0, #16 + 8002ca6: 4291 cmp r1, r2 + 8002ca8: d3e3 bcc.n 8002c72 + 8002caa: 8942 ldrh r2, [r0, #10] + 8002cac: 6041 str r1, [r0, #4] + 8002cae: 4414 add r4, r2 + 8002cb0: 8144 strh r4, [r0, #10] + 8002cb2: 8103 strh r3, [r0, #8] + 8002cb4: 2000 movs r0, #0 + 8002cb6: bd38 pop {r3, r4, r5, pc} + 8002cb8: 0800aa43 .word 0x0800aa43 + 8002cbc: 0800ab15 .word 0x0800ab15 + 8002cc0: 0800a54d .word 0x0800a54d + +08002cc4 : + 8002cc4: 4b06 ldr r3, [pc, #24] ; (8002ce0 ) + 8002cc6: 2200 movs r2, #0 + 8002cc8: 701a strb r2, [r3, #0] + 8002cca: 4b06 ldr r3, [pc, #24] ; (8002ce4 ) + 8002ccc: 6818 ldr r0, [r3, #0] + 8002cce: b900 cbnz r0, 8002cd2 + 8002cd0: 4770 bx lr + 8002cd2: 6f43 ldr r3, [r0, #116] ; 0x74 + 8002cd4: b10b cbz r3, 8002cda + 8002cd6: f000 bc37 b.w 8003548 + 8002cda: 68c0 ldr r0, [r0, #12] + 8002cdc: e7f7 b.n 8002cce + 8002cde: bf00 nop + 8002ce0: 200082a1 .word 0x200082a1 + 8002ce4: 200082a4 .word 0x200082a4 + +08002ce8 : + 8002ce8: f022 0340 bic.w r3, r2, #64 ; 0x40 + 8002cec: 2b01 cmp r3, #1 + 8002cee: b570 push {r4, r5, r6, lr} + 8002cf0: 4606 mov r6, r0 + 8002cf2: 460d mov r5, r1 + 8002cf4: 4614 mov r4, r2 + 8002cf6: d006 beq.n 8002d06 + 8002cf8: 4b0a ldr r3, [pc, #40] ; (8002d24 ) + 8002cfa: 490b ldr r1, [pc, #44] ; (8002d28 ) + 8002cfc: 480b ldr r0, [pc, #44] ; (8002d2c ) + 8002cfe: f44f 72a5 mov.w r2, #330 ; 0x14a + 8002d02: f006 fb51 bl 80093a8 + 8002d06: 2007 movs r0, #7 + 8002d08: f7ff fdbc bl 8002884 + 8002d0c: b140 cbz r0, 8002d20 + 8002d0e: 2300 movs r3, #0 + 8002d10: e9c0 3600 strd r3, r6, [r0] + 8002d14: 7343 strb r3, [r0, #13] + 8002d16: 2301 movs r3, #1 + 8002d18: 8105 strh r5, [r0, #8] + 8002d1a: 8145 strh r5, [r0, #10] + 8002d1c: 7304 strb r4, [r0, #12] + 8002d1e: 81c3 strh r3, [r0, #14] + 8002d20: bd70 pop {r4, r5, r6, pc} + 8002d22: bf00 nop + 8002d24: 0800aa43 .word 0x0800aa43 + 8002d28: 0800aa73 .word 0x0800aa73 + 8002d2c: 0800a54d .word 0x0800a54d + +08002d30 : + 8002d30: b570 push {r4, r5, r6, lr} + 8002d32: 3003 adds r0, #3 + 8002d34: f8bd 5014 ldrh.w r5, [sp, #20] + 8002d38: 9c04 ldr r4, [sp, #16] + 8002d3a: f020 0003 bic.w r0, r0, #3 + 8002d3e: 180e adds r6, r1, r0 + 8002d40: 42ae cmp r6, r5 + 8002d42: d80d bhi.n 8002d60 + 8002d44: b104 cbz r4, 8002d48 + 8002d46: 4404 add r4, r0 + 8002d48: 4618 mov r0, r3 + 8002d4a: 2300 movs r3, #0 + 8002d4c: e9c0 3400 strd r3, r4, [r0] + 8002d50: 2302 movs r3, #2 + 8002d52: 7343 strb r3, [r0, #13] + 8002d54: 2301 movs r3, #1 + 8002d56: 8101 strh r1, [r0, #8] + 8002d58: 8141 strh r1, [r0, #10] + 8002d5a: 7302 strb r2, [r0, #12] + 8002d5c: 81c3 strh r3, [r0, #14] + 8002d5e: bd70 pop {r4, r5, r6, pc} + 8002d60: 2000 movs r0, #0 + 8002d62: e7fc b.n 8002d5e + +08002d64 : + 8002d64: 2200 movs r2, #0 + 8002d66: f7ff bf7b b.w 8002c60 + ... + +08002d6c : + 8002d6c: b510 push {r4, lr} + 8002d6e: b990 cbnz r0, 8002d96 + 8002d70: 4b10 ldr r3, [pc, #64] ; (8002db4 ) + 8002d72: 4911 ldr r1, [pc, #68] ; (8002db8 ) + 8002d74: f240 224b movw r2, #587 ; 0x24b + 8002d78: 4810 ldr r0, [pc, #64] ; (8002dbc ) + 8002d7a: f006 fb15 bl 80093a8 + 8002d7e: 2001 movs r0, #1 + 8002d80: e008 b.n 8002d94 + 8002d82: 1a9b subs r3, r3, r2 + 8002d84: 6844 ldr r4, [r0, #4] + 8002d86: 8143 strh r3, [r0, #10] + 8002d88: 8903 ldrh r3, [r0, #8] + 8002d8a: 4421 add r1, r4 + 8002d8c: 1a9b subs r3, r3, r2 + 8002d8e: 6041 str r1, [r0, #4] + 8002d90: 8103 strh r3, [r0, #8] + 8002d92: 2000 movs r0, #0 + 8002d94: bd10 pop {r4, pc} + 8002d96: f5b1 3f80 cmp.w r1, #65536 ; 0x10000 + 8002d9a: d2f0 bcs.n 8002d7e + 8002d9c: 2900 cmp r1, #0 + 8002d9e: d0f8 beq.n 8002d92 + 8002da0: 8943 ldrh r3, [r0, #10] + 8002da2: b28a uxth r2, r1 + 8002da4: 429a cmp r2, r3 + 8002da6: d9ec bls.n 8002d82 + 8002da8: 4b02 ldr r3, [pc, #8] ; (8002db4 ) + 8002daa: 4905 ldr r1, [pc, #20] ; (8002dc0 ) + 8002dac: f240 2255 movw r2, #597 ; 0x255 + 8002db0: e7e2 b.n 8002d78 + 8002db2: bf00 nop + 8002db4: 0800aa43 .word 0x0800aa43 + 8002db8: 0800ab15 .word 0x0800ab15 + 8002dbc: 0800a54d .word 0x0800a54d + 8002dc0: 0800aa85 .word 0x0800aa85 + +08002dc4 : + 8002dc4: 1e0b subs r3, r1, #0 + 8002dc6: da02 bge.n 8002dce + 8002dc8: 4259 negs r1, r3 + 8002dca: f7ff bfcf b.w 8002d6c + 8002dce: 2201 movs r2, #1 + 8002dd0: f7ff bf46 b.w 8002c60 + +08002dd4 : + 8002dd4: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 8002dd8: 4604 mov r4, r0 + 8002dda: b950 cbnz r0, 8002df2 + 8002ddc: 4b29 ldr r3, [pc, #164] ; (8002e84 ) + 8002dde: 492a ldr r1, [pc, #168] ; (8002e88 ) + 8002de0: 482a ldr r0, [pc, #168] ; (8002e8c ) + 8002de2: f44f 7237 mov.w r2, #732 ; 0x2dc + 8002de6: f006 fadf bl 80093a8 + 8002dea: 4625 mov r5, r4 + 8002dec: 4628 mov r0, r5 + 8002dee: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8002df2: 4e24 ldr r6, [pc, #144] ; (8002e84 ) + 8002df4: f8df 80a0 ldr.w r8, [pc, #160] ; 8002e98 + 8002df8: 4f24 ldr r7, [pc, #144] ; (8002e8c ) + 8002dfa: 2500 movs r5, #0 + 8002dfc: 7ba3 ldrb r3, [r4, #14] + 8002dfe: b933 cbnz r3, 8002e0e + 8002e00: 4633 mov r3, r6 + 8002e02: f240 22f1 movw r2, #753 ; 0x2f1 + 8002e06: 4641 mov r1, r8 + 8002e08: 4638 mov r0, r7 + 8002e0a: f006 facd bl 80093a8 + 8002e0e: 7ba3 ldrb r3, [r4, #14] + 8002e10: 3b01 subs r3, #1 + 8002e12: b2db uxtb r3, r3 + 8002e14: 73a3 strb r3, [r4, #14] + 8002e16: 2b00 cmp r3, #0 + 8002e18: d1e8 bne.n 8002dec + 8002e1a: 7b63 ldrb r3, [r4, #13] + 8002e1c: f8d4 9000 ldr.w r9, [r4] + 8002e20: 079b lsls r3, r3, #30 + 8002e22: d512 bpl.n 8002e4a + 8002e24: 6923 ldr r3, [r4, #16] + 8002e26: b933 cbnz r3, 8002e36 + 8002e28: 4919 ldr r1, [pc, #100] ; (8002e90 ) + 8002e2a: 4633 mov r3, r6 + 8002e2c: f240 22ff movw r2, #767 ; 0x2ff + 8002e30: 4638 mov r0, r7 + 8002e32: f006 fab9 bl 80093a8 + 8002e36: 6923 ldr r3, [r4, #16] + 8002e38: 4620 mov r0, r4 + 8002e3a: 4798 blx r3 + 8002e3c: 3501 adds r5, #1 + 8002e3e: b2ed uxtb r5, r5 + 8002e40: f1b9 0f00 cmp.w r9, #0 + 8002e44: d0d2 beq.n 8002dec + 8002e46: 464c mov r4, r9 + 8002e48: e7d8 b.n 8002dfc + 8002e4a: 7b23 ldrb r3, [r4, #12] + 8002e4c: f003 030f and.w r3, r3, #15 + 8002e50: 2b02 cmp r3, #2 + 8002e52: d104 bne.n 8002e5e + 8002e54: 4621 mov r1, r4 + 8002e56: 2008 movs r0, #8 + 8002e58: f7ff fd44 bl 80028e4 + 8002e5c: e7ee b.n 8002e3c + 8002e5e: 2b01 cmp r3, #1 + 8002e60: d102 bne.n 8002e68 + 8002e62: 4621 mov r1, r4 + 8002e64: 2007 movs r0, #7 + 8002e66: e7f7 b.n 8002e58 + 8002e68: b91b cbnz r3, 8002e72 + 8002e6a: 4620 mov r0, r4 + 8002e6c: f7ff fa9e bl 80023ac + 8002e70: e7e4 b.n 8002e3c + 8002e72: 4908 ldr r1, [pc, #32] ; (8002e94 ) + 8002e74: 4633 mov r3, r6 + 8002e76: f240 320f movw r2, #783 ; 0x30f + 8002e7a: 4638 mov r0, r7 + 8002e7c: f006 fa94 bl 80093a8 + 8002e80: e7dc b.n 8002e3c + 8002e82: bf00 nop + 8002e84: 0800aa43 .word 0x0800aa43 + 8002e88: 0800ab15 .word 0x0800ab15 + 8002e8c: 0800a54d .word 0x0800a54d + 8002e90: 0800aab9 .word 0x0800aab9 + 8002e94: 0800aada .word 0x0800aada + 8002e98: 0800aaa3 .word 0x0800aaa3 + +08002e9c : + 8002e9c: f5b2 7fc1 cmp.w r2, #386 ; 0x182 + 8002ea0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8002ea4: 4606 mov r6, r0 + 8002ea6: 460f mov r7, r1 + 8002ea8: b284 uxth r4, r0 + 8002eaa: d014 beq.n 8002ed6 + 8002eac: d808 bhi.n 8002ec0 + 8002eae: f022 0340 bic.w r3, r2, #64 ; 0x40 + 8002eb2: 2b01 cmp r3, #1 + 8002eb4: d107 bne.n 8002ec6 + 8002eb6: e8bd 47f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8002eba: 2000 movs r0, #0 + 8002ebc: f7ff bf14 b.w 8002ce8 + 8002ec0: f5b2 7f20 cmp.w r2, #640 ; 0x280 + 8002ec4: d03e beq.n 8002f44 + 8002ec6: 4b2f ldr r3, [pc, #188] ; (8002f84 ) + 8002ec8: 492f ldr r1, [pc, #188] ; (8002f88 ) + 8002eca: 4830 ldr r0, [pc, #192] ; (8002f8c ) + 8002ecc: f240 1227 movw r2, #295 ; 0x127 + 8002ed0: f006 fa6a bl 80093a8 + 8002ed4: e00e b.n 8002ef4 + 8002ed6: 2600 movs r6, #0 + 8002ed8: f8df 90bc ldr.w r9, [pc, #188] ; 8002f98 + 8002edc: 4635 mov r5, r6 + 8002ede: 46b0 mov r8, r6 + 8002ee0: 2008 movs r0, #8 + 8002ee2: f7ff fccf bl 8002884 + 8002ee6: 46b2 mov sl, r6 + 8002ee8: 4606 mov r6, r0 + 8002eea: b948 cbnz r0, 8002f00 + 8002eec: 4b28 ldr r3, [pc, #160] ; (8002f90 ) + 8002eee: 2201 movs r2, #1 + 8002ef0: 701a strb r2, [r3, #0] + 8002ef2: b90d cbnz r5, 8002ef8 + 8002ef4: 2500 movs r5, #0 + 8002ef6: e020 b.n 8002f3a + 8002ef8: 4628 mov r0, r5 + 8002efa: f7ff ff6b bl 8002dd4 + 8002efe: e7f9 b.n 8002ef4 + 8002f00: 1ce3 adds r3, r4, #3 + 8002f02: f023 0303 bic.w r3, r3, #3 + 8002f06: f5c3 7314 rsb r3, r3, #592 ; 0x250 + 8002f0a: b29b uxth r3, r3 + 8002f0c: 4404 add r4, r0 + 8002f0e: 42bb cmp r3, r7 + 8002f10: f104 0413 add.w r4, r4, #19 + 8002f14: bf28 it cs + 8002f16: 463b movcs r3, r7 + 8002f18: f024 0403 bic.w r4, r4, #3 + 8002f1c: f8c0 8000 str.w r8, [r0] + 8002f20: 6044 str r4, [r0, #4] + 8002f22: 8107 strh r7, [r0, #8] + 8002f24: 8143 strh r3, [r0, #10] + 8002f26: f8c0 900c str.w r9, [r0, #12] + 8002f2a: b14d cbz r5, 8002f40 + 8002f2c: f8ca 0000 str.w r0, [sl] + 8002f30: 1afb subs r3, r7, r3 + 8002f32: b29f uxth r7, r3 + 8002f34: 2400 movs r4, #0 + 8002f36: 2f00 cmp r7, #0 + 8002f38: d1d2 bne.n 8002ee0 + 8002f3a: 4628 mov r0, r5 + 8002f3c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8002f40: 4605 mov r5, r0 + 8002f42: e7f5 b.n 8002f30 + 8002f44: 3403 adds r4, #3 + 8002f46: 1ccb adds r3, r1, #3 + 8002f48: f023 0303 bic.w r3, r3, #3 + 8002f4c: f024 0403 bic.w r4, r4, #3 + 8002f50: 441c add r4, r3 + 8002f52: b2a4 uxth r4, r4 + 8002f54: f104 0010 add.w r0, r4, #16 + 8002f58: 429c cmp r4, r3 + 8002f5a: b280 uxth r0, r0 + 8002f5c: d3ca bcc.n 8002ef4 + 8002f5e: 4283 cmp r3, r0 + 8002f60: d8c8 bhi.n 8002ef4 + 8002f62: f7ff fb7f bl 8002664 + 8002f66: 4605 mov r5, r0 + 8002f68: 2800 cmp r0, #0 + 8002f6a: d0e6 beq.n 8002f3a + 8002f6c: 4406 add r6, r0 + 8002f6e: 2300 movs r3, #0 + 8002f70: 3613 adds r6, #19 + 8002f72: 6003 str r3, [r0, #0] + 8002f74: f026 0603 bic.w r6, r6, #3 + 8002f78: 4b06 ldr r3, [pc, #24] ; (8002f94 ) + 8002f7a: 6046 str r6, [r0, #4] + 8002f7c: 8107 strh r7, [r0, #8] + 8002f7e: 8147 strh r7, [r0, #10] + 8002f80: 60c3 str r3, [r0, #12] + 8002f82: e7da b.n 8002f3a + 8002f84: 0800aa43 .word 0x0800aa43 + 8002f88: 0800aaec .word 0x0800aaec + 8002f8c: 0800a54d .word 0x0800a54d + 8002f90: 200082a1 .word 0x200082a1 + 8002f94: 00010080 .word 0x00010080 + 8002f98: 00010082 .word 0x00010082 + +08002f9c : + 8002f9c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8002fa0: 460e mov r6, r1 + 8002fa2: 4604 mov r4, r0 + 8002fa4: b930 cbnz r0, 8002fb4 + 8002fa6: 4b24 ldr r3, [pc, #144] ; (8003038 ) + 8002fa8: 4924 ldr r1, [pc, #144] ; (800303c ) + 8002faa: 4825 ldr r0, [pc, #148] ; (8003040 ) + 8002fac: f44f 72cc mov.w r2, #408 ; 0x198 + 8002fb0: f006 f9fa bl 80093a8 + 8002fb4: 8927 ldrh r7, [r4, #8] + 8002fb6: 42b7 cmp r7, r6 + 8002fb8: d93c bls.n 8003034 + 8002fba: f8df 807c ldr.w r8, [pc, #124] ; 8003038 + 8002fbe: f8df a088 ldr.w sl, [pc, #136] ; 8003048 + 8002fc2: f8df 907c ldr.w r9, [pc, #124] ; 8003040 + 8002fc6: 4635 mov r5, r6 + 8002fc8: 8962 ldrh r2, [r4, #10] + 8002fca: 42aa cmp r2, r5 + 8002fcc: d319 bcc.n 8003002 + 8002fce: 7b23 ldrb r3, [r4, #12] + 8002fd0: 0719 lsls r1, r3, #28 + 8002fd2: d127 bne.n 8003024 + 8002fd4: 42aa cmp r2, r5 + 8002fd6: d025 beq.n 8003024 + 8002fd8: 7b63 ldrb r3, [r4, #13] + 8002fda: 079b lsls r3, r3, #30 + 8002fdc: d422 bmi.n 8003024 + 8002fde: 6861 ldr r1, [r4, #4] + 8002fe0: 1b09 subs r1, r1, r4 + 8002fe2: 4429 add r1, r5 + 8002fe4: 4620 mov r0, r4 + 8002fe6: b289 uxth r1, r1 + 8002fe8: f7ff fa98 bl 800251c + 8002fec: 4604 mov r4, r0 + 8002fee: b9c8 cbnz r0, 8003024 + 8002ff0: 4b11 ldr r3, [pc, #68] ; (8003038 ) + 8002ff2: 4914 ldr r1, [pc, #80] ; (8003044 ) + 8002ff4: 4812 ldr r0, [pc, #72] ; (8003040 ) + 8002ff6: f240 12bd movw r2, #445 ; 0x1bd + 8002ffa: f006 f9d5 bl 80093a8 + 8002ffe: 8164 strh r4, [r4, #10] + 8003000: deff udf #255 ; 0xff + 8003002: 1aad subs r5, r5, r2 + 8003004: 8922 ldrh r2, [r4, #8] + 8003006: 1bf3 subs r3, r6, r7 + 8003008: 4413 add r3, r2 + 800300a: 8123 strh r3, [r4, #8] + 800300c: 6824 ldr r4, [r4, #0] + 800300e: b2ad uxth r5, r5 + 8003010: 2c00 cmp r4, #0 + 8003012: d1d9 bne.n 8002fc8 + 8003014: 4643 mov r3, r8 + 8003016: f240 12af movw r2, #431 ; 0x1af + 800301a: 4651 mov r1, sl + 800301c: 4648 mov r0, r9 + 800301e: f006 f9c3 bl 80093a8 + 8003022: e7d1 b.n 8002fc8 + 8003024: 6820 ldr r0, [r4, #0] + 8003026: 8165 strh r5, [r4, #10] + 8003028: 8125 strh r5, [r4, #8] + 800302a: b108 cbz r0, 8003030 + 800302c: f7ff fed2 bl 8002dd4 + 8003030: 2300 movs r3, #0 + 8003032: 6023 str r3, [r4, #0] + 8003034: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8003038: 0800aa43 .word 0x0800aa43 + 800303c: 0800ab07 .word 0x0800ab07 + 8003040: 0800a54d .word 0x0800a54d + 8003044: 0800ab37 .word 0x0800ab37 + 8003048: 0800ab1f .word 0x0800ab1f + +0800304c : + 800304c: 4603 mov r3, r0 + 800304e: 2200 movs r2, #0 + 8003050: b290 uxth r0, r2 + 8003052: 3201 adds r2, #1 + 8003054: b903 cbnz r3, 8003058 + 8003056: 4770 bx lr + 8003058: 681b ldr r3, [r3, #0] + 800305a: e7f9 b.n 8003050 + +0800305c : + 800305c: b158 cbz r0, 8003076 + 800305e: 7b83 ldrb r3, [r0, #14] + 8003060: 3301 adds r3, #1 + 8003062: b2db uxtb r3, r3 + 8003064: 7383 strb r3, [r0, #14] + 8003066: b933 cbnz r3, 8003076 + 8003068: 4b03 ldr r3, [pc, #12] ; (8003078 ) + 800306a: 4904 ldr r1, [pc, #16] ; (800307c ) + 800306c: 4804 ldr r0, [pc, #16] ; (8003080 ) + 800306e: f240 3242 movw r2, #834 ; 0x342 + 8003072: f006 b999 b.w 80093a8 + 8003076: 4770 bx lr + 8003078: 0800aa43 .word 0x0800aa43 + 800307c: 0800ab53 .word 0x0800ab53 + 8003080: 0800a54d .word 0x0800a54d + +08003084 : + 8003084: b570 push {r4, r5, r6, lr} + 8003086: 460d mov r5, r1 + 8003088: 4604 mov r4, r0 + 800308a: b100 cbz r0, 800308e + 800308c: b961 cbnz r1, 80030a8 + 800308e: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} + 8003092: 4b14 ldr r3, [pc, #80] ; (80030e4 ) + 8003094: 4914 ldr r1, [pc, #80] ; (80030e8 ) + 8003096: 4815 ldr r0, [pc, #84] ; (80030ec ) + 8003098: f240 3259 movw r2, #857 ; 0x359 + 800309c: f006 b984 b.w 80093a8 + 80030a0: 8929 ldrh r1, [r5, #8] + 80030a2: 440b add r3, r1 + 80030a4: 8123 strh r3, [r4, #8] + 80030a6: 4614 mov r4, r2 + 80030a8: 6822 ldr r2, [r4, #0] + 80030aa: 8923 ldrh r3, [r4, #8] + 80030ac: 2a00 cmp r2, #0 + 80030ae: d1f7 bne.n 80030a0 + 80030b0: 8962 ldrh r2, [r4, #10] + 80030b2: 429a cmp r2, r3 + 80030b4: d00f beq.n 80030d6 + 80030b6: 4b0b ldr r3, [pc, #44] ; (80030e4 ) + 80030b8: 490d ldr r1, [pc, #52] ; (80030f0 ) + 80030ba: 480c ldr r0, [pc, #48] ; (80030ec ) + 80030bc: f240 3262 movw r2, #866 ; 0x362 + 80030c0: f006 f972 bl 80093a8 + 80030c4: 6823 ldr r3, [r4, #0] + 80030c6: b133 cbz r3, 80030d6 + 80030c8: 4b06 ldr r3, [pc, #24] ; (80030e4 ) + 80030ca: 490a ldr r1, [pc, #40] ; (80030f4 ) + 80030cc: 4807 ldr r0, [pc, #28] ; (80030ec ) + 80030ce: f240 3263 movw r2, #867 ; 0x363 + 80030d2: f006 f969 bl 80093a8 + 80030d6: 892a ldrh r2, [r5, #8] + 80030d8: 8923 ldrh r3, [r4, #8] + 80030da: 6025 str r5, [r4, #0] + 80030dc: 4413 add r3, r2 + 80030de: 8123 strh r3, [r4, #8] + 80030e0: bd70 pop {r4, r5, r6, pc} + 80030e2: bf00 nop + 80030e4: 0800aa43 .word 0x0800aa43 + 80030e8: 0800ab65 .word 0x0800ab65 + 80030ec: 0800a54d .word 0x0800a54d + 80030f0: 0800ab9a .word 0x0800ab9a + 80030f4: 0800abc7 .word 0x0800abc7 + +080030f8 : + 80030f8: b510 push {r4, lr} + 80030fa: 460c mov r4, r1 + 80030fc: f7ff ffc2 bl 8003084 + 8003100: 4620 mov r0, r4 + 8003102: e8bd 4010 ldmia.w sp!, {r4, lr} + 8003106: f7ff bfa9 b.w 800305c + ... + +0800310c : + 800310c: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8003110: 460c mov r4, r1 + 8003112: 4605 mov r5, r0 + 8003114: b120 cbz r0, 8003120 + 8003116: b119 cbz r1, 8003120 + 8003118: 8902 ldrh r2, [r0, #8] + 800311a: 890b ldrh r3, [r1, #8] + 800311c: 429a cmp r2, r3 + 800311e: d20a bcs.n 8003136 + 8003120: 4b34 ldr r3, [pc, #208] ; (80031f4 ) + 8003122: 4935 ldr r1, [pc, #212] ; (80031f8 ) + 8003124: f240 32c9 movw r2, #969 ; 0x3c9 + 8003128: 4834 ldr r0, [pc, #208] ; (80031fc ) + 800312a: f006 f93d bl 80093a8 + 800312e: f06f 000f mvn.w r0, #15 + 8003132: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8003136: 2600 movs r6, #0 + 8003138: f8df b0b8 ldr.w fp, [pc, #184] ; 80031f4 + 800313c: f8df a0cc ldr.w sl, [pc, #204] ; 800320c + 8003140: f8df 90b8 ldr.w r9, [pc, #184] ; 80031fc + 8003144: 4637 mov r7, r6 + 8003146: f8b5 800a ldrh.w r8, [r5, #10] + 800314a: 8962 ldrh r2, [r4, #10] + 800314c: 6868 ldr r0, [r5, #4] + 800314e: 6861 ldr r1, [r4, #4] + 8003150: eba8 0807 sub.w r8, r8, r7 + 8003154: 1b92 subs r2, r2, r6 + 8003156: 4590 cmp r8, r2 + 8003158: bf28 it cs + 800315a: 4690 movcs r8, r2 + 800315c: 4431 add r1, r6 + 800315e: 4438 add r0, r7 + 8003160: 4642 mov r2, r8 + 8003162: f006 f90b bl 800937c + 8003166: 896b ldrh r3, [r5, #10] + 8003168: 4447 add r7, r8 + 800316a: 429f cmp r7, r3 + 800316c: 4446 add r6, r8 + 800316e: d906 bls.n 800317e + 8003170: 465b mov r3, fp + 8003172: f240 32d9 movw r2, #985 ; 0x3d9 + 8003176: 4651 mov r1, sl + 8003178: 4648 mov r0, r9 + 800317a: f006 f915 bl 80093a8 + 800317e: 8963 ldrh r3, [r4, #10] + 8003180: 429e cmp r6, r3 + 8003182: d906 bls.n 8003192 + 8003184: 491e ldr r1, [pc, #120] ; (8003200 ) + 8003186: 465b mov r3, fp + 8003188: f240 32da movw r2, #986 ; 0x3da + 800318c: 4648 mov r0, r9 + 800318e: f006 f90b bl 80093a8 + 8003192: 8963 ldrh r3, [r4, #10] + 8003194: 429e cmp r6, r3 + 8003196: 896b ldrh r3, [r5, #10] + 8003198: bf24 itt cs + 800319a: 6824 ldrcs r4, [r4, #0] + 800319c: 2600 movcs r6, #0 + 800319e: 429f cmp r7, r3 + 80031a0: d108 bne.n 80031b4 + 80031a2: 682d ldr r5, [r5, #0] + 80031a4: b92d cbnz r5, 80031b2 + 80031a6: b314 cbz r4, 80031ee + 80031a8: 4b12 ldr r3, [pc, #72] ; (80031f4 ) + 80031aa: 4916 ldr r1, [pc, #88] ; (8003204 ) + 80031ac: f44f 7279 mov.w r2, #996 ; 0x3e4 + 80031b0: e7ba b.n 8003128 + 80031b2: 2700 movs r7, #0 + 80031b4: b17c cbz r4, 80031d6 + 80031b6: 8962 ldrh r2, [r4, #10] + 80031b8: 8923 ldrh r3, [r4, #8] + 80031ba: 429a cmp r2, r3 + 80031bc: d10b bne.n 80031d6 + 80031be: 6823 ldr r3, [r4, #0] + 80031c0: b14b cbz r3, 80031d6 + 80031c2: 4b0c ldr r3, [pc, #48] ; (80031f4 ) + 80031c4: f240 32e9 movw r2, #1001 ; 0x3e9 + 80031c8: 490f ldr r1, [pc, #60] ; (8003208 ) + 80031ca: 480c ldr r0, [pc, #48] ; (80031fc ) + 80031cc: f006 f8ec bl 80093a8 + 80031d0: f06f 0005 mvn.w r0, #5 + 80031d4: e7ad b.n 8003132 + 80031d6: 896a ldrh r2, [r5, #10] + 80031d8: 892b ldrh r3, [r5, #8] + 80031da: 429a cmp r2, r3 + 80031dc: d105 bne.n 80031ea + 80031de: 682b ldr r3, [r5, #0] + 80031e0: b11b cbz r3, 80031ea + 80031e2: 4b04 ldr r3, [pc, #16] ; (80031f4 ) + 80031e4: f240 32ee movw r2, #1006 ; 0x3ee + 80031e8: e7ee b.n 80031c8 + 80031ea: 2c00 cmp r4, #0 + 80031ec: d1ab bne.n 8003146 + 80031ee: 4620 mov r0, r4 + 80031f0: e79f b.n 8003132 + 80031f2: bf00 nop + 80031f4: 0800aa43 .word 0x0800aa43 + 80031f8: 0800abd7 .word 0x0800abd7 + 80031fc: 0800a54d .word 0x0800a54d + 8003200: 0800ac1e .word 0x0800ac1e + 8003204: 0800ac39 .word 0x0800ac39 + 8003208: 0800ac46 .word 0x0800ac46 + 800320c: 0800ac07 .word 0x0800ac07 + +08003210 : + 8003210: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8003214: 460f mov r7, r1 + 8003216: 4690 mov r8, r2 + 8003218: 4605 mov r5, r0 + 800321a: b950 cbnz r0, 8003232 + 800321c: 4b1b ldr r3, [pc, #108] ; (800328c ) + 800321e: 491c ldr r1, [pc, #112] ; (8003290 ) + 8003220: 481c ldr r0, [pc, #112] ; (8003294 ) + 8003222: f240 420a movw r2, #1034 ; 0x40a + 8003226: f006 f8bf bl 80093a8 + 800322a: 462e mov r6, r5 + 800322c: 4630 mov r0, r6 + 800322e: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8003232: bb41 cbnz r1, 8003286 + 8003234: 4b15 ldr r3, [pc, #84] ; (800328c ) + 8003236: 4918 ldr r1, [pc, #96] ; (8003298 ) + 8003238: 4816 ldr r0, [pc, #88] ; (8003294 ) + 800323a: f240 420b movw r2, #1035 ; 0x40b + 800323e: f006 f8b3 bl 80093a8 + 8003242: 463e mov r6, r7 + 8003244: e7f2 b.n 800322c + 8003246: 896c ldrh r4, [r5, #10] + 8003248: b153 cbz r3, 8003260 + 800324a: 42a3 cmp r3, r4 + 800324c: d308 bcc.n 8003260 + 800324e: 1b1b subs r3, r3, r4 + 8003250: b29b uxth r3, r3 + 8003252: 682d ldr r5, [r5, #0] + 8003254: f1b8 0f00 cmp.w r8, #0 + 8003258: d0e8 beq.n 800322c + 800325a: 2d00 cmp r5, #0 + 800325c: d1f3 bne.n 8003246 + 800325e: e7e5 b.n 800322c + 8003260: 1ae4 subs r4, r4, r3 + 8003262: b2a4 uxth r4, r4 + 8003264: 4544 cmp r4, r8 + 8003266: 6869 ldr r1, [r5, #4] + 8003268: bf28 it cs + 800326a: 4644 movcs r4, r8 + 800326c: 4622 mov r2, r4 + 800326e: 4419 add r1, r3 + 8003270: 19b8 adds r0, r7, r6 + 8003272: 4426 add r6, r4 + 8003274: eba8 0404 sub.w r4, r8, r4 + 8003278: f006 f880 bl 800937c + 800327c: b2b6 uxth r6, r6 + 800327e: fa1f f884 uxth.w r8, r4 + 8003282: 2300 movs r3, #0 + 8003284: e7e5 b.n 8003252 + 8003286: 2600 movs r6, #0 + 8003288: e7e4 b.n 8003254 + 800328a: bf00 nop + 800328c: 0800aa43 .word 0x0800aa43 + 8003290: 0800ac70 .word 0x0800ac70 + 8003294: 0800a54d .word 0x0800a54d + 8003298: 0800ac8f .word 0x0800ac8f + +0800329c : + 800329c: b538 push {r3, r4, r5, lr} + 800329e: 4615 mov r5, r2 + 80032a0: 460a mov r2, r1 + 80032a2: 8929 ldrh r1, [r5, #8] + 80032a4: f7ff fdfa bl 8002e9c + 80032a8: 4604 mov r4, r0 + 80032aa: b150 cbz r0, 80032c2 + 80032ac: 4629 mov r1, r5 + 80032ae: f7ff ff2d bl 800310c + 80032b2: b130 cbz r0, 80032c2 + 80032b4: 4b04 ldr r3, [pc, #16] ; (80032c8 ) + 80032b6: 4905 ldr r1, [pc, #20] ; (80032cc ) + 80032b8: 4805 ldr r0, [pc, #20] ; (80032d0 ) + 80032ba: f240 5224 movw r2, #1316 ; 0x524 + 80032be: f006 f873 bl 80093a8 + 80032c2: 4620 mov r0, r4 + 80032c4: bd38 pop {r3, r4, r5, pc} + 80032c6: bf00 nop + 80032c8: 0800aa43 .word 0x0800aa43 + 80032cc: 0800acb2 .word 0x0800acb2 + 80032d0: 0800a54d .word 0x0800a54d + +080032d4 : + 80032d4: b510 push {r4, lr} + 80032d6: 4604 mov r4, r0 + 80032d8: b930 cbnz r0, 80032e8 + 80032da: 4b13 ldr r3, [pc, #76] ; (8003328 ) + 80032dc: 4913 ldr r1, [pc, #76] ; (800332c ) + 80032de: 4814 ldr r0, [pc, #80] ; (8003330 ) + 80032e0: f44f 72ce mov.w r2, #412 ; 0x19c + 80032e4: f006 f860 bl 80093a8 + 80032e8: 7d23 ldrb r3, [r4, #20] + 80032ea: 2b04 cmp r3, #4 + 80032ec: d003 beq.n 80032f6 + 80032ee: 2b07 cmp r3, #7 + 80032f0: d00c beq.n 800330c + 80032f2: 2b03 cmp r3, #3 + 80032f4: d108 bne.n 8003308 + 80032f6: 4620 mov r0, r4 + 80032f8: f002 fc7e bl 8005bf8 + 80032fc: b960 cbnz r0, 8003318 + 80032fe: 2305 movs r3, #5 + 8003300: 7523 strb r3, [r4, #20] + 8003302: 4620 mov r0, r4 + 8003304: f002 fdda bl 8005ebc + 8003308: 2000 movs r0, #0 + 800330a: bd10 pop {r4, pc} + 800330c: 4620 mov r0, r4 + 800330e: f002 fc73 bl 8005bf8 + 8003312: b908 cbnz r0, 8003318 + 8003314: 2309 movs r3, #9 + 8003316: e7f3 b.n 8003300 + 8003318: 1c43 adds r3, r0, #1 + 800331a: d1f6 bne.n 800330a + 800331c: 8b63 ldrh r3, [r4, #26] + 800331e: f043 0308 orr.w r3, r3, #8 + 8003322: 8363 strh r3, [r4, #26] + 8003324: e7f0 b.n 8003308 + 8003326: bf00 nop + 8003328: 0800acc3 .word 0x0800acc3 + 800332c: 0800acf2 .word 0x0800acf2 + 8003330: 0800a54d .word 0x0800a54d + +08003334 : + 8003334: b508 push {r3, lr} + 8003336: f006 f84f bl 80093d8 + 800333a: 4b03 ldr r3, [pc, #12] ; (8003348 ) + 800333c: ea6f 4080 mvn.w r0, r0, lsl #18 + 8003340: ea6f 4090 mvn.w r0, r0, lsr #18 + 8003344: 8018 strh r0, [r3, #0] + 8003346: bd08 pop {r3, pc} + 8003348: 20000024 .word 0x20000024 + +0800334c : + 800334c: b510 push {r4, lr} + 800334e: 7d03 ldrb r3, [r0, #20] + 8003350: 2b01 cmp r3, #1 + 8003352: 4604 mov r4, r0 + 8003354: d105 bne.n 8003362 + 8003356: 4b06 ldr r3, [pc, #24] ; (8003370 ) + 8003358: 4906 ldr r1, [pc, #24] ; (8003374 ) + 800335a: 4807 ldr r0, [pc, #28] ; (8003378 ) + 800335c: 22d4 movs r2, #212 ; 0xd4 + 800335e: f006 f823 bl 80093a8 + 8003362: 4621 mov r1, r4 + 8003364: 2001 movs r0, #1 + 8003366: e8bd 4010 ldmia.w sp!, {r4, lr} + 800336a: f7ff babb b.w 80028e4 + 800336e: bf00 nop + 8003370: 0800acc3 .word 0x0800acc3 + 8003374: 0800acfe .word 0x0800acfe + 8003378: 0800a54d .word 0x0800a54d + +0800337c : + 800337c: b570 push {r4, r5, r6, lr} + 800337e: 4604 mov r4, r0 + 8003380: b930 cbnz r0, 8003390 + 8003382: 4b15 ldr r3, [pc, #84] ; (80033d8 ) + 8003384: 4915 ldr r1, [pc, #84] ; (80033dc ) + 8003386: 4816 ldr r0, [pc, #88] ; (80033e0 ) + 8003388: f240 32a6 movw r2, #934 ; 0x3a6 + 800338c: f006 f80c bl 80093a8 + 8003390: 8d22 ldrh r2, [r4, #40] ; 0x28 + 8003392: 6ae3 ldr r3, [r4, #44] ; 0x2c + 8003394: 8e66 ldrh r6, [r4, #50] ; 0x32 + 8003396: 6a65 ldr r5, [r4, #36] ; 0x24 + 8003398: 1ad0 subs r0, r2, r3 + 800339a: f5b6 6f86 cmp.w r6, #1072 ; 0x430 + 800339e: 4428 add r0, r5 + 80033a0: bf94 ite ls + 80033a2: 1b81 subls r1, r0, r6 + 80033a4: f5a0 6186 subhi.w r1, r0, #1072 ; 0x430 + 80033a8: 2900 cmp r1, #0 + 80033aa: db01 blt.n 80033b0 + 80033ac: 8562 strh r2, [r4, #42] ; 0x2a + 80033ae: bd70 pop {r4, r5, r6, pc} + 80033b0: 1aea subs r2, r5, r3 + 80033b2: 2a00 cmp r2, #0 + 80033b4: dd02 ble.n 80033bc + 80033b6: 2000 movs r0, #0 + 80033b8: 8560 strh r0, [r4, #42] ; 0x2a + 80033ba: e7f8 b.n 80033ae + 80033bc: 1b5d subs r5, r3, r5 + 80033be: f5b5 3f80 cmp.w r5, #65536 ; 0x10000 + 80033c2: d306 bcc.n 80033d2 + 80033c4: 4b04 ldr r3, [pc, #16] ; (80033d8 ) + 80033c6: 4907 ldr r1, [pc, #28] ; (80033e4 ) + 80033c8: 4805 ldr r0, [pc, #20] ; (80033e0 ) + 80033ca: f240 32b6 movw r2, #950 ; 0x3b6 + 80033ce: f005 ffeb bl 80093a8 + 80033d2: 8565 strh r5, [r4, #42] ; 0x2a + 80033d4: 2000 movs r0, #0 + 80033d6: e7ea b.n 80033ae + 80033d8: 0800acc3 .word 0x0800acc3 + 80033dc: 0800ad0f .word 0x0800ad0f + 80033e0: 0800a54d .word 0x0800a54d + 80033e4: 0800ad33 .word 0x0800ad33 + +080033e8 : + 80033e8: b570 push {r4, r5, r6, lr} + 80033ea: 460c mov r4, r1 + 80033ec: 4605 mov r5, r0 + 80033ee: b940 cbnz r0, 8003402 + 80033f0: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} + 80033f4: 4b17 ldr r3, [pc, #92] ; (8003454 ) + 80033f6: 4918 ldr r1, [pc, #96] ; (8003458 ) + 80033f8: 4818 ldr r0, [pc, #96] ; (800345c ) + 80033fa: f240 32cf movw r2, #975 ; 0x3cf + 80033fe: f005 bfd3 b.w 80093a8 + 8003402: 7d03 ldrb r3, [r0, #20] + 8003404: 2b01 cmp r3, #1 + 8003406: d106 bne.n 8003416 + 8003408: 4b12 ldr r3, [pc, #72] ; (8003454 ) + 800340a: 4915 ldr r1, [pc, #84] ; (8003460 ) + 800340c: 4813 ldr r0, [pc, #76] ; (800345c ) + 800340e: f240 32d2 movw r2, #978 ; 0x3d2 + 8003412: f005 ffc9 bl 80093a8 + 8003416: 8d2b ldrh r3, [r5, #40] ; 0x28 + 8003418: 1919 adds r1, r3, r4 + 800341a: b289 uxth r1, r1 + 800341c: f5b1 6f06 cmp.w r1, #2144 ; 0x860 + 8003420: d813 bhi.n 800344a + 8003422: 428b cmp r3, r1 + 8003424: bf88 it hi + 8003426: f44f 6106 movhi.w r1, #2144 ; 0x860 + 800342a: 8529 strh r1, [r5, #40] ; 0x28 + 800342c: 4628 mov r0, r5 + 800342e: f7ff ffa5 bl 800337c + 8003432: f5b0 7f06 cmp.w r0, #536 ; 0x218 + 8003436: d30b bcc.n 8003450 + 8003438: 8b6b ldrh r3, [r5, #26] + 800343a: f043 0302 orr.w r3, r3, #2 + 800343e: 836b strh r3, [r5, #26] + 8003440: 4628 mov r0, r5 + 8003442: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} + 8003446: f002 bd39 b.w 8005ebc + 800344a: f44f 6106 mov.w r1, #2144 ; 0x860 + 800344e: e7ec b.n 800342a + 8003450: bd70 pop {r4, r5, r6, pc} + 8003452: bf00 nop + 8003454: 0800acc3 .word 0x0800acc3 + 8003458: 0800ad4d .word 0x0800ad4d + 800345c: 0800a54d .word 0x0800a54d + 8003460: 0800ad65 .word 0x0800ad65 + +08003464 : + 8003464: b510 push {r4, lr} + 8003466: 4604 mov r4, r0 + 8003468: b148 cbz r0, 800347e + 800346a: 6840 ldr r0, [r0, #4] + 800346c: b108 cbz r0, 8003472 + 800346e: f7ff fcb1 bl 8002dd4 + 8003472: 4621 mov r1, r4 + 8003474: 2003 movs r0, #3 + 8003476: e8bd 4010 ldmia.w sp!, {r4, lr} + 800347a: f7ff ba33 b.w 80028e4 + 800347e: bd10 pop {r4, pc} + +08003480 : + 8003480: b510 push {r4, lr} + 8003482: b900 cbnz r0, 8003486 + 8003484: bd10 pop {r4, pc} + 8003486: 6804 ldr r4, [r0, #0] + 8003488: f7ff ffec bl 8003464 + 800348c: 4620 mov r0, r4 + 800348e: e7f8 b.n 8003482 + +08003490 : + 8003490: b538 push {r3, r4, r5, lr} + 8003492: 4604 mov r4, r0 + 8003494: b930 cbnz r0, 80034a4 + 8003496: 4b0d ldr r3, [pc, #52] ; (80034cc ) + 8003498: 490d ldr r1, [pc, #52] ; (80034d0 ) + 800349a: 480e ldr r0, [pc, #56] ; (80034d4 ) + 800349c: f240 6282 movw r2, #1666 ; 0x682 + 80034a0: f005 ff82 bl 80093a8 + 80034a4: 2003 movs r0, #3 + 80034a6: f7ff f9ed bl 8002884 + 80034aa: 4605 mov r5, r0 + 80034ac: b160 cbz r0, 80034c8 + 80034ae: 4623 mov r3, r4 + 80034b0: 4602 mov r2, r0 + 80034b2: f104 0110 add.w r1, r4, #16 + 80034b6: f853 0b04 ldr.w r0, [r3], #4 + 80034ba: f842 0b04 str.w r0, [r2], #4 + 80034be: 428b cmp r3, r1 + 80034c0: d1f9 bne.n 80034b6 + 80034c2: 6868 ldr r0, [r5, #4] + 80034c4: f7ff fdca bl 800305c + 80034c8: 4628 mov r0, r5 + 80034ca: bd38 pop {r3, r4, r5, pc} + 80034cc: 0800acc3 .word 0x0800acc3 + 80034d0: 0800ad8b .word 0x0800ad8b + 80034d4: 0800a54d .word 0x0800a54d + +080034d8 : + 80034d8: b508 push {r3, lr} + 80034da: b930 cbnz r0, 80034ea + 80034dc: 4b06 ldr r3, [pc, #24] ; (80034f8 ) + 80034de: 4907 ldr r1, [pc, #28] ; (80034fc ) + 80034e0: 4807 ldr r0, [pc, #28] ; (8003500 ) + 80034e2: f640 02af movw r2, #2223 ; 0x8af + 80034e6: f005 ff5f bl 80093a8 + 80034ea: 4b06 ldr r3, [pc, #24] ; (8003504 ) + 80034ec: 4a06 ldr r2, [pc, #24] ; (8003508 ) + 80034ee: 6818 ldr r0, [r3, #0] + 80034f0: 6812 ldr r2, [r2, #0] + 80034f2: 4410 add r0, r2 + 80034f4: 6018 str r0, [r3, #0] + 80034f6: bd08 pop {r3, pc} + 80034f8: 0800acc3 .word 0x0800acc3 + 80034fc: 0800ada5 .word 0x0800ada5 + 8003500: 0800a54d .word 0x0800a54d + 8003504: 20000020 .word 0x20000020 + 8003508: 200082b4 .word 0x200082b4 + +0800350c : + 800350c: b538 push {r3, r4, r5, lr} + 800350e: 4604 mov r4, r0 + 8003510: 460d mov r5, r1 + 8003512: b932 cbnz r2, 8003522 + 8003514: 4b09 ldr r3, [pc, #36] ; (800353c ) + 8003516: 490a ldr r1, [pc, #40] ; (8003540 ) + 8003518: 480a ldr r0, [pc, #40] ; (8003544 ) + 800351a: f640 02c5 movw r2, #2245 ; 0x8c5 + 800351e: f005 ff43 bl 80093a8 + 8003522: b14d cbz r5, 8003538 + 8003524: 8d2b ldrh r3, [r5, #40] ; 0x28 + 8003526: b13b cbz r3, 8003538 + 8003528: 2b28 cmp r3, #40 ; 0x28 + 800352a: bf86 itte hi + 800352c: 3b28 subhi r3, #40 ; 0x28 + 800352e: b29b uxthhi r3, r3 + 8003530: 2300 movls r3, #0 + 8003532: 429c cmp r4, r3 + 8003534: bf28 it cs + 8003536: 461c movcs r4, r3 + 8003538: 4620 mov r0, r4 + 800353a: bd38 pop {r3, r4, r5, pc} + 800353c: 0800acc3 .word 0x0800acc3 + 8003540: 0800adbf .word 0x0800adbf + 8003544: 0800a54d .word 0x0800a54d + +08003548 : + 8003548: b510 push {r4, lr} + 800354a: 4604 mov r4, r0 + 800354c: 6f40 ldr r0, [r0, #116] ; 0x74 + 800354e: b118 cbz r0, 8003558 + 8003550: f7ff ff96 bl 8003480 + 8003554: 2300 movs r3, #0 + 8003556: 6763 str r3, [r4, #116] ; 0x74 + 8003558: bd10 pop {r4, pc} + ... + +0800355c : + 800355c: b510 push {r4, lr} + 800355e: 4604 mov r4, r0 + 8003560: b940 cbnz r0, 8003574 + 8003562: e8bd 4010 ldmia.w sp!, {r4, lr} + 8003566: 4b13 ldr r3, [pc, #76] ; (80035b4 ) + 8003568: 4913 ldr r1, [pc, #76] ; (80035b8 ) + 800356a: 4814 ldr r0, [pc, #80] ; (80035bc ) + 800356c: f640 0251 movw r2, #2129 ; 0x851 + 8003570: f005 bf1a b.w 80093a8 + 8003574: 7d03 ldrb r3, [r0, #20] + 8003576: 2b01 cmp r3, #1 + 8003578: d91a bls.n 80035b0 + 800357a: 2b0a cmp r3, #10 + 800357c: d018 beq.n 80035b0 + 800357e: 6f80 ldr r0, [r0, #120] ; 0x78 + 8003580: b118 cbz r0, 800358a + 8003582: f7ff fc27 bl 8002dd4 + 8003586: 2300 movs r3, #0 + 8003588: 67a3 str r3, [r4, #120] ; 0x78 + 800358a: 6f63 ldr r3, [r4, #116] ; 0x74 + 800358c: b113 cbz r3, 8003594 + 800358e: 4620 mov r0, r4 + 8003590: f7ff ffda bl 8003548 + 8003594: f64f 73ff movw r3, #65535 ; 0xffff + 8003598: 8623 strh r3, [r4, #48] ; 0x30 + 800359a: 6ee0 ldr r0, [r4, #108] ; 0x6c + 800359c: f7ff ff70 bl 8003480 + 80035a0: 6f20 ldr r0, [r4, #112] ; 0x70 + 80035a2: f7ff ff6d bl 8003480 + 80035a6: 2300 movs r3, #0 + 80035a8: e9c4 331b strd r3, r3, [r4, #108] ; 0x6c + 80035ac: f8a4 3068 strh.w r3, [r4, #104] ; 0x68 + 80035b0: bd10 pop {r4, pc} + 80035b2: bf00 nop + 80035b4: 0800acc3 .word 0x0800acc3 + 80035b8: 0800ade6 .word 0x0800ade6 + 80035bc: 0800a54d .word 0x0800a54d + +080035c0 : + 80035c0: b538 push {r3, r4, r5, lr} + 80035c2: 4605 mov r5, r0 + 80035c4: 460c mov r4, r1 + 80035c6: b931 cbnz r1, 80035d6 + 80035c8: 4b29 ldr r3, [pc, #164] ; (8003670 ) + 80035ca: 492a ldr r1, [pc, #168] ; (8003674 ) + 80035cc: 482a ldr r0, [pc, #168] ; (8003678 ) + 80035ce: f640 0283 movw r2, #2179 ; 0x883 + 80035d2: f005 fee9 bl 80093a8 + 80035d6: b935 cbnz r5, 80035e6 + 80035d8: 4b25 ldr r3, [pc, #148] ; (8003670 ) + 80035da: 4928 ldr r1, [pc, #160] ; (800367c ) + 80035dc: 4826 ldr r0, [pc, #152] ; (8003678 ) + 80035de: f640 0284 movw r2, #2180 ; 0x884 + 80035e2: f005 fee1 bl 80093a8 + 80035e6: 682b ldr r3, [r5, #0] + 80035e8: 42a3 cmp r3, r4 + 80035ea: d11f bne.n 800362c + 80035ec: 68e3 ldr r3, [r4, #12] + 80035ee: 602b str r3, [r5, #0] + 80035f0: 2300 movs r3, #0 + 80035f2: 60e3 str r3, [r4, #12] + 80035f4: 4620 mov r0, r4 + 80035f6: f7ff ffb1 bl 800355c + 80035fa: 7d23 ldrb r3, [r4, #20] + 80035fc: 2b0a cmp r3, #10 + 80035fe: d11d bne.n 800363c + 8003600: 6ee3 ldr r3, [r4, #108] ; 0x6c + 8003602: bb6b cbnz r3, 8003660 + 8003604: 6f23 ldr r3, [r4, #112] ; 0x70 + 8003606: b133 cbz r3, 8003616 + 8003608: 4b19 ldr r3, [pc, #100] ; (8003670 ) + 800360a: 491d ldr r1, [pc, #116] ; (8003680 ) + 800360c: 481a ldr r0, [pc, #104] ; (8003678 ) + 800360e: f640 0294 movw r2, #2196 ; 0x894 + 8003612: f005 fec9 bl 80093a8 + 8003616: 6f63 ldr r3, [r4, #116] ; 0x74 + 8003618: b1f3 cbz r3, 8003658 + 800361a: 4b15 ldr r3, [pc, #84] ; (8003670 ) + 800361c: 4919 ldr r1, [pc, #100] ; (8003684 ) + 800361e: 4816 ldr r0, [pc, #88] ; (8003678 ) + 8003620: f640 0296 movw r2, #2198 ; 0x896 + 8003624: f005 fec0 bl 80093a8 + 8003628: e016 b.n 8003658 + 800362a: 4613 mov r3, r2 + 800362c: 2b00 cmp r3, #0 + 800362e: d0df beq.n 80035f0 + 8003630: 68da ldr r2, [r3, #12] + 8003632: 42a2 cmp r2, r4 + 8003634: d1f9 bne.n 800362a + 8003636: 68e2 ldr r2, [r4, #12] + 8003638: 60da str r2, [r3, #12] + 800363a: e7d9 b.n 80035f0 + 800363c: 2b01 cmp r3, #1 + 800363e: d00b beq.n 8003658 + 8003640: 8b63 ldrh r3, [r4, #26] + 8003642: 07da lsls r2, r3, #31 + 8003644: d5dc bpl.n 8003600 + 8003646: f043 0302 orr.w r3, r3, #2 + 800364a: 8363 strh r3, [r4, #26] + 800364c: 4620 mov r0, r4 + 800364e: f002 fc35 bl 8005ebc + 8003652: 7d23 ldrb r3, [r4, #20] + 8003654: 2b01 cmp r3, #1 + 8003656: d1d3 bne.n 8003600 + 8003658: 2300 movs r3, #0 + 800365a: 7523 strb r3, [r4, #20] + 800365c: 82e3 strh r3, [r4, #22] + 800365e: bd38 pop {r3, r4, r5, pc} + 8003660: 4b03 ldr r3, [pc, #12] ; (8003670 ) + 8003662: 4909 ldr r1, [pc, #36] ; (8003688 ) + 8003664: 4804 ldr r0, [pc, #16] ; (8003678 ) + 8003666: f640 0293 movw r2, #2195 ; 0x893 + 800366a: f005 fe9d bl 80093a8 + 800366e: e7c9 b.n 8003604 + 8003670: 0800acc3 .word 0x0800acc3 + 8003674: 0800ae01 .word 0x0800ae01 + 8003678: 0800a54d .word 0x0800a54d + 800367c: 0800ae1d .word 0x0800ae1d + 8003680: 0800ae55 .word 0x0800ae55 + 8003684: 0800ae6e .word 0x0800ae6e + 8003688: 0800ae3d .word 0x0800ae3d + +0800368c : + 800368c: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} + 8003690: 460e mov r6, r1 + 8003692: 4604 mov r4, r0 + 8003694: b948 cbnz r0, 80036aa + 8003696: 4b36 ldr r3, [pc, #216] ; (8003770 ) + 8003698: 4936 ldr r1, [pc, #216] ; (8003774 ) + 800369a: 4837 ldr r0, [pc, #220] ; (8003778 ) + 800369c: f240 223d movw r2, #573 ; 0x23d + 80036a0: b004 add sp, #16 + 80036a2: e8bd 47f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80036a6: f005 be7f b.w 80093a8 + 80036aa: 7d03 ldrb r3, [r0, #20] + 80036ac: 2b01 cmp r3, #1 + 80036ae: d106 bne.n 80036be + 80036b0: 4b2f ldr r3, [pc, #188] ; (8003770 ) + 80036b2: 4932 ldr r1, [pc, #200] ; (800377c ) + 80036b4: 4830 ldr r0, [pc, #192] ; (8003778 ) + 80036b6: f44f 7210 mov.w r2, #576 ; 0x240 + 80036ba: f005 fe75 bl 80093a8 + 80036be: 7d23 ldrb r3, [r4, #20] + 80036c0: 2b0a cmp r3, #10 + 80036c2: d109 bne.n 80036d8 + 80036c4: 482e ldr r0, [pc, #184] ; (8003780 ) + 80036c6: 4621 mov r1, r4 + 80036c8: f7ff ff7a bl 80035c0 + 80036cc: 4620 mov r0, r4 + 80036ce: b004 add sp, #16 + 80036d0: e8bd 47f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80036d4: f7ff be3a b.w 800334c + 80036d8: f8d4 9050 ldr.w r9, [r4, #80] ; 0x50 + 80036dc: f8d4 a024 ldr.w sl, [r4, #36] ; 0x24 + 80036e0: f8d4 7090 ldr.w r7, [r4, #144] ; 0x90 + 80036e4: f8d4 8010 ldr.w r8, [r4, #16] + 80036e8: 8ae5 ldrh r5, [r4, #22] + 80036ea: b99b cbnz r3, 8003714 + 80036ec: b13d cbz r5, 80036fe + 80036ee: 4a25 ldr r2, [pc, #148] ; (8003784 ) + 80036f0: 6813 ldr r3, [r2, #0] + 80036f2: 42a3 cmp r3, r4 + 80036f4: d106 bne.n 8003704 + 80036f6: 68e3 ldr r3, [r4, #12] + 80036f8: 6013 str r3, [r2, #0] + 80036fa: 2500 movs r5, #0 + 80036fc: 60e5 str r5, [r4, #12] + 80036fe: 462e mov r6, r5 + 8003700: e00f b.n 8003722 + 8003702: 4613 mov r3, r2 + 8003704: 2b00 cmp r3, #0 + 8003706: d0f8 beq.n 80036fa + 8003708: 68da ldr r2, [r3, #12] + 800370a: 42a2 cmp r2, r4 + 800370c: d1f9 bne.n 8003702 + 800370e: 68e2 ldr r2, [r4, #12] + 8003710: 60da str r2, [r3, #12] + 8003712: e7f2 b.n 80036fa + 8003714: 481c ldr r0, [pc, #112] ; (8003788 ) + 8003716: 4621 mov r1, r4 + 8003718: f7ff ff52 bl 80035c0 + 800371c: 4b1b ldr r3, [pc, #108] ; (800378c ) + 800371e: 2201 movs r2, #1 + 8003720: 701a strb r2, [r3, #0] + 8003722: 6f20 ldr r0, [r4, #112] ; 0x70 + 8003724: b108 cbz r0, 800372a + 8003726: f7ff feab bl 8003480 + 800372a: 6ee0 ldr r0, [r4, #108] ; 0x6c + 800372c: b108 cbz r0, 8003732 + 800372e: f7ff fea7 bl 8003480 + 8003732: 6f60 ldr r0, [r4, #116] ; 0x74 + 8003734: b108 cbz r0, 800373a + 8003736: f7ff fea3 bl 8003480 + 800373a: b156 cbz r6, 8003752 + 800373c: 8b23 ldrh r3, [r4, #24] + 800373e: e9cd 5301 strd r5, r3, [sp, #4] + 8003742: 1d23 adds r3, r4, #4 + 8003744: 9300 str r3, [sp, #0] + 8003746: 4652 mov r2, sl + 8003748: 4623 mov r3, r4 + 800374a: 4649 mov r1, r9 + 800374c: 4620 mov r0, r4 + 800374e: f002 fb3d bl 8005dcc + 8003752: 4620 mov r0, r4 + 8003754: f7ff fdfa bl 800334c + 8003758: b13f cbz r7, 800376a + 800375a: f06f 010c mvn.w r1, #12 + 800375e: 4640 mov r0, r8 + 8003760: 463b mov r3, r7 + 8003762: b004 add sp, #16 + 8003764: e8bd 47f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8003768: 4718 bx r3 + 800376a: b004 add sp, #16 + 800376c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8003770: 0800acc3 .word 0x0800acc3 + 8003774: 0800ae85 .word 0x0800ae85 + 8003778: 0800a54d .word 0x0800a54d + 800377c: 0800ae9e .word 0x0800ae9e + 8003780: 200082bc .word 0x200082bc + 8003784: 200082ac .word 0x200082ac + 8003788: 200082a4 .word 0x200082a4 + 800378c: 200082a8 .word 0x200082a8 + +08003790 : + 8003790: 2101 movs r1, #1 + 8003792: f7ff bf7b b.w 800368c + ... + +08003798 : + 8003798: b570 push {r4, r5, r6, lr} + 800379a: 460c mov r4, r1 + 800379c: 4605 mov r5, r0 + 800379e: b930 cbnz r0, 80037ae + 80037a0: 4b09 ldr r3, [pc, #36] ; (80037c8 ) + 80037a2: 490a ldr r1, [pc, #40] ; (80037cc ) + 80037a4: 480a ldr r0, [pc, #40] ; (80037d0 ) + 80037a6: f44f 6210 mov.w r2, #2304 ; 0x900 + 80037aa: f005 fdfd bl 80093a8 + 80037ae: b904 cbnz r4, 80037b2 + 80037b0: bd70 pop {r4, r5, r6, pc} + 80037b2: 6822 ldr r2, [r4, #0] + 80037b4: 682b ldr r3, [r5, #0] + 80037b6: 68e6 ldr r6, [r4, #12] + 80037b8: 429a cmp r2, r3 + 80037ba: d102 bne.n 80037c2 + 80037bc: 4620 mov r0, r4 + 80037be: f7ff ffe7 bl 8003790 + 80037c2: 4634 mov r4, r6 + 80037c4: e7f3 b.n 80037ae + 80037c6: bf00 nop + 80037c8: 0800acc3 .word 0x0800acc3 + 80037cc: 0800aecf .word 0x0800aecf + 80037d0: 0800a54d .word 0x0800a54d + +080037d4 : + 80037d4: b538 push {r3, r4, r5, lr} + 80037d6: 460d mov r5, r1 + 80037d8: 4604 mov r4, r0 + 80037da: b180 cbz r0, 80037fe + 80037dc: 6803 ldr r3, [r0, #0] + 80037de: b173 cbz r3, 80037fe + 80037e0: 4b0b ldr r3, [pc, #44] ; (8003810 ) + 80037e2: 6819 ldr r1, [r3, #0] + 80037e4: f7ff ffd8 bl 8003798 + 80037e8: 4b0a ldr r3, [pc, #40] ; (8003814 ) + 80037ea: 4620 mov r0, r4 + 80037ec: 6819 ldr r1, [r3, #0] + 80037ee: f7ff ffd3 bl 8003798 + 80037f2: b125 cbz r5, 80037fe + 80037f4: 682b ldr r3, [r5, #0] + 80037f6: b113 cbz r3, 80037fe + 80037f8: 4b07 ldr r3, [pc, #28] ; (8003818 ) + 80037fa: 681b ldr r3, [r3, #0] + 80037fc: b903 cbnz r3, 8003800 + 80037fe: bd38 pop {r3, r4, r5, pc} + 8003800: 6819 ldr r1, [r3, #0] + 8003802: 6822 ldr r2, [r4, #0] + 8003804: 4291 cmp r1, r2 + 8003806: bf04 itt eq + 8003808: 682a ldreq r2, [r5, #0] + 800380a: 601a streq r2, [r3, #0] + 800380c: 68db ldr r3, [r3, #12] + 800380e: e7f5 b.n 80037fc + 8003810: 200082a4 .word 0x200082a4 + 8003814: 200082ac .word 0x200082ac + 8003818: 200082b0 .word 0x200082b0 + +0800381c : + 800381c: 4b0c ldr r3, [pc, #48] ; (8003850 ) + 800381e: 6819 ldr r1, [r3, #0] + 8003820: 4b0c ldr r3, [pc, #48] ; (8003854 ) + 8003822: b430 push {r4, r5} + 8003824: 2200 movs r2, #0 + 8003826: 681d ldr r5, [r3, #0] + 8003828: 4604 mov r4, r0 + 800382a: 4610 mov r0, r2 + 800382c: b919 cbnz r1, 8003836 + 800382e: b168 cbz r0, 800384c + 8003830: bc30 pop {r4, r5} + 8003832: f7ff bf2b b.w 800368c + 8003836: 7d0b ldrb r3, [r1, #20] + 8003838: 42a3 cmp r3, r4 + 800383a: d105 bne.n 8003848 + 800383c: 6a0b ldr r3, [r1, #32] + 800383e: 1aeb subs r3, r5, r3 + 8003840: 4293 cmp r3, r2 + 8003842: bf24 itt cs + 8003844: 461a movcs r2, r3 + 8003846: 4608 movcs r0, r1 + 8003848: 68c9 ldr r1, [r1, #12] + 800384a: e7ef b.n 800382c + 800384c: bc30 pop {r4, r5} + 800384e: 4770 bx lr + 8003850: 200082a4 .word 0x200082a4 + 8003854: 200082b4 .word 0x200082b4 + +08003858 : + 8003858: b5f8 push {r3, r4, r5, r6, r7, lr} + 800385a: 4604 mov r4, r0 + 800385c: 2001 movs r0, #1 + 800385e: f7ff f811 bl 8002884 + 8003862: 4603 mov r3, r0 + 8003864: 2800 cmp r0, #0 + 8003866: d136 bne.n 80038d6 + 8003868: 4e3f ldr r6, [pc, #252] ; (8003968 ) + 800386a: 6830 ldr r0, [r6, #0] + 800386c: 2800 cmp r0, #0 + 800386e: d157 bne.n 8003920 + 8003870: 4b3e ldr r3, [pc, #248] ; (800396c ) + 8003872: 4d3f ldr r5, [pc, #252] ; (8003970 ) + 8003874: 681b ldr r3, [r3, #0] + 8003876: 682f ldr r7, [r5, #0] + 8003878: 4601 mov r1, r0 + 800387a: 2b00 cmp r3, #0 + 800387c: d15b bne.n 8003936 + 800387e: b108 cbz r0, 8003884 + 8003880: f7ff ff86 bl 8003790 + 8003884: 2001 movs r0, #1 + 8003886: f7fe fffd bl 8002884 + 800388a: 4603 mov r3, r0 + 800388c: bb18 cbnz r0, 80038d6 + 800388e: 2009 movs r0, #9 + 8003890: f7ff ffc4 bl 800381c + 8003894: 2001 movs r0, #1 + 8003896: f7fe fff5 bl 8002884 + 800389a: 4603 mov r3, r0 + 800389c: b9d8 cbnz r0, 80038d6 + 800389e: 2008 movs r0, #8 + 80038a0: f7ff ffbc bl 800381c + 80038a4: 2001 movs r0, #1 + 80038a6: f7fe ffed bl 8002884 + 80038aa: 4603 mov r3, r0 + 80038ac: b998 cbnz r0, 80038d6 + 80038ae: 0622 lsls r2, r4, #24 + 80038b0: d449 bmi.n 8003946 + 80038b2: b15c cbz r4, 80038cc + 80038b4: 4621 mov r1, r4 + 80038b6: 6832 ldr r2, [r6, #0] + 80038b8: 682e ldr r6, [r5, #0] + 80038ba: 3901 subs r1, #1 + 80038bc: b2c9 uxtb r1, r1 + 80038be: 2000 movs r0, #0 + 80038c0: 2a00 cmp r2, #0 + 80038c2: d142 bne.n 800394a + 80038c4: b113 cbz r3, 80038cc + 80038c6: 4618 mov r0, r3 + 80038c8: f7ff ff62 bl 8003790 + 80038cc: 2001 movs r0, #1 + 80038ce: f7fe ffd9 bl 8002884 + 80038d2: 4603 mov r3, r0 + 80038d4: b310 cbz r0, 800391c + 80038d6: 229c movs r2, #156 ; 0x9c + 80038d8: 4618 mov r0, r3 + 80038da: 2100 movs r1, #0 + 80038dc: f005 fd5c bl 8009398 + 80038e0: f44f 6286 mov.w r2, #1072 ; 0x430 + 80038e4: f8a0 2064 strh.w r2, [r0, #100] ; 0x64 + 80038e8: 4a22 ldr r2, [pc, #136] ; (8003974 ) + 80038ea: 6282 str r2, [r0, #40] ; 0x28 + 80038ec: 22ff movs r2, #255 ; 0xff + 80038ee: 72c2 strb r2, [r0, #11] + 80038f0: 2206 movs r2, #6 + 80038f2: f8a0 2040 strh.w r2, [r0, #64] ; 0x40 + 80038f6: 87c2 strh r2, [r0, #62] ; 0x3e + 80038f8: 4a1f ldr r2, [pc, #124] ; (8003978 ) + 80038fa: 6302 str r2, [r0, #48] ; 0x30 + 80038fc: 4a1c ldr r2, [pc, #112] ; (8003970 ) + 80038fe: 7544 strb r4, [r0, #21] + 8003900: 6812 ldr r2, [r2, #0] + 8003902: 6202 str r2, [r0, #32] + 8003904: 4a1d ldr r2, [pc, #116] ; (800397c ) + 8003906: 7812 ldrb r2, [r2, #0] + 8003908: 7782 strb r2, [r0, #30] + 800390a: 4a1d ldr r2, [pc, #116] ; (8003980 ) + 800390c: 6482 str r2, [r0, #72] ; 0x48 + 800390e: 4a1d ldr r2, [pc, #116] ; (8003984 ) + 8003910: f8c0 2084 str.w r2, [r0, #132] ; 0x84 + 8003914: 4a1c ldr r2, [pc, #112] ; (8003988 ) + 8003916: f8c0 2094 str.w r2, [r0, #148] ; 0x94 + 800391a: 4603 mov r3, r0 + 800391c: 4618 mov r0, r3 + 800391e: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8003920: 8b43 ldrh r3, [r0, #26] + 8003922: 68c5 ldr r5, [r0, #12] + 8003924: 0719 lsls r1, r3, #28 + 8003926: d504 bpl.n 8003932 + 8003928: f023 0308 bic.w r3, r3, #8 + 800392c: 8343 strh r3, [r0, #26] + 800392e: f7ff fcd1 bl 80032d4 + 8003932: 4628 mov r0, r5 + 8003934: e79a b.n 800386c + 8003936: 6a1a ldr r2, [r3, #32] + 8003938: 1aba subs r2, r7, r2 + 800393a: 428a cmp r2, r1 + 800393c: bf24 itt cs + 800393e: 4618 movcs r0, r3 + 8003940: 4611 movcs r1, r2 + 8003942: 68db ldr r3, [r3, #12] + 8003944: e799 b.n 800387a + 8003946: 217f movs r1, #127 ; 0x7f + 8003948: e7b5 b.n 80038b6 + 800394a: 7d57 ldrb r7, [r2, #21] + 800394c: 428f cmp r7, r1 + 800394e: d304 bcc.n 800395a + 8003950: d107 bne.n 8003962 + 8003952: 6a15 ldr r5, [r2, #32] + 8003954: 1b75 subs r5, r6, r5 + 8003956: 4285 cmp r5, r0 + 8003958: d303 bcc.n 8003962 + 800395a: 6a10 ldr r0, [r2, #32] + 800395c: 4639 mov r1, r7 + 800395e: 1a30 subs r0, r6, r0 + 8003960: 4613 mov r3, r2 + 8003962: 68d2 ldr r2, [r2, #12] + 8003964: e7ac b.n 80038c0 + 8003966: bf00 nop + 8003968: 200082a4 .word 0x200082a4 + 800396c: 200082bc .word 0x200082bc + 8003970: 200082b4 .word 0x200082b4 + 8003974: 08600860 .word 0x08600860 + 8003978: 0218ffff .word 0x0218ffff + 800397c: 200082b9 .word 0x200082b9 + 8003980: 04300001 .word 0x04300001 + 8003984: 08003b2d .word 0x08003b2d + 8003988: 006ddd00 .word 0x006ddd00 + +0800398c : + 800398c: b530 push {r4, r5, lr} + 800398e: 460d mov r5, r1 + 8003990: b085 sub sp, #20 + 8003992: 4604 mov r4, r0 + 8003994: b930 cbnz r0, 80039a4 + 8003996: 4b4b ldr r3, [pc, #300] ; (8003ac4 ) + 8003998: 494b ldr r1, [pc, #300] ; (8003ac8 ) + 800399a: 484c ldr r0, [pc, #304] ; (8003acc ) + 800399c: f44f 72af mov.w r2, #350 ; 0x15e + 80039a0: f005 fd02 bl 80093a8 + 80039a4: 7d23 ldrb r3, [r4, #20] + 80039a6: 2d00 cmp r5, #0 + 80039a8: d03f beq.n 8003a2a + 80039aa: 2b04 cmp r3, #4 + 80039ac: d001 beq.n 80039b2 + 80039ae: 2b07 cmp r3, #7 + 80039b0: d13b bne.n 8003a2a + 80039b2: 6fa2 ldr r2, [r4, #120] ; 0x78 + 80039b4: b91a cbnz r2, 80039be + 80039b6: 8d22 ldrh r2, [r4, #40] ; 0x28 + 80039b8: f5b2 6f06 cmp.w r2, #2144 ; 0x860 + 80039bc: d035 beq.n 8003a2a + 80039be: 8b63 ldrh r3, [r4, #26] + 80039c0: 06db lsls r3, r3, #27 + 80039c2: d406 bmi.n 80039d2 + 80039c4: 4b3f ldr r3, [pc, #252] ; (8003ac4 ) + 80039c6: 4942 ldr r1, [pc, #264] ; (8003ad0 ) + 80039c8: 4840 ldr r0, [pc, #256] ; (8003acc ) + 80039ca: f44f 72b2 mov.w r2, #356 ; 0x164 + 80039ce: f005 fceb bl 80093a8 + 80039d2: 8b23 ldrh r3, [r4, #24] + 80039d4: 9302 str r3, [sp, #8] + 80039d6: 8ae3 ldrh r3, [r4, #22] + 80039d8: 9301 str r3, [sp, #4] + 80039da: 1d23 adds r3, r4, #4 + 80039dc: 9300 str r3, [sp, #0] + 80039de: 6a62 ldr r2, [r4, #36] ; 0x24 + 80039e0: 6d21 ldr r1, [r4, #80] ; 0x50 + 80039e2: 4623 mov r3, r4 + 80039e4: 4620 mov r0, r4 + 80039e6: f002 f9f1 bl 8005dcc + 80039ea: 4620 mov r0, r4 + 80039ec: f7ff fdb6 bl 800355c + 80039f0: 4a38 ldr r2, [pc, #224] ; (8003ad4 ) + 80039f2: 6813 ldr r3, [r2, #0] + 80039f4: 42a3 cmp r3, r4 + 80039f6: d110 bne.n 8003a1a + 80039f8: 68e3 ldr r3, [r4, #12] + 80039fa: 6013 str r3, [r2, #0] + 80039fc: 2300 movs r3, #0 + 80039fe: 60e3 str r3, [r4, #12] + 8003a00: 4b35 ldr r3, [pc, #212] ; (8003ad8 ) + 8003a02: 2201 movs r2, #1 + 8003a04: 701a strb r2, [r3, #0] + 8003a06: 4b35 ldr r3, [pc, #212] ; (8003adc ) + 8003a08: 681b ldr r3, [r3, #0] + 8003a0a: 42a3 cmp r3, r4 + 8003a0c: d11d bne.n 8003a4a + 8003a0e: f001 fe53 bl 80056b8 + 8003a12: 2000 movs r0, #0 + 8003a14: b005 add sp, #20 + 8003a16: bd30 pop {r4, r5, pc} + 8003a18: 4613 mov r3, r2 + 8003a1a: 2b00 cmp r3, #0 + 8003a1c: d0ee beq.n 80039fc + 8003a1e: 68da ldr r2, [r3, #12] + 8003a20: 42a2 cmp r2, r4 + 8003a22: d1f9 bne.n 8003a18 + 8003a24: 68e2 ldr r2, [r4, #12] + 8003a26: 60da str r2, [r3, #12] + 8003a28: e7e8 b.n 80039fc + 8003a2a: 2b01 cmp r3, #1 + 8003a2c: d01a beq.n 8003a64 + 8003a2e: 2b02 cmp r3, #2 + 8003a30: d039 beq.n 8003aa6 + 8003a32: 2b00 cmp r3, #0 + 8003a34: d13f bne.n 8003ab6 + 8003a36: 8ae3 ldrh r3, [r4, #22] + 8003a38: b13b cbz r3, 8003a4a + 8003a3a: 4a29 ldr r2, [pc, #164] ; (8003ae0 ) + 8003a3c: 6813 ldr r3, [r2, #0] + 8003a3e: 42a3 cmp r3, r4 + 8003a40: d108 bne.n 8003a54 + 8003a42: 68e3 ldr r3, [r4, #12] + 8003a44: 6013 str r3, [r2, #0] + 8003a46: 2300 movs r3, #0 + 8003a48: 60e3 str r3, [r4, #12] + 8003a4a: 4620 mov r0, r4 + 8003a4c: f7ff fc7e bl 800334c + 8003a50: e7df b.n 8003a12 + 8003a52: 4613 mov r3, r2 + 8003a54: 2b00 cmp r3, #0 + 8003a56: d0f6 beq.n 8003a46 + 8003a58: 68da ldr r2, [r3, #12] + 8003a5a: 42a2 cmp r2, r4 + 8003a5c: d1f9 bne.n 8003a52 + 8003a5e: 68e2 ldr r2, [r4, #12] + 8003a60: 60da str r2, [r3, #12] + 8003a62: e7f0 b.n 8003a46 + 8003a64: 491f ldr r1, [pc, #124] ; (8003ae4 ) + 8003a66: 2000 movs r0, #0 + 8003a68: f851 2023 ldr.w r2, [r1, r3, lsl #2] + 8003a6c: 6812 ldr r2, [r2, #0] + 8003a6e: b9a2 cbnz r2, 8003a9a + 8003a70: 3301 adds r3, #1 + 8003a72: 2b04 cmp r3, #4 + 8003a74: d1f8 bne.n 8003a68 + 8003a76: 481c ldr r0, [pc, #112] ; (8003ae8 ) + 8003a78: 4621 mov r1, r4 + 8003a7a: f7ff fda1 bl 80035c0 + 8003a7e: 7d23 ldrb r3, [r4, #20] + 8003a80: 2b01 cmp r3, #1 + 8003a82: d105 bne.n 8003a90 + 8003a84: 4b0f ldr r3, [pc, #60] ; (8003ac4 ) + 8003a86: 4919 ldr r1, [pc, #100] ; (8003aec ) + 8003a88: 4810 ldr r0, [pc, #64] ; (8003acc ) + 8003a8a: 22df movs r2, #223 ; 0xdf + 8003a8c: f005 fc8c bl 80093a8 + 8003a90: 4621 mov r1, r4 + 8003a92: 2002 movs r0, #2 + 8003a94: f7fe ff26 bl 80028e4 + 8003a98: e7bb b.n 8003a12 + 8003a9a: 6fd5 ldr r5, [r2, #124] ; 0x7c + 8003a9c: 42ac cmp r4, r5 + 8003a9e: bf08 it eq + 8003aa0: 67d0 streq r0, [r2, #124] ; 0x7c + 8003aa2: 68d2 ldr r2, [r2, #12] + 8003aa4: e7e3 b.n 8003a6e + 8003aa6: 480b ldr r0, [pc, #44] ; (8003ad4 ) + 8003aa8: 4621 mov r1, r4 + 8003aaa: f7ff fd89 bl 80035c0 + 8003aae: 4b0a ldr r3, [pc, #40] ; (8003ad8 ) + 8003ab0: 2201 movs r2, #1 + 8003ab2: 701a strb r2, [r3, #0] + 8003ab4: e7c9 b.n 8003a4a + 8003ab6: 4620 mov r0, r4 + 8003ab8: b005 add sp, #20 + 8003aba: e8bd 4030 ldmia.w sp!, {r4, r5, lr} + 8003abe: f7ff bc09 b.w 80032d4 + 8003ac2: bf00 nop + 8003ac4: 0800acc3 .word 0x0800acc3 + 8003ac8: 0800af03 .word 0x0800af03 + 8003acc: 0800a54d .word 0x0800a54d + 8003ad0: 0800af23 .word 0x0800af23 + 8003ad4: 200082a4 .word 0x200082a4 + 8003ad8: 200082a8 .word 0x200082a8 + 8003adc: 200082e8 .word 0x200082e8 + 8003ae0: 200082ac .word 0x200082ac + 8003ae4: 0800b174 .word 0x0800b174 + 8003ae8: 200082b0 .word 0x200082b0 + 8003aec: 0800af3c .word 0x0800af3c + +08003af0 : + 8003af0: b508 push {r3, lr} + 8003af2: b158 cbz r0, 8003b0c + 8003af4: 7d03 ldrb r3, [r0, #20] + 8003af6: 2b01 cmp r3, #1 + 8003af8: bf1e ittt ne + 8003afa: 8b43 ldrhne r3, [r0, #26] + 8003afc: f043 0310 orrne.w r3, r3, #16 + 8003b00: 8343 strhne r3, [r0, #26] + 8003b02: 2101 movs r1, #1 + 8003b04: e8bd 4008 ldmia.w sp!, {r3, lr} + 8003b08: f7ff bf40 b.w 800398c + 8003b0c: 4b04 ldr r3, [pc, #16] ; (8003b20 ) + 8003b0e: 4905 ldr r1, [pc, #20] ; (8003b24 ) + 8003b10: 4805 ldr r0, [pc, #20] ; (8003b28 ) + 8003b12: f44f 72f4 mov.w r2, #488 ; 0x1e8 + 8003b16: f005 fc47 bl 80093a8 + 8003b1a: f06f 000f mvn.w r0, #15 + 8003b1e: bd08 pop {r3, pc} + 8003b20: 0800acc3 .word 0x0800acc3 + 8003b24: 0800af55 .word 0x0800af55 + 8003b28: 0800a54d .word 0x0800a54d + +08003b2c : + 8003b2c: b510 push {r4, lr} + 8003b2e: 4608 mov r0, r1 + 8003b30: 4614 mov r4, r2 + 8003b32: b949 cbnz r1, 8003b48 + 8003b34: 4b0c ldr r3, [pc, #48] ; (8003b68 ) + 8003b36: 490d ldr r1, [pc, #52] ; (8003b6c ) + 8003b38: 480d ldr r0, [pc, #52] ; (8003b70 ) + 8003b3a: f44f 62d3 mov.w r2, #1688 ; 0x698 + 8003b3e: f005 fc33 bl 80093a8 + 8003b42: f06f 000f mvn.w r0, #15 + 8003b46: bd10 pop {r4, pc} + 8003b48: b13a cbz r2, 8003b5a + 8003b4a: 8911 ldrh r1, [r2, #8] + 8003b4c: f7ff fc4c bl 80033e8 + 8003b50: 4620 mov r0, r4 + 8003b52: f7ff f93f bl 8002dd4 + 8003b56: 2000 movs r0, #0 + 8003b58: e7f5 b.n 8003b46 + 8003b5a: b91b cbnz r3, 8003b64 + 8003b5c: e8bd 4010 ldmia.w sp!, {r4, lr} + 8003b60: f7ff bfc6 b.w 8003af0 + 8003b64: 4610 mov r0, r2 + 8003b66: e7ee b.n 8003b46 + 8003b68: 0800acc3 .word 0x0800acc3 + 8003b6c: 0800af6c .word 0x0800af6c + 8003b70: 0800a54d .word 0x0800a54d + +08003b74 : + 8003b74: b5f8 push {r3, r4, r5, r6, r7, lr} + 8003b76: 4604 mov r4, r0 + 8003b78: b950 cbnz r0, 8003b90 + 8003b7a: 4b1d ldr r3, [pc, #116] ; (8003bf0 ) + 8003b7c: 491d ldr r1, [pc, #116] ; (8003bf4 ) + 8003b7e: 481e ldr r0, [pc, #120] ; (8003bf8 ) + 8003b80: f240 6209 movw r2, #1545 ; 0x609 + 8003b84: f005 fc10 bl 80093a8 + 8003b88: f06f 050f mvn.w r5, #15 + 8003b8c: 4628 mov r0, r5 + 8003b8e: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8003b90: 6f86 ldr r6, [r0, #120] ; 0x78 + 8003b92: f8d0 5084 ldr.w r5, [r0, #132] ; 0x84 + 8003b96: 7b77 ldrb r7, [r6, #13] + 8003b98: 2300 movs r3, #0 + 8003b9a: 6783 str r3, [r0, #120] ; 0x78 + 8003b9c: b1dd cbz r5, 8003bd6 + 8003b9e: 4601 mov r1, r0 + 8003ba0: 4632 mov r2, r6 + 8003ba2: 6900 ldr r0, [r0, #16] + 8003ba4: 47a8 blx r5 + 8003ba6: 4605 mov r5, r0 + 8003ba8: b9e0 cbnz r0, 8003be4 + 8003baa: 06bb lsls r3, r7, #26 + 8003bac: d5ee bpl.n 8003b8c + 8003bae: 8d23 ldrh r3, [r4, #40] ; 0x28 + 8003bb0: f8d4 6084 ldr.w r6, [r4, #132] ; 0x84 + 8003bb4: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 8003bb8: bf1c itt ne + 8003bba: 3301 addne r3, #1 + 8003bbc: 8523 strhne r3, [r4, #40] ; 0x28 + 8003bbe: 2e00 cmp r6, #0 + 8003bc0: d0e4 beq.n 8003b8c + 8003bc2: 2300 movs r3, #0 + 8003bc4: 6920 ldr r0, [r4, #16] + 8003bc6: 461a mov r2, r3 + 8003bc8: 4621 mov r1, r4 + 8003bca: 47b0 blx r6 + 8003bcc: 300d adds r0, #13 + 8003bce: d1dd bne.n 8003b8c + 8003bd0: f06f 050c mvn.w r5, #12 + 8003bd4: e7da b.n 8003b8c + 8003bd6: 4601 mov r1, r0 + 8003bd8: 462b mov r3, r5 + 8003bda: 4632 mov r2, r6 + 8003bdc: 4628 mov r0, r5 + 8003bde: f7ff ffa5 bl 8003b2c + 8003be2: e7e0 b.n 8003ba6 + 8003be4: 350d adds r5, #13 + 8003be6: d0f3 beq.n 8003bd0 + 8003be8: 67a6 str r6, [r4, #120] ; 0x78 + 8003bea: f06f 0504 mvn.w r5, #4 + 8003bee: e7cd b.n 8003b8c + 8003bf0: 0800acc3 .word 0x0800acc3 + 8003bf4: 0800af87 .word 0x0800af87 + 8003bf8: 0800a54d .word 0x0800a54d + +08003bfc : + 8003bfc: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 8003c00: 4d1b ldr r5, [pc, #108] ; (8003c70 ) + 8003c02: 4f1c ldr r7, [pc, #112] ; (8003c74 ) + 8003c04: 782b ldrb r3, [r5, #0] + 8003c06: 4e1c ldr r6, [pc, #112] ; (8003c78 ) + 8003c08: 3301 adds r3, #1 + 8003c0a: 702b strb r3, [r5, #0] + 8003c0c: 683c ldr r4, [r7, #0] + 8003c0e: f04f 0800 mov.w r8, #0 + 8003c12: b90c cbnz r4, 8003c18 + 8003c14: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8003c18: 782b ldrb r3, [r5, #0] + 8003c1a: 7fa2 ldrb r2, [r4, #30] + 8003c1c: 429a cmp r2, r3 + 8003c1e: d024 beq.n 8003c6a + 8003c20: 77a3 strb r3, [r4, #30] + 8003c22: 8b63 ldrh r3, [r4, #26] + 8003c24: 07d9 lsls r1, r3, #31 + 8003c26: d509 bpl.n 8003c3c + 8003c28: f043 0302 orr.w r3, r3, #2 + 8003c2c: 8363 strh r3, [r4, #26] + 8003c2e: 4620 mov r0, r4 + 8003c30: f002 f944 bl 8005ebc + 8003c34: 8b63 ldrh r3, [r4, #26] + 8003c36: f023 0303 bic.w r3, r3, #3 + 8003c3a: 8363 strh r3, [r4, #26] + 8003c3c: 8b63 ldrh r3, [r4, #26] + 8003c3e: 071a lsls r2, r3, #28 + 8003c40: d505 bpl.n 8003c4e + 8003c42: f023 0308 bic.w r3, r3, #8 + 8003c46: 8363 strh r3, [r4, #26] + 8003c48: 4620 mov r0, r4 + 8003c4a: f7ff fb43 bl 80032d4 + 8003c4e: 6fa3 ldr r3, [r4, #120] ; 0x78 + 8003c50: f8d4 900c ldr.w r9, [r4, #12] + 8003c54: b13b cbz r3, 8003c66 + 8003c56: 4620 mov r0, r4 + 8003c58: f886 8000 strb.w r8, [r6] + 8003c5c: f7ff ff8a bl 8003b74 + 8003c60: 7833 ldrb r3, [r6, #0] + 8003c62: 2b00 cmp r3, #0 + 8003c64: d1d2 bne.n 8003c0c + 8003c66: 464c mov r4, r9 + 8003c68: e7d3 b.n 8003c12 + 8003c6a: f8d4 900c ldr.w r9, [r4, #12] + 8003c6e: e7fa b.n 8003c66 + 8003c70: 200082b9 .word 0x200082b9 + 8003c74: 200082a4 .word 0x200082a4 + 8003c78: 200082a8 .word 0x200082a8 + +08003c7c : + 8003c7c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8003c80: 4e91 ldr r6, [pc, #580] ; (8003ec8 ) + 8003c82: 4a92 ldr r2, [pc, #584] ; (8003ecc ) + 8003c84: 6833 ldr r3, [r6, #0] + 8003c86: f8df a270 ldr.w sl, [pc, #624] ; 8003ef8 + 8003c8a: 4f91 ldr r7, [pc, #580] ; (8003ed0 ) + 8003c8c: 3301 adds r3, #1 + 8003c8e: 6033 str r3, [r6, #0] + 8003c90: 7813 ldrb r3, [r2, #0] + 8003c92: 3301 adds r3, #1 + 8003c94: b087 sub sp, #28 + 8003c96: 7013 strb r3, [r2, #0] + 8003c98: f8da 4000 ldr.w r4, [sl] + 8003c9c: f8df 825c ldr.w r8, [pc, #604] ; 8003efc + 8003ca0: f04f 0900 mov.w r9, #0 + 8003ca4: b96c cbnz r4, 8003cc2 + 8003ca6: 4f8b ldr r7, [pc, #556] ; (8003ed4 ) + 8003ca8: f8df 8224 ldr.w r8, [pc, #548] ; 8003ed0 + 8003cac: 683d ldr r5, [r7, #0] + 8003cae: f8df a250 ldr.w sl, [pc, #592] ; 8003f00 + 8003cb2: f8df 9248 ldr.w r9, [pc, #584] ; 8003efc + 8003cb6: 2d00 cmp r5, #0 + 8003cb8: f040 81bc bne.w 8004034 + 8003cbc: b007 add sp, #28 + 8003cbe: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8003cc2: 7d23 ldrb r3, [r4, #20] + 8003cc4: b933 cbnz r3, 8003cd4 + 8003cc6: 4984 ldr r1, [pc, #528] ; (8003ed8 ) + 8003cc8: 463b mov r3, r7 + 8003cca: f240 42be movw r2, #1214 ; 0x4be + 8003cce: 4640 mov r0, r8 + 8003cd0: f005 fb6a bl 80093a8 + 8003cd4: 7d23 ldrb r3, [r4, #20] + 8003cd6: 2b01 cmp r3, #1 + 8003cd8: d106 bne.n 8003ce8 + 8003cda: 4980 ldr r1, [pc, #512] ; (8003edc ) + 8003cdc: 463b mov r3, r7 + 8003cde: f240 42bf movw r2, #1215 ; 0x4bf + 8003ce2: 4640 mov r0, r8 + 8003ce4: f005 fb60 bl 80093a8 + 8003ce8: 7d23 ldrb r3, [r4, #20] + 8003cea: 2b0a cmp r3, #10 + 8003cec: d106 bne.n 8003cfc + 8003cee: 497c ldr r1, [pc, #496] ; (8003ee0 ) + 8003cf0: 463b mov r3, r7 + 8003cf2: f44f 6298 mov.w r2, #1216 ; 0x4c0 + 8003cf6: 4640 mov r0, r8 + 8003cf8: f005 fb56 bl 80093a8 + 8003cfc: 4b73 ldr r3, [pc, #460] ; (8003ecc ) + 8003cfe: 7fa2 ldrb r2, [r4, #30] + 8003d00: 781b ldrb r3, [r3, #0] + 8003d02: 429a cmp r2, r3 + 8003d04: d103 bne.n 8003d0e + 8003d06: 68e5 ldr r5, [r4, #12] + 8003d08: 46a1 mov r9, r4 + 8003d0a: 462c mov r4, r5 + 8003d0c: e7ca b.n 8003ca4 + 8003d0e: 7d22 ldrb r2, [r4, #20] + 8003d10: 77a3 strb r3, [r4, #30] + 8003d12: 2a02 cmp r2, #2 + 8003d14: f894 3042 ldrb.w r3, [r4, #66] ; 0x42 + 8003d18: f040 8089 bne.w 8003e2e + 8003d1c: 2b05 cmp r3, #5 + 8003d1e: f240 8088 bls.w 8003e32 + 8003d22: f04f 0b01 mov.w fp, #1 + 8003d26: 7d22 ldrb r2, [r4, #20] + 8003d28: 2a06 cmp r2, #6 + 8003d2a: d10b bne.n 8003d44 + 8003d2c: 8b61 ldrh r1, [r4, #26] + 8003d2e: 06cb lsls r3, r1, #27 + 8003d30: d508 bpl.n 8003d44 + 8003d32: 6831 ldr r1, [r6, #0] + 8003d34: 6a20 ldr r0, [r4, #32] + 8003d36: 1a09 subs r1, r1, r0 + 8003d38: 2928 cmp r1, #40 ; 0x28 + 8003d3a: bf84 itt hi + 8003d3c: f10b 0301 addhi.w r3, fp, #1 + 8003d40: fa5f fb83 uxtbhi.w fp, r3 + 8003d44: 7a65 ldrb r5, [r4, #9] + 8003d46: f015 0508 ands.w r5, r5, #8 + 8003d4a: d019 beq.n 8003d80 + 8003d4c: 2a04 cmp r2, #4 + 8003d4e: d002 beq.n 8003d56 + 8003d50: 2a07 cmp r2, #7 + 8003d52: f040 8136 bne.w 8003fc2 + 8003d56: 6a22 ldr r2, [r4, #32] + 8003d58: 6830 ldr r0, [r6, #0] + 8003d5a: 1a80 subs r0, r0, r2 + 8003d5c: f8d4 2094 ldr.w r2, [r4, #148] ; 0x94 + 8003d60: f502 2124 add.w r1, r2, #671744 ; 0xa4000 + 8003d64: f601 41b8 addw r1, r1, #3256 ; 0xcb8 + 8003d68: f44f 75fa mov.w r5, #500 ; 0x1f4 + 8003d6c: fbb1 f1f5 udiv r1, r1, r5 + 8003d70: 4288 cmp r0, r1 + 8003d72: f240 8114 bls.w 8003f9e + 8003d76: f10b 0301 add.w r3, fp, #1 + 8003d7a: fa5f fb83 uxtb.w fp, r3 + 8003d7e: 2501 movs r5, #1 + 8003d80: 6f62 ldr r2, [r4, #116] ; 0x74 + 8003d82: b162 cbz r2, 8003d9e + 8003d84: 6832 ldr r2, [r6, #0] + 8003d86: 6a21 ldr r1, [r4, #32] + 8003d88: 1a51 subs r1, r2, r1 + 8003d8a: f9b4 2040 ldrsh.w r2, [r4, #64] ; 0x40 + 8003d8e: eb02 0242 add.w r2, r2, r2, lsl #1 + 8003d92: ebb1 0f42 cmp.w r1, r2, lsl #1 + 8003d96: d302 bcc.n 8003d9e + 8003d98: 4620 mov r0, r4 + 8003d9a: f7ff fbd5 bl 8003548 + 8003d9e: 7d22 ldrb r2, [r4, #20] + 8003da0: 2a03 cmp r2, #3 + 8003da2: f040 8110 bne.w 8003fc6 + 8003da6: 6832 ldr r2, [r6, #0] + 8003da8: 6a21 ldr r1, [r4, #32] + 8003daa: 1a52 subs r2, r2, r1 + 8003dac: 2a28 cmp r2, #40 ; 0x28 + 8003dae: d803 bhi.n 8003db8 + 8003db0: f1bb 0f00 cmp.w fp, #0 + 8003db4: f000 811c beq.w 8003ff0 + 8003db8: 4620 mov r0, r4 + 8003dba: f8d4 b090 ldr.w fp, [r4, #144] ; 0x90 + 8003dbe: f7ff fbcd bl 800355c + 8003dc2: f8da 3000 ldr.w r3, [sl] + 8003dc6: f1b9 0f00 cmp.w r9, #0 + 8003dca: f000 8104 beq.w 8003fd6 + 8003dce: 42a3 cmp r3, r4 + 8003dd0: d106 bne.n 8003de0 + 8003dd2: 4944 ldr r1, [pc, #272] ; (8003ee4 ) + 8003dd4: 463b mov r3, r7 + 8003dd6: f240 526d movw r2, #1389 ; 0x56d + 8003dda: 4640 mov r0, r8 + 8003ddc: f005 fae4 bl 80093a8 + 8003de0: 68e3 ldr r3, [r4, #12] + 8003de2: f8c9 300c str.w r3, [r9, #12] + 8003de6: b15d cbz r5, 8003e00 + 8003de8: 8b23 ldrh r3, [r4, #24] + 8003dea: 9302 str r3, [sp, #8] + 8003dec: 8ae3 ldrh r3, [r4, #22] + 8003dee: 9301 str r3, [sp, #4] + 8003df0: 1d23 adds r3, r4, #4 + 8003df2: 9300 str r3, [sp, #0] + 8003df4: 6a62 ldr r2, [r4, #36] ; 0x24 + 8003df6: 6d21 ldr r1, [r4, #80] ; 0x50 + 8003df8: 4623 mov r3, r4 + 8003dfa: 4620 mov r0, r4 + 8003dfc: f001 ffe6 bl 8005dcc + 8003e00: 6923 ldr r3, [r4, #16] + 8003e02: 68e5 ldr r5, [r4, #12] + 8003e04: 9305 str r3, [sp, #20] + 8003e06: 4620 mov r0, r4 + 8003e08: 4c37 ldr r4, [pc, #220] ; (8003ee8 ) + 8003e0a: f7ff fa9f bl 800334c + 8003e0e: 2200 movs r2, #0 + 8003e10: 7022 strb r2, [r4, #0] + 8003e12: f1bb 0f00 cmp.w fp, #0 + 8003e16: d008 beq.n 8003e2a + 8003e18: 9b05 ldr r3, [sp, #20] + 8003e1a: f06f 010c mvn.w r1, #12 + 8003e1e: 4618 mov r0, r3 + 8003e20: 47d8 blx fp + 8003e22: 7823 ldrb r3, [r4, #0] + 8003e24: 2b00 cmp r3, #0 + 8003e26: f47f af37 bne.w 8003c98 + 8003e2a: 464c mov r4, r9 + 8003e2c: e76c b.n 8003d08 + 8003e2e: 2b0b cmp r3, #11 + 8003e30: e775 b.n 8003d1e + 8003e32: f894 b099 ldrb.w fp, [r4, #153] ; 0x99 + 8003e36: f1bb 0f00 cmp.w fp, #0 + 8003e3a: d063 beq.n 8003f04 + 8003e3c: 6f23 ldr r3, [r4, #112] ; 0x70 + 8003e3e: b133 cbz r3, 8003e4e + 8003e40: 492a ldr r1, [pc, #168] ; (8003eec ) + 8003e42: 463b mov r3, r7 + 8003e44: f240 42d4 movw r2, #1236 ; 0x4d4 + 8003e48: 4640 mov r0, r8 + 8003e4a: f005 faad bl 80093a8 + 8003e4e: 6ee3 ldr r3, [r4, #108] ; 0x6c + 8003e50: b933 cbnz r3, 8003e60 + 8003e52: 4927 ldr r1, [pc, #156] ; (8003ef0 ) + 8003e54: 463b mov r3, r7 + 8003e56: f240 42d5 movw r2, #1237 ; 0x4d5 + 8003e5a: 4640 mov r0, r8 + 8003e5c: f005 faa4 bl 80093a8 + 8003e60: f894 309a ldrb.w r3, [r4, #154] ; 0x9a + 8003e64: 2b0b cmp r3, #11 + 8003e66: f63f af5c bhi.w 8003d22 + 8003e6a: f894 2099 ldrb.w r2, [r4, #153] ; 0x99 + 8003e6e: 4b21 ldr r3, [pc, #132] ; (8003ef4 ) + 8003e70: 4413 add r3, r2 + 8003e72: f813 2c01 ldrb.w r2, [r3, #-1] + 8003e76: f894 3098 ldrb.w r3, [r4, #152] ; 0x98 + 8003e7a: 4293 cmp r3, r2 + 8003e7c: d30b bcc.n 8003e96 + 8003e7e: f8b4 1060 ldrh.w r1, [r4, #96] ; 0x60 + 8003e82: b189 cbz r1, 8003ea8 + 8003e84: 4620 mov r0, r4 + 8003e86: f001 fd57 bl 8005938 + 8003e8a: b990 cbnz r0, 8003eb2 + 8003e8c: 4620 mov r0, r4 + 8003e8e: f002 f815 bl 8005ebc + 8003e92: b130 cbz r0, 8003ea2 + 8003e94: e00d b.n 8003eb2 + 8003e96: 3301 adds r3, #1 + 8003e98: b2db uxtb r3, r3 + 8003e9a: 4293 cmp r3, r2 + 8003e9c: f884 3098 strb.w r3, [r4, #152] ; 0x98 + 8003ea0: d2ed bcs.n 8003e7e + 8003ea2: f04f 0b00 mov.w fp, #0 + 8003ea6: e73e b.n 8003d26 + 8003ea8: 4620 mov r0, r4 + 8003eaa: f002 fa0f bl 80062cc + 8003eae: 2800 cmp r0, #0 + 8003eb0: d1f7 bne.n 8003ea2 + 8003eb2: f894 2099 ldrb.w r2, [r4, #153] ; 0x99 + 8003eb6: 2300 movs r3, #0 + 8003eb8: 2a06 cmp r2, #6 + 8003eba: f884 3098 strb.w r3, [r4, #152] ; 0x98 + 8003ebe: d8f0 bhi.n 8003ea2 + 8003ec0: 3201 adds r2, #1 + 8003ec2: f884 2099 strb.w r2, [r4, #153] ; 0x99 + 8003ec6: e7ec b.n 8003ea2 + 8003ec8: 200082b4 .word 0x200082b4 + 8003ecc: 200082b9 .word 0x200082b9 + 8003ed0: 0800acc3 .word 0x0800acc3 + 8003ed4: 200082bc .word 0x200082bc + 8003ed8: 0800afad .word 0x0800afad + 8003edc: 0800afd7 .word 0x0800afd7 + 8003ee0: 0800b001 .word 0x0800b001 + 8003ee4: 0800b095 .word 0x0800b095 + 8003ee8: 200082a8 .word 0x200082a8 + 8003eec: 0800b02e .word 0x0800b02e + 8003ef0: 0800b060 .word 0x0800b060 + 8003ef4: 0800b184 .word 0x0800b184 + 8003ef8: 200082a4 .word 0x200082a4 + 8003efc: 0800a54d .word 0x0800a54d + 8003f00: 0800b0ea .word 0x0800b0ea + 8003f04: 8e22 ldrh r2, [r4, #48] ; 0x30 + 8003f06: f647 71fe movw r1, #32766 ; 0x7ffe + 8003f0a: 428a cmp r2, r1 + 8003f0c: bf9c itt ls + 8003f0e: 3201 addls r2, #1 + 8003f10: 8622 strhls r2, [r4, #48] ; 0x30 + 8003f12: f9b4 1030 ldrsh.w r1, [r4, #48] ; 0x30 + 8003f16: f9b4 2040 ldrsh.w r2, [r4, #64] ; 0x40 + 8003f1a: 4291 cmp r1, r2 + 8003f1c: dbc1 blt.n 8003ea2 + 8003f1e: 4620 mov r0, r4 + 8003f20: f001 fe9a bl 8005c58 + 8003f24: b128 cbz r0, 8003f32 + 8003f26: 6f22 ldr r2, [r4, #112] ; 0x70 + 8003f28: 2a00 cmp r2, #0 + 8003f2a: d1ba bne.n 8003ea2 + 8003f2c: 6ee2 ldr r2, [r4, #108] ; 0x6c + 8003f2e: 2a00 cmp r2, #0 + 8003f30: d0b7 beq.n 8003ea2 + 8003f32: 7d22 ldrb r2, [r4, #20] + 8003f34: 2a02 cmp r2, #2 + 8003f36: d014 beq.n 8003f62 + 8003f38: f9b4 103c ldrsh.w r1, [r4, #60] ; 0x3c + 8003f3c: f9b4 203e ldrsh.w r2, [r4, #62] ; 0x3e + 8003f40: 4857 ldr r0, [pc, #348] ; (80040a0 ) + 8003f42: eb02 02e1 add.w r2, r2, r1, asr #3 + 8003f46: f894 1042 ldrb.w r1, [r4, #66] ; 0x42 + 8003f4a: 290c cmp r1, #12 + 8003f4c: bf28 it cs + 8003f4e: 210c movcs r1, #12 + 8003f50: 5c41 ldrb r1, [r0, r1] + 8003f52: 408a lsls r2, r1 + 8003f54: f647 71ff movw r1, #32767 ; 0x7fff + 8003f58: 428a cmp r2, r1 + 8003f5a: bfa8 it ge + 8003f5c: 460a movge r2, r1 + 8003f5e: f8a4 2040 strh.w r2, [r4, #64] ; 0x40 + 8003f62: f8b4 1060 ldrh.w r1, [r4, #96] ; 0x60 + 8003f66: f8b4 2048 ldrh.w r2, [r4, #72] ; 0x48 + 8003f6a: f8b4 c032 ldrh.w ip, [r4, #50] ; 0x32 + 8003f6e: f8a4 c048 strh.w ip, [r4, #72] ; 0x48 + 8003f72: 4291 cmp r1, r2 + 8003f74: bf28 it cs + 8003f76: 4611 movcs r1, r2 + 8003f78: ea4f 024c mov.w r2, ip, lsl #1 + 8003f7c: b292 uxth r2, r2 + 8003f7e: 0848 lsrs r0, r1, #1 + 8003f80: ebb2 0f51 cmp.w r2, r1, lsr #1 + 8003f84: f04f 0500 mov.w r5, #0 + 8003f88: bf98 it ls + 8003f8a: 4602 movls r2, r0 + 8003f8c: 8625 strh r5, [r4, #48] ; 0x30 + 8003f8e: f8a4 204a strh.w r2, [r4, #74] ; 0x4a + 8003f92: f8a4 506a strh.w r5, [r4, #106] ; 0x6a + 8003f96: 4620 mov r0, r4 + 8003f98: f002 f93a bl 8006210 + 8003f9c: e6c3 b.n 8003d26 + 8003f9e: f894 109b ldrb.w r1, [r4, #155] ; 0x9b + 8003fa2: 4b40 ldr r3, [pc, #256] ; (80040a4 ) + 8003fa4: fb03 2201 mla r2, r3, r1, r2 + 8003fa8: fbb2 f2f5 udiv r2, r2, r5 + 8003fac: 4290 cmp r0, r2 + 8003fae: d908 bls.n 8003fc2 + 8003fb0: 4620 mov r0, r4 + 8003fb2: f002 f963 bl 800627c + 8003fb6: b920 cbnz r0, 8003fc2 + 8003fb8: f894 209b ldrb.w r2, [r4, #155] ; 0x9b + 8003fbc: 3201 adds r2, #1 + 8003fbe: f884 209b strb.w r2, [r4, #155] ; 0x9b + 8003fc2: 2500 movs r5, #0 + 8003fc4: e6dc b.n 8003d80 + 8003fc6: 2a09 cmp r2, #9 + 8003fc8: f47f aef2 bne.w 8003db0 + 8003fcc: 6832 ldr r2, [r6, #0] + 8003fce: 6a21 ldr r1, [r4, #32] + 8003fd0: 1a52 subs r2, r2, r1 + 8003fd2: 2af0 cmp r2, #240 ; 0xf0 + 8003fd4: e6eb b.n 8003dae + 8003fd6: 42a3 cmp r3, r4 + 8003fd8: d006 beq.n 8003fe8 + 8003fda: 4933 ldr r1, [pc, #204] ; (80040a8 ) + 8003fdc: 463b mov r3, r7 + 8003fde: f240 5271 movw r2, #1393 ; 0x571 + 8003fe2: 4640 mov r0, r8 + 8003fe4: f005 f9e0 bl 80093a8 + 8003fe8: 68e3 ldr r3, [r4, #12] + 8003fea: f8ca 3000 str.w r3, [sl] + 8003fee: e6fa b.n 8003de6 + 8003ff0: 7f22 ldrb r2, [r4, #28] + 8003ff2: 7f61 ldrb r1, [r4, #29] + 8003ff4: 68e5 ldr r5, [r4, #12] + 8003ff6: 3201 adds r2, #1 + 8003ff8: b2d2 uxtb r2, r2 + 8003ffa: 4291 cmp r1, r2 + 8003ffc: 7722 strb r2, [r4, #28] + 8003ffe: f63f ae83 bhi.w 8003d08 + 8004002: f8df 90b0 ldr.w r9, [pc, #176] ; 80040b4 + 8004006: f8d4 308c ldr.w r3, [r4, #140] ; 0x8c + 800400a: f884 b01c strb.w fp, [r4, #28] + 800400e: f889 b000 strb.w fp, [r9] + 8004012: b91b cbnz r3, 800401c + 8004014: 4620 mov r0, r4 + 8004016: f001 ff51 bl 8005ebc + 800401a: e675 b.n 8003d08 + 800401c: 6920 ldr r0, [r4, #16] + 800401e: 4621 mov r1, r4 + 8004020: 4798 blx r3 + 8004022: f899 3000 ldrb.w r3, [r9] + 8004026: 2b00 cmp r3, #0 + 8004028: f47f ae36 bne.w 8003c98 + 800402c: 2800 cmp r0, #0 + 800402e: f47f ae6b bne.w 8003d08 + 8004032: e7ef b.n 8004014 + 8004034: 7d2b ldrb r3, [r5, #20] + 8004036: 2b0a cmp r3, #10 + 8004038: d006 beq.n 8004048 + 800403a: 4643 mov r3, r8 + 800403c: f240 52a1 movw r2, #1441 ; 0x5a1 + 8004040: 4651 mov r1, sl + 8004042: 4648 mov r0, r9 + 8004044: f005 f9b0 bl 80093a8 + 8004048: 6833 ldr r3, [r6, #0] + 800404a: 6a2a ldr r2, [r5, #32] + 800404c: 1a9b subs r3, r3, r2 + 800404e: 2bf0 cmp r3, #240 ; 0xf0 + 8004050: d910 bls.n 8004074 + 8004052: 4628 mov r0, r5 + 8004054: f7ff fa82 bl 800355c + 8004058: b97c cbnz r4, 800407a + 800405a: 683b ldr r3, [r7, #0] + 800405c: 42ab cmp r3, r5 + 800405e: d006 beq.n 800406e + 8004060: 4912 ldr r1, [pc, #72] ; (80040ac ) + 8004062: 4643 mov r3, r8 + 8004064: f240 52b3 movw r2, #1459 ; 0x5b3 + 8004068: 4648 mov r0, r9 + 800406a: f005 f99d bl 80093a8 + 800406e: 68eb ldr r3, [r5, #12] + 8004070: 603b str r3, [r7, #0] + 8004072: e00e b.n 8004092 + 8004074: 462c mov r4, r5 + 8004076: 68ed ldr r5, [r5, #12] + 8004078: e61d b.n 8003cb6 + 800407a: 683b ldr r3, [r7, #0] + 800407c: 42ab cmp r3, r5 + 800407e: d106 bne.n 800408e + 8004080: 490b ldr r1, [pc, #44] ; (80040b0 ) + 8004082: 4643 mov r3, r8 + 8004084: f240 52af movw r2, #1455 ; 0x5af + 8004088: 4648 mov r0, r9 + 800408a: f005 f98d bl 80093a8 + 800408e: 68eb ldr r3, [r5, #12] + 8004090: 60e3 str r3, [r4, #12] + 8004092: f8d5 b00c ldr.w fp, [r5, #12] + 8004096: 4628 mov r0, r5 + 8004098: f7ff f958 bl 800334c + 800409c: 465d mov r5, fp + 800409e: e60a b.n 8003cb6 + 80040a0: 0800b166 .word 0x0800b166 + 80040a4: 000124f8 .word 0x000124f8 + 80040a8: 0800b0c0 .word 0x0800b0c0 + 80040ac: 0800b140 .word 0x0800b140 + 80040b0: 0800b119 .word 0x0800b119 + 80040b4: 200082a8 .word 0x200082a8 + +080040b8 : + 80040b8: b508 push {r3, lr} + 80040ba: f7ff fd9f bl 8003bfc + 80040be: 4a06 ldr r2, [pc, #24] ; (80040d8 ) + 80040c0: 7813 ldrb r3, [r2, #0] + 80040c2: 3301 adds r3, #1 + 80040c4: b2db uxtb r3, r3 + 80040c6: 7013 strb r3, [r2, #0] + 80040c8: 07db lsls r3, r3, #31 + 80040ca: d503 bpl.n 80040d4 + 80040cc: e8bd 4008 ldmia.w sp!, {r3, lr} + 80040d0: f7ff bdd4 b.w 8003c7c + 80040d4: bd08 pop {r3, pc} + 80040d6: bf00 nop + 80040d8: 200082b8 .word 0x200082b8 + +080040dc : + 80040dc: 4a09 ldr r2, [pc, #36] ; (8004104 ) + 80040de: 8813 ldrh r3, [r2, #0] + 80040e0: 1c59 adds r1, r3, #1 + 80040e2: 8011 strh r1, [r2, #0] + 80040e4: 4a08 ldr r2, [pc, #32] ; (8004108 ) + 80040e6: 6812 ldr r2, [r2, #0] + 80040e8: b11a cbz r2, 80040f2 + 80040ea: 4908 ldr r1, [pc, #32] ; (800410c ) + 80040ec: 8809 ldrh r1, [r1, #0] + 80040ee: 428b cmp r3, r1 + 80040f0: d204 bcs.n 80040fc + 80040f2: 4a07 ldr r2, [pc, #28] ; (8004110 ) + 80040f4: 6812 ldr r2, [r2, #0] + 80040f6: 4413 add r3, r2 + 80040f8: 7d18 ldrb r0, [r3, #20] + 80040fa: 4770 bx lr + 80040fc: 1a5b subs r3, r3, r1 + 80040fe: b2db uxtb r3, r3 + 8004100: 5cd0 ldrb r0, [r2, r3] + 8004102: 4770 bx lr + 8004104: 200082ec .word 0x200082ec + 8004108: 200082f8 .word 0x200082f8 + 800410c: 200082f4 .word 0x200082f4 + 8004110: 200082f0 .word 0x200082f0 + +08004114 : + 8004114: b5f8 push {r3, r4, r5, r6, r7, lr} + 8004116: 460c mov r4, r1 + 8004118: 4605 mov r5, r0 + 800411a: b930 cbnz r0, 800412a + 800411c: 4b1e ldr r3, [pc, #120] ; (8004198 ) + 800411e: 491f ldr r1, [pc, #124] ; (800419c ) + 8004120: 481f ldr r0, [pc, #124] ; (80041a0 ) + 8004122: f240 421f movw r2, #1055 ; 0x41f + 8004126: f005 f93f bl 80093a8 + 800412a: 68eb ldr r3, [r5, #12] + 800412c: 8998 ldrh r0, [r3, #12] + 800412e: f7fe f906 bl 800233e + 8004132: 07c2 lsls r2, r0, #31 + 8004134: d414 bmi.n 8004160 + 8004136: 4e1b ldr r6, [pc, #108] ; (80041a4 ) + 8004138: 68e7 ldr r7, [r4, #12] + 800413a: 6830 ldr r0, [r6, #0] + 800413c: 892b ldrh r3, [r5, #8] + 800413e: 6879 ldr r1, [r7, #4] + 8004140: 8922 ldrh r2, [r4, #8] + 8004142: 4403 add r3, r0 + 8004144: 440a add r2, r1 + 8004146: 1a9a subs r2, r3, r2 + 8004148: 2a00 cmp r2, #0 + 800414a: da0f bge.n 800416c + 800414c: 1a5b subs r3, r3, r1 + 800414e: 2b00 cmp r3, #0 + 8004150: dd0a ble.n 8004168 + 8004152: 1a09 subs r1, r1, r0 + 8004154: b289 uxth r1, r1 + 8004156: 6868 ldr r0, [r5, #4] + 8004158: 8129 strh r1, [r5, #8] + 800415a: f7fe ff1f bl 8002f9c + 800415e: e003 b.n 8004168 + 8004160: 4620 mov r0, r4 + 8004162: f7ff f98d bl 8003480 + 8004166: 2400 movs r4, #0 + 8004168: 602c str r4, [r5, #0] + 800416a: bdf8 pop {r3, r4, r5, r6, r7, pc} + 800416c: 89b8 ldrh r0, [r7, #12] + 800416e: f7fe f8e6 bl 800233e + 8004172: 07c3 lsls r3, r0, #31 + 8004174: d507 bpl.n 8004186 + 8004176: 68eb ldr r3, [r5, #12] + 8004178: 2001 movs r0, #1 + 800417a: 899f ldrh r7, [r3, #12] + 800417c: f7fe f8df bl 800233e + 8004180: 68eb ldr r3, [r5, #12] + 8004182: 4338 orrs r0, r7 + 8004184: 8198 strh r0, [r3, #12] + 8004186: 6827 ldr r7, [r4, #0] + 8004188: 4620 mov r0, r4 + 800418a: f7ff f96b bl 8003464 + 800418e: 463c mov r4, r7 + 8004190: 2f00 cmp r7, #0 + 8004192: d1d1 bne.n 8004138 + 8004194: e7e8 b.n 8004168 + 8004196: bf00 nop + 8004198: 0800b18b .word 0x0800b18b + 800419c: 0800b1bd .word 0x0800b1bd + 80041a0: 0800a54d .word 0x0800a54d + 80041a4: 200082e4 .word 0x200082e4 + +080041a8 : + 80041a8: b5f8 push {r3, r4, r5, r6, r7, lr} + 80041aa: 4606 mov r6, r0 + 80041ac: b930 cbnz r0, 80041bc + 80041ae: 4b1d ldr r3, [pc, #116] ; (8004224 ) + 80041b0: 491d ldr r1, [pc, #116] ; (8004228 ) + 80041b2: 481e ldr r0, [pc, #120] ; (800422c ) + 80041b4: f240 727d movw r2, #1917 ; 0x77d + 80041b8: f005 f8f6 bl 80093a8 + 80041bc: 4b1c ldr r3, [pc, #112] ; (8004230 ) + 80041be: 881f ldrh r7, [r3, #0] + 80041c0: b167 cbz r7, 80041dc + 80041c2: 4d1c ldr r5, [pc, #112] ; (8004234 ) + 80041c4: 2300 movs r3, #0 + 80041c6: 802b strh r3, [r5, #0] + 80041c8: 882b ldrh r3, [r5, #0] + 80041ca: 42bb cmp r3, r7 + 80041cc: d206 bcs.n 80041dc + 80041ce: f7ff ff85 bl 80040dc + 80041d2: 2801 cmp r0, #1 + 80041d4: d0f8 beq.n 80041c8 + 80041d6: 2802 cmp r0, #2 + 80041d8: d001 beq.n 80041de + 80041da: b9c8 cbnz r0, 8004210 + 80041dc: bdf8 pop {r3, r4, r5, r6, r7, pc} + 80041de: f7ff ff7d bl 80040dc + 80041e2: 2804 cmp r0, #4 + 80041e4: d1fa bne.n 80041dc + 80041e6: 882b ldrh r3, [r5, #0] + 80041e8: 3301 adds r3, #1 + 80041ea: 42bb cmp r3, r7 + 80041ec: daf6 bge.n 80041dc + 80041ee: f7ff ff75 bl 80040dc + 80041f2: 0204 lsls r4, r0, #8 + 80041f4: f7ff ff72 bl 80040dc + 80041f8: b2a4 uxth r4, r4 + 80041fa: ea44 0300 orr.w r3, r4, r0 + 80041fe: b29b uxth r3, r3 + 8004200: 1e5a subs r2, r3, #1 + 8004202: f5b2 7f06 cmp.w r2, #536 ; 0x218 + 8004206: bf28 it cs + 8004208: f44f 7306 movcs.w r3, #536 ; 0x218 + 800420c: 8673 strh r3, [r6, #50] ; 0x32 + 800420e: e7db b.n 80041c8 + 8004210: f7ff ff64 bl 80040dc + 8004214: 2801 cmp r0, #1 + 8004216: d9e1 bls.n 80041dc + 8004218: 882b ldrh r3, [r5, #0] + 800421a: 3b02 subs r3, #2 + 800421c: 4418 add r0, r3 + 800421e: 8028 strh r0, [r5, #0] + 8004220: e7d2 b.n 80041c8 + 8004222: bf00 nop + 8004224: 0800b18b .word 0x0800b18b + 8004228: 0800b1e2 .word 0x0800b1e2 + 800422c: 0800a54d .word 0x0800a54d + 8004230: 200082fc .word 0x200082fc + 8004234: 200082ec .word 0x200082ec + +08004238 : + 8004238: b510 push {r4, lr} + 800423a: 4604 mov r4, r0 + 800423c: b930 cbnz r0, 800424c + 800423e: 4b0f ldr r3, [pc, #60] ; (800427c ) + 8004240: 490f ldr r1, [pc, #60] ; (8004280 ) + 8004242: 4810 ldr r0, [pc, #64] ; (8004284 ) + 8004244: f240 225a movw r2, #602 ; 0x25a + 8004248: f005 f8ae bl 80093a8 + 800424c: 4b0e ldr r3, [pc, #56] ; (8004288 ) + 800424e: 7818 ldrb r0, [r3, #0] + 8004250: f010 0010 ands.w r0, r0, #16 + 8004254: d011 beq.n 800427a + 8004256: 8b63 ldrh r3, [r4, #26] + 8004258: 06db lsls r3, r3, #27 + 800425a: d406 bmi.n 800426a + 800425c: f8d4 3090 ldr.w r3, [r4, #144] ; 0x90 + 8004260: b11b cbz r3, 800426a + 8004262: 6920 ldr r0, [r4, #16] + 8004264: f06f 010e mvn.w r1, #14 + 8004268: 4798 blx r3 + 800426a: 4808 ldr r0, [pc, #32] ; (800428c ) + 800426c: 4621 mov r1, r4 + 800426e: f7ff f9a7 bl 80035c0 + 8004272: 4620 mov r0, r4 + 8004274: f7ff f86a bl 800334c + 8004278: 2001 movs r0, #1 + 800427a: bd10 pop {r4, pc} + 800427c: 0800b18b .word 0x0800b18b + 8004280: 0800b1fc .word 0x0800b1fc + 8004284: 0800a54d .word 0x0800a54d + 8004288: 200082e0 .word 0x200082e0 + 800428c: 200082a4 .word 0x200082a4 + +08004290 : + 8004290: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8004294: f8df 80b4 ldr.w r8, [pc, #180] ; 800434c + 8004298: f8df 90a8 ldr.w r9, [pc, #168] ; 8004344 + 800429c: f8df a0b0 ldr.w sl, [pc, #176] ; 8004350 + 80042a0: 4606 mov r6, r0 + 80042a2: 4617 mov r7, r2 + 80042a4: 460c mov r4, r1 + 80042a6: 2c00 cmp r4, #0 + 80042a8: d03a beq.n 8004320 + 80042aa: 68e3 ldr r3, [r4, #12] + 80042ac: 6858 ldr r0, [r3, #4] + 80042ae: f7fe f849 bl 8002344 + 80042b2: 68e3 ldr r3, [r4, #12] + 80042b4: 8925 ldrh r5, [r4, #8] + 80042b6: 4683 mov fp, r0 + 80042b8: 8998 ldrh r0, [r3, #12] + 80042ba: f7fe f840 bl 800233e + 80042be: f8d8 3000 ldr.w r3, [r8] + 80042c2: f010 0003 ands.w r0, r0, #3 + 80042c6: eba5 0303 sub.w r3, r5, r3 + 80042ca: bf18 it ne + 80042cc: 2001 movne r0, #1 + 80042ce: eb03 050b add.w r5, r3, fp + 80042d2: 4405 add r5, r0 + 80042d4: 2d00 cmp r5, #0 + 80042d6: dc24 bgt.n 8004322 + 80042d8: e9d4 b000 ldrd fp, r0, [r4] + 80042dc: f7fe feb6 bl 800304c + 80042e0: f8b6 3066 ldrh.w r3, [r6, #102] ; 0x66 + 80042e4: 4283 cmp r3, r0 + 80042e6: 4605 mov r5, r0 + 80042e8: d206 bcs.n 80042f8 + 80042ea: 4814 ldr r0, [pc, #80] ; (800433c ) + 80042ec: 464b mov r3, r9 + 80042ee: f240 4257 movw r2, #1111 ; 0x457 + 80042f2: 4651 mov r1, sl + 80042f4: f005 f858 bl 80093a8 + 80042f8: 4a11 ldr r2, [pc, #68] ; (8004340 ) + 80042fa: f8b6 0066 ldrh.w r0, [r6, #102] ; 0x66 + 80042fe: 8811 ldrh r1, [r2, #0] + 8004300: 8923 ldrh r3, [r4, #8] + 8004302: 1b45 subs r5, r0, r5 + 8004304: 440b add r3, r1 + 8004306: f8a6 5066 strh.w r5, [r6, #102] ; 0x66 + 800430a: 4620 mov r0, r4 + 800430c: 8013 strh r3, [r2, #0] + 800430e: f7ff f8a9 bl 8003464 + 8004312: f8b6 3066 ldrh.w r3, [r6, #102] ; 0x66 + 8004316: b17b cbz r3, 8004338 + 8004318: f1bb 0f00 cmp.w fp, #0 + 800431c: d10c bne.n 8004338 + 800431e: b11f cbz r7, 8004328 + 8004320: 2400 movs r4, #0 + 8004322: 4620 mov r0, r4 + 8004324: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8004328: 4b06 ldr r3, [pc, #24] ; (8004344 ) + 800432a: 4907 ldr r1, [pc, #28] ; (8004348 ) + 800432c: 4803 ldr r0, [pc, #12] ; (800433c ) + 800432e: f240 4261 movw r2, #1121 ; 0x461 + 8004332: f005 f839 bl 80093a8 + 8004336: e7f3 b.n 8004320 + 8004338: 465c mov r4, fp + 800433a: e7b4 b.n 80042a6 + 800433c: 0800a54d .word 0x0800a54d + 8004340: 200082d8 .word 0x200082d8 + 8004344: 0800b18b .word 0x0800b18b + 8004348: 0800b249 .word 0x0800b249 + 800434c: 200082c0 .word 0x200082c0 + 8004350: 0800b221 .word 0x0800b221 + +08004354 : + 8004354: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8004358: 4604 mov r4, r0 + 800435a: b930 cbnz r0, 800436a + 800435c: 4b3b ldr r3, [pc, #236] ; (800444c ) + 800435e: 493c ldr r1, [pc, #240] ; (8004450 ) + 8004360: 483c ldr r0, [pc, #240] ; (8004454 ) + 8004362: f240 427b movw r2, #1147 ; 0x47b + 8004366: f005 f81f bl 80093a8 + 800436a: 7d23 ldrb r3, [r4, #20] + 800436c: 2b03 cmp r3, #3 + 800436e: d806 bhi.n 800437e + 8004370: 4b36 ldr r3, [pc, #216] ; (800444c ) + 8004372: 4939 ldr r1, [pc, #228] ; (8004458 ) + 8004374: 4837 ldr r0, [pc, #220] ; (8004454 ) + 8004376: f240 427c movw r2, #1148 ; 0x47c + 800437a: f005 f815 bl 80093a8 + 800437e: 4b37 ldr r3, [pc, #220] ; (800445c ) + 8004380: 4e37 ldr r6, [pc, #220] ; (8004460 ) + 8004382: 781b ldrb r3, [r3, #0] + 8004384: 4f37 ldr r7, [pc, #220] ; (8004464 ) + 8004386: f013 0f10 tst.w r3, #16 + 800438a: f000 809e beq.w 80044ca + 800438e: e9d4 0c15 ldrd r0, ip, [r4, #84] ; 0x54 + 8004392: 6833 ldr r3, [r6, #0] + 8004394: f8df 90d4 ldr.w r9, [pc, #212] ; 800446c + 8004398: f8b4 1060 ldrh.w r1, [r4, #96] ; 0x60 + 800439c: f8d9 2000 ldr.w r2, [r9] + 80043a0: eba0 0e03 sub.w lr, r0, r3 + 80043a4: f1be 0f00 cmp.w lr, #0 + 80043a8: db0c blt.n 80043c4 + 80043aa: 4298 cmp r0, r3 + 80043ac: d103 bne.n 80043b6 + 80043ae: ebac 0002 sub.w r0, ip, r2 + 80043b2: 2800 cmp r0, #0 + 80043b4: db06 blt.n 80043c4 + 80043b6: 4594 cmp ip, r2 + 80043b8: d113 bne.n 80043e2 + 80043ba: 482b ldr r0, [pc, #172] ; (8004468 ) + 80043bc: 6800 ldr r0, [r0, #0] + 80043be: 89c0 ldrh r0, [r0, #14] + 80043c0: 4288 cmp r0, r1 + 80043c2: d90e bls.n 80043e2 + 80043c4: 4828 ldr r0, [pc, #160] ; (8004468 ) + 80043c6: f8b4 8062 ldrh.w r8, [r4, #98] ; 0x62 + 80043ca: 6800 ldr r0, [r0, #0] + 80043cc: 89c0 ldrh r0, [r0, #14] + 80043ce: f8a4 0060 strh.w r0, [r4, #96] ; 0x60 + 80043d2: fa1f fe80 uxth.w lr, r0 + 80043d6: e9c4 3215 strd r3, r2, [r4, #84] ; 0x54 + 80043da: 45f0 cmp r8, lr + 80043dc: bf38 it cc + 80043de: f8a4 0062 strhcc.w r0, [r4, #98] ; 0x62 + 80043e2: 6c60 ldr r0, [r4, #68] ; 0x44 + 80043e4: 1a13 subs r3, r2, r0 + 80043e6: 2b00 cmp r3, #0 + 80043e8: f300 817b bgt.w 80046e2 + 80043ec: 883b ldrh r3, [r7, #0] + 80043ee: 2b00 cmp r3, #0 + 80043f0: f040 8173 bne.w 80046da + 80043f4: f8b4 3060 ldrh.w r3, [r4, #96] ; 0x60 + 80043f8: 6da5 ldr r5, [r4, #88] ; 0x58 + 80043fa: 4461 add r1, ip + 80043fc: 442b add r3, r5 + 80043fe: 428b cmp r3, r1 + 8004400: f040 816b bne.w 80046da + 8004404: f9b4 3030 ldrsh.w r3, [r4, #48] ; 0x30 + 8004408: 2b00 cmp r3, #0 + 800440a: f2c0 8166 blt.w 80046da + 800440e: 4290 cmp r0, r2 + 8004410: f040 8163 bne.w 80046da + 8004414: f894 3043 ldrb.w r3, [r4, #67] ; 0x43 + 8004418: 2bff cmp r3, #255 ; 0xff + 800441a: bf1c itt ne + 800441c: 3301 addne r3, #1 + 800441e: f884 3043 strbne.w r3, [r4, #67] ; 0x43 + 8004422: f894 3043 ldrb.w r3, [r4, #67] ; 0x43 + 8004426: 2b03 cmp r3, #3 + 8004428: d922 bls.n 8004470 + 800442a: f8b4 2048 ldrh.w r2, [r4, #72] ; 0x48 + 800442e: 8e63 ldrh r3, [r4, #50] ; 0x32 + 8004430: 4413 add r3, r2 + 8004432: b29b uxth r3, r3 + 8004434: f64f 71ff movw r1, #65535 ; 0xffff + 8004438: 429a cmp r2, r3 + 800443a: bf88 it hi + 800443c: 460b movhi r3, r1 + 800443e: f8a4 3048 strh.w r3, [r4, #72] ; 0x48 + 8004442: 4620 mov r0, r4 + 8004444: f001 fc8e bl 8005d64 + 8004448: e013 b.n 8004472 + 800444a: bf00 nop + 800444c: 0800b18b .word 0x0800b18b + 8004450: 0800b269 .word 0x0800b269 + 8004454: 0800a54d .word 0x0800a54d + 8004458: 0800b282 .word 0x0800b282 + 800445c: 200082c4 .word 0x200082c4 + 8004460: 200082e4 .word 0x200082e4 + 8004464: 200082fe .word 0x200082fe + 8004468: 200082f0 .word 0x200082f0 + 800446c: 200082c0 .word 0x200082c0 + 8004470: d0e7 beq.n 8004442 + 8004472: 6b61 ldr r1, [r4, #52] ; 0x34 + 8004474: b349 cbz r1, 80044ca + 8004476: 6ba3 ldr r3, [r4, #56] ; 0x38 + 8004478: f8d9 2000 ldr.w r2, [r9] + 800447c: 1a9b subs r3, r3, r2 + 800447e: 2b00 cmp r3, #0 + 8004480: da23 bge.n 80044ca + 8004482: 4bb7 ldr r3, [pc, #732] ; (8004760 ) + 8004484: f8b3 c000 ldrh.w ip, [r3] + 8004488: f9b4 303c ldrsh.w r3, [r4, #60] ; 0x3c + 800448c: b289 uxth r1, r1 + 800448e: f3c3 00cf ubfx r0, r3, #3, #16 + 8004492: ebac 0201 sub.w r2, ip, r1 + 8004496: 1a12 subs r2, r2, r0 + 8004498: b215 sxth r5, r2 + 800449a: 2d00 cmp r5, #0 + 800449c: fa13 f282 uxtah r2, r3, r2 + 80044a0: bfb8 it lt + 80044a2: eba1 010c sublt.w r1, r1, ip + 80044a6: f9b4 303e ldrsh.w r3, [r4, #62] ; 0x3e + 80044aa: bfbc itt lt + 80044ac: 1809 addlt r1, r1, r0 + 80044ae: b20d sxthlt r5, r1 + 80044b0: eba3 03a3 sub.w r3, r3, r3, asr #2 + 80044b4: 442b add r3, r5 + 80044b6: b212 sxth r2, r2 + 80044b8: b29b uxth r3, r3 + 80044ba: 87e3 strh r3, [r4, #62] ; 0x3e + 80044bc: eb03 03e2 add.w r3, r3, r2, asr #3 + 80044c0: f8a4 3040 strh.w r3, [r4, #64] ; 0x40 + 80044c4: 2300 movs r3, #0 + 80044c6: 87a2 strh r2, [r4, #60] ; 0x3c + 80044c8: 6363 str r3, [r4, #52] ; 0x34 + 80044ca: 8838 ldrh r0, [r7, #0] + 80044cc: 6833 ldr r3, [r6, #0] + 80044ce: 6a62 ldr r2, [r4, #36] ; 0x24 + 80044d0: 2800 cmp r0, #0 + 80044d2: f000 835b beq.w 8004b8c + 80044d6: 7d21 ldrb r1, [r4, #20] + 80044d8: 2906 cmp r1, #6 + 80044da: f200 8357 bhi.w 8004b8c + 80044de: 1ad5 subs r5, r2, r3 + 80044e0: 2d01 cmp r5, #1 + 80044e2: f100 81a8 bmi.w 8004836 + 80044e6: f1c3 0101 rsb r1, r3, #1 + 80044ea: 1a09 subs r1, r1, r0 + 80044ec: 4411 add r1, r2 + 80044ee: 2900 cmp r1, #0 + 80044f0: f300 81a1 bgt.w 8004836 + 80044f4: f8df 9280 ldr.w r9, [pc, #640] ; 8004778 + 80044f8: f8d9 8004 ldr.w r8, [r9, #4] + 80044fc: f1b8 0f00 cmp.w r8, #0 + 8004500: d106 bne.n 8004510 + 8004502: 4b98 ldr r3, [pc, #608] ; (8004764 ) + 8004504: 4998 ldr r1, [pc, #608] ; (8004768 ) + 8004506: 4899 ldr r0, [pc, #612] ; (800476c ) + 8004508: f240 5294 movw r2, #1428 ; 0x594 + 800450c: f004 ff4c bl 80093a8 + 8004510: f64f 73fe movw r3, #65534 ; 0xfffe + 8004514: 429d cmp r5, r3 + 8004516: d906 bls.n 8004526 + 8004518: 4b92 ldr r3, [pc, #584] ; (8004764 ) + 800451a: 4995 ldr r1, [pc, #596] ; (8004770 ) + 800451c: 4893 ldr r0, [pc, #588] ; (800476c ) + 800451e: f240 5295 movw r2, #1429 ; 0x595 + 8004522: f004 ff41 bl 80093a8 + 8004526: f8d9 3004 ldr.w r3, [r9, #4] + 800452a: 891b ldrh r3, [r3, #8] + 800452c: b2ad uxth r5, r5 + 800452e: 42ab cmp r3, r5 + 8004530: d206 bcs.n 8004540 + 8004532: 4b8c ldr r3, [pc, #560] ; (8004764 ) + 8004534: 498f ldr r1, [pc, #572] ; (8004774 ) + 8004536: 488d ldr r0, [pc, #564] ; (800476c ) + 8004538: f240 5297 movw r2, #1431 ; 0x597 + 800453c: f004 ff34 bl 80093a8 + 8004540: f8b9 3008 ldrh.w r3, [r9, #8] + 8004544: 1b5b subs r3, r3, r5 + 8004546: f8a9 3008 strh.w r3, [r9, #8] + 800454a: f8d9 3004 ldr.w r3, [r9, #4] + 800454e: 891b ldrh r3, [r3, #8] + 8004550: 1b5b subs r3, r3, r5 + 8004552: b29b uxth r3, r3 + 8004554: 2100 movs r1, #0 + 8004556: f8b8 200a ldrh.w r2, [r8, #10] + 800455a: 42aa cmp r2, r5 + 800455c: f0c0 8162 bcc.w 8004824 + 8004560: 4629 mov r1, r5 + 8004562: 4640 mov r0, r8 + 8004564: f7fe fc02 bl 8002d6c + 8004568: f8d9 200c ldr.w r2, [r9, #12] + 800456c: 6a63 ldr r3, [r4, #36] ; 0x24 + 800456e: 6033 str r3, [r6, #0] + 8004570: 6053 str r3, [r2, #4] + 8004572: 6833 ldr r3, [r6, #0] + 8004574: 6a62 ldr r2, [r4, #36] ; 0x24 + 8004576: 1a99 subs r1, r3, r2 + 8004578: 2900 cmp r1, #0 + 800457a: f2c0 8230 blt.w 80049de + 800457e: 8d25 ldrh r5, [r4, #40] ; 0x28 + 8004580: 1c58 adds r0, r3, #1 + 8004582: 1a81 subs r1, r0, r2 + 8004584: 1b49 subs r1, r1, r5 + 8004586: 2900 cmp r1, #0 + 8004588: f300 8229 bgt.w 80049de + 800458c: 4293 cmp r3, r2 + 800458e: f040 8220 bne.w 80049d2 + 8004592: 4d79 ldr r5, [pc, #484] ; (8004778 ) + 8004594: 68eb ldr r3, [r5, #12] + 8004596: f8b5 8008 ldrh.w r8, [r5, #8] + 800459a: 8998 ldrh r0, [r3, #12] + 800459c: f7fd fecf bl 800233e + 80045a0: f010 0003 ands.w r0, r0, #3 + 80045a4: bf18 it ne + 80045a6: 2001 movne r0, #1 + 80045a8: 8d23 ldrh r3, [r4, #40] ; 0x28 + 80045aa: 4440 add r0, r8 + 80045ac: b280 uxth r0, r0 + 80045ae: 4283 cmp r3, r0 + 80045b0: 8038 strh r0, [r7, #0] + 80045b2: d242 bcs.n 800463a + 80045b4: 68eb ldr r3, [r5, #12] + 80045b6: 8998 ldrh r0, [r3, #12] + 80045b8: f7fd fec1 bl 800233e + 80045bc: 07c2 lsls r2, r0, #31 + 80045be: d510 bpl.n 80045e2 + 80045c0: 68eb ldr r3, [r5, #12] + 80045c2: f8b3 800c ldrh.w r8, [r3, #12] + 80045c6: 4640 mov r0, r8 + 80045c8: f7fd feb9 bl 800233e + 80045cc: f000 003e and.w r0, r0, #62 ; 0x3e + 80045d0: f7fd feb5 bl 800233e + 80045d4: f428 587c bic.w r8, r8, #16128 ; 0x3f00 + 80045d8: 68eb ldr r3, [r5, #12] + 80045da: ea48 0800 orr.w r8, r8, r0 + 80045de: f8a3 800c strh.w r8, [r3, #12] + 80045e2: 8d23 ldrh r3, [r4, #40] ; 0x28 + 80045e4: 812b strh r3, [r5, #8] + 80045e6: 68eb ldr r3, [r5, #12] + 80045e8: 8998 ldrh r0, [r3, #12] + 80045ea: f7fd fea8 bl 800233e + 80045ee: 0783 lsls r3, r0, #30 + 80045f0: bf48 it mi + 80045f2: 892b ldrhmi r3, [r5, #8] + 80045f4: 6868 ldr r0, [r5, #4] + 80045f6: bf44 itt mi + 80045f8: f103 33ff addmi.w r3, r3, #4294967295 + 80045fc: 812b strhmi r3, [r5, #8] + 80045fe: 8929 ldrh r1, [r5, #8] + 8004600: f7fe fccc bl 8002f9c + 8004604: 68eb ldr r3, [r5, #12] + 8004606: f8b5 8008 ldrh.w r8, [r5, #8] + 800460a: 8998 ldrh r0, [r3, #12] + 800460c: f7fd fe97 bl 800233e + 8004610: f010 0003 ands.w r0, r0, #3 + 8004614: bf18 it ne + 8004616: 2001 movne r0, #1 + 8004618: 6833 ldr r3, [r6, #0] + 800461a: 6a62 ldr r2, [r4, #36] ; 0x24 + 800461c: 4440 add r0, r8 + 800461e: b280 uxth r0, r0 + 8004620: 8038 strh r0, [r7, #0] + 8004622: 4418 add r0, r3 + 8004624: 8d23 ldrh r3, [r4, #40] ; 0x28 + 8004626: 4413 add r3, r2 + 8004628: 4298 cmp r0, r3 + 800462a: d006 beq.n 800463a + 800462c: 4b4d ldr r3, [pc, #308] ; (8004764 ) + 800462e: 4953 ldr r1, [pc, #332] ; (800477c ) + 8004630: 484e ldr r0, [pc, #312] ; (800476c ) + 8004632: f240 52cb movw r2, #1483 ; 0x5cb + 8004636: f004 feb7 bl 80093a8 + 800463a: 6f63 ldr r3, [r4, #116] ; 0x74 + 800463c: 2b00 cmp r3, #0 + 800463e: f000 8109 beq.w 8004854 + 8004642: 68eb ldr r3, [r5, #12] + 8004644: 8998 ldrh r0, [r3, #12] + 8004646: f7fd fe7a bl 800233e + 800464a: 07c0 lsls r0, r0, #31 + 800464c: f100 80ff bmi.w 800484e + 8004650: f8d4 8074 ldr.w r8, [r4, #116] ; 0x74 + 8004654: 6830 ldr r0, [r6, #0] + 8004656: 883b ldrh r3, [r7, #0] + 8004658: 4403 add r3, r0 + 800465a: f1b8 0f00 cmp.w r8, #0 + 800465e: d039 beq.n 80046d4 + 8004660: f8d8 c00c ldr.w ip, [r8, #12] + 8004664: f8b8 1008 ldrh.w r1, [r8, #8] + 8004668: f8dc 2004 ldr.w r2, [ip, #4] + 800466c: 4411 add r1, r2 + 800466e: 1a59 subs r1, r3, r1 + 8004670: 2900 cmp r1, #0 + 8004672: f280 811c bge.w 80048ae + 8004676: 1a9b subs r3, r3, r2 + 8004678: 2b00 cmp r3, #0 + 800467a: dd2b ble.n 80046d4 + 800467c: 68eb ldr r3, [r5, #12] + 800467e: 1a12 subs r2, r2, r0 + 8004680: 812a strh r2, [r5, #8] + 8004682: 8998 ldrh r0, [r3, #12] + 8004684: f7fd fe5b bl 800233e + 8004688: 0783 lsls r3, r0, #30 + 800468a: bf48 it mi + 800468c: 892b ldrhmi r3, [r5, #8] + 800468e: 6868 ldr r0, [r5, #4] + 8004690: bf44 itt mi + 8004692: f103 33ff addmi.w r3, r3, #4294967295 + 8004696: 812b strhmi r3, [r5, #8] + 8004698: 8929 ldrh r1, [r5, #8] + 800469a: f7fe fc7f bl 8002f9c + 800469e: 68eb ldr r3, [r5, #12] + 80046a0: f8b5 9008 ldrh.w r9, [r5, #8] + 80046a4: 8998 ldrh r0, [r3, #12] + 80046a6: f7fd fe4a bl 800233e + 80046aa: f010 0003 ands.w r0, r0, #3 + 80046ae: bf18 it ne + 80046b0: 2001 movne r0, #1 + 80046b2: 6833 ldr r3, [r6, #0] + 80046b4: 4448 add r0, r9 + 80046b6: b280 uxth r0, r0 + 80046b8: 8038 strh r0, [r7, #0] + 80046ba: 4418 add r0, r3 + 80046bc: f8d8 300c ldr.w r3, [r8, #12] + 80046c0: 685b ldr r3, [r3, #4] + 80046c2: 4298 cmp r0, r3 + 80046c4: d006 beq.n 80046d4 + 80046c6: 4b27 ldr r3, [pc, #156] ; (8004764 ) + 80046c8: 492d ldr r1, [pc, #180] ; (8004780 ) + 80046ca: 4828 ldr r0, [pc, #160] ; (800476c ) + 80046cc: f240 52fc movw r2, #1532 ; 0x5fc + 80046d0: f004 fe6a bl 80093a8 + 80046d4: f8c4 8074 str.w r8, [r4, #116] ; 0x74 + 80046d8: e0bc b.n 8004854 + 80046da: 2300 movs r3, #0 + 80046dc: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 80046e0: e6c7 b.n 8004472 + 80046e2: 6d21 ldr r1, [r4, #80] ; 0x50 + 80046e4: 1a51 subs r1, r2, r1 + 80046e6: 2900 cmp r1, #0 + 80046e8: f300 8098 bgt.w 800481c + 80046ec: 8b61 ldrh r1, [r4, #26] + 80046ee: 0748 lsls r0, r1, #29 + 80046f0: d509 bpl.n 8004706 + 80046f2: f021 0104 bic.w r1, r1, #4 + 80046f6: 8361 strh r1, [r4, #26] + 80046f8: f8b4 104a ldrh.w r1, [r4, #74] ; 0x4a + 80046fc: f8a4 1048 strh.w r1, [r4, #72] ; 0x48 + 8004700: 2100 movs r1, #0 + 8004702: f8a4 106a strh.w r1, [r4, #106] ; 0x6a + 8004706: f9b4 003c ldrsh.w r0, [r4, #60] ; 0x3c + 800470a: 8fe1 ldrh r1, [r4, #62] ; 0x3e + 800470c: 6462 str r2, [r4, #68] ; 0x44 + 800470e: 7d22 ldrb r2, [r4, #20] + 8004710: eb01 01e0 add.w r1, r1, r0, asr #3 + 8004714: f8a4 1040 strh.w r1, [r4, #64] ; 0x40 + 8004718: 2a03 cmp r2, #3 + 800471a: f04f 0100 mov.w r1, #0 + 800471e: f8a4 1042 strh.w r1, [r4, #66] ; 0x42 + 8004722: d939 bls.n 8004798 + 8004724: f8b4 2048 ldrh.w r2, [r4, #72] ; 0x48 + 8004728: f8b4 104a ldrh.w r1, [r4, #74] ; 0x4a + 800472c: 4291 cmp r1, r2 + 800472e: b29b uxth r3, r3 + 8004730: d928 bls.n 8004784 + 8004732: 8b61 ldrh r1, [r4, #26] + 8004734: f411 6f00 tst.w r1, #2048 ; 0x800 + 8004738: 8e61 ldrh r1, [r4, #50] ; 0x32 + 800473a: bf14 ite ne + 800473c: 2001 movne r0, #1 + 800473e: 2002 moveq r0, #2 + 8004740: fb11 f100 smulbb r1, r1, r0 + 8004744: b289 uxth r1, r1 + 8004746: 4299 cmp r1, r3 + 8004748: bf94 ite ls + 800474a: 1850 addls r0, r2, r1 + 800474c: 18d0 addhi r0, r2, r3 + 800474e: b283 uxth r3, r0 + 8004750: 429a cmp r2, r3 + 8004752: d901 bls.n 8004758 + 8004754: f64f 73ff movw r3, #65535 ; 0xffff + 8004758: f8a4 3048 strh.w r3, [r4, #72] ; 0x48 + 800475c: e01c b.n 8004798 + 800475e: bf00 nop + 8004760: 200082b4 .word 0x200082b4 + 8004764: 0800b18b .word 0x0800b18b + 8004768: 0800b29b .word 0x0800b29b + 800476c: 0800a54d .word 0x0800a54d + 8004770: 0800b2ab .word 0x0800b2ab + 8004774: 0800b2ba .word 0x0800b2ba + 8004778: 200082c8 .word 0x200082c8 + 800477c: 0800b2ca .word 0x0800b2ca + 8004780: 0800b301 .word 0x0800b301 + 8004784: f8b4 106a ldrh.w r1, [r4, #106] ; 0x6a + 8004788: 440b add r3, r1 + 800478a: b29b uxth r3, r3 + 800478c: 4299 cmp r1, r3 + 800478e: d82c bhi.n 80047ea + 8004790: 429a cmp r2, r3 + 8004792: d92c bls.n 80047ee + 8004794: f8a4 306a strh.w r3, [r4, #106] ; 0x6a + 8004798: e9d4 211b ldrd r2, r1, [r4, #108] ; 0x6c + 800479c: 4620 mov r0, r4 + 800479e: f7ff fd77 bl 8004290 + 80047a2: 6ee1 ldr r1, [r4, #108] ; 0x6c + 80047a4: 6720 str r0, [r4, #112] ; 0x70 + 80047a6: 4602 mov r2, r0 + 80047a8: 4620 mov r0, r4 + 80047aa: f7ff fd71 bl 8004290 + 80047ae: 6f22 ldr r2, [r4, #112] ; 0x70 + 80047b0: 66e0 str r0, [r4, #108] ; 0x6c + 80047b2: fab2 f382 clz r3, r2 + 80047b6: 095b lsrs r3, r3, #5 + 80047b8: 425b negs r3, r3 + 80047ba: 8623 strh r3, [r4, #48] ; 0x30 + 80047bc: 2300 movs r3, #0 + 80047be: 7723 strb r3, [r4, #28] + 80047c0: b908 cbnz r0, 80047c6 + 80047c2: f8a4 0068 strh.w r0, [r4, #104] ; 0x68 + 80047c6: 499f ldr r1, [pc, #636] ; (8004a44 ) + 80047c8: f8b4 3064 ldrh.w r3, [r4, #100] ; 0x64 + 80047cc: 8809 ldrh r1, [r1, #0] + 80047ce: 440b add r3, r1 + 80047d0: f8a4 3064 strh.w r3, [r4, #100] ; 0x64 + 80047d4: 8b63 ldrh r3, [r4, #26] + 80047d6: 0519 lsls r1, r3, #20 + 80047d8: f57f ae4b bpl.w 8004472 + 80047dc: b9d2 cbnz r2, 8004814 + 80047de: b968 cbnz r0, 80047fc + 80047e0: 8b63 ldrh r3, [r4, #26] + 80047e2: f423 6300 bic.w r3, r3, #2048 ; 0x800 + 80047e6: 8363 strh r3, [r4, #26] + 80047e8: e643 b.n 8004472 + 80047ea: f64f 73ff movw r3, #65535 ; 0xffff + 80047ee: 1a9b subs r3, r3, r2 + 80047f0: f8a4 306a strh.w r3, [r4, #106] ; 0x6a + 80047f4: 8e63 ldrh r3, [r4, #50] ; 0x32 + 80047f6: 4413 add r3, r2 + 80047f8: b29b uxth r3, r3 + 80047fa: e7a9 b.n 8004750 + 80047fc: f8d4 804c ldr.w r8, [r4, #76] ; 0x4c + 8004800: 68c3 ldr r3, [r0, #12] + 8004802: 6858 ldr r0, [r3, #4] + 8004804: f7fd fd9e bl 8002344 + 8004808: eba8 0000 sub.w r0, r8, r0 + 800480c: 2800 cmp r0, #0 + 800480e: f73f ae30 bgt.w 8004472 + 8004812: e7e5 b.n 80047e0 + 8004814: f8d4 804c ldr.w r8, [r4, #76] ; 0x4c + 8004818: 68d3 ldr r3, [r2, #12] + 800481a: e7f2 b.n 8004802 + 800481c: 4620 mov r0, r4 + 800481e: f001 fb1b bl 8005e58 + 8004822: e626 b.n 8004472 + 8004824: 1aad subs r5, r5, r2 + 8004826: f8a8 3008 strh.w r3, [r8, #8] + 800482a: f8a8 100a strh.w r1, [r8, #10] + 800482e: b2ad uxth r5, r5 + 8004830: f8d8 8000 ldr.w r8, [r8] + 8004834: e68f b.n 8004556 + 8004836: 1a9b subs r3, r3, r2 + 8004838: 2b00 cmp r3, #0 + 800483a: bfbe ittt lt + 800483c: 8b63 ldrhlt r3, [r4, #26] + 800483e: f043 0302 orrlt.w r3, r3, #2 + 8004842: 8363 strhlt r3, [r4, #26] + 8004844: e695 b.n 8004572 + 8004846: 6803 ldr r3, [r0, #0] + 8004848: 6763 str r3, [r4, #116] ; 0x74 + 800484a: f7fe fe0b bl 8003464 + 800484e: 6f60 ldr r0, [r4, #116] ; 0x74 + 8004850: 2800 cmp r0, #0 + 8004852: d1f8 bne.n 8004846 + 8004854: 883a ldrh r2, [r7, #0] + 8004856: 6833 ldr r3, [r6, #0] + 8004858: 4413 add r3, r2 + 800485a: 6263 str r3, [r4, #36] ; 0x24 + 800485c: 8d23 ldrh r3, [r4, #40] ; 0x28 + 800485e: 4293 cmp r3, r2 + 8004860: d206 bcs.n 8004870 + 8004862: 4b79 ldr r3, [pc, #484] ; (8004a48 ) + 8004864: 4979 ldr r1, [pc, #484] ; (8004a4c ) + 8004866: 487a ldr r0, [pc, #488] ; (8004a50 ) + 8004868: f240 6207 movw r2, #1543 ; 0x607 + 800486c: f004 fd9c bl 80093a8 + 8004870: 8d23 ldrh r3, [r4, #40] ; 0x28 + 8004872: 883a ldrh r2, [r7, #0] + 8004874: 1a9b subs r3, r3, r2 + 8004876: 8523 strh r3, [r4, #40] ; 0x28 + 8004878: 4620 mov r0, r4 + 800487a: f7fe fd7f bl 800337c + 800487e: 686b ldr r3, [r5, #4] + 8004880: 891a ldrh r2, [r3, #8] + 8004882: b11a cbz r2, 800488c + 8004884: 4a73 ldr r2, [pc, #460] ; (8004a54 ) + 8004886: 6013 str r3, [r2, #0] + 8004888: 2300 movs r3, #0 + 800488a: 606b str r3, [r5, #4] + 800488c: 68eb ldr r3, [r5, #12] + 800488e: 8998 ldrh r0, [r3, #12] + 8004890: f7fd fd55 bl 800233e + 8004894: 07c5 lsls r5, r0, #31 + 8004896: d504 bpl.n 80048a2 + 8004898: 4a6f ldr r2, [pc, #444] ; (8004a58 ) + 800489a: 7813 ldrb r3, [r2, #0] + 800489c: f043 0320 orr.w r3, r3, #32 + 80048a0: 7013 strb r3, [r2, #0] + 80048a2: 4f69 ldr r7, [pc, #420] ; (8004a48 ) + 80048a4: f8df 81b8 ldr.w r8, [pc, #440] ; 8004a60 + 80048a8: f8df 91a4 ldr.w r9, [pc, #420] ; 8004a50 + 80048ac: e07b b.n 80049a6 + 80048ae: f8bc 000c ldrh.w r0, [ip, #12] + 80048b2: f7fd fd44 bl 800233e + 80048b6: 07c1 lsls r1, r0, #31 + 80048b8: d51a bpl.n 80048f0 + 80048ba: 68eb ldr r3, [r5, #12] + 80048bc: 8998 ldrh r0, [r3, #12] + 80048be: f7fd fd3e bl 800233e + 80048c2: 0782 lsls r2, r0, #30 + 80048c4: d414 bmi.n 80048f0 + 80048c6: 68eb ldr r3, [r5, #12] + 80048c8: 2001 movs r0, #1 + 80048ca: f8b3 900c ldrh.w r9, [r3, #12] + 80048ce: f7fd fd36 bl 800233e + 80048d2: 68eb ldr r3, [r5, #12] + 80048d4: ea49 0000 orr.w r0, r9, r0 + 80048d8: 8198 strh r0, [r3, #12] + 80048da: b280 uxth r0, r0 + 80048dc: f8b5 9008 ldrh.w r9, [r5, #8] + 80048e0: f7fd fd2d bl 800233e + 80048e4: f010 0003 ands.w r0, r0, #3 + 80048e8: bf18 it ne + 80048ea: 2001 movne r0, #1 + 80048ec: 4448 add r0, r9 + 80048ee: 8038 strh r0, [r7, #0] + 80048f0: f8d8 9000 ldr.w r9, [r8] + 80048f4: 4640 mov r0, r8 + 80048f6: f7fe fdb5 bl 8003464 + 80048fa: 46c8 mov r8, r9 + 80048fc: e6aa b.n 8004654 + 80048fe: 6033 str r3, [r6, #0] + 8004900: 8990 ldrh r0, [r2, #12] + 8004902: f8b5 a008 ldrh.w sl, [r5, #8] + 8004906: f7fd fd1a bl 800233e + 800490a: 6a63 ldr r3, [r4, #36] ; 0x24 + 800490c: f8b5 b008 ldrh.w fp, [r5, #8] + 8004910: f010 0003 ands.w r0, r0, #3 + 8004914: bf18 it ne + 8004916: 2001 movne r0, #1 + 8004918: 449a add sl, r3 + 800491a: 4450 add r0, sl + 800491c: 68eb ldr r3, [r5, #12] + 800491e: 6260 str r0, [r4, #36] ; 0x24 + 8004920: 8998 ldrh r0, [r3, #12] + 8004922: f8b4 a028 ldrh.w sl, [r4, #40] ; 0x28 + 8004926: f7fd fd0a bl 800233e + 800492a: f010 0003 ands.w r0, r0, #3 + 800492e: bf18 it ne + 8004930: 2001 movne r0, #1 + 8004932: 4458 add r0, fp + 8004934: 4582 cmp sl, r0 + 8004936: d206 bcs.n 8004946 + 8004938: 463b mov r3, r7 + 800493a: f240 622b movw r2, #1579 ; 0x62b + 800493e: 4641 mov r1, r8 + 8004940: 4648 mov r0, r9 + 8004942: f004 fd31 bl 80093a8 + 8004946: 68eb ldr r3, [r5, #12] + 8004948: f8b5 a008 ldrh.w sl, [r5, #8] + 800494c: 8998 ldrh r0, [r3, #12] + 800494e: f7fd fcf6 bl 800233e + 8004952: f010 0003 ands.w r0, r0, #3 + 8004956: 8d23 ldrh r3, [r4, #40] ; 0x28 + 8004958: bf18 it ne + 800495a: 2001 movne r0, #1 + 800495c: 4450 add r0, sl + 800495e: 1a18 subs r0, r3, r0 + 8004960: 8520 strh r0, [r4, #40] ; 0x28 + 8004962: 4620 mov r0, r4 + 8004964: f7fe fd0a bl 800337c + 8004968: 6869 ldr r1, [r5, #4] + 800496a: 890b ldrh r3, [r1, #8] + 800496c: b133 cbz r3, 800497c + 800496e: 4b39 ldr r3, [pc, #228] ; (8004a54 ) + 8004970: 6818 ldr r0, [r3, #0] + 8004972: b338 cbz r0, 80049c4 + 8004974: f7fe fb86 bl 8003084 + 8004978: 2300 movs r3, #0 + 800497a: 606b str r3, [r5, #4] + 800497c: 68eb ldr r3, [r5, #12] + 800497e: 8998 ldrh r0, [r3, #12] + 8004980: f7fd fcdd bl 800233e + 8004984: 07c0 lsls r0, r0, #31 + 8004986: d509 bpl.n 800499c + 8004988: 4a33 ldr r2, [pc, #204] ; (8004a58 ) + 800498a: 7813 ldrb r3, [r2, #0] + 800498c: f043 0320 orr.w r3, r3, #32 + 8004990: 7013 strb r3, [r2, #0] + 8004992: 7d23 ldrb r3, [r4, #20] + 8004994: 2b04 cmp r3, #4 + 8004996: bf04 itt eq + 8004998: 2307 moveq r3, #7 + 800499a: 7523 strbeq r3, [r4, #20] + 800499c: 682b ldr r3, [r5, #0] + 800499e: 6763 str r3, [r4, #116] ; 0x74 + 80049a0: 4628 mov r0, r5 + 80049a2: f7fe fd5f bl 8003464 + 80049a6: 6f65 ldr r5, [r4, #116] ; 0x74 + 80049a8: b125 cbz r5, 80049b4 + 80049aa: 68ea ldr r2, [r5, #12] + 80049ac: 6a61 ldr r1, [r4, #36] ; 0x24 + 80049ae: 6853 ldr r3, [r2, #4] + 80049b0: 428b cmp r3, r1 + 80049b2: d0a4 beq.n 80048fe + 80049b4: 8b63 ldrh r3, [r4, #26] + 80049b6: 07d9 lsls r1, r3, #31 + 80049b8: d506 bpl.n 80049c8 + 80049ba: f023 0301 bic.w r3, r3, #1 + 80049be: f043 0302 orr.w r3, r3, #2 + 80049c2: e003 b.n 80049cc + 80049c4: 6019 str r1, [r3, #0] + 80049c6: e7d7 b.n 8004978 + 80049c8: f043 0301 orr.w r3, r3, #1 + 80049cc: 8363 strh r3, [r4, #26] + 80049ce: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 80049d2: 6f65 ldr r5, [r4, #116] ; 0x74 + 80049d4: b945 cbnz r5, 80049e8 + 80049d6: 4821 ldr r0, [pc, #132] ; (8004a5c ) + 80049d8: f7fe fd5a bl 8003490 + 80049dc: 6760 str r0, [r4, #116] ; 0x74 + 80049de: 4620 mov r0, r4 + 80049e0: e8bd 4ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80049e4: f001 ba38 b.w 8005e58 + 80049e8: f04f 0800 mov.w r8, #0 + 80049ec: f103 3eff add.w lr, r3, #4294967295 + 80049f0: f8d5 c00c ldr.w ip, [r5, #12] + 80049f4: f8dc 2004 ldr.w r2, [ip, #4] + 80049f8: 4293 cmp r3, r2 + 80049fa: d115 bne.n 8004a28 + 80049fc: 4817 ldr r0, [pc, #92] ; (8004a5c ) + 80049fe: 892b ldrh r3, [r5, #8] + 8004a00: 8902 ldrh r2, [r0, #8] + 8004a02: 429a cmp r2, r3 + 8004a04: d9eb bls.n 80049de + 8004a06: f7fe fd43 bl 8003490 + 8004a0a: 2800 cmp r0, #0 + 8004a0c: d0e7 beq.n 80049de + 8004a0e: f1b8 0f00 cmp.w r8, #0 + 8004a12: d007 beq.n 8004a24 + 8004a14: f8c8 0000 str.w r0, [r8] + 8004a18: 4629 mov r1, r5 + 8004a1a: f7ff fb7b bl 8004114 + 8004a1e: e7de b.n 80049de + 8004a20: 460d mov r5, r1 + 8004a22: e7e5 b.n 80049f0 + 8004a24: 6760 str r0, [r4, #116] ; 0x74 + 8004a26: e7f7 b.n 8004a18 + 8004a28: f1b8 0f00 cmp.w r8, #0 + 8004a2c: d11a bne.n 8004a64 + 8004a2e: 1a99 subs r1, r3, r2 + 8004a30: 2900 cmp r1, #0 + 8004a32: da3e bge.n 8004ab2 + 8004a34: 4809 ldr r0, [pc, #36] ; (8004a5c ) + 8004a36: f7fe fd2b bl 8003490 + 8004a3a: 2800 cmp r0, #0 + 8004a3c: d0cf beq.n 80049de + 8004a3e: 6760 str r0, [r4, #116] ; 0x74 + 8004a40: e7ea b.n 8004a18 + 8004a42: bf00 nop + 8004a44: 200082d8 .word 0x200082d8 + 8004a48: 0800b18b .word 0x0800b18b + 8004a4c: 0800b33c .word 0x0800b33c + 8004a50: 0800a54d .word 0x0800a54d + 8004a54: 200082dc .word 0x200082dc + 8004a58: 200082e0 .word 0x200082e0 + 8004a5c: 200082c8 .word 0x200082c8 + 8004a60: 0800b35b .word 0x0800b35b + 8004a64: f8d8 100c ldr.w r1, [r8, #12] + 8004a68: 6849 ldr r1, [r1, #4] + 8004a6a: ebae 0101 sub.w r1, lr, r1 + 8004a6e: 2900 cmp r1, #0 + 8004a70: db1f blt.n 8004ab2 + 8004a72: 1a81 subs r1, r0, r2 + 8004a74: 2900 cmp r1, #0 + 8004a76: dc1c bgt.n 8004ab2 + 8004a78: 484a ldr r0, [pc, #296] ; (8004ba4 ) + 8004a7a: f7fe fd09 bl 8003490 + 8004a7e: 4607 mov r7, r0 + 8004a80: 2800 cmp r0, #0 + 8004a82: d0ac beq.n 80049de + 8004a84: f8d8 300c ldr.w r3, [r8, #12] + 8004a88: 6831 ldr r1, [r6, #0] + 8004a8a: 685a ldr r2, [r3, #4] + 8004a8c: f8b8 3008 ldrh.w r3, [r8, #8] + 8004a90: 4413 add r3, r2 + 8004a92: 1a5b subs r3, r3, r1 + 8004a94: 2b00 cmp r3, #0 + 8004a96: dd07 ble.n 8004aa8 + 8004a98: 1a89 subs r1, r1, r2 + 8004a9a: b289 uxth r1, r1 + 8004a9c: f8d8 0004 ldr.w r0, [r8, #4] + 8004aa0: f8a8 1008 strh.w r1, [r8, #8] + 8004aa4: f7fe fa7a bl 8002f9c + 8004aa8: f8c8 7000 str.w r7, [r8] + 8004aac: 4629 mov r1, r5 + 8004aae: 4638 mov r0, r7 + 8004ab0: e7b3 b.n 8004a1a + 8004ab2: 6829 ldr r1, [r5, #0] + 8004ab4: 46a8 mov r8, r5 + 8004ab6: 2900 cmp r1, #0 + 8004ab8: d1b2 bne.n 8004a20 + 8004aba: 1a9b subs r3, r3, r2 + 8004abc: 2b00 cmp r3, #0 + 8004abe: dd8e ble.n 80049de + 8004ac0: f8bc 000c ldrh.w r0, [ip, #12] + 8004ac4: f7fd fc3b bl 800233e + 8004ac8: 07c2 lsls r2, r0, #31 + 8004aca: d488 bmi.n 80049de + 8004acc: 4835 ldr r0, [pc, #212] ; (8004ba4 ) + 8004ace: f7fe fcdf bl 8003490 + 8004ad2: 6028 str r0, [r5, #0] + 8004ad4: 2800 cmp r0, #0 + 8004ad6: d082 beq.n 80049de + 8004ad8: 68eb ldr r3, [r5, #12] + 8004ada: 6831 ldr r1, [r6, #0] + 8004adc: 685a ldr r2, [r3, #4] + 8004ade: 892b ldrh r3, [r5, #8] + 8004ae0: 4413 add r3, r2 + 8004ae2: 1a5b subs r3, r3, r1 + 8004ae4: 2b00 cmp r3, #0 + 8004ae6: dd05 ble.n 8004af4 + 8004ae8: 1a89 subs r1, r1, r2 + 8004aea: b289 uxth r1, r1 + 8004aec: 6868 ldr r0, [r5, #4] + 8004aee: 8129 strh r1, [r5, #8] + 8004af0: f7fe fa54 bl 8002f9c + 8004af4: 6832 ldr r2, [r6, #0] + 8004af6: 883b ldrh r3, [r7, #0] + 8004af8: 4413 add r3, r2 + 8004afa: 6a62 ldr r2, [r4, #36] ; 0x24 + 8004afc: 1a9b subs r3, r3, r2 + 8004afe: 8d22 ldrh r2, [r4, #40] ; 0x28 + 8004b00: 1a9b subs r3, r3, r2 + 8004b02: 2b00 cmp r3, #0 + 8004b04: f77f af6b ble.w 80049de + 8004b08: 682b ldr r3, [r5, #0] + 8004b0a: 68db ldr r3, [r3, #12] + 8004b0c: 8998 ldrh r0, [r3, #12] + 8004b0e: f7fd fc16 bl 800233e + 8004b12: 07c3 lsls r3, r0, #31 + 8004b14: d512 bpl.n 8004b3c + 8004b16: 682b ldr r3, [r5, #0] + 8004b18: 68db ldr r3, [r3, #12] + 8004b1a: f8b3 800c ldrh.w r8, [r3, #12] + 8004b1e: 4640 mov r0, r8 + 8004b20: f7fd fc0d bl 800233e + 8004b24: f000 003e and.w r0, r0, #62 ; 0x3e + 8004b28: f7fd fc09 bl 800233e + 8004b2c: 682b ldr r3, [r5, #0] + 8004b2e: f428 587c bic.w r8, r8, #16128 ; 0x3f00 + 8004b32: 68db ldr r3, [r3, #12] + 8004b34: ea48 0800 orr.w r8, r8, r0 + 8004b38: f8a3 800c strh.w r8, [r3, #12] + 8004b3c: 6832 ldr r2, [r6, #0] + 8004b3e: 8d21 ldrh r1, [r4, #40] ; 0x28 + 8004b40: 682b ldr r3, [r5, #0] + 8004b42: 1a89 subs r1, r1, r2 + 8004b44: 6a62 ldr r2, [r4, #36] ; 0x24 + 8004b46: 6858 ldr r0, [r3, #4] + 8004b48: 4411 add r1, r2 + 8004b4a: b289 uxth r1, r1 + 8004b4c: 8119 strh r1, [r3, #8] + 8004b4e: f7fe fa25 bl 8002f9c + 8004b52: 682b ldr r3, [r5, #0] + 8004b54: 891d ldrh r5, [r3, #8] + 8004b56: 68db ldr r3, [r3, #12] + 8004b58: 8998 ldrh r0, [r3, #12] + 8004b5a: f7fd fbf0 bl 800233e + 8004b5e: f010 0003 ands.w r0, r0, #3 + 8004b62: bf18 it ne + 8004b64: 2001 movne r0, #1 + 8004b66: 6833 ldr r3, [r6, #0] + 8004b68: 6a62 ldr r2, [r4, #36] ; 0x24 + 8004b6a: 4428 add r0, r5 + 8004b6c: b280 uxth r0, r0 + 8004b6e: 8038 strh r0, [r7, #0] + 8004b70: 4418 add r0, r3 + 8004b72: 8d23 ldrh r3, [r4, #40] ; 0x28 + 8004b74: 4413 add r3, r2 + 8004b76: 4298 cmp r0, r3 + 8004b78: f43f af31 beq.w 80049de + 8004b7c: 4b0a ldr r3, [pc, #40] ; (8004ba8 ) + 8004b7e: 490b ldr r1, [pc, #44] ; (8004bac ) + 8004b80: 480b ldr r0, [pc, #44] ; (8004bb0 ) + 8004b82: f44f 62df mov.w r2, #1784 ; 0x6f8 + 8004b86: f004 fc0f bl 80093a8 + 8004b8a: e728 b.n 80049de + 8004b8c: 1a99 subs r1, r3, r2 + 8004b8e: 2900 cmp r1, #0 + 8004b90: db06 blt.n 8004ba0 + 8004b92: 3301 adds r3, #1 + 8004b94: 1a9b subs r3, r3, r2 + 8004b96: 8d22 ldrh r2, [r4, #40] ; 0x28 + 8004b98: 1a9b subs r3, r3, r2 + 8004b9a: 2b00 cmp r3, #0 + 8004b9c: f77f af17 ble.w 80049ce + 8004ba0: 8b63 ldrh r3, [r4, #26] + 8004ba2: e70c b.n 80049be + 8004ba4: 200082c8 .word 0x200082c8 + 8004ba8: 0800b18b .word 0x0800b18b + 8004bac: 0800b2ca .word 0x0800b2ca + 8004bb0: 0800a54d .word 0x0800a54d + +08004bb4 : + 8004bb4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8004bb8: 4605 mov r5, r0 + 8004bba: b087 sub sp, #28 + 8004bbc: b928 cbnz r0, 8004bca + 8004bbe: 4b63 ldr r3, [pc, #396] ; (8004d4c ) + 8004bc0: 4963 ldr r1, [pc, #396] ; (8004d50 ) + 8004bc2: 4864 ldr r0, [pc, #400] ; (8004d54 ) + 8004bc4: 2283 movs r2, #131 ; 0x83 + 8004bc6: f004 fbef bl 80093a8 + 8004bca: 4e63 ldr r6, [pc, #396] ; (8004d58 ) + 8004bcc: 686b ldr r3, [r5, #4] + 8004bce: 6033 str r3, [r6, #0] + 8004bd0: 896b ldrh r3, [r5, #10] + 8004bd2: 2b13 cmp r3, #19 + 8004bd4: f240 80b3 bls.w 8004d3e + 8004bd8: 4f60 ldr r7, [pc, #384] ; (8004d5c ) + 8004bda: 6839 ldr r1, [r7, #0] + 8004bdc: 6978 ldr r0, [r7, #20] + 8004bde: f003 fe70 bl 80088c2 + 8004be2: 4604 mov r4, r0 + 8004be4: 2800 cmp r0, #0 + 8004be6: f040 80aa bne.w 8004d3e + 8004bea: 697b ldr r3, [r7, #20] + 8004bec: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 8004bf0: 2be0 cmp r3, #224 ; 0xe0 + 8004bf2: f000 80a4 beq.w 8004d3e + 8004bf6: 6833 ldr r3, [r6, #0] + 8004bf8: 8998 ldrh r0, [r3, #12] + 8004bfa: f7fd fba0 bl 800233e + 8004bfe: 0a81 lsrs r1, r0, #10 + 8004c00: f001 01fc and.w r1, r1, #252 ; 0xfc + 8004c04: 2913 cmp r1, #19 + 8004c06: f240 809a bls.w 8004d3e + 8004c0a: 892b ldrh r3, [r5, #8] + 8004c0c: 428b cmp r3, r1 + 8004c0e: b28a uxth r2, r1 + 8004c10: f0c0 8095 bcc.w 8004d3e + 8004c14: 8968 ldrh r0, [r5, #10] + 8004c16: f8df 8164 ldr.w r8, [pc, #356] ; 8004d7c + 8004c1a: f8df a164 ldr.w sl, [pc, #356] ; 8004d80 + 8004c1e: f8df 9164 ldr.w r9, [pc, #356] ; 8004d84 + 8004c22: f8ca 4000 str.w r4, [sl] + 8004c26: f1a2 0314 sub.w r3, r2, #20 + 8004c2a: b29b uxth r3, r3 + 8004c2c: 4290 cmp r0, r2 + 8004c2e: f8a8 3000 strh.w r3, [r8] + 8004c32: d342 bcc.n 8004cba + 8004c34: 4628 mov r0, r5 + 8004c36: f8a9 3000 strh.w r3, [r9] + 8004c3a: f7fe f897 bl 8002d6c + 8004c3e: 6834 ldr r4, [r6, #0] + 8004c40: f8df b144 ldr.w fp, [pc, #324] ; 8004d88 + 8004c44: 8820 ldrh r0, [r4, #0] + 8004c46: f7fd fb7a bl 800233e + 8004c4a: 8020 strh r0, [r4, #0] + 8004c4c: 6834 ldr r4, [r6, #0] + 8004c4e: 8860 ldrh r0, [r4, #2] + 8004c50: f7fd fb75 bl 800233e + 8004c54: 8060 strh r0, [r4, #2] + 8004c56: 6834 ldr r4, [r6, #0] + 8004c58: 6860 ldr r0, [r4, #4] + 8004c5a: f7fd fb73 bl 8002344 + 8004c5e: 4b40 ldr r3, [pc, #256] ; (8004d60 ) + 8004c60: 6060 str r0, [r4, #4] + 8004c62: 6834 ldr r4, [r6, #0] + 8004c64: 6018 str r0, [r3, #0] + 8004c66: 68a0 ldr r0, [r4, #8] + 8004c68: f7fd fb6c bl 8002344 + 8004c6c: 60a0 str r0, [r4, #8] + 8004c6e: 6834 ldr r4, [r6, #0] + 8004c70: f8cb 0000 str.w r0, [fp] + 8004c74: 89e0 ldrh r0, [r4, #14] + 8004c76: f7fd fb62 bl 800233e + 8004c7a: 6833 ldr r3, [r6, #0] + 8004c7c: 81e0 strh r0, [r4, #14] + 8004c7e: 8998 ldrh r0, [r3, #12] + 8004c80: f7fd fb5d bl 800233e + 8004c84: 4a37 ldr r2, [pc, #220] ; (8004d64 ) + 8004c86: f000 033f and.w r3, r0, #63 ; 0x3f + 8004c8a: 7013 strb r3, [r2, #0] + 8004c8c: 0783 lsls r3, r0, #30 + 8004c8e: 892a ldrh r2, [r5, #8] + 8004c90: d14f bne.n 8004d32 + 8004c92: 4b35 ldr r3, [pc, #212] ; (8004d68 ) + 8004c94: 801a strh r2, [r3, #0] + 8004c96: f8df 80f4 ldr.w r8, [pc, #244] ; 8004d8c + 8004c9a: 4b2c ldr r3, [pc, #176] ; (8004d4c ) + 8004c9c: f8d8 4000 ldr.w r4, [r8] + 8004ca0: f8df 90b0 ldr.w r9, [pc, #176] ; 8004d54 + 8004ca4: f04f 0a00 mov.w sl, #0 + 8004ca8: 2c00 cmp r4, #0 + 8004caa: d173 bne.n 8004d94 + 8004cac: 4b2f ldr r3, [pc, #188] ; (8004d6c ) + 8004cae: f8df a0e0 ldr.w sl, [pc, #224] ; 8004d90 + 8004cb2: 681c ldr r4, [r3, #0] + 8004cb4: f8df 909c ldr.w r9, [pc, #156] ; 8004d54 + 8004cb8: e15a b.n 8004f70 + 8004cba: 682b ldr r3, [r5, #0] + 8004cbc: b92b cbnz r3, 8004cca + 8004cbe: 4b23 ldr r3, [pc, #140] ; (8004d4c ) + 8004cc0: 492b ldr r1, [pc, #172] ; (8004d70 ) + 8004cc2: 4824 ldr r0, [pc, #144] ; (8004d54 ) + 8004cc4: 22c2 movs r2, #194 ; 0xc2 + 8004cc6: f004 fb6f bl 80093a8 + 8004cca: 2114 movs r1, #20 + 8004ccc: 4628 mov r0, r5 + 8004cce: f7fe f84d bl 8002d6c + 8004cd2: 896c ldrh r4, [r5, #10] + 8004cd4: f8a9 4000 strh.w r4, [r9] + 8004cd8: 4621 mov r1, r4 + 8004cda: 4628 mov r0, r5 + 8004cdc: f8b8 9000 ldrh.w r9, [r8] + 8004ce0: f7fe f844 bl 8002d6c + 8004ce4: 6828 ldr r0, [r5, #0] + 8004ce6: eba9 0804 sub.w r8, r9, r4 + 8004cea: 8943 ldrh r3, [r0, #10] + 8004cec: fa1f f888 uxth.w r8, r8 + 8004cf0: 4543 cmp r3, r8 + 8004cf2: d324 bcc.n 8004d3e + 8004cf4: 6843 ldr r3, [r0, #4] + 8004cf6: f8ca 3000 str.w r3, [sl] + 8004cfa: 4641 mov r1, r8 + 8004cfc: f7fe f836 bl 8002d6c + 8004d00: 892b ldrh r3, [r5, #8] + 8004d02: 441c add r4, r3 + 8004d04: 896b ldrh r3, [r5, #10] + 8004d06: eba4 0409 sub.w r4, r4, r9 + 8004d0a: 812c strh r4, [r5, #8] + 8004d0c: b12b cbz r3, 8004d1a + 8004d0e: 4b0f ldr r3, [pc, #60] ; (8004d4c ) + 8004d10: 4918 ldr r1, [pc, #96] ; (8004d74 ) + 8004d12: 4810 ldr r0, [pc, #64] ; (8004d54 ) + 8004d14: 22df movs r2, #223 ; 0xdf + 8004d16: f004 fb47 bl 80093a8 + 8004d1a: 682b ldr r3, [r5, #0] + 8004d1c: 892a ldrh r2, [r5, #8] + 8004d1e: 891b ldrh r3, [r3, #8] + 8004d20: 429a cmp r2, r3 + 8004d22: d08c beq.n 8004c3e + 8004d24: 4b09 ldr r3, [pc, #36] ; (8004d4c ) + 8004d26: 4914 ldr r1, [pc, #80] ; (8004d78 ) + 8004d28: 480a ldr r0, [pc, #40] ; (8004d54 ) + 8004d2a: 22e0 movs r2, #224 ; 0xe0 + 8004d2c: f004 fb3c bl 80093a8 + 8004d30: e785 b.n 8004c3e + 8004d32: 1c53 adds r3, r2, #1 + 8004d34: b29b uxth r3, r3 + 8004d36: 490c ldr r1, [pc, #48] ; (8004d68 ) + 8004d38: 429a cmp r2, r3 + 8004d3a: 800b strh r3, [r1, #0] + 8004d3c: d9ab bls.n 8004c96 + 8004d3e: 4628 mov r0, r5 + 8004d40: b007 add sp, #28 + 8004d42: e8bd 4ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8004d46: f7fe b845 b.w 8002dd4 + 8004d4a: bf00 nop + 8004d4c: 0800b18b .word 0x0800b18b + 8004d50: 0800b380 .word 0x0800b380 + 8004d54: 0800a54d .word 0x0800a54d + 8004d58: 200082f0 .word 0x200082f0 + 8004d5c: 20004d1c .word 0x20004d1c + 8004d60: 200082e4 .word 0x200082e4 + 8004d64: 200082c4 .word 0x200082c4 + 8004d68: 200082fe .word 0x200082fe + 8004d6c: 200082bc .word 0x200082bc + 8004d70: 0800b398 .word 0x0800b398 + 8004d74: 0800b3a8 .word 0x0800b3a8 + 8004d78: 0800b3b4 .word 0x0800b3b4 + 8004d7c: 200082fc .word 0x200082fc + 8004d80: 200082f8 .word 0x200082f8 + 8004d84: 200082f4 .word 0x200082f4 + 8004d88: 200082c0 .word 0x200082c0 + 8004d8c: 200082a4 .word 0x200082a4 + 8004d90: 0800b4a0 .word 0x0800b4a0 + 8004d94: 7d22 ldrb r2, [r4, #20] + 8004d96: b92a cbnz r2, 8004da4 + 8004d98: 499d ldr r1, [pc, #628] ; (8005010 ) + 8004d9a: 22fb movs r2, #251 ; 0xfb + 8004d9c: 4648 mov r0, r9 + 8004d9e: f004 fb03 bl 80093a8 + 8004da2: 4b9c ldr r3, [pc, #624] ; (8005014 ) + 8004da4: 7d22 ldrb r2, [r4, #20] + 8004da6: 2a0a cmp r2, #10 + 8004da8: d105 bne.n 8004db6 + 8004daa: 499b ldr r1, [pc, #620] ; (8005018 ) + 8004dac: 22fc movs r2, #252 ; 0xfc + 8004dae: 4648 mov r0, r9 + 8004db0: f004 fafa bl 80093a8 + 8004db4: 4b97 ldr r3, [pc, #604] ; (8005014 ) + 8004db6: 7d22 ldrb r2, [r4, #20] + 8004db8: 2a01 cmp r2, #1 + 8004dba: d105 bne.n 8004dc8 + 8004dbc: 4997 ldr r1, [pc, #604] ; (800501c ) + 8004dbe: 22fd movs r2, #253 ; 0xfd + 8004dc0: 4648 mov r0, r9 + 8004dc2: f004 faf1 bl 80093a8 + 8004dc6: 4b93 ldr r3, [pc, #588] ; (8005014 ) + 8004dc8: 7a20 ldrb r0, [r4, #8] + 8004dca: 68e1 ldr r1, [r4, #12] + 8004dcc: b130 cbz r0, 8004ddc + 8004dce: 687a ldr r2, [r7, #4] + 8004dd0: f892 2034 ldrb.w r2, [r2, #52] ; 0x34 + 8004dd4: 3201 adds r2, #1 + 8004dd6: b2d2 uxtb r2, r2 + 8004dd8: 4290 cmp r0, r2 + 8004dda: d173 bne.n 8004ec4 + 8004ddc: 6832 ldr r2, [r6, #0] + 8004dde: f8b4 c018 ldrh.w ip, [r4, #24] + 8004de2: 8810 ldrh r0, [r2, #0] + 8004de4: 4584 cmp ip, r0 + 8004de6: d16d bne.n 8004ec4 + 8004de8: 8ae0 ldrh r0, [r4, #22] + 8004dea: 8852 ldrh r2, [r2, #2] + 8004dec: 4290 cmp r0, r2 + 8004dee: d169 bne.n 8004ec4 + 8004df0: 6860 ldr r0, [r4, #4] + 8004df2: 693a ldr r2, [r7, #16] + 8004df4: 4290 cmp r0, r2 + 8004df6: d165 bne.n 8004ec4 + 8004df8: 6820 ldr r0, [r4, #0] + 8004dfa: 697a ldr r2, [r7, #20] + 8004dfc: 4290 cmp r0, r2 + 8004dfe: d161 bne.n 8004ec4 + 8004e00: 42a1 cmp r1, r4 + 8004e02: f040 8449 bne.w 8005698 + 8004e06: 4b83 ldr r3, [pc, #524] ; (8005014 ) + 8004e08: 4985 ldr r1, [pc, #532] ; (8005020 ) + 8004e0a: 4886 ldr r0, [pc, #536] ; (8005024 ) + 8004e0c: f240 120d movw r2, #269 ; 0x10d + 8004e10: f004 faca bl 80093a8 + 8004e14: f1ba 0f00 cmp.w sl, #0 + 8004e18: d007 beq.n 8004e2a + 8004e1a: 68e3 ldr r3, [r4, #12] + 8004e1c: f8ca 300c str.w r3, [sl, #12] + 8004e20: f8d8 3000 ldr.w r3, [r8] + 8004e24: 60e3 str r3, [r4, #12] + 8004e26: f8c8 4000 str.w r4, [r8] + 8004e2a: 68e3 ldr r3, [r4, #12] + 8004e2c: 42a3 cmp r3, r4 + 8004e2e: d106 bne.n 8004e3e + 8004e30: 4b78 ldr r3, [pc, #480] ; (8005014 ) + 8004e32: 497d ldr r1, [pc, #500] ; (8005028 ) + 8004e34: 487b ldr r0, [pc, #492] ; (8005024 ) + 8004e36: f240 1215 movw r2, #277 ; 0x115 + 8004e3a: f004 fab5 bl 80093a8 + 8004e3e: f8df 9210 ldr.w r9, [pc, #528] ; 8005050 + 8004e42: 892a ldrh r2, [r5, #8] + 8004e44: f8a9 2008 strh.w r2, [r9, #8] + 8004e48: 6832 ldr r2, [r6, #0] + 8004e4a: f8df a208 ldr.w sl, [pc, #520] ; 8005054 + 8004e4e: 4f77 ldr r7, [pc, #476] ; (800502c ) + 8004e50: f8c9 200c str.w r2, [r9, #12] + 8004e54: 4a76 ldr r2, [pc, #472] ; (8005030 ) + 8004e56: f8c9 5004 str.w r5, [r9, #4] + 8004e5a: 2300 movs r3, #0 + 8004e5c: f8c9 3000 str.w r3, [r9] + 8004e60: f8ca 3000 str.w r3, [sl] + 8004e64: 703b strb r3, [r7, #0] + 8004e66: 8013 strh r3, [r2, #0] + 8004e68: 4b72 ldr r3, [pc, #456] ; (8005034 ) + 8004e6a: 781b ldrb r3, [r3, #0] + 8004e6c: 071b lsls r3, r3, #28 + 8004e6e: d503 bpl.n 8004e78 + 8004e70: 7b6b ldrb r3, [r5, #13] + 8004e72: f043 0301 orr.w r3, r3, #1 + 8004e76: 736b strb r3, [r5, #13] + 8004e78: 6fa3 ldr r3, [r4, #120] ; 0x78 + 8004e7a: 4d6f ldr r5, [pc, #444] ; (8005038 ) + 8004e7c: 2b00 cmp r3, #0 + 8004e7e: f000 814c beq.w 800511a + 8004e82: 4620 mov r0, r4 + 8004e84: f7fe fe76 bl 8003b74 + 8004e88: 300d adds r0, #13 + 8004e8a: d008 beq.n 8004e9e + 8004e8c: 6fa3 ldr r3, [r4, #120] ; 0x78 + 8004e8e: 2b00 cmp r3, #0 + 8004e90: f000 8143 beq.w 800511a + 8004e94: 4b69 ldr r3, [pc, #420] ; (800503c ) + 8004e96: 881b ldrh r3, [r3, #0] + 8004e98: 2b00 cmp r3, #0 + 8004e9a: f000 813e beq.w 800511a + 8004e9e: 8d63 ldrh r3, [r4, #42] ; 0x2a + 8004ea0: b913 cbnz r3, 8004ea8 + 8004ea2: 4620 mov r0, r4 + 8004ea4: f000 ffd8 bl 8005e58 + 8004ea8: f8d9 0004 ldr.w r0, [r9, #4] + 8004eac: 2400 movs r4, #0 + 8004eae: 602c str r4, [r5, #0] + 8004eb0: f8ca 4000 str.w r4, [sl] + 8004eb4: b118 cbz r0, 8004ebe + 8004eb6: f7fd ff8d bl 8002dd4 + 8004eba: f8c9 4004 str.w r4, [r9, #4] + 8004ebe: b007 add sp, #28 + 8004ec0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8004ec4: 46a2 mov sl, r4 + 8004ec6: 460c mov r4, r1 + 8004ec8: e6ee b.n 8004ca8 + 8004eca: 7d23 ldrb r3, [r4, #20] + 8004ecc: 2b0a cmp r3, #10 + 8004ece: d006 beq.n 8004ede + 8004ed0: 4b50 ldr r3, [pc, #320] ; (8005014 ) + 8004ed2: f240 121f movw r2, #287 ; 0x11f + 8004ed6: 4651 mov r1, sl + 8004ed8: 4648 mov r0, r9 + 8004eda: f004 fa65 bl 80093a8 + 8004ede: 7a22 ldrb r2, [r4, #8] + 8004ee0: b132 cbz r2, 8004ef0 + 8004ee2: 687b ldr r3, [r7, #4] + 8004ee4: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8004ee8: 3301 adds r3, #1 + 8004eea: b2db uxtb r3, r3 + 8004eec: 429a cmp r2, r3 + 8004eee: d13e bne.n 8004f6e + 8004ef0: 6833 ldr r3, [r6, #0] + 8004ef2: 8b20 ldrh r0, [r4, #24] + 8004ef4: 881a ldrh r2, [r3, #0] + 8004ef6: 4290 cmp r0, r2 + 8004ef8: d139 bne.n 8004f6e + 8004efa: 885b ldrh r3, [r3, #2] + 8004efc: 8ae1 ldrh r1, [r4, #22] + 8004efe: 4299 cmp r1, r3 + 8004f00: d135 bne.n 8004f6e + 8004f02: 6862 ldr r2, [r4, #4] + 8004f04: 693b ldr r3, [r7, #16] + 8004f06: 429a cmp r2, r3 + 8004f08: d131 bne.n 8004f6e + 8004f0a: 6822 ldr r2, [r4, #0] + 8004f0c: 697b ldr r3, [r7, #20] + 8004f0e: 429a cmp r2, r3 + 8004f10: d12d bne.n 8004f6e + 8004f12: 4b48 ldr r3, [pc, #288] ; (8005034 ) + 8004f14: 781b ldrb r3, [r3, #0] + 8004f16: 075e lsls r6, r3, #29 + 8004f18: f53f af11 bmi.w 8004d3e + 8004f1c: 4a47 ldr r2, [pc, #284] ; (800503c ) + 8004f1e: 8816 ldrh r6, [r2, #0] + 8004f20: 079a lsls r2, r3, #30 + 8004f22: d514 bpl.n 8004f4e + 8004f24: 4b46 ldr r3, [pc, #280] ; (8005040 ) + 8004f26: 681a ldr r2, [r3, #0] + 8004f28: 6a63 ldr r3, [r4, #36] ; 0x24 + 8004f2a: 1ad3 subs r3, r2, r3 + 8004f2c: d414 bmi.n 8004f58 + 8004f2e: 8d27 ldrh r7, [r4, #40] ; 0x28 + 8004f30: 1bdb subs r3, r3, r7 + 8004f32: 2b00 cmp r3, #0 + 8004f34: dc10 bgt.n 8004f58 + 8004f36: 4b43 ldr r3, [pc, #268] ; (8005044 ) + 8004f38: 9300 str r3, [sp, #0] + 8004f3a: e9cd 1001 strd r1, r0, [sp, #4] + 8004f3e: f8db 1000 ldr.w r1, [fp] + 8004f42: 3304 adds r3, #4 + 8004f44: 4432 add r2, r6 + 8004f46: 4620 mov r0, r4 + 8004f48: f000 ff40 bl 8005dcc + 8004f4c: e6f7 b.n 8004d3e + 8004f4e: 07df lsls r7, r3, #31 + 8004f50: bf42 ittt mi + 8004f52: 4b3d ldrmi r3, [pc, #244] ; (8005048 ) + 8004f54: 681b ldrmi r3, [r3, #0] + 8004f56: 6223 strmi r3, [r4, #32] + 8004f58: 2e00 cmp r6, #0 + 8004f5a: f43f aef0 beq.w 8004d3e + 8004f5e: 8b63 ldrh r3, [r4, #26] + 8004f60: f043 0302 orr.w r3, r3, #2 + 8004f64: 8363 strh r3, [r4, #26] + 8004f66: 4620 mov r0, r4 + 8004f68: f000 ffa8 bl 8005ebc + 8004f6c: e6e7 b.n 8004d3e + 8004f6e: 68e4 ldr r4, [r4, #12] + 8004f70: 2c00 cmp r4, #0 + 8004f72: d1aa bne.n 8004eca + 8004f74: 4b35 ldr r3, [pc, #212] ; (800504c ) + 8004f76: f8d7 c004 ldr.w ip, [r7, #4] + 8004f7a: 681a ldr r2, [r3, #0] + 8004f7c: 6831 ldr r1, [r6, #0] + 8004f7e: f8d7 e014 ldr.w lr, [r7, #20] + 8004f82: 4691 mov r9, r2 + 8004f84: f1b9 0f00 cmp.w r9, #0 + 8004f88: d113 bne.n 8004fb2 + 8004f8a: 8988 ldrh r0, [r1, #12] + 8004f8c: f7fd f9d7 bl 800233e + 8004f90: 0742 lsls r2, r0, #29 + 8004f92: f53f aed4 bmi.w 8004d3e + 8004f96: 4a29 ldr r2, [pc, #164] ; (800503c ) + 8004f98: 6833 ldr r3, [r6, #0] + 8004f9a: 8811 ldrh r1, [r2, #0] + 8004f9c: 4a28 ldr r2, [pc, #160] ; (8005040 ) + 8004f9e: 8818 ldrh r0, [r3, #0] + 8004fa0: 6812 ldr r2, [r2, #0] + 8004fa2: 9002 str r0, [sp, #8] + 8004fa4: 885b ldrh r3, [r3, #2] + 8004fa6: 9301 str r3, [sp, #4] + 8004fa8: 4b26 ldr r3, [pc, #152] ; (8005044 ) + 8004faa: 9300 str r3, [sp, #0] + 8004fac: 440a add r2, r1 + 8004fae: 3304 adds r3, #4 + 8004fb0: e36e b.n 8005690 + 8004fb2: f899 0008 ldrb.w r0, [r9, #8] + 8004fb6: b128 cbz r0, 8004fc4 + 8004fb8: f89c 3034 ldrb.w r3, [ip, #52] ; 0x34 + 8004fbc: 3301 adds r3, #1 + 8004fbe: b2db uxtb r3, r3 + 8004fc0: 4298 cmp r0, r3 + 8004fc2: d10c bne.n 8004fde + 8004fc4: 8848 ldrh r0, [r1, #2] + 8004fc6: f8b9 3016 ldrh.w r3, [r9, #22] + 8004fca: 4283 cmp r3, r0 + 8004fcc: d107 bne.n 8004fde + 8004fce: f8d9 3000 ldr.w r3, [r9] + 8004fd2: 4573 cmp r3, lr + 8004fd4: f000 833f beq.w 8005656 + 8004fd8: 2b00 cmp r3, #0 + 8004fda: f000 833c beq.w 8005656 + 8004fde: 464c mov r4, r9 + 8004fe0: f8d9 900c ldr.w r9, [r9, #12] + 8004fe4: e7ce b.n 8004f84 + 8004fe6: 0798 lsls r0, r3, #30 + 8004fe8: f57f aea9 bpl.w 8004d3e + 8004fec: f899 0015 ldrb.w r0, [r9, #21] + 8004ff0: f7fe fc32 bl 8003858 + 8004ff4: 4682 mov sl, r0 + 8004ff6: bb78 cbnz r0, 8005058 + 8004ff8: f8d9 3018 ldr.w r3, [r9, #24] + 8004ffc: 2b00 cmp r3, #0 + 8004ffe: f43f ae9e beq.w 8004d3e + 8005002: 4601 mov r1, r0 + 8005004: f04f 32ff mov.w r2, #4294967295 + 8005008: f8d9 0010 ldr.w r0, [r9, #16] + 800500c: 4798 blx r3 + 800500e: e696 b.n 8004d3e + 8005010: 0800b3d3 .word 0x0800b3d3 + 8005014: 0800b18b .word 0x0800b18b + 8005018: 0800b3fa .word 0x0800b3fa + 800501c: 0800b424 .word 0x0800b424 + 8005020: 0800b44b .word 0x0800b44b + 8005024: 0800a54d .word 0x0800a54d + 8005028: 0800b476 .word 0x0800b476 + 800502c: 200082e0 .word 0x200082e0 + 8005030: 200082d8 .word 0x200082d8 + 8005034: 200082c4 .word 0x200082c4 + 8005038: 200082e8 .word 0x200082e8 + 800503c: 200082fe .word 0x200082fe + 8005040: 200082e4 .word 0x200082e4 + 8005044: 20004d2c .word 0x20004d2c + 8005048: 200082b4 .word 0x200082b4 + 800504c: 200082b0 .word 0x200082b0 + 8005050: 200082c8 .word 0x200082c8 + 8005054: 200082dc .word 0x200082dc + 8005058: 697b ldr r3, [r7, #20] + 800505a: 6832 ldr r2, [r6, #0] + 800505c: 6003 str r3, [r0, #0] + 800505e: 693b ldr r3, [r7, #16] + 8005060: 6043 str r3, [r0, #4] + 8005062: f8b9 3016 ldrh.w r3, [r9, #22] + 8005066: 82c3 strh r3, [r0, #22] + 8005068: 7813 ldrb r3, [r2, #0] + 800506a: 7852 ldrb r2, [r2, #1] + 800506c: 4fa6 ldr r7, [pc, #664] ; (8005308 ) + 800506e: ea43 2302 orr.w r3, r3, r2, lsl #8 + 8005072: 8303 strh r3, [r0, #24] + 8005074: 2303 movs r3, #3 + 8005076: 7503 strb r3, [r0, #20] + 8005078: 683b ldr r3, [r7, #0] + 800507a: 3301 adds r3, #1 + 800507c: 6243 str r3, [r0, #36] ; 0x24 + 800507e: 62c3 str r3, [r0, #44] ; 0x2c + 8005080: f7fe fa2a bl 80034d8 + 8005084: 683b ldr r3, [r7, #0] + 8005086: f8ca 0058 str.w r0, [sl, #88] ; 0x58 + 800508a: 3b01 subs r3, #1 + 800508c: f8ca 3054 str.w r3, [sl, #84] ; 0x54 + 8005090: f8d9 3010 ldr.w r3, [r9, #16] + 8005094: f8ca 0050 str.w r0, [sl, #80] ; 0x50 + 8005098: f8ca 0044 str.w r0, [sl, #68] ; 0x44 + 800509c: f8ca 005c str.w r0, [sl, #92] ; 0x5c + 80050a0: f8ca 3010 str.w r3, [sl, #16] + 80050a4: f8ca 907c str.w r9, [sl, #124] ; 0x7c + 80050a8: f899 3009 ldrb.w r3, [r9, #9] + 80050ac: f003 030c and.w r3, r3, #12 + 80050b0: f88a 3009 strb.w r3, [sl, #9] + 80050b4: f899 3008 ldrb.w r3, [r9, #8] + 80050b8: f88a 3008 strb.w r3, [sl, #8] + 80050bc: f8d8 3000 ldr.w r3, [r8] + 80050c0: f8ca 300c str.w r3, [sl, #12] + 80050c4: f8c8 a000 str.w sl, [r8] + 80050c8: f001 f9ce bl 8006468 + 80050cc: 4b8f ldr r3, [pc, #572] ; (800530c ) + 80050ce: 2201 movs r2, #1 + 80050d0: 4650 mov r0, sl + 80050d2: 701a strb r2, [r3, #0] + 80050d4: f7ff f868 bl 80041a8 + 80050d8: 6833 ldr r3, [r6, #0] + 80050da: f8ba 6032 ldrh.w r6, [sl, #50] ; 0x32 + 80050de: 89db ldrh r3, [r3, #14] + 80050e0: f8aa 3060 strh.w r3, [sl, #96] ; 0x60 + 80050e4: f10a 0204 add.w r2, sl, #4 + 80050e8: f8aa 3062 strh.w r3, [sl, #98] ; 0x62 + 80050ec: 4610 mov r0, r2 + 80050ee: 9205 str r2, [sp, #20] + 80050f0: f003 fa68 bl 80085c4 + 80050f4: 9a05 ldr r2, [sp, #20] + 80050f6: 4601 mov r1, r0 + 80050f8: 4630 mov r0, r6 + 80050fa: f7fe fa07 bl 800350c + 80050fe: 2112 movs r1, #18 + 8005100: f8aa 0032 strh.w r0, [sl, #50] ; 0x32 + 8005104: 4650 mov r0, sl + 8005106: f000 fce3 bl 8005ad0 + 800510a: b120 cbz r0, 8005116 + 800510c: 4621 mov r1, r4 + 800510e: 4650 mov r0, sl + 8005110: f7fe fabc bl 800368c + 8005114: e613 b.n 8004d3e + 8005116: 4650 mov r0, sl + 8005118: e726 b.n 8004f68 + 800511a: 4b7d ldr r3, [pc, #500] ; (8005310 ) + 800511c: 602c str r4, [r5, #0] + 800511e: 781a ldrb r2, [r3, #0] + 8005120: 0751 lsls r1, r2, #29 + 8005122: d539 bpl.n 8005198 + 8005124: 7d21 ldrb r1, [r4, #20] + 8005126: 2902 cmp r1, #2 + 8005128: d11f bne.n 800516a + 800512a: 6d22 ldr r2, [r4, #80] ; 0x50 + 800512c: f8db 3000 ldr.w r3, [fp] + 8005130: 429a cmp r2, r3 + 8005132: d107 bne.n 8005144 + 8005134: 783b ldrb r3, [r7, #0] + 8005136: f043 0308 orr.w r3, r3, #8 + 800513a: 703b strb r3, [r7, #0] + 800513c: 8b63 ldrh r3, [r4, #26] + 800513e: f023 0301 bic.w r3, r3, #1 + 8005142: 8363 strh r3, [r4, #26] + 8005144: 783b ldrb r3, [r7, #0] + 8005146: 0718 lsls r0, r3, #28 + 8005148: f140 8207 bpl.w 800555a + 800514c: f8d4 3090 ldr.w r3, [r4, #144] ; 0x90 + 8005150: b11b cbz r3, 800515a + 8005152: 6920 ldr r0, [r4, #16] + 8005154: f06f 010d mvn.w r1, #13 + 8005158: 4798 blx r3 + 800515a: 486e ldr r0, [pc, #440] ; (8005314 ) + 800515c: 4621 mov r1, r4 + 800515e: f7fe fa2f bl 80035c0 + 8005162: 4620 mov r0, r4 + 8005164: f7fe f8f2 bl 800334c + 8005168: e69e b.n 8004ea8 + 800516a: 4b67 ldr r3, [pc, #412] ; (8005308 ) + 800516c: 6a62 ldr r2, [r4, #36] ; 0x24 + 800516e: 681b ldr r3, [r3, #0] + 8005170: 429a cmp r2, r3 + 8005172: d007 beq.n 8005184 + 8005174: 1a9b subs r3, r3, r2 + 8005176: d4e5 bmi.n 8005144 + 8005178: 8d22 ldrh r2, [r4, #40] ; 0x28 + 800517a: 1a9b subs r3, r3, r2 + 800517c: 2b00 cmp r3, #0 + 800517e: dce1 bgt.n 8005144 + 8005180: 8b63 ldrh r3, [r4, #26] + 8005182: e010 b.n 80051a6 + 8005184: 2900 cmp r1, #0 + 8005186: d1d5 bne.n 8005134 + 8005188: 4b63 ldr r3, [pc, #396] ; (8005318 ) + 800518a: 4964 ldr r1, [pc, #400] ; (800531c ) + 800518c: 4864 ldr r0, [pc, #400] ; (8005320 ) + 800518e: f44f 724e mov.w r2, #824 ; 0x338 + 8005192: f004 f909 bl 80093a8 + 8005196: e7cd b.n 8005134 + 8005198: 0792 lsls r2, r2, #30 + 800519a: 8b63 ldrh r3, [r4, #26] + 800519c: d506 bpl.n 80051ac + 800519e: 7d22 ldrb r2, [r4, #20] + 80051a0: 3a02 subs r2, #2 + 80051a2: 2a01 cmp r2, #1 + 80051a4: d902 bls.n 80051ac + 80051a6: f043 0302 orr.w r3, r3, #2 + 80051aa: e7ca b.n 8005142 + 80051ac: 06d8 lsls r0, r3, #27 + 80051ae: bf5e ittt pl + 80051b0: 4b5c ldrpl r3, [pc, #368] ; (8005324 ) + 80051b2: 681b ldrpl r3, [r3, #0] + 80051b4: 6223 strpl r3, [r4, #32] + 80051b6: 2300 movs r3, #0 + 80051b8: f8a4 309a strh.w r3, [r4, #154] ; 0x9a + 80051bc: 4620 mov r0, r4 + 80051be: f7fe fff3 bl 80041a8 + 80051c2: 7d23 ldrb r3, [r4, #20] + 80051c4: 3b02 subs r3, #2 + 80051c6: 2b07 cmp r3, #7 + 80051c8: d8bc bhi.n 8005144 + 80051ca: e8df f013 tbh [pc, r3, lsl #1] + 80051ce: 0008 .short 0x0008 + 80051d0: 012700b5 .word 0x012700b5 + 80051d4: 0176012b .word 0x0176012b + 80051d8: 018f0127 .word 0x018f0127 + 80051dc: 01af .short 0x01af + 80051de: 4b4c ldr r3, [pc, #304] ; (8005310 ) + 80051e0: 781b ldrb r3, [r3, #0] + 80051e2: f003 0212 and.w r2, r3, #18 + 80051e6: 2a12 cmp r2, #18 + 80051e8: d16d bne.n 80052c6 + 80051ea: 6c62 ldr r2, [r4, #68] ; 0x44 + 80051ec: f8db 1000 ldr.w r1, [fp] + 80051f0: 3201 adds r2, #1 + 80051f2: 428a cmp r2, r1 + 80051f4: d167 bne.n 80052c6 + 80051f6: 4b44 ldr r3, [pc, #272] ; (8005308 ) + 80051f8: 6462 str r2, [r4, #68] ; 0x44 + 80051fa: 681b ldr r3, [r3, #0] + 80051fc: 6832 ldr r2, [r6, #0] + 80051fe: 8e66 ldrh r6, [r4, #50] ; 0x32 + 8005200: 1c59 adds r1, r3, #1 + 8005202: 6261 str r1, [r4, #36] ; 0x24 + 8005204: 62e1 str r1, [r4, #44] ; 0x2c + 8005206: 3b01 subs r3, #1 + 8005208: 89d2 ldrh r2, [r2, #14] + 800520a: 6563 str r3, [r4, #84] ; 0x54 + 800520c: 2304 movs r3, #4 + 800520e: f8a4 2060 strh.w r2, [r4, #96] ; 0x60 + 8005212: f8a4 2062 strh.w r2, [r4, #98] ; 0x62 + 8005216: 18e2 adds r2, r4, r3 + 8005218: 7523 strb r3, [r4, #20] + 800521a: 4610 mov r0, r2 + 800521c: 9205 str r2, [sp, #20] + 800521e: f003 f9d1 bl 80085c4 + 8005222: 9a05 ldr r2, [sp, #20] + 8005224: 4601 mov r1, r0 + 8005226: 4630 mov r0, r6 + 8005228: f7fe f970 bl 800350c + 800522c: f241 131c movw r3, #4380 ; 0x111c + 8005230: 0042 lsls r2, r0, #1 + 8005232: 429a cmp r2, r3 + 8005234: 4616 mov r6, r2 + 8005236: bf38 it cc + 8005238: 461e movcc r6, r3 + 800523a: ebb6 0f80 cmp.w r6, r0, lsl #2 + 800523e: 8660 strh r0, [r4, #50] ; 0x32 + 8005240: ea4f 0180 mov.w r1, r0, lsl #2 + 8005244: d933 bls.n 80052ae + 8005246: b28b uxth r3, r1 + 8005248: f8a4 3048 strh.w r3, [r4, #72] ; 0x48 + 800524c: f8b4 3066 ldrh.w r3, [r4, #102] ; 0x66 + 8005250: b933 cbnz r3, 8005260 + 8005252: 4b31 ldr r3, [pc, #196] ; (8005318 ) + 8005254: 4934 ldr r1, [pc, #208] ; (8005328 ) + 8005256: 4832 ldr r0, [pc, #200] ; (8005320 ) + 8005258: f44f 725b mov.w r2, #876 ; 0x36c + 800525c: f004 f8a4 bl 80093a8 + 8005260: f8b4 3066 ldrh.w r3, [r4, #102] ; 0x66 + 8005264: 6f26 ldr r6, [r4, #112] ; 0x70 + 8005266: 3b01 subs r3, #1 + 8005268: f8a4 3066 strh.w r3, [r4, #102] ; 0x66 + 800526c: bb1e cbnz r6, 80052b6 + 800526e: 6ee6 ldr r6, [r4, #108] ; 0x6c + 8005270: b936 cbnz r6, 8005280 + 8005272: 4b29 ldr r3, [pc, #164] ; (8005318 ) + 8005274: 492d ldr r1, [pc, #180] ; (800532c ) + 8005276: 482a ldr r0, [pc, #168] ; (8005320 ) + 8005278: f44f 725d mov.w r2, #884 ; 0x374 + 800527c: f004 f894 bl 80093a8 + 8005280: 6833 ldr r3, [r6, #0] + 8005282: 66e3 str r3, [r4, #108] ; 0x6c + 8005284: 4630 mov r0, r6 + 8005286: f7fe f8ed bl 8003464 + 800528a: 6f23 ldr r3, [r4, #112] ; 0x70 + 800528c: b9b3 cbnz r3, 80052bc + 800528e: f64f 73ff movw r3, #65535 ; 0xffff + 8005292: 8623 strh r3, [r4, #48] ; 0x30 + 8005294: f8d4 3088 ldr.w r3, [r4, #136] ; 0x88 + 8005298: 2b00 cmp r3, #0 + 800529a: f43f af71 beq.w 8005180 + 800529e: 6920 ldr r0, [r4, #16] + 80052a0: 2200 movs r2, #0 + 80052a2: 4621 mov r1, r4 + 80052a4: 4798 blx r3 + 80052a6: 300d adds r0, #13 + 80052a8: f47f af6a bne.w 8005180 + 80052ac: e5fc b.n 8004ea8 + 80052ae: 429a cmp r2, r3 + 80052b0: bf88 it hi + 80052b2: b293 uxthhi r3, r2 + 80052b4: e7c8 b.n 8005248 + 80052b6: 6833 ldr r3, [r6, #0] + 80052b8: 6723 str r3, [r4, #112] ; 0x70 + 80052ba: e7e3 b.n 8005284 + 80052bc: 2300 movs r3, #0 + 80052be: 8623 strh r3, [r4, #48] ; 0x30 + 80052c0: f884 3042 strb.w r3, [r4, #66] ; 0x42 + 80052c4: e7e6 b.n 8005294 + 80052c6: 06d9 lsls r1, r3, #27 + 80052c8: f57f af3c bpl.w 8005144 + 80052cc: 4a18 ldr r2, [pc, #96] ; (8005330 ) + 80052ce: 6833 ldr r3, [r6, #0] + 80052d0: 8811 ldrh r1, [r2, #0] + 80052d2: 4a0d ldr r2, [pc, #52] ; (8005308 ) + 80052d4: 8818 ldrh r0, [r3, #0] + 80052d6: 6812 ldr r2, [r2, #0] + 80052d8: 9002 str r0, [sp, #8] + 80052da: 885b ldrh r3, [r3, #2] + 80052dc: 9301 str r3, [sp, #4] + 80052de: 4b15 ldr r3, [pc, #84] ; (8005334 ) + 80052e0: 9300 str r3, [sp, #0] + 80052e2: 440a add r2, r1 + 80052e4: 3304 adds r3, #4 + 80052e6: f8db 1000 ldr.w r1, [fp] + 80052ea: 4620 mov r0, r4 + 80052ec: f000 fd6e bl 8005dcc + 80052f0: f894 3042 ldrb.w r3, [r4, #66] ; 0x42 + 80052f4: 2b05 cmp r3, #5 + 80052f6: f63f af25 bhi.w 8005144 + 80052fa: 2300 movs r3, #0 + 80052fc: 8623 strh r3, [r4, #48] ; 0x30 + 80052fe: 4620 mov r0, r4 + 8005300: f000 ffa2 bl 8006248 + 8005304: e71e b.n 8005144 + 8005306: bf00 nop + 8005308: 200082e4 .word 0x200082e4 + 800530c: 200082a8 .word 0x200082a8 + 8005310: 200082c4 .word 0x200082c4 + 8005314: 200082a4 .word 0x200082a4 + 8005318: 0800b18b .word 0x0800b18b + 800531c: 0800b4cd .word 0x0800b4cd + 8005320: 0800a54d .word 0x0800a54d + 8005324: 200082b4 .word 0x200082b4 + 8005328: 0800b4ed .word 0x0800b4ed + 800532c: 0800b503 .word 0x0800b503 + 8005330: 200082fe .word 0x200082fe + 8005334: 20004d2c .word 0x20004d2c + 8005338: 4b9e ldr r3, [pc, #632] ; (80055b4 ) + 800533a: 781b ldrb r3, [r3, #0] + 800533c: 06da lsls r2, r3, #27 + 800533e: d55f bpl.n 8005400 + 8005340: 6c63 ldr r3, [r4, #68] ; 0x44 + 8005342: f8db 1000 ldr.w r1, [fp] + 8005346: 43db mvns r3, r3 + 8005348: 42cb cmn r3, r1 + 800534a: d448 bmi.n 80053de + 800534c: 6d23 ldr r3, [r4, #80] ; 0x50 + 800534e: 1acb subs r3, r1, r3 + 8005350: 2b00 cmp r3, #0 + 8005352: dc44 bgt.n 80053de + 8005354: 2304 movs r3, #4 + 8005356: 7523 strb r3, [r4, #20] + 8005358: 6fe3 ldr r3, [r4, #124] ; 0x7c + 800535a: b91b cbnz r3, 8005364 + 800535c: 4620 mov r0, r4 + 800535e: f7fe fa17 bl 8003790 + 8005362: e5a1 b.n 8004ea8 + 8005364: 699b ldr r3, [r3, #24] + 8005366: b933 cbnz r3, 8005376 + 8005368: 4b93 ldr r3, [pc, #588] ; (80055b8 ) + 800536a: 4994 ldr r1, [pc, #592] ; (80055bc ) + 800536c: 4894 ldr r0, [pc, #592] ; (80055c0 ) + 800536e: f44f 726a mov.w r2, #936 ; 0x3a8 + 8005372: f004 f819 bl 80093a8 + 8005376: 6fe3 ldr r3, [r4, #124] ; 0x7c + 8005378: 699b ldr r3, [r3, #24] + 800537a: 2b00 cmp r3, #0 + 800537c: d0ee beq.n 800535c + 800537e: 6920 ldr r0, [r4, #16] + 8005380: 2200 movs r2, #0 + 8005382: 4621 mov r1, r4 + 8005384: 4798 blx r3 + 8005386: b118 cbz r0, 8005390 + 8005388: 300d adds r0, #13 + 800538a: f43f ad8d beq.w 8004ea8 + 800538e: e7e5 b.n 800535c + 8005390: 4620 mov r0, r4 + 8005392: f7fe ffdf bl 8004354 + 8005396: 4a8b ldr r2, [pc, #556] ; (80055c4 ) + 8005398: 8813 ldrh r3, [r2, #0] + 800539a: b10b cbz r3, 80053a0 + 800539c: 3b01 subs r3, #1 + 800539e: 8013 strh r3, [r2, #0] + 80053a0: 8e61 ldrh r1, [r4, #50] ; 0x32 + 80053a2: f241 131c movw r3, #4380 ; 0x111c + 80053a6: 004a lsls r2, r1, #1 + 80053a8: 429a cmp r2, r3 + 80053aa: 4616 mov r6, r2 + 80053ac: bf38 it cc + 80053ae: 461e movcc r6, r3 + 80053b0: ebb6 0f81 cmp.w r6, r1, lsl #2 + 80053b4: ea4f 0081 mov.w r0, r1, lsl #2 + 80053b8: d90d bls.n 80053d6 + 80053ba: b283 uxth r3, r0 + 80053bc: f8a4 3048 strh.w r3, [r4, #72] ; 0x48 + 80053c0: 783b ldrb r3, [r7, #0] + 80053c2: 0698 lsls r0, r3, #26 + 80053c4: f57f aebe bpl.w 8005144 + 80053c8: 8b63 ldrh r3, [r4, #26] + 80053ca: f043 0302 orr.w r3, r3, #2 + 80053ce: 8363 strh r3, [r4, #26] + 80053d0: 2307 movs r3, #7 + 80053d2: 7523 strb r3, [r4, #20] + 80053d4: e6b6 b.n 8005144 + 80053d6: 429a cmp r2, r3 + 80053d8: bf88 it hi + 80053da: b293 uxthhi r3, r2 + 80053dc: e7ee b.n 80053bc + 80053de: 4a7a ldr r2, [pc, #488] ; (80055c8 ) + 80053e0: 6833 ldr r3, [r6, #0] + 80053e2: 8810 ldrh r0, [r2, #0] + 80053e4: 4a79 ldr r2, [pc, #484] ; (80055cc ) + 80053e6: 881e ldrh r6, [r3, #0] + 80053e8: 6812 ldr r2, [r2, #0] + 80053ea: 9602 str r6, [sp, #8] + 80053ec: 885b ldrh r3, [r3, #2] + 80053ee: 9301 str r3, [sp, #4] + 80053f0: 4b77 ldr r3, [pc, #476] ; (80055d0 ) + 80053f2: 9300 str r3, [sp, #0] + 80053f4: 4402 add r2, r0 + 80053f6: 3304 adds r3, #4 + 80053f8: 4620 mov r0, r4 + 80053fa: f000 fce7 bl 8005dcc + 80053fe: e6a1 b.n 8005144 + 8005400: 079e lsls r6, r3, #30 + 8005402: f57f ae9f bpl.w 8005144 + 8005406: 4a71 ldr r2, [pc, #452] ; (80055cc ) + 8005408: 6a63 ldr r3, [r4, #36] ; 0x24 + 800540a: 6812 ldr r2, [r2, #0] + 800540c: 3b01 subs r3, #1 + 800540e: 4293 cmp r3, r2 + 8005410: f47f ae98 bne.w 8005144 + 8005414: 4620 mov r0, r4 + 8005416: f000 fc63 bl 8005ce0 + 800541a: e693 b.n 8005144 + 800541c: 4620 mov r0, r4 + 800541e: f7fe ff99 bl 8004354 + 8005422: e7cd b.n 80053c0 + 8005424: 4620 mov r0, r4 + 8005426: f7fe ff95 bl 8004354 + 800542a: 783b ldrb r3, [r7, #0] + 800542c: f013 0f20 tst.w r3, #32 + 8005430: 4b60 ldr r3, [pc, #384] ; (80055b4 ) + 8005432: 781b ldrb r3, [r3, #0] + 8005434: d032 beq.n 800549c + 8005436: f013 0f10 tst.w r3, #16 + 800543a: 8b63 ldrh r3, [r4, #26] + 800543c: d029 beq.n 8005492 + 800543e: 6d21 ldr r1, [r4, #80] ; 0x50 + 8005440: f8db 2000 ldr.w r2, [fp] + 8005444: 4291 cmp r1, r2 + 8005446: d124 bne.n 8005492 + 8005448: 6ee2 ldr r2, [r4, #108] ; 0x6c + 800544a: bb12 cbnz r2, 8005492 + 800544c: f043 0302 orr.w r3, r3, #2 + 8005450: 8363 strh r3, [r4, #26] + 8005452: 4620 mov r0, r4 + 8005454: f7fe f882 bl 800355c + 8005458: f8d8 3000 ldr.w r3, [r8] + 800545c: 429c cmp r4, r3 + 800545e: d10a bne.n 8005476 + 8005460: 68e3 ldr r3, [r4, #12] + 8005462: f8c8 3000 str.w r3, [r8] + 8005466: e008 b.n 800547a + 8005468: 68da ldr r2, [r3, #12] + 800546a: 4294 cmp r4, r2 + 800546c: d102 bne.n 8005474 + 800546e: 68e2 ldr r2, [r4, #12] + 8005470: 60da str r2, [r3, #12] + 8005472: e002 b.n 800547a + 8005474: 4613 mov r3, r2 + 8005476: 2b00 cmp r3, #0 + 8005478: d1f6 bne.n 8005468 + 800547a: 4b56 ldr r3, [pc, #344] ; (80055d4 ) + 800547c: 2201 movs r2, #1 + 800547e: 701a strb r2, [r3, #0] + 8005480: 230a movs r3, #10 + 8005482: 7523 strb r3, [r4, #20] + 8005484: 4b54 ldr r3, [pc, #336] ; (80055d8 ) + 8005486: 681a ldr r2, [r3, #0] + 8005488: 60e2 str r2, [r4, #12] + 800548a: 601c str r4, [r3, #0] + 800548c: f000 ffec bl 8006468 + 8005490: e658 b.n 8005144 + 8005492: f043 0302 orr.w r3, r3, #2 + 8005496: 8363 strh r3, [r4, #26] + 8005498: 2308 movs r3, #8 + 800549a: e79a b.n 80053d2 + 800549c: 06d9 lsls r1, r3, #27 + 800549e: f57f ae51 bpl.w 8005144 + 80054a2: 6d22 ldr r2, [r4, #80] ; 0x50 + 80054a4: f8db 3000 ldr.w r3, [fp] + 80054a8: 429a cmp r2, r3 + 80054aa: f47f ae4b bne.w 8005144 + 80054ae: 6ee3 ldr r3, [r4, #108] ; 0x6c + 80054b0: 2b00 cmp r3, #0 + 80054b2: f47f ae47 bne.w 8005144 + 80054b6: 2306 movs r3, #6 + 80054b8: e78b b.n 80053d2 + 80054ba: 4620 mov r0, r4 + 80054bc: f7fe ff4a bl 8004354 + 80054c0: 783b ldrb r3, [r7, #0] + 80054c2: 069a lsls r2, r3, #26 + 80054c4: f57f ae3e bpl.w 8005144 + 80054c8: 8b63 ldrh r3, [r4, #26] + 80054ca: f043 0302 orr.w r3, r3, #2 + 80054ce: 8363 strh r3, [r4, #26] + 80054d0: 4620 mov r0, r4 + 80054d2: f7fe f843 bl 800355c + 80054d6: f8d8 3000 ldr.w r3, [r8] + 80054da: 429c cmp r4, r3 + 80054dc: d0c0 beq.n 8005460 + 80054de: 2b00 cmp r3, #0 + 80054e0: d0cb beq.n 800547a + 80054e2: 68da ldr r2, [r3, #12] + 80054e4: 4294 cmp r4, r2 + 80054e6: d0c2 beq.n 800546e + 80054e8: 4613 mov r3, r2 + 80054ea: e7f8 b.n 80054de + 80054ec: 4620 mov r0, r4 + 80054ee: f7fe ff31 bl 8004354 + 80054f2: 4b30 ldr r3, [pc, #192] ; (80055b4 ) + 80054f4: 781b ldrb r3, [r3, #0] + 80054f6: 06db lsls r3, r3, #27 + 80054f8: f57f ae24 bpl.w 8005144 + 80054fc: 6d22 ldr r2, [r4, #80] ; 0x50 + 80054fe: f8db 3000 ldr.w r3, [fp] + 8005502: 429a cmp r2, r3 + 8005504: f47f ae1e bne.w 8005144 + 8005508: 6ee3 ldr r3, [r4, #108] ; 0x6c + 800550a: 2b00 cmp r3, #0 + 800550c: f47f ae1a bne.w 8005144 + 8005510: 4620 mov r0, r4 + 8005512: f7fe f823 bl 800355c + 8005516: f8d8 3000 ldr.w r3, [r8] + 800551a: 429c cmp r4, r3 + 800551c: d0a0 beq.n 8005460 + 800551e: 2b00 cmp r3, #0 + 8005520: d0ab beq.n 800547a + 8005522: 68da ldr r2, [r3, #12] + 8005524: 4294 cmp r4, r2 + 8005526: d0a2 beq.n 800546e + 8005528: 4613 mov r3, r2 + 800552a: e7f8 b.n 800551e + 800552c: 4620 mov r0, r4 + 800552e: f7fe ff11 bl 8004354 + 8005532: 4b20 ldr r3, [pc, #128] ; (80055b4 ) + 8005534: 781b ldrb r3, [r3, #0] + 8005536: 06de lsls r6, r3, #27 + 8005538: f57f ae04 bpl.w 8005144 + 800553c: 6d22 ldr r2, [r4, #80] ; 0x50 + 800553e: f8db 3000 ldr.w r3, [fp] + 8005542: 429a cmp r2, r3 + 8005544: f47f adfe bne.w 8005144 + 8005548: 6ee3 ldr r3, [r4, #108] ; 0x6c + 800554a: 2b00 cmp r3, #0 + 800554c: f47f adfa bne.w 8005144 + 8005550: 783b ldrb r3, [r7, #0] + 8005552: f043 0310 orr.w r3, r3, #16 + 8005556: 703b strb r3, [r7, #0] + 8005558: e5f4 b.n 8005144 + 800555a: 4b1a ldr r3, [pc, #104] ; (80055c4 ) + 800555c: 881a ldrh r2, [r3, #0] + 800555e: b12a cbz r2, 800556c + 8005560: f8d4 3080 ldr.w r3, [r4, #128] ; 0x80 + 8005564: b9fb cbnz r3, 80055a6 + 8005566: 4a17 ldr r2, [pc, #92] ; (80055c4 ) + 8005568: 2300 movs r3, #0 + 800556a: 8013 strh r3, [r2, #0] + 800556c: 4620 mov r0, r4 + 800556e: f7fe fe63 bl 8004238 + 8005572: 2800 cmp r0, #0 + 8005574: f47f ac98 bne.w 8004ea8 + 8005578: f8da 3000 ldr.w r3, [sl] + 800557c: 2b00 cmp r3, #0 + 800557e: d03d beq.n 80055fc + 8005580: 6fa3 ldr r3, [r4, #120] ; 0x78 + 8005582: b133 cbz r3, 8005592 + 8005584: 4b0c ldr r3, [pc, #48] ; (80055b8 ) + 8005586: 4915 ldr r1, [pc, #84] ; (80055dc ) + 8005588: 480d ldr r0, [pc, #52] ; (80055c0 ) + 800558a: f44f 72f3 mov.w r2, #486 ; 0x1e6 + 800558e: f003 ff0b bl 80093a8 + 8005592: 8b63 ldrh r3, [r4, #26] + 8005594: f8da 2000 ldr.w r2, [sl] + 8005598: f013 0310 ands.w r3, r3, #16 + 800559c: d020 beq.n 80055e0 + 800559e: 4610 mov r0, r2 + 80055a0: f7fd fc18 bl 8002dd4 + 80055a4: e6da b.n 800535c + 80055a6: 6920 ldr r0, [r4, #16] + 80055a8: 4621 mov r1, r4 + 80055aa: 4798 blx r3 + 80055ac: 300d adds r0, #13 + 80055ae: d1da bne.n 8005566 + 80055b0: e47a b.n 8004ea8 + 80055b2: bf00 nop + 80055b4: 200082c4 .word 0x200082c4 + 80055b8: 0800b18b .word 0x0800b18b + 80055bc: 0800b516 .word 0x0800b516 + 80055c0: 0800a54d .word 0x0800a54d + 80055c4: 200082d8 .word 0x200082d8 + 80055c8: 200082fe .word 0x200082fe + 80055cc: 200082e4 .word 0x200082e4 + 80055d0: 20004d2c .word 0x20004d2c + 80055d4: 200082a8 .word 0x200082a8 + 80055d8: 200082bc .word 0x200082bc + 80055dc: 0800b534 .word 0x0800b534 + 80055e0: f8d4 6084 ldr.w r6, [r4, #132] ; 0x84 + 80055e4: b1fe cbz r6, 8005626 + 80055e6: 6920 ldr r0, [r4, #16] + 80055e8: 4621 mov r1, r4 + 80055ea: 47b0 blx r6 + 80055ec: f110 0f0d cmn.w r0, #13 + 80055f0: f43f ac5a beq.w 8004ea8 + 80055f4: b110 cbz r0, 80055fc + 80055f6: f8da 3000 ldr.w r3, [sl] + 80055fa: 67a3 str r3, [r4, #120] ; 0x78 + 80055fc: 783b ldrb r3, [r7, #0] + 80055fe: 0699 lsls r1, r3, #26 + 8005600: d505 bpl.n 800560e + 8005602: 6fa3 ldr r3, [r4, #120] ; 0x78 + 8005604: b1ab cbz r3, 8005632 + 8005606: 7b5a ldrb r2, [r3, #13] + 8005608: f042 0220 orr.w r2, r2, #32 + 800560c: 735a strb r2, [r3, #13] + 800560e: 2300 movs r3, #0 + 8005610: 4620 mov r0, r4 + 8005612: 602b str r3, [r5, #0] + 8005614: f7fe fe10 bl 8004238 + 8005618: 2800 cmp r0, #0 + 800561a: f47f ac45 bne.w 8004ea8 + 800561e: 4620 mov r0, r4 + 8005620: f000 fc4c bl 8005ebc + 8005624: e440 b.n 8004ea8 + 8005626: 4633 mov r3, r6 + 8005628: 4621 mov r1, r4 + 800562a: 4630 mov r0, r6 + 800562c: f7fe fa7e bl 8003b2c + 8005630: e7dc b.n 80055ec + 8005632: 8d23 ldrh r3, [r4, #40] ; 0x28 + 8005634: f8d4 6084 ldr.w r6, [r4, #132] ; 0x84 + 8005638: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 800563c: bf1c itt ne + 800563e: 3301 addne r3, #1 + 8005640: 8523 strhne r3, [r4, #40] ; 0x28 + 8005642: 2e00 cmp r6, #0 + 8005644: d0e3 beq.n 800560e + 8005646: 2300 movs r3, #0 + 8005648: 6920 ldr r0, [r4, #16] + 800564a: 461a mov r2, r3 + 800564c: 4621 mov r1, r4 + 800564e: 47b0 blx r6 + 8005650: 300d adds r0, #13 + 8005652: d1dc bne.n 800560e + 8005654: e428 b.n 8004ea8 + 8005656: b13c cbz r4, 8005668 + 8005658: f8d9 300c ldr.w r3, [r9, #12] + 800565c: 60e3 str r3, [r4, #12] + 800565e: 4b11 ldr r3, [pc, #68] ; (80056a4 ) + 8005660: f8c9 200c str.w r2, [r9, #12] + 8005664: f8c3 9000 str.w r9, [r3] + 8005668: 4b0f ldr r3, [pc, #60] ; (80056a8 ) + 800566a: 781b ldrb r3, [r3, #0] + 800566c: 075c lsls r4, r3, #29 + 800566e: f53f ab66 bmi.w 8004d3e + 8005672: f013 0410 ands.w r4, r3, #16 + 8005676: f43f acb6 beq.w 8004fe6 + 800567a: 4b0c ldr r3, [pc, #48] ; (80056ac ) + 800567c: 881c ldrh r4, [r3, #0] + 800567e: 4b0c ldr r3, [pc, #48] ; (80056b0 ) + 8005680: 681a ldr r2, [r3, #0] + 8005682: 880b ldrh r3, [r1, #0] + 8005684: e9cd 0301 strd r0, r3, [sp, #4] + 8005688: 4b0a ldr r3, [pc, #40] ; (80056b4 ) + 800568a: 9300 str r3, [sp, #0] + 800568c: 4422 add r2, r4 + 800568e: 3304 adds r3, #4 + 8005690: f8db 1000 ldr.w r1, [fp] + 8005694: 4648 mov r0, r9 + 8005696: e457 b.n 8004f48 + 8005698: f1ba 0f00 cmp.w sl, #0 + 800569c: f47f abbd bne.w 8004e1a + 80056a0: f7ff bbcd b.w 8004e3e + 80056a4: 200082b0 .word 0x200082b0 + 80056a8: 200082c4 .word 0x200082c4 + 80056ac: 200082fe .word 0x200082fe + 80056b0: 200082e4 .word 0x200082e4 + 80056b4: 20004d2c .word 0x20004d2c + +080056b8 : + 80056b8: 4a02 ldr r2, [pc, #8] ; (80056c4 ) + 80056ba: 7813 ldrb r3, [r2, #0] + 80056bc: f043 0310 orr.w r3, r3, #16 + 80056c0: 7013 strb r3, [r2, #0] + 80056c2: 4770 bx lr + 80056c4: 200082e0 .word 0x200082e0 + +080056c8 : + 80056c8: b510 push {r4, lr} + 80056ca: 4604 mov r4, r0 + 80056cc: b930 cbnz r0, 80056dc + 80056ce: 4b06 ldr r3, [pc, #24] ; (80056e8 ) + 80056d0: 4906 ldr r1, [pc, #24] ; (80056ec ) + 80056d2: 4807 ldr r0, [pc, #28] ; (80056f0 ) + 80056d4: f240 529a movw r2, #1434 ; 0x59a + 80056d8: f003 fe66 bl 80093a8 + 80056dc: 6863 ldr r3, [r4, #4] + 80056de: 7b98 ldrb r0, [r3, #14] + 80056e0: 3801 subs r0, #1 + 80056e2: bf18 it ne + 80056e4: 2001 movne r0, #1 + 80056e6: bd10 pop {r4, pc} + 80056e8: 0800b54e .word 0x0800b54e + 80056ec: 0800b581 .word 0x0800b581 + 80056f0: 0800a54d .word 0x0800a54d + +080056f4 : + 80056f4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 80056f8: 460e mov r6, r1 + 80056fa: f89d a020 ldrb.w sl, [sp, #32] + 80056fe: 4690 mov r8, r2 + 8005700: 4699 mov r9, r3 + 8005702: 4607 mov r7, r0 + 8005704: b928 cbnz r0, 8005712 + 8005706: 4b2f ldr r3, [pc, #188] ; (80057c4 ) + 8005708: 492f ldr r1, [pc, #188] ; (80057c8 ) + 800570a: 4830 ldr r0, [pc, #192] ; (80057cc ) + 800570c: 22a3 movs r2, #163 ; 0xa3 + 800570e: f003 fe4b bl 80093a8 + 8005712: b92e cbnz r6, 8005720 + 8005714: 4b2b ldr r3, [pc, #172] ; (80057c4 ) + 8005716: 492e ldr r1, [pc, #184] ; (80057d0 ) + 8005718: 482c ldr r0, [pc, #176] ; (80057cc ) + 800571a: 22a4 movs r2, #164 ; 0xa4 + 800571c: f003 fe44 bl 80093a8 + 8005720: 2003 movs r0, #3 + 8005722: f7fd f8af bl 8002884 + 8005726: ea4f 058a mov.w r5, sl, lsl #2 + 800572a: f005 0504 and.w r5, r5, #4 + 800572e: 4604 mov r4, r0 + 8005730: b928 cbnz r0, 800573e + 8005732: 4630 mov r0, r6 + 8005734: f7fd fb4e bl 8002dd4 + 8005738: 4620 mov r0, r4 + 800573a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800573e: f880 a00a strb.w sl, [r0, #10] + 8005742: 2300 movs r3, #0 + 8005744: e9c0 3600 strd r3, r6, [r0] + 8005748: 8933 ldrh r3, [r6, #8] + 800574a: 42ab cmp r3, r5 + 800574c: fa1f fa85 uxth.w sl, r5 + 8005750: d205 bcs.n 800575e + 8005752: 4b1c ldr r3, [pc, #112] ; (80057c4 ) + 8005754: 491f ldr r1, [pc, #124] ; (80057d4 ) + 8005756: 481d ldr r0, [pc, #116] ; (80057cc ) + 8005758: 22b0 movs r2, #176 ; 0xb0 + 800575a: f003 fe25 bl 80093a8 + 800575e: 8933 ldrh r3, [r6, #8] + 8005760: eba3 030a sub.w r3, r3, sl + 8005764: 4630 mov r0, r6 + 8005766: 8123 strh r3, [r4, #8] + 8005768: 2114 movs r1, #20 + 800576a: f7fd fafb bl 8002d64 + 800576e: 4606 mov r6, r0 + 8005770: b120 cbz r0, 800577c + 8005772: 4620 mov r0, r4 + 8005774: f7fd fe76 bl 8003464 + 8005778: 2400 movs r4, #0 + 800577a: e7dd b.n 8005738 + 800577c: 6863 ldr r3, [r4, #4] + 800577e: 8af8 ldrh r0, [r7, #22] + 8005780: f8d3 a004 ldr.w sl, [r3, #4] + 8005784: f8c4 a00c str.w sl, [r4, #12] + 8005788: f7fc fdd9 bl 800233e + 800578c: f8aa 0000 strh.w r0, [sl] + 8005790: 8b38 ldrh r0, [r7, #24] + 8005792: f8d4 a00c ldr.w sl, [r4, #12] + 8005796: f7fc fdd2 bl 800233e + 800579a: f8aa 0002 strh.w r0, [sl, #2] + 800579e: 4648 mov r0, r9 + 80057a0: 68e7 ldr r7, [r4, #12] + 80057a2: f7fc fdcf bl 8002344 + 80057a6: 02ad lsls r5, r5, #10 + 80057a8: f505 45a0 add.w r5, r5, #20480 ; 0x5000 + 80057ac: 6078 str r0, [r7, #4] + 80057ae: ea45 0008 orr.w r0, r5, r8 + 80057b2: 68e7 ldr r7, [r4, #12] + 80057b4: f7fc fdc3 bl 800233e + 80057b8: 68e3 ldr r3, [r4, #12] + 80057ba: 81b8 strh r0, [r7, #12] + 80057bc: 749e strb r6, [r3, #18] + 80057be: 74de strb r6, [r3, #19] + 80057c0: e7ba b.n 8005738 + 80057c2: bf00 nop + 80057c4: 0800b54e .word 0x0800b54e + 80057c8: 0800b5a6 .word 0x0800b5a6 + 80057cc: 0800a54d .word 0x0800a54d + 80057d0: 0800b5c6 .word 0x0800b5c6 + 80057d4: 0800b5e7 .word 0x0800b5e7 + +080057d8 : + 80057d8: 3114 adds r1, #20 + 80057da: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 80057de: b289 uxth r1, r1 + 80057e0: 4606 mov r6, r0 + 80057e2: 4617 mov r7, r2 + 80057e4: 2022 movs r0, #34 ; 0x22 + 80057e6: f44f 7220 mov.w r2, #640 ; 0x280 + 80057ea: 4698 mov r8, r3 + 80057ec: f7fd fb56 bl 8002e9c + 80057f0: 4605 mov r5, r0 + 80057f2: b348 cbz r0, 8005848 + 80057f4: 8943 ldrh r3, [r0, #10] + 80057f6: 2b13 cmp r3, #19 + 80057f8: d806 bhi.n 8005808 + 80057fa: 4b15 ldr r3, [pc, #84] ; (8005850 ) + 80057fc: 4915 ldr r1, [pc, #84] ; (8005854 ) + 80057fe: 4816 ldr r0, [pc, #88] ; (8005858 ) + 8005800: f240 7223 movw r2, #1827 ; 0x723 + 8005804: f003 fdd0 bl 80093a8 + 8005808: 4640 mov r0, r8 + 800580a: 686c ldr r4, [r5, #4] + 800580c: f7fc fd97 bl 800233e + 8005810: 8020 strh r0, [r4, #0] + 8005812: f8bd 0018 ldrh.w r0, [sp, #24] + 8005816: f7fc fd92 bl 800233e + 800581a: 6067 str r7, [r4, #4] + 800581c: 8060 strh r0, [r4, #2] + 800581e: 4630 mov r0, r6 + 8005820: f7fc fd90 bl 8002344 + 8005824: 60a0 str r0, [r4, #8] + 8005826: f89d 001c ldrb.w r0, [sp, #28] + 800582a: f440 40a0 orr.w r0, r0, #20480 ; 0x5000 + 800582e: f7fc fd86 bl 800233e + 8005832: 81a0 strh r0, [r4, #12] + 8005834: f8bd 0020 ldrh.w r0, [sp, #32] + 8005838: f7fc fd81 bl 800233e + 800583c: 2300 movs r3, #0 + 800583e: 81e0 strh r0, [r4, #14] + 8005840: 7423 strb r3, [r4, #16] + 8005842: 7463 strb r3, [r4, #17] + 8005844: 74a3 strb r3, [r4, #18] + 8005846: 74e3 strb r3, [r4, #19] + 8005848: 4628 mov r0, r5 + 800584a: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800584e: bf00 nop + 8005850: 0800b54e .word 0x0800b54e + 8005854: 0800b5fc .word 0x0800b5fc + 8005858: 0800a54d .word 0x0800a54d + +0800585c : + 800585c: b57f push {r0, r1, r2, r3, r4, r5, r6, lr} + 800585e: 460d mov r5, r1 + 8005860: 4616 mov r6, r2 + 8005862: 4604 mov r4, r0 + 8005864: b930 cbnz r0, 8005874 + 8005866: 4b0d ldr r3, [pc, #52] ; (800589c ) + 8005868: 490d ldr r1, [pc, #52] ; (80058a0 ) + 800586a: 480e ldr r0, [pc, #56] ; (80058a4 ) + 800586c: f240 7242 movw r2, #1858 ; 0x742 + 8005870: f003 fd9a bl 80093a8 + 8005874: 8d63 ldrh r3, [r4, #42] ; 0x2a + 8005876: 9302 str r3, [sp, #8] + 8005878: 2310 movs r3, #16 + 800587a: 9301 str r3, [sp, #4] + 800587c: 8b23 ldrh r3, [r4, #24] + 800587e: 9300 str r3, [sp, #0] + 8005880: 8ae3 ldrh r3, [r4, #22] + 8005882: 6a60 ldr r0, [r4, #36] ; 0x24 + 8005884: 4632 mov r2, r6 + 8005886: 4629 mov r1, r5 + 8005888: f7ff ffa6 bl 80057d8 + 800588c: b118 cbz r0, 8005896 + 800588e: 8d62 ldrh r2, [r4, #42] ; 0x2a + 8005890: 6a63 ldr r3, [r4, #36] ; 0x24 + 8005892: 4413 add r3, r2 + 8005894: 62e3 str r3, [r4, #44] ; 0x2c + 8005896: b004 add sp, #16 + 8005898: bd70 pop {r4, r5, r6, pc} + 800589a: bf00 nop + 800589c: 0800b54e .word 0x0800b54e + 80058a0: 0800b62a .word 0x0800b62a + 80058a4: 0800a54d .word 0x0800a54d + +080058a8 : + 80058a8: b930 cbnz r0, 80058b8 + 80058aa: 4b04 ldr r3, [pc, #16] ; (80058bc ) + 80058ac: 4904 ldr r1, [pc, #16] ; (80058c0 ) + 80058ae: 4805 ldr r0, [pc, #20] ; (80058c4 ) + 80058b0: f240 7256 movw r2, #1878 ; 0x756 + 80058b4: f003 bd78 b.w 80093a8 + 80058b8: 4770 bx lr + 80058ba: bf00 nop + 80058bc: 0800b54e .word 0x0800b54e + 80058c0: 0800b64f .word 0x0800b64f + 80058c4: 0800a54d .word 0x0800a54d + +080058c8 : + 80058c8: b5f0 push {r4, r5, r6, r7, lr} + 80058ca: 4604 mov r4, r0 + 80058cc: b085 sub sp, #20 + 80058ce: 4617 mov r7, r2 + 80058d0: 461e mov r6, r3 + 80058d2: 460d mov r5, r1 + 80058d4: b931 cbnz r1, 80058e4 + 80058d6: 4b15 ldr r3, [pc, #84] ; (800592c ) + 80058d8: 4915 ldr r1, [pc, #84] ; (8005930 ) + 80058da: 4816 ldr r0, [pc, #88] ; (8005934 ) + 80058dc: f240 7287 movw r2, #1927 ; 0x787 + 80058e0: f003 fd62 bl 80093a8 + 80058e4: b164 cbz r4, 8005900 + 80058e6: 7a20 ldrb r0, [r4, #8] + 80058e8: b150 cbz r0, 8005900 + 80058ea: f7fd f9a7 bl 8002c3c + 80058ee: b968 cbnz r0, 800590c + 80058f0: f06f 0403 mvn.w r4, #3 + 80058f4: 4628 mov r0, r5 + 80058f6: f7fd fa6d bl 8002dd4 + 80058fa: 4620 mov r0, r4 + 80058fc: b005 add sp, #20 + 80058fe: bdf0 pop {r4, r5, r6, r7, pc} + 8005900: 4630 mov r0, r6 + 8005902: f002 fe5f bl 80085c4 + 8005906: 2800 cmp r0, #0 + 8005908: d0f2 beq.n 80058f0 + 800590a: b164 cbz r4, 8005926 + 800590c: 7ae3 ldrb r3, [r4, #11] + 800590e: 7aa4 ldrb r4, [r4, #10] + 8005910: 9002 str r0, [sp, #8] + 8005912: 2206 movs r2, #6 + 8005914: e9cd 4200 strd r4, r2, [sp] + 8005918: 4639 mov r1, r7 + 800591a: 4632 mov r2, r6 + 800591c: 4628 mov r0, r5 + 800591e: f002 ffbf bl 80088a0 + 8005922: 4604 mov r4, r0 + 8005924: e7e6 b.n 80058f4 + 8005926: 23ff movs r3, #255 ; 0xff + 8005928: e7f2 b.n 8005910 + 800592a: bf00 nop + 800592c: 0800b54e .word 0x0800b54e + 8005930: 0800b675 .word 0x0800b675 + 8005934: 0800a54d .word 0x0800a54d + +08005938 : + 8005938: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800593c: 460d mov r5, r1 + 800593e: 4606 mov r6, r0 + 8005940: b930 cbnz r0, 8005950 + 8005942: 4b5d ldr r3, [pc, #372] ; (8005ab8 ) + 8005944: 495d ldr r1, [pc, #372] ; (8005abc ) + 8005946: 485e ldr r0, [pc, #376] ; (8005ac0 ) + 8005948: f240 324b movw r2, #843 ; 0x34b + 800594c: f003 fd2c bl 80093a8 + 8005950: 6ef4 ldr r4, [r6, #108] ; 0x6c + 8005952: b914 cbnz r4, 800595a + 8005954: f04f 30ff mov.w r0, #4294967295 + 8005958: e009 b.n 800596e + 800595a: b95d cbnz r5, 8005974 + 800595c: 4b56 ldr r3, [pc, #344] ; (8005ab8 ) + 800595e: 4959 ldr r1, [pc, #356] ; (8005ac4 ) + 8005960: 4857 ldr r0, [pc, #348] ; (8005ac0 ) + 8005962: f240 3253 movw r2, #851 ; 0x353 + 8005966: f003 fd1f bl 80093a8 + 800596a: f06f 0005 mvn.w r0, #5 + 800596e: b003 add sp, #12 + 8005970: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8005974: 8923 ldrh r3, [r4, #8] + 8005976: 42ab cmp r3, r5 + 8005978: d801 bhi.n 800597e + 800597a: 2000 movs r0, #0 + 800597c: e7f7 b.n 800596e + 800597e: 8e73 ldrh r3, [r6, #50] ; 0x32 + 8005980: 42ab cmp r3, r5 + 8005982: d20f bcs.n 80059a4 + 8005984: 4b4c ldr r3, [pc, #304] ; (8005ab8 ) + 8005986: 4950 ldr r1, [pc, #320] ; (8005ac8 ) + 8005988: 484d ldr r0, [pc, #308] ; (8005ac0 ) + 800598a: f240 325b movw r2, #859 ; 0x35b + 800598e: f003 fd0b bl 80093a8 + 8005992: 8923 ldrh r3, [r4, #8] + 8005994: b933 cbnz r3, 80059a4 + 8005996: 4b48 ldr r3, [pc, #288] ; (8005ab8 ) + 8005998: 494c ldr r1, [pc, #304] ; (8005acc ) + 800599a: 4849 ldr r0, [pc, #292] ; (8005ac0 ) + 800599c: f44f 7257 mov.w r2, #860 ; 0x35c + 80059a0: f003 fd02 bl 80093a8 + 80059a4: f894 b00a ldrb.w fp, [r4, #10] + 80059a8: f8b4 a008 ldrh.w sl, [r4, #8] + 80059ac: ea4f 078b mov.w r7, fp, lsl #2 + 80059b0: ebaa 0105 sub.w r1, sl, r5 + 80059b4: f007 0704 and.w r7, r7, #4 + 80059b8: fa1f f881 uxth.w r8, r1 + 80059bc: fa17 f181 uxtah r1, r7, r1 + 80059c0: f44f 7220 mov.w r2, #640 ; 0x280 + 80059c4: b289 uxth r1, r1 + 80059c6: 2036 movs r0, #54 ; 0x36 + 80059c8: f7fd fa68 bl 8002e9c + 80059cc: 4681 mov r9, r0 + 80059ce: 2800 cmp r0, #0 + 80059d0: d0c0 beq.n 8005954 + 80059d2: 6860 ldr r0, [r4, #4] + 80059d4: 8922 ldrh r2, [r4, #8] + 80059d6: 8903 ldrh r3, [r0, #8] + 80059d8: f8d9 1004 ldr.w r1, [r9, #4] + 80059dc: 1a9b subs r3, r3, r2 + 80059de: 442b add r3, r5 + 80059e0: b29b uxth r3, r3 + 80059e2: 4642 mov r2, r8 + 80059e4: 4439 add r1, r7 + 80059e6: f7fd fc13 bl 8003210 + 80059ea: 4540 cmp r0, r8 + 80059ec: d15f bne.n 8005aae + 80059ee: 68e3 ldr r3, [r4, #12] + 80059f0: 8998 ldrh r0, [r3, #12] + 80059f2: f7fc fca4 bl 800233e + 80059f6: f010 0808 ands.w r8, r0, #8 + 80059fa: b2c7 uxtb r7, r0 + 80059fc: bf0e itee eq + 80059fe: f007 073f andeq.w r7, r7, #63 ; 0x3f + 8005a02: f007 0737 andne.w r7, r7, #55 ; 0x37 + 8005a06: f04f 0808 movne.w r8, #8 + 8005a0a: 07fb lsls r3, r7, #31 + 8005a0c: 68e3 ldr r3, [r4, #12] + 8005a0e: 6858 ldr r0, [r3, #4] + 8005a10: bf44 itt mi + 8005a12: f048 0801 orrmi.w r8, r8, #1 + 8005a16: f007 07fe andmi.w r7, r7, #254 ; 0xfe + 8005a1a: f7fc fc93 bl 8002344 + 8005a1e: 4642 mov r2, r8 + 8005a20: 182b adds r3, r5, r0 + 8005a22: f8cd b000 str.w fp, [sp] + 8005a26: 4649 mov r1, r9 + 8005a28: 4630 mov r0, r6 + 8005a2a: f7ff fe63 bl 80056f4 + 8005a2e: 4680 mov r8, r0 + 8005a30: 2800 cmp r0, #0 + 8005a32: d03c beq.n 8005aae + 8005a34: 6860 ldr r0, [r4, #4] + 8005a36: f7fd fb09 bl 800304c + 8005a3a: f8b6 3066 ldrh.w r3, [r6, #102] ; 0x66 + 8005a3e: 1a18 subs r0, r3, r0 + 8005a40: f8a6 0066 strh.w r0, [r6, #102] ; 0x66 + 8005a44: 6860 ldr r0, [r4, #4] + 8005a46: 8901 ldrh r1, [r0, #8] + 8005a48: eba5 050a sub.w r5, r5, sl + 8005a4c: fa11 f185 uxtah r1, r1, r5 + 8005a50: b289 uxth r1, r1 + 8005a52: f7fd faa3 bl 8002f9c + 8005a56: 8923 ldrh r3, [r4, #8] + 8005a58: fa1f f985 uxth.w r9, r5 + 8005a5c: 4499 add r9, r3 + 8005a5e: 68e3 ldr r3, [r4, #12] + 8005a60: f8a4 9008 strh.w r9, [r4, #8] + 8005a64: 4638 mov r0, r7 + 8005a66: 899d ldrh r5, [r3, #12] + 8005a68: f7fc fc69 bl 800233e + 8005a6c: 68e3 ldr r3, [r4, #12] + 8005a6e: 4328 orrs r0, r5 + 8005a70: 8198 strh r0, [r3, #12] + 8005a72: 6860 ldr r0, [r4, #4] + 8005a74: f7fd faea bl 800304c + 8005a78: f8b6 3066 ldrh.w r3, [r6, #102] ; 0x66 + 8005a7c: 4418 add r0, r3 + 8005a7e: f8a6 0066 strh.w r0, [r6, #102] ; 0x66 + 8005a82: f8d8 0004 ldr.w r0, [r8, #4] + 8005a86: f7fd fae1 bl 800304c + 8005a8a: f8b6 3066 ldrh.w r3, [r6, #102] ; 0x66 + 8005a8e: 4418 add r0, r3 + 8005a90: 6823 ldr r3, [r4, #0] + 8005a92: f8a6 0066 strh.w r0, [r6, #102] ; 0x66 + 8005a96: f8c8 3000 str.w r3, [r8] + 8005a9a: f8c4 8000 str.w r8, [r4] + 8005a9e: f8d8 0000 ldr.w r0, [r8] + 8005aa2: 2800 cmp r0, #0 + 8005aa4: f47f af69 bne.w 800597a + 8005aa8: f8a6 0068 strh.w r0, [r6, #104] ; 0x68 + 8005aac: e75f b.n 800596e + 8005aae: 4648 mov r0, r9 + 8005ab0: f7fd f990 bl 8002dd4 + 8005ab4: e74e b.n 8005954 + 8005ab6: bf00 nop + 8005ab8: 0800b54e .word 0x0800b54e + 8005abc: 0800b69e .word 0x0800b69e + 8005ac0: 0800a54d .word 0x0800a54d + 8005ac4: 0800b6c0 .word 0x0800b6c0 + 8005ac8: 0800b6e2 .word 0x0800b6e2 + 8005acc: 0800b6ef .word 0x0800b6ef + +08005ad0 : + 8005ad0: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr} + 8005ad4: f011 0803 ands.w r8, r1, #3 + 8005ad8: 4604 mov r4, r0 + 8005ada: 460e mov r6, r1 + 8005adc: d106 bne.n 8005aec + 8005ade: 4b3e ldr r3, [pc, #248] ; (8005bd8 ) + 8005ae0: 493e ldr r1, [pc, #248] ; (8005bdc ) + 8005ae2: 483f ldr r0, [pc, #252] ; (8005be0 ) + 8005ae4: f240 4211 movw r2, #1041 ; 0x411 + 8005ae8: f003 fc5e bl 80093a8 + 8005aec: b934 cbnz r4, 8005afc + 8005aee: 4b3a ldr r3, [pc, #232] ; (8005bd8 ) + 8005af0: 493c ldr r1, [pc, #240] ; (8005be4 ) + 8005af2: 483b ldr r0, [pc, #236] ; (8005be0 ) + 8005af4: f240 4213 movw r2, #1043 ; 0x413 + 8005af8: f003 fc56 bl 80093a8 + 8005afc: f3c6 0740 ubfx r7, r6, #1, #1 + 8005b00: ea4f 0987 mov.w r9, r7, lsl #2 + 8005b04: f44f 7220 mov.w r2, #640 ; 0x280 + 8005b08: 4649 mov r1, r9 + 8005b0a: 2036 movs r0, #54 ; 0x36 + 8005b0c: f7fd f9c6 bl 8002e9c + 8005b10: 4605 mov r5, r0 + 8005b12: b940 cbnz r0, 8005b26 + 8005b14: 8b63 ldrh r3, [r4, #26] + 8005b16: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8005b1a: 8363 strh r3, [r4, #26] + 8005b1c: f04f 30ff mov.w r0, #4294967295 + 8005b20: b003 add sp, #12 + 8005b22: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} + 8005b26: 8943 ldrh r3, [r0, #10] + 8005b28: 454b cmp r3, r9 + 8005b2a: d206 bcs.n 8005b3a + 8005b2c: 4b2a ldr r3, [pc, #168] ; (8005bd8 ) + 8005b2e: 492e ldr r1, [pc, #184] ; (8005be8 ) + 8005b30: 482b ldr r0, [pc, #172] ; (8005be0 ) + 8005b32: f240 4239 movw r2, #1081 ; 0x439 + 8005b36: f003 fc37 bl 80093a8 + 8005b3a: 9700 str r7, [sp, #0] + 8005b3c: 4629 mov r1, r5 + 8005b3e: 6de3 ldr r3, [r4, #92] ; 0x5c + 8005b40: 4632 mov r2, r6 + 8005b42: 4620 mov r0, r4 + 8005b44: f7ff fdd6 bl 80056f4 + 8005b48: 4605 mov r5, r0 + 8005b4a: 2800 cmp r0, #0 + 8005b4c: d0e2 beq.n 8005b14 + 8005b4e: 68c3 ldr r3, [r0, #12] + 8005b50: 079a lsls r2, r3, #30 + 8005b52: d006 beq.n 8005b62 + 8005b54: 4b20 ldr r3, [pc, #128] ; (8005bd8 ) + 8005b56: 4925 ldr r1, [pc, #148] ; (8005bec ) + 8005b58: 4821 ldr r0, [pc, #132] ; (8005be0 ) + 8005b5a: f240 4242 movw r2, #1090 ; 0x442 + 8005b5e: f003 fc23 bl 80093a8 + 8005b62: 892b ldrh r3, [r5, #8] + 8005b64: b133 cbz r3, 8005b74 + 8005b66: 4b1c ldr r3, [pc, #112] ; (8005bd8 ) + 8005b68: 4921 ldr r1, [pc, #132] ; (8005bf0 ) + 8005b6a: 481d ldr r0, [pc, #116] ; (8005be0 ) + 8005b6c: f240 4243 movw r2, #1091 ; 0x443 + 8005b70: f003 fc1a bl 80093a8 + 8005b74: 6ee3 ldr r3, [r4, #108] ; 0x6c + 8005b76: bb4b cbnz r3, 8005bcc + 8005b78: 66e5 str r5, [r4, #108] ; 0x6c + 8005b7a: 2300 movs r3, #0 + 8005b7c: f8a4 3068 strh.w r3, [r4, #104] ; 0x68 + 8005b80: f1b8 0f00 cmp.w r8, #0 + 8005b84: d002 beq.n 8005b8c + 8005b86: 6de3 ldr r3, [r4, #92] ; 0x5c + 8005b88: 3301 adds r3, #1 + 8005b8a: 65e3 str r3, [r4, #92] ; 0x5c + 8005b8c: 07f3 lsls r3, r6, #31 + 8005b8e: bf48 it mi + 8005b90: 8b63 ldrhmi r3, [r4, #26] + 8005b92: 6868 ldr r0, [r5, #4] + 8005b94: bf44 itt mi + 8005b96: f043 0320 orrmi.w r3, r3, #32 + 8005b9a: 8363 strhmi r3, [r4, #26] + 8005b9c: f7fd fa56 bl 800304c + 8005ba0: f8b4 3066 ldrh.w r3, [r4, #102] ; 0x66 + 8005ba4: 4418 add r0, r3 + 8005ba6: b280 uxth r0, r0 + 8005ba8: f8a4 0066 strh.w r0, [r4, #102] ; 0x66 + 8005bac: 2800 cmp r0, #0 + 8005bae: d0b7 beq.n 8005b20 + 8005bb0: 6f20 ldr r0, [r4, #112] ; 0x70 + 8005bb2: b948 cbnz r0, 8005bc8 + 8005bb4: 6ee4 ldr r4, [r4, #108] ; 0x6c + 8005bb6: 2c00 cmp r4, #0 + 8005bb8: d1b2 bne.n 8005b20 + 8005bba: 4b07 ldr r3, [pc, #28] ; (8005bd8 ) + 8005bbc: 490d ldr r1, [pc, #52] ; (8005bf4 ) + 8005bbe: 4808 ldr r0, [pc, #32] ; (8005be0 ) + 8005bc0: f240 4265 movw r2, #1125 ; 0x465 + 8005bc4: f003 fbf0 bl 80093a8 + 8005bc8: 2000 movs r0, #0 + 8005bca: e7a9 b.n 8005b20 + 8005bcc: 461a mov r2, r3 + 8005bce: 681b ldr r3, [r3, #0] + 8005bd0: 2b00 cmp r3, #0 + 8005bd2: d1fb bne.n 8005bcc + 8005bd4: 6015 str r5, [r2, #0] + 8005bd6: e7d0 b.n 8005b7a + 8005bd8: 0800b54e .word 0x0800b54e + 8005bdc: 0800b6fd .word 0x0800b6fd + 8005be0: 0800a54d .word 0x0800a54d + 8005be4: 0800b752 .word 0x0800b752 + 8005be8: 0800b771 .word 0x0800b771 + 8005bec: 0800b7aa .word 0x0800b7aa + 8005bf0: 0800b7c2 .word 0x0800b7c2 + 8005bf4: 0800b7ec .word 0x0800b7ec + +08005bf8 : + 8005bf8: b5f8 push {r3, r4, r5, r6, r7, lr} + 8005bfa: 4604 mov r4, r0 + 8005bfc: b930 cbnz r0, 8005c0c + 8005bfe: 4b13 ldr r3, [pc, #76] ; (8005c4c ) + 8005c00: 4913 ldr r1, [pc, #76] ; (8005c50 ) + 8005c02: 4814 ldr r0, [pc, #80] ; (8005c54 ) + 8005c04: f240 32eb movw r2, #1003 ; 0x3eb + 8005c08: f003 fbce bl 80093a8 + 8005c0c: 6ee5 ldr r5, [r4, #108] ; 0x6c + 8005c0e: b14d cbz r5, 8005c24 + 8005c10: 462f mov r7, r5 + 8005c12: 682d ldr r5, [r5, #0] + 8005c14: 2d00 cmp r5, #0 + 8005c16: d1fb bne.n 8005c10 + 8005c18: 68fb ldr r3, [r7, #12] + 8005c1a: 8998 ldrh r0, [r3, #12] + 8005c1c: f7fc fb8f bl 800233e + 8005c20: 0743 lsls r3, r0, #29 + 8005c22: d005 beq.n 8005c30 + 8005c24: 4620 mov r0, r4 + 8005c26: 2101 movs r1, #1 + 8005c28: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} + 8005c2c: f7ff bf50 b.w 8005ad0 + 8005c30: 68fb ldr r3, [r7, #12] + 8005c32: 2001 movs r0, #1 + 8005c34: 899e ldrh r6, [r3, #12] + 8005c36: f7fc fb82 bl 800233e + 8005c3a: 68fb ldr r3, [r7, #12] + 8005c3c: 4330 orrs r0, r6 + 8005c3e: 8198 strh r0, [r3, #12] + 8005c40: 8b63 ldrh r3, [r4, #26] + 8005c42: f043 0320 orr.w r3, r3, #32 + 8005c46: 8363 strh r3, [r4, #26] + 8005c48: 4628 mov r0, r5 + 8005c4a: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8005c4c: 0800b54e .word 0x0800b54e + 8005c50: 0800b814 .word 0x0800b814 + 8005c54: 0800a54d .word 0x0800a54d + +08005c58 : + 8005c58: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8005c5c: 4604 mov r4, r0 + 8005c5e: b930 cbnz r0, 8005c6e + 8005c60: 4b1c ldr r3, [pc, #112] ; (8005cd4 ) + 8005c62: 491d ldr r1, [pc, #116] ; (8005cd8 ) + 8005c64: 481d ldr r0, [pc, #116] ; (8005cdc ) + 8005c66: f240 6263 movw r2, #1635 ; 0x663 + 8005c6a: f003 fb9d bl 80093a8 + 8005c6e: 6f25 ldr r5, [r4, #112] ; 0x70 + 8005c70: b945 cbnz r5, 8005c84 + 8005c72: f06f 0005 mvn.w r0, #5 + 8005c76: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8005c7a: f7ff fd25 bl 80056c8 + 8005c7e: 2800 cmp r0, #0 + 8005c80: d1f7 bne.n 8005c72 + 8005c82: 682d ldr r5, [r5, #0] + 8005c84: 682b ldr r3, [r5, #0] + 8005c86: 4628 mov r0, r5 + 8005c88: 2b00 cmp r3, #0 + 8005c8a: d1f6 bne.n 8005c7a + 8005c8c: f7ff fd1c bl 80056c8 + 8005c90: 4606 mov r6, r0 + 8005c92: 2800 cmp r0, #0 + 8005c94: d1ed bne.n 8005c72 + 8005c96: 6ee3 ldr r3, [r4, #108] ; 0x6c + 8005c98: 602b str r3, [r5, #0] + 8005c9a: 6f23 ldr r3, [r4, #112] ; 0x70 + 8005c9c: e9c4 301b strd r3, r0, [r4, #108] ; 0x6c + 8005ca0: 8b63 ldrh r3, [r4, #26] + 8005ca2: f443 6300 orr.w r3, r3, #2048 ; 0x800 + 8005ca6: 8363 strh r3, [r4, #26] + 8005ca8: 68eb ldr r3, [r5, #12] + 8005caa: 6858 ldr r0, [r3, #4] + 8005cac: f7fc fb4a bl 8002344 + 8005cb0: 68eb ldr r3, [r5, #12] + 8005cb2: f8b5 8008 ldrh.w r8, [r5, #8] + 8005cb6: 4607 mov r7, r0 + 8005cb8: 8998 ldrh r0, [r3, #12] + 8005cba: f7fc fb40 bl 800233e + 8005cbe: f010 0303 ands.w r3, r0, #3 + 8005cc2: bf18 it ne + 8005cc4: 2301 movne r3, #1 + 8005cc6: 4447 add r7, r8 + 8005cc8: 443b add r3, r7 + 8005cca: 64e3 str r3, [r4, #76] ; 0x4c + 8005ccc: 6366 str r6, [r4, #52] ; 0x34 + 8005cce: 4630 mov r0, r6 + 8005cd0: e7d1 b.n 8005c76 + 8005cd2: bf00 nop + 8005cd4: 0800b54e .word 0x0800b54e + 8005cd8: 0800b82e .word 0x0800b82e + 8005cdc: 0800a54d .word 0x0800a54d + +08005ce0 : + 8005ce0: b5f8 push {r3, r4, r5, r6, r7, lr} + 8005ce2: 4604 mov r4, r0 + 8005ce4: b930 cbnz r0, 8005cf4 + 8005ce6: 4b1c ldr r3, [pc, #112] ; (8005d58 ) + 8005ce8: 491c ldr r1, [pc, #112] ; (8005d5c ) + 8005cea: 481d ldr r0, [pc, #116] ; (8005d60 ) + 8005cec: f240 62c1 movw r2, #1729 ; 0x6c1 + 8005cf0: f003 fb5a bl 80093a8 + 8005cf4: 6f25 ldr r5, [r4, #112] ; 0x70 + 8005cf6: b915 cbnz r5, 8005cfe + 8005cf8: f06f 0005 mvn.w r0, #5 + 8005cfc: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8005cfe: 4628 mov r0, r5 + 8005d00: f7ff fce2 bl 80056c8 + 8005d04: 2800 cmp r0, #0 + 8005d06: d1f7 bne.n 8005cf8 + 8005d08: 682b ldr r3, [r5, #0] + 8005d0a: 6723 str r3, [r4, #112] ; 0x70 + 8005d0c: f104 066c add.w r6, r4, #108 ; 0x6c + 8005d10: 6833 ldr r3, [r6, #0] + 8005d12: b993 cbnz r3, 8005d3a + 8005d14: 6833 ldr r3, [r6, #0] + 8005d16: 602b str r3, [r5, #0] + 8005d18: 6035 str r5, [r6, #0] + 8005d1a: 682b ldr r3, [r5, #0] + 8005d1c: b90b cbnz r3, 8005d22 + 8005d1e: f8a4 3068 strh.w r3, [r4, #104] ; 0x68 + 8005d22: f894 3042 ldrb.w r3, [r4, #66] ; 0x42 + 8005d26: 2bff cmp r3, #255 ; 0xff + 8005d28: bf18 it ne + 8005d2a: 3301 addne r3, #1 + 8005d2c: f04f 0000 mov.w r0, #0 + 8005d30: bf18 it ne + 8005d32: f884 3042 strbne.w r3, [r4, #66] ; 0x42 + 8005d36: 6360 str r0, [r4, #52] ; 0x34 + 8005d38: e7e0 b.n 8005cfc + 8005d3a: 68db ldr r3, [r3, #12] + 8005d3c: 6858 ldr r0, [r3, #4] + 8005d3e: f7fc fb01 bl 8002344 + 8005d42: 68eb ldr r3, [r5, #12] + 8005d44: 4607 mov r7, r0 + 8005d46: 6858 ldr r0, [r3, #4] + 8005d48: f7fc fafc bl 8002344 + 8005d4c: 1a38 subs r0, r7, r0 + 8005d4e: 2800 cmp r0, #0 + 8005d50: dae0 bge.n 8005d14 + 8005d52: 6836 ldr r6, [r6, #0] + 8005d54: e7dc b.n 8005d10 + 8005d56: bf00 nop + 8005d58: 0800b54e .word 0x0800b54e + 8005d5c: 0800b852 .word 0x0800b852 + 8005d60: 0800a54d .word 0x0800a54d + +08005d64 : + 8005d64: b538 push {r3, r4, r5, lr} + 8005d66: 4604 mov r4, r0 + 8005d68: b930 cbnz r0, 8005d78 + 8005d6a: 4b15 ldr r3, [pc, #84] ; (8005dc0 ) + 8005d6c: 4915 ldr r1, [pc, #84] ; (8005dc4 ) + 8005d6e: 4816 ldr r0, [pc, #88] ; (8005dc8 ) + 8005d70: f240 62f9 movw r2, #1785 ; 0x6f9 + 8005d74: f003 fb18 bl 80093a8 + 8005d78: 6f23 ldr r3, [r4, #112] ; 0x70 + 8005d7a: b303 cbz r3, 8005dbe + 8005d7c: 8b63 ldrh r3, [r4, #26] + 8005d7e: 075b lsls r3, r3, #29 + 8005d80: d41d bmi.n 8005dbe + 8005d82: 4620 mov r0, r4 + 8005d84: f7ff ffac bl 8005ce0 + 8005d88: b9c8 cbnz r0, 8005dbe + 8005d8a: f8b4 1060 ldrh.w r1, [r4, #96] ; 0x60 + 8005d8e: f8b4 3048 ldrh.w r3, [r4, #72] ; 0x48 + 8005d92: 8620 strh r0, [r4, #48] ; 0x30 + 8005d94: 4299 cmp r1, r3 + 8005d96: bf28 it cs + 8005d98: 4619 movcs r1, r3 + 8005d9a: 8e63 ldrh r3, [r4, #50] ; 0x32 + 8005d9c: 005d lsls r5, r3, #1 + 8005d9e: ebb5 0f51 cmp.w r5, r1, lsr #1 + 8005da2: ea4f 0261 mov.w r2, r1, asr #1 + 8005da6: 442b add r3, r5 + 8005da8: bf88 it hi + 8005daa: 462a movhi r2, r5 + 8005dac: 4413 add r3, r2 + 8005dae: f8a4 3048 strh.w r3, [r4, #72] ; 0x48 + 8005db2: 8b63 ldrh r3, [r4, #26] + 8005db4: f8a4 204a strh.w r2, [r4, #74] ; 0x4a + 8005db8: f043 0304 orr.w r3, r3, #4 + 8005dbc: 8363 strh r3, [r4, #26] + 8005dbe: bd38 pop {r3, r4, r5, pc} + 8005dc0: 0800b54e .word 0x0800b54e + 8005dc4: 0800b86a .word 0x0800b86a + 8005dc8: 0800a54d .word 0x0800a54d + +08005dcc : + 8005dcc: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} + 8005dd0: f8dd 8030 ldr.w r8, [sp, #48] ; 0x30 + 8005dd4: f8bd 9034 ldrh.w r9, [sp, #52] ; 0x34 + 8005dd8: f8bd a038 ldrh.w sl, [sp, #56] ; 0x38 + 8005ddc: 4606 mov r6, r0 + 8005dde: 460f mov r7, r1 + 8005de0: 4614 mov r4, r2 + 8005de2: 461d mov r5, r3 + 8005de4: b933 cbnz r3, 8005df4 + 8005de6: 4b18 ldr r3, [pc, #96] ; (8005e48 ) + 8005de8: 4918 ldr r1, [pc, #96] ; (8005e4c ) + 8005dea: 4819 ldr r0, [pc, #100] ; (8005e50 ) + 8005dec: f240 72c4 movw r2, #1988 ; 0x7c4 + 8005df0: f003 fada bl 80093a8 + 8005df4: f1b8 0f00 cmp.w r8, #0 + 8005df8: d106 bne.n 8005e08 + 8005dfa: 4b13 ldr r3, [pc, #76] ; (8005e48 ) + 8005dfc: 4915 ldr r1, [pc, #84] ; (8005e54 ) + 8005dfe: 4814 ldr r0, [pc, #80] ; (8005e50 ) + 8005e00: f240 72c5 movw r2, #1989 ; 0x7c5 + 8005e04: f003 fad0 bl 80093a8 + 8005e08: 4638 mov r0, r7 + 8005e0a: f7fc fa9b bl 8002344 + 8005e0e: 2314 movs r3, #20 + 8005e10: f246 0108 movw r1, #24584 ; 0x6008 + 8005e14: e9cd 3101 strd r3, r1, [sp, #4] + 8005e18: 4602 mov r2, r0 + 8005e1a: f8cd a000 str.w sl, [sp] + 8005e1e: 4620 mov r0, r4 + 8005e20: 464b mov r3, r9 + 8005e22: 2100 movs r1, #0 + 8005e24: f7ff fcd8 bl 80057d8 + 8005e28: 4604 mov r4, r0 + 8005e2a: b150 cbz r0, 8005e42 + 8005e2c: f7ff fd3c bl 80058a8 + 8005e30: 4643 mov r3, r8 + 8005e32: 462a mov r2, r5 + 8005e34: 4621 mov r1, r4 + 8005e36: 4630 mov r0, r6 + 8005e38: b004 add sp, #16 + 8005e3a: e8bd 47f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8005e3e: f7ff bd43 b.w 80058c8 + 8005e42: b004 add sp, #16 + 8005e44: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8005e48: 0800b54e .word 0x0800b54e + 8005e4c: 0800b887 .word 0x0800b887 + 8005e50: 0800a54d .word 0x0800a54d + 8005e54: 0800b8a1 .word 0x0800b8a1 + +08005e58 : + 8005e58: b538 push {r3, r4, r5, lr} + 8005e5a: 4604 mov r4, r0 + 8005e5c: b930 cbnz r0, 8005e6c + 8005e5e: 4b14 ldr r3, [pc, #80] ; (8005eb0 ) + 8005e60: 4914 ldr r1, [pc, #80] ; (8005eb4 ) + 8005e62: 4815 ldr r0, [pc, #84] ; (8005eb8 ) + 8005e64: f240 72ea movw r2, #2026 ; 0x7ea + 8005e68: f003 fa9e bl 80093a8 + 8005e6c: 6d20 ldr r0, [r4, #80] ; 0x50 + 8005e6e: f7fc fa69 bl 8002344 + 8005e72: 2100 movs r1, #0 + 8005e74: 4602 mov r2, r0 + 8005e76: 4620 mov r0, r4 + 8005e78: f7ff fcf0 bl 800585c + 8005e7c: 4605 mov r5, r0 + 8005e7e: b930 cbnz r0, 8005e8e + 8005e80: 8b63 ldrh r3, [r4, #26] + 8005e82: f043 0303 orr.w r3, r3, #3 + 8005e86: 8363 strh r3, [r4, #26] + 8005e88: f06f 0001 mvn.w r0, #1 + 8005e8c: bd38 pop {r3, r4, r5, pc} + 8005e8e: f7ff fd0b bl 80058a8 + 8005e92: 1d23 adds r3, r4, #4 + 8005e94: 4622 mov r2, r4 + 8005e96: 4629 mov r1, r5 + 8005e98: 4620 mov r0, r4 + 8005e9a: f7ff fd15 bl 80058c8 + 8005e9e: 8b63 ldrh r3, [r4, #26] + 8005ea0: b118 cbz r0, 8005eaa + 8005ea2: f043 0303 orr.w r3, r3, #3 + 8005ea6: 8363 strh r3, [r4, #26] + 8005ea8: e7f0 b.n 8005e8c + 8005eaa: f023 0303 bic.w r3, r3, #3 + 8005eae: e7fa b.n 8005ea6 + 8005eb0: 0800b54e .word 0x0800b54e + 8005eb4: 0800b8bc .word 0x0800b8bc + 8005eb8: 0800a54d .word 0x0800a54d + +08005ebc : + 8005ebc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8005ec0: 4604 mov r4, r0 + 8005ec2: b087 sub sp, #28 + 8005ec4: b930 cbnz r0, 8005ed4 + 8005ec6: 4b8f ldr r3, [pc, #572] ; (8006104 ) + 8005ec8: 498f ldr r1, [pc, #572] ; (8006108 ) + 8005eca: 4890 ldr r0, [pc, #576] ; (800610c ) + 8005ecc: f240 42e1 movw r2, #1249 ; 0x4e1 + 8005ed0: f003 fa6a bl 80093a8 + 8005ed4: 7d23 ldrb r3, [r4, #20] + 8005ed6: 2b01 cmp r3, #1 + 8005ed8: d106 bne.n 8005ee8 + 8005eda: 4b8a ldr r3, [pc, #552] ; (8006104 ) + 8005edc: 498c ldr r1, [pc, #560] ; (8006110 ) + 8005ede: 488b ldr r0, [pc, #556] ; (800610c ) + 8005ee0: f240 42e3 movw r2, #1251 ; 0x4e3 + 8005ee4: f003 fa60 bl 80093a8 + 8005ee8: 4b8a ldr r3, [pc, #552] ; (8006114 ) + 8005eea: 681b ldr r3, [r3, #0] + 8005eec: 42a3 cmp r3, r4 + 8005eee: f000 8171 beq.w 80061d4 + 8005ef2: 6ee5 ldr r5, [r4, #108] ; 0x6c + 8005ef4: b94d cbnz r5, 8005f0a + 8005ef6: 8b63 ldrh r3, [r4, #26] + 8005ef8: 0798 lsls r0, r3, #30 + 8005efa: f140 8167 bpl.w 80061cc + 8005efe: 4620 mov r0, r4 + 8005f00: b007 add sp, #28 + 8005f02: e8bd 4ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8005f06: f7ff bfa7 b.w 8005e58 + 8005f0a: 7a20 ldrb r0, [r4, #8] + 8005f0c: f8b4 8048 ldrh.w r8, [r4, #72] ; 0x48 + 8005f10: f8b4 6060 ldrh.w r6, [r4, #96] ; 0x60 + 8005f14: f104 0904 add.w r9, r4, #4 + 8005f18: b340 cbz r0, 8005f6c + 8005f1a: f7fc fe8f bl 8002c3c + 8005f1e: 4607 mov r7, r0 + 8005f20: 2800 cmp r0, #0 + 8005f22: f000 8170 beq.w 8006206 + 8005f26: 6823 ldr r3, [r4, #0] + 8005f28: b90b cbnz r3, 8005f2e + 8005f2a: 6843 ldr r3, [r0, #4] + 8005f2c: 6023 str r3, [r4, #0] + 8005f2e: 68eb ldr r3, [r5, #12] + 8005f30: 45b0 cmp r8, r6 + 8005f32: 6858 ldr r0, [r3, #4] + 8005f34: bf28 it cs + 8005f36: 46b0 movcs r8, r6 + 8005f38: f7fc fa04 bl 8002344 + 8005f3c: 892b ldrh r3, [r5, #8] + 8005f3e: 6c62 ldr r2, [r4, #68] ; 0x44 + 8005f40: 1a9b subs r3, r3, r2 + 8005f42: 4418 add r0, r3 + 8005f44: 4540 cmp r0, r8 + 8005f46: d915 bls.n 8005f74 + 8005f48: f8b4 3060 ldrh.w r3, [r4, #96] ; 0x60 + 8005f4c: 4543 cmp r3, r8 + 8005f4e: d1d2 bne.n 8005ef6 + 8005f50: 6f23 ldr r3, [r4, #112] ; 0x70 + 8005f52: 2b00 cmp r3, #0 + 8005f54: d1cf bne.n 8005ef6 + 8005f56: f894 3099 ldrb.w r3, [r4, #153] ; 0x99 + 8005f5a: 2b00 cmp r3, #0 + 8005f5c: d1cb bne.n 8005ef6 + 8005f5e: f44f 7280 mov.w r2, #256 ; 0x100 + 8005f62: f8a4 2098 strh.w r2, [r4, #152] ; 0x98 + 8005f66: f884 309a strb.w r3, [r4, #154] ; 0x9a + 8005f6a: e7c4 b.n 8005ef6 + 8005f6c: 4648 mov r0, r9 + 8005f6e: f002 fb29 bl 80085c4 + 8005f72: e7d4 b.n 8005f1e + 8005f74: 6f26 ldr r6, [r4, #112] ; 0x70 + 8005f76: 2300 movs r3, #0 + 8005f78: f884 3099 strb.w r3, [r4, #153] ; 0x99 + 8005f7c: b126 cbz r6, 8005f88 + 8005f7e: 4633 mov r3, r6 + 8005f80: 6836 ldr r6, [r6, #0] + 8005f82: 2e00 cmp r6, #0 + 8005f84: d1fb bne.n 8005f7e + 8005f86: 461e mov r6, r3 + 8005f88: f8df a178 ldr.w sl, [pc, #376] ; 8006104 + 8005f8c: f8df b17c ldr.w fp, [pc, #380] ; 800610c + 8005f90: e0de b.n 8006150 + 8005f92: 7d23 ldrb r3, [r4, #20] + 8005f94: 2b02 cmp r3, #2 + 8005f96: d009 beq.n 8005fac + 8005f98: 68eb ldr r3, [r5, #12] + 8005f9a: 2010 movs r0, #16 + 8005f9c: 899b ldrh r3, [r3, #12] + 8005f9e: 9304 str r3, [sp, #16] + 8005fa0: f7fc f9cd bl 800233e + 8005fa4: 9b04 ldr r3, [sp, #16] + 8005fa6: 68ea ldr r2, [r5, #12] + 8005fa8: 4318 orrs r0, r3 + 8005faa: 8190 strh r0, [r2, #12] + 8005fac: 4628 mov r0, r5 + 8005fae: f7ff fb8b bl 80056c8 + 8005fb2: 2800 cmp r0, #0 + 8005fb4: d16f bne.n 8006096 + 8005fb6: 68eb ldr r3, [r5, #12] + 8005fb8: 6a60 ldr r0, [r4, #36] ; 0x24 + 8005fba: 9304 str r3, [sp, #16] + 8005fbc: f7fc f9c2 bl 8002344 + 8005fc0: 9b04 ldr r3, [sp, #16] + 8005fc2: 6098 str r0, [r3, #8] + 8005fc4: 68eb ldr r3, [r5, #12] + 8005fc6: 8d60 ldrh r0, [r4, #42] ; 0x2a + 8005fc8: 9304 str r3, [sp, #16] + 8005fca: f7fc f9b8 bl 800233e + 8005fce: 9b04 ldr r3, [sp, #16] + 8005fd0: 8d62 ldrh r2, [r4, #42] ; 0x2a + 8005fd2: 81d8 strh r0, [r3, #14] + 8005fd4: 6a63 ldr r3, [r4, #36] ; 0x24 + 8005fd6: 4413 add r3, r2 + 8005fd8: 62e3 str r3, [r4, #44] ; 0x2c + 8005fda: 7aaa ldrb r2, [r5, #10] + 8005fdc: 68eb ldr r3, [r5, #12] + 8005fde: 07d2 lsls r2, r2, #31 + 8005fe0: d449 bmi.n 8006076 + 8005fe2: f103 0214 add.w r2, r3, #20 + 8005fe6: f9b4 3030 ldrsh.w r3, [r4, #48] ; 0x30 + 8005fea: 2b00 cmp r3, #0 + 8005fec: bfbc itt lt + 8005fee: 2300 movlt r3, #0 + 8005ff0: 8623 strhlt r3, [r4, #48] ; 0x30 + 8005ff2: 6b63 ldr r3, [r4, #52] ; 0x34 + 8005ff4: b94b cbnz r3, 800600a + 8005ff6: 4948 ldr r1, [pc, #288] ; (8006118 ) + 8005ff8: 68eb ldr r3, [r5, #12] + 8005ffa: 6809 ldr r1, [r1, #0] + 8005ffc: 9204 str r2, [sp, #16] + 8005ffe: 6361 str r1, [r4, #52] ; 0x34 + 8006000: 6858 ldr r0, [r3, #4] + 8006002: f7fc f99f bl 8002344 + 8006006: 9a04 ldr r2, [sp, #16] + 8006008: 63a0 str r0, [r4, #56] ; 0x38 + 800600a: 6869 ldr r1, [r5, #4] + 800600c: 68eb ldr r3, [r5, #12] + 800600e: 6848 ldr r0, [r1, #4] + 8006010: f8b1 c00a ldrh.w ip, [r1, #10] + 8006014: 604b str r3, [r1, #4] + 8006016: 1a18 subs r0, r3, r0 + 8006018: b280 uxth r0, r0 + 800601a: ebac 0c00 sub.w ip, ip, r0 + 800601e: f8a1 c00a strh.w ip, [r1, #10] + 8006022: f8b1 c008 ldrh.w ip, [r1, #8] + 8006026: ebac 0000 sub.w r0, ip, r0 + 800602a: 8108 strh r0, [r1, #8] + 800602c: 2100 movs r1, #0 + 800602e: 7419 strb r1, [r3, #16] + 8006030: 7459 strb r1, [r3, #17] + 8006032: 7aa9 ldrb r1, [r5, #10] + 8006034: 0089 lsls r1, r1, #2 + 8006036: f001 0104 and.w r1, r1, #4 + 800603a: 3114 adds r1, #20 + 800603c: 440b add r3, r1 + 800603e: 429a cmp r2, r3 + 8006040: d006 beq.n 8006050 + 8006042: 4936 ldr r1, [pc, #216] ; (800611c ) + 8006044: 4653 mov r3, sl + 8006046: f240 621c movw r2, #1564 ; 0x61c + 800604a: 4658 mov r0, fp + 800604c: f003 f9ac bl 80093a8 + 8006050: 2306 movs r3, #6 + 8006052: 9702 str r7, [sp, #8] + 8006054: 9301 str r3, [sp, #4] + 8006056: 7aa3 ldrb r3, [r4, #10] + 8006058: 9300 str r3, [sp, #0] + 800605a: 7ae3 ldrb r3, [r4, #11] + 800605c: 6868 ldr r0, [r5, #4] + 800605e: 464a mov r2, r9 + 8006060: 4621 mov r1, r4 + 8006062: f002 fc1d bl 80088a0 + 8006066: b1b0 cbz r0, 8006096 + 8006068: 8b63 ldrh r3, [r4, #26] + 800606a: f043 0380 orr.w r3, r3, #128 ; 0x80 + 800606e: 8363 strh r3, [r4, #26] + 8006070: b007 add sp, #28 + 8006072: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8006076: 464a mov r2, r9 + 8006078: 4639 mov r1, r7 + 800607a: f44f 7006 mov.w r0, #536 ; 0x218 + 800607e: 9304 str r3, [sp, #16] + 8006080: f7fd fa44 bl 800350c + 8006084: f040 7001 orr.w r0, r0, #33816576 ; 0x2040000 + 8006088: f7fc f95c bl 8002344 + 800608c: 9b04 ldr r3, [sp, #16] + 800608e: 6158 str r0, [r3, #20] + 8006090: f103 0218 add.w r2, r3, #24 + 8006094: e7a7 b.n 8005fe6 + 8006096: 682b ldr r3, [r5, #0] + 8006098: 66e3 str r3, [r4, #108] ; 0x6c + 800609a: 7d23 ldrb r3, [r4, #20] + 800609c: 2b02 cmp r3, #2 + 800609e: bf1e ittt ne + 80060a0: 8b63 ldrhne r3, [r4, #26] + 80060a2: f023 0303 bicne.w r3, r3, #3 + 80060a6: 8363 strhne r3, [r4, #26] + 80060a8: 68eb ldr r3, [r5, #12] + 80060aa: 6858 ldr r0, [r3, #4] + 80060ac: f7fc f94a bl 8002344 + 80060b0: 8929 ldrh r1, [r5, #8] + 80060b2: 68eb ldr r3, [r5, #12] + 80060b4: 9104 str r1, [sp, #16] + 80060b6: 9005 str r0, [sp, #20] + 80060b8: 8998 ldrh r0, [r3, #12] + 80060ba: f7fc f940 bl 800233e + 80060be: e9dd 1204 ldrd r1, r2, [sp, #16] + 80060c2: f010 0303 ands.w r3, r0, #3 + 80060c6: 440a add r2, r1 + 80060c8: bf18 it ne + 80060ca: 2301 movne r3, #1 + 80060cc: 4413 add r3, r2 + 80060ce: 6d22 ldr r2, [r4, #80] ; 0x50 + 80060d0: 1ad2 subs r2, r2, r3 + 80060d2: 2a00 cmp r2, #0 + 80060d4: bfb8 it lt + 80060d6: 6523 strlt r3, [r4, #80] ; 0x50 + 80060d8: 68ea ldr r2, [r5, #12] + 80060da: 892b ldrh r3, [r5, #8] + 80060dc: 9304 str r3, [sp, #16] + 80060de: 8990 ldrh r0, [r2, #12] + 80060e0: f7fc f92d bl 800233e + 80060e4: 9b04 ldr r3, [sp, #16] + 80060e6: f010 0003 ands.w r0, r0, #3 + 80060ea: bf18 it ne + 80060ec: 2001 movne r0, #1 + 80060ee: 42d8 cmn r0, r3 + 80060f0: f000 8085 beq.w 80061fe + 80060f4: 2300 movs r3, #0 + 80060f6: 602b str r3, [r5, #0] + 80060f8: 6f23 ldr r3, [r4, #112] ; 0x70 + 80060fa: b98b cbnz r3, 8006120 + 80060fc: 6725 str r5, [r4, #112] ; 0x70 + 80060fe: 462e mov r6, r5 + 8006100: e023 b.n 800614a + 8006102: bf00 nop + 8006104: 0800b54e .word 0x0800b54e + 8006108: 0800b8dc .word 0x0800b8dc + 800610c: 0800a54d .word 0x0800a54d + 8006110: 0800b8f4 .word 0x0800b8f4 + 8006114: 200082e8 .word 0x200082e8 + 8006118: 200082b4 .word 0x200082b4 + 800611c: 0800b931 .word 0x0800b931 + 8006120: 68eb ldr r3, [r5, #12] + 8006122: 6858 ldr r0, [r3, #4] + 8006124: f7fc f90e bl 8002344 + 8006128: 68f2 ldr r2, [r6, #12] + 800612a: 9004 str r0, [sp, #16] + 800612c: 6850 ldr r0, [r2, #4] + 800612e: f7fc f909 bl 8002344 + 8006132: 9b04 ldr r3, [sp, #16] + 8006134: 1a18 subs r0, r3, r0 + 8006136: 2800 cmp r0, #0 + 8006138: da5f bge.n 80061fa + 800613a: f104 0370 add.w r3, r4, #112 ; 0x70 + 800613e: 681a ldr r2, [r3, #0] + 8006140: 2a00 cmp r2, #0 + 8006142: d149 bne.n 80061d8 + 8006144: 681a ldr r2, [r3, #0] + 8006146: 602a str r2, [r5, #0] + 8006148: 601d str r5, [r3, #0] + 800614a: 6ee5 ldr r5, [r4, #108] ; 0x6c + 800614c: 2d00 cmp r5, #0 + 800614e: d03a beq.n 80061c6 + 8006150: 68eb ldr r3, [r5, #12] + 8006152: 6858 ldr r0, [r3, #4] + 8006154: f7fc f8f6 bl 8002344 + 8006158: 6c63 ldr r3, [r4, #68] ; 0x44 + 800615a: 1ac0 subs r0, r0, r3 + 800615c: 892b ldrh r3, [r5, #8] + 800615e: 4418 add r0, r3 + 8006160: 4540 cmp r0, r8 + 8006162: d82e bhi.n 80061c2 + 8006164: 68eb ldr r3, [r5, #12] + 8006166: 8998 ldrh r0, [r3, #12] + 8006168: f7fc f8e9 bl 800233e + 800616c: 0741 lsls r1, r0, #29 + 800616e: d506 bpl.n 800617e + 8006170: 4926 ldr r1, [pc, #152] ; (800620c ) + 8006172: 4653 mov r3, sl + 8006174: f240 5236 movw r2, #1334 ; 0x536 + 8006178: 4658 mov r0, fp + 800617a: f003 f915 bl 80093a8 + 800617e: 6f23 ldr r3, [r4, #112] ; 0x70 + 8006180: 2b00 cmp r3, #0 + 8006182: f43f af06 beq.w 8005f92 + 8006186: 8b62 ldrh r2, [r4, #26] + 8006188: f012 0f44 tst.w r2, #68 ; 0x44 + 800618c: f47f af01 bne.w 8005f92 + 8006190: 6ee3 ldr r3, [r4, #108] ; 0x6c + 8006192: b143 cbz r3, 80061a6 + 8006194: 6819 ldr r1, [r3, #0] + 8006196: 2900 cmp r1, #0 + 8006198: f47f aefb bne.w 8005f92 + 800619c: 8919 ldrh r1, [r3, #8] + 800619e: 8e63 ldrh r3, [r4, #50] ; 0x32 + 80061a0: 4299 cmp r1, r3 + 80061a2: f4bf aef6 bcs.w 8005f92 + 80061a6: f8b4 3064 ldrh.w r3, [r4, #100] ; 0x64 + 80061aa: 2b00 cmp r3, #0 + 80061ac: f43f aef1 beq.w 8005f92 + 80061b0: f8b4 3066 ldrh.w r3, [r4, #102] ; 0x66 + 80061b4: 2b08 cmp r3, #8 + 80061b6: f63f aeec bhi.w 8005f92 + 80061ba: f012 0fa0 tst.w r2, #160 ; 0xa0 + 80061be: f47f aee8 bne.w 8005f92 + 80061c2: 6ee3 ldr r3, [r4, #108] ; 0x6c + 80061c4: b913 cbnz r3, 80061cc + 80061c6: 2300 movs r3, #0 + 80061c8: f8a4 3068 strh.w r3, [r4, #104] ; 0x68 + 80061cc: 8b63 ldrh r3, [r4, #26] + 80061ce: f023 0380 bic.w r3, r3, #128 ; 0x80 + 80061d2: 8363 strh r3, [r4, #26] + 80061d4: 2000 movs r0, #0 + 80061d6: e74b b.n 8006070 + 80061d8: 68d2 ldr r2, [r2, #12] + 80061da: 9305 str r3, [sp, #20] + 80061dc: 6850 ldr r0, [r2, #4] + 80061de: f7fc f8b1 bl 8002344 + 80061e2: 68e9 ldr r1, [r5, #12] + 80061e4: 9004 str r0, [sp, #16] + 80061e6: 6848 ldr r0, [r1, #4] + 80061e8: f7fc f8ac bl 8002344 + 80061ec: 9a04 ldr r2, [sp, #16] + 80061ee: 9b05 ldr r3, [sp, #20] + 80061f0: 1a10 subs r0, r2, r0 + 80061f2: 2800 cmp r0, #0 + 80061f4: daa6 bge.n 8006144 + 80061f6: 681b ldr r3, [r3, #0] + 80061f8: e7a1 b.n 800613e + 80061fa: 6035 str r5, [r6, #0] + 80061fc: e77f b.n 80060fe + 80061fe: 4628 mov r0, r5 + 8006200: f7fd f930 bl 8003464 + 8006204: e7a1 b.n 800614a + 8006206: f06f 0003 mvn.w r0, #3 + 800620a: e731 b.n 8006070 + 800620c: 0800b91a .word 0x0800b91a + +08006210 : + 8006210: b510 push {r4, lr} + 8006212: 4604 mov r4, r0 + 8006214: b930 cbnz r0, 8006224 + 8006216: 4b09 ldr r3, [pc, #36] ; (800623c ) + 8006218: 4909 ldr r1, [pc, #36] ; (8006240 ) + 800621a: 480a ldr r0, [pc, #40] ; (8006244 ) + 800621c: f44f 62d3 mov.w r2, #1688 ; 0x698 + 8006220: f003 f8c2 bl 80093a8 + 8006224: f894 3042 ldrb.w r3, [r4, #66] ; 0x42 + 8006228: 2bff cmp r3, #255 ; 0xff + 800622a: bf1c itt ne + 800622c: 3301 addne r3, #1 + 800622e: f884 3042 strbne.w r3, [r4, #66] ; 0x42 + 8006232: 4620 mov r0, r4 + 8006234: e8bd 4010 ldmia.w sp!, {r4, lr} + 8006238: f7ff be40 b.w 8005ebc + 800623c: 0800b54e .word 0x0800b54e + 8006240: 0800b944 .word 0x0800b944 + 8006244: 0800a54d .word 0x0800a54d + +08006248 : + 8006248: b510 push {r4, lr} + 800624a: 4604 mov r4, r0 + 800624c: b930 cbnz r0, 800625c + 800624e: 4b08 ldr r3, [pc, #32] ; (8006270 ) + 8006250: 4908 ldr r1, [pc, #32] ; (8006274 ) + 8006252: 4809 ldr r0, [pc, #36] ; (8006278 ) + 8006254: f240 62ad movw r2, #1709 ; 0x6ad + 8006258: f003 f8a6 bl 80093a8 + 800625c: 4620 mov r0, r4 + 800625e: f7ff fcfb bl 8005c58 + 8006262: b920 cbnz r0, 800626e + 8006264: 4620 mov r0, r4 + 8006266: e8bd 4010 ldmia.w sp!, {r4, lr} + 800626a: f7ff bfd1 b.w 8006210 + 800626e: bd10 pop {r4, pc} + 8006270: 0800b54e .word 0x0800b54e + 8006274: 0800b967 .word 0x0800b967 + 8006278: 0800a54d .word 0x0800a54d + +0800627c : + 800627c: b570 push {r4, r5, r6, lr} + 800627e: 4604 mov r4, r0 + 8006280: b930 cbnz r0, 8006290 + 8006282: 4b0f ldr r3, [pc, #60] ; (80062c0 ) + 8006284: 490f ldr r1, [pc, #60] ; (80062c4 ) + 8006286: 4810 ldr r0, [pc, #64] ; (80062c8 ) + 8006288: f640 0224 movw r2, #2084 ; 0x824 + 800628c: f003 f88c bl 80093a8 + 8006290: 6d20 ldr r0, [r4, #80] ; 0x50 + 8006292: 3801 subs r0, #1 + 8006294: f7fc f856 bl 8002344 + 8006298: 2100 movs r1, #0 + 800629a: 4602 mov r2, r0 + 800629c: 4620 mov r0, r4 + 800629e: f7ff fadd bl 800585c + 80062a2: 4605 mov r5, r0 + 80062a4: b148 cbz r0, 80062ba + 80062a6: f7ff faff bl 80058a8 + 80062aa: 1d23 adds r3, r4, #4 + 80062ac: 4622 mov r2, r4 + 80062ae: 4629 mov r1, r5 + 80062b0: 4620 mov r0, r4 + 80062b2: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} + 80062b6: f7ff bb07 b.w 80058c8 + 80062ba: f04f 30ff mov.w r0, #4294967295 + 80062be: bd70 pop {r4, r5, r6, pc} + 80062c0: 0800b54e .word 0x0800b54e + 80062c4: 0800b983 .word 0x0800b983 + 80062c8: 0800a54d .word 0x0800a54d + +080062cc : + 80062cc: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 80062d0: 4606 mov r6, r0 + 80062d2: b930 cbnz r0, 80062e2 + 80062d4: 4b2c ldr r3, [pc, #176] ; (8006388 ) + 80062d6: 492d ldr r1, [pc, #180] ; (800638c ) + 80062d8: 482d ldr r0, [pc, #180] ; (8006390 ) + 80062da: f640 024f movw r2, #2127 ; 0x84f + 80062de: f003 f863 bl 80093a8 + 80062e2: 6ef5 ldr r5, [r6, #108] ; 0x6c + 80062e4: 2d00 cmp r5, #0 + 80062e6: d048 beq.n 800637a + 80062e8: f896 309a ldrb.w r3, [r6, #154] ; 0x9a + 80062ec: 2bff cmp r3, #255 ; 0xff + 80062ee: bf1c itt ne + 80062f0: 3301 addne r3, #1 + 80062f2: f886 309a strbne.w r3, [r6, #154] ; 0x9a + 80062f6: 68eb ldr r3, [r5, #12] + 80062f8: 8998 ldrh r0, [r3, #12] + 80062fa: f7fc f820 bl 800233e + 80062fe: f010 0401 ands.w r4, r0, #1 + 8006302: bf18 it ne + 8006304: 892c ldrhne r4, [r5, #8] + 8006306: 68eb ldr r3, [r5, #12] + 8006308: bf1c itt ne + 800630a: fab4 f484 clzne r4, r4 + 800630e: 0964 lsrne r4, r4, #5 + 8006310: 685a ldr r2, [r3, #4] + 8006312: f084 0101 eor.w r1, r4, #1 + 8006316: 4630 mov r0, r6 + 8006318: f7ff faa0 bl 800585c + 800631c: 4607 mov r7, r0 + 800631e: b378 cbz r0, 8006380 + 8006320: f8d0 8004 ldr.w r8, [r0, #4] + 8006324: b1f4 cbz r4, 8006364 + 8006326: 2011 movs r0, #17 + 8006328: f9b8 400c ldrsh.w r4, [r8, #12] + 800632c: f7fc f807 bl 800233e + 8006330: f424 547c bic.w r4, r4, #16128 ; 0x3f00 + 8006334: 4320 orrs r0, r4 + 8006336: f8a8 000c strh.w r0, [r8, #12] + 800633a: 68eb ldr r3, [r5, #12] + 800633c: 6858 ldr r0, [r3, #4] + 800633e: f7fc f801 bl 8002344 + 8006342: 6d33 ldr r3, [r6, #80] ; 0x50 + 8006344: 3001 adds r0, #1 + 8006346: 1a1b subs r3, r3, r0 + 8006348: 2b00 cmp r3, #0 + 800634a: bfb8 it lt + 800634c: 6530 strlt r0, [r6, #80] ; 0x50 + 800634e: 4638 mov r0, r7 + 8006350: f7ff faaa bl 80058a8 + 8006354: 1d33 adds r3, r6, #4 + 8006356: 4632 mov r2, r6 + 8006358: 4639 mov r1, r7 + 800635a: 4630 mov r0, r6 + 800635c: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 8006360: f7ff bab2 b.w 80058c8 + 8006364: 6868 ldr r0, [r5, #4] + 8006366: 892a ldrh r2, [r5, #8] + 8006368: 8903 ldrh r3, [r0, #8] + 800636a: 1a9b subs r3, r3, r2 + 800636c: b29b uxth r3, r3 + 800636e: 2201 movs r2, #1 + 8006370: f108 0114 add.w r1, r8, #20 + 8006374: f7fc ff4c bl 8003210 + 8006378: e7df b.n 800633a + 800637a: 4628 mov r0, r5 + 800637c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8006380: f04f 30ff mov.w r0, #4294967295 + 8006384: e7fa b.n 800637c + 8006386: bf00 nop + 8006388: 0800b54e .word 0x0800b54e + 800638c: 0800b99e .word 0x0800b99e + 8006390: 0800a54d .word 0x0800a54d + +08006394 : + 8006394: b570 push {r4, r5, r6, lr} + 8006396: 4604 mov r4, r0 + 8006398: 2006 movs r0, #6 + 800639a: 460e mov r6, r1 + 800639c: 4615 mov r5, r2 + 800639e: f7fc fa71 bl 8002884 + 80063a2: b938 cbnz r0, 80063b4 + 80063a4: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} + 80063a8: 4b0f ldr r3, [pc, #60] ; (80063e8 ) + 80063aa: 4910 ldr r1, [pc, #64] ; (80063ec ) + 80063ac: 4810 ldr r0, [pc, #64] ; (80063f0 ) + 80063ae: 22be movs r2, #190 ; 0xbe + 80063b0: f002 bffa b.w 80093a8 + 80063b4: 4a0f ldr r2, [pc, #60] ; (80063f4 ) + 80063b6: 6044 str r4, [r0, #4] + 80063b8: 2300 movs r3, #0 + 80063ba: 6003 str r3, [r0, #0] + 80063bc: 6813 ldr r3, [r2, #0] + 80063be: e9c0 6502 strd r6, r5, [r0, #8] + 80063c2: b90b cbnz r3, 80063c8 + 80063c4: 6010 str r0, [r2, #0] + 80063c6: bd70 pop {r4, r5, r6, pc} + 80063c8: 6859 ldr r1, [r3, #4] + 80063ca: 1a61 subs r1, r4, r1 + 80063cc: 2900 cmp r1, #0 + 80063ce: da01 bge.n 80063d4 + 80063d0: 6003 str r3, [r0, #0] + 80063d2: e7f7 b.n 80063c4 + 80063d4: 4619 mov r1, r3 + 80063d6: 681b ldr r3, [r3, #0] + 80063d8: b11b cbz r3, 80063e2 + 80063da: 685a ldr r2, [r3, #4] + 80063dc: 1aa2 subs r2, r4, r2 + 80063de: 2a00 cmp r2, #0 + 80063e0: daf8 bge.n 80063d4 + 80063e2: 6003 str r3, [r0, #0] + 80063e4: 6008 str r0, [r1, #0] + 80063e6: e7ee b.n 80063c6 + 80063e8: 0800b9c1 .word 0x0800b9c1 + 80063ec: 0800b9f5 .word 0x0800b9f5 + 80063f0: 0800a54d .word 0x0800a54d + 80063f4: 20008304 .word 0x20008304 + +080063f8 : + 80063f8: b538 push {r3, r4, r5, lr} + 80063fa: 6843 ldr r3, [r0, #4] + 80063fc: 4604 mov r4, r0 + 80063fe: 4798 blx r3 + 8006400: f7fb fdfe bl 8002000 + 8006404: 4b07 ldr r3, [pc, #28] ; (8006424 ) + 8006406: 6825 ldr r5, [r4, #0] + 8006408: 681b ldr r3, [r3, #0] + 800640a: 4907 ldr r1, [pc, #28] ; (8006428 ) + 800640c: 442b add r3, r5 + 800640e: 1a1a subs r2, r3, r0 + 8006410: 2a00 cmp r2, #0 + 8006412: bfb8 it lt + 8006414: 1940 addlt r0, r0, r5 + 8006416: 4622 mov r2, r4 + 8006418: bfa8 it ge + 800641a: 4618 movge r0, r3 + 800641c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8006420: f7ff bfb8 b.w 8006394 + 8006424: 20008300 .word 0x20008300 + 8006428: 080063f9 .word 0x080063f9 + +0800642c : + 800642c: f1b0 4f80 cmp.w r0, #1073741824 ; 0x40000000 + 8006430: b570 push {r4, r5, r6, lr} + 8006432: 4604 mov r4, r0 + 8006434: 460d mov r5, r1 + 8006436: 4616 mov r6, r2 + 8006438: d306 bcc.n 8006448 + 800643a: 4b08 ldr r3, [pc, #32] ; (800645c ) + 800643c: 4908 ldr r1, [pc, #32] ; (8006460 ) + 800643e: 4809 ldr r0, [pc, #36] ; (8006464 ) + 8006440: f240 1229 movw r2, #297 ; 0x129 + 8006444: f002 ffb0 bl 80093a8 + 8006448: f7fb fdda bl 8002000 + 800644c: 4632 mov r2, r6 + 800644e: 4629 mov r1, r5 + 8006450: 4420 add r0, r4 + 8006452: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr} + 8006456: f7ff bf9d b.w 8006394 + 800645a: bf00 nop + 800645c: 0800b9c1 .word 0x0800b9c1 + 8006460: 0800ba32 .word 0x0800ba32 + 8006464: 0800a54d .word 0x0800a54d + +08006468 : + 8006468: 4b08 ldr r3, [pc, #32] ; (800648c ) + 800646a: 681a ldr r2, [r3, #0] + 800646c: b962 cbnz r2, 8006488 + 800646e: 4a08 ldr r2, [pc, #32] ; (8006490 ) + 8006470: 6812 ldr r2, [r2, #0] + 8006472: b912 cbnz r2, 800647a + 8006474: 4a07 ldr r2, [pc, #28] ; (8006494 ) + 8006476: 6812 ldr r2, [r2, #0] + 8006478: b132 cbz r2, 8006488 + 800647a: 2201 movs r2, #1 + 800647c: 601a str r2, [r3, #0] + 800647e: 4906 ldr r1, [pc, #24] ; (8006498 ) + 8006480: 2200 movs r2, #0 + 8006482: 20fa movs r0, #250 ; 0xfa + 8006484: f7ff bfd2 b.w 800642c + 8006488: 4770 bx lr + 800648a: bf00 nop + 800648c: 20008308 .word 0x20008308 + 8006490: 200082a4 .word 0x200082a4 + 8006494: 200082bc .word 0x200082bc + 8006498: 0800649d .word 0x0800649d + +0800649c : + 800649c: b508 push {r3, lr} + 800649e: f7fd fe0b bl 80040b8 + 80064a2: 4b08 ldr r3, [pc, #32] ; (80064c4 ) + 80064a4: 681b ldr r3, [r3, #0] + 80064a6: b913 cbnz r3, 80064ae + 80064a8: 4b07 ldr r3, [pc, #28] ; (80064c8 ) + 80064aa: 681b ldr r3, [r3, #0] + 80064ac: b133 cbz r3, 80064bc + 80064ae: e8bd 4008 ldmia.w sp!, {r3, lr} + 80064b2: 4906 ldr r1, [pc, #24] ; (80064cc ) + 80064b4: 2200 movs r2, #0 + 80064b6: 20fa movs r0, #250 ; 0xfa + 80064b8: f7ff bfb8 b.w 800642c + 80064bc: 4a04 ldr r2, [pc, #16] ; (80064d0 ) + 80064be: 6013 str r3, [r2, #0] + 80064c0: bd08 pop {r3, pc} + 80064c2: bf00 nop + 80064c4: 200082a4 .word 0x200082a4 + 80064c8: 200082bc .word 0x200082bc + 80064cc: 0800649d .word 0x0800649d + 80064d0: 20008308 .word 0x20008308 + +080064d4 : + 80064d4: b570 push {r4, r5, r6, lr} + 80064d6: 4d06 ldr r5, [pc, #24] ; (80064f0 ) + 80064d8: 4e06 ldr r6, [pc, #24] ; (80064f4 ) + 80064da: 2401 movs r4, #1 + 80064dc: f855 0f08 ldr.w r0, [r5, #8]! + 80064e0: 4631 mov r1, r6 + 80064e2: 462a mov r2, r5 + 80064e4: 3401 adds r4, #1 + 80064e6: f7ff ffa1 bl 800642c + 80064ea: 2c05 cmp r4, #5 + 80064ec: d1f6 bne.n 80064dc + 80064ee: bd70 pop {r4, r5, r6, pc} + 80064f0: 0800ba68 .word 0x0800ba68 + 80064f4: 080063f9 .word 0x080063f9 + +080064f8 : + 80064f8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 80064fc: f7fb fd80 bl 8002000 + 8006500: f8df 8044 ldr.w r8, [pc, #68] ; 8006548 + 8006504: f8df 9044 ldr.w r9, [pc, #68] ; 800654c + 8006508: 4604 mov r4, r0 + 800650a: 4e0e ldr r6, [pc, #56] ; (8006544 ) + 800650c: f898 3000 ldrb.w r3, [r8] + 8006510: b10b cbz r3, 8006516 + 8006512: f7fc fbd7 bl 8002cc4 + 8006516: 6831 ldr r1, [r6, #0] + 8006518: b189 cbz r1, 800653e + 800651a: 684b ldr r3, [r1, #4] + 800651c: 1ae2 subs r2, r4, r3 + 800651e: 2a00 cmp r2, #0 + 8006520: db0d blt.n 800653e + 8006522: e9d1 5702 ldrd r5, r7, [r1, #8] + 8006526: 680a ldr r2, [r1, #0] + 8006528: 6032 str r2, [r6, #0] + 800652a: 2006 movs r0, #6 + 800652c: f8c9 3000 str.w r3, [r9] + 8006530: f7fc f9d8 bl 80028e4 + 8006534: 2d00 cmp r5, #0 + 8006536: d0e9 beq.n 800650c + 8006538: 4638 mov r0, r7 + 800653a: 47a8 blx r5 + 800653c: e7e5 b.n 800650a + 800653e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8006542: bf00 nop + 8006544: 20008304 .word 0x20008304 + 8006548: 200082a1 .word 0x200082a1 + 800654c: 20008300 .word 0x20008300 + +08006550 : + 8006550: b508 push {r3, lr} + 8006552: f002 ff41 bl 80093d8 + 8006556: 4b03 ldr r3, [pc, #12] ; (8006564 ) + 8006558: ea6f 4080 mvn.w r0, r0, lsl #18 + 800655c: ea6f 4090 mvn.w r0, r0, lsr #18 + 8006560: 8018 strh r0, [r3, #0] + 8006562: bd08 pop {r3, pc} + 8006564: 20000026 .word 0x20000026 + +08006568 : + 8006568: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800656c: 4688 mov r8, r1 + 800656e: b085 sub sp, #20 + 8006570: 4606 mov r6, r0 + 8006572: b928 cbnz r0, 8006580 + 8006574: 4b5f ldr r3, [pc, #380] ; (80066f4 ) + 8006576: 4960 ldr r1, [pc, #384] ; (80066f8 ) + 8006578: 4860 ldr r0, [pc, #384] ; (80066fc ) + 800657a: 22cf movs r2, #207 ; 0xcf + 800657c: f002 ff14 bl 80093a8 + 8006580: f1b8 0f00 cmp.w r8, #0 + 8006584: d105 bne.n 8006592 + 8006586: 4b5b ldr r3, [pc, #364] ; (80066f4 ) + 8006588: 495d ldr r1, [pc, #372] ; (8006700 ) + 800658a: 485c ldr r0, [pc, #368] ; (80066fc ) + 800658c: 22d0 movs r2, #208 ; 0xd0 + 800658e: f002 ff0b bl 80093a8 + 8006592: 8973 ldrh r3, [r6, #10] + 8006594: 2b07 cmp r3, #7 + 8006596: d805 bhi.n 80065a4 + 8006598: 4630 mov r0, r6 + 800659a: b005 add sp, #20 + 800659c: e8bd 4ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80065a0: f7fc bc18 b.w 8002dd4 + 80065a4: 4f57 ldr r7, [pc, #348] ; (8006704 ) + 80065a6: 6874 ldr r4, [r6, #4] + 80065a8: 6839 ldr r1, [r7, #0] + 80065aa: 6978 ldr r0, [r7, #20] + 80065ac: f8df b164 ldr.w fp, [pc, #356] ; 8006714 + 80065b0: f002 f987 bl 80088c2 + 80065b4: 4681 mov r9, r0 + 80065b6: 8820 ldrh r0, [r4, #0] + 80065b8: f7fb fec1 bl 800233e + 80065bc: 9002 str r0, [sp, #8] + 80065be: 8860 ldrh r0, [r4, #2] + 80065c0: f7fb febd bl 800233e + 80065c4: 2500 movs r5, #0 + 80065c6: f8db 4000 ldr.w r4, [fp] + 80065ca: f8df c128 ldr.w ip, [pc, #296] ; 80066f4 + 80065ce: 494e ldr r1, [pc, #312] ; (8006708 ) + 80065d0: 9003 str r0, [sp, #12] + 80065d2: 46aa mov sl, r5 + 80065d4: b99c cbnz r4, 80065fe + 80065d6: b925 cbnz r5, 80065e2 + 80065d8: f8d8 2004 ldr.w r2, [r8, #4] + 80065dc: 697b ldr r3, [r7, #20] + 80065de: 429a cmp r2, r3 + 80065e0: d1da bne.n 8006598 + 80065e2: 2108 movs r1, #8 + 80065e4: 4630 mov r0, r6 + 80065e6: f7fc fbc1 bl 8002d6c + 80065ea: 2800 cmp r0, #0 + 80065ec: d05e beq.n 80066ac + 80065ee: 4b41 ldr r3, [pc, #260] ; (80066f4 ) + 80065f0: 4946 ldr r1, [pc, #280] ; (800670c ) + 80065f2: 4842 ldr r0, [pc, #264] ; (80066fc ) + 80065f4: f44f 72b8 mov.w r2, #368 ; 0x170 + 80065f8: f002 fed6 bl 80093a8 + 80065fc: e7cc b.n 8006598 + 80065fe: 8a62 ldrh r2, [r4, #18] + 8006600: 9803 ldr r0, [sp, #12] + 8006602: 4282 cmp r2, r0 + 8006604: d14d bne.n 80066a2 + 8006606: f1b8 0f00 cmp.w r8, #0 + 800660a: d107 bne.n 800661c + 800660c: 4663 mov r3, ip + 800660e: 483b ldr r0, [pc, #236] ; (80066fc ) + 8006610: 2288 movs r2, #136 ; 0x88 + 8006612: f002 fec9 bl 80093a8 + 8006616: f8df c0dc ldr.w ip, [pc, #220] ; 80066f4 + 800661a: 493b ldr r1, [pc, #236] ; (8006708 ) + 800661c: 7a20 ldrb r0, [r4, #8] + 800661e: b130 cbz r0, 800662e + 8006620: 687a ldr r2, [r7, #4] + 8006622: f892 2034 ldrb.w r2, [r2, #52] ; 0x34 + 8006626: 3201 adds r2, #1 + 8006628: b2d2 uxtb r2, r2 + 800662a: 4290 cmp r0, r2 + 800662c: d139 bne.n 80066a2 + 800662e: 6822 ldr r2, [r4, #0] + 8006630: f1b9 0f00 cmp.w r9, #0 + 8006634: d030 beq.n 8006698 + 8006636: b13a cbz r2, 8006648 + 8006638: 6978 ldr r0, [r7, #20] + 800663a: 1c43 adds r3, r0, #1 + 800663c: d004 beq.n 8006648 + 800663e: f8d8 3008 ldr.w r3, [r8, #8] + 8006642: 4050 eors r0, r2 + 8006644: 4218 tst r0, r3 + 8006646: d12c bne.n 80066a2 + 8006648: 7c20 ldrb r0, [r4, #16] + 800664a: 0743 lsls r3, r0, #29 + 800664c: d40e bmi.n 800666c + 800664e: b35d cbz r5, 80066a8 + 8006650: f1b9 0f00 cmp.w r9, #0 + 8006654: d00a beq.n 800666c + 8006656: 6978 ldr r0, [r7, #20] + 8006658: 3001 adds r0, #1 + 800665a: d107 bne.n 800666c + 800665c: f8d8 0004 ldr.w r0, [r8, #4] + 8006660: 682b ldr r3, [r5, #0] + 8006662: 4283 cmp r3, r0 + 8006664: d002 beq.n 800666c + 8006666: 4290 cmp r0, r2 + 8006668: bf08 it eq + 800666a: 4625 moveq r5, r4 + 800666c: 8aa2 ldrh r2, [r4, #20] + 800666e: 9b02 ldr r3, [sp, #8] + 8006670: 429a cmp r2, r3 + 8006672: d116 bne.n 80066a2 + 8006674: 6862 ldr r2, [r4, #4] + 8006676: b112 cbz r2, 800667e + 8006678: 6938 ldr r0, [r7, #16] + 800667a: 4282 cmp r2, r0 + 800667c: d111 bne.n 80066a2 + 800667e: f1ba 0f00 cmp.w sl, #0 + 8006682: d007 beq.n 8006694 + 8006684: 68e3 ldr r3, [r4, #12] + 8006686: f8ca 300c str.w r3, [sl, #12] + 800668a: f8db 3000 ldr.w r3, [fp] + 800668e: 60e3 str r3, [r4, #12] + 8006690: f8cb 4000 str.w r4, [fp] + 8006694: 4625 mov r5, r4 + 8006696: e7a4 b.n 80065e2 + 8006698: 2a00 cmp r2, #0 + 800669a: d0d5 beq.n 8006648 + 800669c: 6978 ldr r0, [r7, #20] + 800669e: 4290 cmp r0, r2 + 80066a0: d0d2 beq.n 8006648 + 80066a2: 46a2 mov sl, r4 + 80066a4: 68e4 ldr r4, [r4, #12] + 80066a6: e795 b.n 80065d4 + 80066a8: 4625 mov r5, r4 + 80066aa: e7df b.n 800666c + 80066ac: b16d cbz r5, 80066ca + 80066ae: 69ac ldr r4, [r5, #24] + 80066b0: 2c00 cmp r4, #0 + 80066b2: f43f af71 beq.w 8006598 + 80066b6: 9b02 ldr r3, [sp, #8] + 80066b8: 9300 str r3, [sp, #0] + 80066ba: 69e8 ldr r0, [r5, #28] + 80066bc: 4b14 ldr r3, [pc, #80] ; (8006710 ) + 80066be: 4632 mov r2, r6 + 80066c0: 4629 mov r1, r5 + 80066c2: 47a0 blx r4 + 80066c4: b005 add sp, #20 + 80066c6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 80066ca: f1b9 0f00 cmp.w r9, #0 + 80066ce: f47f af63 bne.w 8006598 + 80066d2: 697b ldr r3, [r7, #20] + 80066d4: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 80066d8: 2be0 cmp r3, #224 ; 0xe0 + 80066da: f43f af5d beq.w 8006598 + 80066de: 89b9 ldrh r1, [r7, #12] + 80066e0: 3108 adds r1, #8 + 80066e2: b209 sxth r1, r1 + 80066e4: 4630 mov r0, r6 + 80066e6: f7fc fb6d bl 8002dc4 + 80066ea: 2103 movs r1, #3 + 80066ec: 4630 mov r0, r6 + 80066ee: f001 ff47 bl 8008580 + 80066f2: e751 b.n 8006598 + 80066f4: 0800ba90 .word 0x0800ba90 + 80066f8: 0800babf .word 0x0800babf + 80066fc: 0800a54d .word 0x0800a54d + 8006700: 0800bad7 .word 0x0800bad7 + 8006704: 20004d1c .word 0x20004d1c + 8006708: 0800baf0 .word 0x0800baf0 + 800670c: 0800bb15 .word 0x0800bb15 + 8006710: 20004d2c .word 0x20004d2c + 8006714: 2000830c .word 0x2000830c + +08006718 : + 8006718: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 800671c: 4c2b ldr r4, [pc, #172] ; (80067cc ) + 800671e: 2900 cmp r1, #0 + 8006720: bf18 it ne + 8006722: 460c movne r4, r1 + 8006724: b950 cbnz r0, 800673c + 8006726: 4b2a ldr r3, [pc, #168] ; (80067d0 ) + 8006728: 492a ldr r1, [pc, #168] ; (80067d4 ) + 800672a: 482b ldr r0, [pc, #172] ; (80067d8 ) + 800672c: f240 32b7 movw r2, #951 ; 0x3b7 + 8006730: f002 fe3a bl 80093a8 + 8006734: f06f 000f mvn.w r0, #15 + 8006738: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800673c: f8df c0a0 ldr.w ip, [pc, #160] ; 80067e0 + 8006740: f8dc 5000 ldr.w r5, [ip] + 8006744: 4629 mov r1, r5 + 8006746: b9c9 cbnz r1, 800677c + 8006748: 2a00 cmp r2, #0 + 800674a: d13c bne.n 80067c6 + 800674c: 4f23 ldr r7, [pc, #140] ; (80067dc ) + 800674e: 883a ldrh r2, [r7, #0] + 8006750: f44f 4380 mov.w r3, #16384 ; 0x4000 + 8006754: f64f 7eff movw lr, #65535 ; 0xffff + 8006758: 4572 cmp r2, lr + 800675a: bf1a itte ne + 800675c: 3201 addne r2, #1 + 800675e: b292 uxthne r2, r2 + 8006760: f44f 4240 moveq.w r2, #49152 ; 0xc000 + 8006764: 462e mov r6, r5 + 8006766: b97e cbnz r6, 8006788 + 8006768: 803a strh r2, [r7, #0] + 800676a: 6823 ldr r3, [r4, #0] + 800676c: 6003 str r3, [r0, #0] + 800676e: 8242 strh r2, [r0, #18] + 8006770: b911 cbnz r1, 8006778 + 8006772: 60c5 str r5, [r0, #12] + 8006774: f8cc 0000 str.w r0, [ip] + 8006778: 2000 movs r0, #0 + 800677a: e7dd b.n 8006738 + 800677c: 4281 cmp r1, r0 + 800677e: d001 beq.n 8006784 + 8006780: 68c9 ldr r1, [r1, #12] + 8006782: e7e0 b.n 8006746 + 8006784: 2101 movs r1, #1 + 8006786: e7df b.n 8006748 + 8006788: f8b6 8012 ldrh.w r8, [r6, #18] + 800678c: 4590 cmp r8, r2 + 800678e: d107 bne.n 80067a0 + 8006790: 3b01 subs r3, #1 + 8006792: b29b uxth r3, r3 + 8006794: 2b00 cmp r3, #0 + 8006796: d1df bne.n 8006758 + 8006798: 803a strh r2, [r7, #0] + 800679a: f06f 0007 mvn.w r0, #7 + 800679e: e7cb b.n 8006738 + 80067a0: 68f6 ldr r6, [r6, #12] + 80067a2: e7e0 b.n 8006766 + 80067a4: 4283 cmp r3, r0 + 80067a6: d00a beq.n 80067be + 80067a8: 8a5e ldrh r6, [r3, #18] + 80067aa: 4296 cmp r6, r2 + 80067ac: d107 bne.n 80067be + 80067ae: 6827 ldr r7, [r4, #0] + 80067b0: 681e ldr r6, [r3, #0] + 80067b2: 42be cmp r6, r7 + 80067b4: d0f1 beq.n 800679a + 80067b6: 2f00 cmp r7, #0 + 80067b8: d0ef beq.n 800679a + 80067ba: 2e00 cmp r6, #0 + 80067bc: d0ed beq.n 800679a + 80067be: 68db ldr r3, [r3, #12] + 80067c0: 2b00 cmp r3, #0 + 80067c2: d1ef bne.n 80067a4 + 80067c4: e7d1 b.n 800676a + 80067c6: 462b mov r3, r5 + 80067c8: e7fa b.n 80067c0 + 80067ca: bf00 nop + 80067cc: 0800c304 .word 0x0800c304 + 80067d0: 0800ba90 .word 0x0800ba90 + 80067d4: 0800bb30 .word 0x0800bb30 + 80067d8: 0800a54d .word 0x0800a54d + 80067dc: 20000026 .word 0x20000026 + 80067e0: 2000830c .word 0x2000830c + +080067e4 : + 80067e4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80067e8: b085 sub sp, #20 + 80067ea: e9dd ba0e ldrd fp, sl, [sp, #56] ; 0x38 + 80067ee: 460e mov r6, r1 + 80067f0: 4690 mov r8, r2 + 80067f2: 4699 mov r9, r3 + 80067f4: 4607 mov r7, r0 + 80067f6: b960 cbnz r0, 8006812 + 80067f8: 4b3e ldr r3, [pc, #248] ; (80068f4 ) + 80067fa: 493f ldr r1, [pc, #252] ; (80068f8 ) + 80067fc: f240 22d1 movw r2, #721 ; 0x2d1 + 8006800: 483e ldr r0, [pc, #248] ; (80068fc ) + 8006802: f002 fdd1 bl 80093a8 + 8006806: f06f 040f mvn.w r4, #15 + 800680a: 4620 mov r0, r4 + 800680c: b005 add sp, #20 + 800680e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8006812: b921 cbnz r1, 800681e + 8006814: 4b37 ldr r3, [pc, #220] ; (80068f4 ) + 8006816: 493a ldr r1, [pc, #232] ; (8006900 ) + 8006818: f240 22d2 movw r2, #722 ; 0x2d2 + 800681c: e7f0 b.n 8006800 + 800681e: b922 cbnz r2, 800682a + 8006820: 4b34 ldr r3, [pc, #208] ; (80068f4 ) + 8006822: 4938 ldr r1, [pc, #224] ; (8006904 ) + 8006824: f240 22d3 movw r2, #723 ; 0x2d3 + 8006828: e7ea b.n 8006800 + 800682a: f1ba 0f00 cmp.w sl, #0 + 800682e: d104 bne.n 800683a + 8006830: 4b30 ldr r3, [pc, #192] ; (80068f4 ) + 8006832: 4935 ldr r1, [pc, #212] ; (8006908 ) + 8006834: f44f 7235 mov.w r2, #724 ; 0x2d4 + 8006838: e7e2 b.n 8006800 + 800683a: f1bb 0f00 cmp.w fp, #0 + 800683e: d104 bne.n 800684a + 8006840: 4b2c ldr r3, [pc, #176] ; (80068f4 ) + 8006842: 4932 ldr r1, [pc, #200] ; (800690c ) + 8006844: f240 22d5 movw r2, #725 ; 0x2d5 + 8006848: e7da b.n 8006800 + 800684a: 8a42 ldrh r2, [r0, #18] + 800684c: b13a cbz r2, 800685e + 800684e: 8932 ldrh r2, [r6, #8] + 8006850: f64f 73f7 movw r3, #65527 ; 0xfff7 + 8006854: 429a cmp r2, r3 + 8006856: d909 bls.n 800686c + 8006858: f04f 34ff mov.w r4, #4294967295 + 800685c: e7d5 b.n 800680a + 800685e: 4601 mov r1, r0 + 8006860: f7ff ff5a bl 8006718 + 8006864: 4604 mov r4, r0 + 8006866: 2800 cmp r0, #0 + 8006868: d0f1 beq.n 800684e + 800686a: e7ce b.n 800680a + 800686c: 2108 movs r1, #8 + 800686e: 4630 mov r0, r6 + 8006870: f7fc fa78 bl 8002d64 + 8006874: 2800 cmp r0, #0 + 8006876: d03a beq.n 80068ee + 8006878: f44f 7220 mov.w r2, #640 ; 0x280 + 800687c: 2108 movs r1, #8 + 800687e: 2022 movs r0, #34 ; 0x22 + 8006880: f7fc fb0c bl 8002e9c + 8006884: 4605 mov r5, r0 + 8006886: 2800 cmp r0, #0 + 8006888: d0e6 beq.n 8006858 + 800688a: 8933 ldrh r3, [r6, #8] + 800688c: b113 cbz r3, 8006894 + 800688e: 4631 mov r1, r6 + 8006890: f7fc fc32 bl 80030f8 + 8006894: 896b ldrh r3, [r5, #10] + 8006896: 2b07 cmp r3, #7 + 8006898: d806 bhi.n 80068a8 + 800689a: 4b16 ldr r3, [pc, #88] ; (80068f4 ) + 800689c: 491c ldr r1, [pc, #112] ; (8006910 ) + 800689e: 4817 ldr r0, [pc, #92] ; (80068fc ) + 80068a0: f240 320d movw r2, #781 ; 0x30d + 80068a4: f002 fd80 bl 80093a8 + 80068a8: 8a78 ldrh r0, [r7, #18] + 80068aa: 686c ldr r4, [r5, #4] + 80068ac: f7fb fd47 bl 800233e + 80068b0: 8020 strh r0, [r4, #0] + 80068b2: 4648 mov r0, r9 + 80068b4: f7fb fd43 bl 800233e + 80068b8: 2300 movs r3, #0 + 80068ba: 8060 strh r0, [r4, #2] + 80068bc: 71a3 strb r3, [r4, #6] + 80068be: 71e3 strb r3, [r4, #7] + 80068c0: 8928 ldrh r0, [r5, #8] + 80068c2: f7fb fd3c bl 800233e + 80068c6: 2311 movs r3, #17 + 80068c8: 80a0 strh r0, [r4, #4] + 80068ca: f8cd b008 str.w fp, [sp, #8] + 80068ce: 9301 str r3, [sp, #4] + 80068d0: 7abb ldrb r3, [r7, #10] + 80068d2: 9300 str r3, [sp, #0] + 80068d4: 7afb ldrb r3, [r7, #11] + 80068d6: 4642 mov r2, r8 + 80068d8: 4651 mov r1, sl + 80068da: 4628 mov r0, r5 + 80068dc: f001 ff64 bl 80087a8 + 80068e0: 42b5 cmp r5, r6 + 80068e2: 4604 mov r4, r0 + 80068e4: d091 beq.n 800680a + 80068e6: 4628 mov r0, r5 + 80068e8: f7fc fa74 bl 8002dd4 + 80068ec: e78d b.n 800680a + 80068ee: 4635 mov r5, r6 + 80068f0: e7d0 b.n 8006894 + 80068f2: bf00 nop + 80068f4: 0800ba90 .word 0x0800ba90 + 80068f8: 0800bb46 .word 0x0800bb46 + 80068fc: 0800a54d .word 0x0800a54d + 8006900: 0800bb65 .word 0x0800bb65 + 8006904: 0800bb85 .word 0x0800bb85 + 8006908: 0800bba7 .word 0x0800bba7 + 800690c: 0800bbc9 .word 0x0800bbc9 + 8006910: 0800bbea .word 0x0800bbea + +08006914 : + 8006914: b573 push {r0, r1, r4, r5, r6, lr} + 8006916: 9c06 ldr r4, [sp, #24] + 8006918: b950 cbnz r0, 8006930 + 800691a: 4b18 ldr r3, [pc, #96] ; (800697c ) + 800691c: 4918 ldr r1, [pc, #96] ; (8006980 ) + 800691e: f44f 7220 mov.w r2, #640 ; 0x280 + 8006922: 4818 ldr r0, [pc, #96] ; (8006984 ) + 8006924: f002 fd40 bl 80093a8 + 8006928: f06f 000f mvn.w r0, #15 + 800692c: b002 add sp, #8 + 800692e: bd70 pop {r4, r5, r6, pc} + 8006930: b921 cbnz r1, 800693c + 8006932: 4b12 ldr r3, [pc, #72] ; (800697c ) + 8006934: 4914 ldr r1, [pc, #80] ; (8006988 ) + 8006936: f240 2281 movw r2, #641 ; 0x281 + 800693a: e7f2 b.n 8006922 + 800693c: b922 cbnz r2, 8006948 + 800693e: 4b0f ldr r3, [pc, #60] ; (800697c ) + 8006940: 4912 ldr r1, [pc, #72] ; (800698c ) + 8006942: f240 2282 movw r2, #642 ; 0x282 + 8006946: e7ec b.n 8006922 + 8006948: b924 cbnz r4, 8006954 + 800694a: 4b0c ldr r3, [pc, #48] ; (800697c ) + 800694c: 4910 ldr r1, [pc, #64] ; (8006990 ) + 800694e: f240 2283 movw r2, #643 ; 0x283 + 8006952: e7e6 b.n 8006922 + 8006954: 6805 ldr r5, [r0, #0] + 8006956: b11d cbz r5, 8006960 + 8006958: f005 06f0 and.w r6, r5, #240 ; 0xf0 + 800695c: 2ee0 cmp r6, #224 ; 0xe0 + 800695e: d105 bne.n 800696c + 8006960: 1d25 adds r5, r4, #4 + 8006962: e9cd 4500 strd r4, r5, [sp] + 8006966: f7ff ff3d bl 80067e4 + 800696a: e7df b.n 800692c + 800696c: 6866 ldr r6, [r4, #4] + 800696e: 42b5 cmp r5, r6 + 8006970: d101 bne.n 8006976 + 8006972: 4605 mov r5, r0 + 8006974: e7f5 b.n 8006962 + 8006976: f06f 0003 mvn.w r0, #3 + 800697a: e7d7 b.n 800692c + 800697c: 0800ba90 .word 0x0800ba90 + 8006980: 0800bc18 .word 0x0800bc18 + 8006984: 0800a54d .word 0x0800a54d + 8006988: 0800bc33 .word 0x0800bc33 + 800698c: 0800bc4f .word 0x0800bc4f + 8006990: 0800bc6d .word 0x0800bc6d + +08006994 : + 8006994: b570 push {r4, r5, r6, lr} + 8006996: 460d mov r5, r1 + 8006998: 4616 mov r6, r2 + 800699a: 4604 mov r4, r0 + 800699c: b948 cbnz r0, 80069b2 + 800699e: 4b16 ldr r3, [pc, #88] ; (80069f8 ) + 80069a0: 4916 ldr r1, [pc, #88] ; (80069fc ) + 80069a2: f240 4235 movw r2, #1077 ; 0x435 + 80069a6: 4816 ldr r0, [pc, #88] ; (8006a00 ) + 80069a8: f002 fcfe bl 80093a8 + 80069ac: f06f 000f mvn.w r0, #15 + 80069b0: bd70 pop {r4, r5, r6, pc} + 80069b2: b921 cbnz r1, 80069be + 80069b4: 4b10 ldr r3, [pc, #64] ; (80069f8 ) + 80069b6: 4913 ldr r1, [pc, #76] ; (8006a04 ) + 80069b8: f240 4236 movw r2, #1078 ; 0x436 + 80069bc: e7f3 b.n 80069a6 + 80069be: 8a42 ldrh r2, [r0, #18] + 80069c0: b16a cbz r2, 80069de + 80069c2: 682b ldr r3, [r5, #0] + 80069c4: 6063 str r3, [r4, #4] + 80069c6: 7c23 ldrb r3, [r4, #16] + 80069c8: 82a6 strh r6, [r4, #20] + 80069ca: f043 0304 orr.w r3, r3, #4 + 80069ce: 7423 strb r3, [r4, #16] + 80069d0: 4b0d ldr r3, [pc, #52] ; (8006a08 ) + 80069d2: 681a ldr r2, [r3, #0] + 80069d4: 4610 mov r0, r2 + 80069d6: b940 cbnz r0, 80069ea + 80069d8: 60e2 str r2, [r4, #12] + 80069da: 601c str r4, [r3, #0] + 80069dc: e7e8 b.n 80069b0 + 80069de: 4601 mov r1, r0 + 80069e0: f7ff fe9a bl 8006718 + 80069e4: 2800 cmp r0, #0 + 80069e6: d0ec beq.n 80069c2 + 80069e8: e7e2 b.n 80069b0 + 80069ea: 42a0 cmp r0, r4 + 80069ec: d001 beq.n 80069f2 + 80069ee: 68c0 ldr r0, [r0, #12] + 80069f0: e7f1 b.n 80069d6 + 80069f2: 2000 movs r0, #0 + 80069f4: e7dc b.n 80069b0 + 80069f6: bf00 nop + 80069f8: 0800ba90 .word 0x0800ba90 + 80069fc: 0800bc8a .word 0x0800bc8a + 8006a00: 0800a54d .word 0x0800a54d + 8006a04: 0800bca3 .word 0x0800bca3 + 8006a08: 2000830c .word 0x2000830c + +08006a0c : + 8006a0c: b930 cbnz r0, 8006a1c + 8006a0e: 4b05 ldr r3, [pc, #20] ; (8006a24 ) + 8006a10: 4905 ldr r1, [pc, #20] ; (8006a28 ) + 8006a12: 4806 ldr r0, [pc, #24] ; (8006a2c ) + 8006a14: f240 428a movw r2, #1162 ; 0x48a + 8006a18: f002 bcc6 b.w 80093a8 + 8006a1c: e9c0 1206 strd r1, r2, [r0, #24] + 8006a20: 4770 bx lr + 8006a22: bf00 nop + 8006a24: 0800ba90 .word 0x0800ba90 + 8006a28: 0800bcbf .word 0x0800bcbf + 8006a2c: 0800a54d .word 0x0800a54d + +08006a30 : + 8006a30: 4601 mov r1, r0 + 8006a32: b930 cbnz r0, 8006a42 + 8006a34: 4b0d ldr r3, [pc, #52] ; (8006a6c ) + 8006a36: 490e ldr r1, [pc, #56] ; (8006a70 ) + 8006a38: 480e ldr r0, [pc, #56] ; (8006a74 ) + 8006a3a: f240 42a1 movw r2, #1185 ; 0x4a1 + 8006a3e: f002 bcb3 b.w 80093a8 + 8006a42: 4a0d ldr r2, [pc, #52] ; (8006a78 ) + 8006a44: 6813 ldr r3, [r2, #0] + 8006a46: 4283 cmp r3, r0 + 8006a48: d105 bne.n 8006a56 + 8006a4a: 68c3 ldr r3, [r0, #12] + 8006a4c: 6013 str r3, [r2, #0] + 8006a4e: 2000 movs r0, #0 + 8006a50: f7fb bf48 b.w 80028e4 + 8006a54: 4613 mov r3, r2 + 8006a56: 2b00 cmp r3, #0 + 8006a58: d0f9 beq.n 8006a4e + 8006a5a: 68da ldr r2, [r3, #12] + 8006a5c: 2a00 cmp r2, #0 + 8006a5e: d0f6 beq.n 8006a4e + 8006a60: 428a cmp r2, r1 + 8006a62: d1f7 bne.n 8006a54 + 8006a64: 68ca ldr r2, [r1, #12] + 8006a66: 60da str r2, [r3, #12] + 8006a68: e7f1 b.n 8006a4e + 8006a6a: bf00 nop + 8006a6c: 0800ba90 .word 0x0800ba90 + 8006a70: 0800bcd5 .word 0x0800bcd5 + 8006a74: 0800a54d .word 0x0800a54d + 8006a78: 2000830c .word 0x2000830c + +08006a7c : + 8006a7c: b510 push {r4, lr} + 8006a7e: 2000 movs r0, #0 + 8006a80: f7fb ff00 bl 8002884 + 8006a84: 4604 mov r4, r0 + 8006a86: b128 cbz r0, 8006a94 + 8006a88: 2220 movs r2, #32 + 8006a8a: 2100 movs r1, #0 + 8006a8c: f002 fc84 bl 8009398 + 8006a90: 23ff movs r3, #255 ; 0xff + 8006a92: 72e3 strb r3, [r4, #11] + 8006a94: 4620 mov r0, r4 + 8006a96: bd10 pop {r4, pc} + +08006a98 : + 8006a98: b510 push {r4, lr} + 8006a9a: b138 cbz r0, 8006aac + 8006a9c: 6803 ldr r3, [r0, #0] + 8006a9e: b12b cbz r3, 8006aac + 8006aa0: b121 cbz r1, 8006aac + 8006aa2: 680b ldr r3, [r1, #0] + 8006aa4: b113 cbz r3, 8006aac + 8006aa6: 4b06 ldr r3, [pc, #24] ; (8006ac0 ) + 8006aa8: 681b ldr r3, [r3, #0] + 8006aaa: b903 cbnz r3, 8006aae + 8006aac: bd10 pop {r4, pc} + 8006aae: 681c ldr r4, [r3, #0] + 8006ab0: 6802 ldr r2, [r0, #0] + 8006ab2: 4294 cmp r4, r2 + 8006ab4: bf04 itt eq + 8006ab6: 680a ldreq r2, [r1, #0] + 8006ab8: 601a streq r2, [r3, #0] + 8006aba: 68db ldr r3, [r3, #12] + 8006abc: e7f5 b.n 8006aaa + 8006abe: bf00 nop + 8006ac0: 2000830c .word 0x2000830c + +08006ac4 : + 8006ac4: 7943 ldrb r3, [r0, #5] + 8006ac6: 428b cmp r3, r1 + 8006ac8: bf1f itttt ne + 8006aca: 2300 movne r3, #0 + 8006acc: 7141 strbne r1, [r0, #5] + 8006ace: 7183 strbne r3, [r0, #6] + 8006ad0: 8103 strhne r3, [r0, #8] + 8006ad2: 4770 bx lr + +08006ad4 : + 8006ad4: b5f8 push {r3, r4, r5, r6, r7, lr} + 8006ad6: 1c87 adds r7, r0, #2 + 8006ad8: 2f44 cmp r7, #68 ; 0x44 + 8006ada: 4604 mov r4, r0 + 8006adc: 460d mov r5, r1 + 8006ade: 4616 mov r6, r2 + 8006ae0: d906 bls.n 8006af0 + 8006ae2: 4b07 ldr r3, [pc, #28] ; (8006b00 ) + 8006ae4: 4907 ldr r1, [pc, #28] ; (8006b04 ) + 8006ae6: 4808 ldr r0, [pc, #32] ; (8006b08 ) + 8006ae8: f240 52ae movw r2, #1454 ; 0x5ae + 8006aec: f002 fc5c bl 80093a8 + 8006af0: 0a33 lsrs r3, r6, #8 + 8006af2: 552b strb r3, [r5, r4] + 8006af4: 3401 adds r4, #1 + 8006af6: b2a4 uxth r4, r4 + 8006af8: b2b8 uxth r0, r7 + 8006afa: 552e strb r6, [r5, r4] + 8006afc: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8006afe: bf00 nop + 8006b00: 0800bced .word 0x0800bced + 8006b04: 0800bd22 .word 0x0800bd22 + 8006b08: 0800a54d .word 0x0800a54d + +08006b0c : + 8006b0c: b5f8 push {r3, r4, r5, r6, r7, lr} + 8006b0e: 461e mov r6, r3 + 8006b10: 3302 adds r3, #2 + 8006b12: fa50 f383 uxtab r3, r0, r3 + 8006b16: 2b44 cmp r3, #68 ; 0x44 + 8006b18: 4604 mov r4, r0 + 8006b1a: 460d mov r5, r1 + 8006b1c: 4617 mov r7, r2 + 8006b1e: d906 bls.n 8006b2e + 8006b20: 4b06 ldr r3, [pc, #24] ; (8006b3c ) + 8006b22: 4907 ldr r1, [pc, #28] ; (8006b40 ) + 8006b24: 4807 ldr r0, [pc, #28] ; (8006b44 ) + 8006b26: f240 529a movw r2, #1434 ; 0x59a + 8006b2a: f002 fc3d bl 80093a8 + 8006b2e: 1c63 adds r3, r4, #1 + 8006b30: b29b uxth r3, r3 + 8006b32: 1ca0 adds r0, r4, #2 + 8006b34: 552f strb r7, [r5, r4] + 8006b36: b280 uxth r0, r0 + 8006b38: 54ee strb r6, [r5, r3] + 8006b3a: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8006b3c: 0800bced .word 0x0800bced + 8006b40: 0800bd5d .word 0x0800bd5d + 8006b44: 0800a54d .word 0x0800a54d + +08006b48 : + 8006b48: 2843 cmp r0, #67 ; 0x43 + 8006b4a: b570 push {r4, r5, r6, lr} + 8006b4c: 4604 mov r4, r0 + 8006b4e: 460d mov r5, r1 + 8006b50: 4616 mov r6, r2 + 8006b52: d906 bls.n 8006b62 + 8006b54: 4b05 ldr r3, [pc, #20] ; (8006b6c ) + 8006b56: 4906 ldr r1, [pc, #24] ; (8006b70 ) + 8006b58: 4806 ldr r0, [pc, #24] ; (8006b74 ) + 8006b5a: f240 52a6 movw r2, #1446 ; 0x5a6 + 8006b5e: f002 fc23 bl 80093a8 + 8006b62: 1c60 adds r0, r4, #1 + 8006b64: 552e strb r6, [r5, r4] + 8006b66: b280 uxth r0, r0 + 8006b68: bd70 pop {r4, r5, r6, pc} + 8006b6a: bf00 nop + 8006b6c: 0800bced .word 0x0800bced + 8006b70: 0800bd9f .word 0x0800bd9f + 8006b74: 0800a54d .word 0x0800a54d + +08006b78 : + 8006b78: b5f8 push {r3, r4, r5, r6, r7, lr} + 8006b7a: 1d07 adds r7, r0, #4 + 8006b7c: 2f44 cmp r7, #68 ; 0x44 + 8006b7e: 4604 mov r4, r0 + 8006b80: 460d mov r5, r1 + 8006b82: 4616 mov r6, r2 + 8006b84: d906 bls.n 8006b94 + 8006b86: 4b0b ldr r3, [pc, #44] ; (8006bb4 ) + 8006b88: 490b ldr r1, [pc, #44] ; (8006bb8 ) + 8006b8a: 480c ldr r0, [pc, #48] ; (8006bbc ) + 8006b8c: f240 52b7 movw r2, #1463 ; 0x5b7 + 8006b90: f002 fc0a bl 80093a8 + 8006b94: 0e33 lsrs r3, r6, #24 + 8006b96: 552b strb r3, [r5, r4] + 8006b98: 1c63 adds r3, r4, #1 + 8006b9a: b29b uxth r3, r3 + 8006b9c: 0c32 lsrs r2, r6, #16 + 8006b9e: 54ea strb r2, [r5, r3] + 8006ba0: 1ca3 adds r3, r4, #2 + 8006ba2: 3403 adds r4, #3 + 8006ba4: b29b uxth r3, r3 + 8006ba6: b2a4 uxth r4, r4 + 8006ba8: 0a32 lsrs r2, r6, #8 + 8006baa: 54ea strb r2, [r5, r3] + 8006bac: b2b8 uxth r0, r7 + 8006bae: 552e strb r6, [r5, r4] + 8006bb0: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8006bb2: bf00 nop + 8006bb4: 0800bced .word 0x0800bced + 8006bb8: 0800bdd4 .word 0x0800bdd4 + 8006bbc: 0800a54d .word 0x0800a54d + +08006bc0 : + 8006bc0: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr} + 8006bc4: 460e mov r6, r1 + 8006bc6: 4690 mov r8, r2 + 8006bc8: 4699 mov r9, r3 + 8006bca: 4605 mov r5, r0 + 8006bcc: b958 cbnz r0, 8006be6 + 8006bce: 4b40 ldr r3, [pc, #256] ; (8006cd0 ) + 8006bd0: 4940 ldr r1, [pc, #256] ; (8006cd4 ) + 8006bd2: 4841 ldr r0, [pc, #260] ; (8006cd8 ) + 8006bd4: f240 7269 movw r2, #1897 ; 0x769 + 8006bd8: f002 fbe6 bl 80093a8 + 8006bdc: 462f mov r7, r5 + 8006bde: 4638 mov r0, r7 + 8006be0: b003 add sp, #12 + 8006be2: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} + 8006be6: b941 cbnz r1, 8006bfa + 8006be8: 4b39 ldr r3, [pc, #228] ; (8006cd0 ) + 8006bea: 493c ldr r1, [pc, #240] ; (8006cdc ) + 8006bec: 483a ldr r0, [pc, #232] ; (8006cd8 ) + 8006bee: f240 726a movw r2, #1898 ; 0x76a + 8006bf2: f002 fbd9 bl 80093a8 + 8006bf6: 4637 mov r7, r6 + 8006bf8: e7f1 b.n 8006bde + 8006bfa: f44f 7220 mov.w r2, #640 ; 0x280 + 8006bfe: f44f 719a mov.w r1, #308 ; 0x134 + 8006c02: 2036 movs r0, #54 ; 0x36 + 8006c04: f7fc f94a bl 8002e9c + 8006c08: 4607 mov r7, r0 + 8006c0a: 2800 cmp r0, #0 + 8006c0c: d0e7 beq.n 8006bde + 8006c0e: 8943 ldrh r3, [r0, #10] + 8006c10: f5b3 7f9a cmp.w r3, #308 ; 0x134 + 8006c14: d206 bcs.n 8006c24 + 8006c16: 4b2e ldr r3, [pc, #184] ; (8006cd0 ) + 8006c18: 4931 ldr r1, [pc, #196] ; (8006ce0 ) + 8006c1a: 482f ldr r0, [pc, #188] ; (8006cd8 ) + 8006c1c: f240 7271 movw r2, #1905 ; 0x771 + 8006c20: f002 fbc2 bl 80093a8 + 8006c24: f1b8 0f03 cmp.w r8, #3 + 8006c28: d102 bne.n 8006c30 + 8006c2a: 7973 ldrb r3, [r6, #5] + 8006c2c: 2b03 cmp r3, #3 + 8006c2e: d107 bne.n 8006c40 + 8006c30: 79b3 ldrb r3, [r6, #6] + 8006c32: 4c2c ldr r4, [pc, #176] ; (8006ce4 ) + 8006c34: b913 cbnz r3, 8006c3c + 8006c36: f002 fbcf bl 80093d8 + 8006c3a: 6020 str r0, [r4, #0] + 8006c3c: 6823 ldr r3, [r4, #0] + 8006c3e: 6033 str r3, [r6, #0] + 8006c40: 687c ldr r4, [r7, #4] + 8006c42: f44f 729a mov.w r2, #308 ; 0x134 + 8006c46: 2100 movs r1, #0 + 8006c48: 4620 mov r0, r4 + 8006c4a: f002 fba5 bl 8009398 + 8006c4e: 2301 movs r3, #1 + 8006c50: 7023 strb r3, [r4, #0] + 8006c52: 7063 strb r3, [r4, #1] + 8006c54: f895 3030 ldrb.w r3, [r5, #48] ; 0x30 + 8006c58: 70a3 strb r3, [r4, #2] + 8006c5a: 6830 ldr r0, [r6, #0] + 8006c5c: f7fb fb72 bl 8002344 + 8006c60: f1b8 0f04 cmp.w r8, #4 + 8006c64: 6060 str r0, [r4, #4] + 8006c66: d00a beq.n 8006c7e + 8006c68: f1a8 0307 sub.w r3, r8, #7 + 8006c6c: 2b01 cmp r3, #1 + 8006c6e: d906 bls.n 8006c7e + 8006c70: f1b8 0f03 cmp.w r8, #3 + 8006c74: d105 bne.n 8006c82 + 8006c76: 7973 ldrb r3, [r6, #5] + 8006c78: 3b04 subs r3, #4 + 8006c7a: 2b01 cmp r3, #1 + 8006c7c: d801 bhi.n 8006c82 + 8006c7e: 686b ldr r3, [r5, #4] + 8006c80: 60e3 str r3, [r4, #12] + 8006c82: f105 032a add.w r3, r5, #42 ; 0x2a + 8006c86: f104 021c add.w r2, r4, #28 + 8006c8a: 3530 adds r5, #48 ; 0x30 + 8006c8c: f813 1b01 ldrb.w r1, [r3], #1 + 8006c90: f802 1b01 strb.w r1, [r2], #1 + 8006c94: 42ab cmp r3, r5 + 8006c96: d1f9 bne.n 8006c8c + 8006c98: f06f 027d mvn.w r2, #125 ; 0x7d + 8006c9c: 2363 movs r3, #99 ; 0x63 + 8006c9e: f884 20ed strb.w r2, [r4, #237] ; 0xed + 8006ca2: 2253 movs r2, #83 ; 0x53 + 8006ca4: f104 01f0 add.w r1, r4, #240 ; 0xf0 + 8006ca8: f884 30ec strb.w r3, [r4, #236] ; 0xec + 8006cac: f884 20ee strb.w r2, [r4, #238] ; 0xee + 8006cb0: f884 30ef strb.w r3, [r4, #239] ; 0xef + 8006cb4: 2235 movs r2, #53 ; 0x35 + 8006cb6: 2301 movs r3, #1 + 8006cb8: 2000 movs r0, #0 + 8006cba: 9101 str r1, [sp, #4] + 8006cbc: f7ff ff26 bl 8006b0c + 8006cc0: 9901 ldr r1, [sp, #4] + 8006cc2: 4642 mov r2, r8 + 8006cc4: f7ff ff40 bl 8006b48 + 8006cc8: f8a9 0000 strh.w r0, [r9] + 8006ccc: e787 b.n 8006bde + 8006cce: bf00 nop + 8006cd0: 0800bced .word 0x0800bced + 8006cd4: 0800be0e .word 0x0800be0e + 8006cd8: 0800a54d .word 0x0800a54d + 8006cdc: 0800be2d .word 0x0800be2d + 8006ce0: 0800be4b .word 0x0800be4b + 8006ce4: 20008340 .word 0x20008340 + +08006ce8 : + 8006ce8: b5f8 push {r3, r4, r5, r6, r7, lr} + 8006cea: 4604 mov r4, r0 + 8006cec: 1c66 adds r6, r4, #1 + 8006cee: b2b6 uxth r6, r6 + 8006cf0: f1c4 0543 rsb r5, r4, #67 ; 0x43 + 8006cf4: 2e44 cmp r6, #68 ; 0x44 + 8006cf6: f04f 03ff mov.w r3, #255 ; 0xff + 8006cfa: b2ad uxth r5, r5 + 8006cfc: 4608 mov r0, r1 + 8006cfe: 4617 mov r7, r2 + 8006d00: 550b strb r3, [r1, r4] + 8006d02: bf98 it ls + 8006d04: 462a movls r2, r5 + 8006d06: f04f 0100 mov.w r1, #0 + 8006d0a: bf88 it hi + 8006d0c: 2200 movhi r2, #0 + 8006d0e: 4430 add r0, r6 + 8006d10: f002 fb42 bl 8009398 + 8006d14: 2e44 cmp r6, #68 ; 0x44 + 8006d16: f104 04f1 add.w r4, r4, #241 ; 0xf1 + 8006d1a: bf94 ite ls + 8006d1c: 4629 movls r1, r5 + 8006d1e: 2100 movhi r1, #0 + 8006d20: 4421 add r1, r4 + 8006d22: 4638 mov r0, r7 + 8006d24: b289 uxth r1, r1 + 8006d26: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} + 8006d2a: f7fc b937 b.w 8002f9c + ... + +08006d30 : + 8006d30: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8006d34: 6a44 ldr r4, [r0, #36] ; 0x24 + 8006d36: 2300 movs r3, #0 + 8006d38: b086 sub sp, #24 + 8006d3a: 4606 mov r6, r0 + 8006d3c: 61e3 str r3, [r4, #28] + 8006d3e: 2106 movs r1, #6 + 8006d40: 4620 mov r0, r4 + 8006d42: f7ff febf bl 8006ac4 + 8006d46: 2201 movs r2, #1 + 8006d48: f10d 0316 add.w r3, sp, #22 + 8006d4c: 4621 mov r1, r4 + 8006d4e: 4630 mov r0, r6 + 8006d50: f7ff ff36 bl 8006bc0 + 8006d54: 4605 mov r5, r0 + 8006d56: 2800 cmp r0, #0 + 8006d58: d039 beq.n 8006dce + 8006d5a: 6841 ldr r1, [r0, #4] + 8006d5c: f8bd 0016 ldrh.w r0, [sp, #22] + 8006d60: f8df 80b4 ldr.w r8, [pc, #180] ; 8006e18 + 8006d64: 31f0 adds r1, #240 ; 0xf0 + 8006d66: 2302 movs r3, #2 + 8006d68: 2239 movs r2, #57 ; 0x39 + 8006d6a: 9103 str r1, [sp, #12] + 8006d6c: f7ff fece bl 8006b0c + 8006d70: 8d32 ldrh r2, [r6, #40] ; 0x28 + 8006d72: 9903 ldr r1, [sp, #12] + 8006d74: f8ad 0016 strh.w r0, [sp, #22] + 8006d78: f7ff feac bl 8006ad4 + 8006d7c: 9903 ldr r1, [sp, #12] + 8006d7e: f8ad 0016 strh.w r0, [sp, #22] + 8006d82: 2303 movs r3, #3 + 8006d84: 2237 movs r2, #55 ; 0x37 + 8006d86: f7ff fec1 bl 8006b0c + 8006d8a: 9903 ldr r1, [sp, #12] + 8006d8c: f8ad 0016 strh.w r0, [sp, #22] + 8006d90: 2703 movs r7, #3 + 8006d92: f818 2b01 ldrb.w r2, [r8], #1 + 8006d96: f8bd 0016 ldrh.w r0, [sp, #22] + 8006d9a: 9103 str r1, [sp, #12] + 8006d9c: f7ff fed4 bl 8006b48 + 8006da0: 3f01 subs r7, #1 + 8006da2: f017 07ff ands.w r7, r7, #255 ; 0xff + 8006da6: 9903 ldr r1, [sp, #12] + 8006da8: f8ad 0016 strh.w r0, [sp, #22] + 8006dac: d1f1 bne.n 8006d92 + 8006dae: 462a mov r2, r5 + 8006db0: f7ff ff9a bl 8006ce8 + 8006db4: 4b15 ldr r3, [pc, #84] ; (8006e0c ) + 8006db6: 4816 ldr r0, [pc, #88] ; (8006e10 ) + 8006db8: 4a16 ldr r2, [pc, #88] ; (8006e14 ) + 8006dba: e9cd 6300 strd r6, r3, [sp] + 8006dbe: 4629 mov r1, r5 + 8006dc0: 6800 ldr r0, [r0, #0] + 8006dc2: 2343 movs r3, #67 ; 0x43 + 8006dc4: f7ff fd0e bl 80067e4 + 8006dc8: 4628 mov r0, r5 + 8006dca: f7fc f803 bl 8002dd4 + 8006dce: 79a3 ldrb r3, [r4, #6] + 8006dd0: 2bff cmp r3, #255 ; 0xff + 8006dd2: bf1c itt ne + 8006dd4: 3301 addne r3, #1 + 8006dd6: 71a3 strbne r3, [r4, #6] + 8006dd8: 79a2 ldrb r2, [r4, #6] + 8006dda: 2a05 cmp r2, #5 + 8006ddc: bf9f itttt ls + 8006dde: 2301 movls r3, #1 + 8006de0: 4093 lslls r3, r2 + 8006de2: ebc3 1243 rsbls r2, r3, r3, lsl #5 + 8006de6: eb03 0382 addls.w r3, r3, r2, lsl #2 + 8006dea: bf9a itte ls + 8006dec: 00db lslls r3, r3, #3 + 8006dee: b29b uxthls r3, r3 + 8006df0: f64e 2360 movwhi r3, #60000 ; 0xea60 + 8006df4: f44f 72fa mov.w r2, #500 ; 0x1f4 + 8006df8: 2000 movs r0, #0 + 8006dfa: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 8006dfe: b29b uxth r3, r3 + 8006e00: fbb3 f3f2 udiv r3, r3, r2 + 8006e04: 8123 strh r3, [r4, #8] + 8006e06: b006 add sp, #24 + 8006e08: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8006e0c: 0800c304 .word 0x0800c304 + 8006e10: 20008310 .word 0x20008310 + 8006e14: 0800c308 .word 0x0800c308 + 8006e18: 0800c005 .word 0x0800c005 + +08006e1c : + 8006e1c: b538 push {r3, r4, r5, lr} + 8006e1e: 6a44 ldr r4, [r0, #36] ; 0x24 + 8006e20: 4605 mov r5, r0 + 8006e22: 2108 movs r1, #8 + 8006e24: 4620 mov r0, r4 + 8006e26: f7ff fe4d bl 8006ac4 + 8006e2a: 2200 movs r2, #0 + 8006e2c: f104 011c add.w r1, r4, #28 + 8006e30: 4628 mov r0, r5 + 8006e32: f001 f98d bl 8008150 + 8006e36: 79a3 ldrb r3, [r4, #6] + 8006e38: 2bff cmp r3, #255 ; 0xff + 8006e3a: bf1c itt ne + 8006e3c: 3301 addne r3, #1 + 8006e3e: 71a3 strbne r3, [r4, #6] + 8006e40: 2301 movs r3, #1 + 8006e42: 8123 strh r3, [r4, #8] + 8006e44: bd38 pop {r3, r4, r5, pc} + ... + +08006e48 : + 8006e48: b513 push {r0, r1, r4, lr} + 8006e4a: 4604 mov r4, r0 + 8006e4c: b948 cbnz r0, 8006e62 + 8006e4e: 4b3e ldr r3, [pc, #248] ; (8006f48 ) + 8006e50: 493e ldr r1, [pc, #248] ; (8006f4c ) + 8006e52: f240 4215 movw r2, #1045 ; 0x415 + 8006e56: 483e ldr r0, [pc, #248] ; (8006f50 ) + 8006e58: b002 add sp, #8 + 8006e5a: e8bd 4010 ldmia.w sp!, {r4, lr} + 8006e5e: f002 baa3 b.w 80093a8 + 8006e62: 6a40 ldr r0, [r0, #36] ; 0x24 + 8006e64: b920 cbnz r0, 8006e70 + 8006e66: 4b38 ldr r3, [pc, #224] ; (8006f48 ) + 8006e68: 493a ldr r1, [pc, #232] ; (8006f54 ) + 8006e6a: f240 4217 movw r2, #1047 ; 0x417 + 8006e6e: e7f2 b.n 8006e56 + 8006e70: 2300 movs r3, #0 + 8006e72: 8243 strh r3, [r0, #18] + 8006e74: 6a83 ldr r3, [r0, #40] ; 0x28 + 8006e76: 1c5a adds r2, r3, #1 + 8006e78: d00c beq.n 8006e94 + 8006e7a: 331e adds r3, #30 + 8006e7c: f5b3 1f70 cmp.w r3, #3932160 ; 0x3c0000 + 8006e80: bf2e itee cs + 8006e82: f64f 73ff movwcs r3, #65535 ; 0xffff + 8006e86: 223c movcc r2, #60 ; 0x3c + 8006e88: fbb3 f3f2 udivcc r3, r3, r2 + 8006e8c: b29a uxth r2, r3 + 8006e8e: 2b00 cmp r3, #0 + 8006e90: d043 beq.n 8006f1a + 8006e92: 8282 strh r2, [r0, #20] + 8006e94: 6ac3 ldr r3, [r0, #44] ; 0x2c + 8006e96: 1c59 adds r1, r3, #1 + 8006e98: d00e beq.n 8006eb8 + 8006e9a: 331e adds r3, #30 + 8006e9c: f5b3 1f70 cmp.w r3, #3932160 ; 0x3c0000 + 8006ea0: bf2e itee cs + 8006ea2: f64f 73ff movwcs r3, #65535 ; 0xffff + 8006ea6: 223c movcc r2, #60 ; 0x3c + 8006ea8: fbb3 f3f2 udivcc r3, r3, r2 + 8006eac: b29a uxth r2, r3 + 8006eae: 2b00 cmp r3, #0 + 8006eb0: d036 beq.n 8006f20 + 8006eb2: 8142 strh r2, [r0, #10] + 8006eb4: 8943 ldrh r3, [r0, #10] + 8006eb6: 81c3 strh r3, [r0, #14] + 8006eb8: 6b03 ldr r3, [r0, #48] ; 0x30 + 8006eba: 1c5a adds r2, r3, #1 + 8006ebc: d00d beq.n 8006eda + 8006ebe: 331e adds r3, #30 + 8006ec0: f5b3 1f70 cmp.w r3, #3932160 ; 0x3c0000 + 8006ec4: bf2e itee cs + 8006ec6: f64f 73ff movwcs r3, #65535 ; 0xffff + 8006eca: 223c movcc r2, #60 ; 0x3c + 8006ecc: fbb3 f3f2 udivcc r3, r3, r2 + 8006ed0: b29a uxth r2, r3 + 8006ed2: b343 cbz r3, 8006f26 + 8006ed4: 8182 strh r2, [r0, #12] + 8006ed6: 8983 ldrh r3, [r0, #12] + 8006ed8: 8203 strh r3, [r0, #16] + 8006eda: 8983 ldrh r3, [r0, #12] + 8006edc: 8942 ldrh r2, [r0, #10] + 8006ede: 429a cmp r2, r3 + 8006ee0: d302 bcc.n 8006ee8 + 8006ee2: b10b cbz r3, 8006ee8 + 8006ee4: 2300 movs r3, #0 + 8006ee6: 8143 strh r3, [r0, #10] + 8006ee8: 79c3 ldrb r3, [r0, #7] + 8006eea: b1fb cbz r3, 8006f2c + 8006eec: 6a03 ldr r3, [r0, #32] + 8006eee: 9300 str r3, [sp, #0] + 8006ef0: 6a43 ldr r3, [r0, #36] ; 0x24 + 8006ef2: 9301 str r3, [sp, #4] + 8006ef4: b92b cbnz r3, 8006f02 + 8006ef6: 69c3 ldr r3, [r0, #28] + 8006ef8: 9a00 ldr r2, [sp, #0] + 8006efa: 4013 ands r3, r2 + 8006efc: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 + 8006f00: 9301 str r3, [sp, #4] + 8006f02: 210a movs r1, #10 + 8006f04: f7ff fdde bl 8006ac4 + 8006f08: 466a mov r2, sp + 8006f0a: f100 011c add.w r1, r0, #28 + 8006f0e: ab01 add r3, sp, #4 + 8006f10: 4620 mov r0, r4 + 8006f12: f7fb fd4f bl 80029b4 + 8006f16: b002 add sp, #8 + 8006f18: bd10 pop {r4, pc} + 8006f1a: 2301 movs r3, #1 + 8006f1c: 8283 strh r3, [r0, #20] + 8006f1e: e7b9 b.n 8006e94 + 8006f20: 2301 movs r3, #1 + 8006f22: 8143 strh r3, [r0, #10] + 8006f24: e7c6 b.n 8006eb4 + 8006f26: 2301 movs r3, #1 + 8006f28: 8183 strh r3, [r0, #12] + 8006f2a: e7d4 b.n 8006ed6 + 8006f2c: f990 201c ldrsb.w r2, [r0, #28] + 8006f30: 7f03 ldrb r3, [r0, #28] + 8006f32: 2a00 cmp r2, #0 + 8006f34: db01 blt.n 8006f3a + 8006f36: 23ff movs r3, #255 ; 0xff + 8006f38: e7d9 b.n 8006eee + 8006f3a: 2bbf cmp r3, #191 ; 0xbf + 8006f3c: bf8c ite hi + 8006f3e: f06f 437f mvnhi.w r3, #4278190080 ; 0xff000000 + 8006f42: f64f 73ff movwls r3, #65535 ; 0xffff + 8006f46: e7d2 b.n 8006eee + 8006f48: 0800bced .word 0x0800bced + 8006f4c: 0800be8b .word 0x0800be8b + 8006f50: 0800a54d .word 0x0800a54d + 8006f54: 0800bea4 .word 0x0800bea4 + +08006f58 : + 8006f58: b538 push {r3, r4, r5, lr} + 8006f5a: 4d15 ldr r5, [pc, #84] ; (8006fb0 ) + 8006f5c: 782b ldrb r3, [r5, #0] + 8006f5e: b9f3 cbnz r3, 8006f9e + 8006f60: 4c14 ldr r4, [pc, #80] ; (8006fb4 ) + 8006f62: 6823 ldr r3, [r4, #0] + 8006f64: b12b cbz r3, 8006f72 + 8006f66: 4b14 ldr r3, [pc, #80] ; (8006fb8 ) + 8006f68: 4914 ldr r1, [pc, #80] ; (8006fbc ) + 8006f6a: 4815 ldr r0, [pc, #84] ; (8006fc0 ) + 8006f6c: 22e5 movs r2, #229 ; 0xe5 + 8006f6e: f002 fa1b bl 80093a8 + 8006f72: f7ff fd83 bl 8006a7c + 8006f76: 6020 str r0, [r4, #0] + 8006f78: b1b0 cbz r0, 8006fa8 + 8006f7a: 7a42 ldrb r2, [r0, #9] + 8006f7c: 4911 ldr r1, [pc, #68] ; (8006fc4 ) + 8006f7e: f042 0220 orr.w r2, r2, #32 + 8006f82: 7242 strb r2, [r0, #9] + 8006f84: 2244 movs r2, #68 ; 0x44 + 8006f86: f7ff fbc7 bl 8006718 + 8006f8a: 490e ldr r1, [pc, #56] ; (8006fc4 ) + 8006f8c: 6820 ldr r0, [r4, #0] + 8006f8e: 2243 movs r2, #67 ; 0x43 + 8006f90: f7ff fd00 bl 8006994 + 8006f94: 490c ldr r1, [pc, #48] ; (8006fc8 ) + 8006f96: 6820 ldr r0, [r4, #0] + 8006f98: 2200 movs r2, #0 + 8006f9a: f7ff fd37 bl 8006a0c + 8006f9e: 782b ldrb r3, [r5, #0] + 8006fa0: 3301 adds r3, #1 + 8006fa2: 702b strb r3, [r5, #0] + 8006fa4: 2000 movs r0, #0 + 8006fa6: bd38 pop {r3, r4, r5, pc} + 8006fa8: f04f 30ff mov.w r0, #4294967295 + 8006fac: e7fb b.n 8006fa6 + 8006fae: bf00 nop + 8006fb0: 20008314 .word 0x20008314 + 8006fb4: 20008310 .word 0x20008310 + 8006fb8: 0800bced .word 0x0800bced + 8006fbc: 0800bebc .word 0x0800bebc + 8006fc0: 0800a54d .word 0x0800a54d + 8006fc4: 0800c304 .word 0x0800c304 + 8006fc8: 080072dd .word 0x080072dd + +08006fcc : + 8006fcc: b538 push {r3, r4, r5, lr} + 8006fce: 4d0a ldr r5, [pc, #40] ; (8006ff8 ) + 8006fd0: 782b ldrb r3, [r5, #0] + 8006fd2: b92b cbnz r3, 8006fe0 + 8006fd4: 4b09 ldr r3, [pc, #36] ; (8006ffc ) + 8006fd6: 490a ldr r1, [pc, #40] ; (8007000 ) + 8006fd8: 480a ldr r0, [pc, #40] ; (8007004 ) + 8006fda: 22ff movs r2, #255 ; 0xff + 8006fdc: f002 f9e4 bl 80093a8 + 8006fe0: 782c ldrb r4, [r5, #0] + 8006fe2: 3c01 subs r4, #1 + 8006fe4: b2e4 uxtb r4, r4 + 8006fe6: 702c strb r4, [r5, #0] + 8006fe8: b924 cbnz r4, 8006ff4 + 8006fea: 4d07 ldr r5, [pc, #28] ; (8007008 ) + 8006fec: 6828 ldr r0, [r5, #0] + 8006fee: f7ff fd1f bl 8006a30 + 8006ff2: 602c str r4, [r5, #0] + 8006ff4: bd38 pop {r3, r4, r5, pc} + 8006ff6: bf00 nop + 8006ff8: 20008314 .word 0x20008314 + 8006ffc: 0800bced .word 0x0800bced + 8007000: 0800bee1 .word 0x0800bee1 + 8007004: 0800a54d .word 0x0800a54d + 8007008: 20008310 .word 0x20008310 + +0800700c : + 800700c: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} + 8007010: 6a44 ldr r4, [r0, #36] ; 0x24 + 8007012: b085 sub sp, #20 + 8007014: 2103 movs r1, #3 + 8007016: 4607 mov r7, r0 + 8007018: 4620 mov r0, r4 + 800701a: f7ff fd53 bl 8006ac4 + 800701e: 460a mov r2, r1 + 8007020: f10d 030e add.w r3, sp, #14 + 8007024: 4621 mov r1, r4 + 8007026: 4638 mov r0, r7 + 8007028: f7ff fdca bl 8006bc0 + 800702c: 4606 mov r6, r0 + 800702e: 2800 cmp r0, #0 + 8007030: d04b beq.n 80070ca + 8007032: 6845 ldr r5, [r0, #4] + 8007034: f8bd 000e ldrh.w r0, [sp, #14] + 8007038: f8df 90d0 ldr.w r9, [pc, #208] ; 800710c + 800703c: 35f0 adds r5, #240 ; 0xf0 + 800703e: 2302 movs r3, #2 + 8007040: 2239 movs r2, #57 ; 0x39 + 8007042: 4629 mov r1, r5 + 8007044: f7ff fd62 bl 8006b0c + 8007048: f44f 7210 mov.w r2, #576 ; 0x240 + 800704c: 4629 mov r1, r5 + 800704e: f8ad 000e strh.w r0, [sp, #14] + 8007052: f7ff fd3f bl 8006ad4 + 8007056: 2304 movs r3, #4 + 8007058: 2232 movs r2, #50 ; 0x32 + 800705a: 4629 mov r1, r5 + 800705c: f8ad 000e strh.w r0, [sp, #14] + 8007060: f7ff fd54 bl 8006b0c + 8007064: 4680 mov r8, r0 + 8007066: f8ad 000e strh.w r0, [sp, #14] + 800706a: 69e0 ldr r0, [r4, #28] + 800706c: f7fb f96a bl 8002344 + 8007070: 4629 mov r1, r5 + 8007072: 4602 mov r2, r0 + 8007074: 4640 mov r0, r8 + 8007076: f7ff fd7f bl 8006b78 + 800707a: 2303 movs r3, #3 + 800707c: 2237 movs r2, #55 ; 0x37 + 800707e: 4629 mov r1, r5 + 8007080: f8ad 000e strh.w r0, [sp, #14] + 8007084: f7ff fd42 bl 8006b0c + 8007088: f04f 0803 mov.w r8, #3 + 800708c: f8ad 000e strh.w r0, [sp, #14] + 8007090: f819 2b01 ldrb.w r2, [r9], #1 + 8007094: f8bd 000e ldrh.w r0, [sp, #14] + 8007098: 4629 mov r1, r5 + 800709a: f7ff fd55 bl 8006b48 + 800709e: f108 38ff add.w r8, r8, #4294967295 + 80070a2: f018 08ff ands.w r8, r8, #255 ; 0xff + 80070a6: f8ad 000e strh.w r0, [sp, #14] + 80070aa: d1f1 bne.n 8007090 + 80070ac: 4632 mov r2, r6 + 80070ae: 4629 mov r1, r5 + 80070b0: f7ff fe1a bl 8006ce8 + 80070b4: 4813 ldr r0, [pc, #76] ; (8007104 ) + 80070b6: 9700 str r7, [sp, #0] + 80070b8: 4a13 ldr r2, [pc, #76] ; (8007108 ) + 80070ba: 6800 ldr r0, [r0, #0] + 80070bc: 2343 movs r3, #67 ; 0x43 + 80070be: 4631 mov r1, r6 + 80070c0: f7ff fc28 bl 8006914 + 80070c4: 4630 mov r0, r6 + 80070c6: f7fb fe85 bl 8002dd4 + 80070ca: 79a3 ldrb r3, [r4, #6] + 80070cc: 2bff cmp r3, #255 ; 0xff + 80070ce: bf1c itt ne + 80070d0: 3301 addne r3, #1 + 80070d2: 71a3 strbne r3, [r4, #6] + 80070d4: 79a3 ldrb r3, [r4, #6] + 80070d6: 2b09 cmp r3, #9 + 80070d8: bf9f itttt ls + 80070da: ebc3 1243 rsbls r2, r3, r3, lsl #5 + 80070de: eb03 0382 addls.w r3, r3, r2, lsl #2 + 80070e2: 00db lslls r3, r3, #3 + 80070e4: b29b uxthls r3, r3 + 80070e6: bf88 it hi + 80070e8: f242 7310 movwhi r3, #10000 ; 0x2710 + 80070ec: f44f 72fa mov.w r2, #500 ; 0x1f4 + 80070f0: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 80070f4: b29b uxth r3, r3 + 80070f6: fbb3 f3f2 udiv r3, r3, r2 + 80070fa: 8123 strh r3, [r4, #8] + 80070fc: b005 add sp, #20 + 80070fe: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} + 8007102: bf00 nop + 8007104: 20008310 .word 0x20008310 + 8007108: 0800c308 .word 0x0800c308 + 800710c: 0800c005 .word 0x0800c005 + +08007110 : + 8007110: b538 push {r3, r4, r5, lr} + 8007112: 4d17 ldr r5, [pc, #92] ; (8007170 ) + 8007114: 2300 movs r3, #0 + 8007116: e9c0 3308 strd r3, r3, [r0, #32] + 800711a: 78eb ldrb r3, [r5, #3] + 800711c: 4604 mov r4, r0 + 800711e: b113 cbz r3, 8007126 + 8007120: 4b14 ldr r3, [pc, #80] ; (8007174 ) + 8007122: 68db ldr r3, [r3, #12] + 8007124: 6283 str r3, [r0, #40] ; 0x28 + 8007126: 792b ldrb r3, [r5, #4] + 8007128: b1d3 cbz r3, 8007160 + 800712a: 4b12 ldr r3, [pc, #72] ; (8007174 ) + 800712c: 691b ldr r3, [r3, #16] + 800712e: 62e3 str r3, [r4, #44] ; 0x2c + 8007130: 796b ldrb r3, [r5, #5] + 8007132: b1c3 cbz r3, 8007166 + 8007134: 4b0f ldr r3, [pc, #60] ; (8007174 ) + 8007136: 695b ldr r3, [r3, #20] + 8007138: 6323 str r3, [r4, #48] ; 0x30 + 800713a: 690b ldr r3, [r1, #16] + 800713c: 61e3 str r3, [r4, #28] + 800713e: 79ab ldrb r3, [r5, #6] + 8007140: b12b cbz r3, 800714e + 8007142: 4b0c ldr r3, [pc, #48] ; (8007174 ) + 8007144: 6998 ldr r0, [r3, #24] + 8007146: f7fb f8fd bl 8002344 + 800714a: 2301 movs r3, #1 + 800714c: 6220 str r0, [r4, #32] + 800714e: 71e3 strb r3, [r4, #7] + 8007150: 79eb ldrb r3, [r5, #7] + 8007152: b123 cbz r3, 800715e + 8007154: 4b07 ldr r3, [pc, #28] ; (8007174 ) + 8007156: 69d8 ldr r0, [r3, #28] + 8007158: f7fb f8f4 bl 8002344 + 800715c: 6260 str r0, [r4, #36] ; 0x24 + 800715e: bd38 pop {r3, r4, r5, pc} + 8007160: 6aa3 ldr r3, [r4, #40] ; 0x28 + 8007162: 085b lsrs r3, r3, #1 + 8007164: e7e3 b.n 800712e + 8007166: 6aa3 ldr r3, [r4, #40] ; 0x28 + 8007168: ebc3 03c3 rsb r3, r3, r3, lsl #3 + 800716c: 08db lsrs r3, r3, #3 + 800716e: e7e3 b.n 8007138 + 8007170: 20008315 .word 0x20008315 + 8007174: 20008320 .word 0x20008320 + +08007178 : + 8007178: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} + 800717c: 4607 mov r7, r0 + 800717e: b085 sub sp, #20 + 8007180: b948 cbnz r0, 8007196 + 8007182: 4b4e ldr r3, [pc, #312] ; (80072bc ) + 8007184: 494e ldr r1, [pc, #312] ; (80072c0 ) + 8007186: f240 1277 movw r2, #375 ; 0x177 + 800718a: 484e ldr r0, [pc, #312] ; (80072c4 ) + 800718c: b005 add sp, #20 + 800718e: e8bd 43f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, lr} + 8007192: f002 b909 b.w 80093a8 + 8007196: 6a44 ldr r4, [r0, #36] ; 0x24 + 8007198: b924 cbnz r4, 80071a4 + 800719a: 4b48 ldr r3, [pc, #288] ; (80072bc ) + 800719c: 494a ldr r1, [pc, #296] ; (80072c8 ) + 800719e: f240 1279 movw r2, #377 ; 0x179 + 80071a2: e7f2 b.n 800718a + 80071a4: 2101 movs r1, #1 + 80071a6: 4620 mov r0, r4 + 80071a8: f7ff fc8c bl 8006ac4 + 80071ac: 2203 movs r2, #3 + 80071ae: f10d 030e add.w r3, sp, #14 + 80071b2: 4621 mov r1, r4 + 80071b4: 4638 mov r0, r7 + 80071b6: f7ff fd03 bl 8006bc0 + 80071ba: 4606 mov r6, r0 + 80071bc: 2800 cmp r0, #0 + 80071be: d05e beq.n 800727e + 80071c0: 6845 ldr r5, [r0, #4] + 80071c2: f8bd 000e ldrh.w r0, [sp, #14] + 80071c6: f8df 9110 ldr.w r9, [pc, #272] ; 80072d8 + 80071ca: 35f0 adds r5, #240 ; 0xf0 + 80071cc: 2302 movs r3, #2 + 80071ce: 2239 movs r2, #57 ; 0x39 + 80071d0: 4629 mov r1, r5 + 80071d2: f7ff fc9b bl 8006b0c + 80071d6: 8d3a ldrh r2, [r7, #40] ; 0x28 + 80071d8: f8ad 000e strh.w r0, [sp, #14] + 80071dc: 4629 mov r1, r5 + 80071de: f7ff fc79 bl 8006ad4 + 80071e2: 2304 movs r3, #4 + 80071e4: 2232 movs r2, #50 ; 0x32 + 80071e6: 4629 mov r1, r5 + 80071e8: f8ad 000e strh.w r0, [sp, #14] + 80071ec: f7ff fc8e bl 8006b0c + 80071f0: 4680 mov r8, r0 + 80071f2: f8ad 000e strh.w r0, [sp, #14] + 80071f6: 69e0 ldr r0, [r4, #28] + 80071f8: f7fb f8a4 bl 8002344 + 80071fc: 4629 mov r1, r5 + 80071fe: 4602 mov r2, r0 + 8007200: 4640 mov r0, r8 + 8007202: f7ff fcb9 bl 8006b78 + 8007206: 2304 movs r3, #4 + 8007208: 2236 movs r2, #54 ; 0x36 + 800720a: 4629 mov r1, r5 + 800720c: f8ad 000e strh.w r0, [sp, #14] + 8007210: f7ff fc7c bl 8006b0c + 8007214: 4680 mov r8, r0 + 8007216: f8ad 000e strh.w r0, [sp, #14] + 800721a: 69a0 ldr r0, [r4, #24] + 800721c: f7fb f892 bl 8002344 + 8007220: 4629 mov r1, r5 + 8007222: 4602 mov r2, r0 + 8007224: 4640 mov r0, r8 + 8007226: f7ff fca7 bl 8006b78 + 800722a: 2303 movs r3, #3 + 800722c: 2237 movs r2, #55 ; 0x37 + 800722e: 4629 mov r1, r5 + 8007230: f8ad 000e strh.w r0, [sp, #14] + 8007234: f7ff fc6a bl 8006b0c + 8007238: f04f 0803 mov.w r8, #3 + 800723c: f8ad 000e strh.w r0, [sp, #14] + 8007240: f819 2b01 ldrb.w r2, [r9], #1 + 8007244: f8bd 000e ldrh.w r0, [sp, #14] + 8007248: 4629 mov r1, r5 + 800724a: f7ff fc7d bl 8006b48 + 800724e: f108 38ff add.w r8, r8, #4294967295 + 8007252: f018 08ff ands.w r8, r8, #255 ; 0xff + 8007256: f8ad 000e strh.w r0, [sp, #14] + 800725a: d1f1 bne.n 8007240 + 800725c: 4632 mov r2, r6 + 800725e: 4629 mov r1, r5 + 8007260: f7ff fd42 bl 8006ce8 + 8007264: 4b19 ldr r3, [pc, #100] ; (80072cc ) + 8007266: 481a ldr r0, [pc, #104] ; (80072d0 ) + 8007268: 4a1a ldr r2, [pc, #104] ; (80072d4 ) + 800726a: e9cd 7300 strd r7, r3, [sp] + 800726e: 4631 mov r1, r6 + 8007270: 6800 ldr r0, [r0, #0] + 8007272: 2343 movs r3, #67 ; 0x43 + 8007274: f7ff fab6 bl 80067e4 + 8007278: 4630 mov r0, r6 + 800727a: f7fb fdab bl 8002dd4 + 800727e: 79a3 ldrb r3, [r4, #6] + 8007280: 2bff cmp r3, #255 ; 0xff + 8007282: bf1c itt ne + 8007284: 3301 addne r3, #1 + 8007286: 71a3 strbne r3, [r4, #6] + 8007288: 79a2 ldrb r2, [r4, #6] + 800728a: 2a05 cmp r2, #5 + 800728c: bf9f itttt ls + 800728e: 2301 movls r3, #1 + 8007290: 4093 lslls r3, r2 + 8007292: ebc3 1243 rsbls r2, r3, r3, lsl #5 + 8007296: eb03 0382 addls.w r3, r3, r2, lsl #2 + 800729a: bf9a itte ls + 800729c: 00db lslls r3, r3, #3 + 800729e: b29b uxthls r3, r3 + 80072a0: f64e 2360 movwhi r3, #60000 ; 0xea60 + 80072a4: f44f 72fa mov.w r2, #500 ; 0x1f4 + 80072a8: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 80072ac: b29b uxth r3, r3 + 80072ae: fbb3 f3f2 udiv r3, r3, r2 + 80072b2: 8123 strh r3, [r4, #8] + 80072b4: b005 add sp, #20 + 80072b6: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} + 80072ba: bf00 nop + 80072bc: 0800bced .word 0x0800bced + 80072c0: 0800bf05 .word 0x0800bf05 + 80072c4: 0800a54d .word 0x0800a54d + 80072c8: 0800bf20 .word 0x0800bf20 + 80072cc: 0800c304 .word 0x0800c304 + 80072d0: 20008310 .word 0x20008310 + 80072d4: 0800c308 .word 0x0800c308 + 80072d8: 0800c005 .word 0x0800c005 + +080072dc : + 80072dc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80072e0: 4b9e ldr r3, [pc, #632] ; (800755c ) + 80072e2: 685d ldr r5, [r3, #4] + 80072e4: b089 sub sp, #36 ; 0x24 + 80072e6: 6a6b ldr r3, [r5, #36] ; 0x24 + 80072e8: 9201 str r2, [sp, #4] + 80072ea: 9302 str r3, [sp, #8] + 80072ec: 2b00 cmp r3, #0 + 80072ee: d03d beq.n 800736c + 80072f0: 791b ldrb r3, [r3, #4] + 80072f2: 2b00 cmp r3, #0 + 80072f4: d03a beq.n 800736c + 80072f6: 8953 ldrh r3, [r2, #10] + 80072f8: 2b2b cmp r3, #43 ; 0x2b + 80072fa: d937 bls.n 800736c + 80072fc: 6852 ldr r2, [r2, #4] + 80072fe: 7813 ldrb r3, [r2, #0] + 8007300: 2b02 cmp r3, #2 + 8007302: d133 bne.n 800736c + 8007304: f895 4030 ldrb.w r4, [r5, #48] ; 0x30 + 8007308: f105 002a add.w r0, r5, #42 ; 0x2a + 800730c: f102 011c add.w r1, r2, #28 + 8007310: 2300 movs r3, #0 + 8007312: b2de uxtb r6, r3 + 8007314: 42b4 cmp r4, r6 + 8007316: d901 bls.n 800731c + 8007318: 2b06 cmp r3, #6 + 800731a: d11f bne.n 800735c + 800731c: 6850 ldr r0, [r2, #4] + 800731e: f7fb f811 bl 8002344 + 8007322: 9b02 ldr r3, [sp, #8] + 8007324: 681b ldr r3, [r3, #0] + 8007326: 4298 cmp r0, r3 + 8007328: d120 bne.n 800736c + 800732a: f8df b25c ldr.w fp, [pc, #604] ; 8007588 + 800732e: 9a01 ldr r2, [sp, #4] + 8007330: 2300 movs r3, #0 + 8007332: f8cb 3004 str.w r3, [fp, #4] + 8007336: 8952 ldrh r2, [r2, #10] + 8007338: f8cb 3000 str.w r3, [fp] + 800733c: 2a2b cmp r2, #43 ; 0x2b + 800733e: d915 bls.n 800736c + 8007340: 9a01 ldr r2, [sp, #4] + 8007342: 9303 str r3, [sp, #12] + 8007344: f8b2 9008 ldrh.w r9, [r2, #8] + 8007348: f04f 0af0 mov.w sl, #240 ; 0xf0 + 800734c: 9e01 ldr r6, [sp, #4] + 800734e: 8973 ldrh r3, [r6, #10] + 8007350: 4553 cmp r3, sl + 8007352: d911 bls.n 8007378 + 8007354: 6873 ldr r3, [r6, #4] + 8007356: 9305 str r3, [sp, #20] + 8007358: 4654 mov r4, sl + 800735a: e0d6 b.n 800750a + 800735c: f810 7b01 ldrb.w r7, [r0], #1 + 8007360: f811 6b01 ldrb.w r6, [r1], #1 + 8007364: 42b7 cmp r7, r6 + 8007366: f103 0301 add.w r3, r3, #1 + 800736a: d0d2 beq.n 8007312 + 800736c: 9801 ldr r0, [sp, #4] + 800736e: b009 add sp, #36 ; 0x24 + 8007370: e8bd 4ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007374: f7fb bd2e b.w 8002dd4 + 8007378: 6836 ldr r6, [r6, #0] + 800737a: ebaa 0203 sub.w r2, sl, r3 + 800737e: eba9 0903 sub.w r9, r9, r3 + 8007382: fa1f fa82 uxth.w sl, r2 + 8007386: fa1f f989 uxth.w r9, r9 + 800738a: 2e00 cmp r6, #0 + 800738c: d1df bne.n 800734e + 800738e: e7ed b.n 800736c + 8007390: 1ca3 adds r3, r4, #2 + 8007392: b29b uxth r3, r3 + 8007394: 42a3 cmp r3, r4 + 8007396: 9304 str r3, [sp, #16] + 8007398: d3e8 bcc.n 800736c + 800739a: 8973 ldrh r3, [r6, #10] + 800739c: 1c60 adds r0, r4, #1 + 800739e: 4298 cmp r0, r3 + 80073a0: da16 bge.n 80073d0 + 80073a2: 9b05 ldr r3, [sp, #20] + 80073a4: 4423 add r3, r4 + 80073a6: 785b ldrb r3, [r3, #1] + 80073a8: 2a3b cmp r2, #59 ; 0x3b + 80073aa: d854 bhi.n 8007456 + 80073ac: 2a32 cmp r2, #50 ; 0x32 + 80073ae: f200 8186 bhi.w 80076be + 80073b2: 2a01 cmp r2, #1 + 80073b4: d013 beq.n 80073de + 80073b6: 2a03 cmp r2, #3 + 80073b8: d14d bne.n 8007456 + 80073ba: 2b03 cmp r3, #3 + 80073bc: f200 8168 bhi.w 8007690 + 80073c0: 4b67 ldr r3, [pc, #412] ; (8007560 ) + 80073c2: 4968 ldr r1, [pc, #416] ; (8007564 ) + 80073c4: f240 6233 movw r2, #1587 ; 0x633 + 80073c8: 4867 ldr r0, [pc, #412] ; (8007568 ) + 80073ca: f001 ffed bl 80093a8 + 80073ce: e7cd b.n 800736c + 80073d0: 6833 ldr r3, [r6, #0] + 80073d2: 2b00 cmp r3, #0 + 80073d4: f000 8132 beq.w 800763c + 80073d8: 685b ldr r3, [r3, #4] + 80073da: 781b ldrb r3, [r3, #0] + 80073dc: e7e4 b.n 80073a8 + 80073de: 2b04 cmp r3, #4 + 80073e0: f000 8152 beq.w 8007688 + 80073e4: 4b5e ldr r3, [pc, #376] ; (8007560 ) + 80073e6: f240 622e movw r2, #1582 ; 0x62e + 80073ea: 4960 ldr r1, [pc, #384] ; (800756c ) + 80073ec: e7ec b.n 80073c8 + 80073ee: 2b04 cmp r3, #4 + 80073f0: f000 8152 beq.w 8007698 + 80073f4: 4b5a ldr r3, [pc, #360] ; (8007560 ) + 80073f6: f240 6241 movw r2, #1601 ; 0x641 + 80073fa: e7f6 b.n 80073ea + 80073fc: 2b01 cmp r3, #1 + 80073fe: d004 beq.n 800740a + 8007400: 4b57 ldr r3, [pc, #348] ; (8007560 ) + 8007402: f240 624f movw r2, #1615 ; 0x64f + 8007406: 495a ldr r1, [pc, #360] ; (8007570 ) + 8007408: e7de b.n 80073c8 + 800740a: f1ba 0ff0 cmp.w sl, #240 ; 0xf0 + 800740e: f000 8147 beq.w 80076a0 + 8007412: 4b53 ldr r3, [pc, #332] ; (8007560 ) + 8007414: 4957 ldr r1, [pc, #348] ; (8007574 ) + 8007416: f240 6251 movw r2, #1617 ; 0x651 + 800741a: e7d5 b.n 80073c8 + 800741c: 2b01 cmp r3, #1 + 800741e: f000 8147 beq.w 80076b0 + 8007422: 4b4f ldr r3, [pc, #316] ; (8007560 ) + 8007424: f240 6255 movw r2, #1621 ; 0x655 + 8007428: e7ed b.n 8007406 + 800742a: 2b04 cmp r3, #4 + 800742c: f000 813c beq.w 80076a8 + 8007430: 4b4b ldr r3, [pc, #300] ; (8007560 ) + 8007432: f240 6259 movw r2, #1625 ; 0x659 + 8007436: e7d8 b.n 80073ea + 8007438: 2b04 cmp r3, #4 + 800743a: f000 8139 beq.w 80076b0 + 800743e: 4b48 ldr r3, [pc, #288] ; (8007560 ) + 8007440: f240 625d movw r2, #1629 ; 0x65d + 8007444: e7d1 b.n 80073ea + 8007446: 2b04 cmp r3, #4 + 8007448: f000 8135 beq.w 80076b6 + 800744c: 4b44 ldr r3, [pc, #272] ; (8007560 ) + 800744e: f240 6261 movw r2, #1633 ; 0x661 + 8007452: e7ca b.n 80073ea + 8007454: 2300 movs r3, #0 + 8007456: b9a2 cbnz r2, 8007482 + 8007458: b284 uxth r4, r0 + 800745a: 8973 ldrh r3, [r6, #10] + 800745c: 42a3 cmp r3, r4 + 800745e: d854 bhi.n 800750a + 8007460: 1ae4 subs r4, r4, r3 + 8007462: eba9 0903 sub.w r9, r9, r3 + 8007466: b2a4 uxth r4, r4 + 8007468: fa1f f989 uxth.w r9, r9 + 800746c: 454c cmp r4, r9 + 800746e: f4bf af7d bcs.w 800736c + 8007472: 6836 ldr r6, [r6, #0] + 8007474: 2e00 cmp r6, #0 + 8007476: d146 bne.n 8007506 + 8007478: 4b39 ldr r3, [pc, #228] ; (8007560 ) + 800747a: 493f ldr r1, [pc, #252] ; (8007578 ) + 800747c: f240 629d movw r2, #1693 ; 0x69d + 8007480: e7a2 b.n 80073c8 + 8007482: f04f 38ff mov.w r8, #4294967295 + 8007486: 2700 movs r7, #0 + 8007488: 441c add r4, r3 + 800748a: f64f 72fd movw r2, #65533 ; 0xfffd + 800748e: 4294 cmp r4, r2 + 8007490: f73f af6c bgt.w 800736c + 8007494: 9a04 ldr r2, [sp, #16] + 8007496: 4413 add r3, r2 + 8007498: b29c uxth r4, r3 + 800749a: 2f00 cmp r7, #0 + 800749c: d0dd beq.n 800745a + 800749e: 2300 movs r3, #0 + 80074a0: f1b8 0f07 cmp.w r8, #7 + 80074a4: 9307 str r3, [sp, #28] + 80074a6: d906 bls.n 80074b6 + 80074a8: 4b2d ldr r3, [pc, #180] ; (8007560 ) + 80074aa: 4934 ldr r1, [pc, #208] ; (800757c ) + 80074ac: 482e ldr r0, [pc, #184] ; (8007568 ) + 80074ae: f44f 62cf mov.w r2, #1656 ; 0x678 + 80074b2: f001 ff79 bl 80093a8 + 80074b6: f81b 3008 ldrb.w r3, [fp, r8] + 80074ba: 2b00 cmp r3, #0 + 80074bc: d1cd bne.n 800745a + 80074be: b2ba uxth r2, r7 + 80074c0: 9b04 ldr r3, [sp, #16] + 80074c2: 9204 str r2, [sp, #16] + 80074c4: a907 add r1, sp, #28 + 80074c6: 4630 mov r0, r6 + 80074c8: f7fb fea2 bl 8003210 + 80074cc: 9a04 ldr r2, [sp, #16] + 80074ce: 4282 cmp r2, r0 + 80074d0: f47f af4c bne.w 800736c + 80074d4: 2f04 cmp r7, #4 + 80074d6: d10b bne.n 80074f0 + 80074d8: 9807 ldr r0, [sp, #28] + 80074da: f7fa ff33 bl 8002344 + 80074de: 9007 str r0, [sp, #28] + 80074e0: 2301 movs r3, #1 + 80074e2: 4a27 ldr r2, [pc, #156] ; (8007580 ) + 80074e4: f80b 3008 strb.w r3, [fp, r8] + 80074e8: 9b07 ldr r3, [sp, #28] + 80074ea: f842 3028 str.w r3, [r2, r8, lsl #2] + 80074ee: e7b4 b.n 800745a + 80074f0: 2f01 cmp r7, #1 + 80074f2: d004 beq.n 80074fe + 80074f4: 4b1a ldr r3, [pc, #104] ; (8007560 ) + 80074f6: 4923 ldr r1, [pc, #140] ; (8007584 ) + 80074f8: f44f 62d2 mov.w r2, #1680 ; 0x690 + 80074fc: e764 b.n 80073c8 + 80074fe: f89d 301c ldrb.w r3, [sp, #28] + 8007502: 9307 str r3, [sp, #28] + 8007504: e7ec b.n 80074e0 + 8007506: 6873 ldr r3, [r6, #4] + 8007508: 9305 str r3, [sp, #20] + 800750a: 454c cmp r4, r9 + 800750c: d204 bcs.n 8007518 + 800750e: 9b05 ldr r3, [sp, #20] + 8007510: 5d1a ldrb r2, [r3, r4] + 8007512: 2aff cmp r2, #255 ; 0xff + 8007514: f47f af3c bne.w 8007390 + 8007518: f89b 3000 ldrb.w r3, [fp] + 800751c: 2b00 cmp r3, #0 + 800751e: d135 bne.n 800758c + 8007520: 9b03 ldr r3, [sp, #12] + 8007522: 2b00 cmp r3, #0 + 8007524: d13b bne.n 800759e + 8007526: f89b 3001 ldrb.w r3, [fp, #1] + 800752a: 2b00 cmp r3, #0 + 800752c: f43f af1e beq.w 800736c + 8007530: 9b01 ldr r3, [sp, #4] + 8007532: 4a13 ldr r2, [pc, #76] ; (8007580 ) + 8007534: 6859 ldr r1, [r3, #4] + 8007536: 7913 ldrb r3, [r2, #4] + 8007538: 2b05 cmp r3, #5 + 800753a: d14b bne.n 80075d4 + 800753c: 9b02 ldr r3, [sp, #8] + 800753e: 795b ldrb r3, [r3, #5] + 8007540: 2b01 cmp r3, #1 + 8007542: d13c bne.n 80075be + 8007544: 6a68 ldr r0, [r5, #36] ; 0x24 + 8007546: f7ff fde3 bl 8007110 + 800754a: f895 3031 ldrb.w r3, [r5, #49] ; 0x31 + 800754e: 071b lsls r3, r3, #28 + 8007550: 4628 mov r0, r5 + 8007552: d53c bpl.n 80075ce + 8007554: f7ff fc62 bl 8006e1c + 8007558: e708 b.n 800736c + 800755a: bf00 nop + 800755c: 20004d1c .word 0x20004d1c + 8007560: 0800bced .word 0x0800bced + 8007564: 0800bf43 .word 0x0800bf43 + 8007568: 0800a54d .word 0x0800a54d + 800756c: 0800bf3a .word 0x0800bf3a + 8007570: 0800bf55 .word 0x0800bf55 + 8007574: 0800bf5e .word 0x0800bf5e + 8007578: 0800bf99 .word 0x0800bf99 + 800757c: 0800bf75 .word 0x0800bf75 + 8007580: 20008320 .word 0x20008320 + 8007584: 0800bf86 .word 0x0800bf86 + 8007588: 20008315 .word 0x20008315 + 800758c: 4b59 ldr r3, [pc, #356] ; (80076f4 ) + 800758e: 681b ldr r3, [r3, #0] + 8007590: 2200 movs r2, #0 + 8007592: 2b01 cmp r3, #1 + 8007594: f88b 2000 strb.w r2, [fp] + 8007598: d00c beq.n 80075b4 + 800759a: 2b02 cmp r3, #2 + 800759c: d106 bne.n 80075ac + 800759e: 2300 movs r3, #0 + 80075a0: 9303 str r3, [sp, #12] + 80075a2: f04f 096c mov.w r9, #108 ; 0x6c + 80075a6: f04f 0a2c mov.w sl, #44 ; 0x2c + 80075aa: e6cf b.n 800734c + 80075ac: 2b03 cmp r3, #3 + 80075ae: d1b7 bne.n 8007520 + 80075b0: 2301 movs r3, #1 + 80075b2: 9303 str r3, [sp, #12] + 80075b4: f04f 09ec mov.w r9, #236 ; 0xec + 80075b8: f04f 0a6c mov.w sl, #108 ; 0x6c + 80075bc: e6c6 b.n 800734c + 80075be: 3b03 subs r3, #3 + 80075c0: 2b02 cmp r3, #2 + 80075c2: f63f aed3 bhi.w 800736c + 80075c6: 6a68 ldr r0, [r5, #36] ; 0x24 + 80075c8: f7ff fda2 bl 8007110 + 80075cc: 4628 mov r0, r5 + 80075ce: f7ff fc3b bl 8006e48 + 80075d2: e6cb b.n 800736c + 80075d4: 2b06 cmp r3, #6 + 80075d6: d115 bne.n 8007604 + 80075d8: 9b02 ldr r3, [sp, #8] + 80075da: 795b ldrb r3, [r3, #5] + 80075dc: 1eda subs r2, r3, #3 + 80075de: 2a02 cmp r2, #2 + 80075e0: d902 bls.n 80075e8 + 80075e2: 2b01 cmp r3, #1 + 80075e4: f47f aec2 bne.w 800736c + 80075e8: 6a68 ldr r0, [r5, #36] ; 0x24 + 80075ea: 210c movs r1, #12 + 80075ec: f7ff fa6a bl 8006ac4 + 80075f0: 4b41 ldr r3, [pc, #260] ; (80076f8 ) + 80075f2: 4628 mov r0, r5 + 80075f4: 461a mov r2, r3 + 80075f6: 4619 mov r1, r3 + 80075f8: f7fb f9dc bl 80029b4 + 80075fc: 4628 mov r0, r5 + 80075fe: f7ff fb97 bl 8006d30 + 8007602: e6b3 b.n 800736c + 8007604: 2b02 cmp r3, #2 + 8007606: f47f aeb1 bne.w 800736c + 800760a: 9b02 ldr r3, [sp, #8] + 800760c: 795b ldrb r3, [r3, #5] + 800760e: 2b06 cmp r3, #6 + 8007610: f47f aeac bne.w 800736c + 8007614: f89b 3002 ldrb.w r3, [fp, #2] + 8007618: 2b00 cmp r3, #0 + 800761a: f43f aea7 beq.w 800736c + 800761e: 6a6c ldr r4, [r5, #36] ; 0x24 + 8007620: 9b03 ldr r3, [sp, #12] + 8007622: 8123 strh r3, [r4, #8] + 8007624: 6890 ldr r0, [r2, #8] + 8007626: 9102 str r1, [sp, #8] + 8007628: f7fa fe8c bl 8002344 + 800762c: 9902 ldr r1, [sp, #8] + 800762e: 61a0 str r0, [r4, #24] + 8007630: 690b ldr r3, [r1, #16] + 8007632: 61e3 str r3, [r4, #28] + 8007634: 4628 mov r0, r5 + 8007636: f7ff fd9f bl 8007178 + 800763a: e697 b.n 800736c + 800763c: 2a3b cmp r2, #59 ; 0x3b + 800763e: f63f af0a bhi.w 8007456 + 8007642: 2a32 cmp r2, #50 ; 0x32 + 8007644: d806 bhi.n 8007654 + 8007646: 2a01 cmp r2, #1 + 8007648: f43f aecc beq.w 80073e4 + 800764c: 2a03 cmp r2, #3 + 800764e: f43f aeb7 beq.w 80073c0 + 8007652: e700 b.n 8007456 + 8007654: f1a2 0333 sub.w r3, r2, #51 ; 0x33 + 8007658: 2b08 cmp r3, #8 + 800765a: f63f aefb bhi.w 8007454 + 800765e: a101 add r1, pc, #4 ; (adr r1, 8007664 ) + 8007660: f851 f023 ldr.w pc, [r1, r3, lsl #2] + 8007664: 080073f5 .word 0x080073f5 + 8007668: 08007401 .word 0x08007401 + 800766c: 08007423 .word 0x08007423 + 8007670: 08007431 .word 0x08007431 + 8007674: 08007455 .word 0x08007455 + 8007678: 08007455 .word 0x08007455 + 800767c: 08007455 .word 0x08007455 + 8007680: 0800743f .word 0x0800743f + 8007684: 0800744d .word 0x0800744d + 8007688: 461f mov r7, r3 + 800768a: f04f 0806 mov.w r8, #6 + 800768e: e6fb b.n 8007488 + 8007690: f04f 0807 mov.w r8, #7 + 8007694: 2704 movs r7, #4 + 8007696: e6f7 b.n 8007488 + 8007698: 461f mov r7, r3 + 800769a: f04f 0803 mov.w r8, #3 + 800769e: e6f3 b.n 8007488 + 80076a0: 461f mov r7, r3 + 80076a2: f04f 0800 mov.w r8, #0 + 80076a6: e6ef b.n 8007488 + 80076a8: 461f mov r7, r3 + 80076aa: f04f 0802 mov.w r8, #2 + 80076ae: e6eb b.n 8007488 + 80076b0: 461f mov r7, r3 + 80076b2: 4698 mov r8, r3 + 80076b4: e6e8 b.n 8007488 + 80076b6: 461f mov r7, r3 + 80076b8: f04f 0805 mov.w r8, #5 + 80076bc: e6e4 b.n 8007488 + 80076be: f1a2 0133 sub.w r1, r2, #51 ; 0x33 + 80076c2: 2908 cmp r1, #8 + 80076c4: f63f aec7 bhi.w 8007456 + 80076c8: a701 add r7, pc, #4 ; (adr r7, 80076d0 ) + 80076ca: f857 f021 ldr.w pc, [r7, r1, lsl #2] + 80076ce: bf00 nop + 80076d0: 080073ef .word 0x080073ef + 80076d4: 080073fd .word 0x080073fd + 80076d8: 0800741d .word 0x0800741d + 80076dc: 0800742b .word 0x0800742b + 80076e0: 08007457 .word 0x08007457 + 80076e4: 08007457 .word 0x08007457 + 80076e8: 08007457 .word 0x08007457 + 80076ec: 08007439 .word 0x08007439 + 80076f0: 08007447 .word 0x08007447 + 80076f4: 20008320 .word 0x20008320 + 80076f8: 0800c304 .word 0x0800c304 + +080076fc : + 80076fc: b538 push {r3, r4, r5, lr} + 80076fe: 6a45 ldr r5, [r0, #36] ; 0x24 + 8007700: 4604 mov r4, r0 + 8007702: b1fd cbz r5, 8007744 + 8007704: 796b ldrb r3, [r5, #5] + 8007706: 2b05 cmp r3, #5 + 8007708: d809 bhi.n 800771e + 800770a: 2b02 cmp r3, #2 + 800770c: d809 bhi.n 8007722 + 800770e: b1cb cbz r3, 8007744 + 8007710: 2300 movs r3, #0 + 8007712: 71ab strb r3, [r5, #6] + 8007714: 4620 mov r0, r4 + 8007716: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 800771a: f7ff bb09 b.w 8006d30 + 800771e: 2b0a cmp r3, #10 + 8007720: d106 bne.n 8007730 + 8007722: 2300 movs r3, #0 + 8007724: 71ab strb r3, [r5, #6] + 8007726: 4620 mov r0, r4 + 8007728: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 800772c: f7ff bc6e b.w 800700c + 8007730: 2b0c cmp r3, #12 + 8007732: d9ed bls.n 8007710 + 8007734: 4b04 ldr r3, [pc, #16] ; (8007748 ) + 8007736: 4905 ldr r1, [pc, #20] ; (800774c ) + 8007738: 4805 ldr r0, [pc, #20] ; (8007750 ) + 800773a: f240 326d movw r2, #877 ; 0x36d + 800773e: f001 fe33 bl 80093a8 + 8007742: e7e5 b.n 8007710 + 8007744: bd38 pop {r3, r4, r5, pc} + 8007746: bf00 nop + 8007748: 0800bced .word 0x0800bced + 800774c: 0800bfd0 .word 0x0800bfd0 + 8007750: 0800a54d .word 0x0800a54d + +08007754 : + 8007754: b5f0 push {r4, r5, r6, r7, lr} + 8007756: 4606 mov r6, r0 + 8007758: b087 sub sp, #28 + 800775a: b948 cbnz r0, 8007770 + 800775c: 4b28 ldr r3, [pc, #160] ; (8007800 ) + 800775e: 4929 ldr r1, [pc, #164] ; (8007804 ) + 8007760: 4829 ldr r0, [pc, #164] ; (8007808 ) + 8007762: f240 328b movw r2, #907 ; 0x38b + 8007766: b007 add sp, #28 + 8007768: e8bd 40f0 ldmia.w sp!, {r4, r5, r6, r7, lr} + 800776c: f001 be1c b.w 80093a8 + 8007770: 6a44 ldr r4, [r0, #36] ; 0x24 + 8007772: 2c00 cmp r4, #0 + 8007774: d041 beq.n 80077fa + 8007776: 7963 ldrb r3, [r4, #5] + 8007778: 2b08 cmp r3, #8 + 800777a: d13e bne.n 80077fa + 800777c: 680a ldr r2, [r1, #0] + 800777e: 69e3 ldr r3, [r4, #28] + 8007780: 429a cmp r2, r3 + 8007782: d13a bne.n 80077fa + 8007784: 210c movs r1, #12 + 8007786: 4620 mov r0, r4 + 8007788: f7ff f99c bl 8006ac4 + 800778c: 2204 movs r2, #4 + 800778e: f10d 0316 add.w r3, sp, #22 + 8007792: 4621 mov r1, r4 + 8007794: 4630 mov r0, r6 + 8007796: f7ff fa13 bl 8006bc0 + 800779a: 4605 mov r5, r0 + 800779c: b330 cbz r0, 80077ec + 800779e: 6841 ldr r1, [r0, #4] + 80077a0: f8bd 0016 ldrh.w r0, [sp, #22] + 80077a4: 2304 movs r3, #4 + 80077a6: 31f0 adds r1, #240 ; 0xf0 + 80077a8: 2232 movs r2, #50 ; 0x32 + 80077aa: 9103 str r1, [sp, #12] + 80077ac: f7ff f9ae bl 8006b0c + 80077b0: 4607 mov r7, r0 + 80077b2: f8ad 0016 strh.w r0, [sp, #22] + 80077b6: 69e0 ldr r0, [r4, #28] + 80077b8: f7fa fdc4 bl 8002344 + 80077bc: 9903 ldr r1, [sp, #12] + 80077be: 4602 mov r2, r0 + 80077c0: 4638 mov r0, r7 + 80077c2: f7ff f9d9 bl 8006b78 + 80077c6: 9903 ldr r1, [sp, #12] + 80077c8: f8ad 0016 strh.w r0, [sp, #22] + 80077cc: 462a mov r2, r5 + 80077ce: f7ff fa8b bl 8006ce8 + 80077d2: 4b0e ldr r3, [pc, #56] ; (800780c ) + 80077d4: 480e ldr r0, [pc, #56] ; (8007810 ) + 80077d6: 4a0f ldr r2, [pc, #60] ; (8007814 ) + 80077d8: e9cd 6300 strd r6, r3, [sp] + 80077dc: 4629 mov r1, r5 + 80077de: 6800 ldr r0, [r0, #0] + 80077e0: 2343 movs r3, #67 ; 0x43 + 80077e2: f7fe ffff bl 80067e4 + 80077e6: 4628 mov r0, r5 + 80077e8: f7fb faf4 bl 8002dd4 + 80077ec: 79a3 ldrb r3, [r4, #6] + 80077ee: 2bff cmp r3, #255 ; 0xff + 80077f0: bf1c itt ne + 80077f2: 3301 addne r3, #1 + 80077f4: 71a3 strbne r3, [r4, #6] + 80077f6: 2314 movs r3, #20 + 80077f8: 8123 strh r3, [r4, #8] + 80077fa: b007 add sp, #28 + 80077fc: bdf0 pop {r4, r5, r6, r7, pc} + 80077fe: bf00 nop + 8007800: 0800bced .word 0x0800bced + 8007804: 0800be96 .word 0x0800be96 + 8007808: 0800a54d .word 0x0800a54d + 800780c: 0800c304 .word 0x0800c304 + 8007810: 20008310 .word 0x20008310 + 8007814: 0800c308 .word 0x0800c308 + +08007818 : + 8007818: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 800781c: 6a44 ldr r4, [r0, #36] ; 0x24 + 800781e: b086 sub sp, #24 + 8007820: 4606 mov r6, r0 + 8007822: 2105 movs r1, #5 + 8007824: 4620 mov r0, r4 + 8007826: f7ff f94d bl 8006ac4 + 800782a: 2203 movs r2, #3 + 800782c: f10d 0316 add.w r3, sp, #22 + 8007830: 4621 mov r1, r4 + 8007832: 4630 mov r0, r6 + 8007834: f7ff f9c4 bl 8006bc0 + 8007838: 4605 mov r5, r0 + 800783a: 2800 cmp r0, #0 + 800783c: d056 beq.n 80078ec + 800783e: 6841 ldr r1, [r0, #4] + 8007840: f8bd 0016 ldrh.w r0, [sp, #22] + 8007844: f8df 80b0 ldr.w r8, [pc, #176] ; 80078f8 + 8007848: 31f0 adds r1, #240 ; 0xf0 + 800784a: 2302 movs r3, #2 + 800784c: 2239 movs r2, #57 ; 0x39 + 800784e: 9103 str r1, [sp, #12] + 8007850: f7ff f95c bl 8006b0c + 8007854: 8d32 ldrh r2, [r6, #40] ; 0x28 + 8007856: 9903 ldr r1, [sp, #12] + 8007858: f8ad 0016 strh.w r0, [sp, #22] + 800785c: f7ff f93a bl 8006ad4 + 8007860: 9903 ldr r1, [sp, #12] + 8007862: f8ad 0016 strh.w r0, [sp, #22] + 8007866: 2303 movs r3, #3 + 8007868: 2237 movs r2, #55 ; 0x37 + 800786a: f7ff f94f bl 8006b0c + 800786e: 9903 ldr r1, [sp, #12] + 8007870: f8ad 0016 strh.w r0, [sp, #22] + 8007874: 2703 movs r7, #3 + 8007876: f818 2b01 ldrb.w r2, [r8], #1 + 800787a: f8bd 0016 ldrh.w r0, [sp, #22] + 800787e: 9103 str r1, [sp, #12] + 8007880: f7ff f962 bl 8006b48 + 8007884: 3f01 subs r7, #1 + 8007886: f017 07ff ands.w r7, r7, #255 ; 0xff + 800788a: 9903 ldr r1, [sp, #12] + 800788c: f8ad 0016 strh.w r0, [sp, #22] + 8007890: d1f1 bne.n 8007876 + 8007892: 462a mov r2, r5 + 8007894: f7ff fa28 bl 8006ce8 + 8007898: 4816 ldr r0, [pc, #88] ; (80078f4 ) + 800789a: 9600 str r6, [sp, #0] + 800789c: 6800 ldr r0, [r0, #0] + 800789e: 2343 movs r3, #67 ; 0x43 + 80078a0: f104 0218 add.w r2, r4, #24 + 80078a4: 4629 mov r1, r5 + 80078a6: f7ff f835 bl 8006914 + 80078aa: 4606 mov r6, r0 + 80078ac: 4628 mov r0, r5 + 80078ae: f7fb fa91 bl 8002dd4 + 80078b2: 79a3 ldrb r3, [r4, #6] + 80078b4: 2bff cmp r3, #255 ; 0xff + 80078b6: bf1c itt ne + 80078b8: 3301 addne r3, #1 + 80078ba: 71a3 strbne r3, [r4, #6] + 80078bc: 79a3 ldrb r3, [r4, #6] + 80078be: 2b09 cmp r3, #9 + 80078c0: bf9f itttt ls + 80078c2: ebc3 1243 rsbls r2, r3, r3, lsl #5 + 80078c6: eb03 0382 addls.w r3, r3, r2, lsl #2 + 80078ca: 011b lslls r3, r3, #4 + 80078cc: b29b uxthls r3, r3 + 80078ce: bf88 it hi + 80078d0: f644 6320 movwhi r3, #20000 ; 0x4e20 + 80078d4: f44f 72fa mov.w r2, #500 ; 0x1f4 + 80078d8: 4630 mov r0, r6 + 80078da: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 80078de: b29b uxth r3, r3 + 80078e0: fbb3 f3f2 udiv r3, r3, r2 + 80078e4: 8123 strh r3, [r4, #8] + 80078e6: b006 add sp, #24 + 80078e8: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 80078ec: f04f 36ff mov.w r6, #4294967295 + 80078f0: e7df b.n 80078b2 + 80078f2: bf00 nop + 80078f4: 20008310 .word 0x20008310 + 80078f8: 0800c005 .word 0x0800c005 + +080078fc : + 80078fc: b150 cbz r0, 8007914 + 80078fe: 6a40 ldr r0, [r0, #36] ; 0x24 + 8007900: b140 cbz r0, 8007914 + 8007902: 7940 ldrb r0, [r0, #5] + 8007904: 280a cmp r0, #10 + 8007906: d006 beq.n 8007916 + 8007908: 3804 subs r0, #4 + 800790a: 2801 cmp r0, #1 + 800790c: bf8c ite hi + 800790e: 2000 movhi r0, #0 + 8007910: 2001 movls r0, #1 + 8007912: b2c0 uxtb r0, r0 + 8007914: 4770 bx lr + 8007916: 2001 movs r0, #1 + 8007918: e7fb b.n 8007912 + ... + +0800791c : + 800791c: b5f0 push {r4, r5, r6, r7, lr} + 800791e: 6a44 ldr r4, [r0, #36] ; 0x24 + 8007920: b087 sub sp, #28 + 8007922: 4606 mov r6, r0 + 8007924: 2c00 cmp r4, #0 + 8007926: d050 beq.n 80079ca + 8007928: 7963 ldrb r3, [r4, #5] + 800792a: 2b00 cmp r3, #0 + 800792c: d04d beq.n 80079ca + 800792e: 69a3 ldr r3, [r4, #24] + 8007930: 9305 str r3, [sp, #20] + 8007932: 2300 movs r3, #0 + 8007934: e9c4 3306 strd r3, r3, [r4, #24] + 8007938: e9c4 3308 strd r3, r3, [r4, #32] + 800793c: e9c4 330b strd r3, r3, [r4, #44] ; 0x2c + 8007940: 62a3 str r3, [r4, #40] ; 0x28 + 8007942: 81e3 strh r3, [r4, #14] + 8007944: 6123 str r3, [r4, #16] + 8007946: 82a3 strh r3, [r4, #20] + 8007948: f7ff ffd8 bl 80078fc + 800794c: b368 cbz r0, 80079aa + 800794e: f10d 0312 add.w r3, sp, #18 + 8007952: 2207 movs r2, #7 + 8007954: 4621 mov r1, r4 + 8007956: 4630 mov r0, r6 + 8007958: f7ff f932 bl 8006bc0 + 800795c: 4605 mov r5, r0 + 800795e: b320 cbz r0, 80079aa + 8007960: 6841 ldr r1, [r0, #4] + 8007962: f8bd 0012 ldrh.w r0, [sp, #18] + 8007966: 2304 movs r3, #4 + 8007968: 31f0 adds r1, #240 ; 0xf0 + 800796a: 2236 movs r2, #54 ; 0x36 + 800796c: 9103 str r1, [sp, #12] + 800796e: f7ff f8cd bl 8006b0c + 8007972: 4607 mov r7, r0 + 8007974: f8ad 0012 strh.w r0, [sp, #18] + 8007978: 9805 ldr r0, [sp, #20] + 800797a: f7fa fce3 bl 8002344 + 800797e: 9903 ldr r1, [sp, #12] + 8007980: 4602 mov r2, r0 + 8007982: 4638 mov r0, r7 + 8007984: f7ff f8f8 bl 8006b78 + 8007988: 9903 ldr r1, [sp, #12] + 800798a: f8ad 0012 strh.w r0, [sp, #18] + 800798e: 462a mov r2, r5 + 8007990: f7ff f9aa bl 8006ce8 + 8007994: 480e ldr r0, [pc, #56] ; (80079d0 ) + 8007996: 9600 str r6, [sp, #0] + 8007998: 6800 ldr r0, [r0, #0] + 800799a: 2343 movs r3, #67 ; 0x43 + 800799c: aa05 add r2, sp, #20 + 800799e: 4629 mov r1, r5 + 80079a0: f7fe ffb8 bl 8006914 + 80079a4: 4628 mov r0, r5 + 80079a6: f7fb fa15 bl 8002dd4 + 80079aa: 4b0a ldr r3, [pc, #40] ; (80079d4 ) + 80079ac: 4630 mov r0, r6 + 80079ae: 4619 mov r1, r3 + 80079b0: 461a mov r2, r3 + 80079b2: f7fa ffff bl 80029b4 + 80079b6: 2100 movs r1, #0 + 80079b8: 4620 mov r0, r4 + 80079ba: f7ff f883 bl 8006ac4 + 80079be: 7923 ldrb r3, [r4, #4] + 80079c0: b11b cbz r3, 80079ca + 80079c2: f7ff fb03 bl 8006fcc + 80079c6: 2300 movs r3, #0 + 80079c8: 7123 strb r3, [r4, #4] + 80079ca: b007 add sp, #28 + 80079cc: bdf0 pop {r4, r5, r6, r7, pc} + 80079ce: bf00 nop + 80079d0: 20008310 .word 0x20008310 + 80079d4: 0800c304 .word 0x0800c304 + +080079d8 : + 80079d8: b538 push {r3, r4, r5, lr} + 80079da: 4604 mov r4, r0 + 80079dc: b950 cbnz r0, 80079f4 + 80079de: 4b24 ldr r3, [pc, #144] ; (8007a70 ) + 80079e0: 4924 ldr r1, [pc, #144] ; (8007a74 ) + 80079e2: f240 22e7 movw r2, #743 ; 0x2e7 + 80079e6: 4824 ldr r0, [pc, #144] ; (8007a78 ) + 80079e8: f001 fcde bl 80093a8 + 80079ec: f06f 020f mvn.w r2, #15 + 80079f0: 4610 mov r0, r2 + 80079f2: bd38 pop {r3, r4, r5, pc} + 80079f4: f890 3031 ldrb.w r3, [r0, #49] ; 0x31 + 80079f8: 07da lsls r2, r3, #31 + 80079fa: d404 bmi.n 8007a06 + 80079fc: 4b1c ldr r3, [pc, #112] ; (8007a70 ) + 80079fe: 491f ldr r1, [pc, #124] ; (8007a7c ) + 8007a00: f44f 723a mov.w r2, #744 ; 0x2e8 + 8007a04: e7ef b.n 80079e6 + 8007a06: 8d03 ldrh r3, [r0, #40] ; 0x28 + 8007a08: 6a45 ldr r5, [r0, #36] ; 0x24 + 8007a0a: f5b3 7f10 cmp.w r3, #576 ; 0x240 + 8007a0e: d202 bcs.n 8007a16 + 8007a10: f04f 32ff mov.w r2, #4294967295 + 8007a14: e7ec b.n 80079f0 + 8007a16: b9dd cbnz r5, 8007a50 + 8007a18: 2034 movs r0, #52 ; 0x34 + 8007a1a: f7fa fe23 bl 8002664 + 8007a1e: 4605 mov r5, r0 + 8007a20: 2800 cmp r0, #0 + 8007a22: d0f5 beq.n 8007a10 + 8007a24: 6260 str r0, [r4, #36] ; 0x24 + 8007a26: 2234 movs r2, #52 ; 0x34 + 8007a28: 2100 movs r1, #0 + 8007a2a: 4628 mov r0, r5 + 8007a2c: f001 fcb4 bl 8009398 + 8007a30: f7ff fa92 bl 8006f58 + 8007a34: 4602 mov r2, r0 + 8007a36: 2800 cmp r0, #0 + 8007a38: d1ea bne.n 8007a10 + 8007a3a: 2301 movs r3, #1 + 8007a3c: 712b strb r3, [r5, #4] + 8007a3e: f894 3031 ldrb.w r3, [r4, #49] ; 0x31 + 8007a42: 075b lsls r3, r3, #29 + 8007a44: d40a bmi.n 8007a5c + 8007a46: 2102 movs r1, #2 + 8007a48: 4628 mov r0, r5 + 8007a4a: f7ff f83b bl 8006ac4 + 8007a4e: e7cf b.n 80079f0 + 8007a50: 792b ldrb r3, [r5, #4] + 8007a52: 2b00 cmp r3, #0 + 8007a54: d0e7 beq.n 8007a26 + 8007a56: f7ff fab9 bl 8006fcc + 8007a5a: e7e4 b.n 8007a26 + 8007a5c: 4620 mov r0, r4 + 8007a5e: f7ff f967 bl 8006d30 + 8007a62: 4602 mov r2, r0 + 8007a64: 2800 cmp r0, #0 + 8007a66: d0c3 beq.n 80079f0 + 8007a68: 4620 mov r0, r4 + 8007a6a: f7ff ff57 bl 800791c + 8007a6e: e7cf b.n 8007a10 + 8007a70: 0800bced .word 0x0800bced + 8007a74: 0800be96 .word 0x0800be96 + 8007a78: 0800a54d .word 0x0800a54d + 8007a7c: 0800bfe4 .word 0x0800bfe4 + +08007a80 : + 8007a80: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007a84: 4b58 ldr r3, [pc, #352] ; (8007be8 ) + 8007a86: 4f59 ldr r7, [pc, #356] ; (8007bec ) + 8007a88: 681d ldr r5, [r3, #0] + 8007a8a: f8df 8164 ldr.w r8, [pc, #356] ; 8007bf0 + 8007a8e: b087 sub sp, #28 + 8007a90: f240 2619 movw r6, #537 ; 0x219 + 8007a94: b915 cbnz r5, 8007a9c + 8007a96: b007 add sp, #28 + 8007a98: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8007a9c: 6a6c ldr r4, [r5, #36] ; 0x24 + 8007a9e: b17c cbz r4, 8007ac0 + 8007aa0: 7963 ldrb r3, [r4, #5] + 8007aa2: b16b cbz r3, 8007ac0 + 8007aa4: 8aa1 ldrh r1, [r4, #20] + 8007aa6: b169 cbz r1, 8007ac4 + 8007aa8: 8a62 ldrh r2, [r4, #18] + 8007aaa: 3201 adds r2, #1 + 8007aac: b292 uxth r2, r2 + 8007aae: 4291 cmp r1, r2 + 8007ab0: 8262 strh r2, [r4, #18] + 8007ab2: d107 bne.n 8007ac4 + 8007ab4: 4628 mov r0, r5 + 8007ab6: f7ff ff31 bl 800791c + 8007aba: 4628 mov r0, r5 + 8007abc: f7ff ff8c bl 80079d8 + 8007ac0: 682d ldr r5, [r5, #0] + 8007ac2: e7e7 b.n 8007a94 + 8007ac4: 8a22 ldrh r2, [r4, #16] + 8007ac6: 2a00 cmp r2, #0 + 8007ac8: d073 beq.n 8007bb2 + 8007aca: 1e51 subs r1, r2, #1 + 8007acc: 2a01 cmp r2, #1 + 8007ace: 8221 strh r1, [r4, #16] + 8007ad0: d16f bne.n 8007bb2 + 8007ad2: 3b01 subs r3, #1 + 8007ad4: b2db uxtb r3, r3 + 8007ad6: 2b09 cmp r3, #9 + 8007ad8: d8f2 bhi.n 8007ac0 + 8007ada: fa26 f303 lsr.w r3, r6, r3 + 8007ade: 07db lsls r3, r3, #31 + 8007ae0: d5ee bpl.n 8007ac0 + 8007ae2: 2104 movs r1, #4 + 8007ae4: 4620 mov r0, r4 + 8007ae6: f7fe ffed bl 8006ac4 + 8007aea: 2203 movs r2, #3 + 8007aec: f10d 0316 add.w r3, sp, #22 + 8007af0: 4621 mov r1, r4 + 8007af2: 4628 mov r0, r5 + 8007af4: f7ff f864 bl 8006bc0 + 8007af8: 4681 mov r9, r0 + 8007afa: 2800 cmp r0, #0 + 8007afc: d038 beq.n 8007b70 + 8007afe: 6841 ldr r1, [r0, #4] + 8007b00: f8bd 0016 ldrh.w r0, [sp, #22] + 8007b04: f8df b0ec ldr.w fp, [pc, #236] ; 8007bf4 + 8007b08: 31f0 adds r1, #240 ; 0xf0 + 8007b0a: 2302 movs r3, #2 + 8007b0c: 2239 movs r2, #57 ; 0x39 + 8007b0e: 9103 str r1, [sp, #12] + 8007b10: f7fe fffc bl 8006b0c + 8007b14: 8d2a ldrh r2, [r5, #40] ; 0x28 + 8007b16: 9903 ldr r1, [sp, #12] + 8007b18: f8ad 0016 strh.w r0, [sp, #22] + 8007b1c: f7fe ffda bl 8006ad4 + 8007b20: 9903 ldr r1, [sp, #12] + 8007b22: f8ad 0016 strh.w r0, [sp, #22] + 8007b26: 2303 movs r3, #3 + 8007b28: 2237 movs r2, #55 ; 0x37 + 8007b2a: f7fe ffef bl 8006b0c + 8007b2e: 9903 ldr r1, [sp, #12] + 8007b30: f8ad 0016 strh.w r0, [sp, #22] + 8007b34: f04f 0a03 mov.w sl, #3 + 8007b38: f81b 2b01 ldrb.w r2, [fp], #1 + 8007b3c: f8bd 0016 ldrh.w r0, [sp, #22] + 8007b40: 9103 str r1, [sp, #12] + 8007b42: f7ff f801 bl 8006b48 + 8007b46: f10a 3aff add.w sl, sl, #4294967295 + 8007b4a: f01a 0aff ands.w sl, sl, #255 ; 0xff + 8007b4e: 9903 ldr r1, [sp, #12] + 8007b50: f8ad 0016 strh.w r0, [sp, #22] + 8007b54: d1f0 bne.n 8007b38 + 8007b56: 464a mov r2, r9 + 8007b58: f7ff f8c6 bl 8006ce8 + 8007b5c: 6838 ldr r0, [r7, #0] + 8007b5e: 9500 str r5, [sp, #0] + 8007b60: 2343 movs r3, #67 ; 0x43 + 8007b62: 4642 mov r2, r8 + 8007b64: 4649 mov r1, r9 + 8007b66: f7fe fed5 bl 8006914 + 8007b6a: 4648 mov r0, r9 + 8007b6c: f7fb f932 bl 8002dd4 + 8007b70: 79a3 ldrb r3, [r4, #6] + 8007b72: 2bff cmp r3, #255 ; 0xff + 8007b74: bf1c itt ne + 8007b76: 3301 addne r3, #1 + 8007b78: 71a3 strbne r3, [r4, #6] + 8007b7a: 79a3 ldrb r3, [r4, #6] + 8007b7c: 2b09 cmp r3, #9 + 8007b7e: bf9f itttt ls + 8007b80: ebc3 1243 rsbls r2, r3, r3, lsl #5 + 8007b84: eb03 0382 addls.w r3, r3, r2, lsl #2 + 8007b88: 00db lslls r3, r3, #3 + 8007b8a: b29b uxthls r3, r3 + 8007b8c: bf88 it hi + 8007b8e: f242 7310 movwhi r3, #10000 ; 0x2710 + 8007b92: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 8007b96: f44f 72fa mov.w r2, #500 ; 0x1f4 + 8007b9a: b29b uxth r3, r3 + 8007b9c: fbb3 f3f2 udiv r3, r3, r2 + 8007ba0: 8a62 ldrh r2, [r4, #18] + 8007ba2: 8123 strh r3, [r4, #8] + 8007ba4: 8aa3 ldrh r3, [r4, #20] + 8007ba6: 1a9b subs r3, r3, r2 + 8007ba8: 2b01 cmp r3, #1 + 8007baa: dd89 ble.n 8007ac0 + 8007bac: 105b asrs r3, r3, #1 + 8007bae: 8223 strh r3, [r4, #16] + 8007bb0: e786 b.n 8007ac0 + 8007bb2: 89e2 ldrh r2, [r4, #14] + 8007bb4: 2a00 cmp r2, #0 + 8007bb6: d083 beq.n 8007ac0 + 8007bb8: 1e51 subs r1, r2, #1 + 8007bba: 2a01 cmp r2, #1 + 8007bbc: 81e1 strh r1, [r4, #14] + 8007bbe: f47f af7f bne.w 8007ac0 + 8007bc2: f003 02fb and.w r2, r3, #251 ; 0xfb + 8007bc6: 2a01 cmp r2, #1 + 8007bc8: d002 beq.n 8007bd0 + 8007bca: 2b0a cmp r3, #10 + 8007bcc: f47f af78 bne.w 8007ac0 + 8007bd0: 4628 mov r0, r5 + 8007bd2: f7ff fe21 bl 8007818 + 8007bd6: 89a3 ldrh r3, [r4, #12] + 8007bd8: 8a62 ldrh r2, [r4, #18] + 8007bda: 1a9b subs r3, r3, r2 + 8007bdc: 2b01 cmp r3, #1 + 8007bde: bfc4 itt gt + 8007be0: 105b asrgt r3, r3, #1 + 8007be2: 81e3 strhgt r3, [r4, #14] + 8007be4: e76c b.n 8007ac0 + 8007be6: bf00 nop + 8007be8: 2000829c .word 0x2000829c + 8007bec: 20008310 .word 0x20008310 + 8007bf0: 0800c308 .word 0x0800c308 + 8007bf4: 0800c005 .word 0x0800c005 + +08007bf8 : + 8007bf8: b538 push {r3, r4, r5, lr} + 8007bfa: 4b1e ldr r3, [pc, #120] ; (8007c74 ) + 8007bfc: 681c ldr r4, [r3, #0] + 8007bfe: 2500 movs r5, #0 + 8007c00: b904 cbnz r4, 8007c04 + 8007c02: bd38 pop {r3, r4, r5, pc} + 8007c04: 6a63 ldr r3, [r4, #36] ; 0x24 + 8007c06: b123 cbz r3, 8007c12 + 8007c08: 891a ldrh r2, [r3, #8] + 8007c0a: 2a01 cmp r2, #1 + 8007c0c: d903 bls.n 8007c16 + 8007c0e: 3a01 subs r2, #1 + 8007c10: 811a strh r2, [r3, #8] + 8007c12: 6824 ldr r4, [r4, #0] + 8007c14: e7f4 b.n 8007c00 + 8007c16: d1fc bne.n 8007c12 + 8007c18: 795a ldrb r2, [r3, #5] + 8007c1a: 811d strh r5, [r3, #8] + 8007c1c: 2a0c cmp r2, #12 + 8007c1e: d001 beq.n 8007c24 + 8007c20: 2a06 cmp r2, #6 + 8007c22: d103 bne.n 8007c2c + 8007c24: 4620 mov r0, r4 + 8007c26: f7ff f883 bl 8006d30 + 8007c2a: e7f2 b.n 8007c12 + 8007c2c: 2a01 cmp r2, #1 + 8007c2e: d10c bne.n 8007c4a + 8007c30: 799b ldrb r3, [r3, #6] + 8007c32: 2b05 cmp r3, #5 + 8007c34: 4620 mov r0, r4 + 8007c36: d802 bhi.n 8007c3e + 8007c38: f7ff fa9e bl 8007178 + 8007c3c: e7e9 b.n 8007c12 + 8007c3e: f7ff fe6d bl 800791c + 8007c42: 4620 mov r0, r4 + 8007c44: f7ff fec8 bl 80079d8 + 8007c48: e7e3 b.n 8007c12 + 8007c4a: 2a08 cmp r2, #8 + 8007c4c: d109 bne.n 8007c62 + 8007c4e: 799b ldrb r3, [r3, #6] + 8007c50: 2b01 cmp r3, #1 + 8007c52: 4620 mov r0, r4 + 8007c54: d802 bhi.n 8007c5c + 8007c56: f7ff f8e1 bl 8006e1c + 8007c5a: e7da b.n 8007c12 + 8007c5c: f7ff f8f4 bl 8006e48 + 8007c60: e7d7 b.n 8007c12 + 8007c62: 2a03 cmp r2, #3 + 8007c64: d1d5 bne.n 8007c12 + 8007c66: 799b ldrb r3, [r3, #6] + 8007c68: 2b01 cmp r3, #1 + 8007c6a: 4620 mov r0, r4 + 8007c6c: d8db bhi.n 8007c26 + 8007c6e: f7ff f9cd bl 800700c + 8007c72: e7ce b.n 8007c12 + 8007c74: 2000829c .word 0x2000829c + +08007c78 : + 8007c78: b570 push {r4, r5, r6, lr} + 8007c7a: 2618 movs r6, #24 + 8007c7c: 4c07 ldr r4, [pc, #28] ; (8007c9c ) + 8007c7e: 4346 muls r6, r0 + 8007c80: 4605 mov r5, r0 + 8007c82: 59a0 ldr r0, [r4, r6] + 8007c84: b118 cbz r0, 8007c8e + 8007c86: f7fb f8a5 bl 8002dd4 + 8007c8a: 2300 movs r3, #0 + 8007c8c: 51a3 str r3, [r4, r6] + 8007c8e: 2018 movs r0, #24 + 8007c90: fb00 4405 mla r4, r0, r5, r4 + 8007c94: 2300 movs r3, #0 + 8007c96: 7523 strb r3, [r4, #20] + 8007c98: bd70 pop {r4, r5, r6, pc} + 8007c9a: bf00 nop + 8007c9c: 20008344 .word 0x20008344 + +08007ca0 : + 8007ca0: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8007ca4: 2300 movs r3, #0 + 8007ca6: f04f 0e0a mov.w lr, #10 + 8007caa: e9cd 2100 strd r2, r1, [sp] + 8007cae: 4a3f ldr r2, [pc, #252] ; (8007dac ) + 8007cb0: 4606 mov r6, r0 + 8007cb2: 4699 mov r9, r3 + 8007cb4: 469b mov fp, r3 + 8007cb6: 469c mov ip, r3 + 8007cb8: 4674 mov r4, lr + 8007cba: 4675 mov r5, lr + 8007cbc: 46f0 mov r8, lr + 8007cbe: 2c0a cmp r4, #10 + 8007cc0: f892 a014 ldrb.w sl, [r2, #20] + 8007cc4: b218 sxth r0, r3 + 8007cc6: d11a bne.n 8007cfe + 8007cc8: f1ba 0f00 cmp.w sl, #0 + 8007ccc: d05e beq.n 8007d8c + 8007cce: b156 cbz r6, 8007ce6 + 8007cd0: 6831 ldr r1, [r6, #0] + 8007cd2: 6857 ldr r7, [r2, #4] + 8007cd4: 42b9 cmp r1, r7 + 8007cd6: d106 bne.n 8007ce6 + 8007cd8: 9900 ldr r1, [sp, #0] + 8007cda: 2900 cmp r1, #0 + 8007cdc: d049 beq.n 8007d72 + 8007cde: 6891 ldr r1, [r2, #8] + 8007ce0: 9f00 ldr r7, [sp, #0] + 8007ce2: 42b9 cmp r1, r7 + 8007ce4: d045 beq.n 8007d72 + 8007ce6: f1ba 0f01 cmp.w sl, #1 + 8007cea: 8a51 ldrh r1, [r2, #18] + 8007cec: d149 bne.n 8007d82 + 8007cee: 6817 ldr r7, [r2, #0] + 8007cf0: 2f00 cmp r7, #0 + 8007cf2: d041 beq.n 8007d78 + 8007cf4: 4561 cmp r1, ip + 8007cf6: d305 bcc.n 8007d04 + 8007cf8: 468c mov ip, r1 + 8007cfa: 4686 mov lr, r0 + 8007cfc: e002 b.n 8007d04 + 8007cfe: f1ba 0f00 cmp.w sl, #0 + 8007d02: d1e4 bne.n 8007cce + 8007d04: 3301 adds r3, #1 + 8007d06: 2b0a cmp r3, #10 + 8007d08: f102 0218 add.w r2, r2, #24 + 8007d0c: d1d7 bne.n 8007cbe + 8007d0e: 9b01 ldr r3, [sp, #4] + 8007d10: 2b01 cmp r3, #1 + 8007d12: d143 bne.n 8007d9c + 8007d14: 2c0a cmp r4, #10 + 8007d16: d111 bne.n 8007d3c + 8007d18: 2d0a cmp r5, #10 + 8007d1a: d039 beq.n 8007d90 + 8007d1c: 2318 movs r3, #24 + 8007d1e: 4a23 ldr r2, [pc, #140] ; (8007dac ) + 8007d20: 436b muls r3, r5 + 8007d22: 58d3 ldr r3, [r2, r3] + 8007d24: b133 cbz r3, 8007d34 + 8007d26: 4b22 ldr r3, [pc, #136] ; (8007db0 ) + 8007d28: 4922 ldr r1, [pc, #136] ; (8007db4 ) + 8007d2a: 4823 ldr r0, [pc, #140] ; (8007db8 ) + 8007d2c: f240 126d movw r2, #365 ; 0x16d + 8007d30: f001 fb3a bl 80093a8 + 8007d34: 4628 mov r0, r5 + 8007d36: f7ff ff9f bl 8007c78 + 8007d3a: 462c mov r4, r5 + 8007d3c: 4d1b ldr r5, [pc, #108] ; (8007dac ) + 8007d3e: 2318 movs r3, #24 + 8007d40: fb03 5304 mla r3, r3, r4, r5 + 8007d44: 7d1b ldrb r3, [r3, #20] + 8007d46: b133 cbz r3, 8007d56 + 8007d48: 4b19 ldr r3, [pc, #100] ; (8007db0 ) + 8007d4a: 491c ldr r1, [pc, #112] ; (8007dbc ) + 8007d4c: 481a ldr r0, [pc, #104] ; (8007db8 ) + 8007d4e: f44f 72c2 mov.w r2, #388 ; 0x184 + 8007d52: f001 fb29 bl 80093a8 + 8007d56: b126 cbz r6, 8007d62 + 8007d58: 2318 movs r3, #24 + 8007d5a: fb03 5304 mla r3, r3, r4, r5 + 8007d5e: 6832 ldr r2, [r6, #0] + 8007d60: 605a str r2, [r3, #4] + 8007d62: 2318 movs r3, #24 + 8007d64: fb03 5304 mla r3, r3, r4, r5 + 8007d68: 2200 movs r2, #0 + 8007d6a: 825a strh r2, [r3, #18] + 8007d6c: 9a00 ldr r2, [sp, #0] + 8007d6e: 609a str r2, [r3, #8] + 8007d70: 4620 mov r0, r4 + 8007d72: b003 add sp, #12 + 8007d74: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8007d78: 4559 cmp r1, fp + 8007d7a: d3c3 bcc.n 8007d04 + 8007d7c: 468b mov fp, r1 + 8007d7e: 4680 mov r8, r0 + 8007d80: e7c0 b.n 8007d04 + 8007d82: 4549 cmp r1, r9 + 8007d84: d3be bcc.n 8007d04 + 8007d86: 4689 mov r9, r1 + 8007d88: 4605 mov r5, r0 + 8007d8a: e7bb b.n 8007d04 + 8007d8c: 4604 mov r4, r0 + 8007d8e: e7b9 b.n 8007d04 + 8007d90: f1b8 0f0a cmp.w r8, #10 + 8007d94: d105 bne.n 8007da2 + 8007d96: f1be 0f0a cmp.w lr, #10 + 8007d9a: d104 bne.n 8007da6 + 8007d9c: f04f 30ff mov.w r0, #4294967295 + 8007da0: e7e7 b.n 8007d72 + 8007da2: 4645 mov r5, r8 + 8007da4: e7c6 b.n 8007d34 + 8007da6: 4675 mov r5, lr + 8007da8: e7c4 b.n 8007d34 + 8007daa: bf00 nop + 8007dac: 20008344 .word 0x20008344 + 8007db0: 0800c008 .word 0x0800c008 + 8007db4: 0800c03f .word 0x0800c03f + 8007db8: 0800a54d .word 0x0800a54d + 8007dbc: 0800c056 .word 0x0800c056 + +08007dc0 : + 8007dc0: e92d 47f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, r9, sl, lr} + 8007dc4: f8dd a02c ldr.w sl, [sp, #44] ; 0x2c + 8007dc8: 4688 mov r8, r1 + 8007dca: 4691 mov r9, r2 + 8007dcc: 461e mov r6, r3 + 8007dce: 4607 mov r7, r0 + 8007dd0: b930 cbnz r0, 8007de0 + 8007dd2: 4b2d ldr r3, [pc, #180] ; (8007e88 ) + 8007dd4: 492d ldr r1, [pc, #180] ; (8007e8c ) + 8007dd6: 482e ldr r0, [pc, #184] ; (8007e90 ) + 8007dd8: f240 4257 movw r2, #1111 ; 0x457 + 8007ddc: f001 fae4 bl 80093a8 + 8007de0: f44f 7220 mov.w r2, #640 ; 0x280 + 8007de4: 211c movs r1, #28 + 8007de6: 200e movs r0, #14 + 8007de8: f7fb f858 bl 8002e9c + 8007dec: 4605 mov r5, r0 + 8007dee: 2800 cmp r0, #0 + 8007df0: d047 beq.n 8007e82 + 8007df2: 8943 ldrh r3, [r0, #10] + 8007df4: 2b1b cmp r3, #27 + 8007df6: d806 bhi.n 8007e06 + 8007df8: 4b23 ldr r3, [pc, #140] ; (8007e88 ) + 8007dfa: 4926 ldr r1, [pc, #152] ; (8007e94 ) + 8007dfc: 4824 ldr r0, [pc, #144] ; (8007e90 ) + 8007dfe: f240 4262 movw r2, #1122 ; 0x462 + 8007e02: f001 fad1 bl 80093a8 + 8007e06: f8bd 0034 ldrh.w r0, [sp, #52] ; 0x34 + 8007e0a: 686c ldr r4, [r5, #4] + 8007e0c: f7fa fa97 bl 800233e + 8007e10: 80e0 strh r0, [r4, #6] + 8007e12: f897 3030 ldrb.w r3, [r7, #48] ; 0x30 + 8007e16: 2b06 cmp r3, #6 + 8007e18: d006 beq.n 8007e28 + 8007e1a: 4b1b ldr r3, [pc, #108] ; (8007e88 ) + 8007e1c: 491e ldr r1, [pc, #120] ; (8007e98 ) + 8007e1e: 481c ldr r0, [pc, #112] ; (8007e90 ) + 8007e20: f240 4269 movw r2, #1129 ; 0x469 + 8007e24: f001 fac0 bl 80093a8 + 8007e28: 6833 ldr r3, [r6, #0] + 8007e2a: 60a3 str r3, [r4, #8] + 8007e2c: 88b3 ldrh r3, [r6, #4] + 8007e2e: 81a3 strh r3, [r4, #12] + 8007e30: f8da 3000 ldr.w r3, [sl] + 8007e34: f8c4 3012 str.w r3, [r4, #18] + 8007e38: f8ba 3004 ldrh.w r3, [sl, #4] + 8007e3c: 82e3 strh r3, [r4, #22] + 8007e3e: 9b0a ldr r3, [sp, #40] ; 0x28 + 8007e40: 681b ldr r3, [r3, #0] + 8007e42: f8c4 300e str.w r3, [r4, #14] + 8007e46: 9b0c ldr r3, [sp, #48] ; 0x30 + 8007e48: 681b ldr r3, [r3, #0] + 8007e4a: 61a3 str r3, [r4, #24] + 8007e4c: 2301 movs r3, #1 + 8007e4e: 7063 strb r3, [r4, #1] + 8007e50: 2308 movs r3, #8 + 8007e52: 70a3 strb r3, [r4, #2] + 8007e54: 2306 movs r3, #6 + 8007e56: 7123 strb r3, [r4, #4] + 8007e58: 2304 movs r3, #4 + 8007e5a: 2600 movs r6, #0 + 8007e5c: 7163 strb r3, [r4, #5] + 8007e5e: f640 0306 movw r3, #2054 ; 0x806 + 8007e62: 7026 strb r6, [r4, #0] + 8007e64: 70e6 strb r6, [r4, #3] + 8007e66: 4642 mov r2, r8 + 8007e68: 9300 str r3, [sp, #0] + 8007e6a: 4629 mov r1, r5 + 8007e6c: 464b mov r3, r9 + 8007e6e: 4638 mov r0, r7 + 8007e70: f001 fa18 bl 80092a4 + 8007e74: 4628 mov r0, r5 + 8007e76: f7fa ffad bl 8002dd4 + 8007e7a: 4630 mov r0, r6 + 8007e7c: b002 add sp, #8 + 8007e7e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8007e82: f04f 30ff mov.w r0, #4294967295 + 8007e86: e7f9 b.n 8007e7c + 8007e88: 0800c008 .word 0x0800c008 + 8007e8c: 0800be96 .word 0x0800be96 + 8007e90: 0800a54d .word 0x0800a54d + 8007e94: 0800c07f .word 0x0800c07f + 8007e98: 0800c0b0 .word 0x0800c0b0 + +08007e9c : + 8007e9c: b570 push {r4, r5, r6, lr} + 8007e9e: 4d08 ldr r5, [pc, #32] ; (8007ec0 ) + 8007ea0: 4606 mov r6, r0 + 8007ea2: 2400 movs r4, #0 + 8007ea4: 7d2b ldrb r3, [r5, #20] + 8007ea6: b12b cbz r3, 8007eb4 + 8007ea8: 68ab ldr r3, [r5, #8] + 8007eaa: 42b3 cmp r3, r6 + 8007eac: d102 bne.n 8007eb4 + 8007eae: 4620 mov r0, r4 + 8007eb0: f7ff fee2 bl 8007c78 + 8007eb4: 3401 adds r4, #1 + 8007eb6: 2c0a cmp r4, #10 + 8007eb8: f105 0518 add.w r5, r5, #24 + 8007ebc: d1f2 bne.n 8007ea4 + 8007ebe: bd70 pop {r4, r5, r6, pc} + 8007ec0: 20008344 .word 0x20008344 + +08007ec4 : + 8007ec4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8007ec8: 4607 mov r7, r0 + 8007eca: b088 sub sp, #32 + 8007ecc: 460c mov r4, r1 + 8007ece: b949 cbnz r1, 8007ee4 + 8007ed0: 4b4f ldr r3, [pc, #316] ; (8008010 ) + 8007ed2: 4950 ldr r1, [pc, #320] ; (8008014 ) + 8007ed4: 4850 ldr r0, [pc, #320] ; (8008018 ) + 8007ed6: f240 228a movw r2, #650 ; 0x28a + 8007eda: b008 add sp, #32 + 8007edc: e8bd 47f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8007ee0: f001 ba62 b.w 80093a8 + 8007ee4: 6845 ldr r5, [r0, #4] + 8007ee6: 882b ldrh r3, [r5, #0] + 8007ee8: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8007eec: d108 bne.n 8007f00 + 8007eee: 792b ldrb r3, [r5, #4] + 8007ef0: 2b06 cmp r3, #6 + 8007ef2: d105 bne.n 8007f00 + 8007ef4: 796b ldrb r3, [r5, #5] + 8007ef6: 2b04 cmp r3, #4 + 8007ef8: d102 bne.n 8007f00 + 8007efa: 886b ldrh r3, [r5, #2] + 8007efc: 2b08 cmp r3, #8 + 8007efe: d005 beq.n 8007f0c + 8007f00: 4638 mov r0, r7 + 8007f02: b008 add sp, #32 + 8007f04: e8bd 47f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8007f08: f7fa bf64 b.w 8002dd4 + 8007f0c: 684e ldr r6, [r1, #4] + 8007f0e: f8d5 300e ldr.w r3, [r5, #14] + 8007f12: 9307 str r3, [sp, #28] + 8007f14: f105 0808 add.w r8, r5, #8 + 8007f18: 69ab ldr r3, [r5, #24] + 8007f1a: 2e00 cmp r6, #0 + 8007f1c: d05e beq.n 8007fdc + 8007f1e: 1af3 subs r3, r6, r3 + 8007f20: 425e negs r6, r3 + 8007f22: 415e adcs r6, r3 + 8007f24: f1c6 0a02 rsb sl, r6, #2 + 8007f28: fa5f fa8a uxtb.w sl, sl + 8007f2c: f894 3030 ldrb.w r3, [r4, #48] ; 0x30 + 8007f30: 2b06 cmp r3, #6 + 8007f32: d006 beq.n 8007f42 + 8007f34: 4b36 ldr r3, [pc, #216] ; (8008010 ) + 8007f36: 4939 ldr r1, [pc, #228] ; (800801c ) + 8007f38: 4837 ldr r0, [pc, #220] ; (8008018 ) + 8007f3a: f240 12a9 movw r2, #425 ; 0x1a9 + 8007f3e: f001 fa33 bl 80093a8 + 8007f42: 9807 ldr r0, [sp, #28] + 8007f44: 2800 cmp r0, #0 + 8007f46: d03c beq.n 8007fc2 + 8007f48: 4621 mov r1, r4 + 8007f4a: f000 fcba bl 80088c2 + 8007f4e: 4681 mov r9, r0 + 8007f50: bbb8 cbnz r0, 8007fc2 + 8007f52: 9b07 ldr r3, [sp, #28] + 8007f54: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 8007f58: 2be0 cmp r3, #224 ; 0xe0 + 8007f5a: d032 beq.n 8007fc2 + 8007f5c: 4622 mov r2, r4 + 8007f5e: 4651 mov r1, sl + 8007f60: a807 add r0, sp, #28 + 8007f62: f7ff fe9d bl 8007ca0 + 8007f66: 1e03 subs r3, r0, #0 + 8007f68: db2b blt.n 8007fc2 + 8007f6a: 4a2d ldr r2, [pc, #180] ; (8008020 ) + 8007f6c: 2018 movs r0, #24 + 8007f6e: fb00 fc03 mul.w ip, r0, r3 + 8007f72: eb02 010c add.w r1, r2, ip + 8007f76: f04f 0e02 mov.w lr, #2 + 8007f7a: f881 e014 strb.w lr, [r1, #20] + 8007f7e: f04f 0e0c mov.w lr, #12 + 8007f82: 608c str r4, [r1, #8] + 8007f84: fb13 e300 smlabb r3, r3, r0, lr + 8007f88: 68a8 ldr r0, [r5, #8] + 8007f8a: 50d0 str r0, [r2, r3] + 8007f8c: eb02 0e03 add.w lr, r2, r3 + 8007f90: f8b8 3004 ldrh.w r3, [r8, #4] + 8007f94: f8ae 3004 strh.w r3, [lr, #4] + 8007f98: f8a1 9012 strh.w r9, [r1, #18] + 8007f9c: f852 100c ldr.w r1, [r2, ip] + 8007fa0: b179 cbz r1, 8007fc2 + 8007fa2: f44f 6300 mov.w r3, #2048 ; 0x800 + 8007fa6: f842 900c str.w r9, [r2, ip] + 8007faa: 4620 mov r0, r4 + 8007fac: 9300 str r3, [sp, #0] + 8007fae: f104 022a add.w r2, r4, #42 ; 0x2a + 8007fb2: 4643 mov r3, r8 + 8007fb4: 9105 str r1, [sp, #20] + 8007fb6: f001 f975 bl 80092a4 + 8007fba: 9905 ldr r1, [sp, #20] + 8007fbc: 4608 mov r0, r1 + 8007fbe: f7fa ff09 bl 8002dd4 + 8007fc2: 88eb ldrh r3, [r5, #6] + 8007fc4: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 8007fc8: d00b beq.n 8007fe2 + 8007fca: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 8007fce: d019 beq.n 8008004 + 8007fd0: 4638 mov r0, r7 + 8007fd2: f7fa feff bl 8002dd4 + 8007fd6: b008 add sp, #32 + 8007fd8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8007fdc: f04f 0a02 mov.w sl, #2 + 8007fe0: e7a4 b.n 8007f2c + 8007fe2: 2e00 cmp r6, #0 + 8007fe4: d0f4 beq.n 8007fd0 + 8007fe6: 2202 movs r2, #2 + 8007fe8: 9203 str r2, [sp, #12] + 8007fea: aa07 add r2, sp, #28 + 8007fec: e9cd 8201 strd r8, r2, [sp, #4] + 8007ff0: f104 032a add.w r3, r4, #42 ; 0x2a + 8007ff4: 1d22 adds r2, r4, #4 + 8007ff6: 9200 str r2, [sp, #0] + 8007ff8: 4619 mov r1, r3 + 8007ffa: 4642 mov r2, r8 + 8007ffc: 4620 mov r0, r4 + 8007ffe: f7ff fedf bl 8007dc0 + 8008002: e7e5 b.n 8007fd0 + 8008004: a907 add r1, sp, #28 + 8008006: 4620 mov r0, r4 + 8008008: f7ff fba4 bl 8007754 + 800800c: e7e0 b.n 8007fd0 + 800800e: bf00 nop + 8008010: 0800c008 .word 0x0800c008 + 8008014: 0800be96 .word 0x0800be96 + 8008018: 0800a54d .word 0x0800a54d + 800801c: 0800c110 .word 0x0800c110 + 8008020: 20008344 .word 0x20008344 + +08008024 : + 8008024: b51f push {r0, r1, r2, r3, r4, lr} + 8008026: 4602 mov r2, r0 + 8008028: 2401 movs r4, #1 + 800802a: e9cd 1402 strd r1, r4, [sp, #8] + 800802e: f100 032a add.w r3, r0, #42 ; 0x2a + 8008032: 4905 ldr r1, [pc, #20] ; (8008048 ) + 8008034: 9101 str r1, [sp, #4] + 8008036: 3204 adds r2, #4 + 8008038: 9200 str r2, [sp, #0] + 800803a: 4619 mov r1, r3 + 800803c: 4a03 ldr r2, [pc, #12] ; (800804c ) + 800803e: f7ff febf bl 8007dc0 + 8008042: b004 add sp, #16 + 8008044: bd10 pop {r4, pc} + 8008046: bf00 nop + 8008048: 0800c53c .word 0x0800c53c + 800804c: 0800c536 .word 0x0800c536 + +08008050 : + 8008050: b5f8 push {r3, r4, r5, r6, r7, lr} + 8008052: 4c13 ldr r4, [pc, #76] ; (80080a0 ) + 8008054: 2500 movs r5, #0 + 8008056: 2602 movs r6, #2 + 8008058: 2704 movs r7, #4 + 800805a: 7d22 ldrb r2, [r4, #20] + 800805c: b16a cbz r2, 800807a + 800805e: 8a63 ldrh r3, [r4, #18] + 8008060: 3301 adds r3, #1 + 8008062: b29b uxth r3, r3 + 8008064: f5b3 7f96 cmp.w r3, #300 ; 0x12c + 8008068: 8263 strh r3, [r4, #18] + 800806a: d203 bcs.n 8008074 + 800806c: 2a01 cmp r2, #1 + 800806e: d10a bne.n 8008086 + 8008070: 2b04 cmp r3, #4 + 8008072: d910 bls.n 8008096 + 8008074: 4628 mov r0, r5 + 8008076: f7ff fdff bl 8007c78 + 800807a: 3501 adds r5, #1 + 800807c: 2d0a cmp r5, #10 + 800807e: f104 0418 add.w r4, r4, #24 + 8008082: d1ea bne.n 800805a + 8008084: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8008086: 2a03 cmp r2, #3 + 8008088: d101 bne.n 800808e + 800808a: 7527 strb r7, [r4, #20] + 800808c: e7f5 b.n 800807a + 800808e: 2a04 cmp r2, #4 + 8008090: d1f3 bne.n 800807a + 8008092: 7526 strb r6, [r4, #20] + 8008094: e7f1 b.n 800807a + 8008096: 68a0 ldr r0, [r4, #8] + 8008098: 1d21 adds r1, r4, #4 + 800809a: f7ff ffc3 bl 8008024 + 800809e: e7ec b.n 800807a + 80080a0: 20008344 .word 0x20008344 + +080080a4 : + 80080a4: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} + 80080a8: 4f24 ldr r7, [pc, #144] ; (800813c ) + 80080aa: 2318 movs r3, #24 + 80080ac: fb03 7302 mla r3, r3, r2, r7 + 80080b0: 4606 mov r6, r0 + 80080b2: 7d1b ldrb r3, [r3, #20] + 80080b4: 2b01 cmp r3, #1 + 80080b6: 4688 mov r8, r1 + 80080b8: 4614 mov r4, r2 + 80080ba: d806 bhi.n 80080ca + 80080bc: 4b20 ldr r3, [pc, #128] ; (8008140 ) + 80080be: 4921 ldr r1, [pc, #132] ; (8008144 ) + 80080c0: 4821 ldr r0, [pc, #132] ; (8008148 ) + 80080c2: f240 22ee movw r2, #750 ; 0x2ee + 80080c6: f001 f96f bl 80093a8 + 80080ca: 2218 movs r2, #24 + 80080cc: eb04 0544 add.w r5, r4, r4, lsl #1 + 80080d0: fb02 7404 mla r4, r2, r4, r7 + 80080d4: 00ed lsls r5, r5, #3 + 80080d6: 7d23 ldrb r3, [r4, #20] + 80080d8: f105 0a0c add.w sl, r5, #12 + 80080dc: 2b02 cmp r3, #2 + 80080de: 44ba add sl, r7 + 80080e0: f106 092a add.w r9, r6, #42 ; 0x2a + 80080e4: d10b bne.n 80080fe + 80080e6: 8a63 ldrh r3, [r4, #18] + 80080e8: f5b3 7f8e cmp.w r3, #284 ; 0x11c + 80080ec: d913 bls.n 8008116 + 80080ee: 3504 adds r5, #4 + 80080f0: 1979 adds r1, r7, r5 + 80080f2: 4630 mov r0, r6 + 80080f4: f7ff ff96 bl 8008024 + 80080f8: b908 cbnz r0, 80080fe + 80080fa: 2303 movs r3, #3 + 80080fc: 7523 strb r3, [r4, #20] + 80080fe: f44f 6300 mov.w r3, #2048 ; 0x800 + 8008102: 9300 str r3, [sp, #0] + 8008104: 464a mov r2, r9 + 8008106: 4653 mov r3, sl + 8008108: 4641 mov r1, r8 + 800810a: 4630 mov r0, r6 + 800810c: f001 f8ca bl 80092a4 + 8008110: b004 add sp, #16 + 8008112: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8008116: f5b3 7f87 cmp.w r3, #270 ; 0x10e + 800811a: d3f0 bcc.n 80080fe + 800811c: 2301 movs r3, #1 + 800811e: 9303 str r3, [sp, #12] + 8008120: 3504 adds r5, #4 + 8008122: 4b0a ldr r3, [pc, #40] ; (800814c ) + 8008124: 9301 str r3, [sp, #4] + 8008126: 443d add r5, r7 + 8008128: 1d33 adds r3, r6, #4 + 800812a: 9300 str r3, [sp, #0] + 800812c: 9502 str r5, [sp, #8] + 800812e: 464b mov r3, r9 + 8008130: 4652 mov r2, sl + 8008132: 4649 mov r1, r9 + 8008134: 4630 mov r0, r6 + 8008136: f7ff fe43 bl 8007dc0 + 800813a: e7dd b.n 80080f8 + 800813c: 20008344 .word 0x20008344 + 8008140: 0800c008 .word 0x0800c008 + 8008144: 0800c134 .word 0x0800c134 + 8008148: 0800a54d .word 0x0800a54d + 800814c: 0800c53c .word 0x0800c53c + +08008150 : + 8008150: e92d 47f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, r9, sl, lr} + 8008154: 460f mov r7, r1 + 8008156: 4606 mov r6, r0 + 8008158: 4601 mov r1, r0 + 800815a: 6838 ldr r0, [r7, #0] + 800815c: 4615 mov r5, r2 + 800815e: f000 fbb0 bl 80088c2 + 8008162: 2800 cmp r0, #0 + 8008164: d16b bne.n 800823e + 8008166: 683b ldr r3, [r7, #0] + 8008168: f003 02f0 and.w r2, r3, #240 ; 0xf0 + 800816c: 2ae0 cmp r2, #224 ; 0xe0 + 800816e: d066 beq.n 800823e + 8008170: 2b00 cmp r3, #0 + 8008172: d064 beq.n 800823e + 8008174: 4632 mov r2, r6 + 8008176: 2101 movs r1, #1 + 8008178: 4638 mov r0, r7 + 800817a: f7ff fd91 bl 8007ca0 + 800817e: 1e04 subs r4, r0, #0 + 8008180: da03 bge.n 800818a + 8008182: b260 sxtb r0, r4 + 8008184: b002 add sp, #8 + 8008186: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 800818a: 2c7e cmp r4, #126 ; 0x7e + 800818c: dd06 ble.n 800819c + 800818e: 4b36 ldr r3, [pc, #216] ; (8008268 ) + 8008190: 4936 ldr r1, [pc, #216] ; (800826c ) + 8008192: 4837 ldr r0, [pc, #220] ; (8008270 ) + 8008194: f240 32c1 movw r2, #961 ; 0x3c1 + 8008198: f001 f906 bl 80093a8 + 800819c: f8df 80d8 ldr.w r8, [pc, #216] ; 8008278 + 80081a0: b2e4 uxtb r4, r4 + 80081a2: 2318 movs r3, #24 + 80081a4: fb03 8304 mla r3, r3, r4, r8 + 80081a8: 7d1a ldrb r2, [r3, #20] + 80081aa: 2a00 cmp r2, #0 + 80081ac: d156 bne.n 800825c + 80081ae: 2201 movs r2, #1 + 80081b0: 751a strb r2, [r3, #20] + 80081b2: 609e str r6, [r3, #8] + 80081b4: 4639 mov r1, r7 + 80081b6: 4630 mov r0, r6 + 80081b8: f7ff ff34 bl 8008024 + 80081bc: 2d00 cmp r5, #0 + 80081be: d0e1 beq.n 8008184 + 80081c0: 2318 movs r3, #24 + 80081c2: fb03 8204 mla r2, r3, r4, r8 + 80081c6: 7d12 ldrb r2, [r2, #20] + 80081c8: 2a01 cmp r2, #1 + 80081ca: d90e bls.n 80081ea + 80081cc: 4a29 ldr r2, [pc, #164] ; (8008274 ) + 80081ce: fb03 8304 mla r3, r3, r4, r8 + 80081d2: 7014 strb r4, [r2, #0] + 80081d4: f44f 6200 mov.w r2, #2048 ; 0x800 + 80081d8: 9200 str r2, [sp, #0] + 80081da: 330c adds r3, #12 + 80081dc: f106 022a add.w r2, r6, #42 ; 0x2a + 80081e0: 4629 mov r1, r5 + 80081e2: 4630 mov r0, r6 + 80081e4: f001 f85e bl 80092a4 + 80081e8: e7cc b.n 8008184 + 80081ea: d1cb bne.n 8008184 + 80081ec: 4f1e ldr r7, [pc, #120] ; (8008268 ) + 80081ee: f8df 908c ldr.w r9, [pc, #140] ; 800827c + 80081f2: f8df a07c ldr.w sl, [pc, #124] ; 8008270 + 80081f6: 462e mov r6, r5 + 80081f8: 8972 ldrh r2, [r6, #10] + 80081fa: 8933 ldrh r3, [r6, #8] + 80081fc: 429a cmp r2, r3 + 80081fe: d108 bne.n 8008212 + 8008200: 6833 ldr r3, [r6, #0] + 8008202: b133 cbz r3, 8008212 + 8008204: 463b mov r3, r7 + 8008206: f240 32f1 movw r2, #1009 ; 0x3f1 + 800820a: 4649 mov r1, r9 + 800820c: 4650 mov r0, sl + 800820e: f001 f8cb bl 80093a8 + 8008212: 7b33 ldrb r3, [r6, #12] + 8008214: 065b lsls r3, r3, #25 + 8008216: d415 bmi.n 8008244 + 8008218: 6836 ldr r6, [r6, #0] + 800821a: 2e00 cmp r6, #0 + 800821c: d1ec bne.n 80081f8 + 800821e: 4628 mov r0, r5 + 8008220: f7fa ff1c bl 800305c + 8008224: 2618 movs r6, #24 + 8008226: fb06 f304 mul.w r3, r6, r4 + 800822a: f858 0003 ldr.w r0, [r8, r3] + 800822e: b108 cbz r0, 8008234 + 8008230: f7fa fdd0 bl 8002dd4 + 8008234: 4374 muls r4, r6 + 8008236: 2000 movs r0, #0 + 8008238: f848 5004 str.w r5, [r8, r4] + 800823c: e7a2 b.n 8008184 + 800823e: f06f 000f mvn.w r0, #15 + 8008242: e79f b.n 8008184 + 8008244: 462a mov r2, r5 + 8008246: f44f 7120 mov.w r1, #640 ; 0x280 + 800824a: 200e movs r0, #14 + 800824c: f7fb f826 bl 800329c + 8008250: 4605 mov r5, r0 + 8008252: 2800 cmp r0, #0 + 8008254: d1e6 bne.n 8008224 + 8008256: f04f 30ff mov.w r0, #4294967295 + 800825a: e793 b.n 8008184 + 800825c: 2d00 cmp r5, #0 + 800825e: d0a9 beq.n 80081b4 + 8008260: f04f 30ff mov.w r0, #4294967295 + 8008264: e7ac b.n 80081c0 + 8008266: bf00 nop + 8008268: 0800c008 .word 0x0800c008 + 800826c: 0800c164 .word 0x0800c164 + 8008270: 0800a54d .word 0x0800a54d + 8008274: 20008434 .word 0x20008434 + 8008278: 20008344 .word 0x20008344 + 800827c: 0800c172 .word 0x0800c172 + +08008280 : + 8008280: b5f0 push {r4, r5, r6, r7, lr} + 8008282: 460e mov r6, r1 + 8008284: b085 sub sp, #20 + 8008286: 4615 mov r5, r2 + 8008288: 4604 mov r4, r0 + 800828a: b930 cbnz r0, 800829a + 800828c: 4b45 ldr r3, [pc, #276] ; (80083a4 ) + 800828e: 4946 ldr r1, [pc, #280] ; (80083a8 ) + 8008290: 4846 ldr r0, [pc, #280] ; (80083ac ) + 8008292: f240 321e movw r2, #798 ; 0x31e + 8008296: f001 f887 bl 80093a8 + 800829a: b936 cbnz r6, 80082aa + 800829c: 4b41 ldr r3, [pc, #260] ; (80083a4 ) + 800829e: 4944 ldr r1, [pc, #272] ; (80083b0 ) + 80082a0: 4842 ldr r0, [pc, #264] ; (80083ac ) + 80082a2: f240 321f movw r2, #799 ; 0x31f + 80082a6: f001 f87f bl 80093a8 + 80082aa: b935 cbnz r5, 80082ba + 80082ac: 4b3d ldr r3, [pc, #244] ; (80083a4 ) + 80082ae: 4941 ldr r1, [pc, #260] ; (80083b4 ) + 80082b0: 483e ldr r0, [pc, #248] ; (80083ac ) + 80082b2: f44f 7248 mov.w r2, #800 ; 0x320 + 80082b6: f001 f877 bl 80093a8 + 80082ba: 6828 ldr r0, [r5, #0] + 80082bc: 4621 mov r1, r4 + 80082be: f000 fb00 bl 80088c2 + 80082c2: 2800 cmp r0, #0 + 80082c4: d168 bne.n 8008398 + 80082c6: 682b ldr r3, [r5, #0] + 80082c8: f003 02f0 and.w r2, r3, #240 ; 0xf0 + 80082cc: 2ae0 cmp r2, #224 ; 0xe0 + 80082ce: d11e bne.n 800830e + 80082d0: 2301 movs r3, #1 + 80082d2: f88d 3008 strb.w r3, [sp, #8] + 80082d6: 235e movs r3, #94 ; 0x5e + 80082d8: f88d 300a strb.w r3, [sp, #10] + 80082dc: 786b ldrb r3, [r5, #1] + 80082de: f88d 0009 strb.w r0, [sp, #9] + 80082e2: f003 037f and.w r3, r3, #127 ; 0x7f + 80082e6: f88d 300b strb.w r3, [sp, #11] + 80082ea: 78ab ldrb r3, [r5, #2] + 80082ec: f88d 300c strb.w r3, [sp, #12] + 80082f0: 78eb ldrb r3, [r5, #3] + 80082f2: f88d 300d strb.w r3, [sp, #13] + 80082f6: ab02 add r3, sp, #8 + 80082f8: f44f 6200 mov.w r2, #2048 ; 0x800 + 80082fc: 9200 str r2, [sp, #0] + 80082fe: 4631 mov r1, r6 + 8008300: f104 022a add.w r2, r4, #42 ; 0x2a + 8008304: 4620 mov r0, r4 + 8008306: f000 ffcd bl 80092a4 + 800830a: b005 add sp, #20 + 800830c: bdf0 pop {r4, r5, r6, r7, pc} + 800830e: 6862 ldr r2, [r4, #4] + 8008310: 68a1 ldr r1, [r4, #8] + 8008312: 405a eors r2, r3 + 8008314: 420a tst r2, r1 + 8008316: d009 beq.n 800832c + 8008318: b29b uxth r3, r3 + 800831a: f64f 62a9 movw r2, #65193 ; 0xfea9 + 800831e: 4293 cmp r3, r2 + 8008320: d004 beq.n 800832c + 8008322: 68e3 ldr r3, [r4, #12] + 8008324: 2b00 cmp r3, #0 + 8008326: d039 beq.n 800839c + 8008328: f104 050c add.w r5, r4, #12 + 800832c: f8df c090 ldr.w ip, [pc, #144] ; 80083c0 + 8008330: 4b21 ldr r3, [pc, #132] ; (80083b8 ) + 8008332: f89c 2000 ldrb.w r2, [ip] + 8008336: 2118 movs r1, #24 + 8008338: fb01 3302 mla r3, r1, r2, r3 + 800833c: 7d19 ldrb r1, [r3, #20] + 800833e: 2901 cmp r1, #1 + 8008340: d90d bls.n 800835e + 8008342: 6899 ldr r1, [r3, #8] + 8008344: 42a1 cmp r1, r4 + 8008346: d10a bne.n 800835e + 8008348: 6829 ldr r1, [r5, #0] + 800834a: 685b ldr r3, [r3, #4] + 800834c: 4299 cmp r1, r3 + 800834e: d106 bne.n 800835e + 8008350: 4631 mov r1, r6 + 8008352: 4620 mov r0, r4 + 8008354: b005 add sp, #20 + 8008356: e8bd 40f0 ldmia.w sp!, {r4, r5, r6, r7, lr} + 800835a: f7ff bea3 b.w 80080a4 + 800835e: 4b16 ldr r3, [pc, #88] ; (80083b8 ) + 8008360: 2100 movs r1, #0 + 8008362: 7d1f ldrb r7, [r3, #20] + 8008364: 2f01 cmp r7, #1 + 8008366: b2ca uxtb r2, r1 + 8008368: d909 bls.n 800837e + 800836a: 689f ldr r7, [r3, #8] + 800836c: 42a7 cmp r7, r4 + 800836e: d106 bne.n 800837e + 8008370: 685f ldr r7, [r3, #4] + 8008372: 6828 ldr r0, [r5, #0] + 8008374: 42b8 cmp r0, r7 + 8008376: d102 bne.n 800837e + 8008378: f88c 2000 strb.w r2, [ip] + 800837c: e7e8 b.n 8008350 + 800837e: 3101 adds r1, #1 + 8008380: 290a cmp r1, #10 + 8008382: f103 0318 add.w r3, r3, #24 + 8008386: d1ec bne.n 8008362 + 8008388: 4632 mov r2, r6 + 800838a: 4629 mov r1, r5 + 800838c: 4620 mov r0, r4 + 800838e: b005 add sp, #20 + 8008390: e8bd 40f0 ldmia.w sp!, {r4, r5, r6, r7, lr} + 8008394: f7ff bedc b.w 8008150 + 8008398: 4b08 ldr r3, [pc, #32] ; (80083bc ) + 800839a: e7ad b.n 80082f8 + 800839c: f06f 0003 mvn.w r0, #3 + 80083a0: e7b3 b.n 800830a + 80083a2: bf00 nop + 80083a4: 0800c008 .word 0x0800c008 + 80083a8: 0800be96 .word 0x0800be96 + 80083ac: 0800a54d .word 0x0800a54d + 80083b0: 0800ab2d .word 0x0800ab2d + 80083b4: 0800c0f1 .word 0x0800c0f1 + 80083b8: 20008344 .word 0x20008344 + 80083bc: 0800c536 .word 0x0800c536 + 80083c0: 20008434 .word 0x20008434 + +080083c4 : + 80083c4: b5f0 push {r4, r5, r6, r7, lr} + 80083c6: 4604 mov r4, r0 + 80083c8: b087 sub sp, #28 + 80083ca: 460f mov r7, r1 + 80083cc: 4616 mov r6, r2 + 80083ce: 2124 movs r1, #36 ; 0x24 + 80083d0: f44f 7220 mov.w r2, #640 ; 0x280 + 80083d4: 2022 movs r0, #34 ; 0x22 + 80083d6: f7fa fd61 bl 8002e9c + 80083da: 4605 mov r5, r0 + 80083dc: b390 cbz r0, 8008444 + 80083de: 8943 ldrh r3, [r0, #10] + 80083e0: 2b23 cmp r3, #35 ; 0x23 + 80083e2: d806 bhi.n 80083f2 + 80083e4: 4b18 ldr r3, [pc, #96] ; (8008448 ) + 80083e6: 4919 ldr r1, [pc, #100] ; (800844c ) + 80083e8: 4819 ldr r0, [pc, #100] ; (8008450 ) + 80083ea: f44f 72b4 mov.w r2, #360 ; 0x168 + 80083ee: f000 ffdb bl 80093a8 + 80083f2: 6860 ldr r0, [r4, #4] + 80083f4: 686c ldr r4, [r5, #4] + 80083f6: 2300 movs r3, #0 + 80083f8: 7123 strb r3, [r4, #4] + 80083fa: 7163 strb r3, [r4, #5] + 80083fc: 71a3 strb r3, [r4, #6] + 80083fe: 71e3 strb r3, [r4, #7] + 8008400: 7027 strb r7, [r4, #0] + 8008402: 7066 strb r6, [r4, #1] + 8008404: 4603 mov r3, r0 + 8008406: f104 0208 add.w r2, r4, #8 + 800840a: f100 011c add.w r1, r0, #28 + 800840e: f853 6b04 ldr.w r6, [r3], #4 + 8008412: f842 6b04 str.w r6, [r2], #4 + 8008416: 428b cmp r3, r1 + 8008418: d1f9 bne.n 800840e + 800841a: 68c3 ldr r3, [r0, #12] + 800841c: 9305 str r3, [sp, #20] + 800841e: a805 add r0, sp, #20 + 8008420: f000 f8d0 bl 80085c4 + 8008424: b158 cbz r0, 800843e + 8008426: 2100 movs r1, #0 + 8008428: 2301 movs r3, #1 + 800842a: 70a1 strb r1, [r4, #2] + 800842c: 70e1 strb r1, [r4, #3] + 800842e: aa05 add r2, sp, #20 + 8008430: e9cd 1300 strd r1, r3, [sp] + 8008434: 9002 str r0, [sp, #8] + 8008436: 23ff movs r3, #255 ; 0xff + 8008438: 4628 mov r0, r5 + 800843a: f000 fa31 bl 80088a0 + 800843e: 4628 mov r0, r5 + 8008440: f7fa fcc8 bl 8002dd4 + 8008444: b007 add sp, #28 + 8008446: bdf0 pop {r4, r5, r6, r7, pc} + 8008448: 0800c18c .word 0x0800c18c + 800844c: 0800c1c1 .word 0x0800c1c1 + 8008450: 0800a54d .word 0x0800a54d + +08008454 : + 8008454: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} + 8008458: 4f43 ldr r7, [pc, #268] ; (8008568 ) + 800845a: f8d7 9008 ldr.w r9, [r7, #8] + 800845e: f899 5000 ldrb.w r5, [r9] + 8008462: f005 050f and.w r5, r5, #15 + 8008466: 00ad lsls r5, r5, #2 + 8008468: 2d13 cmp r5, #19 + 800846a: b087 sub sp, #28 + 800846c: 4604 mov r4, r0 + 800846e: 4688 mov r8, r1 + 8008470: d92f bls.n 80084d2 + 8008472: 8943 ldrh r3, [r0, #10] + 8008474: 2b03 cmp r3, #3 + 8008476: d92c bls.n 80084d2 + 8008478: 6843 ldr r3, [r0, #4] + 800847a: 781b ldrb r3, [r3, #0] + 800847c: 2b08 cmp r3, #8 + 800847e: d128 bne.n 80084d2 + 8008480: 6978 ldr r0, [r7, #20] + 8008482: f000 03f0 and.w r3, r0, #240 ; 0xf0 + 8008486: 2be0 cmp r3, #224 ; 0xe0 + 8008488: d023 beq.n 80084d2 + 800848a: 6839 ldr r1, [r7, #0] + 800848c: f000 fa19 bl 80088c2 + 8008490: b9f8 cbnz r0, 80084d2 + 8008492: 8923 ldrh r3, [r4, #8] + 8008494: 2b07 cmp r3, #7 + 8008496: d91c bls.n 80084d2 + 8008498: f105 010e add.w r1, r5, #14 + 800849c: 4620 mov r0, r4 + 800849e: 9105 str r1, [sp, #20] + 80084a0: f7fa fc60 bl 8002d64 + 80084a4: 9905 ldr r1, [sp, #20] + 80084a6: 2800 cmp r0, #0 + 80084a8: d052 beq.n 8008550 + 80084aa: 8923 ldrh r3, [r4, #8] + 80084ac: 1959 adds r1, r3, r5 + 80084ae: b289 uxth r1, r1 + 80084b0: 428b cmp r3, r1 + 80084b2: d80e bhi.n 80084d2 + 80084b4: f44f 7220 mov.w r2, #640 ; 0x280 + 80084b8: 200e movs r0, #14 + 80084ba: f7fa fcef bl 8002e9c + 80084be: 4606 mov r6, r0 + 80084c0: b138 cbz r0, 80084d2 + 80084c2: 8942 ldrh r2, [r0, #10] + 80084c4: f105 0308 add.w r3, r5, #8 + 80084c8: 429a cmp r2, r3 + 80084ca: d208 bcs.n 80084de + 80084cc: 4630 mov r0, r6 + 80084ce: f7fa fc81 bl 8002dd4 + 80084d2: 4620 mov r0, r4 + 80084d4: b007 add sp, #28 + 80084d6: e8bd 43f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, lr} + 80084da: f7fa bc7b b.w 8002dd4 + 80084de: 4649 mov r1, r9 + 80084e0: 6840 ldr r0, [r0, #4] + 80084e2: 462a mov r2, r5 + 80084e4: f000 ff4a bl 800937c + 80084e8: 4629 mov r1, r5 + 80084ea: 4630 mov r0, r6 + 80084ec: f7fa fc3e bl 8002d6c + 80084f0: b130 cbz r0, 8008500 + 80084f2: 4b1e ldr r3, [pc, #120] ; (800856c ) + 80084f4: 491e ldr r1, [pc, #120] ; (8008570 ) + 80084f6: 481f ldr r0, [pc, #124] ; (8008574 ) + 80084f8: 22b6 movs r2, #182 ; 0xb6 + 80084fa: f000 ff55 bl 80093a8 + 80084fe: e7e5 b.n 80084cc + 8008500: 4621 mov r1, r4 + 8008502: 4630 mov r0, r6 + 8008504: f7fa fe02 bl 800310c + 8008508: 2800 cmp r0, #0 + 800850a: d1df bne.n 80084cc + 800850c: 4620 mov r0, r4 + 800850e: f7fa fc61 bl 8002dd4 + 8008512: 4634 mov r4, r6 + 8008514: 4629 mov r1, r5 + 8008516: 4620 mov r0, r4 + 8008518: 6866 ldr r6, [r4, #4] + 800851a: f7fa fc23 bl 8002d64 + 800851e: 2800 cmp r0, #0 + 8008520: d1d7 bne.n 80084d2 + 8008522: 6862 ldr r2, [r4, #4] + 8008524: 697b ldr r3, [r7, #20] + 8008526: 60d3 str r3, [r2, #12] + 8008528: 693b ldr r3, [r7, #16] + 800852a: 6113 str r3, [r2, #16] + 800852c: 23ff movs r3, #255 ; 0xff + 800852e: 7030 strb r0, [r6, #0] + 8008530: 70b0 strb r0, [r6, #2] + 8008532: 70f0 strb r0, [r6, #3] + 8008534: 7213 strb r3, [r2, #8] + 8008536: 7290 strb r0, [r2, #10] + 8008538: 72d0 strb r0, [r2, #11] + 800853a: 2201 movs r2, #1 + 800853c: e9cd 0200 strd r0, r2, [sp] + 8008540: 490d ldr r1, [pc, #52] ; (8008578 ) + 8008542: f8cd 8008 str.w r8, [sp, #8] + 8008546: 4602 mov r2, r0 + 8008548: 4620 mov r0, r4 + 800854a: f000 f9a9 bl 80088a0 + 800854e: e7c0 b.n 80084d2 + 8008550: 4620 mov r0, r4 + 8008552: f7fa fc0b bl 8002d6c + 8008556: 2800 cmp r0, #0 + 8008558: d0dc beq.n 8008514 + 800855a: 4b04 ldr r3, [pc, #16] ; (800856c ) + 800855c: 4907 ldr r1, [pc, #28] ; (800857c ) + 800855e: 4805 ldr r0, [pc, #20] ; (8008574 ) + 8008560: 22c7 movs r2, #199 ; 0xc7 + 8008562: f000 ff21 bl 80093a8 + 8008566: e7b4 b.n 80084d2 + 8008568: 20004d1c .word 0x20004d1c + 800856c: 0800c18c .word 0x0800c18c + 8008570: 0800c1ed .word 0x0800c1ed + 8008574: 0800a54d .word 0x0800a54d + 8008578: 20004d30 .word 0x20004d30 + 800857c: 0800c222 .word 0x0800c222 + +08008580 : + 8008580: 460a mov r2, r1 + 8008582: 2103 movs r1, #3 + 8008584: f7ff bf1e b.w 80083c4 + +08008588 : + 8008588: 460a mov r2, r1 + 800858a: 210b movs r1, #11 + 800858c: f7ff bf1a b.w 80083c4 + +08008590 : + 8008590: b508 push {r3, lr} + 8008592: f890 3031 ldrb.w r3, [r0, #49] ; 0x31 + 8008596: f013 0301 ands.w r3, r3, #1 + 800859a: 4601 mov r1, r0 + 800859c: d00b beq.n 80085b6 + 800859e: 6843 ldr r3, [r0, #4] + 80085a0: b14b cbz r3, 80085b6 + 80085a2: 4a07 ldr r2, [pc, #28] ; (80085c0 ) + 80085a4: 6950 ldr r0, [r2, #20] + 80085a6: 4283 cmp r3, r0 + 80085a8: d007 beq.n 80085ba + 80085aa: f000 f98a bl 80088c2 + 80085ae: 3800 subs r0, #0 + 80085b0: bf18 it ne + 80085b2: 2001 movne r0, #1 + 80085b4: bd08 pop {r3, pc} + 80085b6: 4618 mov r0, r3 + 80085b8: e7fc b.n 80085b4 + 80085ba: 2001 movs r0, #1 + 80085bc: e7fa b.n 80085b4 + 80085be: bf00 nop + 80085c0: 20004d1c .word 0x20004d1c + +080085c4 : + 80085c4: b530 push {r4, r5, lr} + 80085c6: 4b14 ldr r3, [pc, #80] ; (8008618 ) + 80085c8: 4602 mov r2, r0 + 80085ca: 6818 ldr r0, [r3, #0] + 80085cc: b978 cbnz r0, 80085ee + 80085ce: 4b13 ldr r3, [pc, #76] ; (800861c ) + 80085d0: 681b ldr r3, [r3, #0] + 80085d2: b15b cbz r3, 80085ec + 80085d4: f893 1031 ldrb.w r1, [r3, #49] ; 0x31 + 80085d8: f001 0105 and.w r1, r1, #5 + 80085dc: 2905 cmp r1, #5 + 80085de: d105 bne.n 80085ec + 80085e0: 6859 ldr r1, [r3, #4] + 80085e2: b119 cbz r1, 80085ec + 80085e4: 7812 ldrb r2, [r2, #0] + 80085e6: 2a7f cmp r2, #127 ; 0x7f + 80085e8: bf18 it ne + 80085ea: 4618 movne r0, r3 + 80085ec: bd30 pop {r4, r5, pc} + 80085ee: f890 1031 ldrb.w r1, [r0, #49] ; 0x31 + 80085f2: 07cd lsls r5, r1, #31 + 80085f4: d50d bpl.n 8008612 + 80085f6: 074c lsls r4, r1, #29 + 80085f8: d50b bpl.n 8008612 + 80085fa: 6843 ldr r3, [r0, #4] + 80085fc: b14b cbz r3, 8008612 + 80085fe: 6814 ldr r4, [r2, #0] + 8008600: 6885 ldr r5, [r0, #8] + 8008602: 4063 eors r3, r4 + 8008604: 422b tst r3, r5 + 8008606: d0f1 beq.n 80085ec + 8008608: 078b lsls r3, r1, #30 + 800860a: d402 bmi.n 8008612 + 800860c: 68c3 ldr r3, [r0, #12] + 800860e: 429c cmp r4, r3 + 8008610: d0ec beq.n 80085ec + 8008612: 6800 ldr r0, [r0, #0] + 8008614: e7da b.n 80085cc + 8008616: bf00 nop + 8008618: 2000829c .word 0x2000829c + 800861c: 20008298 .word 0x20008298 + +08008620 : + 8008620: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 8008624: f8d0 8004 ldr.w r8, [r0, #4] + 8008628: f898 5000 ldrb.w r5, [r8] + 800862c: 092b lsrs r3, r5, #4 + 800862e: 2b04 cmp r3, #4 + 8008630: 4604 mov r4, r0 + 8008632: 460e mov r6, r1 + 8008634: d005 beq.n 8008642 + 8008636: 4620 mov r0, r4 + 8008638: f7fa fbcc bl 8002dd4 + 800863c: 2000 movs r0, #0 + 800863e: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8008642: f8b8 0002 ldrh.w r0, [r8, #2] + 8008646: f7f9 fe7a bl 800233e + 800864a: 8923 ldrh r3, [r4, #8] + 800864c: f005 050f and.w r5, r5, #15 + 8008650: ea4f 0985 mov.w r9, r5, lsl #2 + 8008654: 4283 cmp r3, r0 + 8008656: 464d mov r5, r9 + 8008658: 4607 mov r7, r0 + 800865a: d903 bls.n 8008664 + 800865c: 4601 mov r1, r0 + 800865e: 4620 mov r0, r4 + 8008660: f7fa fc9c bl 8002f9c + 8008664: 8963 ldrh r3, [r4, #10] + 8008666: 42ab cmp r3, r5 + 8008668: d3e5 bcc.n 8008636 + 800866a: 8923 ldrh r3, [r4, #8] + 800866c: 42bb cmp r3, r7 + 800866e: d3e2 bcc.n 8008636 + 8008670: 2d13 cmp r5, #19 + 8008672: d9e0 bls.n 8008636 + 8008674: f8d8 3010 ldr.w r3, [r8, #16] + 8008678: 4d49 ldr r5, [pc, #292] ; (80087a0 ) + 800867a: 616b str r3, [r5, #20] + 800867c: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 8008680: f8d8 200c ldr.w r2, [r8, #12] + 8008684: 612a str r2, [r5, #16] + 8008686: 2be0 cmp r3, #224 ; 0xe0 + 8008688: d143 bne.n 8008712 + 800868a: f896 3031 ldrb.w r3, [r6, #49] ; 0x31 + 800868e: 07db lsls r3, r3, #31 + 8008690: d405 bmi.n 800869e + 8008692: f898 3009 ldrb.w r3, [r8, #9] + 8008696: 2b11 cmp r3, #17 + 8008698: d053 beq.n 8008742 + 800869a: 2700 movs r7, #0 + 800869c: e003 b.n 80086a6 + 800869e: 6873 ldr r3, [r6, #4] + 80086a0: 2b00 cmp r3, #0 + 80086a2: d0f6 beq.n 8008692 + 80086a4: 4637 mov r7, r6 + 80086a6: 6928 ldr r0, [r5, #16] + 80086a8: b148 cbz r0, 80086be + 80086aa: 4631 mov r1, r6 + 80086ac: f000 f909 bl 80088c2 + 80086b0: 2800 cmp r0, #0 + 80086b2: d1c0 bne.n 8008636 + 80086b4: 692b ldr r3, [r5, #16] + 80086b6: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 80086ba: 2be0 cmp r3, #224 ; 0xe0 + 80086bc: d0bb beq.n 8008636 + 80086be: 2f00 cmp r7, #0 + 80086c0: d0b9 beq.n 8008636 + 80086c2: f8b8 3006 ldrh.w r3, [r8, #6] + 80086c6: f023 03c0 bic.w r3, r3, #192 ; 0xc0 + 80086ca: b13b cbz r3, 80086dc + 80086cc: 4620 mov r0, r4 + 80086ce: f000 fad3 bl 8008c78 + 80086d2: 4604 mov r4, r0 + 80086d4: 2800 cmp r0, #0 + 80086d6: d0b1 beq.n 800863c + 80086d8: f8d0 8004 ldr.w r8, [r0, #4] + 80086dc: f8c5 8008 str.w r8, [r5, #8] + 80086e0: e9c5 7600 strd r7, r6, [r5] + 80086e4: f898 3000 ldrb.w r3, [r8] + 80086e8: f003 030f and.w r3, r3, #15 + 80086ec: 009b lsls r3, r3, #2 + 80086ee: 4649 mov r1, r9 + 80086f0: 4620 mov r0, r4 + 80086f2: 81ab strh r3, [r5, #12] + 80086f4: f7fa fb3a bl 8002d6c + 80086f8: f898 3009 ldrb.w r3, [r8, #9] + 80086fc: 2b06 cmp r3, #6 + 80086fe: d034 beq.n 800876a + 8008700: 2b11 cmp r3, #17 + 8008702: d026 beq.n 8008752 + 8008704: 2b01 cmp r3, #1 + 8008706: d135 bne.n 8008774 + 8008708: 4631 mov r1, r6 + 800870a: 4620 mov r0, r4 + 800870c: f7ff fea2 bl 8008454 + 8008710: e023 b.n 800875a + 8008712: 4630 mov r0, r6 + 8008714: f7ff ff3c bl 8008590 + 8008718: b980 cbnz r0, 800873c + 800871a: 7d2b ldrb r3, [r5, #20] + 800871c: 2b7f cmp r3, #127 ; 0x7f + 800871e: d0b8 beq.n 8008692 + 8008720: 4b20 ldr r3, [pc, #128] ; (80087a4 ) + 8008722: 681f ldr r7, [r3, #0] + 8008724: 2f00 cmp r7, #0 + 8008726: d0b4 beq.n 8008692 + 8008728: 42b7 cmp r7, r6 + 800872a: d101 bne.n 8008730 + 800872c: 683f ldr r7, [r7, #0] + 800872e: e7f9 b.n 8008724 + 8008730: 4638 mov r0, r7 + 8008732: f7ff ff2d bl 8008590 + 8008736: 2800 cmp r0, #0 + 8008738: d0f8 beq.n 800872c + 800873a: e7b4 b.n 80086a6 + 800873c: 2e00 cmp r6, #0 + 800873e: d1b1 bne.n 80086a4 + 8008740: e7a7 b.n 8008692 + 8008742: eb08 0309 add.w r3, r8, r9 + 8008746: 885b ldrh r3, [r3, #2] + 8008748: f5b3 4f88 cmp.w r3, #17408 ; 0x4400 + 800874c: d1a5 bne.n 800869a + 800874e: 4637 mov r7, r6 + 8008750: e7b5 b.n 80086be + 8008752: 4631 mov r1, r6 + 8008754: 4620 mov r0, r4 + 8008756: f7fd ff07 bl 8006568 + 800875a: 2300 movs r3, #0 + 800875c: e9c5 3300 strd r3, r3, [r5] + 8008760: e9c5 3304 strd r3, r3, [r5, #16] + 8008764: 60ab str r3, [r5, #8] + 8008766: 81ab strh r3, [r5, #12] + 8008768: e768 b.n 800863c + 800876a: 4631 mov r1, r6 + 800876c: 4620 mov r0, r4 + 800876e: f7fc fa21 bl 8004bb4 + 8008772: e7f2 b.n 800875a + 8008774: 6968 ldr r0, [r5, #20] + 8008776: 4639 mov r1, r7 + 8008778: f000 f8a3 bl 80088c2 + 800877c: b960 cbnz r0, 8008798 + 800877e: 696b ldr r3, [r5, #20] + 8008780: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 8008784: 2be0 cmp r3, #224 ; 0xe0 + 8008786: d007 beq.n 8008798 + 8008788: 4649 mov r1, r9 + 800878a: 4620 mov r0, r4 + 800878c: f7fa fb1a bl 8002dc4 + 8008790: 2102 movs r1, #2 + 8008792: 4620 mov r0, r4 + 8008794: f7ff fef4 bl 8008580 + 8008798: 4620 mov r0, r4 + 800879a: f7fa fb1b bl 8002dd4 + 800879e: e7dc b.n 800875a + 80087a0: 20004d1c .word 0x20004d1c + 80087a4: 2000829c .word 0x2000829c + +080087a8 : + 80087a8: e92d 47f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, r9, sl, lr} + 80087ac: 4698 mov r8, r3 + 80087ae: 7b83 ldrb r3, [r0, #14] + 80087b0: 9f0c ldr r7, [sp, #48] ; 0x30 + 80087b2: 2b01 cmp r3, #1 + 80087b4: 4604 mov r4, r0 + 80087b6: 4689 mov r9, r1 + 80087b8: 4616 mov r6, r2 + 80087ba: d006 beq.n 80087ca + 80087bc: 4b32 ldr r3, [pc, #200] ; (8008888 ) + 80087be: 4933 ldr r1, [pc, #204] ; (800888c ) + 80087c0: 4833 ldr r0, [pc, #204] ; (8008890 ) + 80087c2: f44f 7255 mov.w r2, #852 ; 0x354 + 80087c6: f000 fdef bl 80093a8 + 80087ca: 2e00 cmp r6, #0 + 80087cc: d04e beq.n 800886c + 80087ce: 2114 movs r1, #20 + 80087d0: 4620 mov r0, r4 + 80087d2: f7fa fac7 bl 8002d64 + 80087d6: b120 cbz r0, 80087e2 + 80087d8: f06f 0001 mvn.w r0, #1 + 80087dc: b002 add sp, #8 + 80087de: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 80087e2: 8963 ldrh r3, [r4, #10] + 80087e4: 6865 ldr r5, [r4, #4] + 80087e6: 2b13 cmp r3, #19 + 80087e8: d806 bhi.n 80087f8 + 80087ea: 4b27 ldr r3, [pc, #156] ; (8008888 ) + 80087ec: 4929 ldr r1, [pc, #164] ; (8008894 ) + 80087ee: 4828 ldr r0, [pc, #160] ; (8008890 ) + 80087f0: f44f 7262 mov.w r2, #904 ; 0x388 + 80087f4: f000 fdd8 bl 80093a8 + 80087f8: f89d 302c ldrb.w r3, [sp, #44] ; 0x2c + 80087fc: f885 8008 strb.w r8, [r5, #8] + 8008800: 726b strb r3, [r5, #9] + 8008802: 6833 ldr r3, [r6, #0] + 8008804: 612b str r3, [r5, #16] + 8008806: 2345 movs r3, #69 ; 0x45 + 8008808: 702b strb r3, [r5, #0] + 800880a: f89d 3028 ldrb.w r3, [sp, #40] ; 0x28 + 800880e: 706b strb r3, [r5, #1] + 8008810: 8920 ldrh r0, [r4, #8] + 8008812: f8df a088 ldr.w sl, [pc, #136] ; 800889c + 8008816: f7f9 fd92 bl 800233e + 800881a: f04f 0800 mov.w r8, #0 + 800881e: 8068 strh r0, [r5, #2] + 8008820: f885 8006 strb.w r8, [r5, #6] + 8008824: f8ba 0000 ldrh.w r0, [sl] + 8008828: f885 8007 strb.w r8, [r5, #7] + 800882c: f7f9 fd87 bl 800233e + 8008830: f8ba 3000 ldrh.w r3, [sl] + 8008834: 80a8 strh r0, [r5, #4] + 8008836: 3301 adds r3, #1 + 8008838: f8aa 3000 strh.w r3, [sl] + 800883c: f1b9 0f00 cmp.w r9, #0 + 8008840: d111 bne.n 8008866 + 8008842: 4b15 ldr r3, [pc, #84] ; (8008898 ) + 8008844: 681b ldr r3, [r3, #0] + 8008846: 60eb str r3, [r5, #12] + 8008848: f885 800a strb.w r8, [r5, #10] + 800884c: f885 800b strb.w r8, [r5, #11] + 8008850: 8d3b ldrh r3, [r7, #40] ; 0x28 + 8008852: b19b cbz r3, 800887c + 8008854: 8922 ldrh r2, [r4, #8] + 8008856: 429a cmp r2, r3 + 8008858: d910 bls.n 800887c + 800885a: 4632 mov r2, r6 + 800885c: 4639 mov r1, r7 + 800885e: 4620 mov r0, r4 + 8008860: f000 fbe4 bl 800902c + 8008864: e7ba b.n 80087dc + 8008866: f8d9 3000 ldr.w r3, [r9] + 800886a: e7ec b.n 8008846 + 800886c: 8963 ldrh r3, [r4, #10] + 800886e: 2b13 cmp r3, #19 + 8008870: d9b2 bls.n 80087d8 + 8008872: 6863 ldr r3, [r4, #4] + 8008874: 691b ldr r3, [r3, #16] + 8008876: 9301 str r3, [sp, #4] + 8008878: ae01 add r6, sp, #4 + 800887a: e7e9 b.n 8008850 + 800887c: 697b ldr r3, [r7, #20] + 800887e: 4632 mov r2, r6 + 8008880: 4621 mov r1, r4 + 8008882: 4638 mov r0, r7 + 8008884: 4798 blx r3 + 8008886: e7a9 b.n 80087dc + 8008888: 0800c254 .word 0x0800c254 + 800888c: 0800c288 .word 0x0800c288 + 8008890: 0800a54d .word 0x0800a54d + 8008894: 0800c294 .word 0x0800c294 + 8008898: 0800c304 .word 0x0800c304 + 800889c: 20008436 .word 0x20008436 + +080088a0 : + 80088a0: b4f0 push {r4, r5, r6, r7} + 80088a2: 9c06 ldr r4, [sp, #24] + 80088a4: f89d 5010 ldrb.w r5, [sp, #16] + 80088a8: f89d 6014 ldrb.w r6, [sp, #20] + 80088ac: b11a cbz r2, 80088b6 + 80088ae: b109 cbz r1, 80088b4 + 80088b0: 680f ldr r7, [r1, #0] + 80088b2: b907 cbnz r7, 80088b6 + 80088b4: 1d21 adds r1, r4, #4 + 80088b6: e9cd 6405 strd r6, r4, [sp, #20] + 80088ba: 9504 str r5, [sp, #16] + 80088bc: bcf0 pop {r4, r5, r6, r7} + 80088be: f7ff bf73 b.w 80087a8 + +080088c2 : + 80088c2: 1e43 subs r3, r0, #1 + 80088c4: 3303 adds r3, #3 + 80088c6: 4602 mov r2, r0 + 80088c8: d812 bhi.n 80088f0 + 80088ca: f891 3031 ldrb.w r3, [r1, #49] ; 0x31 + 80088ce: f013 0002 ands.w r0, r3, #2 + 80088d2: d010 beq.n 80088f6 + 80088d4: 684b ldr r3, [r1, #4] + 80088d6: 4293 cmp r3, r2 + 80088d8: d00c beq.n 80088f4 + 80088da: 6888 ldr r0, [r1, #8] + 80088dc: 4053 eors r3, r2 + 80088de: 4203 tst r3, r0 + 80088e0: d108 bne.n 80088f4 + 80088e2: 43c3 mvns r3, r0 + 80088e4: ea22 0000 bic.w r0, r2, r0 + 80088e8: 1ac3 subs r3, r0, r3 + 80088ea: 4258 negs r0, r3 + 80088ec: 4158 adcs r0, r3 + 80088ee: 4770 bx lr + 80088f0: 2001 movs r0, #1 + 80088f2: 4770 bx lr + 80088f4: 2000 movs r0, #0 + 80088f6: 4770 bx lr + +080088f8 : + 80088f8: e92d 41ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, lr} + 80088fc: f8df c12c ldr.w ip, [pc, #300] ; 8008a2c + 8008900: 7802 ldrb r2, [r0, #0] + 8008902: 466e mov r6, sp + 8008904: 460d mov r5, r1 + 8008906: 2304 movs r3, #4 + 8008908: 4637 mov r7, r6 + 800890a: f812 100c ldrb.w r1, [r2, ip] + 800890e: f011 0104 ands.w r1, r1, #4 + 8008912: f000 8081 beq.w 8008a18 + 8008916: 2a30 cmp r2, #48 ; 0x30 + 8008918: d11b bne.n 8008952 + 800891a: 7842 ldrb r2, [r0, #1] + 800891c: f002 01df and.w r1, r2, #223 ; 0xdf + 8008920: 2958 cmp r1, #88 ; 0x58 + 8008922: bf0d iteet eq + 8008924: 7882 ldrbeq r2, [r0, #2] + 8008926: 3001 addne r0, #1 + 8008928: f04f 0e08 movne.w lr, #8 + 800892c: 3002 addeq r0, #2 + 800892e: bf08 it eq + 8008930: f04f 0e10 moveq.w lr, #16 + 8008934: 3001 adds r0, #1 + 8008936: 2400 movs r4, #0 + 8008938: f81c 1002 ldrb.w r1, [ip, r2] + 800893c: f011 0f04 tst.w r1, #4 + 8008940: f100 38ff add.w r8, r0, #4294967295 + 8008944: d008 beq.n 8008958 + 8008946: fb04 240e mla r4, r4, lr, r2 + 800894a: 3c30 subs r4, #48 ; 0x30 + 800894c: 7802 ldrb r2, [r0, #0] + 800894e: 3001 adds r0, #1 + 8008950: e7f2 b.n 8008938 + 8008952: f04f 0e0a mov.w lr, #10 + 8008956: e7ed b.n 8008934 + 8008958: f1be 0f10 cmp.w lr, #16 + 800895c: d10e bne.n 800897c + 800895e: f011 0f44 tst.w r1, #68 ; 0x44 + 8008962: d00b beq.n 800897c + 8008964: f001 0103 and.w r1, r1, #3 + 8008968: 2902 cmp r1, #2 + 800896a: f102 020a add.w r2, r2, #10 + 800896e: bf0c ite eq + 8008970: 2161 moveq r1, #97 ; 0x61 + 8008972: 2141 movne r1, #65 ; 0x41 + 8008974: 1a52 subs r2, r2, r1 + 8008976: ea42 1404 orr.w r4, r2, r4, lsl #4 + 800897a: e7e7 b.n 800894c + 800897c: 2a2e cmp r2, #46 ; 0x2e + 800897e: d108 bne.n 8008992 + 8008980: 3b01 subs r3, #1 + 8008982: d049 beq.n 8008a18 + 8008984: f846 4b04 str.w r4, [r6], #4 + 8008988: f898 2001 ldrb.w r2, [r8, #1] + 800898c: f108 0001 add.w r0, r8, #1 + 8008990: e7bb b.n 800890a + 8008992: b112 cbz r2, 800899a + 8008994: f011 0008 ands.w r0, r1, #8 + 8008998: d03f beq.n 8008a1a + 800899a: 1bf0 subs r0, r6, r7 + 800899c: 1080 asrs r0, r0, #2 + 800899e: 3001 adds r0, #1 + 80089a0: 2804 cmp r0, #4 + 80089a2: d832 bhi.n 8008a0a + 80089a4: e8df f000 tbb [pc, r0] + 80089a8: 12030b39 .word 0x12030b39 + 80089ac: 20 .byte 0x20 + 80089ad: 00 .byte 0x00 + 80089ae: f1b4 7f80 cmp.w r4, #16777216 ; 0x1000000 + 80089b2: d231 bcs.n 8008a18 + 80089b4: 9b00 ldr r3, [sp, #0] + 80089b6: 2bff cmp r3, #255 ; 0xff + 80089b8: d82e bhi.n 8008a18 + 80089ba: ea44 6403 orr.w r4, r4, r3, lsl #24 + 80089be: b11d cbz r5, 80089c8 + 80089c0: 4620 mov r0, r4 + 80089c2: f7f9 fcbf bl 8002344 + 80089c6: 6028 str r0, [r5, #0] + 80089c8: 2001 movs r0, #1 + 80089ca: e026 b.n 8008a1a + 80089cc: f5b4 3f80 cmp.w r4, #65536 ; 0x10000 + 80089d0: d222 bcs.n 8008a18 + 80089d2: 9a00 ldr r2, [sp, #0] + 80089d4: 2aff cmp r2, #255 ; 0xff + 80089d6: d81f bhi.n 8008a18 + 80089d8: 9b01 ldr r3, [sp, #4] + 80089da: 2bff cmp r3, #255 ; 0xff + 80089dc: d81c bhi.n 8008a18 + 80089de: 041b lsls r3, r3, #16 + 80089e0: ea43 6302 orr.w r3, r3, r2, lsl #24 + 80089e4: 431c orrs r4, r3 + 80089e6: e7ea b.n 80089be + 80089e8: 2cff cmp r4, #255 ; 0xff + 80089ea: d815 bhi.n 8008a18 + 80089ec: 9900 ldr r1, [sp, #0] + 80089ee: 29ff cmp r1, #255 ; 0xff + 80089f0: d812 bhi.n 8008a18 + 80089f2: 9b01 ldr r3, [sp, #4] + 80089f4: 2bff cmp r3, #255 ; 0xff + 80089f6: d80f bhi.n 8008a18 + 80089f8: 9a02 ldr r2, [sp, #8] + 80089fa: 2aff cmp r2, #255 ; 0xff + 80089fc: d80c bhi.n 8008a18 + 80089fe: 041b lsls r3, r3, #16 + 8008a00: ea43 6301 orr.w r3, r3, r1, lsl #24 + 8008a04: ea43 2302 orr.w r3, r3, r2, lsl #8 + 8008a08: e7ec b.n 80089e4 + 8008a0a: 4b05 ldr r3, [pc, #20] ; (8008a20 ) + 8008a0c: 4905 ldr r1, [pc, #20] ; (8008a24 ) + 8008a0e: 4806 ldr r0, [pc, #24] ; (8008a28 ) + 8008a10: 22f9 movs r2, #249 ; 0xf9 + 8008a12: f000 fcc9 bl 80093a8 + 8008a16: e7d2 b.n 80089be + 8008a18: 2000 movs r0, #0 + 8008a1a: b004 add sp, #16 + 8008a1c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8008a20: 0800c2c1 .word 0x0800c2c1 + 8008a24: 0800c2fa .word 0x0800c2fa + 8008a28: 0800a54d .word 0x0800a54d + 8008a2c: 0800c543 .word 0x0800c543 + +08008a30 : + 8008a30: b507 push {r0, r1, r2, lr} + 8008a32: a901 add r1, sp, #4 + 8008a34: f7ff ff60 bl 80088f8 + 8008a38: b118 cbz r0, 8008a42 + 8008a3a: 9801 ldr r0, [sp, #4] + 8008a3c: b003 add sp, #12 + 8008a3e: f85d fb04 ldr.w pc, [sp], #4 + 8008a42: f04f 30ff mov.w r0, #4294967295 + 8008a46: e7f9 b.n 8008a3c + +08008a48 : + 8008a48: b538 push {r3, r4, r5, lr} + 8008a4a: 4b0c ldr r3, [pc, #48] ; (8008a7c ) + 8008a4c: 681a ldr r2, [r3, #0] + 8008a4e: 4282 cmp r2, r0 + 8008a50: 4604 mov r4, r0 + 8008a52: 460d mov r5, r1 + 8008a54: d107 bne.n 8008a66 + 8008a56: 6802 ldr r2, [r0, #0] + 8008a58: 601a str r2, [r3, #0] + 8008a5a: 4621 mov r1, r4 + 8008a5c: 2004 movs r0, #4 + 8008a5e: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 8008a62: f7f9 bf3f b.w 80028e4 + 8008a66: b931 cbnz r1, 8008a76 + 8008a68: 4b05 ldr r3, [pc, #20] ; (8008a80 ) + 8008a6a: 4906 ldr r1, [pc, #24] ; (8008a84 ) + 8008a6c: 4806 ldr r0, [pc, #24] ; (8008a88 ) + 8008a6e: f240 1245 movw r2, #325 ; 0x145 + 8008a72: f000 fc99 bl 80093a8 + 8008a76: 6823 ldr r3, [r4, #0] + 8008a78: 602b str r3, [r5, #0] + 8008a7a: e7ee b.n 8008a5a + 8008a7c: 2000843c .word 0x2000843c + 8008a80: 0800c30c .word 0x0800c30c + 8008a84: 0800c345 .word 0x0800c345 + 8008a88: 0800a54d .word 0x0800a54d + +08008a8c : + 8008a8c: 4281 cmp r1, r0 + 8008a8e: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8008a92: 4604 mov r4, r0 + 8008a94: 460e mov r6, r1 + 8008a96: d105 bne.n 8008aa4 + 8008a98: 4b2f ldr r3, [pc, #188] ; (8008b58 ) + 8008a9a: 4930 ldr r1, [pc, #192] ; (8008b5c ) + 8008a9c: 4830 ldr r0, [pc, #192] ; (8008b60 ) + 8008a9e: 22ab movs r2, #171 ; 0xab + 8008aa0: f000 fc82 bl 80093a8 + 8008aa4: b146 cbz r6, 8008ab8 + 8008aa6: 6833 ldr r3, [r6, #0] + 8008aa8: 42a3 cmp r3, r4 + 8008aaa: d005 beq.n 8008ab8 + 8008aac: 4b2a ldr r3, [pc, #168] ; (8008b58 ) + 8008aae: 492d ldr r1, [pc, #180] ; (8008b64 ) + 8008ab0: 482b ldr r0, [pc, #172] ; (8008b60 ) + 8008ab2: 22ad movs r2, #173 ; 0xad + 8008ab4: f000 fc78 bl 80093a8 + 8008ab8: 6867 ldr r7, [r4, #4] + 8008aba: 687b ldr r3, [r7, #4] + 8008abc: 889a ldrh r2, [r3, #4] + 8008abe: bb92 cbnz r2, 8008b26 + 8008ac0: 681a ldr r2, [r3, #0] + 8008ac2: 6062 str r2, [r4, #4] + 8008ac4: f104 011c add.w r1, r4, #28 + 8008ac8: f104 0208 add.w r2, r4, #8 + 8008acc: f852 0b04 ldr.w r0, [r2], #4 + 8008ad0: f843 0b04 str.w r0, [r3], #4 + 8008ad4: 428a cmp r2, r1 + 8008ad6: d1f9 bne.n 8008acc + 8008ad8: 2101 movs r1, #1 + 8008ada: 4638 mov r0, r7 + 8008adc: f7ff fd54 bl 8008588 + 8008ae0: 4638 mov r0, r7 + 8008ae2: f7fa fab3 bl 800304c + 8008ae6: 4605 mov r5, r0 + 8008ae8: 4638 mov r0, r7 + 8008aea: f7fa f973 bl 8002dd4 + 8008aee: 6867 ldr r7, [r4, #4] + 8008af0: f8df 8064 ldr.w r8, [pc, #100] ; 8008b58 + 8008af4: f8df 9078 ldr.w r9, [pc, #120] ; 8008b70 + 8008af8: f8df a064 ldr.w sl, [pc, #100] ; 8008b60 + 8008afc: b9af cbnz r7, 8008b2a + 8008afe: 4620 mov r0, r4 + 8008b00: 4c19 ldr r4, [pc, #100] ; (8008b68 ) + 8008b02: 4631 mov r1, r6 + 8008b04: f7ff ffa0 bl 8008a48 + 8008b08: 8823 ldrh r3, [r4, #0] + 8008b0a: 42ab cmp r3, r5 + 8008b0c: d205 bcs.n 8008b1a + 8008b0e: 4b12 ldr r3, [pc, #72] ; (8008b58 ) + 8008b10: 4916 ldr r1, [pc, #88] ; (8008b6c ) + 8008b12: 4813 ldr r0, [pc, #76] ; (8008b60 ) + 8008b14: 22d2 movs r2, #210 ; 0xd2 + 8008b16: f000 fc47 bl 80093a8 + 8008b1a: 8823 ldrh r3, [r4, #0] + 8008b1c: 1b5b subs r3, r3, r5 + 8008b1e: 8023 strh r3, [r4, #0] + 8008b20: 4628 mov r0, r5 + 8008b22: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8008b26: 2500 movs r5, #0 + 8008b28: e7e1 b.n 8008aee + 8008b2a: 687b ldr r3, [r7, #4] + 8008b2c: 4638 mov r0, r7 + 8008b2e: f8d3 b000 ldr.w fp, [r3] + 8008b32: f7fa fa8b bl 800304c + 8008b36: 4405 add r5, r0 + 8008b38: f5b5 3f80 cmp.w r5, #65536 ; 0x10000 + 8008b3c: db05 blt.n 8008b4a + 8008b3e: 4643 mov r3, r8 + 8008b40: 22cc movs r2, #204 ; 0xcc + 8008b42: 4649 mov r1, r9 + 8008b44: 4650 mov r0, sl + 8008b46: f000 fc2f bl 80093a8 + 8008b4a: 4638 mov r0, r7 + 8008b4c: f7fa f942 bl 8002dd4 + 8008b50: b2ad uxth r5, r5 + 8008b52: 465f mov r7, fp + 8008b54: e7d2 b.n 8008afc + 8008b56: bf00 nop + 8008b58: 0800c30c .word 0x0800c30c + 8008b5c: 0800c35e .word 0x0800c35e + 8008b60: 0800a54d .word 0x0800a54d + 8008b64: 0800c36a .word 0x0800c36a + 8008b68: 20008438 .word 0x20008438 + 8008b6c: 0800c399 .word 0x0800c399 + 8008b70: 0800c37c .word 0x0800c37c + +08008b74 : + 8008b74: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8008b78: f8df 806c ldr.w r8, [pc, #108] ; 8008be8 + 8008b7c: 4605 mov r5, r0 + 8008b7e: 460f mov r7, r1 + 8008b80: 2600 movs r6, #0 + 8008b82: 2400 movs r4, #0 + 8008b84: f8d8 3000 ldr.w r3, [r8] + 8008b88: 4621 mov r1, r4 + 8008b8a: 46a4 mov ip, r4 + 8008b8c: 4620 mov r0, r4 + 8008b8e: b953 cbnz r3, 8008ba6 + 8008b90: b110 cbz r0, 8008b98 + 8008b92: f7ff ff7b bl 8008a8c + 8008b96: 4406 add r6, r0 + 8008b98: 42be cmp r6, r7 + 8008b9a: da01 bge.n 8008ba0 + 8008b9c: 2c01 cmp r4, #1 + 8008b9e: dcf0 bgt.n 8008b82 + 8008ba0: 4630 mov r0, r6 + 8008ba2: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8008ba6: f8d5 e00c ldr.w lr, [r5, #12] + 8008baa: 695a ldr r2, [r3, #20] + 8008bac: 4572 cmp r2, lr + 8008bae: d109 bne.n 8008bc4 + 8008bb0: f8d5 e010 ldr.w lr, [r5, #16] + 8008bb4: 699a ldr r2, [r3, #24] + 8008bb6: 4572 cmp r2, lr + 8008bb8: d104 bne.n 8008bc4 + 8008bba: f8b3 e00c ldrh.w lr, [r3, #12] + 8008bbe: 88aa ldrh r2, [r5, #4] + 8008bc0: 4596 cmp lr, r2 + 8008bc2: d008 beq.n 8008bd6 + 8008bc4: 3401 adds r4, #1 + 8008bc6: b160 cbz r0, 8008be2 + 8008bc8: 7fc2 ldrb r2, [r0, #31] + 8008bca: f893 e01f ldrb.w lr, [r3, #31] + 8008bce: 4596 cmp lr, r2 + 8008bd0: bf9c itt ls + 8008bd2: 4661 movls r1, ip + 8008bd4: 4618 movls r0, r3 + 8008bd6: 681a ldr r2, [r3, #0] + 8008bd8: 2a00 cmp r2, #0 + 8008bda: bf18 it ne + 8008bdc: 469c movne ip, r3 + 8008bde: 4613 mov r3, r2 + 8008be0: e7d5 b.n 8008b8e + 8008be2: 4661 mov r1, ip + 8008be4: 4618 mov r0, r3 + 8008be6: e7f6 b.n 8008bd6 + 8008be8: 2000843c .word 0x2000843c + +08008bec : + 8008bec: b510 push {r4, lr} + 8008bee: 4604 mov r4, r0 + 8008bf0: b930 cbnz r0, 8008c00 + 8008bf2: 4b06 ldr r3, [pc, #24] ; (8008c0c ) + 8008bf4: 4906 ldr r1, [pc, #24] ; (8008c10 ) + 8008bf6: 4807 ldr r0, [pc, #28] ; (8008c14 ) + 8008bf8: f44f 7231 mov.w r2, #708 ; 0x2c4 + 8008bfc: f000 fbd4 bl 80093a8 + 8008c00: 4621 mov r1, r4 + 8008c02: 2005 movs r0, #5 + 8008c04: e8bd 4010 ldmia.w sp!, {r4, lr} + 8008c08: f7f9 be6c b.w 80028e4 + 8008c0c: 0800c30c .word 0x0800c30c + 8008c10: 0800ab15 .word 0x0800ab15 + 8008c14: 0800a54d .word 0x0800a54d + +08008c18 : + 8008c18: b510 push {r4, lr} + 8008c1a: 4604 mov r4, r0 + 8008c1c: b930 cbnz r0, 8008c2c + 8008c1e: 4b08 ldr r3, [pc, #32] ; (8008c40 ) + 8008c20: 4908 ldr r1, [pc, #32] ; (8008c44 ) + 8008c22: 4809 ldr r0, [pc, #36] ; (8008c48 ) + 8008c24: f240 22ce movw r2, #718 ; 0x2ce + 8008c28: f000 fbbe bl 80093a8 + 8008c2c: 6960 ldr r0, [r4, #20] + 8008c2e: b108 cbz r0, 8008c34 + 8008c30: f7fa f8d0 bl 8002dd4 + 8008c34: 4620 mov r0, r4 + 8008c36: e8bd 4010 ldmia.w sp!, {r4, lr} + 8008c3a: f7ff bfd7 b.w 8008bec + 8008c3e: bf00 nop + 8008c40: 0800c30c .word 0x0800c30c + 8008c44: 0800c3bb .word 0x0800c3bb + 8008c48: 0800a54d .word 0x0800a54d + +08008c4c : + 8008c4c: b538 push {r3, r4, r5, lr} + 8008c4e: 4b09 ldr r3, [pc, #36] ; (8008c74 ) + 8008c50: 6818 ldr r0, [r3, #0] + 8008c52: 2400 movs r4, #0 + 8008c54: b900 cbnz r0, 8008c58 + 8008c56: bd38 pop {r3, r4, r5, pc} + 8008c58: 7fc3 ldrb r3, [r0, #31] + 8008c5a: 6805 ldr r5, [r0, #0] + 8008c5c: b123 cbz r3, 8008c68 + 8008c5e: 3b01 subs r3, #1 + 8008c60: 77c3 strb r3, [r0, #31] + 8008c62: 4604 mov r4, r0 + 8008c64: 4628 mov r0, r5 + 8008c66: e7f5 b.n 8008c54 + 8008c68: 4621 mov r1, r4 + 8008c6a: f7ff ff0f bl 8008a8c + 8008c6e: 4620 mov r0, r4 + 8008c70: e7f7 b.n 8008c62 + 8008c72: bf00 nop + 8008c74: 2000843c .word 0x2000843c + +08008c78 : + 8008c78: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8008c7c: 6845 ldr r5, [r0, #4] + 8008c7e: 782b ldrb r3, [r5, #0] + 8008c80: f003 030f and.w r3, r3, #15 + 8008c84: 2b05 cmp r3, #5 + 8008c86: 4680 mov r8, r0 + 8008c88: f040 80a1 bne.w 8008dce + 8008c8c: 88e8 ldrh r0, [r5, #6] + 8008c8e: f7f9 fb56 bl 800233e + 8008c92: 4607 mov r7, r0 + 8008c94: 8868 ldrh r0, [r5, #2] + 8008c96: f7f9 fb52 bl 800233e + 8008c9a: 782a ldrb r2, [r5, #0] + 8008c9c: f002 020f and.w r2, r2, #15 + 8008ca0: ebb0 0f82 cmp.w r0, r2, lsl #2 + 8008ca4: ea4f 0382 mov.w r3, r2, lsl #2 + 8008ca8: f0c0 8091 bcc.w 8008dce + 8008cac: 1ac3 subs r3, r0, r3 + 8008cae: b29b uxth r3, r3 + 8008cb0: 4cb5 ldr r4, [pc, #724] ; (8008f88 ) + 8008cb2: 9301 str r3, [sp, #4] + 8008cb4: 4640 mov r0, r8 + 8008cb6: f7fa f9c9 bl 800304c + 8008cba: 8823 ldrh r3, [r4, #0] + 8008cbc: 4403 add r3, r0 + 8008cbe: 2b0a cmp r3, #10 + 8008cc0: 4681 mov r9, r0 + 8008cc2: dc7a bgt.n 8008dba + 8008cc4: 4eb1 ldr r6, [pc, #708] ; (8008f8c ) + 8008cc6: 6834 ldr r4, [r6, #0] + 8008cc8: 2c00 cmp r4, #0 + 8008cca: f040 8085 bne.w 8008dd8 + 8008cce: 2004 movs r0, #4 + 8008cd0: f7f9 fdd8 bl 8002884 + 8008cd4: 4604 mov r4, r0 + 8008cd6: b958 cbnz r0, 8008cf0 + 8008cd8: 4649 mov r1, r9 + 8008cda: 4628 mov r0, r5 + 8008cdc: f7ff ff4a bl 8008b74 + 8008ce0: 4581 cmp r9, r0 + 8008ce2: dc74 bgt.n 8008dce + 8008ce4: 2004 movs r0, #4 + 8008ce6: f7f9 fdcd bl 8002884 + 8008cea: 4604 mov r4, r0 + 8008cec: 2800 cmp r0, #0 + 8008cee: d06e beq.n 8008dce + 8008cf0: 221c movs r2, #28 + 8008cf2: 2100 movs r1, #0 + 8008cf4: 1d20 adds r0, r4, #4 + 8008cf6: f000 fb4f bl 8009398 + 8008cfa: 230f movs r3, #15 + 8008cfc: 77e3 strb r3, [r4, #31] + 8008cfe: 6833 ldr r3, [r6, #0] + 8008d00: 6023 str r3, [r4, #0] + 8008d02: 6034 str r4, [r6, #0] + 8008d04: 462b mov r3, r5 + 8008d06: f104 0208 add.w r2, r4, #8 + 8008d0a: f105 0114 add.w r1, r5, #20 + 8008d0e: f853 0b04 ldr.w r0, [r3], #4 + 8008d12: f842 0b04 str.w r0, [r2], #4 + 8008d16: 428b cmp r3, r1 + 8008d18: d1f9 bne.n 8008d0e + 8008d1a: f8b5 b006 ldrh.w fp, [r5, #6] + 8008d1e: f3c7 070c ubfx r7, r7, #0, #13 + 8008d22: f01b 0b20 ands.w fp, fp, #32 + 8008d26: ea4f 07c7 mov.w r7, r7, lsl #3 + 8008d2a: d10a bne.n 8008d42 + 8008d2c: 9b01 ldr r3, [sp, #4] + 8008d2e: 18fb adds r3, r7, r3 + 8008d30: b29b uxth r3, r3 + 8008d32: 429f cmp r7, r3 + 8008d34: f200 813a bhi.w 8008fac + 8008d38: f64f 72eb movw r2, #65515 ; 0xffeb + 8008d3c: 4293 cmp r3, r2 + 8008d3e: f200 8135 bhi.w 8008fac + 8008d42: f8d8 5004 ldr.w r5, [r8, #4] + 8008d46: 8868 ldrh r0, [r5, #2] + 8008d48: f7f9 faf9 bl 800233e + 8008d4c: 782b ldrb r3, [r5, #0] + 8008d4e: f003 030f and.w r3, r3, #15 + 8008d52: ebb0 0f83 cmp.w r0, r3, lsl #2 + 8008d56: ea4f 0283 mov.w r2, r3, lsl #2 + 8008d5a: f0c0 8127 bcc.w 8008fac + 8008d5e: 1a80 subs r0, r0, r2 + 8008d60: fa1f fa80 uxth.w sl, r0 + 8008d64: 88e8 ldrh r0, [r5, #6] + 8008d66: f7f9 faea bl 800233e + 8008d6a: f3c0 000c ubfx r0, r0, #0, #13 + 8008d6e: 00c0 lsls r0, r0, #3 + 8008d70: eb0a 0300 add.w r3, sl, r0 + 8008d74: f8d8 6004 ldr.w r6, [r8, #4] + 8008d78: fa1f fc83 uxth.w ip, r3 + 8008d7c: 2500 movs r5, #0 + 8008d7e: 4560 cmp r0, ip + 8008d80: 7035 strb r5, [r6, #0] + 8008d82: 7075 strb r5, [r6, #1] + 8008d84: 70b5 strb r5, [r6, #2] + 8008d86: 70f5 strb r5, [r6, #3] + 8008d88: 80b0 strh r0, [r6, #4] + 8008d8a: 80f3 strh r3, [r6, #6] + 8008d8c: f200 810e bhi.w 8008fac + 8008d90: f8d4 e004 ldr.w lr, [r4, #4] + 8008d94: f04f 0a01 mov.w sl, #1 + 8008d98: 4671 mov r1, lr + 8008d9a: bb61 cbnz r1, 8008df6 + 8008d9c: 2d00 cmp r5, #0 + 8008d9e: f040 80aa bne.w 8008ef6 + 8008da2: f1be 0f00 cmp.w lr, #0 + 8008da6: f000 8096 beq.w 8008ed6 + 8008daa: 4b79 ldr r3, [pc, #484] ; (8008f90 ) + 8008dac: 4979 ldr r1, [pc, #484] ; (8008f94 ) + 8008dae: 487a ldr r0, [pc, #488] ; (8008f98 ) + 8008db0: f44f 72df mov.w r2, #446 ; 0x1be + 8008db4: f000 faf8 bl 80093a8 + 8008db8: e08d b.n 8008ed6 + 8008dba: 4601 mov r1, r0 + 8008dbc: 4628 mov r0, r5 + 8008dbe: f7ff fed9 bl 8008b74 + 8008dc2: b120 cbz r0, 8008dce + 8008dc4: 8823 ldrh r3, [r4, #0] + 8008dc6: 444b add r3, r9 + 8008dc8: 2b0a cmp r3, #10 + 8008dca: f77f af7b ble.w 8008cc4 + 8008dce: 4640 mov r0, r8 + 8008dd0: f7fa f800 bl 8002dd4 + 8008dd4: 2700 movs r7, #0 + 8008dd6: e078 b.n 8008eca + 8008dd8: 68eb ldr r3, [r5, #12] + 8008dda: 6962 ldr r2, [r4, #20] + 8008ddc: 429a cmp r2, r3 + 8008dde: d108 bne.n 8008df2 + 8008de0: 692b ldr r3, [r5, #16] + 8008de2: 69a2 ldr r2, [r4, #24] + 8008de4: 429a cmp r2, r3 + 8008de6: d104 bne.n 8008df2 + 8008de8: 89a2 ldrh r2, [r4, #12] + 8008dea: 88ab ldrh r3, [r5, #4] + 8008dec: 429a cmp r2, r3 + 8008dee: f000 80f1 beq.w 8008fd4 + 8008df2: 6824 ldr r4, [r4, #0] + 8008df4: e768 b.n 8008cc8 + 8008df6: 684b ldr r3, [r1, #4] + 8008df8: 889a ldrh r2, [r3, #4] + 8008dfa: 4290 cmp r0, r2 + 8008dfc: d26e bcs.n 8008edc + 8008dfe: 6031 str r1, [r6, #0] + 8008e00: 2d00 cmp r5, #0 + 8008e02: d066 beq.n 8008ed2 + 8008e04: 88eb ldrh r3, [r5, #6] + 8008e06: 4298 cmp r0, r3 + 8008e08: f0c0 80d0 bcc.w 8008fac + 8008e0c: 4594 cmp ip, r2 + 8008e0e: f200 80cd bhi.w 8008fac + 8008e12: f8c5 8000 str.w r8, [r5] + 8008e16: 4298 cmp r0, r3 + 8008e18: f040 80f8 bne.w 800900c + 8008e1c: f1bb 0f00 cmp.w fp, #0 + 8008e20: d004 beq.n 8008e2c + 8008e22: 7fa3 ldrb r3, [r4, #30] + 8008e24: f013 0301 ands.w r3, r3, #1 + 8008e28: f000 809c beq.w 8008f64 + 8008e2c: f1ba 0f00 cmp.w sl, #0 + 8008e30: d171 bne.n 8008f16 + 8008e32: f04f 0a00 mov.w sl, #0 + 8008e36: 4e54 ldr r6, [pc, #336] ; (8008f88 ) + 8008e38: 8830 ldrh r0, [r6, #0] + 8008e3a: 4481 add r9, r0 + 8008e3c: f8a6 9000 strh.w r9, [r6] + 8008e40: f1bb 0f00 cmp.w fp, #0 + 8008e44: d106 bne.n 8008e54 + 8008e46: 9b01 ldr r3, [sp, #4] + 8008e48: 441f add r7, r3 + 8008e4a: 7fa3 ldrb r3, [r4, #30] + 8008e4c: 83a7 strh r7, [r4, #28] + 8008e4e: f043 0301 orr.w r3, r3, #1 + 8008e52: 77a3 strb r3, [r4, #30] + 8008e54: f1ba 0f01 cmp.w sl, #1 + 8008e58: d1bc bne.n 8008dd4 + 8008e5a: 6863 ldr r3, [r4, #4] + 8008e5c: 8ba0 ldrh r0, [r4, #28] + 8008e5e: 685f ldr r7, [r3, #4] + 8008e60: 3014 adds r0, #20 + 8008e62: 683d ldr r5, [r7, #0] + 8008e64: b280 uxth r0, r0 + 8008e66: f104 0308 add.w r3, r4, #8 + 8008e6a: 463a mov r2, r7 + 8008e6c: f104 011c add.w r1, r4, #28 + 8008e70: f853 cb04 ldr.w ip, [r3], #4 + 8008e74: f842 cb04 str.w ip, [r2], #4 + 8008e78: 428b cmp r3, r1 + 8008e7a: d1f9 bne.n 8008e70 + 8008e7c: f7f9 fa5f bl 800233e + 8008e80: 2300 movs r3, #0 + 8008e82: 8078 strh r0, [r7, #2] + 8008e84: 71bb strb r3, [r7, #6] + 8008e86: 71fb strb r3, [r7, #7] + 8008e88: 72bb strb r3, [r7, #10] + 8008e8a: 72fb strb r3, [r7, #11] + 8008e8c: 6867 ldr r7, [r4, #4] + 8008e8e: 2d00 cmp r5, #0 + 8008e90: d16a bne.n 8008f68 + 8008e92: 4b3e ldr r3, [pc, #248] ; (8008f8c ) + 8008e94: 681b ldr r3, [r3, #0] + 8008e96: 42a3 cmp r3, r4 + 8008e98: d002 beq.n 8008ea0 + 8008e9a: 461d mov r5, r3 + 8008e9c: 2b00 cmp r3, #0 + 8008e9e: d170 bne.n 8008f82 + 8008ea0: 4620 mov r0, r4 + 8008ea2: 4629 mov r1, r5 + 8008ea4: f7ff fdd0 bl 8008a48 + 8008ea8: 4638 mov r0, r7 + 8008eaa: f7fa f8cf bl 800304c + 8008eae: 8833 ldrh r3, [r6, #0] + 8008eb0: 4283 cmp r3, r0 + 8008eb2: 4604 mov r4, r0 + 8008eb4: d206 bcs.n 8008ec4 + 8008eb6: 4b36 ldr r3, [pc, #216] ; (8008f90 ) + 8008eb8: 4938 ldr r1, [pc, #224] ; (8008f9c ) + 8008eba: 4837 ldr r0, [pc, #220] ; (8008f98 ) + 8008ebc: f240 229b movw r2, #667 ; 0x29b + 8008ec0: f000 fa72 bl 80093a8 + 8008ec4: 8830 ldrh r0, [r6, #0] + 8008ec6: 1b04 subs r4, r0, r4 + 8008ec8: 8034 strh r4, [r6, #0] + 8008eca: 4638 mov r0, r7 + 8008ecc: b003 add sp, #12 + 8008ece: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 8008ed2: 4594 cmp ip, r2 + 8008ed4: d86a bhi.n 8008fac + 8008ed6: f8c4 8004 str.w r8, [r4, #4] + 8008eda: e79f b.n 8008e1c + 8008edc: d066 beq.n 8008fac + 8008ede: 88d9 ldrh r1, [r3, #6] + 8008ee0: 4281 cmp r1, r0 + 8008ee2: d863 bhi.n 8008fac + 8008ee4: b125 cbz r5, 8008ef0 + 8008ee6: 88e9 ldrh r1, [r5, #6] + 8008ee8: 4291 cmp r1, r2 + 8008eea: bf18 it ne + 8008eec: f04f 0a00 movne.w sl, #0 + 8008ef0: 6819 ldr r1, [r3, #0] + 8008ef2: 461d mov r5, r3 + 8008ef4: e751 b.n 8008d9a + 8008ef6: 88eb ldrh r3, [r5, #6] + 8008ef8: 4283 cmp r3, r0 + 8008efa: d906 bls.n 8008f0a + 8008efc: 4b24 ldr r3, [pc, #144] ; (8008f90 ) + 8008efe: 4928 ldr r1, [pc, #160] ; (8008fa0 ) + 8008f00: 4825 ldr r0, [pc, #148] ; (8008f98 ) + 8008f02: f44f 72db mov.w r2, #438 ; 0x1b6 + 8008f06: f000 fa4f bl 80093a8 + 8008f0a: f8c5 8000 str.w r8, [r5] + 8008f0e: 88ea ldrh r2, [r5, #6] + 8008f10: 88b3 ldrh r3, [r6, #4] + 8008f12: 429a cmp r2, r3 + 8008f14: e780 b.n 8008e18 + 8008f16: 6863 ldr r3, [r4, #4] + 8008f18: 2b00 cmp r3, #0 + 8008f1a: d08a beq.n 8008e32 + 8008f1c: 6859 ldr r1, [r3, #4] + 8008f1e: 888b ldrh r3, [r1, #4] + 8008f20: 2b00 cmp r3, #0 + 8008f22: d186 bne.n 8008e32 + 8008f24: 6833 ldr r3, [r6, #0] + 8008f26: b9a3 cbnz r3, 8008f52 + 8008f28: 42b1 cmp r1, r6 + 8008f2a: d106 bne.n 8008f3a + 8008f2c: 4b18 ldr r3, [pc, #96] ; (8008f90 ) + 8008f2e: 491d ldr r1, [pc, #116] ; (8008fa4 ) + 8008f30: 4819 ldr r0, [pc, #100] ; (8008f98 ) + 8008f32: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 8008f36: f000 fa37 bl 80093a8 + 8008f3a: 6833 ldr r3, [r6, #0] + 8008f3c: 2b00 cmp r3, #0 + 8008f3e: f43f af7a beq.w 8008e36 + 8008f42: 4b13 ldr r3, [pc, #76] ; (8008f90 ) + 8008f44: 4918 ldr r1, [pc, #96] ; (8008fa8 ) + 8008f46: 4814 ldr r0, [pc, #80] ; (8008f98 ) + 8008f48: f44f 72f1 mov.w r2, #482 ; 0x1e2 + 8008f4c: f000 fa2c bl 80093a8 + 8008f50: e771 b.n 8008e36 + 8008f52: 685a ldr r2, [r3, #4] + 8008f54: 88f0 ldrh r0, [r6, #6] + 8008f56: 8893 ldrh r3, [r2, #4] + 8008f58: 4298 cmp r0, r3 + 8008f5a: f47f af6a bne.w 8008e32 + 8008f5e: 6813 ldr r3, [r2, #0] + 8008f60: 4616 mov r6, r2 + 8008f62: e7e0 b.n 8008f26 + 8008f64: 469a mov sl, r3 + 8008f66: e766 b.n 8008e36 + 8008f68: f8d5 8004 ldr.w r8, [r5, #4] + 8008f6c: 2114 movs r1, #20 + 8008f6e: 4628 mov r0, r5 + 8008f70: f7f9 fefc bl 8002d6c + 8008f74: 4629 mov r1, r5 + 8008f76: 4638 mov r0, r7 + 8008f78: f7fa f884 bl 8003084 + 8008f7c: f8d8 5000 ldr.w r5, [r8] + 8008f80: e785 b.n 8008e8e + 8008f82: 682b ldr r3, [r5, #0] + 8008f84: e787 b.n 8008e96 + 8008f86: bf00 nop + 8008f88: 20008438 .word 0x20008438 + 8008f8c: 2000843c .word 0x2000843c + 8008f90: 0800c30c .word 0x0800c30c + 8008f94: 0800c3e5 .word 0x0800c3e5 + 8008f98: 0800a54d .word 0x0800a54d + 8008f9c: 0800c44b .word 0x0800c44b + 8008fa0: 0800c3c7 .word 0x0800c3c7 + 8008fa4: 0800c41c .word 0x0800c41c + 8008fa8: 0800c429 .word 0x0800c429 + 8008fac: 6863 ldr r3, [r4, #4] + 8008fae: 2b00 cmp r3, #0 + 8008fb0: f47f af0d bne.w 8008dce + 8008fb4: 4b19 ldr r3, [pc, #100] ; (800901c ) + 8008fb6: 681b ldr r3, [r3, #0] + 8008fb8: 42a3 cmp r3, r4 + 8008fba: d006 beq.n 8008fca + 8008fbc: 4b18 ldr r3, [pc, #96] ; (8009020 ) + 8008fbe: 4919 ldr r1, [pc, #100] ; (8009024 ) + 8008fc0: 4819 ldr r0, [pc, #100] ; (8009028 ) + 8008fc2: f240 22ab movw r2, #683 ; 0x2ab + 8008fc6: f000 f9ef bl 80093a8 + 8008fca: 2100 movs r1, #0 + 8008fcc: 4620 mov r0, r4 + 8008fce: f7ff fd3b bl 8008a48 + 8008fd2: e6fc b.n 8008dce + 8008fd4: 88e8 ldrh r0, [r5, #6] + 8008fd6: f7f9 f9b2 bl 800233e + 8008fda: f3c0 000c ubfx r0, r0, #0, #13 + 8008fde: 2800 cmp r0, #0 + 8008fe0: f47f ae9b bne.w 8008d1a + 8008fe4: 89e0 ldrh r0, [r4, #14] + 8008fe6: f7f9 f9aa bl 800233e + 8008fea: f3c0 000c ubfx r0, r0, #0, #13 + 8008fee: 2800 cmp r0, #0 + 8008ff0: f43f ae93 beq.w 8008d1a + 8008ff4: 462b mov r3, r5 + 8008ff6: f104 0208 add.w r2, r4, #8 + 8008ffa: f105 0114 add.w r1, r5, #20 + 8008ffe: f853 0b04 ldr.w r0, [r3], #4 + 8009002: f842 0b04 str.w r0, [r2], #4 + 8009006: 428b cmp r3, r1 + 8009008: d1f9 bne.n 8008ffe + 800900a: e686 b.n 8008d1a + 800900c: f1bb 0f00 cmp.w fp, #0 + 8009010: f43f af0f beq.w 8008e32 + 8009014: f04f 0a00 mov.w sl, #0 + 8009018: e703 b.n 8008e22 + 800901a: bf00 nop + 800901c: 2000843c .word 0x2000843c + 8009020: 0800c30c .word 0x0800c30c + 8009024: 0800c466 .word 0x0800c466 + 8009028: 0800a54d .word 0x0800a54d + +0800902c : + 800902c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 8009030: 8d0b ldrh r3, [r1, #40] ; 0x28 + 8009032: ed2d 8b02 vpush {d8} + 8009036: ee08 2a10 vmov s16, r2 + 800903a: f1b3 0214 subs.w r2, r3, #20 + 800903e: b08b sub sp, #44 ; 0x2c + 8009040: bf48 it mi + 8009042: f1a3 020d submi.w r2, r3, #13 + 8009046: f3c2 03cf ubfx r3, r2, #3, #16 + 800904a: 9305 str r3, [sp, #20] + 800904c: 6843 ldr r3, [r0, #4] + 800904e: 9302 str r3, [sp, #8] + 8009050: 781b ldrb r3, [r3, #0] + 8009052: f003 030f and.w r3, r3, #15 + 8009056: 2b05 cmp r3, #5 + 8009058: 4605 mov r5, r0 + 800905a: 468a mov sl, r1 + 800905c: ea4f 0783 mov.w r7, r3, lsl #2 + 8009060: d109 bne.n 8009076 + 8009062: 8943 ldrh r3, [r0, #10] + 8009064: 2b13 cmp r3, #19 + 8009066: d809 bhi.n 800907c + 8009068: 4b60 ldr r3, [pc, #384] ; (80091ec ) + 800906a: 4961 ldr r1, [pc, #388] ; (80091f0 ) + 800906c: 4861 ldr r0, [pc, #388] ; (80091f4 ) + 800906e: f44f 723f mov.w r2, #764 ; 0x2fc + 8009072: f000 f999 bl 80093a8 + 8009076: f06f 0005 mvn.w r0, #5 + 800907a: e013 b.n 80090a4 + 800907c: 9b02 ldr r3, [sp, #8] + 800907e: 88d8 ldrh r0, [r3, #6] + 8009080: f7f9 f95d bl 800233e + 8009084: f3c0 030c ubfx r3, r0, #0, #13 + 8009088: 9303 str r3, [sp, #12] + 800908a: f400 5300 and.w r3, r0, #8192 ; 0x2000 + 800908e: 9307 str r3, [sp, #28] + 8009090: 9b05 ldr r3, [sp, #20] + 8009092: 892c ldrh r4, [r5, #8] + 8009094: 00db lsls r3, r3, #3 + 8009096: 3c14 subs r4, #20 + 8009098: b29b uxth r3, r3 + 800909a: b2a4 uxth r4, r4 + 800909c: 9306 str r3, [sp, #24] + 800909e: 2600 movs r6, #0 + 80090a0: b92c cbnz r4, 80090ae + 80090a2: 4620 mov r0, r4 + 80090a4: b00b add sp, #44 ; 0x2c + 80090a6: ecbd 8b02 vpop {d8} + 80090aa: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 80090ae: 9b06 ldr r3, [sp, #24] + 80090b0: 42a3 cmp r3, r4 + 80090b2: bf28 it cs + 80090b4: 4623 movcs r3, r4 + 80090b6: f44f 7220 mov.w r2, #640 ; 0x280 + 80090ba: 2114 movs r1, #20 + 80090bc: 200e movs r0, #14 + 80090be: 9304 str r3, [sp, #16] + 80090c0: f7f9 feec bl 8002e9c + 80090c4: 4680 mov r8, r0 + 80090c6: 2800 cmp r0, #0 + 80090c8: d036 beq.n 8009138 + 80090ca: 8943 ldrh r3, [r0, #10] + 80090cc: 2b13 cmp r3, #19 + 80090ce: d806 bhi.n 80090de + 80090d0: 4b46 ldr r3, [pc, #280] ; (80091ec ) + 80090d2: 4949 ldr r1, [pc, #292] ; (80091f8 ) + 80090d4: 4847 ldr r0, [pc, #284] ; (80091f4 ) + 80090d6: f44f 7249 mov.w r2, #804 ; 0x324 + 80090da: f000 f965 bl 80093a8 + 80090de: 9b02 ldr r3, [sp, #8] + 80090e0: f8d8 2004 ldr.w r2, [r8, #4] + 80090e4: 4619 mov r1, r3 + 80090e6: 3114 adds r1, #20 + 80090e8: f853 0b04 ldr.w r0, [r3], #4 + 80090ec: f842 0b04 str.w r0, [r2], #4 + 80090f0: 428b cmp r3, r1 + 80090f2: d1f9 bne.n 80090e8 + 80090f4: f8d8 b004 ldr.w fp, [r8, #4] + 80090f8: f8dd 9010 ldr.w r9, [sp, #16] + 80090fc: f1b9 0f00 cmp.w r9, #0 + 8009100: d041 beq.n 8009186 + 8009102: 896b ldrh r3, [r5, #10] + 8009104: 1bde subs r6, r3, r7 + 8009106: 42bb cmp r3, r7 + 8009108: b2b6 uxth r6, r6 + 800910a: d206 bcs.n 800911a + 800910c: 4b37 ldr r3, [pc, #220] ; (80091ec ) + 800910e: 493b ldr r1, [pc, #236] ; (80091fc ) + 8009110: 4838 ldr r0, [pc, #224] ; (80091f4 ) + 8009112: f240 322d movw r2, #813 ; 0x32d + 8009116: f000 f947 bl 80093a8 + 800911a: 454e cmp r6, r9 + 800911c: bf28 it cs + 800911e: 464e movcs r6, r9 + 8009120: b916 cbnz r6, 8009128 + 8009122: 682d ldr r5, [r5, #0] + 8009124: 2700 movs r7, #0 + 8009126: e7e9 b.n 80090fc + 8009128: 2005 movs r0, #5 + 800912a: f7f9 fbab bl 8002884 + 800912e: 4603 mov r3, r0 + 8009130: b928 cbnz r0, 800913e + 8009132: 4640 mov r0, r8 + 8009134: f7f9 fe4e bl 8002dd4 + 8009138: f04f 30ff mov.w r0, #4294967295 + 800913c: e7b2 b.n 80090a4 + 800913e: 9601 str r6, [sp, #4] + 8009140: 686a ldr r2, [r5, #4] + 8009142: 9008 str r0, [sp, #32] + 8009144: 443a add r2, r7 + 8009146: 9200 str r2, [sp, #0] + 8009148: 4631 mov r1, r6 + 800914a: 2241 movs r2, #65 ; 0x41 + 800914c: 2000 movs r0, #0 + 800914e: f7f9 fdef bl 8002d30 + 8009152: 9b08 ldr r3, [sp, #32] + 8009154: b918 cbnz r0, 800915e + 8009156: 4618 mov r0, r3 + 8009158: f7ff fd48 bl 8008bec + 800915c: e7e9 b.n 8009132 + 800915e: e9cd 0308 strd r0, r3, [sp, #32] + 8009162: 4628 mov r0, r5 + 8009164: f7f9 ff7a bl 800305c + 8009168: 9b09 ldr r3, [sp, #36] ; 0x24 + 800916a: 4a25 ldr r2, [pc, #148] ; (8009200 ) + 800916c: 9908 ldr r1, [sp, #32] + 800916e: 615d str r5, [r3, #20] + 8009170: eba9 0906 sub.w r9, r9, r6 + 8009174: 611a str r2, [r3, #16] + 8009176: 4640 mov r0, r8 + 8009178: fa1f f989 uxth.w r9, r9 + 800917c: f7f9 ff82 bl 8003084 + 8009180: f1b9 0f00 cmp.w r9, #0 + 8009184: d1cd bne.n 8009122 + 8009186: 9b03 ldr r3, [sp, #12] + 8009188: f3c3 000c ubfx r0, r3, #0, #13 + 800918c: f8ba 3028 ldrh.w r3, [sl, #40] ; 0x28 + 8009190: 3b13 subs r3, #19 + 8009192: 4437 add r7, r6 + 8009194: 42a3 cmp r3, r4 + 8009196: b2bf uxth r7, r7 + 8009198: dd01 ble.n 800919e + 800919a: 9b07 ldr r3, [sp, #28] + 800919c: b10b cbz r3, 80091a2 + 800919e: f440 5000 orr.w r0, r0, #8192 ; 0x2000 + 80091a2: f7f9 f8cc bl 800233e + 80091a6: 9b04 ldr r3, [sp, #16] + 80091a8: f8ab 0006 strh.w r0, [fp, #6] + 80091ac: f103 0014 add.w r0, r3, #20 + 80091b0: b280 uxth r0, r0 + 80091b2: f7f9 f8c4 bl 800233e + 80091b6: 2300 movs r3, #0 + 80091b8: ee18 2a10 vmov r2, s16 + 80091bc: f8ab 0002 strh.w r0, [fp, #2] + 80091c0: f88b 300a strb.w r3, [fp, #10] + 80091c4: f88b 300b strb.w r3, [fp, #11] + 80091c8: 4641 mov r1, r8 + 80091ca: f8da 3014 ldr.w r3, [sl, #20] + 80091ce: 4650 mov r0, sl + 80091d0: 4798 blx r3 + 80091d2: 4640 mov r0, r8 + 80091d4: f7f9 fdfe bl 8002dd4 + 80091d8: 9b04 ldr r3, [sp, #16] + 80091da: 9a05 ldr r2, [sp, #20] + 80091dc: 1ae4 subs r4, r4, r3 + 80091de: 9b03 ldr r3, [sp, #12] + 80091e0: 4413 add r3, r2 + 80091e2: b29b uxth r3, r3 + 80091e4: b2a4 uxth r4, r4 + 80091e6: 9303 str r3, [sp, #12] + 80091e8: e75a b.n 80090a0 + 80091ea: bf00 nop + 80091ec: 0800c30c .word 0x0800c30c + 80091f0: 0800c486 .word 0x0800c486 + 80091f4: 0800a54d .word 0x0800a54d + 80091f8: 0800c4a1 .word 0x0800c4a1 + 80091fc: 0800c4c1 .word 0x0800c4c1 + 8009200: 08008c19 .word 0x08008c19 + +08009204 : + 8009204: 8943 ldrh r3, [r0, #10] + 8009206: 2b0e cmp r3, #14 + 8009208: b570 push {r4, r5, r6, lr} + 800920a: 4604 mov r4, r0 + 800920c: 460d mov r5, r1 + 800920e: d91a bls.n 8009246 + 8009210: 7bc3 ldrb r3, [r0, #15] + 8009212: b91b cbnz r3, 800921c + 8009214: f891 3034 ldrb.w r3, [r1, #52] ; 0x34 + 8009218: 3301 adds r3, #1 + 800921a: 73c3 strb r3, [r0, #15] + 800921c: 6860 ldr r0, [r4, #4] + 800921e: 7803 ldrb r3, [r0, #0] + 8009220: 8986 ldrh r6, [r0, #12] + 8009222: 07d9 lsls r1, r3, #31 + 8009224: d50a bpl.n 800923c + 8009226: 2b01 cmp r3, #1 + 8009228: d111 bne.n 800924e + 800922a: 7843 ldrb r3, [r0, #1] + 800922c: b933 cbnz r3, 800923c + 800922e: 7883 ldrb r3, [r0, #2] + 8009230: 2b5e cmp r3, #94 ; 0x5e + 8009232: d103 bne.n 800923c + 8009234: 7b63 ldrb r3, [r4, #13] + 8009236: f043 0310 orr.w r3, r3, #16 + 800923a: 7363 strb r3, [r4, #13] + 800923c: 2e08 cmp r6, #8 + 800923e: d010 beq.n 8009262 + 8009240: f5b6 6fc1 cmp.w r6, #1544 ; 0x608 + 8009244: d01d beq.n 8009282 + 8009246: 4620 mov r0, r4 + 8009248: f7f9 fdc4 bl 8002dd4 + 800924c: e017 b.n 800927e + 800924e: 4914 ldr r1, [pc, #80] ; (80092a0 ) + 8009250: 2206 movs r2, #6 + 8009252: f000 f883 bl 800935c + 8009256: 2800 cmp r0, #0 + 8009258: d1f0 bne.n 800923c + 800925a: 7b63 ldrb r3, [r4, #13] + 800925c: f043 0308 orr.w r3, r3, #8 + 8009260: e7eb b.n 800923a + 8009262: f895 3031 ldrb.w r3, [r5, #49] ; 0x31 + 8009266: 071a lsls r2, r3, #28 + 8009268: d5ed bpl.n 8009246 + 800926a: 210e movs r1, #14 + 800926c: 4620 mov r0, r4 + 800926e: f7f9 fd7d bl 8002d6c + 8009272: 2800 cmp r0, #0 + 8009274: d1e7 bne.n 8009246 + 8009276: 4629 mov r1, r5 + 8009278: 4620 mov r0, r4 + 800927a: f7ff f9d1 bl 8008620 + 800927e: 2000 movs r0, #0 + 8009280: bd70 pop {r4, r5, r6, pc} + 8009282: f895 3031 ldrb.w r3, [r5, #49] ; 0x31 + 8009286: 071b lsls r3, r3, #28 + 8009288: d5dd bpl.n 8009246 + 800928a: 210e movs r1, #14 + 800928c: 4620 mov r0, r4 + 800928e: f7f9 fd6d bl 8002d6c + 8009292: 2800 cmp r0, #0 + 8009294: d1d7 bne.n 8009246 + 8009296: 4629 mov r1, r5 + 8009298: 4620 mov r0, r4 + 800929a: f7fe fe13 bl 8007ec4 + 800929e: e7ee b.n 800927e + 80092a0: 0800c536 .word 0x0800c536 + +080092a4 : + 80092a4: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 80092a8: 4604 mov r4, r0 + 80092aa: f8bd 0018 ldrh.w r0, [sp, #24] + 80092ae: 460d mov r5, r1 + 80092b0: 4616 mov r6, r2 + 80092b2: 461f mov r7, r3 + 80092b4: f7f9 f843 bl 800233e + 80092b8: 210e movs r1, #14 + 80092ba: 4680 mov r8, r0 + 80092bc: 4628 mov r0, r5 + 80092be: f7f9 fd51 bl 8002d64 + 80092c2: b9e0 cbnz r0, 80092fe + 80092c4: 6869 ldr r1, [r5, #4] + 80092c6: f8a1 800c strh.w r8, [r1, #12] + 80092ca: 683b ldr r3, [r7, #0] + 80092cc: 600b str r3, [r1, #0] + 80092ce: 88bb ldrh r3, [r7, #4] + 80092d0: 808b strh r3, [r1, #4] + 80092d2: 6833 ldr r3, [r6, #0] + 80092d4: f8c1 3006 str.w r3, [r1, #6] + 80092d8: 88b3 ldrh r3, [r6, #4] + 80092da: 814b strh r3, [r1, #10] + 80092dc: f894 3030 ldrb.w r3, [r4, #48] ; 0x30 + 80092e0: 2b06 cmp r3, #6 + 80092e2: d006 beq.n 80092f2 + 80092e4: 4b08 ldr r3, [pc, #32] ; (8009308 ) + 80092e6: 4909 ldr r1, [pc, #36] ; (800930c ) + 80092e8: 4809 ldr r0, [pc, #36] ; (8009310 ) + 80092ea: f44f 7299 mov.w r2, #306 ; 0x132 + 80092ee: f000 f85b bl 80093a8 + 80092f2: 69a3 ldr r3, [r4, #24] + 80092f4: 4629 mov r1, r5 + 80092f6: 4620 mov r0, r4 + 80092f8: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 80092fc: 4718 bx r3 + 80092fe: f06f 0001 mvn.w r0, #1 + 8009302: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 8009306: bf00 nop + 8009308: 0800c4d0 .word 0x0800c4d0 + 800930c: 0800c505 .word 0x0800c505 + 8009310: 0800a54d .word 0x0800a54d + +08009314 <__libc_init_array>: + 8009314: b570 push {r4, r5, r6, lr} + 8009316: 4d0d ldr r5, [pc, #52] ; (800934c <__libc_init_array+0x38>) + 8009318: 4c0d ldr r4, [pc, #52] ; (8009350 <__libc_init_array+0x3c>) + 800931a: 1b64 subs r4, r4, r5 + 800931c: 10a4 asrs r4, r4, #2 + 800931e: 2600 movs r6, #0 + 8009320: 42a6 cmp r6, r4 + 8009322: d109 bne.n 8009338 <__libc_init_array+0x24> + 8009324: 4d0b ldr r5, [pc, #44] ; (8009354 <__libc_init_array+0x40>) + 8009326: 4c0c ldr r4, [pc, #48] ; (8009358 <__libc_init_array+0x44>) + 8009328: f001 f8de bl 800a4e8 <_init> + 800932c: 1b64 subs r4, r4, r5 + 800932e: 10a4 asrs r4, r4, #2 + 8009330: 2600 movs r6, #0 + 8009332: 42a6 cmp r6, r4 + 8009334: d105 bne.n 8009342 <__libc_init_array+0x2e> + 8009336: bd70 pop {r4, r5, r6, pc} + 8009338: f855 3b04 ldr.w r3, [r5], #4 + 800933c: 4798 blx r3 + 800933e: 3601 adds r6, #1 + 8009340: e7ee b.n 8009320 <__libc_init_array+0xc> + 8009342: f855 3b04 ldr.w r3, [r5], #4 + 8009346: 4798 blx r3 + 8009348: 3601 adds r6, #1 + 800934a: e7f2 b.n 8009332 <__libc_init_array+0x1e> + 800934c: 0800c794 .word 0x0800c794 + 8009350: 0800c794 .word 0x0800c794 + 8009354: 0800c794 .word 0x0800c794 + 8009358: 0800c798 .word 0x0800c798 + +0800935c : + 800935c: b510 push {r4, lr} + 800935e: 3901 subs r1, #1 + 8009360: 4402 add r2, r0 + 8009362: 4290 cmp r0, r2 + 8009364: d101 bne.n 800936a + 8009366: 2000 movs r0, #0 + 8009368: e005 b.n 8009376 + 800936a: 7803 ldrb r3, [r0, #0] + 800936c: f811 4f01 ldrb.w r4, [r1, #1]! + 8009370: 42a3 cmp r3, r4 + 8009372: d001 beq.n 8009378 + 8009374: 1b18 subs r0, r3, r4 + 8009376: bd10 pop {r4, pc} + 8009378: 3001 adds r0, #1 + 800937a: e7f2 b.n 8009362 + +0800937c : + 800937c: 440a add r2, r1 + 800937e: 4291 cmp r1, r2 + 8009380: f100 33ff add.w r3, r0, #4294967295 + 8009384: d100 bne.n 8009388 + 8009386: 4770 bx lr + 8009388: b510 push {r4, lr} + 800938a: f811 4b01 ldrb.w r4, [r1], #1 + 800938e: f803 4f01 strb.w r4, [r3, #1]! + 8009392: 4291 cmp r1, r2 + 8009394: d1f9 bne.n 800938a + 8009396: bd10 pop {r4, pc} + +08009398 : + 8009398: 4402 add r2, r0 + 800939a: 4603 mov r3, r0 + 800939c: 4293 cmp r3, r2 + 800939e: d100 bne.n 80093a2 + 80093a0: 4770 bx lr + 80093a2: f803 1b01 strb.w r1, [r3], #1 + 80093a6: e7f9 b.n 800939c + +080093a8 : + 80093a8: b40f push {r0, r1, r2, r3} + 80093aa: 4b0a ldr r3, [pc, #40] ; (80093d4 ) + 80093ac: b513 push {r0, r1, r4, lr} + 80093ae: 681c ldr r4, [r3, #0] + 80093b0: b124 cbz r4, 80093bc + 80093b2: 69a3 ldr r3, [r4, #24] + 80093b4: b913 cbnz r3, 80093bc + 80093b6: 4620 mov r0, r4 + 80093b8: f000 f8c2 bl 8009540 <__sinit> + 80093bc: ab05 add r3, sp, #20 + 80093be: 9a04 ldr r2, [sp, #16] + 80093c0: 68a1 ldr r1, [r4, #8] + 80093c2: 9301 str r3, [sp, #4] + 80093c4: 4620 mov r0, r4 + 80093c6: f000 fa7f bl 80098c8 <_vfiprintf_r> + 80093ca: b002 add sp, #8 + 80093cc: e8bd 4010 ldmia.w sp!, {r4, lr} + 80093d0: b004 add sp, #16 + 80093d2: 4770 bx lr + 80093d4: 20000028 .word 0x20000028 + +080093d8 : + 80093d8: 4b16 ldr r3, [pc, #88] ; (8009434 ) + 80093da: b510 push {r4, lr} + 80093dc: 681c ldr r4, [r3, #0] + 80093de: 6ba3 ldr r3, [r4, #56] ; 0x38 + 80093e0: b9b3 cbnz r3, 8009410 + 80093e2: 2018 movs r0, #24 + 80093e4: f000 f95e bl 80096a4 + 80093e8: 63a0 str r0, [r4, #56] ; 0x38 + 80093ea: b928 cbnz r0, 80093f8 + 80093ec: 4602 mov r2, r0 + 80093ee: 4b12 ldr r3, [pc, #72] ; (8009438 ) + 80093f0: 4812 ldr r0, [pc, #72] ; (800943c ) + 80093f2: 214e movs r1, #78 ; 0x4e + 80093f4: f000 f82e bl 8009454 <__assert_func> + 80093f8: 4a11 ldr r2, [pc, #68] ; (8009440 ) + 80093fa: 4b12 ldr r3, [pc, #72] ; (8009444 ) + 80093fc: e9c0 2300 strd r2, r3, [r0] + 8009400: 4b11 ldr r3, [pc, #68] ; (8009448 ) + 8009402: 6083 str r3, [r0, #8] + 8009404: 230b movs r3, #11 + 8009406: 8183 strh r3, [r0, #12] + 8009408: 2201 movs r2, #1 + 800940a: 2300 movs r3, #0 + 800940c: e9c0 2304 strd r2, r3, [r0, #16] + 8009410: 6ba4 ldr r4, [r4, #56] ; 0x38 + 8009412: 4a0e ldr r2, [pc, #56] ; (800944c ) + 8009414: 6920 ldr r0, [r4, #16] + 8009416: 6963 ldr r3, [r4, #20] + 8009418: 490d ldr r1, [pc, #52] ; (8009450 ) + 800941a: 4342 muls r2, r0 + 800941c: fb01 2203 mla r2, r1, r3, r2 + 8009420: fba0 0101 umull r0, r1, r0, r1 + 8009424: 1c43 adds r3, r0, #1 + 8009426: eb42 0001 adc.w r0, r2, r1 + 800942a: e9c4 3004 strd r3, r0, [r4, #16] + 800942e: f020 4000 bic.w r0, r0, #2147483648 ; 0x80000000 + 8009432: bd10 pop {r4, pc} + 8009434: 20000028 .word 0x20000028 + 8009438: 0800c648 .word 0x0800c648 + 800943c: 0800c65f .word 0x0800c65f + 8009440: abcd330e .word 0xabcd330e + 8009444: e66d1234 .word 0xe66d1234 + 8009448: 0005deec .word 0x0005deec + 800944c: 5851f42d .word 0x5851f42d + 8009450: 4c957f2d .word 0x4c957f2d + +08009454 <__assert_func>: + 8009454: b51f push {r0, r1, r2, r3, r4, lr} + 8009456: 4614 mov r4, r2 + 8009458: 461a mov r2, r3 + 800945a: 4b09 ldr r3, [pc, #36] ; (8009480 <__assert_func+0x2c>) + 800945c: 681b ldr r3, [r3, #0] + 800945e: 4605 mov r5, r0 + 8009460: 68d8 ldr r0, [r3, #12] + 8009462: b14c cbz r4, 8009478 <__assert_func+0x24> + 8009464: 4b07 ldr r3, [pc, #28] ; (8009484 <__assert_func+0x30>) + 8009466: 9100 str r1, [sp, #0] + 8009468: e9cd 3401 strd r3, r4, [sp, #4] + 800946c: 4906 ldr r1, [pc, #24] ; (8009488 <__assert_func+0x34>) + 800946e: 462b mov r3, r5 + 8009470: f000 f8e4 bl 800963c + 8009474: f000 fe12 bl 800a09c + 8009478: 4b04 ldr r3, [pc, #16] ; (800948c <__assert_func+0x38>) + 800947a: 461c mov r4, r3 + 800947c: e7f3 b.n 8009466 <__assert_func+0x12> + 800947e: bf00 nop + 8009480: 20000028 .word 0x20000028 + 8009484: 0800c6ba .word 0x0800c6ba + 8009488: 0800c6c7 .word 0x0800c6c7 + 800948c: 0800afd6 .word 0x0800afd6 + +08009490 : + 8009490: 2300 movs r3, #0 + 8009492: b510 push {r4, lr} + 8009494: 4604 mov r4, r0 + 8009496: e9c0 3300 strd r3, r3, [r0] + 800949a: e9c0 3304 strd r3, r3, [r0, #16] + 800949e: 6083 str r3, [r0, #8] + 80094a0: 8181 strh r1, [r0, #12] + 80094a2: 6643 str r3, [r0, #100] ; 0x64 + 80094a4: 81c2 strh r2, [r0, #14] + 80094a6: 6183 str r3, [r0, #24] + 80094a8: 4619 mov r1, r3 + 80094aa: 2208 movs r2, #8 + 80094ac: 305c adds r0, #92 ; 0x5c + 80094ae: f7ff ff73 bl 8009398 + 80094b2: 4b05 ldr r3, [pc, #20] ; (80094c8 ) + 80094b4: 6263 str r3, [r4, #36] ; 0x24 + 80094b6: 4b05 ldr r3, [pc, #20] ; (80094cc ) + 80094b8: 62a3 str r3, [r4, #40] ; 0x28 + 80094ba: 4b05 ldr r3, [pc, #20] ; (80094d0 ) + 80094bc: 62e3 str r3, [r4, #44] ; 0x2c + 80094be: 4b05 ldr r3, [pc, #20] ; (80094d4 ) + 80094c0: 6224 str r4, [r4, #32] + 80094c2: 6323 str r3, [r4, #48] ; 0x30 + 80094c4: bd10 pop {r4, pc} + 80094c6: bf00 nop + 80094c8: 08009e71 .word 0x08009e71 + 80094cc: 08009e93 .word 0x08009e93 + 80094d0: 08009ecb .word 0x08009ecb + 80094d4: 08009eef .word 0x08009eef + +080094d8 <_cleanup_r>: + 80094d8: 4901 ldr r1, [pc, #4] ; (80094e0 <_cleanup_r+0x8>) + 80094da: f000 b8c1 b.w 8009660 <_fwalk_reent> + 80094de: bf00 nop + 80094e0: 0800a1d9 .word 0x0800a1d9 + +080094e4 <__sfmoreglue>: + 80094e4: b570 push {r4, r5, r6, lr} + 80094e6: 2268 movs r2, #104 ; 0x68 + 80094e8: 1e4d subs r5, r1, #1 + 80094ea: 4355 muls r5, r2 + 80094ec: 460e mov r6, r1 + 80094ee: f105 0174 add.w r1, r5, #116 ; 0x74 + 80094f2: f000 f94b bl 800978c <_malloc_r> + 80094f6: 4604 mov r4, r0 + 80094f8: b140 cbz r0, 800950c <__sfmoreglue+0x28> + 80094fa: 2100 movs r1, #0 + 80094fc: e9c0 1600 strd r1, r6, [r0] + 8009500: 300c adds r0, #12 + 8009502: 60a0 str r0, [r4, #8] + 8009504: f105 0268 add.w r2, r5, #104 ; 0x68 + 8009508: f7ff ff46 bl 8009398 + 800950c: 4620 mov r0, r4 + 800950e: bd70 pop {r4, r5, r6, pc} + +08009510 <__sfp_lock_acquire>: + 8009510: 4801 ldr r0, [pc, #4] ; (8009518 <__sfp_lock_acquire+0x8>) + 8009512: f000 b8c5 b.w 80096a0 <__retarget_lock_acquire_recursive> + 8009516: bf00 nop + 8009518: 20008441 .word 0x20008441 + +0800951c <__sfp_lock_release>: + 800951c: 4801 ldr r0, [pc, #4] ; (8009524 <__sfp_lock_release+0x8>) + 800951e: f000 b8c0 b.w 80096a2 <__retarget_lock_release_recursive> + 8009522: bf00 nop + 8009524: 20008441 .word 0x20008441 + +08009528 <__sinit_lock_acquire>: + 8009528: 4801 ldr r0, [pc, #4] ; (8009530 <__sinit_lock_acquire+0x8>) + 800952a: f000 b8b9 b.w 80096a0 <__retarget_lock_acquire_recursive> + 800952e: bf00 nop + 8009530: 20008442 .word 0x20008442 + +08009534 <__sinit_lock_release>: + 8009534: 4801 ldr r0, [pc, #4] ; (800953c <__sinit_lock_release+0x8>) + 8009536: f000 b8b4 b.w 80096a2 <__retarget_lock_release_recursive> + 800953a: bf00 nop + 800953c: 20008442 .word 0x20008442 + +08009540 <__sinit>: + 8009540: b510 push {r4, lr} + 8009542: 4604 mov r4, r0 + 8009544: f7ff fff0 bl 8009528 <__sinit_lock_acquire> + 8009548: 69a3 ldr r3, [r4, #24] + 800954a: b11b cbz r3, 8009554 <__sinit+0x14> + 800954c: e8bd 4010 ldmia.w sp!, {r4, lr} + 8009550: f7ff bff0 b.w 8009534 <__sinit_lock_release> + 8009554: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48 + 8009558: 6523 str r3, [r4, #80] ; 0x50 + 800955a: 4b13 ldr r3, [pc, #76] ; (80095a8 <__sinit+0x68>) + 800955c: 4a13 ldr r2, [pc, #76] ; (80095ac <__sinit+0x6c>) + 800955e: 681b ldr r3, [r3, #0] + 8009560: 62a2 str r2, [r4, #40] ; 0x28 + 8009562: 42a3 cmp r3, r4 + 8009564: bf04 itt eq + 8009566: 2301 moveq r3, #1 + 8009568: 61a3 streq r3, [r4, #24] + 800956a: 4620 mov r0, r4 + 800956c: f000 f820 bl 80095b0 <__sfp> + 8009570: 6060 str r0, [r4, #4] + 8009572: 4620 mov r0, r4 + 8009574: f000 f81c bl 80095b0 <__sfp> + 8009578: 60a0 str r0, [r4, #8] + 800957a: 4620 mov r0, r4 + 800957c: f000 f818 bl 80095b0 <__sfp> + 8009580: 2200 movs r2, #0 + 8009582: 60e0 str r0, [r4, #12] + 8009584: 2104 movs r1, #4 + 8009586: 6860 ldr r0, [r4, #4] + 8009588: f7ff ff82 bl 8009490 + 800958c: 68a0 ldr r0, [r4, #8] + 800958e: 2201 movs r2, #1 + 8009590: 2109 movs r1, #9 + 8009592: f7ff ff7d bl 8009490 + 8009596: 68e0 ldr r0, [r4, #12] + 8009598: 2202 movs r2, #2 + 800959a: 2112 movs r1, #18 + 800959c: f7ff ff78 bl 8009490 + 80095a0: 2301 movs r3, #1 + 80095a2: 61a3 str r3, [r4, #24] + 80095a4: e7d2 b.n 800954c <__sinit+0xc> + 80095a6: bf00 nop + 80095a8: 0800c644 .word 0x0800c644 + 80095ac: 080094d9 .word 0x080094d9 + +080095b0 <__sfp>: + 80095b0: b5f8 push {r3, r4, r5, r6, r7, lr} + 80095b2: 4607 mov r7, r0 + 80095b4: f7ff ffac bl 8009510 <__sfp_lock_acquire> + 80095b8: 4b1e ldr r3, [pc, #120] ; (8009634 <__sfp+0x84>) + 80095ba: 681e ldr r6, [r3, #0] + 80095bc: 69b3 ldr r3, [r6, #24] + 80095be: b913 cbnz r3, 80095c6 <__sfp+0x16> + 80095c0: 4630 mov r0, r6 + 80095c2: f7ff ffbd bl 8009540 <__sinit> + 80095c6: 3648 adds r6, #72 ; 0x48 + 80095c8: e9d6 3401 ldrd r3, r4, [r6, #4] + 80095cc: 3b01 subs r3, #1 + 80095ce: d503 bpl.n 80095d8 <__sfp+0x28> + 80095d0: 6833 ldr r3, [r6, #0] + 80095d2: b30b cbz r3, 8009618 <__sfp+0x68> + 80095d4: 6836 ldr r6, [r6, #0] + 80095d6: e7f7 b.n 80095c8 <__sfp+0x18> + 80095d8: f9b4 500c ldrsh.w r5, [r4, #12] + 80095dc: b9d5 cbnz r5, 8009614 <__sfp+0x64> + 80095de: 4b16 ldr r3, [pc, #88] ; (8009638 <__sfp+0x88>) + 80095e0: 60e3 str r3, [r4, #12] + 80095e2: f104 0058 add.w r0, r4, #88 ; 0x58 + 80095e6: 6665 str r5, [r4, #100] ; 0x64 + 80095e8: f000 f859 bl 800969e <__retarget_lock_init_recursive> + 80095ec: f7ff ff96 bl 800951c <__sfp_lock_release> + 80095f0: e9c4 5501 strd r5, r5, [r4, #4] + 80095f4: e9c4 5504 strd r5, r5, [r4, #16] + 80095f8: 6025 str r5, [r4, #0] + 80095fa: 61a5 str r5, [r4, #24] + 80095fc: 2208 movs r2, #8 + 80095fe: 4629 mov r1, r5 + 8009600: f104 005c add.w r0, r4, #92 ; 0x5c + 8009604: f7ff fec8 bl 8009398 + 8009608: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 + 800960c: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 + 8009610: 4620 mov r0, r4 + 8009612: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8009614: 3468 adds r4, #104 ; 0x68 + 8009616: e7d9 b.n 80095cc <__sfp+0x1c> + 8009618: 2104 movs r1, #4 + 800961a: 4638 mov r0, r7 + 800961c: f7ff ff62 bl 80094e4 <__sfmoreglue> + 8009620: 4604 mov r4, r0 + 8009622: 6030 str r0, [r6, #0] + 8009624: 2800 cmp r0, #0 + 8009626: d1d5 bne.n 80095d4 <__sfp+0x24> + 8009628: f7ff ff78 bl 800951c <__sfp_lock_release> + 800962c: 230c movs r3, #12 + 800962e: 603b str r3, [r7, #0] + 8009630: e7ee b.n 8009610 <__sfp+0x60> + 8009632: bf00 nop + 8009634: 0800c644 .word 0x0800c644 + 8009638: ffff0001 .word 0xffff0001 + +0800963c : + 800963c: b40e push {r1, r2, r3} + 800963e: b503 push {r0, r1, lr} + 8009640: 4601 mov r1, r0 + 8009642: ab03 add r3, sp, #12 + 8009644: 4805 ldr r0, [pc, #20] ; (800965c ) + 8009646: f853 2b04 ldr.w r2, [r3], #4 + 800964a: 6800 ldr r0, [r0, #0] + 800964c: 9301 str r3, [sp, #4] + 800964e: f000 f93b bl 80098c8 <_vfiprintf_r> + 8009652: b002 add sp, #8 + 8009654: f85d eb04 ldr.w lr, [sp], #4 + 8009658: b003 add sp, #12 + 800965a: 4770 bx lr + 800965c: 20000028 .word 0x20000028 + +08009660 <_fwalk_reent>: + 8009660: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 8009664: 4606 mov r6, r0 + 8009666: 4688 mov r8, r1 + 8009668: f100 0448 add.w r4, r0, #72 ; 0x48 + 800966c: 2700 movs r7, #0 + 800966e: e9d4 9501 ldrd r9, r5, [r4, #4] + 8009672: f1b9 0901 subs.w r9, r9, #1 + 8009676: d505 bpl.n 8009684 <_fwalk_reent+0x24> + 8009678: 6824 ldr r4, [r4, #0] + 800967a: 2c00 cmp r4, #0 + 800967c: d1f7 bne.n 800966e <_fwalk_reent+0xe> + 800967e: 4638 mov r0, r7 + 8009680: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 8009684: 89ab ldrh r3, [r5, #12] + 8009686: 2b01 cmp r3, #1 + 8009688: d907 bls.n 800969a <_fwalk_reent+0x3a> + 800968a: f9b5 300e ldrsh.w r3, [r5, #14] + 800968e: 3301 adds r3, #1 + 8009690: d003 beq.n 800969a <_fwalk_reent+0x3a> + 8009692: 4629 mov r1, r5 + 8009694: 4630 mov r0, r6 + 8009696: 47c0 blx r8 + 8009698: 4307 orrs r7, r0 + 800969a: 3568 adds r5, #104 ; 0x68 + 800969c: e7e9 b.n 8009672 <_fwalk_reent+0x12> + +0800969e <__retarget_lock_init_recursive>: + 800969e: 4770 bx lr + +080096a0 <__retarget_lock_acquire_recursive>: + 80096a0: 4770 bx lr + +080096a2 <__retarget_lock_release_recursive>: + 80096a2: 4770 bx lr + +080096a4 : + 80096a4: 4b02 ldr r3, [pc, #8] ; (80096b0 ) + 80096a6: 4601 mov r1, r0 + 80096a8: 6818 ldr r0, [r3, #0] + 80096aa: f000 b86f b.w 800978c <_malloc_r> + 80096ae: bf00 nop + 80096b0: 20000028 .word 0x20000028 + +080096b4 <_free_r>: + 80096b4: b537 push {r0, r1, r2, r4, r5, lr} + 80096b6: 2900 cmp r1, #0 + 80096b8: d044 beq.n 8009744 <_free_r+0x90> + 80096ba: f851 3c04 ldr.w r3, [r1, #-4] + 80096be: 9001 str r0, [sp, #4] + 80096c0: 2b00 cmp r3, #0 + 80096c2: f1a1 0404 sub.w r4, r1, #4 + 80096c6: bfb8 it lt + 80096c8: 18e4 addlt r4, r4, r3 + 80096ca: f000 fe39 bl 800a340 <__malloc_lock> + 80096ce: 4a1e ldr r2, [pc, #120] ; (8009748 <_free_r+0x94>) + 80096d0: 9801 ldr r0, [sp, #4] + 80096d2: 6813 ldr r3, [r2, #0] + 80096d4: b933 cbnz r3, 80096e4 <_free_r+0x30> + 80096d6: 6063 str r3, [r4, #4] + 80096d8: 6014 str r4, [r2, #0] + 80096da: b003 add sp, #12 + 80096dc: e8bd 4030 ldmia.w sp!, {r4, r5, lr} + 80096e0: f000 be34 b.w 800a34c <__malloc_unlock> + 80096e4: 42a3 cmp r3, r4 + 80096e6: d908 bls.n 80096fa <_free_r+0x46> + 80096e8: 6825 ldr r5, [r4, #0] + 80096ea: 1961 adds r1, r4, r5 + 80096ec: 428b cmp r3, r1 + 80096ee: bf01 itttt eq + 80096f0: 6819 ldreq r1, [r3, #0] + 80096f2: 685b ldreq r3, [r3, #4] + 80096f4: 1949 addeq r1, r1, r5 + 80096f6: 6021 streq r1, [r4, #0] + 80096f8: e7ed b.n 80096d6 <_free_r+0x22> + 80096fa: 461a mov r2, r3 + 80096fc: 685b ldr r3, [r3, #4] + 80096fe: b10b cbz r3, 8009704 <_free_r+0x50> + 8009700: 42a3 cmp r3, r4 + 8009702: d9fa bls.n 80096fa <_free_r+0x46> + 8009704: 6811 ldr r1, [r2, #0] + 8009706: 1855 adds r5, r2, r1 + 8009708: 42a5 cmp r5, r4 + 800970a: d10b bne.n 8009724 <_free_r+0x70> + 800970c: 6824 ldr r4, [r4, #0] + 800970e: 4421 add r1, r4 + 8009710: 1854 adds r4, r2, r1 + 8009712: 42a3 cmp r3, r4 + 8009714: 6011 str r1, [r2, #0] + 8009716: d1e0 bne.n 80096da <_free_r+0x26> + 8009718: 681c ldr r4, [r3, #0] + 800971a: 685b ldr r3, [r3, #4] + 800971c: 6053 str r3, [r2, #4] + 800971e: 4421 add r1, r4 + 8009720: 6011 str r1, [r2, #0] + 8009722: e7da b.n 80096da <_free_r+0x26> + 8009724: d902 bls.n 800972c <_free_r+0x78> + 8009726: 230c movs r3, #12 + 8009728: 6003 str r3, [r0, #0] + 800972a: e7d6 b.n 80096da <_free_r+0x26> + 800972c: 6825 ldr r5, [r4, #0] + 800972e: 1961 adds r1, r4, r5 + 8009730: 428b cmp r3, r1 + 8009732: bf04 itt eq + 8009734: 6819 ldreq r1, [r3, #0] + 8009736: 685b ldreq r3, [r3, #4] + 8009738: 6063 str r3, [r4, #4] + 800973a: bf04 itt eq + 800973c: 1949 addeq r1, r1, r5 + 800973e: 6021 streq r1, [r4, #0] + 8009740: 6054 str r4, [r2, #4] + 8009742: e7ca b.n 80096da <_free_r+0x26> + 8009744: b003 add sp, #12 + 8009746: bd30 pop {r4, r5, pc} + 8009748: 20008444 .word 0x20008444 + +0800974c : + 800974c: b570 push {r4, r5, r6, lr} + 800974e: 4e0e ldr r6, [pc, #56] ; (8009788 ) + 8009750: 460c mov r4, r1 + 8009752: 6831 ldr r1, [r6, #0] + 8009754: 4605 mov r5, r0 + 8009756: b911 cbnz r1, 800975e + 8009758: f000 fb7a bl 8009e50 <_sbrk_r> + 800975c: 6030 str r0, [r6, #0] + 800975e: 4621 mov r1, r4 + 8009760: 4628 mov r0, r5 + 8009762: f000 fb75 bl 8009e50 <_sbrk_r> + 8009766: 1c43 adds r3, r0, #1 + 8009768: d00a beq.n 8009780 + 800976a: 1cc4 adds r4, r0, #3 + 800976c: f024 0403 bic.w r4, r4, #3 + 8009770: 42a0 cmp r0, r4 + 8009772: d007 beq.n 8009784 + 8009774: 1a21 subs r1, r4, r0 + 8009776: 4628 mov r0, r5 + 8009778: f000 fb6a bl 8009e50 <_sbrk_r> + 800977c: 3001 adds r0, #1 + 800977e: d101 bne.n 8009784 + 8009780: f04f 34ff mov.w r4, #4294967295 + 8009784: 4620 mov r0, r4 + 8009786: bd70 pop {r4, r5, r6, pc} + 8009788: 20008448 .word 0x20008448 + +0800978c <_malloc_r>: + 800978c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8009790: 1ccd adds r5, r1, #3 + 8009792: f025 0503 bic.w r5, r5, #3 + 8009796: 3508 adds r5, #8 + 8009798: 2d0c cmp r5, #12 + 800979a: bf38 it cc + 800979c: 250c movcc r5, #12 + 800979e: 2d00 cmp r5, #0 + 80097a0: 4607 mov r7, r0 + 80097a2: db01 blt.n 80097a8 <_malloc_r+0x1c> + 80097a4: 42a9 cmp r1, r5 + 80097a6: d905 bls.n 80097b4 <_malloc_r+0x28> + 80097a8: 230c movs r3, #12 + 80097aa: 603b str r3, [r7, #0] + 80097ac: 2600 movs r6, #0 + 80097ae: 4630 mov r0, r6 + 80097b0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 80097b4: 4e2e ldr r6, [pc, #184] ; (8009870 <_malloc_r+0xe4>) + 80097b6: f000 fdc3 bl 800a340 <__malloc_lock> + 80097ba: 6833 ldr r3, [r6, #0] + 80097bc: 461c mov r4, r3 + 80097be: bb34 cbnz r4, 800980e <_malloc_r+0x82> + 80097c0: 4629 mov r1, r5 + 80097c2: 4638 mov r0, r7 + 80097c4: f7ff ffc2 bl 800974c + 80097c8: 1c43 adds r3, r0, #1 + 80097ca: 4604 mov r4, r0 + 80097cc: d14d bne.n 800986a <_malloc_r+0xde> + 80097ce: 6834 ldr r4, [r6, #0] + 80097d0: 4626 mov r6, r4 + 80097d2: 2e00 cmp r6, #0 + 80097d4: d140 bne.n 8009858 <_malloc_r+0xcc> + 80097d6: 6823 ldr r3, [r4, #0] + 80097d8: 4631 mov r1, r6 + 80097da: 4638 mov r0, r7 + 80097dc: eb04 0803 add.w r8, r4, r3 + 80097e0: f000 fb36 bl 8009e50 <_sbrk_r> + 80097e4: 4580 cmp r8, r0 + 80097e6: d13a bne.n 800985e <_malloc_r+0xd2> + 80097e8: 6821 ldr r1, [r4, #0] + 80097ea: 3503 adds r5, #3 + 80097ec: 1a6d subs r5, r5, r1 + 80097ee: f025 0503 bic.w r5, r5, #3 + 80097f2: 3508 adds r5, #8 + 80097f4: 2d0c cmp r5, #12 + 80097f6: bf38 it cc + 80097f8: 250c movcc r5, #12 + 80097fa: 4629 mov r1, r5 + 80097fc: 4638 mov r0, r7 + 80097fe: f7ff ffa5 bl 800974c + 8009802: 3001 adds r0, #1 + 8009804: d02b beq.n 800985e <_malloc_r+0xd2> + 8009806: 6823 ldr r3, [r4, #0] + 8009808: 442b add r3, r5 + 800980a: 6023 str r3, [r4, #0] + 800980c: e00e b.n 800982c <_malloc_r+0xa0> + 800980e: 6822 ldr r2, [r4, #0] + 8009810: 1b52 subs r2, r2, r5 + 8009812: d41e bmi.n 8009852 <_malloc_r+0xc6> + 8009814: 2a0b cmp r2, #11 + 8009816: d916 bls.n 8009846 <_malloc_r+0xba> + 8009818: 1961 adds r1, r4, r5 + 800981a: 42a3 cmp r3, r4 + 800981c: 6025 str r5, [r4, #0] + 800981e: bf18 it ne + 8009820: 6059 strne r1, [r3, #4] + 8009822: 6863 ldr r3, [r4, #4] + 8009824: bf08 it eq + 8009826: 6031 streq r1, [r6, #0] + 8009828: 5162 str r2, [r4, r5] + 800982a: 604b str r3, [r1, #4] + 800982c: 4638 mov r0, r7 + 800982e: f104 060b add.w r6, r4, #11 + 8009832: f000 fd8b bl 800a34c <__malloc_unlock> + 8009836: f026 0607 bic.w r6, r6, #7 + 800983a: 1d23 adds r3, r4, #4 + 800983c: 1af2 subs r2, r6, r3 + 800983e: d0b6 beq.n 80097ae <_malloc_r+0x22> + 8009840: 1b9b subs r3, r3, r6 + 8009842: 50a3 str r3, [r4, r2] + 8009844: e7b3 b.n 80097ae <_malloc_r+0x22> + 8009846: 6862 ldr r2, [r4, #4] + 8009848: 42a3 cmp r3, r4 + 800984a: bf0c ite eq + 800984c: 6032 streq r2, [r6, #0] + 800984e: 605a strne r2, [r3, #4] + 8009850: e7ec b.n 800982c <_malloc_r+0xa0> + 8009852: 4623 mov r3, r4 + 8009854: 6864 ldr r4, [r4, #4] + 8009856: e7b2 b.n 80097be <_malloc_r+0x32> + 8009858: 4634 mov r4, r6 + 800985a: 6876 ldr r6, [r6, #4] + 800985c: e7b9 b.n 80097d2 <_malloc_r+0x46> + 800985e: 230c movs r3, #12 + 8009860: 603b str r3, [r7, #0] + 8009862: 4638 mov r0, r7 + 8009864: f000 fd72 bl 800a34c <__malloc_unlock> + 8009868: e7a1 b.n 80097ae <_malloc_r+0x22> + 800986a: 6025 str r5, [r4, #0] + 800986c: e7de b.n 800982c <_malloc_r+0xa0> + 800986e: bf00 nop + 8009870: 20008444 .word 0x20008444 + +08009874 <__sfputc_r>: + 8009874: 6893 ldr r3, [r2, #8] + 8009876: 3b01 subs r3, #1 + 8009878: 2b00 cmp r3, #0 + 800987a: b410 push {r4} + 800987c: 6093 str r3, [r2, #8] + 800987e: da08 bge.n 8009892 <__sfputc_r+0x1e> + 8009880: 6994 ldr r4, [r2, #24] + 8009882: 42a3 cmp r3, r4 + 8009884: db01 blt.n 800988a <__sfputc_r+0x16> + 8009886: 290a cmp r1, #10 + 8009888: d103 bne.n 8009892 <__sfputc_r+0x1e> + 800988a: f85d 4b04 ldr.w r4, [sp], #4 + 800988e: f000 bb33 b.w 8009ef8 <__swbuf_r> + 8009892: 6813 ldr r3, [r2, #0] + 8009894: 1c58 adds r0, r3, #1 + 8009896: 6010 str r0, [r2, #0] + 8009898: 7019 strb r1, [r3, #0] + 800989a: 4608 mov r0, r1 + 800989c: f85d 4b04 ldr.w r4, [sp], #4 + 80098a0: 4770 bx lr + +080098a2 <__sfputs_r>: + 80098a2: b5f8 push {r3, r4, r5, r6, r7, lr} + 80098a4: 4606 mov r6, r0 + 80098a6: 460f mov r7, r1 + 80098a8: 4614 mov r4, r2 + 80098aa: 18d5 adds r5, r2, r3 + 80098ac: 42ac cmp r4, r5 + 80098ae: d101 bne.n 80098b4 <__sfputs_r+0x12> + 80098b0: 2000 movs r0, #0 + 80098b2: e007 b.n 80098c4 <__sfputs_r+0x22> + 80098b4: f814 1b01 ldrb.w r1, [r4], #1 + 80098b8: 463a mov r2, r7 + 80098ba: 4630 mov r0, r6 + 80098bc: f7ff ffda bl 8009874 <__sfputc_r> + 80098c0: 1c43 adds r3, r0, #1 + 80098c2: d1f3 bne.n 80098ac <__sfputs_r+0xa> + 80098c4: bdf8 pop {r3, r4, r5, r6, r7, pc} + ... + +080098c8 <_vfiprintf_r>: + 80098c8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 80098cc: 460d mov r5, r1 + 80098ce: b09d sub sp, #116 ; 0x74 + 80098d0: 4614 mov r4, r2 + 80098d2: 4698 mov r8, r3 + 80098d4: 4606 mov r6, r0 + 80098d6: b118 cbz r0, 80098e0 <_vfiprintf_r+0x18> + 80098d8: 6983 ldr r3, [r0, #24] + 80098da: b90b cbnz r3, 80098e0 <_vfiprintf_r+0x18> + 80098dc: f7ff fe30 bl 8009540 <__sinit> + 80098e0: 4b89 ldr r3, [pc, #548] ; (8009b08 <_vfiprintf_r+0x240>) + 80098e2: 429d cmp r5, r3 + 80098e4: d11b bne.n 800991e <_vfiprintf_r+0x56> + 80098e6: 6875 ldr r5, [r6, #4] + 80098e8: 6e6b ldr r3, [r5, #100] ; 0x64 + 80098ea: 07d9 lsls r1, r3, #31 + 80098ec: d405 bmi.n 80098fa <_vfiprintf_r+0x32> + 80098ee: 89ab ldrh r3, [r5, #12] + 80098f0: 059a lsls r2, r3, #22 + 80098f2: d402 bmi.n 80098fa <_vfiprintf_r+0x32> + 80098f4: 6da8 ldr r0, [r5, #88] ; 0x58 + 80098f6: f7ff fed3 bl 80096a0 <__retarget_lock_acquire_recursive> + 80098fa: 89ab ldrh r3, [r5, #12] + 80098fc: 071b lsls r3, r3, #28 + 80098fe: d501 bpl.n 8009904 <_vfiprintf_r+0x3c> + 8009900: 692b ldr r3, [r5, #16] + 8009902: b9eb cbnz r3, 8009940 <_vfiprintf_r+0x78> + 8009904: 4629 mov r1, r5 + 8009906: 4630 mov r0, r6 + 8009908: f000 fb5a bl 8009fc0 <__swsetup_r> + 800990c: b1c0 cbz r0, 8009940 <_vfiprintf_r+0x78> + 800990e: 6e6b ldr r3, [r5, #100] ; 0x64 + 8009910: 07dc lsls r4, r3, #31 + 8009912: d50e bpl.n 8009932 <_vfiprintf_r+0x6a> + 8009914: f04f 30ff mov.w r0, #4294967295 + 8009918: b01d add sp, #116 ; 0x74 + 800991a: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 800991e: 4b7b ldr r3, [pc, #492] ; (8009b0c <_vfiprintf_r+0x244>) + 8009920: 429d cmp r5, r3 + 8009922: d101 bne.n 8009928 <_vfiprintf_r+0x60> + 8009924: 68b5 ldr r5, [r6, #8] + 8009926: e7df b.n 80098e8 <_vfiprintf_r+0x20> + 8009928: 4b79 ldr r3, [pc, #484] ; (8009b10 <_vfiprintf_r+0x248>) + 800992a: 429d cmp r5, r3 + 800992c: bf08 it eq + 800992e: 68f5 ldreq r5, [r6, #12] + 8009930: e7da b.n 80098e8 <_vfiprintf_r+0x20> + 8009932: 89ab ldrh r3, [r5, #12] + 8009934: 0598 lsls r0, r3, #22 + 8009936: d4ed bmi.n 8009914 <_vfiprintf_r+0x4c> + 8009938: 6da8 ldr r0, [r5, #88] ; 0x58 + 800993a: f7ff feb2 bl 80096a2 <__retarget_lock_release_recursive> + 800993e: e7e9 b.n 8009914 <_vfiprintf_r+0x4c> + 8009940: 2300 movs r3, #0 + 8009942: 9309 str r3, [sp, #36] ; 0x24 + 8009944: 2320 movs r3, #32 + 8009946: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 800994a: f8cd 800c str.w r8, [sp, #12] + 800994e: 2330 movs r3, #48 ; 0x30 + 8009950: f8df 81c0 ldr.w r8, [pc, #448] ; 8009b14 <_vfiprintf_r+0x24c> + 8009954: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 8009958: f04f 0901 mov.w r9, #1 + 800995c: 4623 mov r3, r4 + 800995e: 469a mov sl, r3 + 8009960: f813 2b01 ldrb.w r2, [r3], #1 + 8009964: b10a cbz r2, 800996a <_vfiprintf_r+0xa2> + 8009966: 2a25 cmp r2, #37 ; 0x25 + 8009968: d1f9 bne.n 800995e <_vfiprintf_r+0x96> + 800996a: ebba 0b04 subs.w fp, sl, r4 + 800996e: d00b beq.n 8009988 <_vfiprintf_r+0xc0> + 8009970: 465b mov r3, fp + 8009972: 4622 mov r2, r4 + 8009974: 4629 mov r1, r5 + 8009976: 4630 mov r0, r6 + 8009978: f7ff ff93 bl 80098a2 <__sfputs_r> + 800997c: 3001 adds r0, #1 + 800997e: f000 80aa beq.w 8009ad6 <_vfiprintf_r+0x20e> + 8009982: 9a09 ldr r2, [sp, #36] ; 0x24 + 8009984: 445a add r2, fp + 8009986: 9209 str r2, [sp, #36] ; 0x24 + 8009988: f89a 3000 ldrb.w r3, [sl] + 800998c: 2b00 cmp r3, #0 + 800998e: f000 80a2 beq.w 8009ad6 <_vfiprintf_r+0x20e> + 8009992: 2300 movs r3, #0 + 8009994: f04f 32ff mov.w r2, #4294967295 + 8009998: e9cd 2305 strd r2, r3, [sp, #20] + 800999c: f10a 0a01 add.w sl, sl, #1 + 80099a0: 9304 str r3, [sp, #16] + 80099a2: 9307 str r3, [sp, #28] + 80099a4: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 80099a8: 931a str r3, [sp, #104] ; 0x68 + 80099aa: 4654 mov r4, sl + 80099ac: 2205 movs r2, #5 + 80099ae: f814 1b01 ldrb.w r1, [r4], #1 + 80099b2: 4858 ldr r0, [pc, #352] ; (8009b14 <_vfiprintf_r+0x24c>) + 80099b4: f7f6 fc1c bl 80001f0 + 80099b8: 9a04 ldr r2, [sp, #16] + 80099ba: b9d8 cbnz r0, 80099f4 <_vfiprintf_r+0x12c> + 80099bc: 06d1 lsls r1, r2, #27 + 80099be: bf44 itt mi + 80099c0: 2320 movmi r3, #32 + 80099c2: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 80099c6: 0713 lsls r3, r2, #28 + 80099c8: bf44 itt mi + 80099ca: 232b movmi r3, #43 ; 0x2b + 80099cc: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 + 80099d0: f89a 3000 ldrb.w r3, [sl] + 80099d4: 2b2a cmp r3, #42 ; 0x2a + 80099d6: d015 beq.n 8009a04 <_vfiprintf_r+0x13c> + 80099d8: 9a07 ldr r2, [sp, #28] + 80099da: 4654 mov r4, sl + 80099dc: 2000 movs r0, #0 + 80099de: f04f 0c0a mov.w ip, #10 + 80099e2: 4621 mov r1, r4 + 80099e4: f811 3b01 ldrb.w r3, [r1], #1 + 80099e8: 3b30 subs r3, #48 ; 0x30 + 80099ea: 2b09 cmp r3, #9 + 80099ec: d94e bls.n 8009a8c <_vfiprintf_r+0x1c4> + 80099ee: b1b0 cbz r0, 8009a1e <_vfiprintf_r+0x156> + 80099f0: 9207 str r2, [sp, #28] + 80099f2: e014 b.n 8009a1e <_vfiprintf_r+0x156> + 80099f4: eba0 0308 sub.w r3, r0, r8 + 80099f8: fa09 f303 lsl.w r3, r9, r3 + 80099fc: 4313 orrs r3, r2 + 80099fe: 9304 str r3, [sp, #16] + 8009a00: 46a2 mov sl, r4 + 8009a02: e7d2 b.n 80099aa <_vfiprintf_r+0xe2> + 8009a04: 9b03 ldr r3, [sp, #12] + 8009a06: 1d19 adds r1, r3, #4 + 8009a08: 681b ldr r3, [r3, #0] + 8009a0a: 9103 str r1, [sp, #12] + 8009a0c: 2b00 cmp r3, #0 + 8009a0e: bfbb ittet lt + 8009a10: 425b neglt r3, r3 + 8009a12: f042 0202 orrlt.w r2, r2, #2 + 8009a16: 9307 strge r3, [sp, #28] + 8009a18: 9307 strlt r3, [sp, #28] + 8009a1a: bfb8 it lt + 8009a1c: 9204 strlt r2, [sp, #16] + 8009a1e: 7823 ldrb r3, [r4, #0] + 8009a20: 2b2e cmp r3, #46 ; 0x2e + 8009a22: d10c bne.n 8009a3e <_vfiprintf_r+0x176> + 8009a24: 7863 ldrb r3, [r4, #1] + 8009a26: 2b2a cmp r3, #42 ; 0x2a + 8009a28: d135 bne.n 8009a96 <_vfiprintf_r+0x1ce> + 8009a2a: 9b03 ldr r3, [sp, #12] + 8009a2c: 1d1a adds r2, r3, #4 + 8009a2e: 681b ldr r3, [r3, #0] + 8009a30: 9203 str r2, [sp, #12] + 8009a32: 2b00 cmp r3, #0 + 8009a34: bfb8 it lt + 8009a36: f04f 33ff movlt.w r3, #4294967295 + 8009a3a: 3402 adds r4, #2 + 8009a3c: 9305 str r3, [sp, #20] + 8009a3e: f8df a0e4 ldr.w sl, [pc, #228] ; 8009b24 <_vfiprintf_r+0x25c> + 8009a42: 7821 ldrb r1, [r4, #0] + 8009a44: 2203 movs r2, #3 + 8009a46: 4650 mov r0, sl + 8009a48: f7f6 fbd2 bl 80001f0 + 8009a4c: b140 cbz r0, 8009a60 <_vfiprintf_r+0x198> + 8009a4e: 2340 movs r3, #64 ; 0x40 + 8009a50: eba0 000a sub.w r0, r0, sl + 8009a54: fa03 f000 lsl.w r0, r3, r0 + 8009a58: 9b04 ldr r3, [sp, #16] + 8009a5a: 4303 orrs r3, r0 + 8009a5c: 3401 adds r4, #1 + 8009a5e: 9304 str r3, [sp, #16] + 8009a60: f814 1b01 ldrb.w r1, [r4], #1 + 8009a64: 482c ldr r0, [pc, #176] ; (8009b18 <_vfiprintf_r+0x250>) + 8009a66: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 8009a6a: 2206 movs r2, #6 + 8009a6c: f7f6 fbc0 bl 80001f0 + 8009a70: 2800 cmp r0, #0 + 8009a72: d03f beq.n 8009af4 <_vfiprintf_r+0x22c> + 8009a74: 4b29 ldr r3, [pc, #164] ; (8009b1c <_vfiprintf_r+0x254>) + 8009a76: bb1b cbnz r3, 8009ac0 <_vfiprintf_r+0x1f8> + 8009a78: 9b03 ldr r3, [sp, #12] + 8009a7a: 3307 adds r3, #7 + 8009a7c: f023 0307 bic.w r3, r3, #7 + 8009a80: 3308 adds r3, #8 + 8009a82: 9303 str r3, [sp, #12] + 8009a84: 9b09 ldr r3, [sp, #36] ; 0x24 + 8009a86: 443b add r3, r7 + 8009a88: 9309 str r3, [sp, #36] ; 0x24 + 8009a8a: e767 b.n 800995c <_vfiprintf_r+0x94> + 8009a8c: fb0c 3202 mla r2, ip, r2, r3 + 8009a90: 460c mov r4, r1 + 8009a92: 2001 movs r0, #1 + 8009a94: e7a5 b.n 80099e2 <_vfiprintf_r+0x11a> + 8009a96: 2300 movs r3, #0 + 8009a98: 3401 adds r4, #1 + 8009a9a: 9305 str r3, [sp, #20] + 8009a9c: 4619 mov r1, r3 + 8009a9e: f04f 0c0a mov.w ip, #10 + 8009aa2: 4620 mov r0, r4 + 8009aa4: f810 2b01 ldrb.w r2, [r0], #1 + 8009aa8: 3a30 subs r2, #48 ; 0x30 + 8009aaa: 2a09 cmp r2, #9 + 8009aac: d903 bls.n 8009ab6 <_vfiprintf_r+0x1ee> + 8009aae: 2b00 cmp r3, #0 + 8009ab0: d0c5 beq.n 8009a3e <_vfiprintf_r+0x176> + 8009ab2: 9105 str r1, [sp, #20] + 8009ab4: e7c3 b.n 8009a3e <_vfiprintf_r+0x176> + 8009ab6: fb0c 2101 mla r1, ip, r1, r2 + 8009aba: 4604 mov r4, r0 + 8009abc: 2301 movs r3, #1 + 8009abe: e7f0 b.n 8009aa2 <_vfiprintf_r+0x1da> + 8009ac0: ab03 add r3, sp, #12 + 8009ac2: 9300 str r3, [sp, #0] + 8009ac4: 462a mov r2, r5 + 8009ac6: 4b16 ldr r3, [pc, #88] ; (8009b20 <_vfiprintf_r+0x258>) + 8009ac8: a904 add r1, sp, #16 + 8009aca: 4630 mov r0, r6 + 8009acc: f3af 8000 nop.w + 8009ad0: 4607 mov r7, r0 + 8009ad2: 1c78 adds r0, r7, #1 + 8009ad4: d1d6 bne.n 8009a84 <_vfiprintf_r+0x1bc> + 8009ad6: 6e6b ldr r3, [r5, #100] ; 0x64 + 8009ad8: 07d9 lsls r1, r3, #31 + 8009ada: d405 bmi.n 8009ae8 <_vfiprintf_r+0x220> + 8009adc: 89ab ldrh r3, [r5, #12] + 8009ade: 059a lsls r2, r3, #22 + 8009ae0: d402 bmi.n 8009ae8 <_vfiprintf_r+0x220> + 8009ae2: 6da8 ldr r0, [r5, #88] ; 0x58 + 8009ae4: f7ff fddd bl 80096a2 <__retarget_lock_release_recursive> + 8009ae8: 89ab ldrh r3, [r5, #12] + 8009aea: 065b lsls r3, r3, #25 + 8009aec: f53f af12 bmi.w 8009914 <_vfiprintf_r+0x4c> + 8009af0: 9809 ldr r0, [sp, #36] ; 0x24 + 8009af2: e711 b.n 8009918 <_vfiprintf_r+0x50> + 8009af4: ab03 add r3, sp, #12 + 8009af6: 9300 str r3, [sp, #0] + 8009af8: 462a mov r2, r5 + 8009afa: 4b09 ldr r3, [pc, #36] ; (8009b20 <_vfiprintf_r+0x258>) + 8009afc: a904 add r1, sp, #16 + 8009afe: 4630 mov r0, r6 + 8009b00: f000 f880 bl 8009c04 <_printf_i> + 8009b04: e7e4 b.n 8009ad0 <_vfiprintf_r+0x208> + 8009b06: bf00 nop + 8009b08: 0800c718 .word 0x0800c718 + 8009b0c: 0800c738 .word 0x0800c738 + 8009b10: 0800c6f8 .word 0x0800c6f8 + 8009b14: 0800c758 .word 0x0800c758 + 8009b18: 0800c762 .word 0x0800c762 + 8009b1c: 00000000 .word 0x00000000 + 8009b20: 080098a3 .word 0x080098a3 + 8009b24: 0800c75e .word 0x0800c75e + +08009b28 <_printf_common>: + 8009b28: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 8009b2c: 4616 mov r6, r2 + 8009b2e: 4699 mov r9, r3 + 8009b30: 688a ldr r2, [r1, #8] + 8009b32: 690b ldr r3, [r1, #16] + 8009b34: f8dd 8020 ldr.w r8, [sp, #32] + 8009b38: 4293 cmp r3, r2 + 8009b3a: bfb8 it lt + 8009b3c: 4613 movlt r3, r2 + 8009b3e: 6033 str r3, [r6, #0] + 8009b40: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 + 8009b44: 4607 mov r7, r0 + 8009b46: 460c mov r4, r1 + 8009b48: b10a cbz r2, 8009b4e <_printf_common+0x26> + 8009b4a: 3301 adds r3, #1 + 8009b4c: 6033 str r3, [r6, #0] + 8009b4e: 6823 ldr r3, [r4, #0] + 8009b50: 0699 lsls r1, r3, #26 + 8009b52: bf42 ittt mi + 8009b54: 6833 ldrmi r3, [r6, #0] + 8009b56: 3302 addmi r3, #2 + 8009b58: 6033 strmi r3, [r6, #0] + 8009b5a: 6825 ldr r5, [r4, #0] + 8009b5c: f015 0506 ands.w r5, r5, #6 + 8009b60: d106 bne.n 8009b70 <_printf_common+0x48> + 8009b62: f104 0a19 add.w sl, r4, #25 + 8009b66: 68e3 ldr r3, [r4, #12] + 8009b68: 6832 ldr r2, [r6, #0] + 8009b6a: 1a9b subs r3, r3, r2 + 8009b6c: 42ab cmp r3, r5 + 8009b6e: dc26 bgt.n 8009bbe <_printf_common+0x96> + 8009b70: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 + 8009b74: 1e13 subs r3, r2, #0 + 8009b76: 6822 ldr r2, [r4, #0] + 8009b78: bf18 it ne + 8009b7a: 2301 movne r3, #1 + 8009b7c: 0692 lsls r2, r2, #26 + 8009b7e: d42b bmi.n 8009bd8 <_printf_common+0xb0> + 8009b80: f104 0243 add.w r2, r4, #67 ; 0x43 + 8009b84: 4649 mov r1, r9 + 8009b86: 4638 mov r0, r7 + 8009b88: 47c0 blx r8 + 8009b8a: 3001 adds r0, #1 + 8009b8c: d01e beq.n 8009bcc <_printf_common+0xa4> + 8009b8e: 6823 ldr r3, [r4, #0] + 8009b90: 68e5 ldr r5, [r4, #12] + 8009b92: 6832 ldr r2, [r6, #0] + 8009b94: f003 0306 and.w r3, r3, #6 + 8009b98: 2b04 cmp r3, #4 + 8009b9a: bf08 it eq + 8009b9c: 1aad subeq r5, r5, r2 + 8009b9e: 68a3 ldr r3, [r4, #8] + 8009ba0: 6922 ldr r2, [r4, #16] + 8009ba2: bf0c ite eq + 8009ba4: ea25 75e5 biceq.w r5, r5, r5, asr #31 + 8009ba8: 2500 movne r5, #0 + 8009baa: 4293 cmp r3, r2 + 8009bac: bfc4 itt gt + 8009bae: 1a9b subgt r3, r3, r2 + 8009bb0: 18ed addgt r5, r5, r3 + 8009bb2: 2600 movs r6, #0 + 8009bb4: 341a adds r4, #26 + 8009bb6: 42b5 cmp r5, r6 + 8009bb8: d11a bne.n 8009bf0 <_printf_common+0xc8> + 8009bba: 2000 movs r0, #0 + 8009bbc: e008 b.n 8009bd0 <_printf_common+0xa8> + 8009bbe: 2301 movs r3, #1 + 8009bc0: 4652 mov r2, sl + 8009bc2: 4649 mov r1, r9 + 8009bc4: 4638 mov r0, r7 + 8009bc6: 47c0 blx r8 + 8009bc8: 3001 adds r0, #1 + 8009bca: d103 bne.n 8009bd4 <_printf_common+0xac> + 8009bcc: f04f 30ff mov.w r0, #4294967295 + 8009bd0: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8009bd4: 3501 adds r5, #1 + 8009bd6: e7c6 b.n 8009b66 <_printf_common+0x3e> + 8009bd8: 18e1 adds r1, r4, r3 + 8009bda: 1c5a adds r2, r3, #1 + 8009bdc: 2030 movs r0, #48 ; 0x30 + 8009bde: f881 0043 strb.w r0, [r1, #67] ; 0x43 + 8009be2: 4422 add r2, r4 + 8009be4: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 + 8009be8: f882 1043 strb.w r1, [r2, #67] ; 0x43 + 8009bec: 3302 adds r3, #2 + 8009bee: e7c7 b.n 8009b80 <_printf_common+0x58> + 8009bf0: 2301 movs r3, #1 + 8009bf2: 4622 mov r2, r4 + 8009bf4: 4649 mov r1, r9 + 8009bf6: 4638 mov r0, r7 + 8009bf8: 47c0 blx r8 + 8009bfa: 3001 adds r0, #1 + 8009bfc: d0e6 beq.n 8009bcc <_printf_common+0xa4> + 8009bfe: 3601 adds r6, #1 + 8009c00: e7d9 b.n 8009bb6 <_printf_common+0x8e> + ... + +08009c04 <_printf_i>: + 8009c04: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} + 8009c08: 7e0f ldrb r7, [r1, #24] + 8009c0a: 9d0c ldr r5, [sp, #48] ; 0x30 + 8009c0c: 2f78 cmp r7, #120 ; 0x78 + 8009c0e: 4691 mov r9, r2 + 8009c10: 4680 mov r8, r0 + 8009c12: 460c mov r4, r1 + 8009c14: 469a mov sl, r3 + 8009c16: f101 0243 add.w r2, r1, #67 ; 0x43 + 8009c1a: d807 bhi.n 8009c2c <_printf_i+0x28> + 8009c1c: 2f62 cmp r7, #98 ; 0x62 + 8009c1e: d80a bhi.n 8009c36 <_printf_i+0x32> + 8009c20: 2f00 cmp r7, #0 + 8009c22: f000 80d8 beq.w 8009dd6 <_printf_i+0x1d2> + 8009c26: 2f58 cmp r7, #88 ; 0x58 + 8009c28: f000 80a3 beq.w 8009d72 <_printf_i+0x16e> + 8009c2c: f104 0542 add.w r5, r4, #66 ; 0x42 + 8009c30: f884 7042 strb.w r7, [r4, #66] ; 0x42 + 8009c34: e03a b.n 8009cac <_printf_i+0xa8> + 8009c36: f1a7 0363 sub.w r3, r7, #99 ; 0x63 + 8009c3a: 2b15 cmp r3, #21 + 8009c3c: d8f6 bhi.n 8009c2c <_printf_i+0x28> + 8009c3e: a101 add r1, pc, #4 ; (adr r1, 8009c44 <_printf_i+0x40>) + 8009c40: f851 f023 ldr.w pc, [r1, r3, lsl #2] + 8009c44: 08009c9d .word 0x08009c9d + 8009c48: 08009cb1 .word 0x08009cb1 + 8009c4c: 08009c2d .word 0x08009c2d + 8009c50: 08009c2d .word 0x08009c2d + 8009c54: 08009c2d .word 0x08009c2d + 8009c58: 08009c2d .word 0x08009c2d + 8009c5c: 08009cb1 .word 0x08009cb1 + 8009c60: 08009c2d .word 0x08009c2d + 8009c64: 08009c2d .word 0x08009c2d + 8009c68: 08009c2d .word 0x08009c2d + 8009c6c: 08009c2d .word 0x08009c2d + 8009c70: 08009dbd .word 0x08009dbd + 8009c74: 08009ce1 .word 0x08009ce1 + 8009c78: 08009d9f .word 0x08009d9f + 8009c7c: 08009c2d .word 0x08009c2d + 8009c80: 08009c2d .word 0x08009c2d + 8009c84: 08009ddf .word 0x08009ddf + 8009c88: 08009c2d .word 0x08009c2d + 8009c8c: 08009ce1 .word 0x08009ce1 + 8009c90: 08009c2d .word 0x08009c2d + 8009c94: 08009c2d .word 0x08009c2d + 8009c98: 08009da7 .word 0x08009da7 + 8009c9c: 682b ldr r3, [r5, #0] + 8009c9e: 1d1a adds r2, r3, #4 + 8009ca0: 681b ldr r3, [r3, #0] + 8009ca2: 602a str r2, [r5, #0] + 8009ca4: f104 0542 add.w r5, r4, #66 ; 0x42 + 8009ca8: f884 3042 strb.w r3, [r4, #66] ; 0x42 + 8009cac: 2301 movs r3, #1 + 8009cae: e0a3 b.n 8009df8 <_printf_i+0x1f4> + 8009cb0: 6820 ldr r0, [r4, #0] + 8009cb2: 6829 ldr r1, [r5, #0] + 8009cb4: 0606 lsls r6, r0, #24 + 8009cb6: f101 0304 add.w r3, r1, #4 + 8009cba: d50a bpl.n 8009cd2 <_printf_i+0xce> + 8009cbc: 680e ldr r6, [r1, #0] + 8009cbe: 602b str r3, [r5, #0] + 8009cc0: 2e00 cmp r6, #0 + 8009cc2: da03 bge.n 8009ccc <_printf_i+0xc8> + 8009cc4: 232d movs r3, #45 ; 0x2d + 8009cc6: 4276 negs r6, r6 + 8009cc8: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8009ccc: 485e ldr r0, [pc, #376] ; (8009e48 <_printf_i+0x244>) + 8009cce: 230a movs r3, #10 + 8009cd0: e019 b.n 8009d06 <_printf_i+0x102> + 8009cd2: 680e ldr r6, [r1, #0] + 8009cd4: 602b str r3, [r5, #0] + 8009cd6: f010 0f40 tst.w r0, #64 ; 0x40 + 8009cda: bf18 it ne + 8009cdc: b236 sxthne r6, r6 + 8009cde: e7ef b.n 8009cc0 <_printf_i+0xbc> + 8009ce0: 682b ldr r3, [r5, #0] + 8009ce2: 6820 ldr r0, [r4, #0] + 8009ce4: 1d19 adds r1, r3, #4 + 8009ce6: 6029 str r1, [r5, #0] + 8009ce8: 0601 lsls r1, r0, #24 + 8009cea: d501 bpl.n 8009cf0 <_printf_i+0xec> + 8009cec: 681e ldr r6, [r3, #0] + 8009cee: e002 b.n 8009cf6 <_printf_i+0xf2> + 8009cf0: 0646 lsls r6, r0, #25 + 8009cf2: d5fb bpl.n 8009cec <_printf_i+0xe8> + 8009cf4: 881e ldrh r6, [r3, #0] + 8009cf6: 4854 ldr r0, [pc, #336] ; (8009e48 <_printf_i+0x244>) + 8009cf8: 2f6f cmp r7, #111 ; 0x6f + 8009cfa: bf0c ite eq + 8009cfc: 2308 moveq r3, #8 + 8009cfe: 230a movne r3, #10 + 8009d00: 2100 movs r1, #0 + 8009d02: f884 1043 strb.w r1, [r4, #67] ; 0x43 + 8009d06: 6865 ldr r5, [r4, #4] + 8009d08: 60a5 str r5, [r4, #8] + 8009d0a: 2d00 cmp r5, #0 + 8009d0c: bfa2 ittt ge + 8009d0e: 6821 ldrge r1, [r4, #0] + 8009d10: f021 0104 bicge.w r1, r1, #4 + 8009d14: 6021 strge r1, [r4, #0] + 8009d16: b90e cbnz r6, 8009d1c <_printf_i+0x118> + 8009d18: 2d00 cmp r5, #0 + 8009d1a: d04d beq.n 8009db8 <_printf_i+0x1b4> + 8009d1c: 4615 mov r5, r2 + 8009d1e: fbb6 f1f3 udiv r1, r6, r3 + 8009d22: fb03 6711 mls r7, r3, r1, r6 + 8009d26: 5dc7 ldrb r7, [r0, r7] + 8009d28: f805 7d01 strb.w r7, [r5, #-1]! + 8009d2c: 4637 mov r7, r6 + 8009d2e: 42bb cmp r3, r7 + 8009d30: 460e mov r6, r1 + 8009d32: d9f4 bls.n 8009d1e <_printf_i+0x11a> + 8009d34: 2b08 cmp r3, #8 + 8009d36: d10b bne.n 8009d50 <_printf_i+0x14c> + 8009d38: 6823 ldr r3, [r4, #0] + 8009d3a: 07de lsls r6, r3, #31 + 8009d3c: d508 bpl.n 8009d50 <_printf_i+0x14c> + 8009d3e: 6923 ldr r3, [r4, #16] + 8009d40: 6861 ldr r1, [r4, #4] + 8009d42: 4299 cmp r1, r3 + 8009d44: bfde ittt le + 8009d46: 2330 movle r3, #48 ; 0x30 + 8009d48: f805 3c01 strble.w r3, [r5, #-1] + 8009d4c: f105 35ff addle.w r5, r5, #4294967295 + 8009d50: 1b52 subs r2, r2, r5 + 8009d52: 6122 str r2, [r4, #16] + 8009d54: f8cd a000 str.w sl, [sp] + 8009d58: 464b mov r3, r9 + 8009d5a: aa03 add r2, sp, #12 + 8009d5c: 4621 mov r1, r4 + 8009d5e: 4640 mov r0, r8 + 8009d60: f7ff fee2 bl 8009b28 <_printf_common> + 8009d64: 3001 adds r0, #1 + 8009d66: d14c bne.n 8009e02 <_printf_i+0x1fe> + 8009d68: f04f 30ff mov.w r0, #4294967295 + 8009d6c: b004 add sp, #16 + 8009d6e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 8009d72: 4835 ldr r0, [pc, #212] ; (8009e48 <_printf_i+0x244>) + 8009d74: f881 7045 strb.w r7, [r1, #69] ; 0x45 + 8009d78: 6829 ldr r1, [r5, #0] + 8009d7a: 6823 ldr r3, [r4, #0] + 8009d7c: f851 6b04 ldr.w r6, [r1], #4 + 8009d80: 6029 str r1, [r5, #0] + 8009d82: 061d lsls r5, r3, #24 + 8009d84: d514 bpl.n 8009db0 <_printf_i+0x1ac> + 8009d86: 07df lsls r7, r3, #31 + 8009d88: bf44 itt mi + 8009d8a: f043 0320 orrmi.w r3, r3, #32 + 8009d8e: 6023 strmi r3, [r4, #0] + 8009d90: b91e cbnz r6, 8009d9a <_printf_i+0x196> + 8009d92: 6823 ldr r3, [r4, #0] + 8009d94: f023 0320 bic.w r3, r3, #32 + 8009d98: 6023 str r3, [r4, #0] + 8009d9a: 2310 movs r3, #16 + 8009d9c: e7b0 b.n 8009d00 <_printf_i+0xfc> + 8009d9e: 6823 ldr r3, [r4, #0] + 8009da0: f043 0320 orr.w r3, r3, #32 + 8009da4: 6023 str r3, [r4, #0] + 8009da6: 2378 movs r3, #120 ; 0x78 + 8009da8: 4828 ldr r0, [pc, #160] ; (8009e4c <_printf_i+0x248>) + 8009daa: f884 3045 strb.w r3, [r4, #69] ; 0x45 + 8009dae: e7e3 b.n 8009d78 <_printf_i+0x174> + 8009db0: 0659 lsls r1, r3, #25 + 8009db2: bf48 it mi + 8009db4: b2b6 uxthmi r6, r6 + 8009db6: e7e6 b.n 8009d86 <_printf_i+0x182> + 8009db8: 4615 mov r5, r2 + 8009dba: e7bb b.n 8009d34 <_printf_i+0x130> + 8009dbc: 682b ldr r3, [r5, #0] + 8009dbe: 6826 ldr r6, [r4, #0] + 8009dc0: 6961 ldr r1, [r4, #20] + 8009dc2: 1d18 adds r0, r3, #4 + 8009dc4: 6028 str r0, [r5, #0] + 8009dc6: 0635 lsls r5, r6, #24 + 8009dc8: 681b ldr r3, [r3, #0] + 8009dca: d501 bpl.n 8009dd0 <_printf_i+0x1cc> + 8009dcc: 6019 str r1, [r3, #0] + 8009dce: e002 b.n 8009dd6 <_printf_i+0x1d2> + 8009dd0: 0670 lsls r0, r6, #25 + 8009dd2: d5fb bpl.n 8009dcc <_printf_i+0x1c8> + 8009dd4: 8019 strh r1, [r3, #0] + 8009dd6: 2300 movs r3, #0 + 8009dd8: 6123 str r3, [r4, #16] + 8009dda: 4615 mov r5, r2 + 8009ddc: e7ba b.n 8009d54 <_printf_i+0x150> + 8009dde: 682b ldr r3, [r5, #0] + 8009de0: 1d1a adds r2, r3, #4 + 8009de2: 602a str r2, [r5, #0] + 8009de4: 681d ldr r5, [r3, #0] + 8009de6: 6862 ldr r2, [r4, #4] + 8009de8: 2100 movs r1, #0 + 8009dea: 4628 mov r0, r5 + 8009dec: f7f6 fa00 bl 80001f0 + 8009df0: b108 cbz r0, 8009df6 <_printf_i+0x1f2> + 8009df2: 1b40 subs r0, r0, r5 + 8009df4: 6060 str r0, [r4, #4] + 8009df6: 6863 ldr r3, [r4, #4] + 8009df8: 6123 str r3, [r4, #16] + 8009dfa: 2300 movs r3, #0 + 8009dfc: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 8009e00: e7a8 b.n 8009d54 <_printf_i+0x150> + 8009e02: 6923 ldr r3, [r4, #16] + 8009e04: 462a mov r2, r5 + 8009e06: 4649 mov r1, r9 + 8009e08: 4640 mov r0, r8 + 8009e0a: 47d0 blx sl + 8009e0c: 3001 adds r0, #1 + 8009e0e: d0ab beq.n 8009d68 <_printf_i+0x164> + 8009e10: 6823 ldr r3, [r4, #0] + 8009e12: 079b lsls r3, r3, #30 + 8009e14: d413 bmi.n 8009e3e <_printf_i+0x23a> + 8009e16: 68e0 ldr r0, [r4, #12] + 8009e18: 9b03 ldr r3, [sp, #12] + 8009e1a: 4298 cmp r0, r3 + 8009e1c: bfb8 it lt + 8009e1e: 4618 movlt r0, r3 + 8009e20: e7a4 b.n 8009d6c <_printf_i+0x168> + 8009e22: 2301 movs r3, #1 + 8009e24: 4632 mov r2, r6 + 8009e26: 4649 mov r1, r9 + 8009e28: 4640 mov r0, r8 + 8009e2a: 47d0 blx sl + 8009e2c: 3001 adds r0, #1 + 8009e2e: d09b beq.n 8009d68 <_printf_i+0x164> + 8009e30: 3501 adds r5, #1 + 8009e32: 68e3 ldr r3, [r4, #12] + 8009e34: 9903 ldr r1, [sp, #12] + 8009e36: 1a5b subs r3, r3, r1 + 8009e38: 42ab cmp r3, r5 + 8009e3a: dcf2 bgt.n 8009e22 <_printf_i+0x21e> + 8009e3c: e7eb b.n 8009e16 <_printf_i+0x212> + 8009e3e: 2500 movs r5, #0 + 8009e40: f104 0619 add.w r6, r4, #25 + 8009e44: e7f5 b.n 8009e32 <_printf_i+0x22e> + 8009e46: bf00 nop + 8009e48: 0800c769 .word 0x0800c769 + 8009e4c: 0800c77a .word 0x0800c77a + +08009e50 <_sbrk_r>: + 8009e50: b538 push {r3, r4, r5, lr} + 8009e52: 4d06 ldr r5, [pc, #24] ; (8009e6c <_sbrk_r+0x1c>) + 8009e54: 2300 movs r3, #0 + 8009e56: 4604 mov r4, r0 + 8009e58: 4608 mov r0, r1 + 8009e5a: 602b str r3, [r5, #0] + 8009e5c: f000 fb2c bl 800a4b8 <_sbrk> + 8009e60: 1c43 adds r3, r0, #1 + 8009e62: d102 bne.n 8009e6a <_sbrk_r+0x1a> + 8009e64: 682b ldr r3, [r5, #0] + 8009e66: b103 cbz r3, 8009e6a <_sbrk_r+0x1a> + 8009e68: 6023 str r3, [r4, #0] + 8009e6a: bd38 pop {r3, r4, r5, pc} + 8009e6c: 2000844c .word 0x2000844c + +08009e70 <__sread>: + 8009e70: b510 push {r4, lr} + 8009e72: 460c mov r4, r1 + 8009e74: f9b1 100e ldrsh.w r1, [r1, #14] + 8009e78: f000 fa6e bl 800a358 <_read_r> + 8009e7c: 2800 cmp r0, #0 + 8009e7e: bfab itete ge + 8009e80: 6d63 ldrge r3, [r4, #84] ; 0x54 + 8009e82: 89a3 ldrhlt r3, [r4, #12] + 8009e84: 181b addge r3, r3, r0 + 8009e86: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 + 8009e8a: bfac ite ge + 8009e8c: 6563 strge r3, [r4, #84] ; 0x54 + 8009e8e: 81a3 strhlt r3, [r4, #12] + 8009e90: bd10 pop {r4, pc} + +08009e92 <__swrite>: + 8009e92: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8009e96: 461f mov r7, r3 + 8009e98: 898b ldrh r3, [r1, #12] + 8009e9a: 05db lsls r3, r3, #23 + 8009e9c: 4605 mov r5, r0 + 8009e9e: 460c mov r4, r1 + 8009ea0: 4616 mov r6, r2 + 8009ea2: d505 bpl.n 8009eb0 <__swrite+0x1e> + 8009ea4: f9b1 100e ldrsh.w r1, [r1, #14] + 8009ea8: 2302 movs r3, #2 + 8009eaa: 2200 movs r2, #0 + 8009eac: f000 f9d0 bl 800a250 <_lseek_r> + 8009eb0: 89a3 ldrh r3, [r4, #12] + 8009eb2: f9b4 100e ldrsh.w r1, [r4, #14] + 8009eb6: f423 5380 bic.w r3, r3, #4096 ; 0x1000 + 8009eba: 81a3 strh r3, [r4, #12] + 8009ebc: 4632 mov r2, r6 + 8009ebe: 463b mov r3, r7 + 8009ec0: 4628 mov r0, r5 + 8009ec2: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 8009ec6: f000 b869 b.w 8009f9c <_write_r> + +08009eca <__sseek>: + 8009eca: b510 push {r4, lr} + 8009ecc: 460c mov r4, r1 + 8009ece: f9b1 100e ldrsh.w r1, [r1, #14] + 8009ed2: f000 f9bd bl 800a250 <_lseek_r> + 8009ed6: 1c43 adds r3, r0, #1 + 8009ed8: 89a3 ldrh r3, [r4, #12] + 8009eda: bf15 itete ne + 8009edc: 6560 strne r0, [r4, #84] ; 0x54 + 8009ede: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 + 8009ee2: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 + 8009ee6: 81a3 strheq r3, [r4, #12] + 8009ee8: bf18 it ne + 8009eea: 81a3 strhne r3, [r4, #12] + 8009eec: bd10 pop {r4, pc} + +08009eee <__sclose>: + 8009eee: f9b1 100e ldrsh.w r1, [r1, #14] + 8009ef2: f000 b8db b.w 800a0ac <_close_r> + ... + +08009ef8 <__swbuf_r>: + 8009ef8: b5f8 push {r3, r4, r5, r6, r7, lr} + 8009efa: 460e mov r6, r1 + 8009efc: 4614 mov r4, r2 + 8009efe: 4605 mov r5, r0 + 8009f00: b118 cbz r0, 8009f0a <__swbuf_r+0x12> + 8009f02: 6983 ldr r3, [r0, #24] + 8009f04: b90b cbnz r3, 8009f0a <__swbuf_r+0x12> + 8009f06: f7ff fb1b bl 8009540 <__sinit> + 8009f0a: 4b21 ldr r3, [pc, #132] ; (8009f90 <__swbuf_r+0x98>) + 8009f0c: 429c cmp r4, r3 + 8009f0e: d12b bne.n 8009f68 <__swbuf_r+0x70> + 8009f10: 686c ldr r4, [r5, #4] + 8009f12: 69a3 ldr r3, [r4, #24] + 8009f14: 60a3 str r3, [r4, #8] + 8009f16: 89a3 ldrh r3, [r4, #12] + 8009f18: 071a lsls r2, r3, #28 + 8009f1a: d52f bpl.n 8009f7c <__swbuf_r+0x84> + 8009f1c: 6923 ldr r3, [r4, #16] + 8009f1e: b36b cbz r3, 8009f7c <__swbuf_r+0x84> + 8009f20: 6923 ldr r3, [r4, #16] + 8009f22: 6820 ldr r0, [r4, #0] + 8009f24: 1ac0 subs r0, r0, r3 + 8009f26: 6963 ldr r3, [r4, #20] + 8009f28: b2f6 uxtb r6, r6 + 8009f2a: 4283 cmp r3, r0 + 8009f2c: 4637 mov r7, r6 + 8009f2e: dc04 bgt.n 8009f3a <__swbuf_r+0x42> + 8009f30: 4621 mov r1, r4 + 8009f32: 4628 mov r0, r5 + 8009f34: f000 f950 bl 800a1d8 <_fflush_r> + 8009f38: bb30 cbnz r0, 8009f88 <__swbuf_r+0x90> + 8009f3a: 68a3 ldr r3, [r4, #8] + 8009f3c: 3b01 subs r3, #1 + 8009f3e: 60a3 str r3, [r4, #8] + 8009f40: 6823 ldr r3, [r4, #0] + 8009f42: 1c5a adds r2, r3, #1 + 8009f44: 6022 str r2, [r4, #0] + 8009f46: 701e strb r6, [r3, #0] + 8009f48: 6963 ldr r3, [r4, #20] + 8009f4a: 3001 adds r0, #1 + 8009f4c: 4283 cmp r3, r0 + 8009f4e: d004 beq.n 8009f5a <__swbuf_r+0x62> + 8009f50: 89a3 ldrh r3, [r4, #12] + 8009f52: 07db lsls r3, r3, #31 + 8009f54: d506 bpl.n 8009f64 <__swbuf_r+0x6c> + 8009f56: 2e0a cmp r6, #10 + 8009f58: d104 bne.n 8009f64 <__swbuf_r+0x6c> + 8009f5a: 4621 mov r1, r4 + 8009f5c: 4628 mov r0, r5 + 8009f5e: f000 f93b bl 800a1d8 <_fflush_r> + 8009f62: b988 cbnz r0, 8009f88 <__swbuf_r+0x90> + 8009f64: 4638 mov r0, r7 + 8009f66: bdf8 pop {r3, r4, r5, r6, r7, pc} + 8009f68: 4b0a ldr r3, [pc, #40] ; (8009f94 <__swbuf_r+0x9c>) + 8009f6a: 429c cmp r4, r3 + 8009f6c: d101 bne.n 8009f72 <__swbuf_r+0x7a> + 8009f6e: 68ac ldr r4, [r5, #8] + 8009f70: e7cf b.n 8009f12 <__swbuf_r+0x1a> + 8009f72: 4b09 ldr r3, [pc, #36] ; (8009f98 <__swbuf_r+0xa0>) + 8009f74: 429c cmp r4, r3 + 8009f76: bf08 it eq + 8009f78: 68ec ldreq r4, [r5, #12] + 8009f7a: e7ca b.n 8009f12 <__swbuf_r+0x1a> + 8009f7c: 4621 mov r1, r4 + 8009f7e: 4628 mov r0, r5 + 8009f80: f000 f81e bl 8009fc0 <__swsetup_r> + 8009f84: 2800 cmp r0, #0 + 8009f86: d0cb beq.n 8009f20 <__swbuf_r+0x28> + 8009f88: f04f 37ff mov.w r7, #4294967295 + 8009f8c: e7ea b.n 8009f64 <__swbuf_r+0x6c> + 8009f8e: bf00 nop + 8009f90: 0800c718 .word 0x0800c718 + 8009f94: 0800c738 .word 0x0800c738 + 8009f98: 0800c6f8 .word 0x0800c6f8 + +08009f9c <_write_r>: + 8009f9c: b538 push {r3, r4, r5, lr} + 8009f9e: 4d07 ldr r5, [pc, #28] ; (8009fbc <_write_r+0x20>) + 8009fa0: 4604 mov r4, r0 + 8009fa2: 4608 mov r0, r1 + 8009fa4: 4611 mov r1, r2 + 8009fa6: 2200 movs r2, #0 + 8009fa8: 602a str r2, [r5, #0] + 8009faa: 461a mov r2, r3 + 8009fac: f000 fa92 bl 800a4d4 <_write> + 8009fb0: 1c43 adds r3, r0, #1 + 8009fb2: d102 bne.n 8009fba <_write_r+0x1e> + 8009fb4: 682b ldr r3, [r5, #0] + 8009fb6: b103 cbz r3, 8009fba <_write_r+0x1e> + 8009fb8: 6023 str r3, [r4, #0] + 8009fba: bd38 pop {r3, r4, r5, pc} + 8009fbc: 2000844c .word 0x2000844c + +08009fc0 <__swsetup_r>: + 8009fc0: 4b32 ldr r3, [pc, #200] ; (800a08c <__swsetup_r+0xcc>) + 8009fc2: b570 push {r4, r5, r6, lr} + 8009fc4: 681d ldr r5, [r3, #0] + 8009fc6: 4606 mov r6, r0 + 8009fc8: 460c mov r4, r1 + 8009fca: b125 cbz r5, 8009fd6 <__swsetup_r+0x16> + 8009fcc: 69ab ldr r3, [r5, #24] + 8009fce: b913 cbnz r3, 8009fd6 <__swsetup_r+0x16> + 8009fd0: 4628 mov r0, r5 + 8009fd2: f7ff fab5 bl 8009540 <__sinit> + 8009fd6: 4b2e ldr r3, [pc, #184] ; (800a090 <__swsetup_r+0xd0>) + 8009fd8: 429c cmp r4, r3 + 8009fda: d10f bne.n 8009ffc <__swsetup_r+0x3c> + 8009fdc: 686c ldr r4, [r5, #4] + 8009fde: 89a3 ldrh r3, [r4, #12] + 8009fe0: f9b4 200c ldrsh.w r2, [r4, #12] + 8009fe4: 0719 lsls r1, r3, #28 + 8009fe6: d42c bmi.n 800a042 <__swsetup_r+0x82> + 8009fe8: 06dd lsls r5, r3, #27 + 8009fea: d411 bmi.n 800a010 <__swsetup_r+0x50> + 8009fec: 2309 movs r3, #9 + 8009fee: 6033 str r3, [r6, #0] + 8009ff0: f042 0340 orr.w r3, r2, #64 ; 0x40 + 8009ff4: 81a3 strh r3, [r4, #12] + 8009ff6: f04f 30ff mov.w r0, #4294967295 + 8009ffa: e03e b.n 800a07a <__swsetup_r+0xba> + 8009ffc: 4b25 ldr r3, [pc, #148] ; (800a094 <__swsetup_r+0xd4>) + 8009ffe: 429c cmp r4, r3 + 800a000: d101 bne.n 800a006 <__swsetup_r+0x46> + 800a002: 68ac ldr r4, [r5, #8] + 800a004: e7eb b.n 8009fde <__swsetup_r+0x1e> + 800a006: 4b24 ldr r3, [pc, #144] ; (800a098 <__swsetup_r+0xd8>) + 800a008: 429c cmp r4, r3 + 800a00a: bf08 it eq + 800a00c: 68ec ldreq r4, [r5, #12] + 800a00e: e7e6 b.n 8009fde <__swsetup_r+0x1e> + 800a010: 0758 lsls r0, r3, #29 + 800a012: d512 bpl.n 800a03a <__swsetup_r+0x7a> + 800a014: 6b61 ldr r1, [r4, #52] ; 0x34 + 800a016: b141 cbz r1, 800a02a <__swsetup_r+0x6a> + 800a018: f104 0344 add.w r3, r4, #68 ; 0x44 + 800a01c: 4299 cmp r1, r3 + 800a01e: d002 beq.n 800a026 <__swsetup_r+0x66> + 800a020: 4630 mov r0, r6 + 800a022: f7ff fb47 bl 80096b4 <_free_r> + 800a026: 2300 movs r3, #0 + 800a028: 6363 str r3, [r4, #52] ; 0x34 + 800a02a: 89a3 ldrh r3, [r4, #12] + 800a02c: f023 0324 bic.w r3, r3, #36 ; 0x24 + 800a030: 81a3 strh r3, [r4, #12] + 800a032: 2300 movs r3, #0 + 800a034: 6063 str r3, [r4, #4] + 800a036: 6923 ldr r3, [r4, #16] + 800a038: 6023 str r3, [r4, #0] + 800a03a: 89a3 ldrh r3, [r4, #12] + 800a03c: f043 0308 orr.w r3, r3, #8 + 800a040: 81a3 strh r3, [r4, #12] + 800a042: 6923 ldr r3, [r4, #16] + 800a044: b94b cbnz r3, 800a05a <__swsetup_r+0x9a> + 800a046: 89a3 ldrh r3, [r4, #12] + 800a048: f403 7320 and.w r3, r3, #640 ; 0x280 + 800a04c: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 800a050: d003 beq.n 800a05a <__swsetup_r+0x9a> + 800a052: 4621 mov r1, r4 + 800a054: 4630 mov r0, r6 + 800a056: f000 f933 bl 800a2c0 <__smakebuf_r> + 800a05a: 89a0 ldrh r0, [r4, #12] + 800a05c: f9b4 200c ldrsh.w r2, [r4, #12] + 800a060: f010 0301 ands.w r3, r0, #1 + 800a064: d00a beq.n 800a07c <__swsetup_r+0xbc> + 800a066: 2300 movs r3, #0 + 800a068: 60a3 str r3, [r4, #8] + 800a06a: 6963 ldr r3, [r4, #20] + 800a06c: 425b negs r3, r3 + 800a06e: 61a3 str r3, [r4, #24] + 800a070: 6923 ldr r3, [r4, #16] + 800a072: b943 cbnz r3, 800a086 <__swsetup_r+0xc6> + 800a074: f010 0080 ands.w r0, r0, #128 ; 0x80 + 800a078: d1ba bne.n 8009ff0 <__swsetup_r+0x30> + 800a07a: bd70 pop {r4, r5, r6, pc} + 800a07c: 0781 lsls r1, r0, #30 + 800a07e: bf58 it pl + 800a080: 6963 ldrpl r3, [r4, #20] + 800a082: 60a3 str r3, [r4, #8] + 800a084: e7f4 b.n 800a070 <__swsetup_r+0xb0> + 800a086: 2000 movs r0, #0 + 800a088: e7f7 b.n 800a07a <__swsetup_r+0xba> + 800a08a: bf00 nop + 800a08c: 20000028 .word 0x20000028 + 800a090: 0800c718 .word 0x0800c718 + 800a094: 0800c738 .word 0x0800c738 + 800a098: 0800c6f8 .word 0x0800c6f8 + +0800a09c : + 800a09c: b508 push {r3, lr} + 800a09e: 2006 movs r0, #6 + 800a0a0: f000 f994 bl 800a3cc + 800a0a4: 2001 movs r0, #1 + 800a0a6: f000 fa1d bl 800a4e4 <_exit> + ... + +0800a0ac <_close_r>: + 800a0ac: b538 push {r3, r4, r5, lr} + 800a0ae: 4d06 ldr r5, [pc, #24] ; (800a0c8 <_close_r+0x1c>) + 800a0b0: 2300 movs r3, #0 + 800a0b2: 4604 mov r4, r0 + 800a0b4: 4608 mov r0, r1 + 800a0b6: 602b str r3, [r5, #0] + 800a0b8: f000 f9c6 bl 800a448 <_close> + 800a0bc: 1c43 adds r3, r0, #1 + 800a0be: d102 bne.n 800a0c6 <_close_r+0x1a> + 800a0c0: 682b ldr r3, [r5, #0] + 800a0c2: b103 cbz r3, 800a0c6 <_close_r+0x1a> + 800a0c4: 6023 str r3, [r4, #0] + 800a0c6: bd38 pop {r3, r4, r5, pc} + 800a0c8: 2000844c .word 0x2000844c + +0800a0cc <__sflush_r>: + 800a0cc: 898a ldrh r2, [r1, #12] + 800a0ce: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 800a0d2: 4605 mov r5, r0 + 800a0d4: 0710 lsls r0, r2, #28 + 800a0d6: 460c mov r4, r1 + 800a0d8: d458 bmi.n 800a18c <__sflush_r+0xc0> + 800a0da: 684b ldr r3, [r1, #4] + 800a0dc: 2b00 cmp r3, #0 + 800a0de: dc05 bgt.n 800a0ec <__sflush_r+0x20> + 800a0e0: 6c0b ldr r3, [r1, #64] ; 0x40 + 800a0e2: 2b00 cmp r3, #0 + 800a0e4: dc02 bgt.n 800a0ec <__sflush_r+0x20> + 800a0e6: 2000 movs r0, #0 + 800a0e8: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800a0ec: 6ae6 ldr r6, [r4, #44] ; 0x2c + 800a0ee: 2e00 cmp r6, #0 + 800a0f0: d0f9 beq.n 800a0e6 <__sflush_r+0x1a> + 800a0f2: 2300 movs r3, #0 + 800a0f4: f412 5280 ands.w r2, r2, #4096 ; 0x1000 + 800a0f8: 682f ldr r7, [r5, #0] + 800a0fa: 602b str r3, [r5, #0] + 800a0fc: d032 beq.n 800a164 <__sflush_r+0x98> + 800a0fe: 6d60 ldr r0, [r4, #84] ; 0x54 + 800a100: 89a3 ldrh r3, [r4, #12] + 800a102: 075a lsls r2, r3, #29 + 800a104: d505 bpl.n 800a112 <__sflush_r+0x46> + 800a106: 6863 ldr r3, [r4, #4] + 800a108: 1ac0 subs r0, r0, r3 + 800a10a: 6b63 ldr r3, [r4, #52] ; 0x34 + 800a10c: b10b cbz r3, 800a112 <__sflush_r+0x46> + 800a10e: 6c23 ldr r3, [r4, #64] ; 0x40 + 800a110: 1ac0 subs r0, r0, r3 + 800a112: 2300 movs r3, #0 + 800a114: 4602 mov r2, r0 + 800a116: 6ae6 ldr r6, [r4, #44] ; 0x2c + 800a118: 6a21 ldr r1, [r4, #32] + 800a11a: 4628 mov r0, r5 + 800a11c: 47b0 blx r6 + 800a11e: 1c43 adds r3, r0, #1 + 800a120: 89a3 ldrh r3, [r4, #12] + 800a122: d106 bne.n 800a132 <__sflush_r+0x66> + 800a124: 6829 ldr r1, [r5, #0] + 800a126: 291d cmp r1, #29 + 800a128: d82c bhi.n 800a184 <__sflush_r+0xb8> + 800a12a: 4a2a ldr r2, [pc, #168] ; (800a1d4 <__sflush_r+0x108>) + 800a12c: 40ca lsrs r2, r1 + 800a12e: 07d6 lsls r6, r2, #31 + 800a130: d528 bpl.n 800a184 <__sflush_r+0xb8> + 800a132: 2200 movs r2, #0 + 800a134: 6062 str r2, [r4, #4] + 800a136: 04d9 lsls r1, r3, #19 + 800a138: 6922 ldr r2, [r4, #16] + 800a13a: 6022 str r2, [r4, #0] + 800a13c: d504 bpl.n 800a148 <__sflush_r+0x7c> + 800a13e: 1c42 adds r2, r0, #1 + 800a140: d101 bne.n 800a146 <__sflush_r+0x7a> + 800a142: 682b ldr r3, [r5, #0] + 800a144: b903 cbnz r3, 800a148 <__sflush_r+0x7c> + 800a146: 6560 str r0, [r4, #84] ; 0x54 + 800a148: 6b61 ldr r1, [r4, #52] ; 0x34 + 800a14a: 602f str r7, [r5, #0] + 800a14c: 2900 cmp r1, #0 + 800a14e: d0ca beq.n 800a0e6 <__sflush_r+0x1a> + 800a150: f104 0344 add.w r3, r4, #68 ; 0x44 + 800a154: 4299 cmp r1, r3 + 800a156: d002 beq.n 800a15e <__sflush_r+0x92> + 800a158: 4628 mov r0, r5 + 800a15a: f7ff faab bl 80096b4 <_free_r> + 800a15e: 2000 movs r0, #0 + 800a160: 6360 str r0, [r4, #52] ; 0x34 + 800a162: e7c1 b.n 800a0e8 <__sflush_r+0x1c> + 800a164: 6a21 ldr r1, [r4, #32] + 800a166: 2301 movs r3, #1 + 800a168: 4628 mov r0, r5 + 800a16a: 47b0 blx r6 + 800a16c: 1c41 adds r1, r0, #1 + 800a16e: d1c7 bne.n 800a100 <__sflush_r+0x34> + 800a170: 682b ldr r3, [r5, #0] + 800a172: 2b00 cmp r3, #0 + 800a174: d0c4 beq.n 800a100 <__sflush_r+0x34> + 800a176: 2b1d cmp r3, #29 + 800a178: d001 beq.n 800a17e <__sflush_r+0xb2> + 800a17a: 2b16 cmp r3, #22 + 800a17c: d101 bne.n 800a182 <__sflush_r+0xb6> + 800a17e: 602f str r7, [r5, #0] + 800a180: e7b1 b.n 800a0e6 <__sflush_r+0x1a> + 800a182: 89a3 ldrh r3, [r4, #12] + 800a184: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800a188: 81a3 strh r3, [r4, #12] + 800a18a: e7ad b.n 800a0e8 <__sflush_r+0x1c> + 800a18c: 690f ldr r7, [r1, #16] + 800a18e: 2f00 cmp r7, #0 + 800a190: d0a9 beq.n 800a0e6 <__sflush_r+0x1a> + 800a192: 0793 lsls r3, r2, #30 + 800a194: 680e ldr r6, [r1, #0] + 800a196: bf08 it eq + 800a198: 694b ldreq r3, [r1, #20] + 800a19a: 600f str r7, [r1, #0] + 800a19c: bf18 it ne + 800a19e: 2300 movne r3, #0 + 800a1a0: eba6 0807 sub.w r8, r6, r7 + 800a1a4: 608b str r3, [r1, #8] + 800a1a6: f1b8 0f00 cmp.w r8, #0 + 800a1aa: dd9c ble.n 800a0e6 <__sflush_r+0x1a> + 800a1ac: 6a21 ldr r1, [r4, #32] + 800a1ae: 6aa6 ldr r6, [r4, #40] ; 0x28 + 800a1b0: 4643 mov r3, r8 + 800a1b2: 463a mov r2, r7 + 800a1b4: 4628 mov r0, r5 + 800a1b6: 47b0 blx r6 + 800a1b8: 2800 cmp r0, #0 + 800a1ba: dc06 bgt.n 800a1ca <__sflush_r+0xfe> + 800a1bc: 89a3 ldrh r3, [r4, #12] + 800a1be: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800a1c2: 81a3 strh r3, [r4, #12] + 800a1c4: f04f 30ff mov.w r0, #4294967295 + 800a1c8: e78e b.n 800a0e8 <__sflush_r+0x1c> + 800a1ca: 4407 add r7, r0 + 800a1cc: eba8 0800 sub.w r8, r8, r0 + 800a1d0: e7e9 b.n 800a1a6 <__sflush_r+0xda> + 800a1d2: bf00 nop + 800a1d4: 20400001 .word 0x20400001 + +0800a1d8 <_fflush_r>: + 800a1d8: b538 push {r3, r4, r5, lr} + 800a1da: 690b ldr r3, [r1, #16] + 800a1dc: 4605 mov r5, r0 + 800a1de: 460c mov r4, r1 + 800a1e0: b913 cbnz r3, 800a1e8 <_fflush_r+0x10> + 800a1e2: 2500 movs r5, #0 + 800a1e4: 4628 mov r0, r5 + 800a1e6: bd38 pop {r3, r4, r5, pc} + 800a1e8: b118 cbz r0, 800a1f2 <_fflush_r+0x1a> + 800a1ea: 6983 ldr r3, [r0, #24] + 800a1ec: b90b cbnz r3, 800a1f2 <_fflush_r+0x1a> + 800a1ee: f7ff f9a7 bl 8009540 <__sinit> + 800a1f2: 4b14 ldr r3, [pc, #80] ; (800a244 <_fflush_r+0x6c>) + 800a1f4: 429c cmp r4, r3 + 800a1f6: d11b bne.n 800a230 <_fflush_r+0x58> + 800a1f8: 686c ldr r4, [r5, #4] + 800a1fa: f9b4 300c ldrsh.w r3, [r4, #12] + 800a1fe: 2b00 cmp r3, #0 + 800a200: d0ef beq.n 800a1e2 <_fflush_r+0xa> + 800a202: 6e62 ldr r2, [r4, #100] ; 0x64 + 800a204: 07d0 lsls r0, r2, #31 + 800a206: d404 bmi.n 800a212 <_fflush_r+0x3a> + 800a208: 0599 lsls r1, r3, #22 + 800a20a: d402 bmi.n 800a212 <_fflush_r+0x3a> + 800a20c: 6da0 ldr r0, [r4, #88] ; 0x58 + 800a20e: f7ff fa47 bl 80096a0 <__retarget_lock_acquire_recursive> + 800a212: 4628 mov r0, r5 + 800a214: 4621 mov r1, r4 + 800a216: f7ff ff59 bl 800a0cc <__sflush_r> + 800a21a: 6e63 ldr r3, [r4, #100] ; 0x64 + 800a21c: 07da lsls r2, r3, #31 + 800a21e: 4605 mov r5, r0 + 800a220: d4e0 bmi.n 800a1e4 <_fflush_r+0xc> + 800a222: 89a3 ldrh r3, [r4, #12] + 800a224: 059b lsls r3, r3, #22 + 800a226: d4dd bmi.n 800a1e4 <_fflush_r+0xc> + 800a228: 6da0 ldr r0, [r4, #88] ; 0x58 + 800a22a: f7ff fa3a bl 80096a2 <__retarget_lock_release_recursive> + 800a22e: e7d9 b.n 800a1e4 <_fflush_r+0xc> + 800a230: 4b05 ldr r3, [pc, #20] ; (800a248 <_fflush_r+0x70>) + 800a232: 429c cmp r4, r3 + 800a234: d101 bne.n 800a23a <_fflush_r+0x62> + 800a236: 68ac ldr r4, [r5, #8] + 800a238: e7df b.n 800a1fa <_fflush_r+0x22> + 800a23a: 4b04 ldr r3, [pc, #16] ; (800a24c <_fflush_r+0x74>) + 800a23c: 429c cmp r4, r3 + 800a23e: bf08 it eq + 800a240: 68ec ldreq r4, [r5, #12] + 800a242: e7da b.n 800a1fa <_fflush_r+0x22> + 800a244: 0800c718 .word 0x0800c718 + 800a248: 0800c738 .word 0x0800c738 + 800a24c: 0800c6f8 .word 0x0800c6f8 + +0800a250 <_lseek_r>: + 800a250: b538 push {r3, r4, r5, lr} + 800a252: 4d07 ldr r5, [pc, #28] ; (800a270 <_lseek_r+0x20>) + 800a254: 4604 mov r4, r0 + 800a256: 4608 mov r0, r1 + 800a258: 4611 mov r1, r2 + 800a25a: 2200 movs r2, #0 + 800a25c: 602a str r2, [r5, #0] + 800a25e: 461a mov r2, r3 + 800a260: f000 f91a bl 800a498 <_lseek> + 800a264: 1c43 adds r3, r0, #1 + 800a266: d102 bne.n 800a26e <_lseek_r+0x1e> + 800a268: 682b ldr r3, [r5, #0] + 800a26a: b103 cbz r3, 800a26e <_lseek_r+0x1e> + 800a26c: 6023 str r3, [r4, #0] + 800a26e: bd38 pop {r3, r4, r5, pc} + 800a270: 2000844c .word 0x2000844c + +0800a274 <__swhatbuf_r>: + 800a274: b570 push {r4, r5, r6, lr} + 800a276: 460e mov r6, r1 + 800a278: f9b1 100e ldrsh.w r1, [r1, #14] + 800a27c: 2900 cmp r1, #0 + 800a27e: b096 sub sp, #88 ; 0x58 + 800a280: 4614 mov r4, r2 + 800a282: 461d mov r5, r3 + 800a284: da08 bge.n 800a298 <__swhatbuf_r+0x24> + 800a286: f9b6 300c ldrsh.w r3, [r6, #12] + 800a28a: 2200 movs r2, #0 + 800a28c: 602a str r2, [r5, #0] + 800a28e: 061a lsls r2, r3, #24 + 800a290: d410 bmi.n 800a2b4 <__swhatbuf_r+0x40> + 800a292: f44f 6380 mov.w r3, #1024 ; 0x400 + 800a296: e00e b.n 800a2b6 <__swhatbuf_r+0x42> + 800a298: 466a mov r2, sp + 800a29a: f000 f8b3 bl 800a404 <_fstat_r> + 800a29e: 2800 cmp r0, #0 + 800a2a0: dbf1 blt.n 800a286 <__swhatbuf_r+0x12> + 800a2a2: 9a01 ldr r2, [sp, #4] + 800a2a4: f402 4270 and.w r2, r2, #61440 ; 0xf000 + 800a2a8: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 + 800a2ac: 425a negs r2, r3 + 800a2ae: 415a adcs r2, r3 + 800a2b0: 602a str r2, [r5, #0] + 800a2b2: e7ee b.n 800a292 <__swhatbuf_r+0x1e> + 800a2b4: 2340 movs r3, #64 ; 0x40 + 800a2b6: 2000 movs r0, #0 + 800a2b8: 6023 str r3, [r4, #0] + 800a2ba: b016 add sp, #88 ; 0x58 + 800a2bc: bd70 pop {r4, r5, r6, pc} + ... + +0800a2c0 <__smakebuf_r>: + 800a2c0: 898b ldrh r3, [r1, #12] + 800a2c2: b573 push {r0, r1, r4, r5, r6, lr} + 800a2c4: 079d lsls r5, r3, #30 + 800a2c6: 4606 mov r6, r0 + 800a2c8: 460c mov r4, r1 + 800a2ca: d507 bpl.n 800a2dc <__smakebuf_r+0x1c> + 800a2cc: f104 0347 add.w r3, r4, #71 ; 0x47 + 800a2d0: 6023 str r3, [r4, #0] + 800a2d2: 6123 str r3, [r4, #16] + 800a2d4: 2301 movs r3, #1 + 800a2d6: 6163 str r3, [r4, #20] + 800a2d8: b002 add sp, #8 + 800a2da: bd70 pop {r4, r5, r6, pc} + 800a2dc: ab01 add r3, sp, #4 + 800a2de: 466a mov r2, sp + 800a2e0: f7ff ffc8 bl 800a274 <__swhatbuf_r> + 800a2e4: 9900 ldr r1, [sp, #0] + 800a2e6: 4605 mov r5, r0 + 800a2e8: 4630 mov r0, r6 + 800a2ea: f7ff fa4f bl 800978c <_malloc_r> + 800a2ee: b948 cbnz r0, 800a304 <__smakebuf_r+0x44> + 800a2f0: f9b4 300c ldrsh.w r3, [r4, #12] + 800a2f4: 059a lsls r2, r3, #22 + 800a2f6: d4ef bmi.n 800a2d8 <__smakebuf_r+0x18> + 800a2f8: f023 0303 bic.w r3, r3, #3 + 800a2fc: f043 0302 orr.w r3, r3, #2 + 800a300: 81a3 strh r3, [r4, #12] + 800a302: e7e3 b.n 800a2cc <__smakebuf_r+0xc> + 800a304: 4b0d ldr r3, [pc, #52] ; (800a33c <__smakebuf_r+0x7c>) + 800a306: 62b3 str r3, [r6, #40] ; 0x28 + 800a308: 89a3 ldrh r3, [r4, #12] + 800a30a: 6020 str r0, [r4, #0] + 800a30c: f043 0380 orr.w r3, r3, #128 ; 0x80 + 800a310: 81a3 strh r3, [r4, #12] + 800a312: 9b00 ldr r3, [sp, #0] + 800a314: 6163 str r3, [r4, #20] + 800a316: 9b01 ldr r3, [sp, #4] + 800a318: 6120 str r0, [r4, #16] + 800a31a: b15b cbz r3, 800a334 <__smakebuf_r+0x74> + 800a31c: f9b4 100e ldrsh.w r1, [r4, #14] + 800a320: 4630 mov r0, r6 + 800a322: f000 f881 bl 800a428 <_isatty_r> + 800a326: b128 cbz r0, 800a334 <__smakebuf_r+0x74> + 800a328: 89a3 ldrh r3, [r4, #12] + 800a32a: f023 0303 bic.w r3, r3, #3 + 800a32e: f043 0301 orr.w r3, r3, #1 + 800a332: 81a3 strh r3, [r4, #12] + 800a334: 89a0 ldrh r0, [r4, #12] + 800a336: 4305 orrs r5, r0 + 800a338: 81a5 strh r5, [r4, #12] + 800a33a: e7cd b.n 800a2d8 <__smakebuf_r+0x18> + 800a33c: 080094d9 .word 0x080094d9 + +0800a340 <__malloc_lock>: + 800a340: 4801 ldr r0, [pc, #4] ; (800a348 <__malloc_lock+0x8>) + 800a342: f7ff b9ad b.w 80096a0 <__retarget_lock_acquire_recursive> + 800a346: bf00 nop + 800a348: 20008440 .word 0x20008440 + +0800a34c <__malloc_unlock>: + 800a34c: 4801 ldr r0, [pc, #4] ; (800a354 <__malloc_unlock+0x8>) + 800a34e: f7ff b9a8 b.w 80096a2 <__retarget_lock_release_recursive> + 800a352: bf00 nop + 800a354: 20008440 .word 0x20008440 + +0800a358 <_read_r>: + 800a358: b538 push {r3, r4, r5, lr} + 800a35a: 4d07 ldr r5, [pc, #28] ; (800a378 <_read_r+0x20>) + 800a35c: 4604 mov r4, r0 + 800a35e: 4608 mov r0, r1 + 800a360: 4611 mov r1, r2 + 800a362: 2200 movs r2, #0 + 800a364: 602a str r2, [r5, #0] + 800a366: 461a mov r2, r3 + 800a368: f000 f89e bl 800a4a8 <_read> + 800a36c: 1c43 adds r3, r0, #1 + 800a36e: d102 bne.n 800a376 <_read_r+0x1e> + 800a370: 682b ldr r3, [r5, #0] + 800a372: b103 cbz r3, 800a376 <_read_r+0x1e> + 800a374: 6023 str r3, [r4, #0] + 800a376: bd38 pop {r3, r4, r5, pc} + 800a378: 2000844c .word 0x2000844c + +0800a37c <_raise_r>: + 800a37c: 291f cmp r1, #31 + 800a37e: b538 push {r3, r4, r5, lr} + 800a380: 4604 mov r4, r0 + 800a382: 460d mov r5, r1 + 800a384: d904 bls.n 800a390 <_raise_r+0x14> + 800a386: 2316 movs r3, #22 + 800a388: 6003 str r3, [r0, #0] + 800a38a: f04f 30ff mov.w r0, #4294967295 + 800a38e: bd38 pop {r3, r4, r5, pc} + 800a390: 6c42 ldr r2, [r0, #68] ; 0x44 + 800a392: b112 cbz r2, 800a39a <_raise_r+0x1e> + 800a394: f852 3021 ldr.w r3, [r2, r1, lsl #2] + 800a398: b94b cbnz r3, 800a3ae <_raise_r+0x32> + 800a39a: 4620 mov r0, r4 + 800a39c: f000 f830 bl 800a400 <_getpid_r> + 800a3a0: 462a mov r2, r5 + 800a3a2: 4601 mov r1, r0 + 800a3a4: 4620 mov r0, r4 + 800a3a6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 800a3aa: f000 b817 b.w 800a3dc <_kill_r> + 800a3ae: 2b01 cmp r3, #1 + 800a3b0: d00a beq.n 800a3c8 <_raise_r+0x4c> + 800a3b2: 1c59 adds r1, r3, #1 + 800a3b4: d103 bne.n 800a3be <_raise_r+0x42> + 800a3b6: 2316 movs r3, #22 + 800a3b8: 6003 str r3, [r0, #0] + 800a3ba: 2001 movs r0, #1 + 800a3bc: e7e7 b.n 800a38e <_raise_r+0x12> + 800a3be: 2400 movs r4, #0 + 800a3c0: f842 4025 str.w r4, [r2, r5, lsl #2] + 800a3c4: 4628 mov r0, r5 + 800a3c6: 4798 blx r3 + 800a3c8: 2000 movs r0, #0 + 800a3ca: e7e0 b.n 800a38e <_raise_r+0x12> + +0800a3cc : + 800a3cc: 4b02 ldr r3, [pc, #8] ; (800a3d8 ) + 800a3ce: 4601 mov r1, r0 + 800a3d0: 6818 ldr r0, [r3, #0] + 800a3d2: f7ff bfd3 b.w 800a37c <_raise_r> + 800a3d6: bf00 nop + 800a3d8: 20000028 .word 0x20000028 + +0800a3dc <_kill_r>: + 800a3dc: b538 push {r3, r4, r5, lr} + 800a3de: 4d07 ldr r5, [pc, #28] ; (800a3fc <_kill_r+0x20>) + 800a3e0: 2300 movs r3, #0 + 800a3e2: 4604 mov r4, r0 + 800a3e4: 4608 mov r0, r1 + 800a3e6: 4611 mov r1, r2 + 800a3e8: 602b str r3, [r5, #0] + 800a3ea: f000 f84d bl 800a488 <_kill> + 800a3ee: 1c43 adds r3, r0, #1 + 800a3f0: d102 bne.n 800a3f8 <_kill_r+0x1c> + 800a3f2: 682b ldr r3, [r5, #0] + 800a3f4: b103 cbz r3, 800a3f8 <_kill_r+0x1c> + 800a3f6: 6023 str r3, [r4, #0] + 800a3f8: bd38 pop {r3, r4, r5, pc} + 800a3fa: bf00 nop + 800a3fc: 2000844c .word 0x2000844c + +0800a400 <_getpid_r>: + 800a400: f000 b832 b.w 800a468 <_getpid> + +0800a404 <_fstat_r>: + 800a404: b538 push {r3, r4, r5, lr} + 800a406: 4d07 ldr r5, [pc, #28] ; (800a424 <_fstat_r+0x20>) + 800a408: 2300 movs r3, #0 + 800a40a: 4604 mov r4, r0 + 800a40c: 4608 mov r0, r1 + 800a40e: 4611 mov r1, r2 + 800a410: 602b str r3, [r5, #0] + 800a412: f000 f821 bl 800a458 <_fstat> + 800a416: 1c43 adds r3, r0, #1 + 800a418: d102 bne.n 800a420 <_fstat_r+0x1c> + 800a41a: 682b ldr r3, [r5, #0] + 800a41c: b103 cbz r3, 800a420 <_fstat_r+0x1c> + 800a41e: 6023 str r3, [r4, #0] + 800a420: bd38 pop {r3, r4, r5, pc} + 800a422: bf00 nop + 800a424: 2000844c .word 0x2000844c + +0800a428 <_isatty_r>: + 800a428: b538 push {r3, r4, r5, lr} + 800a42a: 4d06 ldr r5, [pc, #24] ; (800a444 <_isatty_r+0x1c>) + 800a42c: 2300 movs r3, #0 + 800a42e: 4604 mov r4, r0 + 800a430: 4608 mov r0, r1 + 800a432: 602b str r3, [r5, #0] + 800a434: f000 f820 bl 800a478 <_isatty> + 800a438: 1c43 adds r3, r0, #1 + 800a43a: d102 bne.n 800a442 <_isatty_r+0x1a> + 800a43c: 682b ldr r3, [r5, #0] + 800a43e: b103 cbz r3, 800a442 <_isatty_r+0x1a> + 800a440: 6023 str r3, [r4, #0] + 800a442: bd38 pop {r3, r4, r5, pc} + 800a444: 2000844c .word 0x2000844c + +0800a448 <_close>: + 800a448: 4b02 ldr r3, [pc, #8] ; (800a454 <_close+0xc>) + 800a44a: 2258 movs r2, #88 ; 0x58 + 800a44c: 601a str r2, [r3, #0] + 800a44e: f04f 30ff mov.w r0, #4294967295 + 800a452: 4770 bx lr + 800a454: 2000844c .word 0x2000844c + +0800a458 <_fstat>: + 800a458: 4b02 ldr r3, [pc, #8] ; (800a464 <_fstat+0xc>) + 800a45a: 2258 movs r2, #88 ; 0x58 + 800a45c: 601a str r2, [r3, #0] + 800a45e: f04f 30ff mov.w r0, #4294967295 + 800a462: 4770 bx lr + 800a464: 2000844c .word 0x2000844c + +0800a468 <_getpid>: + 800a468: 4b02 ldr r3, [pc, #8] ; (800a474 <_getpid+0xc>) + 800a46a: 2258 movs r2, #88 ; 0x58 + 800a46c: 601a str r2, [r3, #0] + 800a46e: f04f 30ff mov.w r0, #4294967295 + 800a472: 4770 bx lr + 800a474: 2000844c .word 0x2000844c + +0800a478 <_isatty>: + 800a478: 4b02 ldr r3, [pc, #8] ; (800a484 <_isatty+0xc>) + 800a47a: 2258 movs r2, #88 ; 0x58 + 800a47c: 601a str r2, [r3, #0] + 800a47e: 2000 movs r0, #0 + 800a480: 4770 bx lr + 800a482: bf00 nop + 800a484: 2000844c .word 0x2000844c + +0800a488 <_kill>: + 800a488: 4b02 ldr r3, [pc, #8] ; (800a494 <_kill+0xc>) + 800a48a: 2258 movs r2, #88 ; 0x58 + 800a48c: 601a str r2, [r3, #0] + 800a48e: f04f 30ff mov.w r0, #4294967295 + 800a492: 4770 bx lr + 800a494: 2000844c .word 0x2000844c + +0800a498 <_lseek>: + 800a498: 4b02 ldr r3, [pc, #8] ; (800a4a4 <_lseek+0xc>) + 800a49a: 2258 movs r2, #88 ; 0x58 + 800a49c: 601a str r2, [r3, #0] + 800a49e: f04f 30ff mov.w r0, #4294967295 + 800a4a2: 4770 bx lr + 800a4a4: 2000844c .word 0x2000844c + +0800a4a8 <_read>: + 800a4a8: 4b02 ldr r3, [pc, #8] ; (800a4b4 <_read+0xc>) + 800a4aa: 2258 movs r2, #88 ; 0x58 + 800a4ac: 601a str r2, [r3, #0] + 800a4ae: f04f 30ff mov.w r0, #4294967295 + 800a4b2: 4770 bx lr + 800a4b4: 2000844c .word 0x2000844c + +0800a4b8 <_sbrk>: + 800a4b8: 4a04 ldr r2, [pc, #16] ; (800a4cc <_sbrk+0x14>) + 800a4ba: 6811 ldr r1, [r2, #0] + 800a4bc: 4603 mov r3, r0 + 800a4be: b909 cbnz r1, 800a4c4 <_sbrk+0xc> + 800a4c0: 4903 ldr r1, [pc, #12] ; (800a4d0 <_sbrk+0x18>) + 800a4c2: 6011 str r1, [r2, #0] + 800a4c4: 6810 ldr r0, [r2, #0] + 800a4c6: 4403 add r3, r0 + 800a4c8: 6013 str r3, [r2, #0] + 800a4ca: 4770 bx lr + 800a4cc: 20008450 .word 0x20008450 + 800a4d0: 20008458 .word 0x20008458 + +0800a4d4 <_write>: + 800a4d4: 4b02 ldr r3, [pc, #8] ; (800a4e0 <_write+0xc>) + 800a4d6: 2258 movs r2, #88 ; 0x58 + 800a4d8: 601a str r2, [r3, #0] + 800a4da: f04f 30ff mov.w r0, #4294967295 + 800a4de: 4770 bx lr + 800a4e0: 2000844c .word 0x2000844c + +0800a4e4 <_exit>: + 800a4e4: e7fe b.n 800a4e4 <_exit> + ... + +0800a4e8 <_init>: + 800a4e8: b5f8 push {r3, r4, r5, r6, r7, lr} + 800a4ea: bf00 nop + 800a4ec: bcf8 pop {r3, r4, r5, r6, r7} + 800a4ee: bc08 pop {r3} + 800a4f0: 469e mov lr, r3 + 800a4f2: 4770 bx lr + +0800a4f4 <_fini>: + 800a4f4: b5f8 push {r3, r4, r5, r6, r7, lr} + 800a4f6: bf00 nop + 800a4f8: bcf8 pop {r3, r4, r5, r6, r7} + 800a4fa: bc08 pop {r3} + 800a4fc: 469e mov lr, r3 + 800a4fe: 4770 bx lr diff --git a/yau-07b Debug.launch b/yau-07b Debug.launch index 1faa555..a3581a5 100644 --- a/yau-07b Debug.launch +++ b/yau-07b Debug.launch @@ -63,7 +63,7 @@ - + diff --git a/yau-07b.ioc b/yau-07b.ioc index 7bfef7e..5a45ea5 100644 --- a/yau-07b.ioc +++ b/yau-07b.ioc @@ -1,6 +1,9 @@ #MicroXplorer Configuration settings - do not modify ETH.IPParameters=MediaInterface ETH.MediaInterface=HAL_ETH_RMII_MODE +FMC.ExtendedMode1=FMC_EXTENDED_MODE_ENABLE +FMC.IPParameters=WriteOperation1,ExtendedMode1 +FMC.WriteOperation1=FMC_WRITE_OPERATION_ENABLE File.Version=6 GPIO.groupedBy=Group By Peripherals KeepUserPlacement=false @@ -199,7 +202,7 @@ ProjectManager.StackSize=0x400 ProjectManager.TargetToolchain=STM32CubeIDE ProjectManager.ToolChainLocation= ProjectManager.UnderRoot=true -ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_LWIP_Init-LWIP-false-HAL-false +ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_LWIP_Init-LWIP-false-HAL-false,4-MX_FMC_Init-FMC-false-HAL-true RCC.48MHZClocksFreq_Value=50000000 RCC.AHBFreq_Value=100000000 RCC.APB1CLKDivider=RCC_HCLK_DIV4