	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_recovery_allocate_ra_pool
_r5l_recovery_allocate_ra_pool:         ## @r5l_recovery_allocate_ra_pool
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_BIO_MAX_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bio_alloc_bioset
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	$0, 32(%rbx)
	movq	$0, (%rbx)
	movq	_R5L_RECOVERY_PAGE_POOL_SIZE@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rcx
	movq	24(%rbx), %rdx
	movq	%rax, (%rdx,%rcx,8)
	incq	%rcx
	movq	%rcx, (%rbx)
	cmpq	(%r15), %rcx
	jb	LBB0_3
## %bb.6:
	testq	%rcx, %rcx
	je	LBB0_7
LBB0_8:
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_8
LBB0_7:
	movl	16(%rbx), %edi
	callq	_bio_put
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BIO_MAX_PAGES,4,2              ## @BIO_MAX_PAGES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_R5L_RECOVERY_PAGE_POOL_SIZE,8,3 ## @R5L_RECOVERY_PAGE_POOL_SIZE
	.no_dead_strip	_r5l_recovery_allocate_ra_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_recovery_allocate_ra_pool
_r5l_recovery_allocate_ra_pool:         ; @r5l_recovery_allocate_ra_pool
	.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	x19, x1
	mov	x2, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _BIO_MAX_PAGES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIO_MAX_PAGES@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_bio_alloc_bioset
	str	w0, [x19, #16]
	cbz	w0, LBB0_8
; %bb.1:
	str	xzr, [x19, #32]
	str	xzr, [x19]
Lloh5:
	adrp	x21, _R5L_RECOVERY_PAGE_POOL_SIZE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _R5L_RECOVERY_PAGE_POOL_SIZE@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_7
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_alloc_page
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	str	x0, [x8, x9, lsl #3]
	add	x8, x9, #1
	str	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.lo	LBB0_2
; %bb.4:
	cbz	x8, LBB0_7
LBB0_5:
	mov	w0, #0
	str	xzr, [x19, #8]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
LBB0_7:
	ldr	w0, [x19, #16]
	bl	_bio_put
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BIO_MAX_PAGES,4,2              ; @BIO_MAX_PAGES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_R5L_RECOVERY_PAGE_POOL_SIZE,8,3 ; @R5L_RECOVERY_PAGE_POOL_SIZE
	.no_dead_strip	_r5l_recovery_allocate_ra_pool
.subsections_via_symbols
