	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_busy_acquire           ## -- Begin function vm_page_busy_acquire
	.p2align	4, 0x90
_vm_page_busy_acquire:                  ## @vm_page_busy_acquire
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	_VM_ALLOC_SBUSY@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:
	movq	%r14, %rdi
	callq	_vm_page_trysbusy
	testq	%rax, %rax
	je	LBB0_3
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_2:
	movq	%r14, %rdi
	callq	_vm_page_tryxbusy
	testq	%rax, %rax
	jne	LBB0_13
LBB0_3:
	movq	_VM_ALLOC_NOWAIT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_11
## %bb.4:
	testq	%r13, %r13
	je	LBB0_7
## %bb.5:
	movq	%r13, %rdi
	callq	_VM_OBJECT_WOWNED
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_8
LBB0_6:
	movl	$1, %edi
	callq	_MPASS
	xorl	%ecx, %ecx
	movl	(%r12), %eax
	andl	%r15d, %eax
	setne	%cl
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %r8d
	callq	__vm_page_busy_sleep
	movq	%r13, %rdi
	callq	_VM_OBJECT_WLOCK
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_6
LBB0_8:
	movq	%r14, %rdi
	callq	_vm_page_wired
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_MPASS
	xorl	%ecx, %ecx
	movl	(%r12), %eax
	andl	%r15d, %eax
	setne	%cl
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	L_.str(%rip), %rdx
	xorl	%r8d, %r8d
	callq	__vm_page_busy_sleep
LBB0_9:
	movq	_VM_ALLOC_WAITFAIL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	(%r14), %rax
	cmpq	%r13, %rax
	sete	%cl
	testq	%rax, %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	movq	%r13, %rsi
	callq	_KASSERT
	testl	%r15d, (%r12)
	jne	LBB0_1
	jmp	LBB0_2
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ALLOC_SBUSY,4,2             ## @VM_ALLOC_SBUSY
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_VM_ALLOC_NOWAIT,4,2            ## @VM_ALLOC_NOWAIT
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmpba"

	.comm	_VM_ALLOC_WAITFAIL,4,2          ## @VM_ALLOC_WAITFAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_busy_acquire           ; -- Begin function vm_page_busy_acquire
	.p2align	2
_vm_page_busy_acquire:                  ; @vm_page_busy_acquire
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x26, _VM_ALLOC_SBUSY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VM_ALLOC_SBUSY@GOTPAGEOFF]
Lloh2:
	adrp	x24, _TRUE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _VM_ALLOC_NOWAIT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _VM_ALLOC_NOWAIT@GOTPAGEOFF]
Lloh6:
	adrp	x25, _FALSE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
Lloh10:
	adrp	x28, _VM_ALLOC_WAITFAIL@GOTPAGE
Lloh11:
	ldr	x28, [x28, _VM_ALLOC_WAITFAIL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	mov	x0, x20
	tst	w8, w19
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_vm_page_trysbusy
	cbz	x0, LBB0_4
	b	LBB0_13
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_vm_page_tryxbusy
	cbnz	x0, LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27]
	tst	w8, w19
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x21, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_VM_OBJECT_WOWNED
	mov	x23, x0
	cbz	w23, LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_MPASS
	ldr	w8, [x26]
	tst	w8, w19
	cset	w3, ne
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x4, x23
	bl	__vm_page_busy_sleep
	mov	x0, x21
	bl	_VM_OBJECT_WLOCK
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w23, [x25]
	cbnz	w23, LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_vm_page_wired
	cmp	x0, #0
	cset	w0, ne
	bl	_MPASS
	ldr	w8, [x26]
	tst	w8, w19
	cset	w3, ne
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	w4, #0
	bl	__vm_page_busy_sleep
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	tst	w8, w19
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	cmp	x8, x21
	ccmp	x8, #0, #4, ne
	cset	w0, eq
	mov	x1, x21
	bl	_KASSERT
	b	LBB0_1
LBB0_12:
	mov	x24, x25
LBB0_13:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ALLOC_SBUSY,4,2             ; @VM_ALLOC_SBUSY
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_VM_ALLOC_NOWAIT,4,2            ; @VM_ALLOC_NOWAIT
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmpba"

	.comm	_VM_ALLOC_WAITFAIL,4,2          ; @VM_ALLOC_WAITFAIL
.subsections_via_symbols
