	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_write
_close_write:                           ## @close_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	%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
	movq	%rdi, %rbx
	movq	_R1BIO_BehindIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	callq	_bio_free_pages
	movq	24(%rbx), %rdi
	callq	_bio_put
	movq	$0, 24(%rbx)
LBB0_2:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %r12d
	movl	12(%rbx), %r13d
	movq	_R1BIO_Degraded@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%r15d, %r15d
	testq	%rax, %rax
	sete	%r15b
	movq	_R1BIO_BehindIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movq	%rax, %r8
	callq	_md_bitmap_endwrite
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_md_write_end                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R1BIO_BehindIO,4,2             ## @R1BIO_BehindIO
	.comm	_R1BIO_Degraded,4,2             ## @R1BIO_Degraded
	.no_dead_strip	_close_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_write
_close_write:                           ; @close_write
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x25, _R1BIO_BehindIO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _R1BIO_BehindIO@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #24]
	bl	_bio_free_pages
	ldr	x0, [x19, #24]
	bl	_bio_put
	str	xzr, [x19, #24]
LBB0_2:
	ldr	x8, [x19]
	ldr	w21, [x8]
	ldp	w23, w22, [x19, #12]
Lloh2:
	adrp	x8, _R1BIO_Degraded@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R1BIO_Degraded@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cmp	x0, #0
	cset	w24, eq
	ldr	w0, [x25]
	mov	x1, x20
	bl	_test_bit
	mov	x4, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_md_bitmap_endwrite
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_md_write_end
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_R1BIO_BehindIO,4,2             ; @R1BIO_BehindIO
	.comm	_R1BIO_Degraded,4,2             ; @R1BIO_Degraded
	.no_dead_strip	_close_write
.subsections_via_symbols
