; 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\bootloader\mico-fire_f429\obj_rvmdk\platform_rng.o --asm_dir=..\..\..\..\Build\Bootloader\MICO-Fire_F429\list_RVMDK\ --list_dir=..\..\..\..\Build\Bootloader\MICO-Fire_F429\list_RVMDK\ --depend=..\..\..\..\build\bootloader\mico-fire_f429\obj_rvmdk\platform_rng.d --cpu=Cortex-M4.fp --apcs=interwork --diag_suppress=9931,1,1293 -I..\..\..\..\Bootloader -I..\..\..\..\Board\fire_F429 -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 -IG:\GIT_OSC\F429_OV2640_MICO_SDRAM\Projects\STM32F429\bootloader\RVMDK\RTE -ID:\work\keil5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include -ID:\work\keil5\ARM\CMSIS\Include -ID:\work\keil5\ARM\PACK\Keil\STM32F4xx_DFP\2.5.0 -D__MICROLIB -D__UVISION_VERSION=516 -DSTM32F429xx -DUSE_STDPERIPH_DRIVER -DBOOTLOADER -DNO_MICO_RTOS -DHSE_VALUE=25000000 --omf_browse=..\..\..\..\build\bootloader\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  e92d43f8          PUSH     {r3-r9,lr}
;;;62     {
000004  4604              MOV      r4,r0
;;;63         // PLATFORM_TO_DO
;;;64          // PLATFORM_TO_DO
;;;65         int idx;
;;;66         uint32_t *pWord = inBuffer;
;;;67         uint32_t tempRDM;
;;;68         uint8_t *pByte = NULL;
;;;69         int inWordCount;
;;;70         int remainByteCount;
;;;71     
;;;72         inWordCount = inByteCount/4;
000006  17c8              ASRS     r0,r1,#31
000008  eb017090          ADD      r0,r1,r0,LSR #30
00000c  1086              ASRS     r6,r0,#2
;;;73         remainByteCount = inByteCount%4;
00000e  f0200003          BIC      r0,r0,#3
000012  1a0f              SUBS     r7,r1,r0
;;;74         pByte = (uint8_t *)pWord+inWordCount*4;
000014  eb040886          ADD      r8,r4,r6,LSL #2
;;;75     
;;;76         for(idx = 0; idx<inWordCount; idx++, pWord++){
000018  2500              MOVS     r5,#0
00001a  e007              B        |L1.44|
                  |L1.28|
;;;77             srand(mico_get_time());
00001c  f7fffffe          BL       mico_get_time
000020  f7fffffe          BL       srand
;;;78             *pWord = rand();
000024  f7fffffe          BL       rand
000028  c401              STM      r4!,{r0}
00002a  1c6d              ADDS     r5,r5,#1
                  |L1.44|
00002c  42b5              CMP      r5,r6                 ;76
00002e  dbf5              BLT      |L1.28|
;;;79         }
;;;80     
;;;81         if(remainByteCount){
000030  b15f              CBZ      r7,|L1.74|
;;;82             srand(mico_get_time());
000032  f7fffffe          BL       mico_get_time
000036  f7fffffe          BL       srand
;;;83             tempRDM = rand();
00003a  f7fffffe          BL       rand
;;;84             memcpy(pByte, &tempRDM, (size_t)remainByteCount);
00003e  9000              STR      r0,[sp,#0]
000040  463a              MOV      r2,r7
000042  4669              MOV      r1,sp
000044  4640              MOV      r0,r8
000046  f7fffffe          BL       __aeabi_memcpy
                  |L1.74|
;;;85         }
;;;86         
;;;87         return kNoErr;
00004a  2000              MOVS     r0,#0
;;;88     }
00004c  e8bd83f8          POP      {r3-r9,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 ***
