	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_sunbusy                ## -- Begin function vm_page_sunbusy
	.p2align	4, 0x90
_vm_page_sunbusy:                       ## @vm_page_sunbusy
	.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
	movq	%rdi, %r12
	callq	_vm_page_assert_sbusied
	movl	(%r12), %edi
	movl	%edi, -44(%rbp)
	leaq	-44(%rbp), %r14
	leaq	L_.str(%rip), %r15
	movq	_VPB_UNBUSIED@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_VPB_ONE_SHARER@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_atomic_fcmpset_int
	testq	%rax, %rax
	jne	LBB0_7
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_VPB_SHARERS
	movl	-44(%rbp), %ebx
	cmpl	$2, %eax
	jge	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_VPB_BIT_WAITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	$1, %edi
	callq	_VPB_SHARERS_WORD
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	movq	%r15, %rsi
	callq	_KASSERT
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_atomic_fcmpset_rel_int
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	_VPB_BIT_WAITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_wakeup
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPB_ONE_SHARER,4,2             ## @VPB_ONE_SHARER
	.comm	_VPB_BIT_WAITERS,4,2            ## @VPB_BIT_WAITERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_page_sunbusy: invalid lock state"

	.comm	_VPB_UNBUSIED,4,2               ## @VPB_UNBUSIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_sunbusy                ; -- Begin function vm_page_sunbusy
	.p2align	2
_vm_page_sunbusy:                       ; @vm_page_sunbusy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_vm_page_assert_sbusied
	ldr	w0, [x19]
	str	w0, [sp, #12]
Lloh0:
	adrp	x22, _VPB_ONE_SHARER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VPB_ONE_SHARER@GOTPAGEOFF]
Lloh2:
	adrp	x21, _VPB_BIT_WAITERS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _VPB_BIT_WAITERS@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
Lloh6:
	adrp	x23, _VPB_UNBUSIED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _VPB_UNBUSIED@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x22]
	sub	w2, w8, w9
	add	x1, sp, #12
	mov	x0, x19
	bl	_atomic_fcmpset_int
	cbnz	x0, LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_VPB_SHARERS
	ldr	w8, [sp, #12]
	cmp	w0, #2
	b.ge	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21]
	bic	w24, w8, w9
	mov	w0, #1
	bl	_VPB_SHARERS_WORD
	cmp	w24, w0
	cset	w0, eq
	mov	x1, x20
	bl	_KASSERT
	ldr	w2, [x23]
	add	x1, sp, #12
	mov	x0, x19
	bl	_atomic_fcmpset_rel_int
	cbz	w0, LBB0_2
; %bb.5:
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_wakeup
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VPB_ONE_SHARER,4,2             ; @VPB_ONE_SHARER
	.comm	_VPB_BIT_WAITERS,4,2            ; @VPB_BIT_WAITERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_page_sunbusy: invalid lock state"

	.comm	_VPB_UNBUSIED,4,2               ; @VPB_UNBUSIED
.subsections_via_symbols
