; 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\platform_rng.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\platform_rng.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\platform_rng.crf ..\..\..\..\Platform\MCU\STM32F4xx\peripherals\platform_rng.c]
                          THUMB

                          AREA ||i.platform_random_number_read||, CODE, READONLY, ALIGN=1

                  platform_random_number_read PROC
;;;60     
;;;61     OSStatus platform_random_number_read( void *inBuffer, int inByteCount )
000000  e92d4ff8          PUSH     {r3-r11,lr}
;;;62     {
000004  4605              MOV      r5,r0
000006  460c              MOV      r4,r1
;;;63         // PLATFORM_TO_DO
;;;64          // PLATFORM_TO_DO
;;;65         int idx;
;;;66         uint32_t *pWord = inBuffer;
000008  462e              MOV      r6,r5
;;;67         uint32_t tempRDM;
;;;68         uint8_t *pByte = NULL;
00000a  f04f0a00          MOV      r10,#0
;;;69         int inWordCount;
;;;70         int remainByteCount;
;;;71     
;;;72         inWordCount = inByteCount/4;
00000e  4620              MOV      r0,r4
000010  17e1              ASRS     r1,r4,#31
000012  eb047191          ADD      r1,r4,r1,LSR #30
000016  108f              ASRS     r7,r1,#2
;;;73         remainByteCount = inByteCount%4;
000018  4620              MOV      r0,r4
00001a  17e1              ASRS     r1,r4,#31
00001c  eb047191          ADD      r1,r4,r1,LSR #30
000020  1089              ASRS     r1,r1,#2
000022  eba40981          SUB      r9,r4,r1,LSL #2
;;;74         pByte = (uint8_t *)pWord+inWordCount*4;
000026  eb060a87          ADD      r10,r6,r7,LSL #2
;;;75     
;;;76         for(idx = 0; idx<inWordCount; idx++, pWord++){
00002a  f04f0800          MOV      r8,#0
00002e  e00a              B        |L1.70|
                  |L1.48|
;;;77             srand(mico_get_time());
000030  f7fffffe          BL       mico_get_time
000034  4683              MOV      r11,r0
000036  f7fffffe          BL       srand
;;;78             *pWord = rand();
00003a  f7fffffe          BL       rand
00003e  6030              STR      r0,[r6,#0]
000040  f1080801          ADD      r8,r8,#1              ;76
000044  1d36              ADDS     r6,r6,#4              ;76
                  |L1.70|
000046  45b8              CMP      r8,r7                 ;76
000048  dbf2              BLT      |L1.48|
;;;79         }
;;;80     
;;;81         if(remainByteCount){
00004a  f1b90f00          CMP      r9,#0
00004e  d00c              BEQ      |L1.106|
;;;82             srand(mico_get_time());
000050  f7fffffe          BL       mico_get_time
000054  4683              MOV      r11,r0
000056  f7fffffe          BL       srand
;;;83             tempRDM = rand();
00005a  f7fffffe          BL       rand
00005e  9000              STR      r0,[sp,#0]
;;;84             memcpy(pByte, &tempRDM, (size_t)remainByteCount);
000060  464a              MOV      r2,r9
000062  4669              MOV      r1,sp
000064  4650              MOV      r0,r10
000066  f7fffffe          BL       __aeabi_memcpy
                  |L1.106|
;;;85         }
;;;86         
;;;87         return kNoErr;
00006a  2000              MOVS     r0,#0
;;;88     }
00006c  e8bd8ff8          POP      {r3-r11,pc}
                          ENDP


;*** Start embedded assembler ***

#line 1 "..\\..\\..\\..\\Platform\\MCU\\STM32F4xx\\peripherals\\platform_rng.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___14_platform_rng_c_b72d8dcb____REV16|
#line 114 "..\\..\\..\\..\\Platform\\Cortex-M4\\CMSIS\\core_cmInstr.h"
|__asm___14_platform_rng_c_b72d8dcb____REV16| PROC
#line 115

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

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
