	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __format_callback
___format_callback:                     ## @__format_callback
	.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, %r12
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	(%rdi,%rdi,4), %rbx
	movl	(%r13,%rbx,8), %ecx
	leal	1(%rcx), %esi
	movl	%esi, (%r13,%rbx,8)
	movq	_CARD_SYSAREA@GOTPCREL(%rip), %rdx
	movl	%esi, %eax
	subl	(%rdx), %eax
	jge	LBB0_1
## %bb.4:
	imull	4(%r13,%rbx,8), %esi
	leaq	___format_callback(%rip), %rdx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___card_sectorerase             ## TAILCALL
LBB0_1:
	cmpl	$8, %ecx
	jg	LBB0_2
## %bb.5:
	movl	4(%r13,%rbx,8), %esi
	imull	%eax, %esi
	shll	$13, %eax
	movslq	%eax, %rcx
	addq	16(%r13,%rbx,8), %rcx
	leaq	___format_callback(%rip), %r8
	movq	%r12, %rdi
	movl	$8192, %edx                     ## imm = 0x2000
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___card_write                   ## TAILCALL
LBB0_2:
	leaq	(,%rbx,8), %rax
	addq	%r13, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r13,%rbx,8), %rsi
	movq	_CARD_SYSDIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	movq	%rdi, 32(%r13,%rbx,8)
	movq	_CARD_SYSDIR_BACK@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_memcpy
	movq	16(%r13,%rbx,8), %rsi
	movq	_CARD_SYSBAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rsi, %rdi
	movq	%rdi, 24(%r13,%rbx,8)
	movq	_CARD_SYSBAT_BACK@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_memcpy
	movq	8(%r13,%rbx,8), %r15
	movq	$0, 8(%r13,%rbx,8)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	___card_putcntrlblock
	testq	%r15, %r15
	je	LBB0_3
## %bb.6:
	movq	%r15, %rax
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	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
	.comm	_CARD_SYSAREA,4,2               ## @CARD_SYSAREA
	.comm	_CARD_SYSDIR,8,3                ## @CARD_SYSDIR
	.comm	_CARD_SYSDIR_BACK,8,3           ## @CARD_SYSDIR_BACK
	.comm	_CARD_SYSBAT,8,3                ## @CARD_SYSBAT
	.comm	_CARD_SYSBAT_BACK,8,3           ## @CARD_SYSBAT_BACK
	.no_dead_strip	___format_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __format_callback
___format_callback:                     ; @__format_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, _cardmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #40
	madd	x21, x0, x9, x8
	ldr	w11, [x21]
	add	w10, w11, #1
	str	w10, [x21]
Lloh3:
	adrp	x9, _CARD_SYSAREA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CARD_SYSAREA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	subs	w9, w10, w9
	b.ge	LBB0_2
; %bb.1:
	mov	w9, #40
	madd	x8, x19, x9, x8
	ldr	w8, [x8, #4]
	mul	w1, w8, w10
Lloh6:
	adrp	x2, ___format_callback@PAGE
Lloh7:
	add	x2, x2, ___format_callback@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	___card_sectorerase
LBB0_2:
	cmp	w11, #8
	b.gt	LBB0_4
; %bb.3:
	mov	w10, #40
	madd	x8, x19, x10, x8
	ldr	w10, [x8, #4]
	mul	w1, w10, w9
	ldr	x8, [x8, #16]
	lsl	w9, w9, #13
Lloh8:
	adrp	x4, ___format_callback@PAGE
Lloh9:
	add	x4, x4, ___format_callback@PAGEOFF
	add	x3, x8, w9, sxtw
	mov	x0, x19
	mov	w2, #8192
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	___card_write
LBB0_4:
	mov	x20, x1
	mov	w9, #40
	madd	x22, x19, x9, x8
	ldr	x8, [x22, #16]
Lloh10:
	adrp	x9, _CARD_SYSDIR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CARD_SYSDIR@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	str	x0, [x22, #32]
Lloh13:
	adrp	x9, _CARD_SYSDIR_BACK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CARD_SYSDIR_BACK@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w2, #8192
	bl	_memcpy
	ldr	x8, [x22, #16]
Lloh16:
	adrp	x9, _CARD_SYSBAT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CARD_SYSBAT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	str	x0, [x22, #24]
Lloh19:
	adrp	x9, _CARD_SYSBAT_BACK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CARD_SYSBAT_BACK@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w2, #8192
	bl	_memcpy
	ldr	x0, [x22, #8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	str	xzr, [x22, #8]
	mov	x0, x21
	mov	x1, x20
	bl	___card_putcntrlblock
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x2, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x2
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_cardmap,8,3                    ; @cardmap
	.comm	_CARD_SYSAREA,4,2               ; @CARD_SYSAREA
	.comm	_CARD_SYSDIR,8,3                ; @CARD_SYSDIR
	.comm	_CARD_SYSDIR_BACK,8,3           ; @CARD_SYSDIR_BACK
	.comm	_CARD_SYSBAT,8,3                ; @CARD_SYSBAT
	.comm	_CARD_SYSBAT_BACK,8,3           ; @CARD_SYSBAT_BACK
	.no_dead_strip	___format_callback
.subsections_via_symbols
