	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_alloc_buffer
_crypt_alloc_buffer:                    ## @crypt_alloc_buffer
	.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	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r12,%rax), %ebx
	decl	%ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %ebx
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___GFP_HIGHMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rdx), %edx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_bio_alloc_bioset
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_clone_init
	movl	$0, (%r15)
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.2:
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_mempool_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rcx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	___GFP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	%r15d, %r12d
	cmovbl	%r12d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, %rbx
	movq	%rcx, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_bio_add_page
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	orl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	notl	%r13d
	andl	%r14d, %r13d
	subl	%r15d, %r12d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movl	$1, (%r15)
	jmp	LBB0_8
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mempool_free
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	%rax, %rdi
	callq	_bio_put
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	___GFP_HIGHMEM,4,2              ## @__GFP_HIGHMEM
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	___GFP_WAIT,4,2                 ## @__GFP_WAIT
	.no_dead_strip	_crypt_alloc_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_alloc_buffer
_crypt_alloc_buffer:                    ; @crypt_alloc_buffer
	.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	x25, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x26, [x8]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w1, w8
	sub	w8, w8, #1
Lloh3:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _GFP_NOIO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GFP_NOIO@GOTPAGEOFF]
	lsr	w22, w8, w9
Lloh8:
	ldr	w24, [x10]
Lloh9:
	adrp	x8, ___GFP_HIGHMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___GFP_HIGHMEM@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	ldr	w2, [x26, #4]
	mov	x0, x24
	mov	x1, x22
	bl	_bio_alloc_bioset
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x23
	mov	x1, x20
	bl	_clone_init
	str	wzr, [x25]
	cbz	w22, LBB0_7
; %bb.2:
	orr	w23, w19, w24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	mov	x1, x23
	bl	_mempool_alloc
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	mov	x19, x25
Lloh12:
	adrp	x8, ___GFP_NOWARN@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___GFP_NOWARN@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
Lloh15:
	adrp	x8, ___GFP_WAIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___GFP_WAIT@GOTPAGEOFF]
Lloh17:
	ldr	w28, [x8]
Lloh18:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w21, w8
	csel	w25, w21, w8, lo
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	mov	w3, #0
	bl	_bio_add_page
	cbz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w8, w27, w23
	bic	w23, w8, w28
	sub	w21, w21, w25
	subs	w22, w22, #1
	mov	x25, x19
	b.ne	LBB0_3
	b	LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x25]
LBB0_7:
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_bio_put
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	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:
	ldr	w1, [x26]
	mov	x0, x24
	bl	_mempool_free
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	___GFP_HIGHMEM,4,2              ; @__GFP_HIGHMEM
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	___GFP_WAIT,4,2                 ; @__GFP_WAIT
	.no_dead_strip	_crypt_alloc_buffer
.subsections_via_symbols
