	.file	"extr_47236.c_sfd_uaf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pread"
	.text
	.p2align 4
	.type	sfd_uaf, @function
sfd_uaf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 4096
	.cfi_def_cfa_offset 4136
	or	QWORD PTR [rsp], 0
	sub	rsp, 24
	.cfi_def_cfa_offset 4160
	lea	r13, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 4104[rsp], rax
	xor	eax, eax
	mov	r12d, edi
	mov	rbp, rsp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, r13
	mov	edi, 1
	call	err@PLT
.L2:
	mov	rdi, rbp
	mov	BYTE PTR [rsp+rbx], 0
	call	puts@PLT
	mov	DWORD PTR uaf_child_ready[rip], 1
.L4:
	xor	ecx, ecx
	mov	edx, 4095
	mov	rsi, rbp
	mov	edi, r12d
	call	pread@PLT
	movsx	rbx, eax
	cmp	ebx, -1
	jne	.L2
	mov	rax, QWORD PTR ESRCH[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L3
	xor	edi, edi
	call	_exit@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sfd_uaf, .-sfd_uaf
	.comm	uaf_child_ready,4,4
	.comm	errno,8,8
	.comm	ESRCH,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_47236.c_sfd_uaf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pread\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfd_uaf, %function
sfd_uaf:
	@ args = 0, pretend = 0, frame = 4104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #4096
	sub	sp, sp, #12
	add	r3, sp, #4096
	ldr	r2, .L8
	add	r3, r3, #4
	mov	r5, r0
	mov	r8, #0
	ldr	fp, .L8+4
	ldr	r10, .L8+8
	ldr	r7, .L8+12
	ldr	r6, .L8+16
	ldr	r9, .L8+20
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	b	.L4
.L3:
	mov	r1, r9
	mov	r0, #1
	bl	err
.L2:
	add	r3, sp, #8
	add	r4, r3, r4
	add	r0, sp, #4
	strb	r8, [r4, #-4]
	bl	puts
	mov	r3, #1
	str	r3, [r7]
.L4:
	mov	r3, #0
	mov	r2, r6
	mov	r0, r5
	add	r1, sp, #4
	bl	pread
	cmn	r0, #1
	mov	r4, r0
	bne	.L2
	ldr	r2, [fp]
	ldr	r3, [r10]
	cmp	r2, r3
	bne	.L3
	mov	r0, #0
	bl	_exit
	b	.L3
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	errno
	.word	ESRCH
	.word	uaf_child_ready
	.word	4095
	.word	.LC0
	.size	sfd_uaf, .-sfd_uaf
	.comm	uaf_child_ready,4,4
	.comm	errno,4,4
	.comm	ESRCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
