	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_set_key
_crypt_set_key:                         ## @crypt_set_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%rsi, %rdi
	callq	_strlen
	movl	%eax, %r14d
	cmpq	$0, 8(%r12)
	je	LBB0_1
LBB0_2:
	cmpb	$58, (%r15)
	jne	LBB0_4
## %bb.3:
	leaq	1(%r15), %rsi
	movq	%r12, %rdi
	callq	_crypt_set_keyring_key
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_2
LBB0_4:
	movq	_DM_CRYPT_KEY_VALID@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	24(%r12), %rdi
	callq	_kzfree
	movq	$0, 24(%r12)
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movl	16(%r12), %edi
	movq	%r15, %rsi
	callq	_hex2bin
	testq	%rax, %rax
	js	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	callq	_crypt_setkey
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_set_bit
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r15, %rdi
	movl	$48, %esi
	movl	%r14d, %edx
	callq	_memset
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_DM_CRYPT_KEY_VALID,4,2         ## @DM_CRYPT_KEY_VALID
	.no_dead_strip	_crypt_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_set_key
_crypt_set_key:                         ; @crypt_set_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x1
	bl	_strlen
	mov	x20, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_3
LBB0_1:
	ldrb	w8, [x19]
	cmp	w8, #58
	b.ne	LBB0_4
; %bb.2:
	add	x1, x19, #1
	mov	x0, x22
	bl	_crypt_set_keyring_key
	mov	x21, x0
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_8
	b	LBB0_1
LBB0_4:
Lloh5:
	adrp	x23, _DM_CRYPT_KEY_VALID@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DM_CRYPT_KEY_VALID@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x22
	bl	_clear_bit
	ldr	x0, [x22, #24]
	bl	_kzfree
	str	xzr, [x22, #24]
	ldr	x2, [x22, #8]
	cbz	x2, LBB0_6
; %bb.5:
	ldr	w0, [x22, #16]
	mov	x1, x19
	bl	_hex2bin
	tbnz	x0, #63, LBB0_8
LBB0_6:
	mov	x0, x22
	bl	_crypt_setkey
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_set_bit
LBB0_8:
	mov	x0, x19
	mov	w1, #48
	mov	x2, x20
	bl	_memset
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_DM_CRYPT_KEY_VALID,4,2         ; @DM_CRYPT_KEY_VALID
	.no_dead_strip	_crypt_set_key
.subsections_via_symbols
