	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CARD_MountAsync                ## -- Begin function CARD_MountAsync
	.p2align	4, 0x90
_CARD_MountAsync:                       ## @CARD_MountAsync
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	ja	LBB0_7
## %bb.2:
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jbe	LBB0_7
## %bb.3:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	callq	__CPU_ISR_Disable
	imulq	$88, %r12, %r15
	movq	_CARD_ERROR_BUSY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, (%r13,%r15)
	jne	LBB0_10
## %bb.4:
	movq	%rax, %rbx
LBB0_5:
	callq	__CPU_ISR_Restore
	movq	(%rbx), %rbx
	jmp	LBB0_9
LBB0_6:
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_CARD_ERROR_FATAL_ERROR@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	(%r15,%r13), %rdx
	addq	$8, %rdx
	movl	8(%r13,%r15), %eax
	testl	%eax, %eax
	je	LBB0_17
LBB0_11:
	leaq	(%r15,%r13), %rsi
	movq	%rcx, (%rsi)
	movq	%rbx, 80(%r13,%r15)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 72(%r13,%r15)
	testq	%r14, %r14
	jne	LBB0_13
## %bb.12:
	movq	___card_defaultapicallback@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
LBB0_13:
	movq	%r14, 64(%r13,%r15)
	movq	$0, 56(%r13,%r15)
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	___card_exthandler@GOTPCREL(%rip), %rax
	movq	%rsi, %r14
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rdx, %rbx
	callq	_EXI_Attach
	movq	%rbx, %rdx
	testq	%rax, %rax
	je	LBB0_20
LBB0_15:
	movq	$0, 48(%r13,%r15)
	movl	$1, (%rdx)
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_EXI_RegisterEXICallback
	movl	40(%r13,%r15), %edi
	callq	_SYS_CancelAlarm
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13,%r15)
	callq	__CPU_ISR_Restore
	movq	___card_mountcallback@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13,%r15)
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___card_unlockedhandler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_EXI_Lock
	testq	%rax, %rax
	je	LBB0_9
## %bb.16:
	leaq	(%r15,%r13), %rax
	addq	$16, %rax
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	___card_domount
	movl	$1, %ebx
	jmp	LBB0_9
LBB0_17:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_EXI_GetState
	movq	_EXI_FLAG_ATTACH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	movq	_CARD_ERROR_WRONGDEVICE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	callq	__CPU_ISR_Restore
	jmp	LBB0_9
LBB0_19:
	movq	_CARD_ERROR_BUSY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	jmp	LBB0_11
LBB0_20:
	movq	%r14, %rcx
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.comm	_CARD_ERROR_NOCARD,8,3          ## @CARD_ERROR_NOCARD
	.comm	_EXI_CHANNEL_0,8,3              ## @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_CARD_ERROR_FATAL_ERROR,8,3     ## @CARD_ERROR_FATAL_ERROR
	.comm	_cardmap,8,3                    ## @cardmap
	.comm	_CARD_ERROR_BUSY,8,3            ## @CARD_ERROR_BUSY
	.comm	_EXI_FLAG_ATTACH,4,2            ## @EXI_FLAG_ATTACH
	.comm	___card_defaultapicallback,8,3  ## @__card_defaultapicallback
	.comm	___card_exthandler,4,2          ## @__card_exthandler
	.comm	___card_mountcallback,8,3       ## @__card_mountcallback
	.comm	_EXI_DEVICE_0,4,2               ## @EXI_DEVICE_0
	.comm	___card_unlockedhandler,4,2     ## @__card_unlockedhandler
	.comm	_CARD_ERROR_WRONGDEVICE,8,3     ## @CARD_ERROR_WRONGDEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CARD_MountAsync                ; -- Begin function CARD_MountAsync
	.p2align	2
_CARD_MountAsync:                       ; @CARD_MountAsync
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _EXI_CHANNEL_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXI_CHANNEL_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EXI_CHANNEL_2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXI_CHANNEL_2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #0, ls
	b.hi	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _CARD_ERROR_FATAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARD_ERROR_FATAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
	b	LBB0_16
LBB0_3:
Lloh9:
	adrp	x8, _CARD_ERROR_NOCARD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CARD_ERROR_NOCARD@GOTPAGEOFF]
Lloh11:
	ldr	x19, [x8]
	b	LBB0_16
LBB0_4:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
Lloh12:
	adrp	x8, _cardmap@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
	bl	__CPU_ISR_Disable
	mov	w8, #88
	madd	x24, x19, x8, x23
	ldr	x8, [x24]
