	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_fatwritecallback
___card_fatwritecallback:               ## @__card_fatwritecallback
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rdi, %rbx
	shlq	$5, %rbx
	movq	24(%r13,%rbx), %rsi
	leaq	98304(%rsi), %rax
	addq	$131072, %rsi                   ## imm = 0x20000
	leaq	(%rbx,%r13), %rcx
	addq	$16, %rcx
	cmpq	%rax, 16(%r13,%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rax, (%rcx)
	movq	%rax, %rdi
	jmp	LBB0_3
LBB0_1:
	movq	%rsi, (%rcx)
	movq	%rsi, %rdi
	movq	%rax, %rsi
LBB0_3:
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_memcpy
	leaq	(%rbx,%r13), %r12
	cmpl	$0, 8(%r13,%rbx)
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	___card_putcntrlblock
LBB0_5:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	$0, (%r12)
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cardmap,8,3                    ## @cardmap
	.no_dead_strip	___card_fatwritecallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_fatwritecallback
___card_fatwritecallback:               ; @__card_fatwritecallback
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _cardmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	add	x21, x22, x0, lsl #5
	ldr	x9, [x21, #24]
	add	x8, x9, #24, lsl #12            ; =98304
	add	x1, x9, #32, lsl #12            ; =131072
	mov	x9, x21
	ldr	x10, [x9, #16]!
	cmp	x10, x8
	b.eq	LBB0_2
; %bb.1:
	str	x8, [x9]
	mov	x0, x8
	b	LBB0_3
LBB0_2:
	str	x1, [x9]
	mov	x0, x1
	mov	x1, x8
LBB0_3:
	mov	w2, #8192
	bl	_memcpy
	add	x8, x22, x20, lsl #5
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	x2, [x21]
	cbz	x2, LBB0_7
LBB0_5:
	str	xzr, [x21]
	mov	x0, x20
	mov	x1, x19
	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:
	mov	x0, x21
	mov	x1, x19
	bl	___card_putcntrlblock
	ldr	x2, [x21]
	cbnz	x2, LBB0_5
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_cardmap,8,3                    ; @cardmap
	.no_dead_strip	___card_fatwritecallback
.subsections_via_symbols
