	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_sham_finish_req
_omap_sham_finish_req:                  ## @omap_sham_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_ahash_request_ctx
	movq	%rax, %r15
	movq	24(%rax), %r12
	movq	_FLAGS_SGS_COPIED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rdi
	callq	_sg_virt
	movl	%r13d, %ebx
	movq	%rax, %r13
	movq	8(%r15), %rax
	movq	16(%r15), %rdi
	addq	(%rax), %rdi
	callq	_get_order
	movq	%r13, %rdi
	movl	%ebx, %r13d
	movl	%eax, %esi
	callq	_free_pages
LBB0_2:
	movq	_FLAGS_SGS_ALLOCED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r15), %rdi
	callq	_kfree
LBB0_4:
	movq	$0, 8(%r15)
	movl	(%rbx), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_FLAGS_SGS_COPIED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	notl	%eax
	andl	%eax, (%r12)
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.8:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	_FLAGS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, (%r15)
	jmp	LBB0_9
LBB0_5:
	movq	8(%r12), %rax
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*(%rax)
	movq	_FLAGS_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_omap_sham_finish
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
LBB0_6:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movq	_FLAGS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_FLAGS_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	orl	%r15d, %r13d
	movq	_FLAGS_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_FLAGS_DMA_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r15d, %ebx
	orl	%r13d, %ebx
	movq	_FLAGS_OUTPUT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	notl	%eax
	andl	%eax, (%r12)
	movl	4(%r12), %edi
	callq	_pm_runtime_mark_last_busy
	movl	4(%r12), %edi
	callq	_pm_runtime_put_autosuspend
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_SGS_COPIED,4,2           ## @FLAGS_SGS_COPIED
	.comm	_FLAGS_SGS_ALLOCED,4,2          ## @FLAGS_SGS_ALLOCED
	.comm	_FLAGS_FINAL,4,2                ## @FLAGS_FINAL
	.comm	_FLAGS_ERROR,4,2                ## @FLAGS_ERROR
	.comm	_FLAGS_BUSY,4,2                 ## @FLAGS_BUSY
	.comm	_FLAGS_CPU,4,2                  ## @FLAGS_CPU
	.comm	_FLAGS_DMA_READY,4,2            ## @FLAGS_DMA_READY
	.comm	_FLAGS_OUTPUT_READY,4,2         ## @FLAGS_OUTPUT_READY
	.no_dead_strip	_omap_sham_finish_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_sham_finish_req
_omap_sham_finish_req:                  ; @omap_sham_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	x21, x1
	mov	x19, x0
	bl	_ahash_request_ctx
	mov	x22, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x24, _FLAGS_SGS_COPIED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FLAGS_SGS_COPIED@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x22, #8]
	bl	_sg_virt
	mov	x23, x0
	ldp	x8, x9, [x22, #8]
	ldr	x8, [x8]
	add	x0, x9, x8
	bl	_get_order
	mov	x1, x0
	mov	x0, x23
	bl	_free_pages
LBB0_2:
Lloh2:
	adrp	x23, _FLAGS_SGS_ALLOCED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FLAGS_SGS_ALLOCED@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x22, #8]
	bl	_kfree
LBB0_4:
	str	xzr, [x22, #8]
	ldr	w0, [x23]
	bl	_BIT
	mov	x23, x0
	ldr	w0, [x24]
	bl	_BIT
	orr	w8, w0, w23
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh4:
	adrp	x23, _FLAGS_FINAL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FLAGS_FINAL@GOTPAGEOFF]
	cbz	w21, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _FLAGS_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLAGS_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x22]
	orr	w8, w8, w0
	str	w8, [x22]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_omap_sham_finish
	mov	x21, x0
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
Lloh9:
	adrp	x8, _FLAGS_BUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLAGS_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
	ldr	w0, [x23]
	bl	_BIT
	orr	w22, w0, w22
Lloh12:
	adrp	x8, _FLAGS_CPU@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLAGS_CPU@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	orr	w22, w22, w0
Lloh15:
	adrp	x8, _FLAGS_DMA_READY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FLAGS_DMA_READY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_BIT
	orr	w22, w22, w0
Lloh18:
	adrp	x8, _FLAGS_OUTPUT_READY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FLAGS_OUTPUT_READY@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w22, w0
	ldp	w9, w0, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20, #4]
	bl	_pm_runtime_put_autosuspend
	ldr	x2, [x19]
	cbz	x2, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	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_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_SGS_COPIED,4,2           ; @FLAGS_SGS_COPIED
	.comm	_FLAGS_SGS_ALLOCED,4,2          ; @FLAGS_SGS_ALLOCED
	.comm	_FLAGS_FINAL,4,2                ; @FLAGS_FINAL
	.comm	_FLAGS_ERROR,4,2                ; @FLAGS_ERROR
	.comm	_FLAGS_BUSY,4,2                 ; @FLAGS_BUSY
	.comm	_FLAGS_CPU,4,2                  ; @FLAGS_CPU
	.comm	_FLAGS_DMA_READY,4,2            ; @FLAGS_DMA_READY
	.comm	_FLAGS_OUTPUT_READY,4,2         ; @FLAGS_OUTPUT_READY
	.no_dead_strip	_omap_sham_finish_req
.subsections_via_symbols
