	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dounlock
___dounlock:                            ## @__dounlock
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	_cardmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdi, %r12
	shlq	$6, %r12
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	___card_initval
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	___card_dummylen
	movl	%eax, %ebx
	movq	_tmp_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	___card_readarrayunlock
	movq	_CARD_ERROR_NOCARD@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	leal	1(,%rbx,8), %esi
	movl	%r13d, %edi
	callq	_exnor_1st
	movl	%eax, %ecx
	shrl	$23, %ecx
	movl	%eax, %edx
	shrl	$15, %edx
	xorl	%ecx, %edx
	movl	%eax, %edi
	shrl	$7, %edi
	xorl	%eax, %edi
	xorl	%edx, %edi
	notl	%edi
	shll	$31, %edi
	orl	%eax, %edi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%edi, 8(%rbx,%r12)
	callq	_bitrev
	movl	%eax, 8(%rbx,%r12)
	xorl	%eax, %eax
	callq	___card_dummylen
                                        ## kill: def $eax killed $eax def $rax
	movq	_tmp_buffer@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leal	20(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	___card_readarrayunlock
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	$47, %eax
	cltq
	andq	$-32, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addq	$32, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	8(%r14,%r12), %r15
	movq	(%rbx), %rax
	movl	4(%rax), %r13d
	movl	8(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	16(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	movl	(%rax), %eax
	xorl	%edi, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$32, %esi
	callq	_exnor
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%eax, %edx
	shll	$15, %edx
	xorl	%ecx, %edx
	movl	%eax, %edi
	shll	$7, %edi
	xorl	%eax, %edi
	xorl	%edx, %edi
	sarl	$31, %edi
	notl	%edi
	orl	%eax, %edi
	movl	%edi, (%r15)
	xorl	%edi, %r13d
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	$32, %esi
	callq	_exnor
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%eax, %edx
	shll	$15, %edx
	xorl	%ecx, %edx
	movl	%eax, %edi
	shll	$7, %edi
	xorl	%eax, %edi
	xorl	%edx, %edi
	sarl	$31, %edi
	notl	%edi
	orl	%eax, %edi
	movl	%edi, (%r15)
	xorl	%edi, -44(%rbp)                 ## 4-byte Folded Spill
	movl	$32, %esi
	callq	_exnor
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%eax, %edx
	shll	$15, %edx
	xorl	%ecx, %edx
	movl	%eax, %edi
	shll	$7, %edi
	xorl	%eax, %edi
	xorl	%edx, %edi
	sarl	$31, %edi
	notl	%edi
	orl	%eax, %edi
	movl	%edi, (%r15)
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	xorl	%edi, %r13d
	movl	$32, %esi
	callq	_exnor
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%eax, %edx
	shll	$15, %edx
	xorl	%ecx, %edx
	movl	%eax, %edi
	shll	$7, %edi
	xorl	%eax, %edi
	xorl	%edx, %edi
	sarl	$31, %edi
	notl	%edi
	orl	%eax, %edi
	movl	%edi, (%r15)
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	xorl	%edi, %ebx
	shll	$3, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_exnor
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%eax, %edx
	shll	$15, %edx
	xorl	%ecx, %edx
	movl	%eax, %edi
	shll	$7, %edi
	xorl	%eax, %edi
	xorl	%edx, %edi
	sarl	$31, %edi
	notl	%edi
	orl	%eax, %edi
	movl	%edi, (%r15)
	movl	$33, %esi
	callq	_exnor
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%eax, %edx
	shll	$15, %edx
	xorl	%ecx, %edx
	movl	%eax, %ecx
	shll	$7, %ecx
	xorl	%eax, %ecx
	xorl	%edx, %ecx
	sarl	$31, %ecx
	notl	%ecx
	orl	%eax, %ecx
	movl	%ecx, (%r15)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, (%rdi)
	movl	%ebx, 4(%rdi)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%edi, (%rbx)
	movq	$8, 4(%rbx)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, 12(%rbx)
	movl	$8, %esi
	callq	_DCFlushRange
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_DCInvalidateRange
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_DCFlushRange
	leaq	(%r14,%r12), %rbx
	addq	$16, %rbx
	movl	$255, 16(%r14,%r12)
	movq	__cardunlockdata@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	%rax, 56(%r14,%r12)
	movq	$352, 20(%r14,%r12)             ## imm = 0x160
	movl	$16, 28(%r14,%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14,%r12)
	movq	___dsp_initcallback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14,%r12)
	movq	___dsp_donecallback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14,%r12)
	movq	%rbx, %rdi
	callq	_DSP_AddTask
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	movq	_CARD_ERROR_READY@GOTPCREL(%rip), %r14
LBB0_3:
	movq	(%r14), %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cardmap,8,3                    ## @cardmap
	.comm	_tmp_buffer,8,3                 ## @tmp_buffer
	.comm	_CARD_ERROR_NOCARD,8,3          ## @CARD_ERROR_NOCARD
	.comm	__cardunlockdata,4,2            ## @_cardunlockdata
	.comm	___dsp_initcallback,4,2         ## @__dsp_initcallback
	.comm	___dsp_donecallback,4,2         ## @__dsp_donecallback
	.comm	_CARD_ERROR_READY,8,3           ## @CARD_ERROR_READY
	.no_dead_strip	___dounlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function __dounlock
lCPI0_0:
	.long	8                               ; 0x8
	.long	0                               ; 0x0
lCPI0_1:
	.long	352                             ; 0x160
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
___dounlock:                            ; @__dounlock
	.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	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _cardmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cardmap@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	lsl	x8, x0, #6
	ldr	x20, [x24, x8]
	bl	___card_initval
	mov	x21, x0
	bl	___card_dummylen
	mov	x23, x0
Lloh3:
	adrp	x25, _tmp_buffer@GOTPAGE
Lloh4:
	ldr	x25, [x25, _tmp_buffer@GOTPAGEOFF]
	ldr	x2, [x25]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x23
	mov	w4, #0
	bl	___card_readarrayunlock
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	w1, #1
	bfi	w1, w23, #3, #29
	mov	x0, x21
	bl	_exnor_1st
	eor	w8, w0, w0, lsr #7
	eor	w8, w8, w0, lsr #15
	eon	w8, w8, w0, lsr #23
	orr	w0, w0, w8, lsl #31
	add	x21, x24, x22, lsl #6
	mov	x27, x21
	str	w0, [x27, #8]!
	bl	_bitrev
	str	w0, [x27]
	bl	___card_dummylen
	mov	x24, x0
	ldr	x2, [x25]
	add	w3, w0, #20
	mov	x0, x22
	mov	w1, #0
	mov	w4, #1
	bl	___card_readarrayunlock
	tbnz	x0, #63, LBB0_3
; %bb.2:
	add	w8, w20, #47
	sxtw	x8, w8
	and	x23, x8, #0xffffffffffffffe0
	add	x8, x23, #32
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x25]
	ldp	w9, w26, [x8]
	ldp	w28, w25, [x8, #8]
	mov	x22, x19
	ldr	w19, [x8, #16]
	ldr	w0, [x27]
	eor	w8, w0, w9
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w1, #32
	bl	_exnor
	eor	w8, w0, w0, lsl #7
	eor	w8, w8, w0, lsl #15
	eor	w8, w8, w0, lsl #23
	orn	w0, w0, w8, asr #31
	str	w0, [x27]
	eor	w26, w0, w26
	mov	w1, #32
	bl	_exnor
	eor	w8, w0, w0, lsl #7
	eor	w8, w8, w0, lsl #15
	eor	w8, w8, w0, lsl #23
	orn	w0, w0, w8, asr #31
	str	w0, [x27]
	eor	w28, w0, w28
	mov	w1, #32
	bl	_exnor
	eor	w8, w0, w0, lsl #7
	eor	w8, w8, w0, lsl #15
	eor	w8, w8, w0, lsl #23
	orn	w0, w0, w8, asr #31
	str	w0, [x27]
	eor	w25, w0, w25
	mov	w1, #32
	bl	_exnor
	eor	w8, w0, w0, lsl #7
	eor	w8, w8, w0, lsl #15
	eor	w8, w8, w0, lsl #23
	orn	w0, w0, w8, asr #31
	str	w0, [x27]
	eor	w19, w0, w19
	lsl	w1, w24, #3
	bl	_exnor
	eor	w8, w0, w0, lsl #7
	eor	w8, w8, w0, lsl #15
	eor	w8, w8, w0, lsl #23
	orn	w0, w0, w8, asr #31
	str	w0, [x27]
	mov	w1, #33
	bl	_exnor
	eor	w8, w0, w0, lsl #7
	eor	w8, w8, w0, lsl #15
	eor	w8, w8, w0, lsl #23
	orn	w8, w0, w8, asr #31
	str	w8, [x27]
	stp	w25, w19, [x23]
	str	w23, [x20]
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #4]
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	str	w19, [x20, #12]
	mov	x0, x23
	mov	w1, #8
	bl	_DCFlushRange
	mov	x0, x19
	mov	w1, #4
	bl	_DCInvalidateRange
	mov	w19, #16
	mov	x0, x20
	mov	w1, #16
	bl	_DCFlushRange
	mov	w8, #255
	str	w8, [x21, #16]!
Lloh7:
	adrp	x8, __cardunlockdata@GOTPAGE
Lloh8:
	ldr	x8, [x8, __cardunlockdata@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	stp	xzr, x0, [x21, #32]
Lloh10:
	adrp	x8, lCPI0_1@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x21, #4]
	str	w19, [x21, #12]
	str	xzr, [x21, #24]
Lloh12:
	adrp	x8, ___dsp_initcallback@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___dsp_initcallback@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #20]
Lloh15:
	adrp	x8, ___dsp_donecallback@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___dsp_donecallback@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	mov	x0, x21
	bl	_DSP_AddTask
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	stp	w8, w26, [x22]
	str	w28, [x22, #8]
Lloh18:
	adrp	x8, _CARD_ERROR_READY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CARD_ERROR_READY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh20:
	adrp	x8, _CARD_ERROR_NOCARD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CARD_ERROR_NOCARD@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x8]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_cardmap,8,3                    ; @cardmap
	.comm	_tmp_buffer,8,3                 ; @tmp_buffer
	.comm	_CARD_ERROR_NOCARD,8,3          ; @CARD_ERROR_NOCARD
	.comm	__cardunlockdata,4,2            ; @_cardunlockdata
	.comm	___dsp_initcallback,4,2         ; @__dsp_initcallback
	.comm	___dsp_donecallback,4,2         ; @__dsp_donecallback
	.comm	_CARD_ERROR_READY,8,3           ; @CARD_ERROR_READY
	.no_dead_strip	___dounlock
.subsections_via_symbols
