	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_hash_handle_queue
_s5p_hash_handle_queue:                 ## @s5p_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
	leaq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	24(%rdi), %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	20(%rdi), %r13
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HASH_FLAGS_BUSY@GOTPCREL(%rip), %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_irqsave
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ahash_enqueue_request
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_crypto_get_backlog
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_crypto_dequeue_request
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%r13, %r15
	movq	%r13, %rsi
	callq	_set_bit
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_ahash_request_cast
	movq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, 8(%rax)
	movq	%r13, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %r14
	movq	16(%rax), %rsi
	movq	%r13, %rdi
	callq	_s5p_hash_prepare_request
	testl	%eax, %eax
	je	LBB0_8
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_s5p_hash_finish_req
	xorl	%ebx, %ebx
	movq	%r15, %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 4(%r14)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	16(%r14), %rdx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_SSS_HASHIN_INDEPENDENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_s5p_ahash_dma_init
	cmpq	$0, 24(%r14)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_s5p_hash_write_iv
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%r14)
	movl	4(%r14), %esi
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_s5p_hash_xmit_dma
	movl	%eax, %ecx
	movq	_EINPROGRESS@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r14)
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 8(%r14)
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r14), %esi
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_s5p_hash_xmit_dma
	jmp	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_21:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_FLAGS_BUSY,4,2            ## @HASH_FLAGS_BUSY
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handling new req, op_update: %u, nbytes: %d\n"

	.comm	_SSS_HASHIN_INDEPENDENT,4,2     ## @SSS_HASHIN_INDEPENDENT
	.no_dead_strip	_s5p_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 s5p_hash_handle_queue
_s5p_hash_handle_queue:                 ; @s5p_hash_handle_queue
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x1
	mov	x20, x0
	mov	w21, #0
	add	x19, x0, #16
	add	x22, x0, #24
	add	x23, x0, #20
Lloh0:
	adrp	x27, _HASH_FLAGS_BUSY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _HASH_FLAGS_BUSY@GOTPAGEOFF]
Lloh2:
	adrp	x28, _EINPROGRESS@GOTPAGE
Lloh3:
	ldr	x28, [x28, _EINPROGRESS@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str@PAGE
Lloh5:
	add	x24, x24, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spin_lock_irqsave
	cbz	x25, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_ahash_enqueue_request
	mov	x21, x0
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x27]
	mov	x1, x23
	bl	_test_bit
	cbnz	x0, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_crypto_get_backlog
	mov	x26, x0
	mov	x0, x22
	bl	_crypto_dequeue_request
	cbz	x0, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, x0
	ldr	w0, [x27]
	mov	x1, x23
	bl	_set_bit
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	x26, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26]
	ldr	w9, [x28]
	neg	w1, w9
	mov	x0, x26
	blr	x8
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	bl	_ahash_request_cast
	mov	x25, x0
	str	x0, [x20, #8]
	bl	_ahash_request_ctx
	mov	x26, x0
	ldr	x1, [x0, #16]
	mov	x0, x25
	bl	_s5p_hash_prepare_request
	mov	x1, x0
	cbz	w0, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	cmn	w1, w8
	b.eq	LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	bl	_s5p_hash_finish_req
	mov	x25, #0
	b	LBB0_1
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26, #4]
	cbz	w8, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20]
	ldr	x2, [x26, #16]
	ldr	w3, [x25]
	mov	x1, x24
	bl	_dev_dbg
Lloh6:
	adrp	x8, _SSS_HASHIN_INDEPENDENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSS_HASHIN_INDEPENDENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_s5p_ahash_dma_init
	ldr	x8, [x26, #24]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x25
	bl	_s5p_hash_write_iv
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x26, #16]
	ldr	w1, [x26, #4]
	cbz	x8, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x26]
	mov	x0, x20
	bl	_s5p_hash_xmit_dma
	mov	x1, x0
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26]
	cbz	w8, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26, #8]
	cbnz	w8, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x26, #4]
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	w2, #1
	bl	_s5p_hash_xmit_dma
	mov	x1, x0
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #0
	b	LBB0_8
LBB0_20:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_21:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_FLAGS_BUSY,4,2            ; @HASH_FLAGS_BUSY
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handling new req, op_update: %u, nbytes: %d\n"

	.comm	_SSS_HASHIN_INDEPENDENT,4,2     ; @SSS_HASHIN_INDEPENDENT
	.no_dead_strip	_s5p_hash_handle_queue
.subsections_via_symbols
