	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_enableinterrupt
___card_enableinterrupt:                ## @__card_enableinterrupt
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rbx
	cmpq	%rdi, (%rax)
	jg	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_6
## %bb.2:
	movl	%esi, %r14d
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXI_SPEED16MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_EXI_Select
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	$129, -48(%rbp)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	movl	%eax, -44(%rbp)
	movq	_EXI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_EXI_Imm
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_EXI_Sync
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_EXI_Deselect
	movq	_CARD_ERROR_BUSY@GOTPCREL(%rip), %rcx
	movq	%rcx, %rbx
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %rbx
LBB0_5:
	testq	%r14, %r14
	cmoveq	%rcx, %rbx
	testq	%rax, %rax
	cmoveq	%rcx, %rbx
LBB0_6:
	movq	(%rbx), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EXI_CHANNEL_0,8,3              ## @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ## @EXI_CHANNEL_2
	.comm	_CARD_ERROR_NOCARD,8,3          ## @CARD_ERROR_NOCARD
	.comm	_EXI_DEVICE_0,4,2               ## @EXI_DEVICE_0
	.comm	_EXI_SPEED16MHZ,4,2             ## @EXI_SPEED16MHZ
	.comm	_EXI_WRITE,4,2                  ## @EXI_WRITE
	.comm	_CARD_ERROR_BUSY,8,3            ## @CARD_ERROR_BUSY
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.no_dead_strip	___card_enableinterrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_enableinterrupt
___card_enableinterrupt:                ; @__card_enableinterrupt
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _EXI_CHANNEL_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXI_CHANNEL_0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _EXI_CHANNEL_2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXI_CHANNEL_2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #4, le
	b.le	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh9:
	adrp	x8, _EXI_DEVICE_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXI_DEVICE_0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _EXI_SPEED16MHZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXI_SPEED16MHZ@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_EXI_Select
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #129
	cmp	w20, #0
	cset	w9, ne
	stp	w8, w9, [sp]
Lloh15:
	adrp	x8, _EXI_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXI_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #2
	mov	x4, #0
	bl	_EXI_Imm
	mov	x20, x0
	mov	x0, x19
	bl	_EXI_Sync
	mov	x21, x0
	mov	x0, x19
	bl	_EXI_Deselect
	cmp	x20, #0
	ccmp	x21, #0, #4, ne
	ccmp	x0, #0, #4, ne
Lloh18:
	adrp	x8, _CARD_ERROR_BUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CARD_ERROR_BUSY@GOTPAGEOFF]
Lloh20:
	adrp	x9, _CARD_ERROR_READY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CARD_ERROR_READY@GOTPAGEOFF]
	csel	x8, x9, x8, ne
	b	LBB0_4
LBB0_3:
Lloh22:
	adrp	x8, _CARD_ERROR_NOCARD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CARD_ERROR_NOCARD@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x8]
	ldr	x8, [sp, #8]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EXI_CHANNEL_0,8,3              ; @EXI_CHANNEL_0
	.comm	_EXI_CHANNEL_2,8,3              ; @EXI_CHANNEL_2
	.comm	_CARD_ERROR_NOCARD,8,3          ; @CARD_ERROR_NOCARD
	.comm	_EXI_DEVICE_0,4,2               ; @EXI_DEVICE_0
	.comm	_EXI_SPEED16MHZ,4,2             ; @EXI_SPEED16MHZ
	.comm	_EXI_WRITE,4,2                  ; @EXI_WRITE
	.comm	_CARD_ERROR_BUSY,8,3            ; @CARD_ERROR_BUSY
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.no_dead_strip	___card_enableinterrupt
.subsections_via_symbols
