	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_sleep_if_busy          ## -- Begin function vm_page_sleep_if_busy
	.p2align	4, 0x90
_vm_page_sleep_if_busy:                 ## @vm_page_sleep_if_busy
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MA_NOTOWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vm_page_lock_assert
	movq	(%rbx), %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_vm_page_busied
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_vm_page_busy_sleep
	movq	%r15, %rdi
	callq	_VM_OBJECT_WLOCK
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	cmpq	$0, (%r15)
	jne	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_NOTOWNED,4,2                ## @MA_NOTOWNED
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_sleep_if_busy          ; -- Begin function vm_page_sleep_if_busy
	.p2align	2
_vm_page_sleep_if_busy:                 ; @vm_page_sleep_if_busy
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MA_NOTOWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_NOTOWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_vm_page_lock_assert
	ldr	x0, [x20]
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x21, [x20]
	mov	x0, x20
	bl	_vm_page_busied
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_vm_page_busy_sleep
	mov	x0, x21
	bl	_VM_OBJECT_WLOCK
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	cbnz	x8, LBB0_1
LBB0_4:
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_NOTOWNED,4,2                ; @MA_NOTOWNED
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
