	.file	"123057.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"ret_poll:\t%d\nerrno:\t%d\nstrerror:\t%s\n"
	.align 8
.LC1:
	.string	"ret_read:\t%zd\nerrno:\t%d\nstrerror:\t%s\nbuff:\t%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -136[rbp], 0
	mov	WORD PTR -132[rbp], 1
.L2:
	lea	rax, -136[rbp]
	mov	edx, 10000
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -148[rbp], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -148[rbp]
	mov	rcx, rbx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	edx, 99
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	QWORD PTR -144[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	lea	rcx, -128[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	r8, rcx
	mov	rcx, rbx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.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	"123057.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ret_poll:\011%d\012errno:\011%d\012strerror:\011%s\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"ret_read:\011%zd\012errno:\011%d\012strerror:\011%s"
	.ascii	"\012buff:\011%s\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #132
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #124
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
.L2:
	sub	r3, fp, #124
	ldr	r2, .L4+4
	mov	r1, #1
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-132]
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r4
	ldr	r1, [fp, #-132]
	ldr	r0, .L4+8
	bl	printf
	sub	r3, fp, #116
	mov	r2, #99
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-128]
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r2, r0
	sub	r3, fp, #116
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r4
	ldr	r1, [fp, #-128]
	ldr	r0, .L4+12
	bl	printf
	b	.L2
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	10000
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
