	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_write
_file_write:                            ## @file_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	cmpq	$0, 16(%rdi)
	je	LBB0_6
## %bb.2:
	movl	%edx, %ebx
	movq	_BIO_FLAGS_UPLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rdi), %rcx
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.3:
	movq	%rsi, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_UP_fwrite
	jmp	LBB0_5
LBB0_4:
	movq	%rsi, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_fwrite
LBB0_5:
	testl	%eax, %eax
	cmovel	%eax, %ebx
	movl	%ebx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_FLAGS_UPLINK,4,2           ## @BIO_FLAGS_UPLINK
	.no_dead_strip	_file_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_write
_file_write:                            ; @file_write
	.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
	mov	x8, x0
	mov	w0, #0
	cbz	x1, LBB0_6
; %bb.1:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_6
; %bb.2:
	mov	x19, x2
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _BIO_FLAGS_UPLINK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BIO_FLAGS_UPLINK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	ldr	x3, [x8, #8]
	mov	x0, x1
	mov	x1, x2
	mov	w2, #1
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	bl	_UP_fwrite
	b	LBB0_5
LBB0_4:
	bl	_fwrite
LBB0_5:
	cmp	w0, #0
	csel	w0, wzr, w19, eq
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_FLAGS_UPLINK,4,2           ; @BIO_FLAGS_UPLINK
	.no_dead_strip	_file_write
.subsections_via_symbols
