	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __blockwritecallback
___blockwritecallback:                  ## @__blockwritecallback
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	(%rdi,%rdi,4), %rbx
	subl	$-128, (%r12,%rbx,8)
	subl	$-128, 4(%r12,%rbx,8)
	movq	%rsi, %r15
	subl	$-128, 8(%r12,%rbx,8)
	movq	16(%r12,%rbx,8), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 16(%r12,%rbx,8)
	cmpq	$2, %rax
	jl	LBB0_2
## %bb.1:
	leaq	___blockwritecallback(%rip), %rsi
	movq	%r14, %rdi
	callq	___card_writepage
	movq	%rax, %r15
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_5
LBB0_2:
	cmpl	$0, 32(%r12,%rbx,8)
	jne	LBB0_4
## %bb.3:
	leaq	(%r12,%rbx,8), %rdi
	movq	%r15, %rsi
	callq	___card_putcntrlblock
LBB0_4:
	movq	24(%r12,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	(%r12,%rbx,8), %rcx
	addq	$24, %rcx
	movq	$0, (%rcx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.comm	_cardmap,8,3                    ## @cardmap
	.no_dead_strip	___blockwritecallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __blockwritecallback
___blockwritecallback:                  ; @__blockwritecallback
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _cardmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	w8, #40
	madd	x21, x0, x8, x22
	ldr	d0, [x21]
	movi.2s	v1, #128
	add.2s	v0, v0, v1
	str	d0, [x21]
	ldr	w8, [x21, #8]
	add	w8, w8, #128
	str	w8, [x21, #8]
	ldr	x8, [x21, #16]
	sub	x9, x8, #1
	str	x9, [x21, #16]
	cmp	x8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, ___blockwritecallback@PAGE
Lloh4:
	add	x1, x1, ___blockwritecallback@PAGEOFF
	mov	x0, x19
	bl	___card_writepage
	mov	x20, x0
Lloh5:
	adrp	x8, _CARD_ERROR_READY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CARD_ERROR_READY@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_6
LBB0_2:
	mov	w8, #40
	madd	x8, x19, x8, x22
	ldr	w8, [x8, #32]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	___card_putcntrlblock
LBB0_4:
	mov	w8, #40
	madd	x8, x19, x8, x22
	ldr	x2, [x8, #24]!
	cbz	x2, LBB0_6
; %bb.5:
	str	xzr, [x8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.comm	_cardmap,8,3                    ; @cardmap
	.no_dead_strip	___blockwritecallback
.subsections_via_symbols
