	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_hash_finish_req
_img_hash_finish_req:                   ## @img_hash_finish_req
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_ahash_request_ctx
	movq	8(%rax), %r12
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
	movq	_DRIVER_FLAGS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	%r15, %rdi
	callq	_img_hash_copy_hash
	movq	_DRIVER_FLAGS_FINAL@GOTPCREL(%rip), %rax
	movl	(%r12), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_img_hash_finish
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_2:
	xorl	%r14d, %r14d
LBB0_5:
	movq	_DRIVER_FLAGS_DMA_READY@GOTPCREL(%rip), %rax
	movq	_DRIVER_FLAGS_OUTPUT_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DRIVER_FLAGS_CPU@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DRIVER_FLAGS_BUSY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DRIVER_FLAGS_FINAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r12)
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_FLAGS_FINAL,4,2         ## @DRIVER_FLAGS_FINAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hash failed with error %d\n"

	.comm	_DRIVER_FLAGS_ERROR,4,2         ## @DRIVER_FLAGS_ERROR
	.comm	_DRIVER_FLAGS_DMA_READY,4,2     ## @DRIVER_FLAGS_DMA_READY
	.comm	_DRIVER_FLAGS_OUTPUT_READY,4,2  ## @DRIVER_FLAGS_OUTPUT_READY
	.comm	_DRIVER_FLAGS_CPU,4,2           ## @DRIVER_FLAGS_CPU
	.comm	_DRIVER_FLAGS_BUSY,4,2          ## @DRIVER_FLAGS_BUSY
	.no_dead_strip	_img_hash_finish_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_hash_finish_req
_img_hash_finish_req:                   ; @img_hash_finish_req
	.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	x20, x1
	mov	x19, x0
	bl	_ahash_request_ctx
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x23, _DRIVER_FLAGS_FINAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DRIVER_FLAGS_FINAL@GOTPAGEOFF]
	cbz	w20, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x22, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
Lloh4:
	adrp	x8, _DRIVER_FLAGS_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRIVER_FLAGS_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_img_hash_copy_hash
	ldr	w8, [x23]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_img_hash_finish
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
Lloh7:
	adrp	x8, _DRIVER_FLAGS_DMA_READY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRIVER_FLAGS_DMA_READY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _DRIVER_FLAGS_OUTPUT_READY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DRIVER_FLAGS_OUTPUT_READY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _DRIVER_FLAGS_CPU@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DRIVER_FLAGS_CPU@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _DRIVER_FLAGS_BUSY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DRIVER_FLAGS_BUSY@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	ldr	x2, [x19]
	cbz	x2, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	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
	br	x2
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_FLAGS_FINAL,4,2         ; @DRIVER_FLAGS_FINAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hash failed with error %d\n"

	.comm	_DRIVER_FLAGS_ERROR,4,2         ; @DRIVER_FLAGS_ERROR
	.comm	_DRIVER_FLAGS_DMA_READY,4,2     ; @DRIVER_FLAGS_DMA_READY
	.comm	_DRIVER_FLAGS_OUTPUT_READY,4,2  ; @DRIVER_FLAGS_OUTPUT_READY
	.comm	_DRIVER_FLAGS_CPU,4,2           ; @DRIVER_FLAGS_CPU
	.comm	_DRIVER_FLAGS_BUSY,4,2          ; @DRIVER_FLAGS_BUSY
	.no_dead_strip	_img_hash_finish_req
.subsections_via_symbols
