	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function safexcel_ahash_cache
_safexcel_ahash_cache:                  ## @safexcel_ahash_cache
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ahash_request_ctx
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_safexcel_queued_len
	movq	%rax, %r14
	movq	(%rbx), %rax
	addq	%r14, %rax
	movq	_HASH_CACHE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_1
## %bb.2:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_1:
	movl	8(%rbx), %r12d
	movl	%r12d, %edi
	callq	_sg_nents
	addq	(%r15), %r14
	movq	(%rbx), %rcx
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_sg_pcopy_to_buffer
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_CACHE_SIZE,8,3            ## @HASH_CACHE_SIZE
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_safexcel_ahash_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function safexcel_ahash_cache
_safexcel_ahash_cache:                  ; @safexcel_ahash_cache
	.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
	bl	_safexcel_queued_len
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HASH_CACHE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HASH_CACHE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x8, x0
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _E2BIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x21, x0
	ldr	w22, [x19, #8]
	mov	x0, x22
	bl	_sg_nents
	mov	x1, x0
	ldr	x8, [x20]
	add	x2, x8, x21
	ldr	x3, [x19]
	mov	x0, x22
	mov	w4, #0
	bl	_sg_pcopy_to_buffer
	mov	w0, #0
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_CACHE_SIZE,8,3            ; @HASH_CACHE_SIZE
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_safexcel_ahash_cache
.subsections_via_symbols
