; generated by Component: ARM Compiler 5.05 update 2 (build 169) Tool: ArmCC [4d0f38]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\..\..\..\build\demo\mico-fire_f429\obj_rvmdk\mico_system_notification.o --asm_dir=..\..\..\..\Build\demo\MICO-Fire_F429\list_RVMDK\ --list_dir=..\..\..\..\Build\demo\MICO-Fire_F429\list_RVMDK\ --depend=..\..\..\..\build\demo\mico-fire_f429\obj_rvmdk\mico_system_notification.d --cpu=Cortex-M4.fp --apcs=interwork -O0 --diag_suppress=9931,1,1293 -I..\..\..\..\Board\fire_F429 -I..\..\..\..\Demos\fire\ov2640 -I..\..\..\..\include -I..\..\..\..\libraries\utilities -I..\..\..\..\libraries\utilities\json_c -I..\..\..\..\MICO\core -I..\..\..\..\MICO\security -I..\..\..\..\MICO\system -I..\..\..\..\MICO\system\command_console -I..\..\..\..\Platform\include -I..\..\..\..\Platform\Cortex-M4 -I..\..\..\..\Platform\Cortex-M4\CMSIS -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals\Libraries\STM32F4xx_StdPeriph_Driver\inc -I..\..\..\..\Platform\MCU\STM32F4xx\peripherals\Libraries -I..\..\..\..\Platform\MCU\STM32F4xx\wlan_bus_driver -I..\..\..\..\Platform\Drivers\spi_flash -I..\..\..\..\Platform\Drivers -I..\..\..\..\libraries\daemons\homekit_server -I..\..\..\..\libraries\daemons\http_server -I..\..\..\..\Platform\Drivers\malloc -I..\..\..\..\Platform\Drivers\SDRAM -I..\..\..\..\Platform\Drivers\ov5640 -IG:\GIT_OSC\STM32_develop\F429-V2\develop\6-WIFI\STM32-WiFi\3.wifi_ov5640\Projects\STM32F429\demo\RVMDK\RTE -IC:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -IC:\Keil_v5\ARM\CMSIS\Include -IC:\Keil_v5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0 -D__UVISION_VERSION=515 -DSTM32F429xx -DUSE_STDPERIPH_DRIVER -DDEBUG -DHSE_VALUE=25000000 -DOV5640 --omf_browse=..\..\..\..\build\demo\mico-fire_f429\obj_rvmdk\mico_system_notification.crf ..\..\..\..\MICO\system\mico_system_notification.c]
                          THUMB

                          AREA ||i.ApListAdvCallback||, CODE, READONLY, ALIGN=2

                  ApListAdvCallback PROC
