	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sahara_aes_crypt
_sahara_aes_crypt:                      ## @sahara_aes_crypt
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ablkcipher_request_ctx
	movq	%rax, %r15
	movq	_dev_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	12(%r12), %edi
	movl	(%rbx), %edx
	movq	_FLAGS_ENCRYPT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movq	(%rax), %rax
	andq	%r14, %rax
	setne	%cl
	movq	_FLAGS_CBC@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movq	(%rax), %rax
	andq	%r14, %rax
	setne	%r8b
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%rbx), %edi
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, (%r15)
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	8(%r12), %rdi
	movq	%rbx, %rsi
	callq	_ablkcipher_enqueue_request
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	(%r12), %edi
	callq	_wake_up_process
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movl	12(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_ptr,8,3                    ## @dev_ptr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nbytes: %d, enc: %d, cbc: %d\n"

	.comm	_FLAGS_ENCRYPT,8,3              ## @FLAGS_ENCRYPT
	.comm	_FLAGS_CBC,8,3                  ## @FLAGS_CBC
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"request size is not exact amount of AES blocks\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sahara_aes_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sahara_aes_crypt
_sahara_aes_crypt:                      ; @sahara_aes_crypt
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_ablkcipher_request_ctx
	mov	x21, x0
Lloh0:
	adrp	x8, _dev_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dev_ptr@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w0, [x22, #12]
	ldr	w2, [x19]
Lloh3:
	adrp	x8, _FLAGS_ENCRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAGS_ENCRYPT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x20
	cset	w3, ne
Lloh6:
	adrp	x8, _FLAGS_CBC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLAGS_CBC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	tst	x8, x20
	cset	w4, ne
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_IS_ALIGNED
	cbz	w0, LBB0_2
; %bb.1:
	str	x20, [x21]
	add	x20, x22, #4
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x22, #8
	mov	x1, x19
	bl	_ablkcipher_enqueue_request
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x22]
	bl	_wake_up_process
	mov	x0, x19
	b	LBB0_3
LBB0_2:
	ldr	w0, [x22, #12]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_ptr,8,3                    ; @dev_ptr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nbytes: %d, enc: %d, cbc: %d\n"

	.comm	_FLAGS_ENCRYPT,8,3              ; @FLAGS_ENCRYPT
	.comm	_FLAGS_CBC,8,3                  ; @FLAGS_CBC
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"request size is not exact amount of AES blocks\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sahara_aes_crypt
.subsections_via_symbols
