	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_hash_finish_req
_s5p_hash_finish_req:                   ## @s5p_hash_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, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_ahash_request_ctx
	movq	%rax, %r14
	movq	16(%rax), %r12
	movq	_HASH_FLAGS_SGS_COPIED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rdi
	callq	_sg_virt
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_get_order
	movq	%r13, %rdi
	movq	%rbx, %r13
	movl	%eax, %esi
	callq	_free_pages
LBB0_2:
	movq	_HASH_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(%r14), %rdi
	callq	_kfree
LBB0_4:
	movq	$0, 8(%r14)
	movl	(%rbx), %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_BIT
	orl	%ebx, %eax
	notl	%eax
	andl	%eax, (%r12)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.5:
	cmpl	$0, (%r14)
	je	LBB0_6
LBB0_8:
	movl	$1, (%r14)
LBB0_9:
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_HASH_FLAGS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	_HASH_FLAGS_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_HASH_FLAGS_DMA_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	movq	_HASH_FLAGS_OUTPUT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r13d, %eax
	orl	%ebx, %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r15, %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
LBB0_6:
	movq	%r15, %rdi
	callq	_s5p_hash_read_msg
	movq	_HASH_FLAGS_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_s5p_hash_finish
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_FLAGS_SGS_COPIED,4,2      ## @HASH_FLAGS_SGS_COPIED
	.comm	_HASH_FLAGS_SGS_ALLOCED,4,2     ## @HASH_FLAGS_SGS_ALLOCED
	.comm	_HASH_FLAGS_FINAL,4,2           ## @HASH_FLAGS_FINAL
	.comm	_HASH_FLAGS_BUSY,4,2            ## @HASH_FLAGS_BUSY
	.comm	_HASH_FLAGS_DMA_READY,4,2       ## @HASH_FLAGS_DMA_READY
	.comm	_HASH_FLAGS_OUTPUT_READY,4,2    ## @HASH_FLAGS_OUTPUT_READY
	.no_dead_strip	_s5p_hash_finish_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_hash_finish_req
_s5p_hash_finish_req:                   ; @s5p_hash_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	x19, x1
	mov	x20, x0
	bl	_ahash_request_ctx
	mov	x22, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x24, _HASH_FLAGS_SGS_COPIED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HASH_FLAGS_SGS_COPIED@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x22, #8]
	bl	_sg_virt
	mov	x23, x0
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	_get_order
	mov	x1, x0
	mov	x0, x23
	bl	_free_pages
LBB0_2:
Lloh2:
	adrp	x23, _HASH_FLAGS_SGS_ALLOCED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HASH_FLAGS_SGS_ALLOCED@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	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, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
Lloh4:
	adrp	x24, _HASH_FLAGS_FINAL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HASH_FLAGS_FINAL@GOTPAGEOFF]
	cbnz	w19, LBB0_6
; %bb.5:
	ldr	w8, [x22]
	cbz	w8, LBB0_10
LBB0_6:
	mov	w8, #1
	str	w8, [x22]
LBB0_7:
	add	x22, x21, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x8, _HASH_FLAGS_BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HASH_FLAGS_BUSY@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_BIT
	mov	x23, x0
	ldr	w0, [x24]
	bl	_BIT
	orr	w23, w0, w23
Lloh9:
	adrp	x8, _HASH_FLAGS_DMA_READY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HASH_FLAGS_DMA_READY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
	orr	w23, w23, w0
Lloh12:
	adrp	x8, _HASH_FLAGS_OUTPUT_READY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HASH_FLAGS_OUTPUT_READY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w23, w0
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x2, [x20]
	cbz	x2, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	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_9:
	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
LBB0_10:
	mov	x0, x20
	bl	_s5p_hash_read_msg
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.11:
	mov	x0, x20
	bl	_s5p_hash_finish
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_FLAGS_SGS_COPIED,4,2      ; @HASH_FLAGS_SGS_COPIED
	.comm	_HASH_FLAGS_SGS_ALLOCED,4,2     ; @HASH_FLAGS_SGS_ALLOCED
	.comm	_HASH_FLAGS_FINAL,4,2           ; @HASH_FLAGS_FINAL
	.comm	_HASH_FLAGS_BUSY,4,2            ; @HASH_FLAGS_BUSY
	.comm	_HASH_FLAGS_DMA_READY,4,2       ; @HASH_FLAGS_DMA_READY
	.comm	_HASH_FLAGS_OUTPUT_READY,4,2    ; @HASH_FLAGS_OUTPUT_READY
	.no_dead_strip	_s5p_hash_finish_req
.subsections_via_symbols
