	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_des_key                  ## -- Begin function parse_des_key
	.p2align	4, 0x90
_parse_des_key:                         ## @parse_des_key
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_strlen
	cmpl	$16, %eax
	jne	LBB0_4
## %bb.1:
	movsbl	(%r12), %edi
	callq	_hex2n
	movl	%eax, %ebx
	movsbl	1(%r12), %edi
	callq	_hex2n
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.2:
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	shll	$4, %ebx
	orl	%ebx, %eax
	movb	%al, -48(%rbp)
	movsbl	2(%r12), %edi
	callq	_hex2n
	movl	%eax, %ebx
	movsbl	3(%r12), %edi
	callq	_hex2n
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.7:
	testl	%eax, %eax
	js	LBB0_3
## %bb.8:
	shll	$4, %ebx
	orl	%ebx, %eax
	movb	%al, -47(%rbp)
	movsbl	4(%r12), %edi
	callq	_hex2n
	movl	%eax, %ebx
	movsbl	5(%r12), %edi
	callq	_hex2n
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.9:
	testl	%eax, %eax
	js	LBB0_3
## %bb.10:
	shll	$4, %ebx
	orl	%ebx, %eax
	movb	%al, -46(%rbp)
	movsbl	6(%r12), %edi
	callq	_hex2n
	movl	%eax, %ebx
	movsbl	7(%r12), %edi
	callq	_hex2n
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.11:
	testl	%eax, %eax
	js	LBB0_3
## %bb.12:
	shll	$4, %ebx
	orl	%ebx, %eax
	movb	%al, -45(%rbp)
	movsbl	8(%r12), %edi
	callq	_hex2n
	movl	%eax, %ebx
	movsbl	9(%r12), %edi
	callq	_hex2n
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.13:
	testl	%eax, %eax
	js	LBB0_3
## %bb.14:
	shll	$4, %ebx
	orl	%ebx, %eax
	movb	%al, -44(%rbp)
	movsbl	10(%r12), %edi
	callq	_hex2n
	movl	%eax, %ebx
	movsbl	11(%r12), %edi
	callq	_hex2n
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.15:
	testl	%eax, %eax
	js	LBB0_3
## %bb.16:
	shll	$4, %ebx
	orl	%ebx, %eax
	movb	%al, -43(%rbp)
	movsbl	12(%r12), %edi
	callq	_hex2n
	movl	%eax, %ebx
	movsbl	13(%r12), %edi
	callq	_hex2n
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.17:
	testl	%eax, %eax
	js	LBB0_3
## %bb.18:
	shll	$4, %ebx
	orl	%ebx, %eax
	movb	%al, -42(%rbp)
	movsbl	14(%r12), %edi
	callq	_hex2n
	movl	%eax, %ebx
	movsbl	15(%r12), %edi
	callq	_hex2n
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.19:
	testl	%eax, %eax
	js	LBB0_3
