	.file	"338491.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"SIGUSR1 signal handler entered\n"
.LC1:
	.string	"the_stack_data/338491.c"
.LC2:
	.string	"bytes == strlen(message)"
	.text
	.globl	sighandler_usr1
	.type	sighandler_usr1, @function
sighandler_usr1:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rax, .LC0[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	cmp	rax, rdx
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 41
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sighandler_usr1, .-sighandler_usr1
	.section	.rodata
	.align 8
.LC3:
	.string	"SIGUSR2 signal handler entered\n"
	.text
	.globl	sighandler_usr2
	.type	sighandler_usr2, @function
sighandler_usr2:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	lea	rax, .LC3[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	cmp	rax, rdx
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 50
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sighandler_usr2, .-sighandler_usr2
	.section	.rodata
	.align 8
.LC4:
	.string	"%s exists, it shouldn't, remove before running this test\n"
.LC5:
	.string	"rc == 0"
.LC6:
	.string	"Couldn't create %s, %s\n"
	.align 8
.LC7:
	.string	"sigsuspend returned %d, errno %d\n"
.LC8:
	.string	"rc < 0 && errno == EINTR"
	.text
	.globl	main
	.type	main, @function
main:
.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, 752
	mov	DWORD PTR -740[rbp], edi
	mov	QWORD PTR -752[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -728[rbp], 0
	cmp	DWORD PTR -740[rbp], 2
	jne	.L8
	mov	rax, QWORD PTR -752[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -728[rbp], rax
	lea	rdx, -464[rbp]
	mov	rax, QWORD PTR -728[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -728[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L18
.L8:
	lea	rax, sighandler_usr1[rip]
	mov	QWORD PTR -320[rbp], rax
	lea	rax, -320[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	lea	rax, -320[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	mov	DWORD PTR -736[rbp], eax
	cmp	DWORD PTR -736[rbp], 0
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 76
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L10:
	lea	rax, sighandler_usr2[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 4
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 12
	call	sigaction@PLT
	mov	DWORD PTR -736[rbp], eax
	cmp	DWORD PTR -736[rbp], 0
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 83
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L11:
	lea	rax, -592[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -592[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -592[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	DWORD PTR -736[rbp], eax
	cmp	DWORD PTR -736[rbp], 0
	je	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 88
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L12:
	cmp	QWORD PTR -728[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -728[rbp]
	mov	edx, 511
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -732[rbp], eax
	cmp	DWORD PTR -732[rbp], 0
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -728[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L18
.L14:
	mov	eax, DWORD PTR -732[rbp]
	mov	edi, eax
	call	close@PLT
.L13:
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -720[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -720[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	mov	DWORD PTR -736[rbp], eax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -736[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -736[rbp], 0
	jns	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L20
.L15:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 110
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L20:
	cmp	QWORD PTR -728[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -728[rbp]
	mov	rdi, rax
	call	unlink@PLT
.L17:
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 16
__PRETTY_FUNCTION__.2:
	.string	"sighandler_usr1"
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 16
__PRETTY_FUNCTION__.1:
	.string	"sighandler_usr2"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"338491.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SIGUSR1 signal handler entered\012\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/338491.c\000"
	.align	2
.LC2:
	.ascii	"bytes == strlen(message)\000"
	.text
	.align	2
	.global	sighandler_usr1
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandler_usr1, %function
sighandler_usr1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L4
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	mov	r0, #1
	bl	write
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L4+4
	mov	r2, #41
	ldr	r1, .L4+8
	ldr	r0, .L4+12
	bl	__assert_fail
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	__PRETTY_FUNCTION__.6062
	.word	.LC1
	.word	.LC2
	.size	sighandler_usr1, .-sighandler_usr1
	.section	.rodata
	.align	2
.LC3:
	.ascii	"SIGUSR2 signal handler entered\012\000"
	.text
	.align	2
	.global	sighandler_usr2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandler_usr2, %function
sighandler_usr2:
	@ args = 0, pretend = 0, frame = 24
	@ 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]
	str	r2, [fp, #-24]
	ldr	r3, .L9
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	mov	r0, #1
	bl	write
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L8
	ldr	r3, .L9+4
	mov	r2, #50
	ldr	r1, .L9+8
	ldr	r0, .L9+12
	bl	__assert_fail
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	__PRETTY_FUNCTION__.6070
	.word	.LC1
	.word	.LC2
	.size	sighandler_usr2, .-sighandler_usr2
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s exists, it shouldn't, remove before running this"
	.ascii	" test\012\000"
	.align	2
.LC5:
	.ascii	"rc == 0\000"
	.align	2
.LC6:
	.ascii	"Couldn't create %s, %s\012\000"
	.align	2
.LC7:
	.ascii	"sigsuspend returned %d, errno %d\012\000"
	.align	2
.LC8:
	.ascii	"rc < 0 && errno == EINTR\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 656
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #660
	str	r0, [fp, #-664]
	str	r1, [fp, #-668]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-656]
	ldr	r3, [fp, #-664]
	cmp	r3, #2
	bne	.L12
	ldr	r3, [fp, #-668]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-656]
	sub	r3, fp, #644
	mov	r1, r3
	ldr	r0, [fp, #-656]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-656]
	ldr	r1, .L25+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L22
.L12:
	ldr	r3, .L25+12
	str	r3, [fp, #-296]
	sub	r3, fp, #296
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-164]
	mov	r3, #0
	str	r3, [fp, #-160]
	sub	r3, fp, #296
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	str	r0, [fp, #-652]
	ldr	r3, [fp, #-652]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L25+16
	mov	r2, #76
	ldr	r1, .L25+20
	ldr	r0, .L25+24
	bl	__assert_fail
.L14:
	ldr	r3, .L25+28
	str	r3, [fp, #-156]
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #4
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #12
	bl	sigaction
	str	r0, [fp, #-652]
	ldr	r3, [fp, #-652]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L25+16
	mov	r2, #83
	ldr	r1, .L25+20
	ldr	r0, .L25+24
	bl	__assert_fail
.L15:
	sub	r3, fp, #424
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #424
	mov	r1, #12
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #424
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	str	r0, [fp, #-652]
	ldr	r3, [fp, #-652]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L25+16
	mov	r2, #88
	ldr	r1, .L25+20
	ldr	r0, .L25+24
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-656]
	cmp	r3, #0
	beq	.L17
	ldr	r2, .L25+32
	mov	r1, #64
	ldr	r0, [fp, #-656]
	bl	open
	str	r0, [fp, #-648]
	ldr	r3, [fp, #-648]
	cmp	r3, #0
	bge	.L18
	ldr	r3, .L25+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-656]
	ldr	r1, .L25+36
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L22
.L18:
	ldr	r0, [fp, #-648]
	bl	close
.L17:
	sub	r3, fp, #552
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #552
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #552
	mov	r0, r3
	bl	sigsuspend
	str	r0, [fp, #-652]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-652]
	ldr	r0, .L25+40
	bl	printf
	ldr	r3, [fp, #-652]
	cmp	r3, #0
	bge	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L24
.L19:
	ldr	r3, .L25+16
	mov	r2, #110
	ldr	r1, .L25+20
	ldr	r0, .L25+44
	bl	__assert_fail
.L24:
	ldr	r3, [fp, #-656]
	cmp	r3, #0
	beq	.L21
	ldr	r0, [fp, #-656]
	bl	unlink
.L21:
	mov	r3, #0
.L22:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC9
	.word	stderr
	.word	.LC4
	.word	sighandler_usr1
	.word	__PRETTY_FUNCTION__.6082
	.word	.LC1
	.word	.LC5
	.word	sighandler_usr2
	.word	511
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6062, %object
	.size	__PRETTY_FUNCTION__.6062, 16
__PRETTY_FUNCTION__.6062:
	.ascii	"sighandler_usr1\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6070, %object
	.size	__PRETTY_FUNCTION__.6070, 16
__PRETTY_FUNCTION__.6070:
	.ascii	"sighandler_usr2\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6082, %object
	.size	__PRETTY_FUNCTION__.6082, 5
__PRETTY_FUNCTION__.6082:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
