	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_sham_finish
_omap_sham_finish:                      ## @omap_sham_finish
	.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
	movq	%rdi, %r15
	callq	_ahash_request_ctx
	movq	%rax, %rbx
	movq	16(%rax), %r12
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_omap_sham_copy_ready_hash
	movl	(%rbx), %r13d
	movq	_FLAGS_HMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_4
## %bb.2:
	movq	_FLAGS_AUTO_XOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_omap_sham_finish_hmac
	movl	%eax, %r14d
LBB0_4:
	movl	(%r12), %edi
	movq	8(%rbx), %rdx
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAGS_HMAC,4,2                 ## @FLAGS_HMAC
	.comm	_FLAGS_AUTO_XOR,4,2             ## @FLAGS_AUTO_XOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"digcnt: %d, bufcnt: %d\n"

	.no_dead_strip	_omap_sham_finish
.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
_omap_sham_finish:                      ; @omap_sham_finish
	.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	x20, x0
	bl	_ahash_request_ctx
	mov	x19, x0
	ldp	x8, x21, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_omap_sham_copy_ready_hash
	ldr	w22, [x19]
Lloh0:
	adrp	x8, _FLAGS_HMAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAGS_HMAC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _FLAGS_AUTO_XOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAGS_AUTO_XOR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x21, #4
	bl	_test_bit
	cbz	w0, LBB0_5
LBB0_3:
	mov	w20, #0
LBB0_4:
	ldr	w0, [x21]
	ldr	x2, [x19, #8]
	ldr	w3, [x19, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	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_5:
	mov	x0, x20
	bl	_omap_sham_finish_hmac
	mov	x20, x0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAGS_HMAC,4,2                 ; @FLAGS_HMAC
	.comm	_FLAGS_AUTO_XOR,4,2             ; @FLAGS_AUTO_XOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"digcnt: %d, bufcnt: %d\n"

	.no_dead_strip	_omap_sham_finish
.subsections_via_symbols
