	.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, %r12
	movq	_R1BIO_BehindIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r12), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movslq	(%r12), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	%r15, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_safe_put_page
	decq	%rbx
	decl	%r15d
	jne	LBB0_3
LBB0_4:
	movq	32(%r12), %rdi
	callq	_kfree
	movq	$0, 32(%r12)
LBB0_5:
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	24(%r12), %ebx
	movl	20(%r12), %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	%ebx, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movq	%rax, %r8
	callq	_bitmap_endwrite
	movq	8(%r12), %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, #16
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w21, [x19]
	cbz	w21, LBB0_4
; %bb.2:
	sxtw	x8, w21
	lsl	x8, x8, #2
	sub	x22, x8, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x22]
	bl	_safe_put_page
	sub	x22, x22, #4
	sub	w21, w21, #1
	cbnz	w21, LBB0_3
LBB0_4:
	ldr	x0, [x19, #32]
	bl	_kfree
	str	xzr, [x19, #32]
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w21, [x8]
	ldp	w23, w22, [x19, #20]
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	_bitmap_endwrite
	ldr	x0, [x19, #8]
	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
