	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pk_encode                      ## -- Begin function pk_encode
	.p2align	4, 0x90
_pk_encode:                             ## @pk_encode
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -336(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdi, -320(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-305(%rbp), %rdi
	xorl	%r13d, %r13d
	movl	$1, %r15d
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_memset
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	leal	7(%rax), %ecx
	leal	14(%rax), %r12d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r12d
	andl	$-8, %r12d
	leaq	-312(%rbp), %rsi
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	callq	_DES_key_sched
	movq	_DES_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	leaq	-312(%rbp), %rcx
	leaq	-305(%rbp), %r8
	callq	_DES_cbc_encrypt
	cmpl	$0, -328(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_3
## %bb.1:
	cmpl	$2, %r12d
	cmovgel	%r12d, %r15d
	addq	%r15, %r15
	xorl	%r13d, %r13d
	movq	_hextab@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	movzbl	(%rbx), %edx
	movq	%rdx, %rsi
	shrq	$4, %rsi
	movzbl	(%rcx,%rsi), %ecx
	movb	%cl, (%r14,%r13)
	movq	(%rax), %rcx
	andl	$15, %edx
	movzbl	(%rcx,%rdx), %ecx
	movb	%cl, 1(%r14,%r13)
	addq	$2, %r13
	incq	%rbx
	cmpq	%r13, %r15
	jne	LBB0_2
LBB0_3:
	movb	$0, (%r14,%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DES_ENCRYPT,4,2                ## @DES_ENCRYPT
	.comm	_hextab,8,3                     ## @hextab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pk_encode                      ; -- Begin function pk_encode
	.p2align	2
_pk_encode:                             ; @pk_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x0, sp, #7
	mov	w1, #0
	mov	w2, #1
	bl	_memset
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	mov	x0, x22
	bl	_strlen
	mov	x23, x0
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	and	w20, w8, #0xfffffff8
	mov	x1, sp
	mov	x0, x21
	bl	_DES_key_sched
Lloh3:
	adrp	x8, _DES_ENCRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DES_ENCRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	add	x1, sp, #8
	mov	x3, sp
	add	x4, sp, #7
	mov	x0, x22
	mov	x2, x20
	bl	_DES_cbc_encrypt
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	cmp	w20, #1
	csinc	w9, w20, wzr, gt
	lsl	x9, x9, #1
	add	x10, sp, #8
Lloh6:
	adrp	x11, _hextab@GOTPAGE
Lloh7:
	ldr	x11, [x11, _hextab@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	ldrb	w13, [x10], #1
	lsr	x14, x13, #4
	ldrb	w12, [x12, x14]
	add	x14, x19, x8
	strb	w12, [x14]
	ldr	x12, [x11]
	and	x13, x13, #0xf
	ldrb	w12, [x12, x13]
	add	x8, x8, #2
	strb	w12, [x14, #1]
	cmp	x9, x8
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
	strb	wzr, [x19, x8]
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DES_ENCRYPT,4,2                ; @DES_ENCRYPT
	.comm	_hextab,8,3                     ; @hextab
.subsections_via_symbols
