	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function __card_checkfat
LCPI0_0:
	.quad	1                               ## 0x1
	.quad	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
___card_checkfat:                       ## @__card_checkfat
	.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, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r13
	leaq	983040(%r13), %r12
	movq	%r12, -64(%rbp)
	leal	4(%r12), %eax
	movslq	%eax, %rdi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movl	$8188, %esi                     ## imm = 0x1FFC
	callq	___card_checksum
	movq	-80(%rbp), %rax
	cmpq	983040(%r13), %rax
	jne	LBB0_17
## %bb.1:
	movq	-72(%rbp), %rax
	cmpq	983048(%r13), %rax
	jne	LBB0_17
## %bb.2:
	movq	_CARD_SYSAREA@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	(%rbx), %rax
	xorl	%r15d, %r15d
	movq	%rax, %r10
	subq	%r9, %r10
	jle	LBB0_3
## %bb.4:
	movq	983072(%r13), %rcx
	cmpq	$4, %r10
	jae	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	movq	%r9, %rdx
	jmp	LBB0_14
LBB0_3:
	xorl	%esi, %esi
	jmp	LBB0_16
LBB0_6:
	movq	%r10, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movq	%r8, %rdi
	andq	$-2, %rdi
	pxor	%xmm2, %xmm2
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,1]
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,4), %xmm4            ## xmm4 = mem[0],zero
	movq	8(%rcx,%rsi,4), %xmm5           ## xmm5 = mem[0],zero
	pcmpeqd	%xmm2, %xmm4
	pmovzxdq	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,xmm4[1],zero
	pand	%xmm3, %xmm4
	paddq	%xmm0, %xmm4
	pcmpeqd	%xmm2, %xmm5
	pmovzxdq	%xmm5, %xmm5                    ## xmm5 = xmm5[0],zero,xmm5[1],zero
	pand	%xmm3, %xmm5
	paddq	%xmm1, %xmm5
	movq	16(%rcx,%rsi,4), %xmm0          ## xmm0 = mem[0],zero
	movq	24(%rcx,%rsi,4), %xmm1          ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm0
	pmovzxdq	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,xmm0[1],zero
	pand	%xmm3, %xmm0
	paddq	%xmm4, %xmm0
	pcmpeqd	%xmm2, %xmm1
	pmovzxdq	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,xmm1[1],zero
	pand	%xmm3, %xmm1
	paddq	%xmm5, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_9
## %bb.10:
	testb	$1, %r8b
	je	LBB0_12
LBB0_11:
	movq	(%rcx,%rsi,4), %xmm2            ## xmm2 = mem[0],zero
	movq	8(%rcx,%rsi,4), %xmm3           ## xmm3 = mem[0],zero
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm4, %xmm2
	pmovzxdq	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,xmm2[1],zero
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [1,1]
	pand	%xmm5, %xmm2
	paddq	%xmm2, %xmm0
	pcmpeqd	%xmm4, %xmm3
	pmovzxdq	%xmm3, %xmm2                    ## xmm2 = xmm3[0],zero,xmm3[1],zero
	pand	%xmm5, %xmm2
	paddq	%xmm2, %xmm1
LBB0_12:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rsi
	cmpq	%rdx, %r10
	je	LBB0_16
## %bb.13:
	addq	%r9, %rdx
LBB0_14:
	shlq	$2, %r9
	subq	%r9, %rcx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%rcx,%rdx,4)
	adcq	$0, %rsi
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_15
LBB0_16:
	movb	$1, %al
	cmpq	983056(%r13), %rsi
	je	LBB0_18
LBB0_17:
	movq	$0, 8(%rbx)
	movl	$1, %r15d
	xorl	%eax, %eax
LBB0_18:
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %r14
	leaq	1310720(%r14), %rdi
	movq	%rdi, -56(%rbp)
	shlq	$32, %rdi
	movabsq	$17179869184, %rax              ## imm = 0x400000000
	addq	%rax, %rdi
	sarq	$32, %rdi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movl	$8188, %esi                     ## imm = 0x1FFC
	callq	___card_checksum
	movq	-80(%rbp), %rax
	cmpq	1310720(%r14), %rax
	jne	LBB0_20
## %bb.19:
	movq	-72(%rbp), %rax
	cmpq	1310728(%r14), %rax
	jne	LBB0_20
## %bb.21:
	movq	_CARD_SYSAREA@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	(%rbx), %rax
	movq	%rax, %r10
	subq	%r9, %r10
	jle	LBB0_22
## %bb.23:
	movq	1310752(%r14), %rcx
	cmpq	$4, %r10
	jae	LBB0_25
## %bb.24:
	xorl	%esi, %esi
	movq	%r9, %rdx
	jmp	LBB0_33
LBB0_22:
	xorl	%esi, %esi
	jmp	LBB0_35
LBB0_25:
	movq	%r10, %rdx
	andq	$-4, %rdx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_26
