	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_message
_crypt_message:                         ## @crypt_message
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$2, %esi
	jb	LBB0_17
## %bb.1:
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movq	(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_2
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
LBB0_18:
	callq	_DMWARN
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_DM_CRYPT_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r14), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$2, %ebx
	je	LBB0_16
## %bb.5:
	cmpl	$3, %ebx
	jne	LBB0_17
## %bb.6:
	movq	8(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_get_key_size
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	cmpl	%eax, (%r14)
	jne	LBB0_9
## %bb.10:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_crypt_set_key
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.11:
	movq	24(%r14), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	*%rax
	movl	%eax, %ebx
LBB0_14:
	cmpq	$0, 16(%r14)
	je	LBB0_20
## %bb.15:
	movq	8(%r14), %rdi
	movl	(%r14), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_20
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_18
LBB0_16:
	movq	8(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_17
## %bb.21:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crypt_wipe_key                 ## TAILCALL
LBB0_9:
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	$48, %esi
	movl	%eax, %edx
	callq	_memset
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key"

	.comm	_DM_CRYPT_SUSPENDED,4,2         ## @DM_CRYPT_SUSPENDED
L_.str.1:                               ## @.str.1
	.asciz	"not suspended during key manipulation."

L_.str.2:                               ## @.str.2
	.asciz	"set"

L_.str.3:                               ## @.str.3
	.asciz	"wipe"

L_.str.4:                               ## @.str.4
	.asciz	"unrecognised message received."

	.no_dead_strip	_crypt_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_message
_crypt_message:                         ; @crypt_message
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	cmp	w1, #2
	b.lo	LBB0_2
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x0, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_6
LBB0_2:
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_3:
	bl	_DMWARN
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x8, _DM_CRYPT_SUSPENDED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DM_CRYPT_SUSPENDED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_test_bit
	cbz	w0, LBB0_16
; %bb.7:
	cmp	w21, #2
	b.eq	LBB0_17
; %bb.8:
	cmp	w21, #3
	b.ne	LBB0_2
; %bb.9:
	ldr	x0, [x20, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcasecmp
	cbnz	w0, LBB0_2
; %bb.10:
	add	x20, x20, #16
	mov	x0, x20
	bl	_get_key_size
	tbnz	w0, #31, LBB0_19
; %bb.11:
	ldr	w8, [x19]
	cmp	w8, w0
	b.ne	LBB0_19
; %bb.12:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_crypt_set_key
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.13:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_20
; %bb.14:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.15:
	mov	x0, x19
	blr	x8
	mov	x20, x0
	b	LBB0_21
LBB0_16:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_17:
	ldr	x0, [x20, #8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcasecmp
	cbnz	w0, LBB0_2
; %bb.18:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_crypt_wipe_key
LBB0_19:
	ldr	x19, [x20]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	w1, #48
	bl	_memset
	b	LBB0_4
LBB0_20:
	mov	w20, #0
LBB0_21:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.22:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key"

	.comm	_DM_CRYPT_SUSPENDED,4,2         ; @DM_CRYPT_SUSPENDED
l_.str.1:                               ; @.str.1
	.asciz	"not suspended during key manipulation."

l_.str.2:                               ; @.str.2
	.asciz	"set"

l_.str.3:                               ; @.str.3
	.asciz	"wipe"

l_.str.4:                               ; @.str.4
	.asciz	"unrecognised message received."

	.no_dead_strip	_crypt_message
.subsections_via_symbols
