	.file	"232955498.c"
	.intel_syntax noprefix
	.text
	.globl	HardFault_Handler
	.type	HardFault_Handler, @function
HardFault_Handler:
.LFB0:
	.cfi_startproc
	endbr64
#APP
# 62 "the_stack_data/232955498.c" 1
	bkpt 0x99
	
# 0 "" 2
# 63 "the_stack_data/232955498.c" 1
	.syntax unified
MOVS   R0, #4  
MOV    R1, LR  
TST    R0, R1  
BEQ    _MSP    
MRS    R0, PSP 
B  _process      
_MSP:  
MRS    R0, MSP 
_process:     
LDR    R1,[R0,#24] 
LDRH    R2,[r1] 
LDR    R3,=0xBEAB 
CMP     R2,R3 
BEQ    _semihost_return 
B . 
_semihost_return: 
ADDS    R1,#2 
STR    R1,[R0,#24] 
MOVS   R1,#32 
STR R1,[ R0,#0 ] 
BX LR 
.syntax divided

# 0 "" 2
#NO_APP
	nop
	ud2
	.cfi_endproc
.LFE0:
	.size	HardFault_Handler, .-HardFault_Handler
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"232955498.c"
	.text
	.align	2
	.global	HardFault_Handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	HardFault_Handler, %function
HardFault_Handler:
	@ Naked Function: prologue and epilogue provided by programmer.
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	.syntax divided
@ 62 "the_stack_data/232955498.c" 1
	bkpt 0x99
	
@ 0 "" 2
@ 63 "the_stack_data/232955498.c" 1
	.syntax unified
MOVS   R0, #4  
MOV    R1, LR  
TST    R0, R1  
BEQ    _MSP    
MRS    R0, PSP 
B  _process      
_MSP:  
MRS    R0, MSP 
_process:     
LDR    R1,[R0,#24] 
LDRH    R2,[r1] 
LDR    R3,=0xBEAB 
CMP     R2,R3 
BEQ    _semihost_return 
B . 
_semihost_return: 
ADDS    R1,#2 
STR    R1,[R0,#24] 
MOVS   R1,#32 
STR R1,[ R0,#0 ] 
BX LR 
.syntax divided

@ 0 "" 2
	.arm
	.syntax unified
	nop
	.size	HardFault_Handler, .-HardFault_Handler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
