	.file	"855814.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"arg1: %d, arg2: %d\n"
	.text
	.globl	func1
	.type	func1, @function
func1:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	func1, .-func1
	.section	.rodata
.LC1:
	.string	"Func2 called!"
	.text
	.globl	func2
	.type	func2, @function
func2:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	func2, .-func2
	.section	.rodata
.LC2:
	.string	"Error: got signal %d (%s)\n"
	.text
	.globl	onSignal
	.type	onSignal, @function
onSignal:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	strsignal@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 19
	call	raise@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	onSignal, .-onSignal
	.section	.rodata
	.align 8
.LC3:
	.string	"pid=%d\n&main=%p\n&return2=%p\n&func2=%p\n"
.LC4:
	.string	"return1() = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	lea	rsi, onSignal[rip]
	mov	edi, 11
	call	signal@PLT
	cmp	DWORD PTR -20[rbp], 1
	setg	al
	movzx	eax, al
	mov	DWORD PTR -8[rbp], eax
	call	getpid@PLT
	lea	r8, func2[rip]
	lea	rcx, func1[rip]
	lea	rdx, main[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	esi, 1
	mov	edi, 0
	call	func1
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 0
	je	.L13
	cmp	DWORD PTR -8[rbp], 0
	je	.L8
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	jmp	.L10
.L8:
	mov	edi, 1000000
	call	usleep@PLT
	jmp	.L10
.L13:
	nop
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.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	"855814.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"arg1: %d, arg2: %d\012\000"
	.text
	.align	2
	.global	func1
	.syntax unified
	.arm
	.fpu softvfp
	.type	func1, %function
func1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L3
	bl	printf
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	func1, .-func1
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Func2 called!\000"
	.text
	.align	2
	.global	func2
	.syntax unified
	.arm
	.fpu softvfp
	.type	func2, %function
func2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L6
	bl	puts
	nop
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.size	func2, .-func2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Error: got signal %d (%s)\012\000"
	.text
	.align	2
	.global	onSignal
	.syntax unified
	.arm
	.fpu softvfp
	.type	onSignal, %function
onSignal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	strsignal
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L9
	bl	printf
	mov	r0, #19
	bl	raise
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.size	onSignal, .-onSignal
	.section	.rodata
	.align	2
.LC3:
	.ascii	"pid=%d\012&main=%p\012&return2=%p\012&func2=%p\012\000"
	.align	2
.LC4:
	.ascii	"return1() = %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, .L20
	mov	r0, #11
	bl	signal
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-12]
	bl	getpid
	mov	r1, r0
	ldr	r3, .L20+4
	str	r3, [sp]
	ldr	r3, .L20+8
	ldr	r2, .L20+12
	ldr	r0, .L20+16
	bl	printf
.L16:
	mov	r1, #1
	mov	r0, #0
	bl	func1
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L20+20
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L20+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	b	.L16
.L14:
	ldr	r0, .L20+28
	bl	usleep
	b	.L16
.L19:
	nop
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	onSignal
	.word	func2
	.word	func1
	.word	main
	.word	.LC3
	.word	.LC4
	.word	stdin
	.word	1000000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
