	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update2
_update2:                               ## @update2
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	callq	_crypto_hash_tfm
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_crypto_tfm_alg_alignmask
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.1:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rbx, %rdi
	callq	_sg_page
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	4(%rbx), %ebx
	xorl	%edi, %edi
	cmpl	%r13d, %ebx
	seta	%dil
	callq	_unlikely
	testq	%rax, %rax
	cmovnel	%r13d, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	%r15d, %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_min
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_crypto_kmap
	movq	%rax, %rbx
	movq	%r15, %r12
	addq	%rax, %r12
	andl	-80(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%r15d, %edi
	callq	_unlikely
	testq	%rax, %rax
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	subl	%r15d, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %r15d
	callq	_min
	movl	%eax, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	*(%rax)
	movl	%r13d, %eax
	addq	%rax, %r12
	movl	%r15d, %eax
	subl	%r13d, %eax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	subl	%r13d, %r15d
	movl	%eax, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	*(%rax)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_crypto_kunmap
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_crypto_yield
	subl	%r13d, %r15d
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_min
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	*(%rax)
	movl	%ebx, %eax
	movq	%r12, %rsi
	addq	%rax, %rsi
	subl	%ebx, %r13d
	subl	%ebx, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	*(%rax)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_crypto_kunmap
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_crypto_yield
	addq	$4, %r14
	subl	%r13d, %r15d
	je	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_min
	movl	%eax, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_crypto_kmap
	movq	%rax, %r12
	xorl	%edi, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r12, %rsi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	subl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_scatterwalk_sg_next
	movq	%rax, %rbx
	jmp	LBB0_2
LBB0_13:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_update2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update2
_update2:                               ; @update2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_crypto_hash_tfm
	mov	x22, x0
	bl	_crypto_tfm_alg_alignmask
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	cbz	w19, LBB0_12
; %bb.1:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	add	w24, w8, #1
Lloh0:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x23
	bl	_sg_page
	mov	x28, x0
	str	x23, [sp, #24]                  ; 8-byte Folded Spill
	ldp	w21, w23, [x23]
	cmp	w23, w19
	cset	w0, hi
	bl	_unlikely
	cmp	x0, #0
	str	w19, [sp, #20]                  ; 4-byte Folded Spill
	csel	w26, w23, w19, eq
	ldr	w8, [x25]
	sub	w1, w8, w21
	mov	x0, x26
	bl	_min
	mov	x27, x0
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x28
	mov	w1, #0
	bl	_crypto_kmap
	mov	x28, x0
	add	x23, x0, x21
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	and	w21, w21, w8
	mov	x0, x21
	bl	_unlikely
	mov	x19, x26
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w0, w24, w21
	mov	x1, x27
	bl	_min
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	blr	x8
	add	x23, x23, w21, uxtw
	sub	w27, w27, w21
	sub	w26, w26, w21
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x27
	blr	x8
	mov	x0, x28
	mov	w1, #0
	bl	_crypto_kunmap
	ldr	w0, [x20]
	bl	_crypto_yield
	subs	w27, w26, w27
	mov	x21, x19
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x8, #4
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x24
	mov	x1, x28
	bl	_min
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	blr	x8
	add	x1, x23, w21, uxtw
	sub	w28, w28, w21
	sub	w27, w27, w21
	mov	x21, x19
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x2, x28
	blr	x8
	mov	x0, x23
	mov	w1, #0
	bl	_crypto_kunmap
	ldr	w0, [x20]
	bl	_crypto_yield
	add	x26, x26, #4
	subs	w27, w27, w28
	b.eq	LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x25]
	mov	x0, x27
	bl	_min
	mov	x28, x0
	mov	x0, x26
	mov	w1, #0
	bl	_crypto_kmap
	mov	x23, x0
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x1, x23
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w19, [sp, #20]                  ; 4-byte Folded Reload
	subs	w19, w19, w21
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_scatterwalk_sg_next
	mov	x23, x0
	b	LBB0_2
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_update2
.subsections_via_symbols
