	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sahara_aes_process
_sahara_aes_process:                    ## @sahara_aes_process
	.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	%rdi, %rbx
	movq	_dev_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	12(%r14), %edi
	movl	12(%rbx), %edx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	12(%rbx), %eax
	movl	%eax, 44(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	callq	_ablkcipher_request_ctx
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_crypto_ablkcipher_reqtfm
	movl	%eax, %edi
	callq	_crypto_ablkcipher_ctx
	movq	%rax, %r15
	movq	_FLAGS_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%r12), %ecx
	andl	(%rax), %ecx
	movl	%ecx, (%r12)
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14), %eax
	orl	%ecx, %eax
	movl	%eax, (%r14)
	movq	_FLAGS_CBC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	movl	40(%r14), %edi
	movq	_AES_KEYSIZE_128@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_3:
	movq	%r15, 32(%r14)
	leaq	24(%r14), %rbx
	movq	%rbx, %rdi
	callq	_reinit_completion
	movq	%r14, %rdi
	callq	_sahara_hw_descriptor_create
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_SAHARA_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movl	12(%r14), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
	movl	12(%r14), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_ptr,8,3                    ## @dev_ptr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dispatch request (nbytes=%d, src=%p, dst=%p)\n"

	.comm	_FLAGS_MODE_MASK,4,2            ## @FLAGS_MODE_MASK
	.comm	_FLAGS_CBC,4,2                  ## @FLAGS_CBC
	.comm	_AES_KEYSIZE_128,4,2            ## @AES_KEYSIZE_128
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SAHARA_TIMEOUT_MS,4,2          ## @SAHARA_TIMEOUT_MS
L_.str.1:                               ## @.str.1
	.asciz	"AES timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_sahara_aes_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sahara_aes_process
_sahara_aes_process:                    ; @sahara_aes_process
	.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, x0
Lloh0:
	adrp	x8, _dev_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dev_ptr@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w0, [x19, #12]
	ldp	w3, w2, [x20, #8]
	ldr	w4, [x20, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x20, #12]
	str	w8, [x19, #44]
	ldp	w9, w8, [x20, #4]
	str	w8, [x19, #8]
	str	w9, [x19, #20]
	mov	x0, x20
	bl	_ablkcipher_request_ctx
	mov	x22, x0
	mov	x0, x20
	bl	_crypto_ablkcipher_reqtfm
	bl	_crypto_ablkcipher_ctx
	mov	x21, x0
Lloh5:
	adrp	x8, _FLAGS_MODE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAGS_MODE_MASK@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x22]
	and	w9, w10, w9
	str	w9, [x22]
	ldr	w10, [x19]
	ldr	w8, [x8]
	bic	w8, w10, w8
	orr	w8, w8, w9
	str	w8, [x19]
Lloh7:
	adrp	x9, _FLAGS_CBC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FLAGS_CBC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.1:
	ldr	w1, [x20]
	cbz	w1, LBB0_3
; %bb.2:
	ldr	w0, [x19, #40]
Lloh10:
	adrp	x8, _AES_KEYSIZE_128@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AES_KEYSIZE_128@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_3:
	str	x21, [x19, #32]
	add	x20, x19, #24
	mov	x0, x20
	bl	_reinit_completion
	mov	x0, x19
	bl	_sahara_hw_descriptor_create
	cbz	w0, LBB0_6
; %bb.4:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _SAHARA_TIMEOUT_MS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SAHARA_TIMEOUT_MS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_timeout
	mov	x8, x0
	ldr	w0, [x19, #12]
	cbz	x8, LBB0_9
; %bb.7:
	ldp	w2, w1, [x19, #16]
Lloh18:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	bl	_dma_unmap_sg
	ldp	w1, w0, [x19, #8]
	ldr	w2, [x19, #4]
Lloh21:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	bl	_dma_unmap_sg
	mov	w0, #0
LBB0_8:
	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_9:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh26:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_ptr,8,3                    ; @dev_ptr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dispatch request (nbytes=%d, src=%p, dst=%p)\n"

	.comm	_FLAGS_MODE_MASK,4,2            ; @FLAGS_MODE_MASK
	.comm	_FLAGS_CBC,4,2                  ; @FLAGS_CBC
	.comm	_AES_KEYSIZE_128,4,2            ; @AES_KEYSIZE_128
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SAHARA_TIMEOUT_MS,4,2          ; @SAHARA_TIMEOUT_MS
l_.str.1:                               ; @.str.1
	.asciz	"AES timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_sahara_aes_process
.subsections_via_symbols
