	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_setstatusexasync
___card_setstatusexasync:               ## @__card_setstatusexasync
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -64(%rbp)
	movq	_EXI_CHANNEL_0@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jg	LBB0_7
## %bb.1:
	movq	%rdi, %r13
	movq	_EXI_CHANNEL_2@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_7
## %bb.2:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	js	LBB0_6
## %bb.3:
	movq	_CARD_MAXFILES@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jle	LBB0_6
## %bb.4:
	movq	%rdx, %r15
	movq	(%rdx), %rax
	movl	(%rax), %eax
	cmpl	$255, %eax
	je	LBB0_6
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_10
LBB0_6:
	movq	_CARD_ERROR_FATAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%ecx, %r14d
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	___card_getcntrlblock
	testq	%rax, %rax
	js	LBB0_35
## %bb.11:
	movq	_CARD_ERROR_BROKEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-64(%rbp), %rdi
	callq	___card_getdirblock
	testq	%rax, %rax
	je	LBB0_33
## %bb.12:
	movq	(%rax), %r8
	movq	_CARD_FILENAMELEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jle	LBB0_18
## %bb.13:
	cmpq	$1, %rdx
	jne	LBB0_36
## %bb.14:
	xorl	%edi, %edi
                                        ## implicit-def: $rsi
	xorl	%eax, %eax
LBB0_15:
	testb	$1, %dl
	je	LBB0_19
## %bb.16:
	movq	(%r15), %rsi
	testq	%rdi, %rdi
	je	LBB0_45
LBB0_17:
	movl	$0, (%rsi,%rax,4)
	jmp	LBB0_19
LBB0_18:
	movq	(%r15), %rsi
LBB0_19:
	imulq	$56, %r12, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r8,%rax), %rdi
	movq	%r8, %rbx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rbx,%rax), %rdi
	movq	8(%r15), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rbx,%rax), %rdi
	movq	16(%r15), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_32
LBB0_22:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movq	_CARD_MAXFILES@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jle	LBB0_31
## %bb.23:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=1
	incq	%r14
	addq	$56, %rbx
	cmpq	(%rcx), %r14
	jge	LBB0_31
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %r12
	je	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-8(%rbx), %rdi
	cmpq	$255, (%rdi)
	je	LBB0_24
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	%rdx, %r15
	movl	$4, %edx
	callq	_memcmp
	movq	%r15, %rdx
	movq	_CARD_MAXFILES@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	(%rbx), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rsi
	movl	$2, %edx
	callq	_memcmp
	movq	%r15, %rdx
	movq	_CARD_MAXFILES@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	-16(%rbx), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	_CARD_FILENAMELEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_memcmp
	movq	%r15, %rdx
	movq	_CARD_MAXFILES@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.30:
	movq	-64(%rbp), %rdi
	movq	_CARD_ERROR_EXIST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_34