## %bb.27:
	movq	%r8, %rdi
	andq	$-2, %rdi
	pxor	%xmm2, %xmm2
	xorl	%esi, %esi
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [1,1]
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,4), %xmm4            ## xmm4 = mem[0],zero
	movq	8(%rcx,%rsi,4), %xmm5           ## xmm5 = mem[0],zero
	pcmpeqd	%xmm2, %xmm4
	pmovzxdq	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,xmm4[1],zero
	pand	%xmm3, %xmm4
	paddq	%xmm0, %xmm4
	pcmpeqd	%xmm2, %xmm5
	pmovzxdq	%xmm5, %xmm5                    ## xmm5 = xmm5[0],zero,xmm5[1],zero
	pand	%xmm3, %xmm5
	paddq	%xmm1, %xmm5
	movq	16(%rcx,%rsi,4), %xmm0          ## xmm0 = mem[0],zero
	movq	24(%rcx,%rsi,4), %xmm1          ## xmm1 = mem[0],zero
	pcmpeqd	%xmm2, %xmm0
	pmovzxdq	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,xmm0[1],zero
	pand	%xmm3, %xmm0
	paddq	%xmm4, %xmm0
	pcmpeqd	%xmm2, %xmm1
	pmovzxdq	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,xmm1[1],zero
	pand	%xmm3, %xmm1
	paddq	%xmm5, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_28
## %bb.29:
	testb	$1, %r8b
	je	LBB0_31
LBB0_30:
	movq	(%rcx,%rsi,4), %xmm2            ## xmm2 = mem[0],zero
	movq	8(%rcx,%rsi,4), %xmm3           ## xmm3 = mem[0],zero
	pxor	%xmm4, %xmm4
	pcmpeqd	%xmm4, %xmm2
	pmovzxdq	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,xmm2[1],zero
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [1,1]
	pand	%xmm5, %xmm2
	paddq	%xmm2, %xmm0
	pcmpeqd	%xmm4, %xmm3
	pmovzxdq	%xmm3, %xmm2                    ## xmm2 = xmm3[0],zero,xmm3[1],zero
	pand	%xmm5, %xmm2
	paddq	%xmm2, %xmm1
LBB0_31:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rsi
	cmpq	%rdx, %r10
	je	LBB0_35
## %bb.32:
	addq	%r9, %rdx
LBB0_33:
	shlq	$2, %r9
	subq	%r9, %rcx
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$1, (%rcx,%rdx,4)
	adcq	$0, %rsi
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_34
LBB0_35:
	cmpq	1310736(%r14), %rsi
	jne	LBB0_20
