	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ablkcipher_walk_init
_ablkcipher_walk_init:                  ## @ablkcipher_walk_init
	.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	%edx, %r14d
	movq	%rdi, %r12
	movq	_ASYNC_SCATTERLIST_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_min
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	movl	%eax, %esi
	callq	_sg_init_table
	movq	$0, (%r12)
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r13d
	shlq	$2, %r13
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	addq	%r15, %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_sg_set_page
	incq	(%r12)
	incl	%ebx
	addq	$4, %r15
	cmpq	%r15, %r13
	jne	LBB0_3
## %bb.5:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASYNC_SCATTERLIST_CACHE,4,2    ## @ASYNC_SCATTERLIST_CACHE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_ablkcipher_walk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ablkcipher_walk_init
_ablkcipher_walk_init:                  ; @ablkcipher_walk_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _ASYNC_SCATTERLIST_CACHE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASYNC_SCATTERLIST_CACHE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_min
	mov	x21, x0
	ldr	x0, [x20, #8]
	mov	x1, x21
	bl	_sg_init_table
	str	xzr, [x20]
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	mov	w22, #0
	mov	w8, w21
	lsl	x24, x8, #2
Lloh3:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_alloc_page
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x0
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	ldr	w2, [x25]
	mov	w3, #0
	bl	_sg_set_page
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	add	w22, w22, #1
	add	x23, x23, #4
	cmp	x24, x23
	b.ne	LBB0_2
; %bb.4:
	mov	x22, x21
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ASYNC_SCATTERLIST_CACHE,4,2    ; @ASYNC_SCATTERLIST_CACHE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_ablkcipher_walk_init
.subsections_via_symbols
