	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_page_alloc_check
_vm_page_alloc_check:                   ## @vm_page_alloc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	(%rbx), %rax
	movq	_PQ_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	movq	_PGA_QUEUE_STATE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	movslq	%ecx, %rsi
	testl	%esi, %esi
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_vm_page_busied
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_pmap_page_get_memattr
	movq	_VM_MEMATTR_DEFAULT@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
	movq	%rbx, %rdi
	callq	_pmap_page_get_memattr
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	sete	%dil
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_KASSERT                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PQ_NONE,8,3                    ## @PQ_NONE
	.comm	_PGA_QUEUE_STATE_MASK,4,2       ## @PGA_QUEUE_STATE_MASK
	.comm	_VM_MEMATTR_DEFAULT,8,3         ## @VM_MEMATTR_DEFAULT
	.no_dead_strip	_vm_page_alloc_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_page_alloc_check
_vm_page_alloc_check:                   ; @vm_page_alloc_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #40]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
Lloh0:
	adrp	x8, _PQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PQ_NONE@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, eq
Lloh3:
	adrp	x9, _PGA_QUEUE_STATE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PGA_QUEUE_STATE_MASK@GOTPAGEOFF]
	ldr	w10, [x19, #8]
Lloh5:
	ldr	w9, [x9]
	ands	w9, w9, w10
	sxtw	x1, w9
	cset	w9, eq
	and	w0, w8, w9
	bl	_KASSERT
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	mov	x0, x19
	bl	_vm_page_busied
	cmp	w0, #0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
	mov	x0, x19
	bl	_pmap_page_get_memattr
Lloh6:
	adrp	x8, _VM_MEMATTR_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_MEMATTR_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w20, eq
	mov	x0, x19
	bl	_pmap_page_get_memattr
	mov	x1, x0
	mov	x0, x20
	bl	_KASSERT
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_KASSERT
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PQ_NONE,8,3                    ; @PQ_NONE
	.comm	_PGA_QUEUE_STATE_MASK,4,2       ; @PGA_QUEUE_STATE_MASK
	.comm	_VM_MEMATTR_DEFAULT,8,3         ; @VM_MEMATTR_DEFAULT
	.no_dead_strip	_vm_page_alloc_check
.subsections_via_symbols
