	.file	"173351.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: ppoll file\n"
	.text
	.globl	die_usage
	.type	die_usage, @function
die_usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	die_usage, .-die_usage
	.section	.rodata
.LC1:
	.string	"could not open provided file"
.LC2:
	.string	"ppoll returned error"
	.align 8
.LC3:
	.string	"ppoll timed out before stdout was available for write"
	.align 8
.LC4:
	.string	"ppoll returned success response, but stdout is not available for write"
	.text
	.globl	main
	.type	main, @function
main:
.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, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -212[rbp], 0
	jg	.L3
	call	die_usage
.L3:
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -200[rbp], eax
	cmp	DWORD PTR -200[rbp], 0
	jns	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L4:
	mov	DWORD PTR -176[rbp], 1
	mov	WORD PTR -172[rbp], 21
	mov	DWORD PTR -168[rbp], 0
	mov	WORD PTR -164[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR -160[rbp], eax
	mov	WORD PTR -156[rbp], 5
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -144[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	esi, 31
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	esi, 9
	mov	rdi, rax
	call	sigaddset@PLT
	mov	QWORD PTR -192[rbp], 5000
	mov	QWORD PTR -184[rbp], 0
	lea	rcx, -144[rbp]
	lea	rdx, -192[rbp]
	lea	rax, -176[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	ppoll@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], -1
	jne	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L6:
	cmp	DWORD PTR -196[rbp], 0
	jne	.L7
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L7:
	movzx	eax, WORD PTR -170[rbp]
	cwde
	and	eax, 4
	test	eax, eax
	je	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
.L9:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"173351.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: ppoll file\012\000"
	.text
	.align	2
	.global	die_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	die_usage, %function
die_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	die_usage, .-die_usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"could not open provided file\000"
	.align	2
.LC2:
	.ascii	"ppoll returned error\000"
	.align	2
.LC3:
	.ascii	"ppoll timed out before stdout was available for wri"
	.ascii	"te\000"
	.align	2
.LC4:
	.ascii	"ppoll returned success response, but stdout is not "
	.ascii	"available for write\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-184]
	str	r1, [fp, #-188]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bgt	.L5
	bl	die_usage
.L5:
	ldr	r3, [fp, #-188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-176]
	ldr	r3, [fp, #-176]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L13+4
	bl	perror
	mov	r3, #1
	b	.L11
.L6:
	mov	r3, #1
	str	r3, [fp, #-160]
	mov	r3, #21
	strh	r3, [fp, #-156]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-152]
	mov	r3, #1
	strh	r3, [fp, #-148]	@ movhi
	ldr	r3, [fp, #-176]
	str	r3, [fp, #-144]
	mov	r3, #5
	strh	r3, [fp, #-140]	@ movhi
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #136
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r1, #31
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r1, #3
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r1, #9
	mov	r0, r3
	bl	sigaddset
	ldr	r3, .L13+8
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-164]
	sub	r3, fp, #136
	sub	r2, fp, #168
	sub	r0, fp, #160
	mov	r1, #3
	bl	ppoll
	str	r0, [fp, #-172]
	ldr	r3, [fp, #-172]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L13+12
	bl	perror
	mov	r3, #1
	b	.L11
.L8:
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L13+16
	bl	perror
	mov	r3, #1
	b	.L11
.L9:
	ldrsh	r3, [fp, #-154]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L10
	mov	r3, #0
	b	.L11
.L10:
	ldr	r0, .L13+20
	bl	perror
	mov	r3, #1
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	.LC1
	.word	5000
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
