	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_hash_xmit_dma
_s5p_hash_xmit_dma:                     ## @s5p_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
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_ahash_request_ctx
	movq	%rax, %r15
	movl	12(%rbx), %edi
	movl	24(%rax), %esi
	movl	28(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_sg
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	_HASH_FLAGS_DMA_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_set_bit
	movl	24(%r15), %eax
	movl	%eax, 4(%rbx)
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_s5p_hash_write_ctrl
	addq	%r12, 8(%r15)
	subq	%r12, 16(%r15)
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	_HASH_FLAGS_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
LBB0_4:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_s5p_set_dma_hashdata
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	$1, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %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	"dma_map_sg error\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HASH_FLAGS_DMA_ACTIVE,4,2      ## @HASH_FLAGS_DMA_ACTIVE
	.comm	_HASH_FLAGS_FINAL,4,2           ## @HASH_FLAGS_FINAL
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_s5p_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 s5p_hash_xmit_dma
_s5p_hash_xmit_dma:                     ; @s5p_hash_xmit_dma
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_ahash_request_ctx
	mov	x20, x0
	ldr	w0, [x19, #12]
	ldp	w1, w2, [x20, #24]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_dma_map_sg
	cbz	w0, LBB0_4
; %bb.1:
	mov	x24, x0
Lloh3:
	adrp	x8, _HASH_FLAGS_DMA_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HASH_FLAGS_DMA_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x23, x19, #8
	mov	x1, x23
	bl	_set_bit
	ldr	w8, [x20, #24]
	stp	w24, w8, [x19]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_s5p_hash_write_ctrl
	ldp	x8, x9, [x20, #8]
	add	x8, x8, x22
	sub	x9, x9, x22
	stp	x8, x9, [x20, #8]
	cbz	w21, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _HASH_FLAGS_FINAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HASH_FLAGS_FINAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_set_bit
LBB0_3:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_s5p_set_dma_hashdata
Lloh9:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #12]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w8, #1
	str	w8, [x20]
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_map_sg error\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HASH_FLAGS_DMA_ACTIVE,4,2      ; @HASH_FLAGS_DMA_ACTIVE
	.comm	_HASH_FLAGS_FINAL,4,2           ; @HASH_FLAGS_FINAL
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_s5p_hash_xmit_dma
.subsections_via_symbols
