	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_getstatusex
___card_getstatusex:                    ## @__card_getstatusex
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -32(%rbp)
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jg	LBB0_8
## %bb.1:
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_8
## %bb.2:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	js	LBB0_9
## %bb.3:
	movq	_CARD_MAXFILES@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jle	LBB0_9
## %bb.4:
	movq	%rdx, %r14
	leaq	-32(%rbp), %rsi
	callq	___card_getcntrlblock
	testq	%rax, %rax
	js	LBB0_11
## %bb.5:
	movq	_CARD_ERROR_BROKEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	-32(%rbp), %rdi
	callq	___card_getdirblock
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	shlq	$2, %rbx
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_7:
	movq	-32(%rbp), %rdi
	movq	%r15, %rsi
	callq	___card_putcntrlblock
	jmp	LBB0_11
LBB0_8:
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_CARD_ERROR_FATAL_ERROR@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	_CARD_MAXFILES,8,3              ## @CARD_MAXFILES
	.comm	_CARD_ERROR_FATAL_ERROR,8,3     ## @CARD_ERROR_FATAL_ERROR
	.comm	_CARD_ERROR_BROKEN,8,3          ## @CARD_ERROR_BROKEN
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.no_dead_strip	___card_getstatusex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_getstatusex
___card_getstatusex:                    ; @__card_getstatusex
	.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
	str	xzr, [sp, #8]
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, #4, le
	b.gt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CARD_ERROR_NOCARD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x20, x1
	tbnz	x1, #63, LBB0_8
; %bb.3:
Lloh8:
	adrp	x8, _CARD_MAXFILES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CARD_MAXFILES@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x20
	b.le	LBB0_8
; %bb.4:
	mov	x19, x2
	add	x1, sp, #8
	bl	___card_getcntrlblock
	tbnz	x0, #63, LBB0_10
; %bb.5:
Lloh11:
	adrp	x8, _CARD_ERROR_BROKEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CARD_ERROR_BROKEN@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	ldr	x0, [sp, #8]
	bl	___card_getdirblock
	cbz	x0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _CARD_ERROR_READY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CARD_ERROR_READY@GOTPAGEOFF]
Lloh16:
	ldr	x21, [x8]
	ldr	x8, [x0]
	add	x1, x8, x20, lsl #2
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
LBB0_7:
	ldr	x0, [sp, #8]
	mov	x1, x21
	bl	___card_putcntrlblock
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _CARD_ERROR_FATAL_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CARD_ERROR_FATAL_ERROR@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
LBB0_10:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.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	_CARD_MAXFILES,8,3              ; @CARD_MAXFILES
	.comm	_CARD_ERROR_FATAL_ERROR,8,3     ; @CARD_ERROR_FATAL_ERROR
	.comm	_CARD_ERROR_BROKEN,8,3          ; @CARD_ERROR_BROKEN
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.no_dead_strip	___card_getstatusex
.subsections_via_symbols