## %bb.36:
	movq	%r12, %rcx
	xorl	%r12d, %r12d
	cmpb	$0, -84(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_38
## %bb.37:
	movq	983064(%r13), %rax
	xorl	%r12d, %r12d
	cmpq	1310744(%r14), %rax
	setge	%r12b
LBB0_38:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_39
## %bb.40:
	xorl	%r12d, %r12d
	cmpq	%rcx, %rax
	setne	%r12b
	jmp	LBB0_41
LBB0_20:
	incl	%r15d
	movl	$1, %r12d
LBB0_39:
	movl	%r12d, %eax
	movq	-64(%rbp,%rax,8), %rdi
	movq	%rdi, 8(%rbx)
	movl	%r12d, %eax
	xorl	$1, %eax
	movq	-64(%rbp,%rax,8), %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_memcpy
LBB0_41:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movl	%r12d, (%rax)
LBB0_43:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_45
## %bb.44:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_11
	jmp	LBB0_12
LBB0_26:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_30
	jmp	LBB0_31
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CARD_SYSAREA,8,3               ## @CARD_SYSAREA
	.no_dead_strip	___card_checkfat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __card_checkfat
___card_checkfat:                       ; @__card_checkfat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, 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, #16]
	add	x22, x8, #240, lsl #12          ; =983040
	str	x22, [sp, #24]
	add	w8, w22, #4
	sxtw	x0, w8
	add	x2, sp, #16
	add	x3, sp, #8
	mov	w1, #8188
	bl	___card_checksum
	ldr	x8, [sp, #16]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.2:
Lloh3:
	adrp	x8, _CARD_SYSAREA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARD_SYSAREA@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x20]
	subs	x12, x9, x8
	b.le	LBB0_5
; %bb.3:
	ldr	x10, [x22, #32]
	cmp	x12, #8
	b.hs	LBB0_6
; %bb.4:
	mov	x14, #0
	mov	x11, x8
	b	LBB0_9
LBB0_5:
	mov	x14, #0
	b	LBB0_11
LBB0_6:
	and	x13, x12, #0xfffffffffffffff8
	add	x11, x8, x13
	add	x14, x10, #16
	movi.2d	v0, #0000000000000000
	mov	w15, #1
	dup.2d	v1, x15
	mov	x15, x13
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d5, d6, [x14, #-16]
	ldp	d7, d16, [x14], #32
	cmeq.2s	v5, v5, #0
	ushll.2d	v5, v5, #0
	and.16b	v5, v5, v1
	cmeq.2s	v6, v6, #0
	ushll.2d	v6, v6, #0
	and.16b	v6, v6, v1
	cmeq.2s	v7, v7, #0
	ushll.2d	v7, v7, #0
	and.16b	v7, v7, v1
	cmeq.2s	v16, v16, #0
	ushll.2d	v16, v16, #0
	and.16b	v16, v16, v1
	add.2d	v0, v0, v5
	add.2d	v2, v2, v6
	add.2d	v3, v3, v7
	add.2d	v4, v4, v16
	subs	x15, x15, #8
	b.ne	LBB0_7
; %bb.8:
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	add.2d	v0, v4, v0
	addp.2d	d0, v0
	fmov	x14, d0
	cmp	x12, x13
	b.eq	LBB0_11
LBB0_9:
	sub	x9, x9, x11
	sub	x8, x11, x8
	add	x8, x10, x8, lsl #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	cmp	w10, #0
	cinc	x14, x14, eq
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	x8, [x22, #16]
	cmp	x14, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w21, #0
	mov	w23, #1
	b	LBB0_14
LBB0_13:
	mov	w23, #0
	str	xzr, [x20, #8]
	mov	w21, #1
LBB0_14:
	ldr	x8, [x20, #16]
	add	x24, x8, #320, lsl #12          ; =1310720
	str	x24, [sp, #32]
	add	w8, w24, #4
	sxtw	x0, w8
	add	x2, sp, #16
	add	x3, sp, #8
	mov	w1, #8188
	bl	___card_checksum
	ldr	x8, [sp, #16]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.15:
	ldr	x8, [sp, #8]
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.16:
Lloh6:
	adrp	x8, _CARD_SYSAREA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARD_SYSAREA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x20]
	subs	x12, x9, x8
	b.le	LBB0_19
; %bb.17:
	ldr	x10, [x24, #32]
	cmp	x12, #8
	b.hs	LBB0_20
; %bb.18:
	mov	x14, #0
	mov	x11, x8
	b	LBB0_23
LBB0_19:
	mov	x14, #0
	b	LBB0_25
LBB0_20:
	and	x13, x12, #0xfffffffffffffff8
	add	x11, x8, x13
	add	x14, x10, #16
	movi.2d	v0, #0000000000000000
	mov	w15, #1
	dup.2d	v1, x15
	mov	x15, x13
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldp	d5, d6, [x14, #-16]
	ldp	d7, d16, [x14], #32
	cmeq.2s	v5, v5, #0
	ushll.2d	v5, v5, #0
	and.16b	v5, v5, v1
	cmeq.2s	v6, v6, #0
	ushll.2d	v6, v6, #0
	and.16b	v6, v6, v1
	cmeq.2s	v7, v7, #0
	ushll.2d	v7, v7, #0
	and.16b	v7, v7, v1
	cmeq.2s	v16, v16, #0
	ushll.2d	v16, v16, #0
	and.16b	v16, v16, v1
	add.2d	v0, v0, v5
	add.2d	v2, v2, v6
	add.2d	v3, v3, v7
	add.2d	v4, v4, v16
	subs	x15, x15, #8
	b.ne	LBB0_21
; %bb.22:
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	add.2d	v0, v4, v0
	addp.2d	d0, v0
	fmov	x14, d0
	cmp	x12, x13
	b.eq	LBB0_25
LBB0_23:
	sub	x9, x9, x11
	sub	x8, x11, x8
	add	x8, x10, x8, lsl #2
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #4
	cmp	w10, #0
	cinc	x14, x14, eq
	subs	x9, x9, #1
	b.ne	LBB0_24
LBB0_25:
	ldr	x8, [x24, #16]
	cmp	x14, x8
	b.ne	LBB0_30
; %bb.26:
	cbz	w23, LBB0_28
; %bb.27:
	ldr	x8, [x22, #24]
	ldr	x9, [x24, #24]
	cmp	x8, x9
	cset	w23, ge
LBB0_28:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_31
; %bb.29:
	cmp	x8, x22
	cset	w23, ne
	cbnz	x19, LBB0_32
	b	LBB0_33
LBB0_30:
	add	w21, w21, #1
	mov	w23, #1
LBB0_31:
	mov	w8, w23
	add	x9, sp, #24
	ldr	x0, [x9, w23, uxtw #3]
	str	x0, [x20, #8]
	eor	x8, x8, #0x1
	ldr	x1, [x9, x8, lsl #3]
	mov	w2, #8192
	bl	_memcpy
	cbz	x19, LBB0_33
LBB0_32:
	str	w23, [x19]
LBB0_33:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CARD_SYSAREA,8,3               ; @CARD_SYSAREA
	.no_dead_strip	___card_checkfat
.subsections_via_symbols
