	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_sham_handle_queue
_omap_sham_handle_queue:                ## @omap_sham_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	$40, %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, %r15
	leaq	24(%rdi), %r12
	leaq	32(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	28(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ahash_enqueue_request
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_FLAGS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_crypto_get_backlog
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_crypto_dequeue_request
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	movq	_FLAGS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	movq	%r13, %rdi
	callq	*(%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_ahash_request_cast
	movq	%rax, %r13
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %r12
	movq	(%rax), %rax
	xorl	%esi, %esi
	movq	_OP_UPDATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%sil
	movq	%r13, %rdi
	callq	_omap_sham_prepare_request
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_8
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_omap_sham_finish_req
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	cmpl	$0, 24(%r12)
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_omap_sham_hw_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%r12)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	_OP_UPDATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_omap_sham_update_req
	movl	%eax, %r14d
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r12), %ebx
	movq	_FLAGS_FINUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_16
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, %r14d
	movq	_OP_FINAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_omap_sham_final_req
	movl	%eax, %r14d
	jmp	LBB0_17
LBB0_19:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_20:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_BUSY,4,2                 ## @FLAGS_BUSY
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_OP_UPDATE,8,3                  ## @OP_UPDATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handling new req, op: %lu, nbytes: %d\n"

	.comm	_FLAGS_FINUP,4,2                ## @FLAGS_FINUP
	.comm	_OP_FINAL,8,3                   ## @OP_FINAL
L_.str.1:                               ## @.str.1
	.asciz	"exit, err: %d\n"

	.no_dead_strip	_omap_sham_handle_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_sham_handle_queue
_omap_sham_handle_queue:                ; @omap_sham_handle_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x1
	mov	x20, x0
	mov	w21, #0
	add	x19, x0, #24
	add	x22, x0, #32
	add	x23, x0, #28
Lloh0:
	adrp	x24, _FLAGS_BUSY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FLAGS_BUSY@GOTPAGEOFF]
Lloh2:
	adrp	x25, _EINPROGRESS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EINPROGRESS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spin_lock_irqsave
	cbz	x26, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_ahash_enqueue_request
	mov	x21, x0
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	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	x27, x0
	mov	x0, x22
	bl	_crypto_dequeue_request
	cbz	x0, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, x0
	ldr	w0, [x24]
	mov	x1, x23
	bl	_set_bit
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	x27, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27]
	ldr	w9, [x25]
	neg	w1, w9
	mov	x0, x27
	blr	x8
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x26
	bl	_ahash_request_cast
	mov	x26, x0
	str	x0, [x20, #16]
	bl	_ahash_request_ctx
	mov	x27, x0
	ldr	x8, [x0]
Lloh4:
	adrp	x9, _OP_UPDATE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _OP_UPDATE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, eq
	mov	x0, x26
	bl	_omap_sham_prepare_request
	mov	x28, x0
	cbnz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27, #24]
	cbz	w8, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20]
	ldr	w2, [x27]
	ldr	w8, [x26]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	bl	_omap_sham_hw_init
	mov	x28, x0
	cbnz	w0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27, #16]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x26
	mov	w1, #0
	blr	x8
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27]
Lloh9:
	adrp	x9, _OP_UPDATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OP_UPDATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_omap_sham_update_req
	mov	x28, x0
	ldr	w8, [x25]
	cmn	w0, w8
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w27, [x27, #8]
Lloh12:
	adrp	x8, _FLAGS_FINUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLAGS_FINUP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w27
	b.ne	LBB0_16
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh15:
	adrp	x9, _OP_FINAL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OP_FINAL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_omap_sham_final_req
	mov	x28, x0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w28, #0
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x28
	bl	_dev_dbg
	ldr	w8, [x25]
	cmn	w28, w8
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x26
	mov	x1, x28
	bl	_omap_sham_finish_req
	mov	x26, #0
	b	LBB0_1
LBB0_20:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_21:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_BUSY,4,2                 ; @FLAGS_BUSY
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_OP_UPDATE,8,3                  ; @OP_UPDATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handling new req, op: %lu, nbytes: %d\n"

	.comm	_FLAGS_FINUP,4,2                ; @FLAGS_FINUP
	.comm	_OP_FINAL,8,3                   ; @OP_FINAL
l_.str.1:                               ; @.str.1
	.asciz	"exit, err: %d\n"

	.no_dead_strip	_omap_sham_handle_queue
.subsections_via_symbols
