	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_phys_free_contig            ## -- Begin function vm_phys_free_contig
	.p2align	4, 0x90
_vm_phys_free_contig:                   ## @vm_phys_free_contig
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_vm_pagequeue_domain
	movl	%eax, %edi
	callq	_vm_domain_free_assert_locked
	movq	%r14, %rdi
	callq	_max_order
	movl	%eax, %ecx
	movq	_VM_NFREEORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movl	$1, %edx
	shll	%cl, %edx
	xorl	%esi, %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ecx
	cmovgel	%esi, %edx
	movl	$1, %r15d
	movslq	%edx, %rbx
	addq	%r14, %rbx
	addq	%r14, %r13
	movq	%r13, %rdi
	callq	_max_order
	movl	%eax, %r12d
	movq	_VM_NFREEORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r12d, %ecx
	shll	%cl, %r15d
	decl	%eax
	cmpl	%eax, %r12d
	movl	$0, %ecx
	cmovgel	%ecx, %r15d
	movslq	%r15d, %rcx
	subq	%rcx, %r13
	movq	%r13, %rsi
	subq	%rbx, %rsi
	jle	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_vm_phys_enqueue_contig
	movq	_VM_NFREEORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
LBB0_2:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	%eax, %esi
	jge	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_vm_phys_free_pages
	movq	_VM_NFREEORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
LBB0_4:
	cmpl	%eax, %r12d
	jge	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_phys_free_pages             ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_NFREEORDER,4,2              ## @VM_NFREEORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_phys_free_contig            ; -- Begin function vm_phys_free_contig
	.p2align	2
_vm_phys_free_contig:                   ; @vm_phys_free_contig
	.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	x20, x1
	mov	x19, x0
	bl	_vm_pagequeue_domain
	bl	_vm_domain_free_assert_locked
	mov	x0, x19
	bl	_max_order
	mov	x21, x0
Lloh0:
	adrp	x24, _VM_NFREEORDER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VM_NFREEORDER@GOTPAGEOFF]
	ldr	w8, [x24]
	sub	w8, w8, #1
	mov	w25, #1
	lsl	w9, w25, w0
	cmp	w0, w8
	csel	w8, w9, wzr, lt
	add	x23, x19, w8, sxtw
	add	x22, x20, x19
	mov	x0, x22
	bl	_max_order
	mov	x20, x0
	ldr	w8, [x24]
	sub	w8, w8, #1
	lsl	w9, w25, w0
	cmp	w0, w8
	csel	w9, w9, wzr, lt
	sub	x22, x22, w9, sxtw
	subs	x1, x22, x23
	b.gt	LBB0_4
; %bb.1:
	cmp	w21, w8
	b.lt	LBB0_5
LBB0_2:
	cmp	w20, w8
	b.ge	LBB0_6
LBB0_3:
	mov	x0, x22
	mov	x1, x20
	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
	b	_vm_phys_free_pages
LBB0_4:
	mov	x0, x23
	bl	_vm_phys_enqueue_contig
	ldr	w8, [x24]
	sub	w8, w8, #1
	cmp	w21, w8
	b.ge	LBB0_2
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_vm_phys_free_pages
	ldr	w8, [x24]
	sub	w8, w8, #1
	cmp	w20, w8
	b.lt	LBB0_3
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_NFREEORDER,4,2              ; @VM_NFREEORDER
.subsections_via_symbols
