	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_phys_avail_check
_vm_phys_avail_check:                   ## @vm_phys_avail_check
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_phys_avail@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%edi, %rbx
	movl	(%rax,%rbx,4), %edx
	movq	_PAGE_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	testl	%edx, %esi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_panic
	movq	(%r15), %rax
	movl	(%r12), %esi
LBB0_2:
	movl	4(%rax,%rbx,4), %ecx
	testl	%ecx, %esi
	je	LBB0_4
## %bb.3:
	leaq	1(%rbx), %r12
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_panic
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %ecx
LBB0_4:
	movl	(%rax,%rbx,4), %edx
	cmpl	%edx, %ecx
	jge	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_panic                          ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_phys_avail,8,3                 ## @phys_avail
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unaligned phys_avail[%d]: %#jx"

L_.str.1:                               ## @.str.1
	.asciz	"Unaligned phys_avail[%d + 1]: %#jx"

L_.str.2:                               ## @.str.2
	.asciz	"phys_avail[%d] start %#jx < end %#jx"

	.no_dead_strip	_vm_phys_avail_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_phys_avail_check
_vm_phys_avail_check:                   ; @vm_phys_avail_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x21, _phys_avail@GOTPAGE
Lloh1:
	ldr	x21, [x21, _phys_avail@GOTPAGEOFF]
	ldr	x8, [x21]
	sxtw	x20, w19
	ldr	w2, [x8, w0, sxtw #2]
Lloh2:
	adrp	x22, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PAGE_MASK@GOTPAGEOFF]
	ldr	w10, [x22]
	tst	w10, w2
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_panic
	ldr	x8, [x21]
	ldr	w10, [x22]
LBB0_2:
	add	x22, x20, #1
	ldr	w9, [x8, x22, lsl #2]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w2, [x8, x20, lsl #2]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_panic
	ldr	x8, [x21]
	ldr	w9, [x8, x22, lsl #2]
LBB0_4:
	ldr	w2, [x8, x20, lsl #2]
	cmp	w9, w2
	b.ge	LBB0_6
; %bb.5:
	str	x9, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_panic
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_phys_avail,8,3                 ; @phys_avail
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unaligned phys_avail[%d]: %#jx"

l_.str.1:                               ; @.str.1
	.asciz	"Unaligned phys_avail[%d + 1]: %#jx"

l_.str.2:                               ; @.str.2
	.asciz	"phys_avail[%d] start %#jx < end %#jx"

	.no_dead_strip	_vm_phys_avail_check
.subsections_via_symbols