## %bb.20:
	shll	$4, %ebx
	orl	%ebx, %eax
	movb	%al, -41(%rbp)
	movl	$2, (%r14)
	movq	$0, 32(%r14)
	movq	_ETYPE_DES_CBC_CRC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	16(%r14), %rcx
	movl	%eax, (%rcx)
	movq	8(%r14), %rax
	movl	$8, (%rax)
	movl	$8, %edi
	callq	_malloc
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
	movq	24(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.22:
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	_KRB5_PW_SALT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	16(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	8(%r14), %rax
	movl	$0, 4(%rax)
	movq	24(%r14), %rax
	movq	$0, 8(%rax)
	movl	$2, 40(%r14)
	movq	$0, 72(%r14)
	movl	(%rbx), %eax
	movq	56(%r14), %rcx
	movl	%eax, (%rcx)
	movq	48(%r14), %rax
	movl	$8, (%rax)
	movl	$8, %edi
	callq	_malloc
	movq	64(%r14), %rcx
	movq	%rax, (%rcx)
	movq	64(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.23:
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r12), %eax
	movq	56(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	48(%r14), %rax
	movl	$0, 4(%rax)
	movq	64(%r14), %rax
	movq	$0, 8(%rax)
	movl	$2, 80(%r14)
	movq	$0, 112(%r14)
	movl	(%rbx), %eax
	movq	96(%r14), %rcx
	movl	%eax, (%rcx)
	movq	88(%r14), %rax
	movl	$8, (%rax)
	movl	$8, %edi
	callq	_malloc
	movq	104(%r14), %rcx
	movq	%rax, (%rcx)
	movq	104(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.24:
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r12), %eax
	movq	96(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	88(%r14), %rax
	movl	$0, 4(%rax)
	movq	104(%r14), %rax
	movq	$0, 8(%rax)
	movq	_ETYPE_DES_CBC_MD5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_ETYPE_DES_CBC_MD4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	56(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_4:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rax
LBB0_5:
	movq	%rax, (%r15)
	movl	$1, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad length, should be 16 for DES key"

L_.str.1:                               ## @.str.1
	.asciz	"non-hex character"

	.comm	_ETYPE_DES_CBC_CRC,4,2          ## @ETYPE_DES_CBC_CRC
L_.str.2:                               ## @.str.2
	.asciz	"malloc"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KRB5_PW_SALT,4,2               ## @KRB5_PW_SALT
	.comm	_ETYPE_DES_CBC_MD5,4,2          ## @ETYPE_DES_CBC_MD5
	.comm	_ETYPE_DES_CBC_MD4,4,2          ## @ETYPE_DES_CBC_MD4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_des_key                  ; -- Begin function parse_des_key
	.p2align	2
_parse_des_key:                         ; @parse_des_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_strlen
	cmp	w0, #16
	b.ne	LBB0_21
; %bb.1:
	ldrsb	w0, [x21]
	bl	_hex2n
	mov	x22, x0
	ldrsb	w0, [x21, #1]
	bl	_hex2n
	tbnz	w22, #31, LBB0_22
; %bb.2:
	tbnz	w0, #31, LBB0_22
; %bb.3:
	orr	w8, w0, w22, lsl #4
	strb	w8, [sp]
	ldrsb	w0, [x21, #2]
	bl	_hex2n
	mov	x22, x0
	ldrsb	w0, [x21, #3]
	bl	_hex2n
	tbnz	w22, #31, LBB0_22
; %bb.4:
	tbnz	w0, #31, LBB0_22
; %bb.5:
	orr	w8, w0, w22, lsl #4
	strb	w8, [sp, #1]
	ldrsb	w0, [x21, #4]
	bl	_hex2n
	mov	x22, x0
	ldrsb	w0, [x21, #5]
	bl	_hex2n
	tbnz	w22, #31, LBB0_22
; %bb.6:
	tbnz	w0, #31, LBB0_22
; %bb.7:
	orr	w8, w0, w22, lsl #4
	strb	w8, [sp, #2]
	ldrsb	w0, [x21, #6]
	bl	_hex2n
	mov	x22, x0
	ldrsb	w0, [x21, #7]
	bl	_hex2n
	tbnz	w22, #31, LBB0_22
; %bb.8:
	tbnz	w0, #31, LBB0_22
; %bb.9:
	orr	w8, w0, w22, lsl #4
	strb	w8, [sp, #3]
	ldrsb	w0, [x21, #8]
	bl	_hex2n
	mov	x22, x0
	ldrsb	w0, [x21, #9]
	bl	_hex2n
	tbnz	w22, #31, LBB0_22
; %bb.10:
	tbnz	w0, #31, LBB0_22
; %bb.11:
	orr	w8, w0, w22, lsl #4
	strb	w8, [sp, #4]
	ldrsb	w0, [x21, #10]
	bl	_hex2n
	mov	x22, x0
	ldrsb	w0, [x21, #11]
	bl	_hex2n
	tbnz	w22, #31, LBB0_22
; %bb.12:
	tbnz	w0, #31, LBB0_22
; %bb.13:
	orr	w8, w0, w22, lsl #4
	strb	w8, [sp, #5]
	ldrsb	w0, [x21, #12]
	bl	_hex2n
	mov	x22, x0
	ldrsb	w0, [x21, #13]
	bl	_hex2n
	tbnz	w22, #31, LBB0_22
; %bb.14:
	tbnz	w0, #31, LBB0_22
; %bb.15:
	orr	w8, w0, w22, lsl #4
	strb	w8, [sp, #6]
	ldrsb	w0, [x21, #14]
	bl	_hex2n
	mov	x22, x0
	ldrsb	w0, [x21, #15]
	bl	_hex2n
	tbnz	w22, #31, LBB0_22
; %bb.16:
	tbnz	w0, #31, LBB0_22
; %bb.17:
	orr	w8, w0, w22, lsl #4
	strb	w8, [sp, #7]
	mov	w23, #2
	str	w23, [x19]
	str	xzr, [x19, #32]
Lloh3:
	adrp	x21, _ETYPE_DES_CBC_CRC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ETYPE_DES_CBC_CRC@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	ldr	x8, [x19, #8]
	mov	w24, #8
	str	w24, [x8]
	mov	w0, #8
	bl	_malloc
	ldr	x8, [x19, #24]
	str	x0, [x8]
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	cbz	x0, LBB0_26
; %bb.18:
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
Lloh5:
	adrp	x22, _KRB5_PW_SALT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _KRB5_PW_SALT@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	x9, [x19, #16]
	str	w8, [x9, #4]
	ldr	x8, [x19, #8]
	str	wzr, [x8, #4]
	ldr	x8, [x19, #24]
	str	xzr, [x8, #8]
	str	w23, [x19, #40]
	str	xzr, [x19, #72]
	ldr	w8, [x21]
	ldr	x9, [x19, #56]
	str	w8, [x9]
	ldr	x8, [x19, #48]
	str	w24, [x8]
	mov	w0, #8
	bl	_malloc
	ldr	x8, [x19, #64]
	str	x0, [x8]
	ldr	x8, [x19, #64]
	ldr	x0, [x8]
	cbz	x0, LBB0_26
; %bb.19:
	mov	w23, #8
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x22]
	ldr	x9, [x19, #56]
	str	w8, [x9, #4]
	ldr	x8, [x19, #48]
	str	wzr, [x8, #4]
	ldr	x8, [x19, #64]
	str	xzr, [x8, #8]
	mov	w8, #2
	str	w8, [x19, #80]
	str	xzr, [x19, #112]
	ldr	w8, [x21]
	ldr	x9, [x19, #96]
	str	w8, [x9]
	ldr	x8, [x19, #88]
	str	w23, [x8]
	mov	w0, #8
	bl	_malloc
	ldr	x8, [x19, #104]
	str	x0, [x8]
	ldr	x8, [x19, #104]
	ldr	x0, [x8]
	cbz	x0, LBB0_26
; %bb.20:
	mov	x1, sp
	mov	w2, #8
	bl	_memcpy
	mov	w0, #0
	ldr	w8, [x22]
	ldr	x9, [x19, #96]
	str	w8, [x9, #4]
	ldr	x8, [x19, #88]
	str	wzr, [x8, #4]
	ldr	x8, [x19, #104]
	str	xzr, [x8, #8]
Lloh7:
	adrp	x8, _ETYPE_DES_CBC_MD5@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETYPE_DES_CBC_MD5@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9]
Lloh10:
	adrp	x8, _ETYPE_DES_CBC_MD4@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETYPE_DES_CBC_MD4@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x19, #56]
	str	w8, [x9]
	b	LBB0_24
LBB0_21:
Lloh13:
	adrp	x8, l_.str@PAGE
Lloh14:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_23
LBB0_22:
Lloh15:
	adrp	x8, l_.str.1@PAGE
Lloh16:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_23:
	str	x8, [x20]
	mov	w0, #1
LBB0_24:
	ldr	x8, [sp, #8]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.25:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_26:
Lloh20:
	adrp	x8, l_.str.2@PAGE
Lloh21:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x20]
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad length, should be 16 for DES key"

l_.str.1:                               ; @.str.1
	.asciz	"non-hex character"

	.comm	_ETYPE_DES_CBC_CRC,4,2          ; @ETYPE_DES_CBC_CRC
l_.str.2:                               ; @.str.2
	.asciz	"malloc"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KRB5_PW_SALT,4,2               ; @KRB5_PW_SALT
	.comm	_ETYPE_DES_CBC_MD5,4,2          ; @ETYPE_DES_CBC_MD5
	.comm	_ETYPE_DES_CBC_MD4,4,2          ; @ETYPE_DES_CBC_MD4
.subsections_via_symbols
