	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_free
_file_free:                             ## @file_free
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	$1, %r14d
	cmpq	$0, 24(%rdi)
	je	LBB0_10
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.4:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.5:
	movq	_BIO_FLAGS_UPLINK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	callq	_UP_fclose
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:
	callq	_fclose
LBB0_8:
	movq	$0, 16(%rbx)
	movl	(%r15), %eax
	movl	%eax, (%rbx)
LBB0_9:
	movq	$0, 8(%rbx)
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_FLAGS_UPLINK,4,2           ## @BIO_FLAGS_UPLINK
	.no_dead_strip	_file_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_free
_file_free:                             ; @file_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w8, [x19]
Lloh0:
	adrp	x20, _BIO_FLAGS_UPLINK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BIO_FLAGS_UPLINK@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	bl	_UP_fclose
	b	LBB0_7
LBB0_6:
	bl	_fclose
LBB0_7:
	str	xzr, [x19, #16]
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_8:
	str	xzr, [x19, #8]
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_FLAGS_UPLINK,4,2           ; @BIO_FLAGS_UPLINK
	.no_dead_strip	_file_free
.subsections_via_symbols
