	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_hash_xmit_dma
_img_hash_xmit_dma:                     ## @img_hash_xmit_dma
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	12(%rdi), %edi
	callq	_ahash_request_ctx
	movq	%rax, %rbx
	movl	8(%r15), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_dma_map_sg
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%r15), %edi
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DMA_PREP_INTERRUPT@GOTPCREL(%rip), %rdx
	movq	_DMA_CTRL_ACK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rdx), %r8d
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_dmaengine_prep_slave_sg
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_img_hash_dma_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r15, (%rax)
	movq	%rax, %rdi
	callq	_dmaengine_submit
	movl	4(%r15), %edi
	callq	_dma_async_issue_pending
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	%ecx, (%r15)
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	subl	(%r13), %eax
	xorl	%ebx, %ebx
	movl	%eax, (%r15)
	movl	8(%r15), %edi
	movl	(%r12), %ecx
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_dma_unmap_sg
	subl	(%r13), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid DMA sg\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_PREP_INTERRUPT,4,2         ## @DMA_PREP_INTERRUPT
	.comm	_DMA_CTRL_ACK,4,2               ## @DMA_CTRL_ACK
L_.str.1:                               ## @.str.1
	.asciz	"Null DMA descriptor\n"

	.comm	_img_hash_dma_callback,4,2      ## @img_hash_dma_callback
	.no_dead_strip	_img_hash_xmit_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_hash_xmit_dma
_img_hash_xmit_dma:                     ; @img_hash_xmit_dma
	.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
	ldr	w0, [x0, #12]
	bl	_ahash_request_ctx
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x22, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x1, x20
	mov	w2, #1
	bl	_dma_map_sg
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh4:
	adrp	x9, _DMA_PREP_INTERRUPT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _DMA_PREP_INTERRUPT@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _DMA_CTRL_ACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_CTRL_ACK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x1, x20
	bl	_dmaengine_prep_slave_sg
	cbz	x0, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _img_hash_dma_callback@GOTPAGE
Lloh12:
	ldr	x8, [x8, _img_hash_dma_callback@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x19, [x0]
	bl	_dmaengine_submit
	ldr	w0, [x19, #4]
	bl	_dma_async_issue_pending
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x8]
	neg	w9, w9
	str	w9, [x19]
	ldr	w8, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh20:
	adrp	x21, _EINVAL@GOTPAGE
Lloh21:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x21]
	neg	w8, w8
	str	w8, [x19]
	ldr	w0, [x19, #8]
	ldr	w3, [x22]
	mov	x1, x20
	mov	w2, #1
	bl	_dma_unmap_sg
	ldr	w8, [x21]
LBB0_5:
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid DMA sg\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_PREP_INTERRUPT,4,2         ; @DMA_PREP_INTERRUPT
	.comm	_DMA_CTRL_ACK,4,2               ; @DMA_CTRL_ACK
l_.str.1:                               ; @.str.1
	.asciz	"Null DMA descriptor\n"

	.comm	_img_hash_dma_callback,4,2      ; @img_hash_dma_callback
	.no_dead_strip	_img_hash_xmit_dma
.subsections_via_symbols
