	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deskey
_deskey:                                ## @deskey
	.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	$600, %rsp                      ## imm = 0x258
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -632(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_pc1@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_bytebit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r8,%rbx,8), %rax
	movl	%eax, %r10d
	andl	$7, %r10d
	sarl	$3, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	notl	%eax
	xorl	%ecx, %ecx
	andl	(%r9,%r10,4), %eax
	sete	%cl
	movl	%ecx, -404(%rbp,%rbx,4)
	movq	(%r8,%rbx,8), %rax
	movl	%eax, %r10d
	andl	$7, %r10d
	sarl	$3, %eax
	cltq
	movl	(%rdi,%rax,4), %eax
	notl	%eax
	xorl	%ecx, %ecx
	andl	(%r9,%r10,4), %eax
	sete	%cl
	movl	%ecx, -400(%rbp,%rbx,4)
	addq	$2, %rbx
	cmpq	$57, %rbx
	jne	LBB0_1
## %bb.2:
	movl	$4294967268, %r14d              ## imm = 0xFFFFFFE4
	movq	_totrot@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_pc2@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_bigbyte@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	xorl	%r9d, %r9d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r9
	cmpq	$16, %r9
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movl	$15, %r10d
	subl	%r9d, %r10d
	testl	%esi, %esi
	cmovel	%r9d, %r10d
	leal	(%r10,%r10), %eax
	incl	%eax
                                        ## kill: def $r10d killed $r10d killed $r10 def $r10
	addl	%r10d, %r10d
	movslq	%eax, %r11
	movl	$0, -176(%rbp,%r11,4)
	movl	$0, -176(%rbp,%r10,4)
	movslq	(%rdx,%r9,8), %r13
	movl	$4, %eax
	movq	%r13, %rcx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%rcx), %edi
	cmpq	$28, %rcx
	cmovlq	%rcx, %rdi
	movl	-400(%rbp,%rdi,4), %edi
	movl	%edi, -628(%rbp,%rax)
	leaq	1(%rcx), %rdi
	cmpq	$28, %rdi
	leal	1(%r14,%rcx), %ebx
	cmovlq	%rdi, %rbx
	movl	-400(%rbp,%rbx,4), %edi
	movl	%edi, -624(%rbp,%rax)
	addq	$2, %rcx
	addq	$8, %rax
	cmpq	$116, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	29(%r13), %rax
	leaq	(%r14,%r13), %rcx
	addq	$29, %rcx
	addq	$28, %r13
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rcx), %ebx
	cmpq	$56, %r13
	cmovlq	%r13, %rbx
	movl	-400(%rbp,%rbx,4), %ebx
	cmpq	$56, %rax
	movl	%ecx, %r8d
	cmovlq	%rax, %r8
	movl	%ebx, -512(%rbp,%rdi)
	movl	-400(%rbp,%r8,4), %ebx
	movl	%ebx, -508(%rbp,%rdi)
	addq	$2, %rax
	addq	$2, %rcx
	addq	$8, %rdi
	addq	$2, %r13
	cmpq	$112, %rdi
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rdi
	cmpq	$24, %rdi
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r12,%rdi,8), %rbx
	cmpl	$0, -624(%rbp,%rbx,4)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	orl	(%r15,%rdi,4), %ecx
	movl	%ecx, -176(%rbp,%r10,4)
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	movslq	192(%r12,%rdi,8), %rbx
	cmpl	$0, -624(%rbp,%rbx,4)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	orl	(%r15,%rdi,4), %eax
	movl	%eax, -176(%rbp,%r11,4)
	jmp	LBB0_12
LBB0_14:
	leaq	-176(%rbp), %rdi
	movq	-632(%rbp), %rsi                ## 8-byte Reload
	callq	_cookey
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$600, %rsp                      ## imm = 0x258
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_pc1,8,3                        ## @pc1
	.comm	_bytebit,8,3                    ## @bytebit
	.comm	_totrot,8,3                     ## @totrot
	.comm	_pc2,8,3                        ## @pc2
	.comm	_bigbyte,8,3                    ## @bigbyte
	.no_dead_strip	_deskey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deskey