;;;77     
;;;78     void ApListAdvCallback(ScanResult_adv *pApAdvList)
000000  b570              PUSH     {r4-r6,lr}
;;;79     {
000002  4605              MOV      r5,r0
;;;80       _Notify_list_t *temp =  Notify_list[mico_notify_WIFI_SCAN_ADV_COMPLETED];
000004  4806              LDR      r0,|L1.32|
000006  6a84              LDR      r4,[r0,#0x28]  ; Notify_list
;;;81       if(temp == NULL)
000008  b904              CBNZ     r4,|L1.12|
                  |L1.10|
;;;82         return;
;;;83       else{
;;;84         do{
;;;85           ((mico_notify_WIFI_SCAN_ADV_COMPLETE_function)(temp->function))(pApAdvList, temp->arg);
;;;86           temp = temp->next;
;;;87         }while(temp!=NULL);
;;;88       }
;;;89     }
00000a  bd70              POP      {r4-r6,pc}
                  |L1.12|
00000c  bf00              NOP                            ;84
                  |L1.14|
00000e  4628              MOV      r0,r5                 ;85
000010  e9d42100          LDRD     r2,r1,[r4,#0]         ;85
000014  4790              BLX      r2                    ;85
000016  68a4              LDR      r4,[r4,#8]            ;86
000018  2c00              CMP      r4,#0                 ;87
00001a  d1f8              BNE      |L1.14|
00001c  bf00              NOP      
00001e  e7f4              B        |L1.10|
;;;90     
                          ENDP

                  |L1.32|
                          DCD      Notify_list

                          AREA ||i.ApListCallback||, CODE, READONLY, ALIGN=2

                  ApListCallback PROC
;;;64     
;;;65     void ApListCallback(ScanResult *pApList)
000000  b570              PUSH     {r4-r6,lr}
;;;66     {
000002  4605              MOV      r5,r0
;;;67       _Notify_list_t *temp =  Notify_list[mico_notify_WIFI_SCAN_COMPLETED];
000004  4806              LDR      r0,|L2.32|
000006  6804              LDR      r4,[r0,#0]  ; Notify_list
;;;68       if(temp == NULL)
000008  b904              CBNZ     r4,|L2.12|
                  |L2.10|
;;;69         return;
;;;70       else{
;;;71         do{
;;;72           ((mico_notify_WIFI_SCAN_COMPLETE_function)(temp->function))(pApList, temp->arg);
;;;73           temp = temp->next;
;;;74         }while(temp!=NULL);
;;;75       }
;;;76     }
00000a  bd70              POP      {r4-r6,pc}
                  |L2.12|
00000c  bf00              NOP                            ;71
                  |L2.14|
00000e  4628              MOV      r0,r5                 ;72
000010  e9d42100          LDRD     r2,r1,[r4,#0]         ;72
000014  4790              BLX      r2                    ;72
000016  68a4              LDR      r4,[r4,#8]            ;73
000018  2c00              CMP      r4,#0                 ;74
00001a  d1f8              BNE      |L2.14|
00001c  bf00              NOP      
00001e  e7f4              B        |L2.10|
;;;77     
                          ENDP

                  |L2.32|
                          DCD      Notify_list

                          AREA ||i.NetCallback||, CODE, READONLY, ALIGN=2

                  NetCallback PROC
;;;116    
;;;117    void NetCallback(IPStatusTypedef *pnet)
000000  b570              PUSH     {r4-r6,lr}
;;;118    {
000002  4605              MOV      r5,r0
;;;119      _Notify_list_t *temp =  Notify_list[mico_notify_DHCP_COMPLETED];
000004  4806              LDR      r0,|L3.32|
000006  68c4              LDR      r4,[r0,#0xc]  ; Notify_list
;;;120      if(temp == NULL)
000008  b904              CBNZ     r4,|L3.12|
                  |L3.10|
;;;121        return;
;;;122      else{
;;;123        do{
;;;124          ((mico_notify_DHCP_COMPLETE_function)(temp->function))(pnet, temp->arg);
;;;125          temp = temp->next;
;;;126        }while(temp!=NULL);
;;;127      }
;;;128    }
00000a  bd70              POP      {r4-r6,pc}
                  |L3.12|
00000c  bf00              NOP                            ;123
                  |L3.14|
00000e  4628              MOV      r0,r5                 ;124
000010  e9d42100          LDRD     r2,r1,[r4,#0]         ;124
000014  4790              BLX      r2                    ;124
000016  68a4              LDR      r4,[r4,#8]            ;125
000018  2c00              CMP      r4,#0                 ;126
00001a  d1f8              BNE      |L3.14|
00001c  bf00              NOP      
00001e  e7f4              B        |L3.10|
;;;129    
                          ENDP

                  |L3.32|
                          DCD      Notify_list

                          AREA ||i.RptConfigmodeRslt||, CODE, READONLY, ALIGN=2

                  RptConfigmodeRslt PROC
;;;129    
;;;130    void RptConfigmodeRslt(network_InitTypeDef_st *nwkpara)
000000  b570              PUSH     {r4-r6,lr}
;;;131    {
000002  4605              MOV      r5,r0
;;;132      _Notify_list_t *temp =  Notify_list[mico_notify_EASYLINK_WPS_COMPLETED];
000004  4806              LDR      r0,|L4.32|
000006  6904              LDR      r4,[r0,#0x10]  ; Notify_list
;;;133      if(temp == NULL)
000008  b904              CBNZ     r4,|L4.12|
                  |L4.10|
;;;134        return;
;;;135      else{
;;;136        do{
;;;137          ((mico_notify_EASYLINK_COMPLETE_function)(temp->function))(nwkpara, temp->arg);
;;;138          temp = temp->next;
;;;139        }while(temp!=NULL);
;;;140      }
;;;141    }
00000a  bd70              POP      {r4-r6,pc}
                  |L4.12|
00000c  bf00              NOP                            ;136
                  |L4.14|
00000e  4628              MOV      r0,r5                 ;137
000010  e9d42100          LDRD     r2,r1,[r4,#0]         ;137
000014  4790              BLX      r2                    ;137
000016  68a4              LDR      r4,[r4,#8]            ;138
000018  2c00              CMP      r4,#0                 ;139
00001a  d1f8              BNE      |L4.14|
00001c  bf00              NOP      
00001e  e7f4              B        |L4.10|
;;;142    
                          ENDP

                  |L4.32|
                          DCD      Notify_list

                          AREA ||i.WifiStatusHandler||, CODE, READONLY, ALIGN=2

                  WifiStatusHandler PROC
;;;90     
;;;91     void WifiStatusHandler(WiFiEvent status)
000000  b570              PUSH     {r4-r6,lr}
;;;92     {
000002  4605              MOV      r5,r0
;;;93       _Notify_list_t *temp =  Notify_list[mico_notify_WIFI_STATUS_CHANGED];
000004  4806              LDR      r0,|L5.32|
000006  6844              LDR      r4,[r0,#4]  ; Notify_list
;;;94       if(temp == NULL)
000008  b904              CBNZ     r4,|L5.12|
                  |L5.10|
;;;95         return;
;;;96       else{
;;;97         do{
;;;98           ((mico_notify_WIFI_STATUS_CHANGED_function)(temp->function))(status, temp->arg);
;;;99           temp = temp->next;
;;;100        }while(temp!=NULL);
;;;101      }
;;;102    }
00000a  bd70              POP      {r4-r6,pc}
                  |L5.12|
00000c  bf00              NOP                            ;97
                  |L5.14|
00000e  4628              MOV      r0,r5                 ;98
000010  e9d42100          LDRD     r2,r1,[r4,#0]         ;98
000014  4790              BLX      r2                    ;98
000016  68a4              LDR      r4,[r4,#8]            ;99
000018  2c00              CMP      r4,#0                 ;100
00001a  d1f8              BNE      |L5.14|
00001c  bf00              NOP      
00001e  e7f4              B        |L5.10|
;;;103    
                          ENDP

                  |L5.32|
                          DCD      Notify_list

                          AREA ||i.connected_ap_info||, CODE, READONLY, ALIGN=2

                  connected_ap_info PROC
;;;103    
;;;104    void connected_ap_info(apinfo_adv_t *ap_info, char *key, int key_len)
000000  e92d41f0          PUSH     {r4-r8,lr}
;;;105    {
000004  4605              MOV      r5,r0
000006  460e              MOV      r6,r1
000008  4617              MOV      r7,r2
;;;106      _Notify_list_t *temp =  Notify_list[mico_notify_WiFI_PARA_CHANGED];
00000a  4808              LDR      r0,|L6.44|
00000c  6884              LDR      r4,[r0,#8]  ; Notify_list
;;;107      if(temp == NULL)
00000e  b90c              CBNZ     r4,|L6.20|
                  |L6.16|
;;;108        return;
;;;109      else{
;;;110        do{
;;;111          ((mico_notify_WiFI_PARA_CHANGED_function)(temp->function))(ap_info, key, key_len, temp->arg);
;;;112          temp = temp->next;
;;;113        }while(temp!=NULL);
;;;114      }
;;;115    }
000010  e8bd81f0          POP      {r4-r8,pc}
                  |L6.20|
000014  bf00              NOP                            ;110
                  |L6.22|
000016  463a              MOV      r2,r7                 ;111
000018  4631              MOV      r1,r6                 ;111
00001a  4628              MOV      r0,r5                 ;111
00001c  e9d4c300          LDRD     r12,r3,[r4,#0]        ;111
000020  47e0              BLX      r12                   ;111
000022  68a4              LDR      r4,[r4,#8]            ;112
000024  2c00              CMP      r4,#0                 ;113
000026  d1f6              BNE      |L6.22|
000028  bf00              NOP      
00002a  e7f1              B        |L6.16|
;;;116    
                          ENDP

                  |L6.44|
                          DCD      Notify_list

                          AREA ||i.dns_ip_set||, CODE, READONLY, ALIGN=2

                  dns_ip_set PROC
;;;168    
;;;169    void dns_ip_set(uint8_t *hostname, uint32_t ip)
000000  b570              PUSH     {r4-r6,lr}
;;;170    {
000002  4605              MOV      r5,r0
000004  460e              MOV      r6,r1
;;;171      _Notify_list_t *temp =  Notify_list[mico_notify_DNS_RESOLVE_COMPLETED];
000006  4807              LDR      r0,|L7.36|
000008  69c4              LDR      r4,[r0,#0x1c]  ; Notify_list
;;;172      if(temp == NULL)
00000a  b904              CBNZ     r4,|L7.14|
                  |L7.12|
;;;173        return;
;;;174      else{
;;;175        do{
;;;176          ((mico_notify_DNS_RESOLVE_COMPLETED_function)(temp->function))(hostname, ip, temp->arg);
;;;177          temp = temp->next;
;;;178        }while(temp!=NULL);
;;;179      }    
;;;180    }
00000c  bd70              POP      {r4-r6,pc}
                  |L7.14|
00000e  bf00              NOP                            ;175
                  |L7.16|
000010  4631              MOV      r1,r6                 ;176
000012  4628              MOV      r0,r5                 ;176
000014  e9d43200          LDRD     r3,r2,[r4,#0]         ;176
000018  4798              BLX      r3                    ;176
00001a  68a4              LDR      r4,[r4,#8]            ;177
00001c  2c00              CMP      r4,#0                 ;178
00001e  d1f7              BNE      |L7.16|
000020  bf00              NOP      
000022  e7f3              B        |L7.12|
;;;181    
                          ENDP

                  |L7.36|
                          DCD      Notify_list

                          AREA ||i.easylink_user_data_result||, CODE, READONLY, ALIGN=2

                  easylink_user_data_result PROC
;;;142    
;;;143    void easylink_user_data_result(int datalen, char*data)
000000  b570              PUSH     {r4-r6,lr}
;;;144    {
000002  4605              MOV      r5,r0
000004  460e              MOV      r6,r1
;;;145      _Notify_list_t *temp =  Notify_list[mico_notify_EASYLINK_GET_EXTRA_DATA];
000006  4807              LDR      r0,|L8.36|
000008  6944              LDR      r4,[r0,#0x14]  ; Notify_list
;;;146      if(temp == NULL)
00000a  b904              CBNZ     r4,|L8.14|
                  |L8.12|
;;;147        return;
;;;148      else{
;;;149        do{
;;;150          ((mico_notify_EASYLINK_GET_EXTRA_DATA_function)(temp->function))(datalen, data, temp->arg);
;;;151          temp = temp->next;
;;;152        }while(temp!=NULL);
;;;153      }  
;;;154    }
00000c  bd70              POP      {r4-r6,pc}
                  |L8.14|
00000e  bf00              NOP                            ;149
                  |L8.16|
000010  4631              MOV      r1,r6                 ;150
000012  4628              MOV      r0,r5                 ;150
000014  e9d43200          LDRD     r3,r2,[r4,#0]         ;150
000018  4798              BLX      r3                    ;150
00001a  68a4              LDR      r4,[r4,#8]            ;151
00001c  2c00              CMP      r4,#0                 ;152
00001e  d1f7              BNE      |L8.16|
000020  bf00              NOP      
000022  e7f3              B        |L8.12|
;;;155    
                          ENDP

                  |L8.36|
                          DCD      Notify_list

                          AREA ||i.join_fail||, CODE, READONLY, ALIGN=2

                  join_fail PROC
;;;194    
;;;195    void join_fail(OSStatus err)
000000  b570              PUSH     {r4-r6,lr}
;;;196    {
000002  4605              MOV      r5,r0
;;;197      _Notify_list_t *temp =  Notify_list[mico_notify_WIFI_CONNECT_FAILED];
000004  4806              LDR      r0,|L9.32|
000006  6a44              LDR      r4,[r0,#0x24]  ; Notify_list
;;;198      if(temp == NULL)
000008  b904              CBNZ     r4,|L9.12|
                  |L9.10|
;;;199        return;
;;;200      else{
;;;201        do{
;;;202          ((mico_notify_WIFI_CONNECT_FAILED_function)(temp->function))(err, temp->arg);
;;;203          temp = temp->next;
;;;204        }while(temp!=NULL);
;;;205      }    
;;;206    }
00000a  bd70              POP      {r4-r6,pc}
                  |L9.12|
00000c  bf00              NOP                            ;201
                  |L9.14|
00000e  4628              MOV      r0,r5                 ;202
000010  e9d42100          LDRD     r2,r1,[r4,#0]         ;202
000014  4790              BLX      r2                    ;202
000016  68a4              LDR      r4,[r4,#8]            ;203
000018  2c00              CMP      r4,#0                 ;204
00001a  d1f8              BNE      |L9.14|
00001c  bf00              NOP      
00001e  e7f4              B        |L9.10|
;;;207    
                          ENDP

                  |L9.32|
                          DCD      Notify_list

                          AREA ||i.mico_rtos_stack_overflow||, CODE, READONLY, ALIGN=2

                  mico_rtos_stack_overflow PROC
;;;220    
;;;221    void mico_rtos_stack_overflow(char *taskname)
000000  b570              PUSH     {r4-r6,lr}
;;;222    {
000002  4605              MOV      r5,r0
;;;223      _Notify_list_t *temp =  Notify_list[mico_notify_Stack_Overflow_ERROR];
000004  4806              LDR      r0,|L10.32|
000006  6b04              LDR      r4,[r0,#0x30]  ; Notify_list
;;;224      if(temp == NULL)
000008  b904              CBNZ     r4,|L10.12|
                  |L10.10|
;;;225        return;
;;;226      else{
;;;227        do{
;;;228          ((mico_notify_STACK_OVERFLOW_ERROR_function)(temp->function))(taskname, temp->arg);
;;;229          temp = temp->next;
;;;230        }while(temp!=NULL);
;;;231      }    
;;;232    }
00000a  bd70              POP      {r4-r6,pc}
                  |L10.12|
00000c  bf00              NOP                            ;227
                  |L10.14|
00000e  4628              MOV      r0,r5                 ;228
000010  e9d42100          LDRD     r2,r1,[r4,#0]         ;228
000014  4790              BLX      r2                    ;228
000016  68a4              LDR      r4,[r4,#8]            ;229
000018  2c00              CMP      r4,#0                 ;230
00001a  d1f8              BNE      |L10.14|
00001c  bf00              NOP      
00001e  e7f4              B        |L10.10|
;;;233    
                          ENDP

                  |L10.32|
                          DCD      Notify_list

                          AREA ||i.mico_system_notify_register||, CODE, READONLY, ALIGN=2

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                  mico_system_notify_register PROC
;;;233    
;;;234    OSStatus mico_system_notify_register( mico_notify_types_t notify_type, void* functionAddress, void* arg )
000000  e92d5ffc          PUSH     {r2-r12,lr}
;;;235    {
000004  4606              MOV      r6,r0
000006  460f              MOV      r7,r1
000008  4690              MOV      r8,r2
;;;236      OSStatus err = kNoErr;
00000a  f04f0900          MOV      r9,#0
;;;237      _Notify_list_t *temp =  Notify_list[notify_type];
00000e  482c              LDR      r0,|L11.192|
000010  f8505026          LDR      r5,[r0,r6,LSL #2]
;;;238      _Notify_list_t *notify = (_Notify_list_t *)malloc(sizeof(_Notify_list_t));
000014  2010              MOVS     r0,#0x10
000016  f7fffffe          BL       malloc
00001a  4604              MOV      r4,r0
;;;239      require_action(notify, exit, err = kNoMemoryErr);
00001c  bf00              NOP      
00001e  2c00              CMP      r4,#0
000020  d129              BNE      |L11.118|
000022  bf00              NOP      
000024  4827              LDR      r0,|L11.196|
000026  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000028  b900              CBNZ     r0,|L11.44|
00002a  e020              B        |L11.110|
                  |L11.44|
00002c  4826              LDR      r0,|L11.200|
00002e  f7fffffe          BL       mico_rtos_lock_mutex
000032  215c              MOVS     r1,#0x5c
000034  a025              ADR      r0,|L11.204|
000036  f7fffffe          BL       strrchr
00003a  b128              CBZ      r0,|L11.72|
00003c  215c              MOVS     r1,#0x5c
00003e  a023              ADR      r0,|L11.204|
000040  f7fffffe          BL       strrchr
000044  1c40              ADDS     r0,r0,#1
000046  e000              B        |L11.74|
                  |L11.72|
000048  a020              ADR      r0,|L11.204|
                  |L11.74|
00004a  4682              MOV      r10,r0
00004c  f7fffffe          BL       mico_get_time
000050  4683              MOV      r11,r0
000052  a02b              ADR      r0,|L11.256|
000054  21ef              MOVS     r1,#0xef
000056  4b2b              LDR      r3,|L11.260|
000058  4652              MOV      r2,r10
00005a  e9cd1000          STRD     r1,r0,[sp,#0]
00005e  4659              MOV      r1,r11
000060  a029              ADR      r0,|L11.264|
000062  f7fffffe          BL       __2printf
000066  4818              LDR      r0,|L11.200|
000068  f7fffffe          BL       mico_rtos_unlock_mutex
00006c  bf00              NOP      
                  |L11.110|
00006e  bf00              NOP      
000070  f8df90bc          LDR      r9,|L11.304|
000074  e021              B        |L11.186|
                  |L11.118|
000076  bf00              NOP      
;;;240      notify->function = functionAddress;
000078  6027              STR      r7,[r4,#0]
;;;241      notify->arg = arg;
00007a  f8c48004          STR      r8,[r4,#4]
;;;242      notify->next = NULL;
00007e  2000              MOVS     r0,#0
000080  60a0              STR      r0,[r4,#8]
;;;243      if(Notify_list[notify_type] == NULL){
000082  480f              LDR      r0,|L11.192|
000084  f8500026          LDR      r0,[r0,r6,LSL #2]
000088  b928              CBNZ     r0,|L11.150|
;;;244        Notify_list[notify_type] = notify;
00008a  480d              LDR      r0,|L11.192|
00008c  f8404026          STR      r4,[r0,r6,LSL #2]
;;;245        notify->next = NULL;
000090  2000              MOVS     r0,#0
000092  60a0              STR      r0,[r4,#8]
000094  e010              B        |L11.184|
                  |L11.150|
;;;246      }else{
;;;247        if(temp->function == functionAddress)
000096  6828              LDR      r0,[r5,#0]
000098  42b8              CMP      r0,r7
00009a  d102              BNE      |L11.162|
;;;248            return kNoErr;   //Nodify already exist
00009c  2000              MOVS     r0,#0
                  |L11.158|
;;;249        while(temp->next!=NULL){
;;;250          temp = temp->next;
;;;251          if(temp->function == functionAddress)
;;;252            return kNoErr;   //Nodify already exist
;;;253        }
;;;254        temp->next = notify;
;;;255      }
;;;256    exit:
;;;257      return err;
;;;258    }
00009e  e8bd9ffc          POP      {r2-r12,pc}
                  |L11.162|
0000a2  e005              B        |L11.176|
                  |L11.164|
0000a4  68ad              LDR      r5,[r5,#8]            ;250
0000a6  6828              LDR      r0,[r5,#0]            ;251
0000a8  42b8              CMP      r0,r7                 ;251
0000aa  d101              BNE      |L11.176|
0000ac  2000              MOVS     r0,#0                 ;252
0000ae  e7f6              B        |L11.158|
                  |L11.176|
0000b0  68a8              LDR      r0,[r5,#8]            ;249
0000b2  2800              CMP      r0,#0                 ;249
0000b4  d1f6              BNE      |L11.164|
0000b6  60ac              STR      r4,[r5,#8]            ;254
                  |L11.184|
0000b8  bf00              NOP                            ;256
                  |L11.186|
0000ba  4648              MOV      r0,r9                 ;257
0000bc  e7ef              B        |L11.158|
;;;259    
                          ENDP

0000be  0000              DCW      0x0000
                  |L11.192|
                          DCD      Notify_list
                  |L11.196|
                          DCD      mico_debug_enabled
                  |L11.200|
                          DCD      stdio_tx_mutex
                  |L11.204|
0000cc  2e2e5c2e          DCB      "..\\..\\..\\..\\MICO\\system\\mico_system_notification."
0000d0  2e5c2e2e
0000d4  5c2e2e5c
0000d8  4d49434f
0000dc  5c737973
0000e0  74656d5c
0000e4  6d69636f
0000e8  5f737973
0000ec  74656d5f
0000f0  6e6f7469
0000f4  66696361
0000f8  74696f6e
0000fc  2e      
0000fd  6300              DCB      "c",0
0000ff  00                DCB      0
                  |L11.256|
000100  00                DCB      0
000101  00                DCB      0
000102  00                DCB      0
000103  00                DCB      0
                  |L11.260|
                          DCD      __PRETTY_FUNCTION__
                  |L11.264|
000108  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
00010c  5b4d4943
000110  4f3a2573
000114  3a25733a
000118  2534645d
00011c  202a2a41
000120  53534552
000124  542a2a20
000128  25730d0a
00012c  00      
00012d  00                DCB      0
00012e  00                DCB      0
00012f  00                DCB      0
                  |L11.304|
                          DCD      0xffffe5b8

                          AREA ||i.mico_system_notify_remove||, CODE, READONLY, ALIGN=2

                          REQUIRE _printf_pre_padding
                          REQUIRE _printf_percent
                          REQUIRE _printf_widthprec
                          REQUIRE _printf_d
                          REQUIRE _printf_s
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_str
                          REQUIRE _printf_str
                  mico_system_notify_remove PROC
;;;259    
;;;260    OSStatus mico_system_notify_remove( mico_notify_types_t notify_type, void *functionAddress )
000000  e92d47fc          PUSH     {r2-r10,lr}
;;;261    {
000004  4605              MOV      r5,r0
000006  460f              MOV      r7,r1
;;;262      OSStatus err = kNoErr;
000008  f04f0800          MOV      r8,#0
;;;263      _Notify_list_t *temp2;
;;;264      _Notify_list_t *temp = Notify_list[notify_type];
00000c  4844              LDR      r0,|L12.288|
00000e  f8504025          LDR      r4,[r0,r5,LSL #2]
;;;265      require_action(Notify_list[notify_type], exit, err = kDeletedErr);
000012  bf00              NOP      
000014  f8500025          LDR      r0,[r0,r5,LSL #2]
000018  2800              CMP      r0,#0
00001a  d12a              BNE      |L12.114|
00001c  bf00              NOP      
00001e  4841              LDR      r0,|L12.292|
000020  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
000022  b900              CBNZ     r0,|L12.38|
000024  e021              B        |L12.106|
                  |L12.38|
000026  4840              LDR      r0,|L12.296|
000028  f7fffffe          BL       mico_rtos_lock_mutex
00002c  215c              MOVS     r1,#0x5c
00002e  a03f              ADR      r0,|L12.300|
000030  f7fffffe          BL       strrchr
000034  b128              CBZ      r0,|L12.66|
000036  215c              MOVS     r1,#0x5c
000038  a03c              ADR      r0,|L12.300|
00003a  f7fffffe          BL       strrchr
00003e  1c40              ADDS     r0,r0,#1
000040  e000              B        |L12.68|
                  |L12.66|
000042  a03a              ADR      r0,|L12.300|
                  |L12.68|
000044  4681              MOV      r9,r0
000046  f7fffffe          BL       mico_get_time
00004a  4682              MOV      r10,r0
00004c  a044              ADR      r0,|L12.352|
00004e  f2401109          MOV      r1,#0x109
000052  4b44              LDR      r3,|L12.356|
000054  464a              MOV      r2,r9
000056  e9cd1000          STRD     r1,r0,[sp,#0]
00005a  4651              MOV      r1,r10
00005c  a042              ADR      r0,|L12.360|
00005e  f7fffffe          BL       __2printf
000062  4831              LDR      r0,|L12.296|
000064  f7fffffe          BL       mico_rtos_unlock_mutex
000068  bf00              NOP      
                  |L12.106|
00006a  bf00              NOP      
00006c  f8df8120          LDR      r8,|L12.400|
000070  e052              B        |L12.280|
                  |L12.114|
000072  bf00              NOP      
;;;266      do{
000074  bf00              NOP      
                  |L12.118|
;;;267        if(temp->function == functionAddress){
000076  6820              LDR      r0,[r4,#0]
000078  42b8              CMP      r0,r7
00007a  d115              BNE      |L12.168|
;;;268          if(temp == Notify_list[notify_type]){  //first element
00007c  4828              LDR      r0,|L12.288|
00007e  f8500025          LDR      r0,[r0,r5,LSL #2]
000082  42a0              CMP      r0,r4
000084  d10a              BNE      |L12.156|
;;;269            Notify_list[notify_type] = Notify_list[notify_type]->next;
000086  4826              LDR      r0,|L12.288|
000088  f8500025          LDR      r0,[r0,r5,LSL #2]
00008c  6880              LDR      r0,[r0,#8]
00008e  4924              LDR      r1,|L12.288|
000090  f8410025          STR      r0,[r1,r5,LSL #2]
;;;270            free(temp);
000094  4620              MOV      r0,r4
000096  f7fffffe          BL       free
00009a  e004              B        |L12.166|
                  |L12.156|
;;;271          }else{
;;;272            temp2->next = temp->next;
00009c  68a0              LDR      r0,[r4,#8]
00009e  60b0              STR      r0,[r6,#8]
;;;273            free(temp);
0000a0  4620              MOV      r0,r4
0000a2  f7fffffe          BL       free
                  |L12.166|
;;;274          }
;;;275           break;
0000a6  e035              B        |L12.276|
                  |L12.168|
;;;276        }
;;;277        require_action(temp->next!=NULL, exit, err = kNotFoundErr);
0000a8  bf00              NOP      
0000aa  68a0              LDR      r0,[r4,#8]
0000ac  2800              CMP      r0,#0
0000ae  d12c              BNE      |L12.266|
0000b0  bf00              NOP      
0000b2  481c              LDR      r0,|L12.292|
0000b4  6800              LDR      r0,[r0,#0]  ; mico_debug_enabled
0000b6  b900              CBNZ     r0,|L12.186|
0000b8  e021              B        |L12.254|
                  |L12.186|
0000ba  481b              LDR      r0,|L12.296|
0000bc  f7fffffe          BL       mico_rtos_lock_mutex
0000c0  215c              MOVS     r1,#0x5c
0000c2  a01a              ADR      r0,|L12.300|
0000c4  f7fffffe          BL       strrchr
0000c8  b128              CBZ      r0,|L12.214|
0000ca  215c              MOVS     r1,#0x5c
0000cc  a017              ADR      r0,|L12.300|
0000ce  f7fffffe          BL       strrchr
0000d2  1c40              ADDS     r0,r0,#1
0000d4  e000              B        |L12.216|
                  |L12.214|
0000d6  a015              ADR      r0,|L12.300|
                  |L12.216|
0000d8  4681              MOV      r9,r0
0000da  f7fffffe          BL       mico_get_time
0000de  4682              MOV      r10,r0
0000e0  a01f              ADR      r0,|L12.352|
0000e2  f2401115          MOV      r1,#0x115
0000e6  4b1f              LDR      r3,|L12.356|
0000e8  464a              MOV      r2,r9
0000ea  e9cd1000          STRD     r1,r0,[sp,#0]
0000ee  4651              MOV      r1,r10
0000f0  a01d              ADR      r0,|L12.360|
0000f2  f7fffffe          BL       __2printf
0000f6  480c              LDR      r0,|L12.296|
0000f8  f7fffffe          BL       mico_rtos_unlock_mutex
0000fc  bf00              NOP      
                  |L12.254|
0000fe  bf00              NOP      
000100  f8df808c          LDR      r8,|L12.400|
000104  f1a80801          SUB      r8,r8,#1
000108  e006              B        |L12.280|
                  |L12.266|
00010a  bf00              NOP      
;;;278        temp2 = temp;
00010c  4626              MOV      r6,r4
;;;279        temp = temp->next;
00010e  68a4              LDR      r4,[r4,#8]
;;;280      }while(temp != NULL);
000110  2c00              CMP      r4,#0
000112  d1b0              BNE      |L12.118|
                  |L12.276|
000114  bf00              NOP                            ;275
;;;281    
;;;282    exit:
000116  bf00              NOP      
                  |L12.280|
;;;283      return err;
000118  4640              MOV      r0,r8
;;;284    }
00011a  e8bd87fc          POP      {r2-r10,pc}
;;;285    
                          ENDP

00011e  0000              DCW      0x0000
                  |L12.288|
                          DCD      Notify_list
                  |L12.292|
                          DCD      mico_debug_enabled
                  |L12.296|
                          DCD      stdio_tx_mutex
                  |L12.300|
00012c  2e2e5c2e          DCB      "..\\..\\..\\..\\MICO\\system\\mico_system_notification."
000130  2e5c2e2e
000134  5c2e2e5c
000138  4d49434f
00013c  5c737973
000140  74656d5c
000144  6d69636f
000148  5f737973
00014c  74656d5f
000150  6e6f7469
000154  66696361
000158  74696f6e
00015c  2e      
00015d  6300              DCB      "c",0
00015f  00                DCB      0
                  |L12.352|
000160  00                DCB      0
000161  00                DCB      0
000162  00                DCB      0
000163  00                DCB      0
                  |L12.356|
                          DCD      |symbol_number.54|
                  |L12.360|
000168  5b25645d          DCB      "[%d][MICO:%s:%s:%4d] **ASSERT** %s\r\n",0
00016c  5b4d4943
000170  4f3a2573
000174  3a25733a
000178  2534645d
00017c  202a2a41
000180  53534552
000184  542a2a20
000188  25730d0a
00018c  00      
00018d  00                DCB      0
00018e  00                DCB      0
00018f  00                DCB      0
                  |L12.400|
                          DCD      0xffffe5ba

                          AREA ||i.mico_system_notify_remove_all||, CODE, READONLY, ALIGN=2

                  mico_system_notify_remove_all PROC
;;;285    
;;;286    OSStatus mico_system_notify_remove_all( mico_notify_types_t notify_type)
000000  b570              PUSH     {r4-r6,lr}
;;;287    {
000002  4604              MOV      r4,r0
;;;288        _Notify_list_t *temp = Notify_list[notify_type];;
000004  480a              LDR      r0,|L13.48|
000006  f8505024          LDR      r5,[r0,r4,LSL #2]
;;;289    
;;;290        while(temp) {
00000a  e00c              B        |L13.38|
                  |L13.12|
;;;291            Notify_list[notify_type] = Notify_list[notify_type]->next;
00000c  4808              LDR      r0,|L13.48|
00000e  f8500024          LDR      r0,[r0,r4,LSL #2]
000012  6880              LDR      r0,[r0,#8]
000014  4906              LDR      r1,|L13.48|
000016  f8410024          STR      r0,[r1,r4,LSL #2]
;;;292            free(temp);
00001a  4628              MOV      r0,r5
00001c  f7fffffe          BL       free
;;;293            temp = Notify_list[notify_type];
000020  4803              LDR      r0,|L13.48|
000022  f8505024          LDR      r5,[r0,r4,LSL #2]
                  |L13.38|
000026  2d00              CMP      r5,#0                 ;290
000028  d1f0              BNE      |L13.12|
;;;294        }
;;;295    
;;;296        return kNoErr;
00002a  2000              MOVS     r0,#0
;;;297    }
00002c  bd70              POP      {r4-r6,pc}
;;;298    
                          ENDP

00002e  0000              DCW      0x0000
                  |L13.48|
                          DCD      Notify_list

                          AREA ||i.sendNotifySYSWillPowerOff||, CODE, READONLY, ALIGN=2

                  sendNotifySYSWillPowerOff PROC
;;;181    
;;;182    void sendNotifySYSWillPowerOff(void)
000000  b510              PUSH     {r4,lr}
;;;183    {
;;;184      _Notify_list_t *temp =  Notify_list[mico_notify_SYS_WILL_POWER_OFF];
000002  4806              LDR      r0,|L14.28|
000004  6a04              LDR      r4,[r0,#0x20]  ; Notify_list
;;;185      if(temp == NULL)
000006  b904              CBNZ     r4,|L14.10|
                  |L14.8|
;;;186        return;
;;;187      else{
;;;188        do{
;;;189          ((mico_notify_SYS_WILL_POWER_OFF_function)(temp->function))(temp->arg);
;;;190          temp = temp->next;
;;;191        }while(temp!=NULL);
;;;192      }    
;;;193    }
000008  bd10              POP      {r4,pc}
                  |L14.10|
00000a  bf00              NOP                            ;188
                  |L14.12|
00000c  e9d41000          LDRD     r1,r0,[r4,#0]         ;189
000010  4788              BLX      r1                    ;189
000012  68a4              LDR      r4,[r4,#8]            ;190
000014  2c00              CMP      r4,#0                 ;191
000016  d1f9              BNE      |L14.12|
000018  bf00              NOP      
00001a  e7f5              B        |L14.8|
;;;194    
                          ENDP

                  |L14.28|
                          DCD      Notify_list

                          AREA ||i.socket_connected||, CODE, READONLY, ALIGN=2

                  socket_connected PROC
;;;155    
;;;156    void socket_connected(int fd)
000000  b570              PUSH     {r4-r6,lr}
;;;157    {
000002  4605              MOV      r5,r0
;;;158      _Notify_list_t *temp =  Notify_list[mico_notify_TCP_CLIENT_CONNECTED];
000004  4806              LDR      r0,|L15.32|
000006  6984              LDR      r4,[r0,#0x18]  ; Notify_list
;;;159      if(temp == NULL)
000008  b904              CBNZ     r4,|L15.12|
                  |L15.10|
;;;160        return;
;;;161      else{
;;;162        do{
;;;163          ((mico_notify_TCP_CLIENT_CONNECTED_function)(temp->function))(fd, temp->arg);
;;;164          temp = temp->next;
;;;165        }while(temp!=NULL);
;;;166      }    
;;;167    }
00000a  bd70              POP      {r4-r6,pc}
                  |L15.12|
00000c  bf00              NOP                            ;162
                  |L15.14|
00000e  4628              MOV      r0,r5                 ;163
000010  e9d42100          LDRD     r2,r1,[r4,#0]         ;163
000014  4790              BLX      r2                    ;163
000016  68a4              LDR      r4,[r4,#8]            ;164
000018  2c00              CMP      r4,#0                 ;165
00001a  d1f8              BNE      |L15.14|
00001c  bf00              NOP      
00001e  e7f4              B        |L15.10|
;;;168    
                          ENDP

                  |L15.32|
                          DCD      Notify_list

                          AREA ||i.wifi_reboot_event||, CODE, READONLY, ALIGN=2

                  wifi_reboot_event PROC
;;;207    
;;;208    void wifi_reboot_event(void)
000000  b510              PUSH     {r4,lr}
;;;209    {
;;;210      _Notify_list_t *temp =  Notify_list[mico_notify_WIFI_Fatal_ERROR];
000002  4806              LDR      r0,|L16.28|
000004  6ac4              LDR      r4,[r0,#0x2c]  ; Notify_list
;;;211      if(temp == NULL)
000006  b904              CBNZ     r4,|L16.10|
                  |L16.8|
;;;212        return;
;;;213      else{
;;;214        do{
;;;215          ((mico_notify_WIFI_FATAL_ERROR_function)(temp->function))(temp->arg);
;;;216          temp = temp->next;
;;;217        }while(temp!=NULL);
;;;218      }    
;;;219    }
000008  bd10              POP      {r4,pc}
                  |L16.10|
00000a  bf00              NOP                            ;214
                  |L16.12|
00000c  e9d41000          LDRD     r1,r0,[r4,#0]         ;215
000010  4788              BLX      r1                    ;215
000012  68a4              LDR      r4,[r4,#8]            ;216
000014  2c00              CMP      r4,#0                 ;217
000016  d1f9              BNE      |L16.12|
000018  bf00              NOP      
00001a  e7f5              B        |L16.8|
;;;220    
                          ENDP

                  |L16.28|
                          DCD      Notify_list

                          AREA ||.bss||, DATA, NOINIT, ALIGN=2

                  Notify_list
                          %        80

                          AREA ||.constdata||, DATA, READONLY, ALIGN=0

                  __PRETTY_FUNCTION__
000000  7369676e          DCB      0x73,0x69,0x67,0x6e
000004  65642069          DCB      0x65,0x64,0x20,0x69
000008  6e74206d          DCB      0x6e,0x74,0x20,0x6d
00000c  69636f5f          DCB      0x69,0x63,0x6f,0x5f
000010  73797374          DCB      0x73,0x79,0x73,0x74
000014  656d5f6e          DCB      0x65,0x6d,0x5f,0x6e
000018  6f746966          DCB      0x6f,0x74,0x69,0x66
00001c  795f7265          DCB      0x79,0x5f,0x72,0x65
000020  67697374          DCB      0x67,0x69,0x73,0x74
000024  65722865          DCB      0x65,0x72,0x28,0x65
000028  6e756d20          DCB      0x6e,0x75,0x6d,0x20
00002c  3c756e6e          DCB      0x3c,0x75,0x6e,0x6e
000030  616d6564          DCB      0x61,0x6d,0x65,0x64
000034  3e2c2076          DCB      0x3e,0x2c,0x20,0x76
000038  6f696420          DCB      0x6f,0x69,0x64,0x20
00003c  2a2c2076          DCB      0x2a,0x2c,0x20,0x76
000040  6f696420          DCB      0x6f,0x69,0x64,0x20
000044  2a2900            DCB      0x2a,0x29,0x00
                  |symbol_number.54|
000047  73                DCB      0x73
000048  69676e65          DCB      0x69,0x67,0x6e,0x65
00004c  6420696e          DCB      0x64,0x20,0x69,0x6e
000050  74206d69          DCB      0x74,0x20,0x6d,0x69
000054  636f5f73          DCB      0x63,0x6f,0x5f,0x73
000058  79737465          DCB      0x79,0x73,0x74,0x65
00005c  6d5f6e6f          DCB      0x6d,0x5f,0x6e,0x6f
000060  74696679          DCB      0x74,0x69,0x66,0x79
000064  5f72656d          DCB      0x5f,0x72,0x65,0x6d
000068  6f766528          DCB      0x6f,0x76,0x65,0x28
00006c  656e756d          DCB      0x65,0x6e,0x75,0x6d
000070  203c756e          DCB      0x20,0x3c,0x75,0x6e
000074  6e616d65          DCB      0x6e,0x61,0x6d,0x65
000078  643e2c20          DCB      0x64,0x3e,0x2c,0x20
00007c  766f6964          DCB      0x76,0x6f,0x69,0x64
000080  202a2900          DCB      0x20,0x2a,0x29,0x00

;*** Start embedded assembler ***

#line 1 "..\\..\\..\\..\\MICO\\system\\mico_system_notification.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___26_mico_system_notification_c_b63aaf79____REV16|
#line 114 "..\\..\\..\\..\\Platform\\Cortex-M4\\CMSIS\\core_cmInstr.h"
|__asm___26_mico_system_notification_c_b63aaf79____REV16| PROC
#line 115

 rev16 r0, r0
 bx lr
	ENDP
	AREA ||.revsh_text||, CODE
	THUMB
	EXPORT |__asm___26_mico_system_notification_c_b63aaf79____REVSH|
#line 128
|__asm___26_mico_system_notification_c_b63aaf79____REVSH| PROC
#line 129

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
