	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qce_ahash_update
_qce_ahash_update:                      ## @qce_ahash_update
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_crypto_ahash_reqtfm
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ahash_request_ctx
	movq	%rax, %r13
	movl	4(%rbx), %edi
	callq	_to_ahash_tmpl
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_crypto_ahash_tfm
	movl	%eax, %edi
	callq	_crypto_tfm_alg_blocksize
	movl	(%rbx), %ecx
	addl	%ecx, (%r13)
	movl	4(%r13), %edx
	leal	(%rdx,%rcx), %r12d
	cmpl	%eax, %r12d
	jbe	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movq	%rax, 40(%r13)
	movl	%ecx, 8(%r13)
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movl	24(%r13), %edi
	movq	32(%r13), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_4:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%r15d
	movl	%edx, %r15d
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edx
	subl	%r15d, %edx
	movq	32(%r13), %rdi
	movq	8(%rbx), %rsi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_scatterwalk_map_and_copy
LBB0_6:
	subl	%r15d, %r12d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r14
	cmpl	%r12d, %r13d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jae	LBB0_16
## %bb.7:
	testq	%r14, %r14
	je	LBB0_16
## %bb.8:
	movq	%r14, %rdi
	callq	_sg_dma_len
	addl	%r13d, %eax
	cmpl	%r12d, %eax
	ja	LBB0_13
## %bb.9:
	movq	%r14, %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r14
	movl	%r13d, %ebx
	movq	%r15, %rdi
	callq	_sg_dma_len
	movl	%eax, %r13d
	addl	%ebx, %r13d
	movq	%r15, %rdi
	callq	_sg_next
	cmpl	%r12d, %r13d
	jae	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	callq	_sg_dma_len
	addl	%r13d, %eax
	cmpl	%r12d, %eax
	jbe	LBB0_11
	jmp	LBB0_13
LBB0_1:
	addq	32(%r13), %rdx
	movq	8(%rbx), %rsi
	xorl	%r14d, %r14d
	movq	%rdx, %rdi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	callq	_scatterwalk_map_and_copy
	movl	(%rbx), %eax
	addl	%eax, 4(%r13)
LBB0_18:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	testq	%r14, %r14
	je	LBB0_17
LBB0_13:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	4(%rbx), %r13
	movq	%r14, %rdi
	callq	_sg_mark_end
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpl	$0, 4(%r14)
	je	LBB0_15
## %bb.14:
	movq	16(%r14), %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	16(%r14), %rdi
	movl	24(%r14), %esi
	movl	4(%r14), %edx
	callq	_sg_set_buf
	movq	16(%r14), %rdi
	movq	8(%rbx), %rdx
	movl	$2, %esi
	callq	_sg_chain
	movq	16(%r14), %rax
	movq	%rax, 8(%rbx)
LBB0_15:
	movl	%r12d, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movq	%r13, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qce_ahash_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qce_ahash_update
_qce_ahash_update:                      ; @qce_ahash_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_crypto_ahash_reqtfm
	mov	x23, x0
	mov	x0, x19
	bl	_ahash_request_ctx
	mov	x20, x0
	mov	x21, x19
	ldr	w0, [x21, #4]!
	bl	_to_ahash_tmpl
	mov	x22, x0
	ldr	x26, [x0]
	mov	x0, x23
	bl	_crypto_ahash_tfm
	bl	_crypto_tfm_alg_blocksize
	ldr	w3, [x19]
	ldp	w8, w2, [x20]
	add	w8, w8, w3
	str	w8, [x20]
	add	w25, w2, w3
	cmp	w25, w0
	b.ls	LBB0_8
; %bb.1:
	mov	x23, x0
	ldr	x8, [x19, #8]
	str	x8, [x20, #40]
	str	w3, [x20, #8]
	cbz	w2, LBB0_3
; %bb.2:
	ldr	w0, [x20, #24]
	ldr	x1, [x20, #32]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
LBB0_3:
	udiv	w8, w25, w23
	msub	w23, w8, w23, w25
	cbz	w23, LBB0_5
; %bb.4:
	ldr	w8, [x19]
	sub	w2, w8, w23
	ldr	x0, [x20, #32]
	ldr	x1, [x19, #8]
	mov	x3, x23
	mov	w4, #0
	bl	_scatterwalk_map_and_copy
LBB0_5:
	ldr	w28, [x20, #4]
	ldr	x24, [x19, #8]
	sub	w27, w25, w23
	cmp	w28, w27
	ccmp	x24, #0, #4, lo
	b.ne	LBB0_10
; %bb.6:
	cbnz	x24, LBB0_14
; %bb.7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	ldr	x8, [x20, #32]
	add	x0, x8, x2
	ldr	x1, [x19, #8]
	mov	w2, #0
	mov	w4, #0
	bl	_scatterwalk_map_and_copy
	mov	w0, #0
	ldr	w8, [x19]
	ldr	w9, [x20, #4]
	add	w8, w9, w8
	str	w8, [x20, #4]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x24
	bl	_sg_dma_len
	add	w8, w0, w28
	cmp	w8, w27
	b.hi	LBB0_14
; %bb.11:
	mov	x25, x24
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x24, x25
	mov	x0, x25
	bl	_sg_dma_len
	add	w28, w0, w28
	mov	x0, x25
	bl	_sg_next
	cmp	w28, w27
	ccmp	x0, #0, #4, lo
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, x0
	bl	_sg_dma_len
	add	w8, w0, w28
	cmp	w8, w27
	b.ls	LBB0_12
LBB0_14:
	mov	x0, x24
	bl	_sg_mark_end
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_16
; %bb.15:
	ldr	x0, [x20, #16]
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #24]
	ldr	w2, [x20, #4]
	bl	_sg_set_buf
	ldr	x0, [x20, #16]
	ldr	x2, [x19, #8]
	mov	w1, #2
	bl	_sg_chain
	ldr	x8, [x20, #16]
	str	x8, [x19, #8]
LBB0_16:
	str	w27, [x19]
	str	w23, [x20, #4]
	ldr	x2, [x26]
	ldr	x0, [x22]
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qce_ahash_update
.subsections_via_symbols
