	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_getfilenum
___card_getfilenum:                     ## @__card_getfilenum
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%r8, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r13
	callq	___card_getdirblock
	movq	_CARD_MAXFILES@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	(%r14), %rax
	addq	$24, %r15
	cmpq	%rax, %rbx
	jae	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	cmpl	$255, (%rax)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r15), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_12
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	(%r14), %rax
LBB0_13:
	cmpq	%rax, %rbx
	jae	LBB0_14
LBB0_15:
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_1:
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	cmpq	%rax, %rbx
	jb	LBB0_15
LBB0_14:
	movq	_CARD_ERROR_NOFILE@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_ERROR_NOCARD,8,3          ## @CARD_ERROR_NOCARD
	.comm	_CARD_MAXFILES,8,3              ## @CARD_MAXFILES
	.comm	_CARD_ERROR_NOFILE,8,3          ## @CARD_ERROR_NOFILE
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.no_dead_strip	___card_getfilenum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_getfilenum
___card_getfilenum:                     ; @__card_getfilenum
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	bl	___card_getdirblock
Lloh0:
	adrp	x24, _CARD_MAXFILES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CARD_MAXFILES@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_12
; %bb.2:
	mov	x23, #0
	ldr	x25, [x0]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x8, [x24]
	add	x25, x25, #24
	cmp	x23, x8
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w8, [x8]
	cmp	w8, #255
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25, #16]
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	mov	x1, x21
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25, #8]
	mov	x1, x20
	mov	w2, #2
	bl	_memcmp
	cbnz	x0, LBB0_3
LBB0_10:
	str	x23, [x19]
	ldr	x8, [x24]
	b	LBB0_13
LBB0_11:
Lloh2:
	adrp	x8, _CARD_ERROR_NOCARD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CARD_ERROR_NOCARD@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	x23, #0
LBB0_13:
Lloh4:
	adrp	x9, _CARD_ERROR_NOFILE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CARD_ERROR_NOFILE@GOTPAGEOFF]
Lloh6:
	adrp	x10, _CARD_ERROR_READY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CARD_ERROR_READY@GOTPAGEOFF]
	cmp	x23, x8
	csel	x8, x10, x9, lo
LBB0_14:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_ERROR_NOCARD,8,3          ; @CARD_ERROR_NOCARD
	.comm	_CARD_MAXFILES,8,3              ; @CARD_MAXFILES
	.comm	_CARD_ERROR_NOFILE,8,3          ; @CARD_ERROR_NOFILE
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.no_dead_strip	___card_getfilenum
.subsections_via_symbols
