	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_aes_done_task
_omap_aes_done_task:                    ## @omap_aes_done_task
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	cmpl	$0, 52(%rbx)
	jne	LBB0_2
## %bb.1:
	movl	40(%rbx), %edi
	movl	32(%rbx), %edx
	movl	36(%rbx), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	callq	_dma_sync_sg_for_device
	movl	48(%rbx), %esi
	movl	40(%rbx), %edi
	movl	44(%rbx), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
	movl	40(%rbx), %edi
	movl	32(%rbx), %edx
	movl	36(%rbx), %esi
	movl	(%r14), %ecx
	callq	_dma_unmap_sg
	movq	%rbx, %rdi
	callq	_omap_aes_crypt_dma_stop
LBB0_2:
	movq	24(%rbx), %rdi
	movl	(%rbx), %r9d
	movl	4(%rbx), %ecx
	movq	_FLAGS_IN_DATA_ST_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_omap_crypto_cleanup
	leaq	16(%rbx), %rdi
	movq	8(%rbx), %rsi
	movl	(%rbx), %r9d
	movl	4(%rbx), %ecx
	movq	_FLAGS_OUT_DATA_ST_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	callq	_omap_crypto_cleanup
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_omap_aes_finish_req
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter done_task\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_FLAGS_IN_DATA_ST_SHIFT,4,2     ## @FLAGS_IN_DATA_ST_SHIFT
	.comm	_FLAGS_OUT_DATA_ST_SHIFT,4,2    ## @FLAGS_OUT_DATA_ST_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"exit\n"

	.no_dead_strip	_omap_aes_done_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_aes_done_task
_omap_aes_done_task:                    ; @omap_aes_done_task
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19, #52]
	cbnz	w8, LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #36]
	ldr	w2, [x19, #32]
Lloh2:
	adrp	x20, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x20]
	bl	_dma_sync_sg_for_device
	ldp	w2, w1, [x19, #44]
	ldr	w0, [x19, #40]
Lloh4:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_dma_unmap_sg
	ldp	w1, w0, [x19, #36]
	ldr	w2, [x19, #32]
	ldr	w3, [x20]
	bl	_dma_unmap_sg
	mov	x0, x19
	bl	_omap_aes_crypt_dma_stop
LBB0_2:
	ldr	x0, [x19, #24]
Lloh7:
	adrp	x8, _FLAGS_IN_DATA_ST_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FLAGS_IN_DATA_ST_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	ldp	w5, w3, [x19]
	mov	x1, #0
	mov	w2, #0
	bl	_omap_crypto_cleanup
	add	x0, x19, #16
	ldr	x1, [x19, #8]
Lloh10:
	adrp	x8, _FLAGS_OUT_DATA_ST_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FLAGS_OUT_DATA_ST_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	ldp	w5, w3, [x19]
	mov	w2, #0
	bl	_omap_crypto_cleanup
	mov	x0, x19
	mov	w1, #0
	bl	_omap_aes_finish_req
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_debug
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter done_task\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_FLAGS_IN_DATA_ST_SHIFT,4,2     ; @FLAGS_IN_DATA_ST_SHIFT
	.comm	_FLAGS_OUT_DATA_ST_SHIFT,4,2    ; @FLAGS_OUT_DATA_ST_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"exit\n"

	.no_dead_strip	_omap_aes_done_task
.subsections_via_symbols
