	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function des_setkey
_des_setkey:                            ## @des_setkey
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_des_initialised@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_des_init
LBB0_2:
	movl	(%rbx), %edi
	callq	_pg_ntoh32
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	callq	_pg_ntoh32
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	orl	%r14d, %ecx
	movq	_old_rawkey0@GOTPCREL(%rip), %rcx
	movq	_old_rawkey1@GOTPCREL(%rip), %rdx
	je	LBB0_5
## %bb.3:
	cmpl	(%rcx), %r14d
	jne	LBB0_5
## %bb.4:
	cmpl	(%rdx), %eax
	je	LBB0_7
LBB0_5:
	movl	%r14d, (%rcx)
	movl	%eax, (%rdx)
	movq	_key_perm_maskl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movl	%r14d, %ecx
	sarl	$25, %ecx
	movslq	%ecx, %r8
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movl	%r14d, %esi
	shrl	$17, %esi
	andl	$127, %esi
	movl	(%rdx,%rsi,4), %ebx
	orl	(%rcx,%r8,4), %ebx
	movq	16(%rdi), %rcx
	movl	%r14d, %r15d
	shrl	$9, %r15d
	andl	$127, %r15d
	orl	(%rcx,%r15,4), %ebx
	movq	24(%rdi), %rcx
	shrl	%r14d
	andl	$127, %r14d
	orl	(%rcx,%r14,4), %ebx
	movq	32(%rdi), %rcx
	movl	%eax, %edx
	sarl	$25, %edx
	movslq	%edx, %r9
	orl	(%rcx,%r9,4), %ebx
	movq	40(%rdi), %rdx
	movl	%eax, %r12d
	shrl	$17, %r12d
	andl	$127, %r12d
	orl	(%rdx,%r12,4), %ebx
	movq	48(%rdi), %r11
	movl	%eax, %edx
	shrl	$9, %edx
	andl	$127, %edx
	orl	(%r11,%rdx,4), %ebx
	movq	56(%rdi), %rdi
	shrl	%eax
	andl	$127, %eax
	orl	(%rdi,%rax,4), %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_key_perm_maskr@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rbx
	movq	(%rbx), %r11
	movq	8(%rbx), %rdi
	movl	(%rdi,%rsi,4), %r10d
	orl	(%r11,%r8,4), %r10d
	movq	16(%rbx), %rcx
	orl	(%rcx,%r15,4), %r10d
	movq	24(%rbx), %rcx
	orl	(%rcx,%r14,4), %r10d
	movq	32(%rbx), %rcx
	orl	(%rcx,%r9,4), %r10d
	movq	40(%rbx), %rcx
	orl	(%rcx,%r12,4), %r10d
	movq	48(%rbx), %rcx
	orl	(%rcx,%rdx,4), %r10d
	movq	56(%rbx), %rcx
	orl	(%rcx,%rax,4), %r10d
	movq	_key_shifts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movq	_comp_maskl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rcx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -192(%rbp)                ## 8-byte Spill
	movq	24(%rax), %rcx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	movq	32(%rax), %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	movq	40(%rax), %rcx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movq	48(%rax), %rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movq	56(%rax), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	_en_keysl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	_de_keysl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	_comp_maskr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	24(%rax), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	32(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	40(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	48(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	56(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_en_keysr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_de_keysr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$30, %r11d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cltq
	movq	-216(%rbp), %rcx                ## 8-byte Reload
	addq	(%rcx,%r14,2), %rax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movb	$28, %dl
	subb	%al, %dl
	movl	%edi, %r15d
	movl	%edx, %ecx
	sarl	%cl, %r15d
	movl	%r10d, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	movl	%r10d, %r12d
	movl	%edx, %ecx
	sarl	%cl, %r12d
	orl	%esi, %r15d
	movl	%r15d, %ecx
	shrl	$21, %ecx
	andl	$127, %ecx
	movl	%r15d, %edx
	shrl	$14, %edx
	andl	$127, %edx
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	movl	(%rsi,%rdx,4), %ebx
	movq	-208(%rbp), %rsi                ## 8-byte Reload
	orl	(%rsi,%rcx,4), %ebx
	movl	%r15d, %r13d
	shrl	$7, %r13d
	andl	$127, %r13d
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	orl	(%rsi,%r13,4), %ebx
	orl	%edi, %r12d
	andl	$127, %r15d
	movq	-184(%rbp), %rsi                ## 8-byte Reload
	orl	(%rsi,%r15,4), %ebx
	movl	%r12d, %r8d
	shrl	$21, %r8d
	andl	$127, %r8d
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	orl	(%rsi,%r8,4), %ebx
	movl	%r12d, %r9d
	shrl	$14, %r9d
	andl	$127, %r9d
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	orl	(%rsi,%r9,4), %ebx
	movl	%r12d, %esi
	shrl	$7, %esi
	andl	$127, %esi
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	orl	(%rdi,%rsi,4), %ebx
	andl	$127, %r12d
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	orl	(%rdi,%r12,4), %ebx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, (%rdi,%r14)
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, (%rdi,%r11,2)
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	(%rdi,%rdx,4), %edx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	orl	(%rdi,%rcx,4), %edx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	orl	(%rcx,%r13,4), %edx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	orl	(%rcx,%r15,4), %edx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	orl	(%rcx,%r8,4), %edx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	orl	(%rcx,%r9,4), %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	orl	(%rcx,%rsi,4), %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	orl	(%rcx,%r12,4), %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%edx, (%rcx,%r14)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%edx, (%rcx,%r11,2)
	addq	$-2, %r11
	addq	$4, %r14
	cmpq	$64, %r14
	jne	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_des_initialised,4,2            ## @des_initialised
	.comm	_old_rawkey0,4,2                ## @old_rawkey0
	.comm	_old_rawkey1,4,2                ## @old_rawkey1
	.comm	_key_perm_maskl,8,3             ## @key_perm_maskl
	.comm	_key_perm_maskr,8,3             ## @key_perm_maskr
	.comm	_key_shifts,8,3                 ## @key_shifts
	.comm	_comp_maskl,8,3                 ## @comp_maskl
	.comm	_en_keysl,8,3                   ## @en_keysl
	.comm	_de_keysl,8,3                   ## @de_keysl
	.comm	_comp_maskr,8,3                 ## @comp_maskr
	.comm	_en_keysr,8,3                   ## @en_keysr
	.comm	_de_keysr,8,3                   ## @de_keysr
	.no_dead_strip	_des_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function des_setkey
_des_setkey:                            ; @des_setkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x0
Lloh0:
	adrp	x8, _des_initialised@GOTPAGE
Lloh1:
	ldr	x8, [x8, _des_initialised@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_des_init
LBB0_2:
	ldr	w0, [x20]
	bl	_pg_ntoh32
	mov	x19, x0
	ldr	w0, [x20, #4]
	bl	_pg_ntoh32
	orr	w8, w0, w19
Lloh3:
	adrp	x10, _old_rawkey0@GOTPAGE
Lloh4:
	ldr	x10, [x10, _old_rawkey0@GOTPAGEOFF]
	ldr	w9, [x10]
Lloh5:
	adrp	x11, _old_rawkey1@GOTPAGE
Lloh6:
	ldr	x11, [x11, _old_rawkey1@GOTPAGEOFF]
	ldr	w12, [x11]
	cmp	w8, #0
	ccmp	w19, w9, #0, ne
	ccmp	w0, w12, #0, eq
	b.eq	LBB0_5
; %bb.3:
	mov	x8, #0
	mov	x9, #0
	str	w19, [x10]
	str	w0, [x11]
Lloh7:
	adrp	x10, _key_perm_maskl@GOTPAGE
Lloh8:
	ldr	x10, [x10, _key_perm_maskl@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	asr	w11, w19, #25
	sbfiz	x11, x11, #2, #32
	ldp	x12, x13, [x10]
	ldr	w12, [x12, x11]
	ubfx	w14, w19, #17, #7
	lsl	x14, x14, #2
	ldr	w13, [x13, x14]
	ubfx	w15, w19, #9, #7
	lsl	x15, x15, #2
	ldp	x16, x17, [x10, #16]
	ldr	w16, [x16, x15]
	ubfx	w1, w19, #1, #7
	lsl	x1, x1, #2
	ldr	w17, [x17, x1]
	asr	w2, w0, #25
	ldp	x3, x4, [x10, #32]
	sbfiz	x2, x2, #2, #32
	ldr	w3, [x3, x2]
	ubfx	w5, w0, #17, #7
	lsl	x5, x5, #2
	ldr	w4, [x4, x5]
	ldp	x6, x10, [x10, #48]
	ubfx	w7, w0, #9, #7
	lsl	x7, x7, #2
	ldr	w6, [x6, x7]
	ubfx	w0, w0, #1, #7
	lsl	x0, x0, #2
	ldr	w10, [x10, x0]
Lloh10:
	adrp	x19, _key_perm_maskr@GOTPAGE
Lloh11:
	ldr	x19, [x19, _key_perm_maskr@GOTPAGEOFF]
Lloh12:
	ldr	x19, [x19]
	ldp	x20, x21, [x19]
	ldr	w11, [x20, x11]
	ldr	w14, [x21, x14]
	orr	w12, w13, w12
	orr	w12, w12, w16
	orr	w12, w12, w17
	orr	w12, w12, w3
	orr	w12, w12, w4
	orr	w12, w12, w6
	orr	w10, w12, w10
	orr	w11, w14, w11
	ldp	x12, x13, [x19, #16]
	ldr	w12, [x12, x15]
	orr	w11, w11, w12
	ldr	w12, [x13, x1]
	orr	w11, w11, w12
	ldp	x12, x13, [x19, #32]
	ldr	w12, [x12, x2]
	orr	w11, w11, w12
	ldr	w12, [x13, x5]
	orr	w11, w11, w12
	ldp	x12, x13, [x19, #48]
	ldr	w12, [x12, x7]
	ldr	w13, [x13, x0]
	orr	w11, w11, w12
	orr	w11, w11, w13
Lloh13:
	adrp	x12, _key_shifts@GOTPAGE
Lloh14:
	ldr	x12, [x12, _key_shifts@GOTPAGEOFF]
Lloh15:
	adrp	x13, _comp_maskl@GOTPAGE
Lloh16:
	ldr	x13, [x13, _comp_maskl@GOTPAGEOFF]
Lloh17:
	ldr	x14, [x12]
Lloh18:
	ldr	x2, [x13]
	ldr	x12, [x2]
	stp	x12, x14, [sp, #48]             ; 16-byte Folded Spill
	ldr	x13, [x2, #8]
	ldr	x12, [x2, #16]
	stp	x12, x13, [sp, #32]             ; 16-byte Folded Spill
	ldr	x13, [x2, #24]
	ldr	x12, [x2, #32]
	stp	x12, x13, [sp, #16]             ; 16-byte Folded Spill
	ldp	x12, x1, [x2, #40]
	str	x12, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x2, [x2, #56]
Lloh19:
	adrp	x3, _en_keysl@GOTPAGE
Lloh20:
	ldr	x3, [x3, _en_keysl@GOTPAGEOFF]
Lloh21:
	ldr	x3, [x3]
Lloh22:
	adrp	x4, _de_keysl@GOTPAGE
Lloh23:
	ldr	x4, [x4, _de_keysl@GOTPAGEOFF]
Lloh24:
	ldr	x24, [x4]
Lloh25:
	adrp	x4, _comp_maskr@GOTPAGE
Lloh26:
	ldr	x4, [x4, _comp_maskr@GOTPAGEOFF]
Lloh27:
	ldr	x22, [x4]
	ldp	x4, x5, [x22]
	ldp	x6, x7, [x22, #16]
	ldp	x19, x20, [x22, #32]
Lloh28:
	adrp	x26, _en_keysr@GOTPAGE
Lloh29:
	ldr	x26, [x26, _en_keysr@GOTPAGEOFF]
Lloh30:
	adrp	x23, _de_keysr@GOTPAGE
Lloh31:
	ldr	x23, [x23, _de_keysr@GOTPAGEOFF]
	ldp	x21, x22, [x22, #48]
Lloh32:
	ldr	x23, [x23]
	add	x23, x23, #60
	add	x24, x24, #60
Lloh33:
	ldr	x26, [x26]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x27, [x12, x8, lsl #3]
	add	x9, x27, w9, sxtw
	lsl	w27, w10, w9
	mov	w12, #28
	sub	w28, w12, w9
	asr	w30, w10, w28
	orr	w27, w30, w27
	lsl	w30, w11, w9
	asr	w28, w11, w28
	orr	w28, w28, w30
	ubfx	w30, w27, #21, #7
	lsl	x30, x30, #2
	ldp	x13, x12, [sp, #40]             ; 16-byte Folded Reload
	ldr	w25, [x12, x30]
	ubfx	w12, w27, #14, #7
	lsl	x12, x12, #2
	ldr	w13, [x13, x12]
	orr	w13, w13, w25
	ubfx	w25, w27, #7, #7
	lsl	x25, x25, #2
	ldp	x15, x14, [sp, #24]             ; 16-byte Folded Reload
	ldr	w14, [x14, x25]
	orr	w13, w13, w14
	and	w14, w27, #0x7f
	lsl	x14, x14, #2
	ldr	w27, [x15, x14]
	ubfx	w15, w28, #21, #7
	orr	w13, w13, w27
	lsl	x15, x15, #2
	ldp	x17, x16, [sp, #8]              ; 16-byte Folded Reload
	ldr	w27, [x16, x15]
	ubfx	w16, w28, #14, #7
	lsl	x16, x16, #2
	orr	w13, w13, w27
	ldr	w27, [x17, x16]
	ubfx	w17, w28, #7, #7
	lsl	x17, x17, #2
	ldr	w0, [x1, x17]
	orr	w13, w13, w27
	orr	w13, w13, w0
	and	w0, w28, #0x7f
	lsl	x0, x0, #2
	ldr	w27, [x2, x0]
	orr	w13, w13, w27
	lsl	x27, x8, #2
	str	w13, [x3, x27]
	str	w13, [x24], #-4
	ldr	w13, [x4, x30]
	ldr	w12, [x5, x12]
	orr	w12, w12, w13
	ldr	w13, [x6, x25]
	orr	w12, w12, w13
	ldr	w13, [x7, x14]
	orr	w12, w12, w13
	ldr	w13, [x19, x15]
	orr	w12, w12, w13
	ldr	w13, [x20, x16]
	orr	w12, w12, w13
	ldr	w13, [x21, x17]
	orr	w12, w12, w13
	ldr	w13, [x22, x0]
	orr	w12, w12, w13
	str	w12, [x26, x27]
	str	w12, [x23], #-4
	add	x8, x8, #1
	cmp	x8, #16
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh33
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_des_initialised,4,2            ; @des_initialised
	.comm	_old_rawkey0,4,2                ; @old_rawkey0
	.comm	_old_rawkey1,4,2                ; @old_rawkey1
	.comm	_key_perm_maskl,8,3             ; @key_perm_maskl
	.comm	_key_perm_maskr,8,3             ; @key_perm_maskr
	.comm	_key_shifts,8,3                 ; @key_shifts
	.comm	_comp_maskl,8,3                 ; @comp_maskl
	.comm	_en_keysl,8,3                   ; @en_keysl
	.comm	_de_keysl,8,3                   ; @de_keysl
	.comm	_comp_maskr,8,3                 ; @comp_maskr
	.comm	_en_keysr,8,3                   ; @en_keysr
	.comm	_de_keysr,8,3                   ; @de_keysr
	.no_dead_strip	_des_setkey
.subsections_via_symbols
