# 1 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
# 57 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
        .syntax unified
# 68 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
.macro VECTOR Name=
        .section .vectors, "a"
        .word \Name
.endm



.macro ISR_HANDLER Name=



        .section .vectors, "a"
        .word \Name



        .section .init.\Name, "ax"
        .thumb_func
        .weak \Name
        .balign 2
\Name:
        1: b 1b
        END_FUNC \Name
.endm




.macro ISR_RESERVED
        .section .vectors, "a"
        .word 0
.endm




.macro END_FUNC name
        .size \name,.-\name
.endm
# 119 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
        .section .vectors, "a"
        .code 16
        .balign 4
        .global _vectors
_vectors:
        VECTOR __stack_end__
        VECTOR Reset_Handler
        ISR_HANDLER NMI_Handler
        VECTOR HardFault_Handler
        ISR_HANDLER MemManage_Handler
        ISR_HANDLER BusFault_Handler
        ISR_HANDLER UsageFault_Handler
        ISR_RESERVED
        ISR_RESERVED
        ISR_RESERVED
        ISR_RESERVED
        ISR_HANDLER SVC_Handler
        ISR_HANDLER DebugMon_Handler
        ISR_RESERVED
        ISR_HANDLER PendSV_Handler
        ISR_HANDLER SysTick_Handler
# 149 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
        .section .vectors, "a"
        .size _vectors, .-_vectors
_vectors_end:
# 174 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
        .global reset_handler
        .global Reset_Handler
        .equ reset_handler, Reset_Handler
        .section .init.Reset_Handler, "ax"
        .balign 2
        .thumb_func
Reset_Handler:




        bl SystemInit
# 200 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
        bl _start
END_FUNC Reset_Handler





        .weak SystemInit
# 229 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
        .weak HardFault_Handler
        .section .init.HardFault_Handler, "ax"
        .balign 2
        .thumb_func
HardFault_Handler:



        ldr R1, =0xE000ED2C
        ldr R2, [R1]
        cmp R2, #0

.LHardFault_Handler_hfLoop:
        bmi .LHardFault_Handler_hfLoop




        movs R0, #4
        mov R1, LR
        tst R0, R1
        bne .LHardFault_Handler_Uses_PSP
        mrs R0, MSP
        b .LHardFault_Handler_Pass_StackPtr
.LHardFault_Handler_Uses_PSP:
        mrs R0, PSP
.LHardFault_Handler_Pass_StackPtr:
# 266 "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.40/samples/Cortex_M_Startup.s"
        movs R3, #1
        lsls R3, R3, #31
        orrs R2, R3
        str R2, [R1]







        ldr R1, [R0, #24]
        adds R1, #2
        str R1, [R0, #24]

        bx LR
END_FUNC HardFault_Handler
