	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CARD_CreateEntryAsync          ## -- Begin function CARD_CreateEntryAsync
	.p2align	4, 0x90
_CARD_CreateEntryAsync:                 ## @CARD_CreateEntryAsync
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movl	%edi, %r12d
	movq	$0, -48(%rbp)
	movq	%rsi, %r13
	movq	(%rsi), %rdi
	callq	_strlen
	movq	_CARD_FILENAMELEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_CARD_ERROR_NAMETOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_28
LBB0_2:
	movq	%rax, %r14
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	callq	___card_getcntrlblock
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	8(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rdi
	cltd
	idivl	(%rdi)
	testl	%edx, %edx
	je	LBB0_7
LBB0_6:
	movq	_CARD_ERROR_FATAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_28
LBB0_3:
	movl	%eax, %r15d
	jmp	LBB0_28
LBB0_7:
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	callq	___card_getdirblock
	movq	_CARD_MAXFILES@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_13
## %bb.8:
	movq	%rcx, %r12
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movl	$-1, %ebx
	xorl	%r15d, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$-1, %ebx
	cmovel	%r15d, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	addq	$32, %r14
	cmpq	(%r12), %r15
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpl	$255, (%rax)
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14), %rdi
	movq	(%r13), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	cmpl	$255, (%rsi)
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	cmpl	$255, (%rax)
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rsi
	cmpl	$255, (%rsi)
	je	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r14), %rdi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_11
LBB0_20:
	movq	-48(%rbp), %rdi
	movq	_CARD_ERROR_EXIST@GOTPCREL(%rip), %rbx
	jmp	LBB0_23
LBB0_12:
	cmpl	$-1, %ebx
	je	LBB0_13
## %bb.21:
	movq	-48(%rbp), %rdi
	callq	___card_getbatblock
	movq	-48(%rbp), %rdi
	movl	(%rdi), %ecx
	movl	(%rax), %edx
	imull	%ecx, %edx
	movl	8(%r13), %eax
	cmpl	%eax, %edx
	jge	LBB0_24
## %bb.22:
	movq	_CARD_ERROR_INSSPACE@GOTPCREL(%rip), %rbx
	jmp	LBB0_23
LBB0_13:
	movq	-48(%rbp), %rdi
	movq	_CARD_ERROR_NOENT@GOTPCREL(%rip), %rbx
LBB0_23:
	movl	(%rbx), %esi
	callq	___card_putcntrlblock
	movl	(%rbx), %r15d
LBB0_28:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	jne	LBB0_26
## %bb.25:
	movq	___card_defaultapicallback@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_26:
	movq	%rdx, 16(%rdi)
	cltd
	idivl	%ecx
	movslq	%ebx, %r14
	shlq	$5, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, 24(%r12,%r14)
	movq	8(%r12,%r14), %rdi
	movq	_CARD_FILENAMELEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r12,%r14), %rdi
	movq	(%r13), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	callq	_memcpy
	movq	-48(%rbp), %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, (%rax)
	movl	%ebx, 4(%rax)
	movl	8(%r13), %eax
	cltd
	idivl	(%rcx)
	movq	___card_createfatcallback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	___card_allocblock
	testl	%eax, %eax
	jns	LBB0_28
## %bb.27:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	movl	%eax, %esi
	callq	___card_putcntrlblock
	movl	%ebx, %r15d
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_FILENAMELEN,8,3           ## @CARD_FILENAMELEN
	.comm	_CARD_ERROR_NAMETOOLONG,4,2     ## @CARD_ERROR_NAMETOOLONG
	.comm	_CARD_ERROR_FATAL_ERROR,4,2     ## @CARD_ERROR_FATAL_ERROR
	.comm	_CARD_MAXFILES,8,3              ## @CARD_MAXFILES
	.comm	_CARD_ERROR_EXIST,4,2           ## @CARD_ERROR_EXIST
	.comm	_CARD_ERROR_NOENT,4,2           ## @CARD_ERROR_NOENT
	.comm	_CARD_ERROR_INSSPACE,4,2        ## @CARD_ERROR_INSSPACE
	.comm	___card_defaultapicallback,8,3  ## @__card_defaultapicallback
	.comm	___card_createfatcallback,4,2   ## @__card_createfatcallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CARD_CreateEntryAsync          ; -- Begin function CARD_CreateEntryAsync
	.p2align	2
_CARD_CreateEntryAsync:                 ; @CARD_CreateEntryAsync
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x0, [x1]
	bl	_strlen
Lloh0:
	adrp	x24, _CARD_FILENAMELEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CARD_FILENAMELEN@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _CARD_ERROR_NAMETOOLONG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CARD_ERROR_NAMETOOLONG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_2:
	mov	x22, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	___card_getcntrlblock
	tbnz	w0, #31, LBB0_23
