	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_alloc_page
_vm_alloc_page:                         ## @vm_alloc_page
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	addq	$20, %rdi
	movl	$1, %esi
	callq	_should_fail
	movl	%eax, %edi
	callq	_I915_SELFTEST_ONLY
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rdi
	callq	_i915_gem_shrink_all
LBB0_2:
	movq	%r15, %rdi
	callq	_stash_pop_page
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, 16(%r15)
	je	LBB0_12
## %bb.5:
	movq	8(%r15), %rdi
	callq	_stash_pop_page
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_pagevec_init
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_alloc_page
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movq	%rbx, (%rcx,%rax,8)
	movq	%r12, %rdi
	callq	_pagevec_space
	testq	%rax, %rax
	jne	LBB0_7
LBB0_9:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.10:
	movq	-40(%rbp), %rdi
	callq	_set_pages_array_wc
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
LBB0_17:
	movl	-48(%rbp), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.18:
	movq	-40(%rbp), %rdi
	movl	-48(%rbp), %esi
	callq	_set_pages_array_wb
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	leaq	-48(%rbp), %rdi
	callq	___pagevec_release
	jmp	LBB0_3
LBB0_12:
	movl	%r14d, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alloc_page                     ## TAILCALL
LBB0_14:
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	movq	%rax, %rdx
	decq	%rdx
	movq	%rdx, -48(%rbp)
	movq	-8(%rcx,%rax,8), %rbx
	je	LBB0_17
## %bb.15:
	movq	8(%r15), %rdi
	leaq	-48(%rbp), %rsi
	callq	_stash_push_pagevec
	cmpq	$0, -48(%rbp)
	je	LBB0_17
## %bb.16:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stash_push_pagevec
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vm_alloc_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_alloc_page
_vm_alloc_page:                         ; @vm_alloc_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #20
	mov	w1, #1
	bl	_should_fail
	bl	_I915_SELFTEST_ONLY
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_i915_gem_shrink_all
LBB0_2:
	mov	x0, x19
	bl	_stash_pop_page
	mov	x21, x0
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_14
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_stash_pop_page
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.6:
	mov	x0, sp
	bl	_pagevec_init
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_alloc_page
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	x9, x8, [sp]
	add	x10, x9, #1
	str	x10, [sp]
	str	x21, [x8, x9, lsl #3]
	mov	x0, sp
	bl	_pagevec_space
	cbnz	x0, LBB0_7
LBB0_9:
	ldr	x1, [sp]
	cbz	x1, LBB0_11
; %bb.10:
	ldr	x0, [sp, #8]
	bl	_set_pages_array_wc
	cbz	w0, LBB0_15
LBB0_11:
	mov	x21, #0
LBB0_12:
	ldr	w0, [sp]
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.13:
	ldr	x0, [sp, #8]
	ldr	w1, [sp]
	bl	_set_pages_array_wb
	bl	_WARN_ON_ONCE
	mov	x0, sp
	bl	___pagevec_release
	b	LBB0_3
LBB0_14:
	mov	x0, 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
	add	sp, sp, #64
	b	_alloc_page
LBB0_15:
	ldp	x9, x8, [sp]
	subs	x9, x9, #1
	str	x9, [sp]
	ldr	x21, [x8, x9, lsl #3]
	b.eq	LBB0_12
; %bb.16:
	ldr	x0, [x19, #8]
	mov	x1, sp
	bl	_stash_push_pagevec
	ldr	x8, [sp]
	cbz	x8, LBB0_12
; %bb.17:
	mov	x1, sp
	mov	x0, x19
	bl	_stash_push_pagevec
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vm_alloc_page
.subsections_via_symbols
