	.file	"869875.c"
	.intel_syntax noprefix
	.text
	.globl	generate_interrupt
	.type	generate_interrupt, @function
generate_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 3758157568
	mov	QWORD PTR -16[rbp], rax
	mov	eax, 3758153984
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	or	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 3
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	generate_interrupt, .-generate_interrupt
	.globl	change_access_level_unpriv
	.type	change_access_level_unpriv, @function
change_access_level_unpriv:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
#APP
# 34 "the_stack_data/869875.c" 1
	MRS R0, CONTROL
# 0 "" 2
# 36 "the_stack_data/869875.c" 1
	ORR R0, R0, 0x01
# 0 "" 2
# 38 "the_stack_data/869875.c" 1
	MSR CONTROL, R0
# 0 "" 2
#NO_APP
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	change_access_level_unpriv, .-change_access_level_unpriv
	.section	.rodata
	.align 8
.LC0:
	.string	"In thread mode : before interrupt"
	.align 8
.LC1:
	.string	"In thread mode : after interrupt"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	call	change_access_level_unpriv
	mov	eax, 0
	call	generate_interrupt
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L4:
	jmp	.L4
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"In handler mode : ISR"
	.text
	.globl	RTC_WKUP_IRQHandler
	.type	RTC_WKUP_IRQHandler, @function
RTC_WKUP_IRQHandler:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	RTC_WKUP_IRQHandler, .-RTC_WKUP_IRQHandler
	.section	.rodata
.LC3:
	.string	"Hard fault detected."
	.text
	.globl	HardFault_Handler
	.type	HardFault_Handler, @function
HardFault_Handler:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L7:
	jmp	.L7
	.cfi_endproc
.LFE4:
	.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	"869875.c"
	.text
	.align	2
	.global	generate_interrupt
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_interrupt, %function
generate_interrupt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	ldr	r3, .L2
	str	r3, [fp, #-12]
	ldr	r3, .L2+4
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	orr	r2, r3, #8
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r2, #3
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	-536809728
	.word	-536813312
	.size	generate_interrupt, .-generate_interrupt
	.align	2
	.global	change_access_level_unpriv
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_access_level_unpriv, %function
change_access_level_unpriv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	.syntax divided
@ 34 "the_stack_data/869875.c" 1
	MRS R0, CONTROL
@ 0 "" 2
@ 36 "the_stack_data/869875.c" 1
	ORR R0, R0, 0x01
@ 0 "" 2
@ 38 "the_stack_data/869875.c" 1
	MSR CONTROL, R0
@ 0 "" 2
	.arm
	.syntax unified
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	change_access_level_unpriv, .-change_access_level_unpriv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"In thread mode : before interrupt\000"
	.align	2
.LC1:
	.ascii	"In thread mode : after interrupt\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	puts
	bl	change_access_level_unpriv
	bl	generate_interrupt
	ldr	r0, .L7+4
	bl	puts
.L6:
	b	.L6
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"In handler mode : ISR\000"
	.text
	.align	2
	.global	RTC_WKUP_IRQHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	RTC_WKUP_IRQHandler, %function
RTC_WKUP_IRQHandler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L10
	bl	puts
	nop
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.size	RTC_WKUP_IRQHandler, .-RTC_WKUP_IRQHandler
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Hard fault detected.\000"
	.text
	.align	2
	.global	HardFault_Handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	HardFault_Handler, %function
HardFault_Handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L14
	bl	puts
.L13:
	b	.L13
.L15:
	.align	2
.L14:
	.word	.LC3
	.size	HardFault_Handler, .-HardFault_Handler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
