	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_hash_handle_queue
_img_hash_handle_queue:                 ## @img_hash_handle_queue
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	20(%r14), %rdi
	movq	%rbx, %rsi
	callq	_ahash_enqueue_request
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_DRIVER_FLAGS_BUSY@GOTPCREL(%rip), %r12
	movl	(%r14), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	20(%r14), %rbx
	movq	%rbx, %rdi
	callq	_crypto_get_backlog
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_crypto_dequeue_request
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %r13
	movl	(%r12), %eax
	orl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	callq	*(%rdi)
LBB0_8:
	movq	%r13, %rdi
	callq	_ahash_request_cast
	movq	%rax, %r15
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_ahash_request_ctx
	movl	4(%r14), %edi
	movl	(%rax), %edx
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%r14, %rdi
	callq	_img_hash_hw_init
	testl	%eax, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_img_hash_process_data
LBB0_10:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_img_hash_finish_req
	jmp	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_FLAGS_BUSY,4,2          ## @DRIVER_FLAGS_BUSY
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"processing req, op: %lu, bytes: %d\n"

	.no_dead_strip	_img_hash_handle_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_hash_handle_queue
_img_hash_handle_queue:                 ; @img_hash_handle_queue
	.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, x1
	mov	x20, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	cbz	x19, LBB0_2
; %bb.1:
	add	x0, x20, #20
	mov	x1, x19
	bl	_ahash_enqueue_request
	mov	x19, x0
LBB0_2:
Lloh0:
	adrp	x24, _DRIVER_FLAGS_BUSY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DRIVER_FLAGS_BUSY@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_4:
	mov	x0, x19
	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
LBB0_5:
	add	x22, x20, #20
	mov	x0, x22
	bl	_crypto_get_backlog
	mov	x23, x0
	mov	x0, x22
	bl	_crypto_dequeue_request
	cbz	x0, LBB0_3
; %bb.6:
	mov	x22, x0
	ldr	w8, [x24]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh2:
	adrp	x24, _EINPROGRESS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EINPROGRESS@GOTPAGEOFF]
	cbz	x23, LBB0_8
; %bb.7:
	ldr	x8, [x23]
	ldr	w9, [x24]
	neg	w1, w9
	mov	x0, x23
	blr	x8
LBB0_8:
	mov	x0, x22
	bl	_ahash_request_cast
	mov	x21, x0
	str	x0, [x20, #8]
	bl	_ahash_request_ctx
	ldr	w8, [x20, #4]
	ldr	w2, [x0]
	ldr	w3, [x21]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_info
	mov	x0, x20
	bl	_img_hash_hw_init
	mov	x1, x0
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_img_hash_process_data
	mov	x1, x0
LBB0_10:
	ldr	w8, [x24]
	cmn	w1, w8
	b.eq	LBB0_4
; %bb.11:
	mov	x0, x21
	bl	_img_hash_finish_req
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_FLAGS_BUSY,4,2          ; @DRIVER_FLAGS_BUSY
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"processing req, op: %lu, bytes: %d\n"

	.no_dead_strip	_img_hash_handle_queue
.subsections_via_symbols