_deskey:                                ; @deskey
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #592
	mov	x8, #0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _pc1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _pc1@GOTPAGEOFF]
	stur	x9, [x29, #-40]
Lloh5:
	ldr	x9, [x10]
Lloh6:
	adrp	x10, _bytebit@GOTPAGE
Lloh7:
	ldr	x10, [x10, _bytebit@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x11, sp, #232
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x8, lsl #3]
	and	x13, x12, #0x7
	asr	w12, w12, #3
	ldr	w12, [x0, w12, sxtw #2]
	ldr	w13, [x10, x13, lsl #2]
	bics	wzr, w13, w12
	cset	w12, eq
	str	w12, [x11, x8, lsl #2]
	add	x8, x8, #1
	cmp	x8, #56
	b.ne	LBB0_1
; %bb.2:
	mov	x8, #0
Lloh9:
	adrp	x9, _totrot@GOTPAGE
Lloh10:
	ldr	x9, [x9, _totrot@GOTPAGEOFF]
Lloh11:
	adrp	x10, _pc2@GOTPAGE
Lloh12:
	ldr	x10, [x10, _pc2@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x14, _bigbyte@GOTPAGE
Lloh16:
	ldr	x14, [x14, _bigbyte@GOTPAGEOFF]
	add	x11, sp, #8
	add	x12, x11, #112
	mov	w13, #15
Lloh17:
	ldr	x14, [x14]
	sub	x15, x29, #168
	mov	w16, #-28
	add	x17, sp, #232
	mov	x0, #4294967296
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, #16
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	mov	x5, #0
	sub	w3, w13, w8
	cmp	w1, #0
	csel	w3, w8, w3, eq
	sxtw	x4, w3
	mov	w3, #1
	bfi	x3, x4, #1, #63
	str	wzr, [x15, x3, lsl #2]
	ubfiz	x4, x4, #1, #31
	str	wzr, [x15, x4, lsl #2]
	lsl	x6, x8, #3
	ldrsw	x6, [x9, x6]
	add	x7, x6, x16
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x19, x6, x5
	add	w20, w7, w5
	cmp	x19, #28
	csel	x19, x19, x20, lt
	ldr	w19, [x17, x19, lsl #2]
	str	w19, [x11, x5, lsl #2]
	add	x5, x5, #1
	cmp	x5, #28
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x5, #0
	add	x7, x6, #28
	add	x6, x6, x0
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x19, x7, x5
	add	w20, w6, w5
	cmp	x19, #56
	csel	x19, x19, x20, lt
	ldr	w19, [x17, x19, lsl #2]
	str	w19, [x12, x5, lsl #2]
	add	x5, x5, #1
	cmp	x5, #28
	b.ne	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w5, #0
	mov	w6, #0
	mov	x7, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x7, x7, #1
	cmp	x7, #24
	b.eq	LBB0_3
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x19, [x10, x7, lsl #3]
	sbfiz	x19, x19, #2, #32
	ldr	w19, [x11, x19]
	cbz	w19, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w19, [x14, x7, lsl #2]
	orr	w6, w6, w19
	str	w6, [x15, x4, lsl #2]
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=2
	add	x19, x10, x7, lsl #3
	ldr	x19, [x19, #192]
	sbfiz	x19, x19, #2, #32
	ldr	w19, [x11, x19]
	cbz	w19, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w19, [x14, x7, lsl #2]
	orr	w5, w5, w19
	str	w5, [x15, x3, lsl #2]
	b	LBB0_9
LBB0_14:
	sub	x0, x29, #168
	mov	x1, x2
	bl	_cookey
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	add	sp, sp, #592
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_pc1,8,3                        ; @pc1
	.comm	_bytebit,8,3                    ; @bytebit
	.comm	_totrot,8,3                     ; @totrot
	.comm	_pc2,8,3                        ; @pc2
	.comm	_bigbyte,8,3                    ; @bigbyte
	.no_dead_strip	_deskey
.subsections_via_symbols
