	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_wire_mapped            ## -- Begin function vm_page_wire_mapped
	.p2align	4, 0x90
_vm_page_wire_mapped:                   ## @vm_page_wire_mapped
	.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, %rbx
	movl	(%rdi), %edi
	movl	%edi, -28(%rbp)
	movq	_VPRC_BLOCKED@GOTPCREL(%rip), %r15
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	testl	%edi, %edi
	setg	%al
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_KASSERT
	movl	-28(%rbp), %edx
	testl	%edx, (%r15)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_atomic_fcmpset_int
	movl	-28(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	callq	_VPRC_WIRE_COUNT
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	$1, %ebx
	movl	$1, %edi
	callq	_vm_wire_add
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRC_BLOCKED,4,2               ## @VPRC_BLOCKED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_wire_mapped            ; -- Begin function vm_page_wire_mapped
	.p2align	2
_vm_page_wire_mapped:                   ; @vm_page_wire_mapped
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0]
	str	w0, [sp, #12]
Lloh0:
	adrp	x20, _VPRC_BLOCKED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _VPRC_BLOCKED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, #0
	cset	w0, gt
	mov	x1, x19
	bl	_KASSERT
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w2, w8, #1
	add	x1, sp, #12
	mov	x0, x19
	bl	_atomic_fcmpset_int
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	w8, LBB0_1
; %bb.3:
	bl	_VPRC_WIRE_COUNT
	mov	w19, #1
	cbnz	x0, LBB0_6
; %bb.4:
	mov	w0, #1
	bl	_vm_wire_add
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRC_BLOCKED,4,2               ; @VPRC_BLOCKED
.subsections_via_symbols
