	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_hash_write_via_dma
_img_hash_write_via_dma:                ## @img_hash_write_via_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_ahash_request_ctx
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_img_hash_start
	movl	8(%rbx), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_DRIVER_FLAGS_FINAL@GOTPCREL(%rip), %rcx
	movl	(%rbx), %eax
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_3:
	movq	_DRIVER_FLAGS_DMA_ACTIVE@GOTPCREL(%rip), %rcx
	movq	_DRIVER_FLAGS_FINAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, (%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_tasklet_schedule
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmit dma size: %d\n"

	.comm	_DRIVER_FLAGS_FINAL,4,2         ## @DRIVER_FLAGS_FINAL
	.comm	_DRIVER_FLAGS_DMA_ACTIVE,4,2    ## @DRIVER_FLAGS_DMA_ACTIVE
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_img_hash_write_via_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_write_via_dma
_img_hash_write_via_dma:                ; @img_hash_write_via_dma
	.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
	ldr	w0, [x0, #12]
	bl	_ahash_request_ctx
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1
	bl	_img_hash_start
	ldr	w0, [x19, #8]
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w9, [x20]
Lloh2:
	adrp	x8, _DRIVER_FLAGS_FINAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRIVER_FLAGS_FINAL@GOTPAGEOFF]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	w9, [x19]
	b	LBB0_3
LBB0_2:
	ldr	w9, [x8]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_3:
Lloh4:
	adrp	x10, _DRIVER_FLAGS_DMA_ACTIVE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _DRIVER_FLAGS_DMA_ACTIVE@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	ldr	w8, [x8]
	orr	w8, w8, w10
	orr	w8, w8, w9
	str	w8, [x19], #4
	mov	x0, x19
	bl	_tasklet_schedule
Lloh7:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmit dma size: %d\n"

	.comm	_DRIVER_FLAGS_FINAL,4,2         ; @DRIVER_FLAGS_FINAL
	.comm	_DRIVER_FLAGS_DMA_ACTIVE,4,2    ; @DRIVER_FLAGS_DMA_ACTIVE
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_img_hash_write_via_dma
.subsections_via_symbols
