	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_sham_final
_omap_sham_final:                       ## @omap_sham_final
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ahash_request_ctx
	movq	%rax, %r15
	movq	_FLAGS_FINUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	(%r15), %ebx
	movl	%ebx, (%r15)
	movq	_FLAGS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_1
## %bb.5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 24(%r15)
	movq	8(%r15), %rax
	jne	LBB0_3
## %bb.2:
	movq	16(%r15), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_sham_final_shash          ## TAILCALL
LBB0_3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	_OP_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_sham_enqueue              ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_sham_finish               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_FINUP,4,2                ## @FLAGS_FINUP
	.comm	_FLAGS_ERROR,4,2                ## @FLAGS_ERROR
	.comm	_OP_FINAL,4,2                   ## @OP_FINAL
	.no_dead_strip	_omap_sham_final
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_sham_final
_omap_sham_final:                       ; @omap_sham_final
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_ahash_request_ctx
	mov	x20, x0
Lloh0:
	adrp	x8, _FLAGS_FINUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAGS_FINUP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	ldr	w8, [x20]
	orr	w21, w8, w0
	str	w21, [x20]
Lloh3:
	adrp	x8, _FLAGS_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAGS_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w9, [x20, #24]
	ldr	x8, [x20, #8]
	cbnz	w9, LBB0_5
; %bb.3:
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_omap_sham_final_shash
LBB0_5:
	cbz	x8, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _OP_FINAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OP_FINAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_omap_sham_enqueue
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_omap_sham_finish
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_FINUP,4,2                ; @FLAGS_FINUP
	.comm	_FLAGS_ERROR,4,2                ; @FLAGS_ERROR
	.comm	_OP_FINAL,4,2                   ; @OP_FINAL
	.no_dead_strip	_omap_sham_final
.subsections_via_symbols
