	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __card_checkdir
___card_checkdir:                       ## @__card_checkdir
	.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	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	leaq	196608(%r13), %r14
	movq	%r14, -64(%rbp)
	leaq	-88(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	movl	$8188, %esi                     ## imm = 0x1FFC
	callq	___card_checksum
	movq	-88(%rbp), %rax
	cmpq	391680(%r13), %rax
	jne	LBB0_3
## %bb.1:
	movq	-80(%rbp), %rax
	cmpq	391688(%r13), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	movb	$1, %al
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_3:
	movq	$0, (%r12)
	movl	$1, %ebx
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	movq	8(%r12), %r15
	leaq	393216(%r15), %rdi
	movq	%rdi, -56(%rbp)
	leaq	-88(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	movl	$8188, %esi                     ## imm = 0x1FFC
	callq	___card_checksum
	movq	-88(%rbp), %rax
	cmpq	588288(%r15), %rax
	jne	LBB0_6
## %bb.5:
	movq	-80(%rbp), %rax
	cmpq	588296(%r15), %rax
	jne	LBB0_6
## %bb.7:
	movq	%r14, %rcx
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	cmpb	$0, -68(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_9
## %bb.8:
	movq	391696(%r13), %rax
	xorl	%r14d, %r14d
	cmpq	588304(%r15), %rax
	setge	%r14b
LBB0_9:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	xorl	%r14d, %r14d
	cmpq	%rcx, %rax
	setne	%r14b
	jmp	LBB0_12
LBB0_6:
	incl	%ebx
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	$1, %r14d
LBB0_10:
	movl	%r14d, %eax
	movq	-64(%rbp,%rax,8), %rdi
	movq	%rdi, (%r12)
	movl	%r14d, %eax
	xorl	$1, %eax
	movq	-64(%rbp,%rax,8), %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_memcpy
LBB0_12:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	%r14d, (%rax)
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___card_checkdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_checkdir
___card_checkdir:                       ; @__card_checkdir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0, #8]
	add	x9, x8, #95, lsl #12            ; =389120
	add	x23, x9, #2560
	add	x22, x8, #48, lsl #12           ; =196608
	str	x22, [sp, #24]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x22
	mov	w1, #8188
	bl	___card_checksum
	ldr	x8, [sp, #16]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #0
	mov	w24, #1
	b	LBB0_4
LBB0_3:
	mov	w24, #0
	str	xzr, [x21]
	mov	w20, #1
LBB0_4:
	ldr	x8, [x21, #8]
	add	x9, x8, #143, lsl #12           ; =585728
	add	x25, x9, #2560
	add	x0, x8, #96, lsl #12            ; =393216
	str	x0, [sp, #32]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	w1, #8188
	bl	___card_checksum
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x9, [x25, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	cbz	w24, LBB0_13
; %bb.7:
	ldr	x8, [x23, #16]
	ldr	x9, [x25, #16]
	cmp	x8, x9
	cset	w23, ge
	ldr	x8, [x21]
	cbnz	x8, LBB0_14
	b	LBB0_9
LBB0_8:
	add	w20, w20, #1
	mov	w23, #1
LBB0_9:
	mov	w8, w23
	add	x9, sp, #24
	ldr	x0, [x9, w23, uxtw #3]
	str	x0, [x21]
	eor	x8, x8, #0x1
	ldr	x1, [x9, x8, lsl #3]
	mov	w2, #8192
	bl	_memcpy
	cbz	x19, LBB0_11
LBB0_10:
	str	w23, [x19]
LBB0_11:
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.12:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	mov	w23, #0
	ldr	x8, [x21]
	cbz	x8, LBB0_9
LBB0_14:
	cmp	x8, x22
	cset	w23, ne
	cbnz	x19, LBB0_10
	b	LBB0_11
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___card_checkdir
.subsections_via_symbols