; %bb.3:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
	ldr	w9, [x0]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _CARD_ERROR_FATAL_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CARD_ERROR_FATAL_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_6:
	bl	___card_getdirblock
Lloh8:
	adrp	x27, _CARD_MAXFILES@GOTPAGE
Lloh9:
	ldr	x27, [x27, _CARD_MAXFILES@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x8, #1
	b.lt	LBB0_21
; %bb.7:
	mov	x28, #0
	ldr	x26, [x0]
	mov	w25, #-1
	str	x26, [sp]                       ; 8-byte Folded Spill
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	cmn	w25, #1
	csel	w25, w28, w25, eq
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x28, x28, #1
	ldr	x8, [x27]
	add	x26, x26, #32
	cmp	x28, x8
	b.ge	LBB0_18
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w8, [x8]
	cmp	w8, #255
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x26, #8]
	ldr	x1, [x20]
	mov	x2, x22
	bl	_memcmp
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x1, [x8]
	ldr	w8, [x1]
	cmp	w8, #255
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	cmp	w8, #255
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x26]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x1, [x8, #16]
	ldr	w8, [x1]
	cmp	w8, #255
	b.eq	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x26, #16]
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_9
LBB0_17:
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x19, _CARD_ERROR_EXIST@GOTPAGE
Lloh11:
	ldr	x19, [x19, _CARD_ERROR_EXIST@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
	cmn	w25, #1
	b.eq	LBB0_21
; %bb.19:
	ldr	x0, [sp, #8]
	bl	___card_getbatblock
	ldr	w9, [x0]
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	mul	w10, w8, w9
	ldr	w9, [x20, #8]
	cmp	w10, w9
	b.ge	LBB0_24
; %bb.20:
Lloh12:
	adrp	x19, _CARD_ERROR_INSSPACE@GOTPAGE
Lloh13:
	ldr	x19, [x19, _CARD_ERROR_INSSPACE@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:
	ldr	x0, [sp, #8]
Lloh14:
	adrp	x19, _CARD_ERROR_NOENT@GOTPAGE
Lloh15:
	ldr	x19, [x19, _CARD_ERROR_NOENT@GOTPAGEOFF]
LBB0_22:
	ldr	w1, [x19]
	bl	___card_putcntrlblock
	ldr	w0, [x19]
LBB0_23:
	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_24:
Lloh16:
	adrp	x10, ___card_defaultapicallback@GOTPAGE
Lloh17:
	ldr	x10, [x10, ___card_defaultapicallback@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x23, #0
	csel	x10, x10, x23, eq
	str	x10, [x0, #16]
	sdiv	w8, w9, w8
	sxtw	x9, w25
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	add	x23, x10, x9, lsl #5
	str	w8, [x23, #24]
	ldr	x0, [x23, #8]
	ldr	x2, [x24]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x23, #8]
	ldr	x1, [x20]
	add	x2, x22, #1
	bl	_memcpy
	ldr	x8, [sp, #8]
	str	x21, [x8, #8]
	stp	w19, w25, [x21]
	ldr	w9, [x20, #8]
	ldr	w8, [x8]
Lloh19:
	adrp	x10, ___card_createfatcallback@GOTPAGE
Lloh20:
	ldr	x10, [x10, ___card_createfatcallback@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x10]
	sdiv	w1, w9, w8
	mov	x0, x19
	bl	___card_allocblock
	mov	x19, x0
	mov	w0, #0
	tbz	w19, #31, LBB0_23
; %bb.25:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	___card_putcntrlblock
	mov	x0, x19
	b	LBB0_23
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_FILENAMELEN,8,3           ; @CARD_FILENAMELEN
	.comm	_CARD_ERROR_NAMETOOLONG,4,2     ; @CARD_ERROR_NAMETOOLONG
	.comm	_CARD_ERROR_FATAL_ERROR,4,2     ; @CARD_ERROR_FATAL_ERROR
	.comm	_CARD_MAXFILES,8,3              ; @CARD_MAXFILES
	.comm	_CARD_ERROR_EXIST,4,2           ; @CARD_ERROR_EXIST
	.comm	_CARD_ERROR_NOENT,4,2           ; @CARD_ERROR_NOENT
	.comm	_CARD_ERROR_INSSPACE,4,2        ; @CARD_ERROR_INSSPACE
	.comm	___card_defaultapicallback,8,3  ; @__card_defaultapicallback
	.comm	___card_createfatcallback,4,2   ; @__card_createfatcallback
.subsections_via_symbols
