	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_aes_gcm_done_task
_omap_aes_gcm_done_task:                ## @omap_aes_gcm_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	%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	%rdi, %r15
	movl	(%rdi), %edi
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ALIGN
	movl	%eax, %r12d
	movl	4(%r15), %edi
	movl	(%rbx), %esi
	callq	_ALIGN
	movl	%eax, %ebx
	movq	32(%r15), %rdi
	callq	_aead_request_ctx
	movq	%rax, %r14
	cmpl	$0, (%r15)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	cmpl	$0, 4(%r15)
	setne	%r13b
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movl	16(%r15), %edi
	movq	48(%r15), %rsi
	movl	56(%r15), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	callq	_dma_sync_sg_for_device
	movq	64(%r15), %rsi
	movl	16(%r15), %edi
	movl	60(%r15), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_sg
	movl	16(%r15), %edi
	movq	48(%r15), %rsi
	movl	56(%r15), %edx
	movl	(%rbx), %ecx
	callq	_dma_unmap_sg
	movq	%r15, %rdi
	callq	_omap_aes_crypt_dma_stop
	movq	48(%r15), %rdi
	movq	40(%r15), %rsi
	movq	32(%r15), %rax
	movl	(%rax), %edx
	movq	_FLAGS_OUT_DATA_ST_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	4(%r15), %ecx
	movl	8(%r15), %r9d
	callq	_omap_crypto_cleanup
	movl	8(%r15), %r9d
	movq	_FLAGS_ENCRYPT@GOTPCREL(%rip), %rbx
	testl	%r9d, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	movq	32(%r15), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	addl	4(%r15), %edx
	movl	12(%r15), %ecx
	movl	$1, %r8d
	callq	_scatterwalk_map_and_copy
	movl	8(%r15), %r9d
LBB0_5:
	movq	%r14, %r12
	movq	24(%r15), %rdi
	movq	_FLAGS_ASSOC_DATA_ST_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_omap_crypto_cleanup
	shlq	$2, %r13
	addq	24(%r15), %r13
	movq	_FLAGS_IN_DATA_ST_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	8(%r15), %r9d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_omap_crypto_cleanup
	movl	(%rbx), %eax
	testl	%eax, 8(%r15)
	je	LBB0_6
LBB0_11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_omap_aes_gcm_finish_req
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_aes_gcm_handle_queue      ## TAILCALL
LBB0_6:
	movl	12(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movq	(%r12), %r12
	xorl	%ebx, %ebx
	movq	_EBADMSG@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12,%rbx,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%r14d, %r14d
	subl	(%r13), %r14d
	movl	12(%r15), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_FLAGS_OUT_DATA_ST_SHIFT,4,2    ## @FLAGS_OUT_DATA_ST_SHIFT
	.comm	_FLAGS_ENCRYPT,4,2              ## @FLAGS_ENCRYPT
	.comm	_FLAGS_ASSOC_DATA_ST_SHIFT,4,2  ## @FLAGS_ASSOC_DATA_ST_SHIFT
	.comm	_FLAGS_IN_DATA_ST_SHIFT,4,2     ## @FLAGS_IN_DATA_ST_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GCM decryption: Tag Message is wrong\n"

	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.no_dead_strip	_omap_aes_gcm_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_gcm_done_task
_omap_aes_gcm_done_task:                ; @omap_aes_gcm_done_task
	.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, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x20, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ALIGN
	mov	x22, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	bl	_ALIGN
	mov	x21, x0
	ldr	x0, [x19, #32]
	bl	_aead_request_ctx
	mov	x20, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w23, ne
	b	LBB0_3
LBB0_2:
	mov	x23, #0
LBB0_3:
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #48]
	ldr	w2, [x19, #56]
Lloh2:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	bl	_dma_sync_sg_for_device
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #64]
	ldr	w2, [x19, #60]
Lloh4:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_dma_unmap_sg
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #48]
	ldr	w2, [x19, #56]
	ldr	w3, [x24]
	bl	_dma_unmap_sg
	mov	x0, x19
	bl	_omap_aes_crypt_dma_stop
	ldp	x1, x0, [x19, #40]
	ldr	x8, [x19, #32]
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _FLAGS_OUT_DATA_ST_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FLAGS_OUT_DATA_ST_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	ldp	w3, w5, [x19, #4]
	bl	_omap_crypto_cleanup
	ldr	w5, [x19, #8]
Lloh10:
	adrp	x24, _FLAGS_ENCRYPT@GOTPAGE
Lloh11:
	ldr	x24, [x24, _FLAGS_ENCRYPT@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w5
	b.eq	LBB0_5
; %bb.4:
	ldr	x0, [x20]
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #4]
	ldp	w8, w1, [x8]
	add	w2, w8, w9
	ldr	w3, [x19, #12]
	mov	w4, #1
	bl	_scatterwalk_map_and_copy
	ldr	w5, [x19, #8]
LBB0_5:
	ldr	x0, [x19, #24]
Lloh12:
	adrp	x8, _FLAGS_ASSOC_DATA_ST_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLAGS_ASSOC_DATA_ST_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x1, #0
	mov	w2, #0
	mov	x3, x22
	bl	_omap_crypto_cleanup
	ldr	x8, [x19, #24]
	add	x0, x8, x23, lsl #2
Lloh15:
	adrp	x8, _FLAGS_IN_DATA_ST_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FLAGS_IN_DATA_ST_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	ldr	w5, [x19, #8]
	mov	x1, #0
	mov	w2, #0
	mov	x3, x21
	bl	_omap_crypto_cleanup
	mov	w1, #0
	ldr	w8, [x19, #8]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_omap_aes_gcm_finish_req
	mov	x0, x19
	mov	x1, #0
	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
	b	_omap_aes_gcm_handle_queue
LBB0_7:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x21, #0
	mov	w1, #0
	ldr	x22, [x20]
Lloh18:
	adrp	x23, _EBADMSG@GOTPAGE
Lloh19:
	ldr	x23, [x23, _EBADMSG@GOTPAGEOFF]
Lloh20:
	adrp	x20, l_.str@PAGE
Lloh21:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_6
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, x21, lsl #3]
	cbz	x9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_dev_err
	ldr	w8, [x23]
	neg	w1, w8
	ldr	w8, [x19, #12]
	b	LBB0_9
LBB0_12:
	mov	w1, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_FLAGS_OUT_DATA_ST_SHIFT,4,2    ; @FLAGS_OUT_DATA_ST_SHIFT
	.comm	_FLAGS_ENCRYPT,4,2              ; @FLAGS_ENCRYPT
	.comm	_FLAGS_ASSOC_DATA_ST_SHIFT,4,2  ; @FLAGS_ASSOC_DATA_ST_SHIFT
	.comm	_FLAGS_IN_DATA_ST_SHIFT,4,2     ; @FLAGS_IN_DATA_ST_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GCM decryption: Tag Message is wrong\n"

	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.no_dead_strip	_omap_aes_gcm_done_task
.subsections_via_symbols
