	.file	"extr_file.c_test_file_inherit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fdopen.tst"
.LC1:
	.string	"Couldn't create test file\n"
.LC2:
	.string	"tests/file.c"
.LC3:
	.string	"inherit"
.LC4:
	.string	"%d"
.LC5:
	.string	"bad position %u expecting 8\n"
.LC6:
	.string	"Success"
.LC7:
	.string	"Couldn't read back the data\n"
.LC8:
	.string	"Couldn't unlink\n"
.LC9:
	.string	"inherit_no"
.LC10:
	.string	"bad position %u expecting 0\n"
.LC11:
	.string	"Found unexpected data (%s)\n"
.LC12:
	.string	"%s file inherit 1"
.LC13:
	.string	"empty block"
.LC14:
	.string	"valid block"
.LC15:
	.string	"zero count block"
.LC16:
	.string	"small size block"
.LC17:
	.string	"smaller size block"
.LC18:
	.string	"large size block"
	.text
	.p2align 4
	.type	test_file_inherit, @function
test_file_inherit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 168
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rbx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L4:
	mov	edx, DWORD PTR _S_IREAD[rip]
	lea	rbx, -80[rbp]
	lea	r15, -128[rbp]
	mov	r13, rsp
	or	edx, DWORD PTR _S_IWRITE[rip]
	mov	esi, DWORD PTR O_CREAT[rip]
	lea	rdi, .LC0[rip]
	or	esi, DWORD PTR O_RDWR[rip]
	or	esi, DWORD PTR O_BINARY[rip]
	call	open@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	cmp	eax, -1
	mov	r12d, eax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	rdi, r14
	call	get_base_name@PLT
	mov	edx, r12d
	mov	rdi, rbx
	mov	QWORD PTR -104[rbp], rbx
	mov	QWORD PTR -128[rbp], rax
	lea	rax, .LC2[rip]
	lea	rsi, .LC4[rip]
	mov	QWORD PTR -120[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -112[rbp], rax
	xor	eax, eax
	call	sprintf@PLT
	mov	edi, DWORD PTR _P_WAIT[rip]
	mov	rdx, r15
	mov	rsi, r14
	mov	QWORD PTR -96[rbp], 0
	call	_spawnvp@PLT
	mov	edi, r12d
	call	tell@PLT
	mov	edi, r12d
	mov	DWORD PTR -196[rbp], eax
	call	tell@PLT
	mov	edx, DWORD PTR -196[rbp]
	xor	edi, edi
	lea	rsi, .LC5[rip]
	cmp	eax, 8
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	edi, r12d
	call	lseek@PLT
	mov	edi, r12d
	mov	edx, 16
	mov	rsi, rbx
	call	read@PLT
	xor	edi, edi
	cmp	eax, 8
	jne	.L5
	mov	rdi, rbx
	mov	edx, 8
	lea	rsi, .LC6[rip]
	call	memcmp@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
.L5:
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	ok@PLT
	mov	edi, r12d
	call	close@PLT
	lea	rdi, .LC0[rip]
	call	unlink@PLT
	xor	edi, edi
	lea	rsi, .LC8[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, DWORD PTR _S_IREAD[rip]
	mov	esi, DWORD PTR O_CREAT[rip]
	lea	rdi, .LC0[rip]
	or	edx, DWORD PTR _S_IWRITE[rip]
	or	esi, DWORD PTR O_RDWR[rip]
	or	esi, DWORD PTR O_BINARY[rip]
	or	esi, DWORD PTR O_NOINHERIT[rip]
	call	open@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	cmp	eax, -1
	mov	r12d, eax
	setne	dil
	xor	eax, eax
	call	ok@PLT
	mov	edx, r12d
	mov	rdi, rbx
	mov	QWORD PTR -104[rbp], rbx
	lea	rax, .LC2[rip]
	lea	rsi, .LC4[rip]
	mov	QWORD PTR -120[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -112[rbp], rax
	xor	eax, eax
	call	sprintf@PLT
	mov	edi, DWORD PTR _P_WAIT[rip]
	mov	rdx, r15
	mov	rsi, r14
	mov	QWORD PTR -96[rbp], 0
	call	_spawnvp@PLT
	mov	edi, r12d
	call	tell@PLT
	mov	edi, r12d
	mov	r15d, eax
	call	tell@PLT
	xor	edi, edi
	mov	edx, r15d
	lea	rsi, .LC10[rip]
	test	eax, eax
	lea	r15, -176[rbp]
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, r12d
	mov	edx, 16
	mov	rsi, rbx
	call	read@PLT
	xor	edi, edi
	mov	rdx, rbx
	lea	rsi, .LC11[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, r12d
	lea	r12, -192[rbp]
	call	close@PLT
	lea	rdi, .LC0[rip]
	call	unlink@PLT
	xor	edi, edi
	lea	rsi, .LC8[rip]
	test	rax, rax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	eax, DWORD PTR TRUE[rip]
	mov	rdx, r14
	mov	rdi, r13
	lea	rsi, .LC12[rip]
	lea	r14, -160[rbp]
	mov	DWORD PTR -176[rbp], 16
	mov	DWORD PTR -172[rbp], eax
	xor	eax, eax
	mov	QWORD PTR -168[rbp], 0
	call	sprintf@PLT
	mov	esi, 16
	mov	rdi, r12
	call	ZeroMemory@PLT
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	mov	DWORD PTR -192[rbp], 16
	call	create_io_inherit_block@PLT
	mov	ecx, DWORD PTR FALSE[rip]
	xor	edx, edx
	mov	rsi, r13
	lea	r8, .LC13[rip]
	mov	rdi, r12
	call	test_stdout_handle@PLT
	mov	edi, DWORD PTR STD_INPUT_HANDLE[rip]
	call	GetStdHandle@PLT
	sub	rsp, 8
	xor	r9d, r9d
	mov	rcx, r15
	push	0
	mov	r8d, DWORD PTR CREATE_ALWAYS[rip]
	lea	rdi, .LC0[rip]
	mov	edx, DWORD PTR FILE_SHARE_READ[rip]
	mov	esi, DWORD PTR GENERIC_READ[rip]
	mov	QWORD PTR -160[rbp], rax
	or	edx, DWORD PTR FILE_SHARE_WRITE[rip]
	or	esi, DWORD PTR GENERIC_WRITE[rip]
	call	CreateFileA@PLT
	mov	edi, DWORD PTR STD_ERROR_HANDLE[rip]
	mov	QWORD PTR -152[rbp], rax
	call	GetStdHandle@PLT
	mov	rdx, r14
	mov	esi, 3
	mov	rdi, r12
	mov	QWORD PTR -144[rbp], rax
	call	create_io_inherit_block@PLT
	mov	ecx, DWORD PTR TRUE[rip]
	mov	rsi, r13
	mov	rdi, r12
	mov	rdx, QWORD PTR -152[rbp]
	lea	r8, .LC14[rip]
	call	test_stdout_handle@PLT
	mov	rdi, QWORD PTR -152[rbp]
	call	CloseHandle@PLT
	lea	rdi, .LC0[rip]
	call	DeleteFileA@PLT
	mov	r8d, DWORD PTR CREATE_ALWAYS[rip]
	xor	r9d, r9d
	mov	rcx, r15
	mov	edx, DWORD PTR FILE_SHARE_READ[rip]
	mov	esi, DWORD PTR GENERIC_READ[rip]
	lea	rdi, .LC0[rip]
	mov	QWORD PTR [rsp], 0
	or	edx, DWORD PTR FILE_SHARE_WRITE[rip]
	or	esi, DWORD PTR GENERIC_WRITE[rip]
	call	CreateFileA@PLT
	mov	rdx, r14
	mov	esi, 3
	mov	rdi, r12
	mov	QWORD PTR -152[rbp], rax
	call	create_io_inherit_block@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, r13
	mov	rdi, r12
	mov	rdx, QWORD PTR -152[rbp]
	lea	r8, .LC15[rip]
	mov	DWORD PTR [rax], 0
	mov	ecx, DWORD PTR FALSE[rip]
	call	test_stdout_handle@PLT
	mov	rdi, QWORD PTR -152[rbp]
	call	CloseHandle@PLT
	lea	rdi, .LC0[rip]
	call	DeleteFileA@PLT
	mov	r8d, DWORD PTR CREATE_ALWAYS[rip]
	xor	r9d, r9d
	mov	rcx, r15
	mov	edx, DWORD PTR FILE_SHARE_READ[rip]
	mov	esi, DWORD PTR GENERIC_READ[rip]
	lea	rdi, .LC0[rip]
	mov	QWORD PTR [rsp], 0
	or	edx, DWORD PTR FILE_SHARE_WRITE[rip]
	or	esi, DWORD PTR GENERIC_WRITE[rip]
	call	CreateFileA@PLT
	mov	rdx, r14
	mov	esi, 3
	mov	rdi, r12
	mov	QWORD PTR -152[rbp], rax
	call	create_io_inherit_block@PLT
	mov	ecx, DWORD PTR TRUE[rip]
	mov	rsi, r13
	mov	rdi, r12
	mov	rdx, QWORD PTR -152[rbp]
	lea	r8, .LC16[rip]
	sub	DWORD PTR -188[rbp], 3
	call	test_stdout_handle@PLT
	mov	rdi, QWORD PTR -152[rbp]
	call	CloseHandle@PLT
	lea	rdi, .LC0[rip]
	call	DeleteFileA@PLT
	mov	r8d, DWORD PTR CREATE_ALWAYS[rip]
	xor	r9d, r9d
	mov	rcx, r15
	mov	edx, DWORD PTR FILE_SHARE_READ[rip]
	mov	esi, DWORD PTR GENERIC_READ[rip]
	lea	rdi, .LC0[rip]
	mov	QWORD PTR [rsp], 0
	or	edx, DWORD PTR FILE_SHARE_WRITE[rip]
	or	esi, DWORD PTR GENERIC_WRITE[rip]
	call	CreateFileA@PLT
	mov	rdx, r14
	mov	esi, 3
	mov	rdi, r12
	mov	QWORD PTR -152[rbp], rax
	call	create_io_inherit_block@PLT
	mov	ecx, DWORD PTR FALSE[rip]
	mov	rsi, r13
	mov	rdi, r12
	mov	rdx, QWORD PTR -152[rbp]
	lea	r8, .LC17[rip]
	mov	DWORD PTR -188[rbp], 13
	call	test_stdout_handle@PLT
	mov	rdi, QWORD PTR -152[rbp]
	call	CloseHandle@PLT
	lea	rdi, .LC0[rip]
	call	DeleteFileA@PLT
	mov	r8d, DWORD PTR CREATE_ALWAYS[rip]
	xor	r9d, r9d
	mov	rcx, r15
	mov	edx, DWORD PTR FILE_SHARE_READ[rip]
	mov	esi, DWORD PTR GENERIC_READ[rip]
	lea	rdi, .LC0[rip]
	mov	QWORD PTR [rsp], 0
	or	edx, DWORD PTR FILE_SHARE_WRITE[rip]
	or	esi, DWORD PTR GENERIC_WRITE[rip]
	call	CreateFileA@PLT
	mov	rdx, r14
	mov	esi, 3
	mov	rdi, r12
	mov	QWORD PTR -152[rbp], rax
	call	create_io_inherit_block@PLT
	mov	rdx, QWORD PTR -152[rbp]
	mov	rsi, r13
	mov	rdi, r12
	mov	ecx, DWORD PTR TRUE[rip]
	lea	r8, .LC18[rip]
	add	DWORD PTR -188[rbp], 7
	call	test_stdout_handle@PLT
	mov	rdi, QWORD PTR -152[rbp]
	call	CloseHandle@PLT
	lea	rdi, .LC0[rip]
	call	DeleteFileA@PLT
	pop	rax
	pop	rdx
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_file_inherit, .-test_file_inherit
	.comm	_S_IWRITE,4,4
	.comm	_S_IREAD,4,4
	.comm	_P_WAIT,4,4
	.comm	TRUE,4,4
	.comm	STD_INPUT_HANDLE,4,4
	.comm	STD_ERROR_HANDLE,4,4
	.comm	SEEK_SET,4,4
	.comm	O_RDWR,4,4
	.comm	O_NOINHERIT,4,4
	.comm	O_CREAT,4,4
	.comm	O_BINARY,4,4
	.comm	MAX_PATH,4,4
	.comm	GENERIC_WRITE,4,4
	.comm	GENERIC_READ,4,4
	.comm	FILE_SHARE_WRITE,4,4
	.comm	FILE_SHARE_READ,4,4
	.comm	FALSE,4,4
	.comm	CREATE_ALWAYS,4,4
	.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_file.c_test_file_inherit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fdopen.tst\000"
	.align	2
.LC1:
	.ascii	"Couldn't create test file\012\000"
	.align	2
.LC2:
	.ascii	"tests/file.c\000"
	.align	2
.LC3:
	.ascii	"inherit\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"bad position %u expecting 8\012\000"
	.align	2
.LC6:
	.ascii	"Success\000"
	.align	2
.LC7:
	.ascii	"Couldn't read back the data\012\000"
	.align	2
.LC8:
	.ascii	"Couldn't unlink\012\000"
	.align	2
.LC9:
	.ascii	"inherit_no\000"
	.align	2
.LC10:
	.ascii	"bad position %u expecting 0\012\000"
	.align	2
.LC11:
	.ascii	"Found unexpected data (%s)\012\000"
	.align	2
.LC12:
	.ascii	"%s file inherit 1\000"
	.align	2
.LC13:
	.ascii	"empty block\000"
	.align	2
.LC14:
	.ascii	"valid block\000"
	.align	2
.LC15:
	.ascii	"zero count block\000"
	.align	2
.LC16:
	.ascii	"small size block\000"
	.align	2
.LC17:
	.ascii	"smaller size block\000"
	.align	2
.LC18:
	.ascii	"large size block\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_file_inherit, %function
test_file_inherit:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #100
	ldr	r3, .L8
	ldr	r2, .L8+4
	ldr	r3, [r3]
	ldr	r10, .L8+8
	ldr	r9, .L8+12
	ldr	ip, [r2]
	ldr	r8, .L8+16
	ldr	r2, .L8+20
	ldr	lr, [r9]
	mov	r7, r0
	add	r3, r3, #7
	ldr	r0, [r10]
	ldr	r4, [r8]
	ldr	r2, [r2]
	bic	r3, r3, #7
	orr	r1, r0, lr
	sub	sp, sp, r3
	ldr	r3, .L8+24
	orr	r2, ip, r2
	orr	r1, r1, r4
	ldr	r0, .L8+28
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	open
	mov	r4, r0
	adds	r0, r0, #1
	movne	r0, #1
	ldr	r1, .L8+32
	bl	ok
	mov	r0, r7
	bl	get_base_name
	mov	ip, r0
	mov	r6, #0
	ldr	r3, .L8+36
	str	ip, [fp, #-76]
	ldr	ip, .L8+40
	mov	r2, r4
	ldr	r1, .L8+44
	sub	r0, fp, #56
	str	ip, [fp, #-72]
	str	r3, [fp, #-68]
	str	r0, [fp, #-64]
	bl	sprintf
	ldr	r3, .L8+48
	mov	r1, r7
	ldr	r0, [r3]
	sub	r2, fp, #76
	str	r6, [fp, #-60]
	bl	_spawnvp
	mov	r0, r4
	bl	tell
	mov	r5, r0
	mov	r0, r4
	bl	tell
	mov	r2, r0
	sub	r0, r5, #8
	clz	r0, r0
	ldr	r1, .L8+52
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L8+56
	mov	r1, r6
	ldr	r2, [r3]
	mov	r0, r4
	bl	lseek
	mov	r0, r4
	mov	r2, #16
	sub	r1, fp, #56
	bl	read
	cmp	r0, #8
	movne	r0, r6
	add	r5, sp, #16
	bne	.L2
	mov	r2, r0
	ldr	r1, .L8+60
	sub	r0, fp, #56
	bl	memcmp
	clz	r0, r0
	lsr	r0, r0, #5
.L2:
	ldr	r1, .L8+64
	bl	ok
	mov	r0, r4
	bl	close
	ldr	r0, .L8+28
	bl	unlink
	clz	r0, r0
	ldr	r1, .L8+68
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, .L8+4
	ldr	lr, .L8+72
	ldr	r1, [r9]
	ldr	r0, [r2]
	ldr	r3, [r10]
	ldr	r2, .L8+20
	ldr	ip, [r8]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, [lr]
	orr	r3, r3, ip
	orr	r2, r0, r2
	orr	r1, r3, r1
	ldr	r0, .L8+28
	bl	open
	mov	r6, r0
	mov	r4, #0
	adds	r0, r0, #1
	movne	r0, #1
	ldr	r1, .L8+32
	bl	ok
	ldr	ip, .L8+40
	ldr	r3, .L8+76
	mov	r2, r6
	ldr	r1, .L8+44
	sub	r0, fp, #56
	str	ip, [fp, #-72]
	str	r3, [fp, #-68]
	str	r0, [fp, #-64]
	bl	sprintf
	ldr	r3, .L8+48
	mov	r1, r7
	ldr	r0, [r3]
	sub	r2, fp, #76
	str	r4, [fp, #-60]
	bl	_spawnvp
	mov	r0, r6
	bl	tell
	mov	r8, r0
	mov	r0, r6
	bl	tell
	mov	r2, r0
	clz	r0, r8
	ldr	r1, .L8+80
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r6
	mov	r2, #16
	sub	r1, fp, #56
	bl	read
	clz	r0, r0
	sub	r2, fp, #56
	ldr	r1, .L8+84
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r6
	bl	close
	ldr	r0, .L8+28
	bl	unlink
	clz	r0, r0
	mov	r6, #12
	ldr	r1, .L8+68
	lsr	r0, r0, #5
	bl	ok
	ldr	r3, .L8+88
	mov	r2, r7
	ldr	r3, [r3]
	ldr	r1, .L8+92
	mov	r0, r5
	str	r3, [fp, #-96]
	str	r6, [fp, #-100]
	str	r4, [fp, #-92]
	bl	sprintf
	mov	r1, r6
	sub	r0, fp, #112
	bl	ZeroMemory
	mov	r2, r4
	mov	r1, r4
	sub	r0, fp, #112
	str	r6, [fp, #-112]
	bl	create_io_inherit_block
	ldr	ip, .L8+96
	ldr	r1, .L8+100
	ldr	r3, [ip]
	mov	r2, r4
	str	r1, [sp]
	sub	r0, fp, #112
	mov	r1, r5
	bl	test_stdout_handle
	ldr	r3, .L8+104
	ldr	r8, .L8+108
	ldr	r0, [r3]
	bl	GetStdHandle
	mov	ip, r0
	ldr	r7, .L8+112
	ldr	r10, .L8+116
	ldr	r9, .L8+120
	ldr	r6, .L8+124
	ldr	r0, [r8]
	ldr	r1, [r7]
	ldr	lr, [r10]
	ldr	r2, [r9]
	ldr	r3, [r6]
	orr	r1, r0, r1
	sub	r0, fp, #100
	orr	r2, lr, r2
	str	r3, [sp]
	str	r4, [sp, #8]
	mov	r3, r0
	str	r4, [sp, #4]
	ldr	r0, .L8+28
	str	ip, [fp, #-88]
	bl	CreateFileA
	ldr	r3, .L8+128
	str	r0, [fp, #-84]
	ldr	r0, [r3]
	bl	GetStdHandle
	mov	r3, r0
	mov	r1, #3
	sub	r2, fp, #88
	sub	r0, fp, #112
	str	r3, [fp, #-80]
	bl	create_io_inherit_block
	ldr	r2, .L8+132
	ldr	r3, .L8+88
	mov	r1, r5
	ldr	r3, [r3]
	sub	r0, fp, #112
	str	r2, [sp]
	ldr	r2, [fp, #-84]
	bl	test_stdout_handle
	ldr	r0, [fp, #-84]
	bl	CloseHandle
	ldr	r0, .L8+28
	bl	DeleteFileA
	ldr	r0, [r8]
	ldr	r1, [r7]
	ldr	ip, [r10]
	ldr	r2, [r9]
	ldr	r3, [r6]
	orr	r1, r0, r1
	sub	r0, fp, #100
	orr	r2, ip, r2
	str	r3, [sp]
	str	r4, [sp, #8]
	mov	r3, r0
	str	r4, [sp, #4]
	ldr	r0, .L8+28
	bl	CreateFileA
	mov	r3, r0
	mov	r1, #3
	sub	r2, fp, #88
	sub	r0, fp, #112
	str	r3, [fp, #-84]
	bl	create_io_inherit_block
	ldr	r3, [fp, #-104]
	ldr	ip, .L8+96
	ldr	r2, .L8+136
	str	r4, [r3]
	ldr	r3, [ip]
	mov	r1, r5
	str	r2, [sp]
	sub	r0, fp, #112
	ldr	r2, [fp, #-84]
	bl	test_stdout_handle
	ldr	r0, [fp, #-84]
	bl	CloseHandle
	ldr	r0, .L8+28
	bl	DeleteFileA
	ldr	r0, [r8]
	ldr	r1, [r7]
	ldr	ip, [r10]
	ldr	r2, [r9]
	ldr	r3, [r6]
	orr	r1, r0, r1
	sub	r0, fp, #100
	orr	r2, ip, r2
	str	r3, [sp]
	str	r4, [sp, #8]
	mov	r3, r0
	str	r4, [sp, #4]
	ldr	r0, .L8+28
	bl	CreateFileA
	mov	r3, r0
	mov	r1, #3
	sub	r2, fp, #88
	sub	r0, fp, #112
	str	r3, [fp, #-84]
	bl	create_io_inherit_block
	ldr	ip, [fp, #-108]
	ldr	r2, .L8+140
	ldr	r3, .L8+88
	sub	ip, ip, #3
	ldr	r3, [r3]
	mov	r1, r5
	str	r2, [sp]
	sub	r0, fp, #112
	ldr	r2, [fp, #-84]
	str	ip, [fp, #-108]
	bl	test_stdout_handle
	ldr	r0, [fp, #-84]
	bl	CloseHandle
	ldr	r0, .L8+28
	bl	DeleteFileA
	ldr	r0, [r8]
	ldr	r1, [r7]
	ldr	ip, [r10]
	ldr	r2, [r9]
	ldr	r3, [r6]
	orr	r1, r0, r1
	sub	r0, fp, #100
	orr	r2, ip, r2
	str	r3, [sp]
	str	r4, [sp, #8]
	mov	r3, r0
	str	r4, [sp, #4]
	ldr	r0, .L8+28
	bl	CreateFileA
	mov	r3, r0
	mov	r1, #3
	sub	r2, fp, #88
	sub	r0, fp, #112
	str	r3, [fp, #-84]
	bl	create_io_inherit_block
	mov	ip, #9
	ldr	r2, .L8+144
	ldr	r1, .L8+96
	sub	r0, fp, #112
	ldr	r3, [r1]
	mov	r1, r5
	str	r2, [sp]
	ldr	r2, [fp, #-84]
	str	ip, [fp, #-108]
	bl	test_stdout_handle
	ldr	r0, [fp, #-84]
	bl	CloseHandle
	ldr	r0, .L8+28
	bl	DeleteFileA
	ldr	r0, [r8]
	ldr	r1, [r7]
	ldr	ip, [r10]
	ldr	r2, [r9]
	ldr	r3, [r6]
	orr	r1, r0, r1
	sub	r0, fp, #100
	orr	r2, ip, r2
	str	r3, [sp]
	str	r4, [sp, #8]
	mov	r3, r0
	str	r4, [sp, #4]
	ldr	r0, .L8+28
	bl	CreateFileA
	mov	r3, r0
	mov	r1, #3
	sub	r2, fp, #88
	sub	r0, fp, #112
	str	r3, [fp, #-84]
	bl	create_io_inherit_block
	ldr	ip, [fp, #-108]
	ldr	r2, .L8+148
	ldr	r3, .L8+88
	add	ip, ip, #7
	ldr	r3, [r3]
	mov	r1, r5
	str	r2, [sp]
	sub	r0, fp, #112
	ldr	r2, [fp, #-84]
	str	ip, [fp, #-108]
	bl	test_stdout_handle
	ldr	r0, [fp, #-84]
	bl	CloseHandle
	ldr	r0, .L8+28
	bl	DeleteFileA
	ldr	r3, .L8+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	MAX_PATH
	.word	_S_IREAD
	.word	O_CREAT
	.word	O_RDWR
	.word	O_BINARY
	.word	_S_IWRITE
	.word	.LC19
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.word	.LC4
	.word	_P_WAIT
	.word	.LC5
	.word	SEEK_SET
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	O_NOINHERIT
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	TRUE
	.word	.LC12
	.word	FALSE
	.word	.LC13
	.word	STD_INPUT_HANDLE
	.word	GENERIC_READ
	.word	GENERIC_WRITE
	.word	FILE_SHARE_READ
	.word	FILE_SHARE_WRITE
	.word	CREATE_ALWAYS
	.word	STD_ERROR_HANDLE
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	test_file_inherit, .-test_file_inherit
	.comm	_S_IWRITE,4,4
	.comm	_S_IREAD,4,4
	.comm	_P_WAIT,4,4
	.comm	TRUE,4,4
	.comm	STD_INPUT_HANDLE,4,4
	.comm	STD_ERROR_HANDLE,4,4
	.comm	SEEK_SET,4,4
	.comm	O_RDWR,4,4
	.comm	O_NOINHERIT,4,4
	.comm	O_CREAT,4,4
	.comm	O_BINARY,4,4
	.comm	MAX_PATH,4,4
	.comm	GENERIC_WRITE,4,4
	.comm	GENERIC_READ,4,4
	.comm	FILE_SHARE_WRITE,4,4
	.comm	FILE_SHARE_READ,4,4
	.comm	FALSE,4,4
	.comm	CREATE_ALWAYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
