	.file	"extr_fsx.c_docloseopen.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lu close/open\n"
.LC1:
	.string	"docloseopen: close"
.LC2:
	.string	"docloseopen: open"
	.text
	.p2align 4
	.globl	docloseopen
	.type	docloseopen, @function
docloseopen:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR testcalls[rip]
	cmp	rsi, QWORD PTR simulatedopcount[rip]
	jle	.L11
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR debug[rip], 0
	jne	.L15
.L4:
	mov	rdi, QWORD PTR fd[rip]
	call	close@PLT
	test	rax, rax
	jne	.L16
.L5:
	mov	esi, DWORD PTR O_RDWR[rip]
	mov	edi, DWORD PTR fname[rip]
	xor	edx, edx
	call	open@PLT
	mov	QWORD PTR fd[rip], rax
	test	rax, rax
	js	.L17
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	prterr@PLT
	mov	edi, 180
	call	report_failure@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC0[rip]
	call	prt@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 16
	lea	rdi, .LC2[rip]
	call	prterr@PLT
	mov	edi, 181
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	report_failure@PLT
	.cfi_endproc
.LFE0:
	.size	docloseopen, .-docloseopen
	.comm	testcalls,8,8
	.comm	simulatedopcount,8,8
	.comm	fname,4,4
	.comm	fd,8,8
	.comm	debug,8,8
	.comm	O_RDWR,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_fsx.c_docloseopen.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%lu close/open\012\000"
	.align	2
.LC1:
	.ascii	"docloseopen: close\000"
	.align	2
.LC2:
	.ascii	"docloseopen: open\000"
	.text
	.align	2
	.global	docloseopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	docloseopen, %function
docloseopen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L20
	ldr	r3, .L20+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	cmp	r1, r3
	bxle	lr
	ldr	r3, .L20+8
	push	{r4, lr}
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
.L4:
	ldr	r4, .L20+12
	ldr	r0, [r4]
	bl	close
	cmp	r0, #0
	bne	.L19
.L5:
	ldr	r2, .L20+16
	ldr	r3, .L20+20
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, #0
	bl	open
	cmp	r0, #0
	str	r0, [r4]
	popge	{r4, pc}
	ldr	r0, .L20+24
	bl	prterr
	pop	{r4, lr}
	mov	r0, #181
	b	report_failure
.L19:
	ldr	r0, .L20+28
	bl	prterr
	mov	r0, #180
	bl	report_failure
	b	.L5
.L18:
	ldr	r0, .L20+32
	bl	prt
	b	.L4
.L21:
	.align	2
.L20:
	.word	testcalls
	.word	simulatedopcount
	.word	debug
	.word	fd
	.word	O_RDWR
	.word	fname
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	docloseopen, .-docloseopen
	.comm	testcalls,4,4
	.comm	simulatedopcount,4,4
	.comm	fname,4,4
	.comm	fd,4,4
	.comm	debug,4,4
	.comm	O_RDWR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
