	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _vm_page_busy_sleep
__vm_page_busy_sleep:                   ## @_vm_page_busy_sleep
	.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
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_vm_object_busied
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_DROP
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_object_busy_wait            ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	callq	_sleepq_lock
	movl	(%r15), %esi
	movq	_VPB_UNBUSIED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_10
## %bb.6:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	movq	_VPB_BIT_SHARED@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_10
LBB0_8:
	movq	_VPB_BIT_WAITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%esi, %edx
	jne	LBB0_13
## %bb.9:
	orl	%esi, %edx
	movq	%r15, %rdi
	callq	_atomic_cmpset_int
	testl	%eax, %eax
	je	LBB0_10
LBB0_13:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_DROP
LBB0_15:
	xorl	%eax, %eax
	callq	_DROP_GIANT
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sleepq_add
	movq	_PVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sleepq_wait
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PICKUP_GIANT                   ## TAILCALL
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_DROP
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sleepq_release                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPB_UNBUSIED,4,2               ## @VPB_UNBUSIED
	.comm	_VPB_BIT_SHARED,4,2             ## @VPB_BIT_SHARED
	.comm	_VPB_BIT_WAITERS,4,2            ## @VPB_BIT_WAITERS
	.comm	_PVM,4,2                        ## @PVM
	.no_dead_strip	__vm_page_busy_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _vm_page_busy_sleep
__vm_page_busy_sleep:                   ; @_vm_page_busy_sleep
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_vm_object_busied
	cbz	x0, LBB0_5
; %bb.2:
	cbz	w22, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_VM_OBJECT_DROP
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vm_object_busy_wait
LBB0_5:
	mov	x0, x19
	bl	_sleepq_lock
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _VPB_UNBUSIED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPB_UNBUSIED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, w8
	b.eq	LBB0_13
; %bb.6:
	cbz	w23, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _VPB_BIT_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPB_BIT_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w1
	b.ne	LBB0_13
LBB0_8:
Lloh6:
	adrp	x8, _VPB_BIT_WAITERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPB_BIT_WAITERS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w1
	b.ne	LBB0_10
; %bb.9:
	orr	w2, w8, w1
	mov	x0, x19
	bl	_atomic_cmpset_int
	cbz	w0, LBB0_13
LBB0_10:
	cbz	w22, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_VM_OBJECT_DROP
LBB0_12:
	bl	_DROP_GIANT
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	bl	_sleepq_add
Lloh9:
	adrp	x8, _PVM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PVM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sleepq_wait
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PICKUP_GIANT
LBB0_13:
	cbz	w22, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_VM_OBJECT_DROP
LBB0_15:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sleepq_release
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VPB_UNBUSIED,4,2               ; @VPB_UNBUSIED
	.comm	_VPB_BIT_SHARED,4,2             ; @VPB_BIT_SHARED
	.comm	_VPB_BIT_WAITERS,4,2            ; @VPB_BIT_WAITERS
	.comm	_PVM,4,2                        ; @PVM
	.no_dead_strip	__vm_page_busy_sleep
.subsections_via_symbols
