	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CARD_DeleteAsync               ## -- Begin function CARD_DeleteAsync
	.p2align	4, 0x90
_CARD_DeleteAsync:                      ## @CARD_DeleteAsync
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rsi
	callq	___card_getcntrlblock
	movq	-32(%rbp), %rdi
	movq	_card_gamecode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_card_company@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	-40(%rbp), %r8
	movq	%rbx, %rsi
	callq	___card_getfilenum
	movq	-32(%rbp), %rdi
	callq	___card_getdirblock
	movq	(%rax), %rax
	movq	-40(%rbp), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movl	(%rax,%rcx,4), %eax
	movq	-32(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movl	$-1, %esi
	movl	$4, %edx
	callq	_memset
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movq	___card_defaultapicallback@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_2:
	movq	-32(%rbp), %rax
	movq	%r15, (%rax)
	movq	___delete_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	___card_updatedir
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_card_gamecode,8,3              ## @card_gamecode
	.comm	_card_company,8,3               ## @card_company
	.comm	___card_defaultapicallback,8,3  ## @__card_defaultapicallback
	.comm	___delete_callback,4,2          ## @__delete_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CARD_DeleteAsync               ; -- Begin function CARD_DeleteAsync
	.p2align	2
_CARD_DeleteAsync:                      ; @CARD_DeleteAsync
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp]
	mov	x1, sp
	bl	___card_getcntrlblock
	ldr	x0, [sp]
Lloh0:
	adrp	x8, _card_gamecode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _card_gamecode@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
Lloh3:
	adrp	x8, _card_company@GOTPAGE
Lloh4:
	ldr	x8, [x8, _card_company@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x8]
	add	x4, sp, #8
	mov	x1, x20
	bl	___card_getfilenum
	ldr	x0, [sp]
	bl	___card_getdirblock
	ldr	x8, [x0]
	ldr	x9, [sp, #8]
	add	x0, x8, x9, lsl #2
	ldr	w8, [x0]
	ldr	x9, [sp]
	str	w8, [x9, #8]
	mov	w1, #-1
	mov	w2, #4
	bl	_memset
Lloh6:
	adrp	x8, ___card_defaultapicallback@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___card_defaultapicallback@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x19, #0
	csel	x8, x8, x19, eq
	ldr	x9, [sp]
	str	x8, [x9]
Lloh9:
	adrp	x8, ___delete_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___delete_callback@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	___card_updatedir
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_card_gamecode,8,3              ; @card_gamecode
	.comm	_card_company,8,3               ; @card_company
	.comm	___card_defaultapicallback,8,3  ; @__card_defaultapicallback
	.comm	___delete_callback,4,2          ; @__delete_callback
.subsections_via_symbols
