	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sahara_sha_prepare_request
_sahara_sha_prepare_request:            ## @sahara_sha_prepare_request
	.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, %r12
	callq	_crypto_ahash_reqtfm
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_crypto_ahash_tfm
	movl	%eax, %edi
	callq	_crypto_tfm_alg_blocksize
	movl	%eax, %r15d
	movl	(%r14), %edx
	movl	(%r12), %ecx
	leal	(%rcx,%rdx), %ebx
	movq	40(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	cmpl	%r15d, %ebx
	jae	LBB0_3
## %bb.2:
	addq	32(%r14), %rdx
	movq	8(%r12), %rsi
	xorl	%ebx, %ebx
	movq	%rdx, %rdi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	callq	_scatterwalk_map_and_copy
	movl	(%r12), %eax
	addl	%eax, (%r14)
	jmp	LBB0_16
LBB0_3:
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movl	16(%r14), %edi
	movq	32(%r14), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	40(%r14), %rax
LBB0_5:
	decl	%r15d
	andl	%r15d, %ebx
	xorl	%r15d, %r15d
	testq	%rax, %rax
	cmovel	%ebx, %r15d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edx
	subl	%r15d, %edx
	movq	32(%r14), %rdi
	movq	8(%r12), %rsi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_scatterwalk_map_and_copy
LBB0_7:
	movl	(%r12), %esi
	subl	%r15d, %esi
	movl	%esi, (%r12)
	movq	8(%r12), %rdi
	callq	_sahara_walk_and_recalc
	movl	(%r14), %edx
	testl	%edx, %edx
	je	LBB0_13
## %bb.8:
	cmpl	$0, (%r12)
	je	LBB0_10
## %bb.9:
	movq	24(%r14), %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	24(%r14), %rdi
	movl	(%r14), %edx
	movl	16(%r14), %esi
	callq	_sg_set_buf
	movq	24(%r14), %rdi
	movq	8(%r12), %rdx
	movl	$2, %esi
	callq	_sg_chain
	movl	(%r14), %eax
	addl	(%r12), %eax
	movl	%eax, 4(%r14)
	movq	24(%r14), %rax
	movq	%rax, 8(%r14)
	movq	%rax, 8(%r12)
	jmp	LBB0_15
LBB0_13:
	movq	8(%r12), %rax
	movq	%rax, 8(%r14)
	movl	(%r12), %eax
	jmp	LBB0_14
LBB0_10:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.11:
	movq	24(%r14), %rdi
LBB0_12:
	movq	%rdi, 8(%r14)
	movl	16(%r14), %esi
	callq	_sg_init_one
	movl	(%r14), %eax
LBB0_14:
	movl	%eax, 4(%r14)
LBB0_15:
	movl	%r15d, (%r14)
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_sahara_sha_prepare_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sahara_sha_prepare_request
_sahara_sha_prepare_request:            ; @sahara_sha_prepare_request
	.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	_crypto_ahash_reqtfm
	mov	x21, x0
	mov	x0, x20
	bl	_ahash_request_ctx
	mov	x19, x0
	mov	x0, x21
	bl	_crypto_ahash_tfm
	bl	_crypto_tfm_alg_blocksize
	ldr	w2, [x19]
	ldr	w3, [x20]
	add	w22, w3, w2
	ldr	x8, [x19, #40]
	cmp	x8, #0
	ccmp	w22, w0, #2, eq
	b.lo	LBB0_8
; %bb.1:
	mov	x21, x0
	cbz	w2, LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #32]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	x8, [x19, #40]
LBB0_3:
	sub	w9, w21, #1
	and	w9, w22, w9
	cmp	x8, #0
	csel	w21, w9, wzr, eq
	cbz	w21, LBB0_5
; %bb.4:
	ldr	w8, [x20]
	sub	w2, w8, w21
	ldr	x0, [x19, #32]
	ldr	x1, [x20, #8]
	mov	x3, x21
	mov	w4, #0
	bl	_scatterwalk_map_and_copy
LBB0_5:
	ldr	w8, [x20]
	sub	w1, w8, w21
	str	w1, [x20]
	ldr	x0, [x20, #8]
	bl	_sahara_walk_and_recalc
	ldr	w2, [x19]
	cbz	w2, LBB0_9
; %bb.6:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.7:
	ldr	x0, [x19, #24]
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #16]
	ldr	w2, [x19]
	bl	_sg_set_buf
	ldr	x0, [x19, #24]
	ldr	x2, [x20, #8]
	mov	w1, #2
	bl	_sg_chain
	ldr	w8, [x20]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19, #4]
	ldr	x8, [x19, #24]
	str	x8, [x19, #8]
	str	x8, [x20, #8]
	b	LBB0_14
LBB0_8:
	ldr	x8, [x19, #32]
	add	x0, x8, x2
	ldr	x1, [x20, #8]
	mov	w2, #0
	mov	w4, #0
	bl	_scatterwalk_map_and_copy
	mov	w0, #0
	ldr	w8, [x20]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	b	LBB0_15
LBB0_9:
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
	ldr	w8, [x20]
	b	LBB0_13
LBB0_10:
	ldr	x0, [x20, #8]
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x19, #24]
LBB0_12:
	str	x0, [x19, #8]
	ldr	w1, [x19, #16]
	bl	_sg_init_one
	ldr	w8, [x19]
LBB0_13:
	str	w8, [x19, #4]
LBB0_14:
	str	w21, [x19]
Lloh0:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_sahara_sha_prepare_request
.subsections_via_symbols
