	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FreePageManagerLargestContiguous
_FreePageManagerLargestContiguous:      ## @FreePageManagerLargestContiguous
	.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	%rdi, %r15
	callq	_fpm_segment_base
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_FPM_NUM_FREELISTS@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rcx
	movl	-4(%rax,%rcx,4), %edi
	callq	_relptr_is_null
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movslq	(%rbx), %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	-4(%rax,%rbx,4), %edi
	callq	_relptr_is_null
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	leaq	1(%rbx), %rax
	cmpq	$1, %rax
	jg	LBB0_4
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	(%r15), %rax
	movslq	(%rbx), %rcx
	movl	-4(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_relptr_access
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	cmovgq	%rcx, %rbx
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_relptr_access
	testq	%rax, %rax
	jne	LBB0_2
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FPM_NUM_FREELISTS,4,2          ## @FPM_NUM_FREELISTS
	.no_dead_strip	_FreePageManagerLargestContiguous
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FreePageManagerLargestContiguous
_FreePageManagerLargestContiguous:      ; @FreePageManagerLargestContiguous
	.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	x21, x0
	bl	_fpm_segment_base
	mov	x19, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x20, _FPM_NUM_FREELISTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FPM_NUM_FREELISTS@GOTPAGEOFF]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-4]
	bl	_relptr_is_null
	cbz	w0, LBB0_5
; %bb.1:
	ldrsw	x8, [x20]
	sub	x20, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x20, lsl #2
	ldur	w0, [x8, #-4]
	bl	_relptr_is_null
	cbz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x20, x20, #1
	add	x8, x20, #1
	cmp	x8, #1
	b.gt	LBB0_2
; %bb.4:
	mov	x20, #0
	b	LBB0_7
LBB0_5:
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	ldur	w1, [x8, #-4]
	mov	x0, x19
	bl	_relptr_access
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, x20
	csel	x20, x8, x20, gt
	ldr	w1, [x0, #8]
	mov	x0, x19
	bl	_relptr_access
	cbnz	x0, LBB0_6
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FPM_NUM_FREELISTS,4,2          ; @FPM_NUM_FREELISTS
	.no_dead_strip	_FreePageManagerLargestContiguous
.subsections_via_symbols