LBB0_31:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rdx), %rax
	movq	(%rax), %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rsi
	movq	_CARD_FILENAMELEN@GOTPCREL(%rip), %rax
	movq	%rdx, %r14
	movl	(%rax), %edx
	callq	_memcpy
	movq	8(%rbx,%r14), %rdi
	movq	8(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	16(%rbx,%r14), %rdi
	movq	16(%r15), %rsi
	movl	$2, %edx
	callq	_memcpy
	movl	-68(%rbp), %r14d                ## 4-byte Reload
LBB0_32:
	movups	40(%r15), %xmm0
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, 40(%rbx,%rax)
	movups	24(%r15), %xmm0
	movups	%xmm0, 24(%rbx,%rax)
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	___card_updatedir
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_9
LBB0_33:
	movq	-64(%rbp), %rdi
	movq	%rbx, %rsi
LBB0_34:
	callq	___card_putcntrlblock
LBB0_35:
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_36:
	movq	%rdx, %rcx
	andq	$-2, %rcx
	movq	(%r15), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_39 Depth=1
	movl	$0, 4(%rsi,%rax,4)
	movl	$1, %edi
LBB0_38:                                ##   in Loop: Header=BB0_39 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rcx
	je	LBB0_15
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	je	LBB0_41
LBB0_40:                                ##   in Loop: Header=BB0_39 Depth=1
	movl	$0, (%rsi,%rax,4)
	xorl	%edi, %edi
	jmp	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_39 Depth=1
	movb	$1, %dil
	cmpl	$0, (%rsi,%rax,4)
	je	LBB0_40
LBB0_42:                                ##   in Loop: Header=BB0_39 Depth=1
	testb	%dil, %dil
	je	LBB0_37
## %bb.43:                              ##   in Loop: Header=BB0_39 Depth=1
	cmpl	$0, 4(%rsi,%rax,4)
	je	LBB0_37
## %bb.44:                              ##   in Loop: Header=BB0_39 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_38
LBB0_45:
	cmpl	$0, (%rsi,%rax,4)
	jne	LBB0_19
	jmp	LBB0_17
	.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
	.comm	_CARD_FILENAMELEN,8,3           ## @CARD_FILENAMELEN
	.comm	_CARD_ERROR_EXIST,8,3           ## @CARD_ERROR_EXIST
	.no_dead_strip	___card_setstatusexasync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_setstatusexasync
___card_setstatusexasync:               ; @__card_setstatusexasync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	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_6
LBB0_2:
	mov	x22, x1
	tbnz	x1, #63, LBB0_5
; %bb.3:
Lloh8:
	adrp	x24, _CARD_MAXFILES@GOTPAGE
Lloh9:
	ldr	x24, [x24, _CARD_MAXFILES@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x22
	b.le	LBB0_5
; %bb.4:
	mov	x21, x2
	ldr	x8, [x2]
	ldr	w8, [x8]
	cmp	w8, #255
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _CARD_ERROR_FATAL_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CARD_ERROR_FATAL_ERROR@GOTPAGEOFF]
LBB0_6:
	ldr	x23, [x8]
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	mov	x19, x3
	mov	x20, x0
	add	x1, sp, #8
	bl	___card_getcntrlblock
	tbnz	x0, #63, LBB0_34
; %bb.9:
Lloh12:
	adrp	x8, _CARD_ERROR_BROKEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CARD_ERROR_BROKEN@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
	ldr	x0, [sp, #8]
	bl	___card_getdirblock
	cbz	x0, LBB0_32
; %bb.10:
	ldr	x23, [x0]
Lloh15:
	adrp	x25, _CARD_FILENAMELEN@GOTPAGE
Lloh16:
	ldr	x25, [x25, _CARD_FILENAMELEN@GOTPAGEOFF]
	ldr	x2, [x25]
	cmp	x2, #1
	b.lt	LBB0_17
; %bb.11:
	mov	x10, #0
	ldr	x1, [x21]
	mov	x8, x1
	mov	x9, x2
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	str	wzr, [x8]
	mov	w10, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x8, #4
	subs	x9, x9, #1
	b.eq	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	cbnz	x10, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w10, [x8]
	cbz	w10, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x10, #0
	b	LBB0_13
LBB0_17:
	ldr	x1, [x21]
LBB0_18:
	mov	w8, #56
	madd	x26, x22, x8, x23
	ldr	x0, [x26]
	bl	_memcmp
	cbnz	x0, LBB0_21
; %bb.19:
	mov	w8, #56
	madd	x8, x22, x8, x23
	ldr	x0, [x8, #8]
	ldr	x1, [x21, #8]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_21
; %bb.20:
	mov	w8, #56
	madd	x8, x22, x8, x23
	ldr	x0, [x8, #16]
	ldr	x1, [x21, #16]
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_31
LBB0_21:
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_30
; %bb.22:
	mov	x27, #0
	add	x28, x23, #8
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x27, x27, #1
	ldr	x8, [x24]
	add	x28, x28, #56
	cmp	x27, x8
	b.ge	LBB0_30
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	cmp	x22, x27
	b.eq	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x0, [x28]
	ldr	x8, [x0]
	cmp	x8, #255
	b.eq	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x1, [x21, #8]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x0, [x28, #8]
	ldr	x1, [x21, #16]
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_23
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=1
	ldur	x0, [x28, #-8]
	ldr	x1, [x21]
	ldr	x2, [x25]
	bl	_memcmp
	cbnz	x0, LBB0_23
; %bb.29:
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x8, _CARD_ERROR_EXIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CARD_ERROR_EXIST@GOTPAGEOFF]
Lloh19:
	ldr	x1, [x8]
	b	LBB0_33
LBB0_30:
	ldr	x0, [x26]
	ldr	x1, [x21]
	ldr	w2, [x25]
	bl	_memcpy
	mov	w8, #56
	madd	x24, x22, x8, x23
	ldr	x0, [x24, #8]
	ldr	x1, [x21, #8]
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x24, #16]
	ldr	x1, [x21, #16]
	mov	w2, #2
	bl	_memcpy
LBB0_31:
	mov	w8, #56
	madd	x8, x22, x8, x23
	ldur	q0, [x21, #40]
	stur	q0, [x8, #40]
	ldur	q0, [x21, #24]
	stur	q0, [x8, #24]
	mov	x0, x20
	mov	x1, x19
	bl	___card_updatedir
	mov	x23, x0
	tbz	x0, #63, LBB0_7
LBB0_32:
	ldr	x0, [sp, #8]
	mov	x1, x23
LBB0_33:
	bl	___card_putcntrlblock
LBB0_34:
	mov	x23, x0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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
	.comm	_CARD_FILENAMELEN,8,3           ; @CARD_FILENAMELEN
	.comm	_CARD_ERROR_EXIST,8,3           ; @CARD_ERROR_EXIST
	.no_dead_strip	___card_setstatusexasync
.subsections_via_symbols