Lloh15:
	adrp	x26, _CARD_ERROR_BUSY@GOTPAGE
Lloh16:
	ldr	x26, [x26, _CARD_ERROR_BUSY@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	bl	__CPU_ISR_Restore
	ldr	x19, [x26]
	b	LBB0_16
LBB0_6:
	mov	w8, #88
	madd	x25, x19, x8, x23
	ldr	w8, [x25, #8]!
	cbz	w8, LBB0_11
LBB0_7:
	str	x9, [x24]
	mov	w9, #88
	madd	x9, x19, x9, x23
Lloh17:
	adrp	x10, ___card_defaultapicallback@GOTPAGE
Lloh18:
	ldr	x10, [x10, ___card_defaultapicallback@GOTPAGEOFF]
	stp	x21, x22, [x9, #72]
Lloh19:
	ldr	x10, [x10]
	cmp	x20, #0
	csel	x10, x10, x20, eq
	stp	xzr, x10, [x9, #56]
	cbnz	w8, LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, ___card_exthandler@GOTPAGE
Lloh21:
	ldr	x8, [x8, ___card_exthandler@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EXI_Attach
	cbz	x0, LBB0_15
LBB0_9:
	mov	w8, #88
	madd	x20, x19, x8, x23
	str	xzr, [x20, #48]
	mov	w8, #1
	str	w8, [x25]
	mov	x0, x19
	mov	x1, #0
	bl	_EXI_RegisterEXICallback
	ldr	w0, [x20, #40]
	bl	_SYS_CancelAlarm
	stp	xzr, xzr, [x20, #24]
	bl	__CPU_ISR_Restore
Lloh23:
	adrp	x8, ___card_mountcallback@GOTPAGE
Lloh24:
	ldr	x8, [x8, ___card_mountcallback@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x20, #16]!
Lloh26:
	adrp	x8, _EXI_DEVICE_0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXI_DEVICE_0@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, ___card_unlockedhandler@GOTPAGE
Lloh30:
	ldr	x8, [x8, ___card_unlockedhandler@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_EXI_Lock
	cbz	x0, LBB0_13
; %bb.10:
	str	xzr, [x20]
	mov	x0, x19
	bl	___card_domount
	mov	w19, #1
	b	LBB0_16
LBB0_11:
	mov	x0, x19
	bl	_EXI_GetState
Lloh32:
	adrp	x8, _EXI_FLAG_ATTACH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EXI_FLAG_ATTACH@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.12:
Lloh35:
	adrp	x8, _CARD_ERROR_WRONGDEVICE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CARD_ERROR_WRONGDEVICE@GOTPAGEOFF]
Lloh37:
	ldr	x19, [x8]
	bl	__CPU_ISR_Restore
	b	LBB0_16
LBB0_13:
	mov	x19, #0
	b	LBB0_16
LBB0_14:
	ldr	x9, [x26]
	ldr	w8, [x25]
	b	LBB0_7
LBB0_15:
Lloh38:
	adrp	x19, _CARD_ERROR_NOCARD@GOTPAGE
Lloh39:
	ldr	x19, [x19, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	ldr	x8, [x19]
	str	x8, [x24]
	bl	__CPU_ISR_Restore
	ldr	x19, [x19]
LBB0_16:
	mov	x0, x19
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.comm	_CARD_ERROR_NOCARD,8,3          ; @CARD_ERROR_NOCARD
	.comm	_EXI_CHANNEL_0,8,3              ; @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_CARD_ERROR_FATAL_ERROR,8,3     ; @CARD_ERROR_FATAL_ERROR
	.comm	_cardmap,8,3                    ; @cardmap
	.comm	_CARD_ERROR_BUSY,8,3            ; @CARD_ERROR_BUSY
	.comm	_EXI_FLAG_ATTACH,4,2            ; @EXI_FLAG_ATTACH
	.comm	___card_defaultapicallback,8,3  ; @__card_defaultapicallback
	.comm	___card_exthandler,4,2          ; @__card_exthandler
	.comm	___card_mountcallback,8,3       ; @__card_mountcallback
	.comm	_EXI_DEVICE_0,4,2               ; @EXI_DEVICE_0
	.comm	___card_unlockedhandler,4,2     ; @__card_unlockedhandler
	.comm	_CARD_ERROR_WRONGDEVICE,8,3     ; @CARD_ERROR_WRONGDEVICE
.subsections_via_symbols
