	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_mountcallback
___card_mountcallback:                  ## @__card_mountcallback
	.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, %rbx
	movq	%rdi, %r14
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rdi, %r13
	shlq	$4, %r13
	leaq	(%r12,%r13), %r15
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_CARD_ERROR_IOERROR@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_CARD_ERROR_UNLOCKED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_8
## %bb.4:
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	cmpl	$5, %eax
	jg	LBB0_5
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___card_domount                 ## TAILCALL
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___card_dounmount
	movq	%r15, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	___card_verify
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
LBB0_6:
	callq	___card_putcntrlblock
	movq	8(%r12,%r13), %rax
	movq	$0, 8(%r12,%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_7:
	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_ERROR_NOCARD,8,3          ## @CARD_ERROR_NOCARD
	.comm	_CARD_ERROR_IOERROR,8,3         ## @CARD_ERROR_IOERROR
	.comm	_CARD_ERROR_UNLOCKED,8,3        ## @CARD_ERROR_UNLOCKED
	.no_dead_strip	___card_mountcallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_mountcallback
___card_mountcallback:                  ; @__card_mountcallback
	.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]
	add	x21, x22, x0, lsl #4
Lloh3:
	adrp	x8, _CARD_ERROR_NOCARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARD_ERROR_NOCARD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _CARD_ERROR_IOERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CARD_ERROR_IOERROR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	___card_dounmount
	b	LBB0_6
LBB0_2:
Lloh9:
	adrp	x8, _CARD_ERROR_UNLOCKED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CARD_ERROR_UNLOCKED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	cmp	w8, #5
	b.gt	LBB0_5
LBB0_4:
	mov	x0, 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
	b	___card_domount
LBB0_5:
	mov	x0, x21
	bl	___card_verify
	mov	x20, x0
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	___card_putcntrlblock
	add	x8, x22, x19, lsl #4
	ldr	x2, [x8, #8]
	str	xzr, [x8, #8]
	cbz	x2, LBB0_8
; %bb.7:
	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_8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cardmap,8,3                    ; @cardmap
	.comm	_CARD_ERROR_NOCARD,8,3          ; @CARD_ERROR_NOCARD
	.comm	_CARD_ERROR_IOERROR,8,3         ; @CARD_ERROR_IOERROR
	.comm	_CARD_ERROR_UNLOCKED,8,3        ; @CARD_ERROR_UNLOCKED
	.no_dead_strip	___card_mountcallback
.subsections_via_symbols
