	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_cleanup
_file_cleanup:                          ## @file_cleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_APR_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movl	(%rdi), %ebx
	movl	$-1, (%rdi)
	movl	%ebx, %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movl	%ebx, (%r12)
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_5
LBB0_1:
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.2:
	movq	_APR_FOPEN_DELONCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_5
## %bb.3:
	movl	24(%r12), %edi
	callq	_unlink
LBB0_5:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_apr_pollset_destroy
	cmpq	(%r13), %r14
	cmoveq	%rax, %r14
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_APR_FOPEN_DELONCLOSE,4,2       ## @APR_FOPEN_DELONCLOSE
	.comm	_errno,8,3                      ## @errno
	.no_dead_strip	_file_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_cleanup
_file_cleanup:                          ; @file_cleanup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _APR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _APR_SUCCESS@GOTPAGEOFF]
	ldr	x19, [x23]
	ldr	w22, [x0]
	mov	w8, #-1
	str	w8, [x0]
	mov	x0, x22
	bl	_close
	cbz	x0, LBB0_2
; %bb.1:
	str	w22, [x20]
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
	b	LBB0_5
LBB0_2:
	cbnz	w21, LBB0_5
; %bb.3:
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _APR_FOPEN_DELONCLOSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _APR_FOPEN_DELONCLOSE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x20, #24]
	bl	_unlink
LBB0_5:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_apr_pollset_destroy
	ldr	x8, [x23]
	cmp	x19, x8
	csel	x19, x0, x19, eq
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_APR_FOPEN_DELONCLOSE,4,2       ; @APR_FOPEN_DELONCLOSE
	.comm	_errno,8,3                      ; @errno
	.no_dead_strip	_file_cleanup
.subsections_via_symbols
