	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_status_page
_init_status_page:                      ## @init_status_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	%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, %r14
	movl	(%rdi), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_i915_gem_object_create_internal
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_I915_CACHE_LLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_set_cache_coherency
	movq	24(%r14), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_i915_vma_instance
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	jmp	LBB0_3
LBB0_4:
	movq	_I915_MAP_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_object_pin_map
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
LBB0_3:
	callq	_PTR_ERR
	movl	%eax, %r12d
LBB0_9:
	movq	%rbx, %rdi
	callq	_i915_gem_object_put
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %edx
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	%eax, 16(%r14)
	movq	%r15, 8(%r14)
	movl	(%r14), %edi
	callq	_HWS_NEEDS_PHYSICAL
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pin_ggtt_status_page
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_i915_gem_object_unpin_map
	movl	%r14d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate status page\n"

	.comm	_I915_CACHE_LLC,4,2             ## @I915_CACHE_LLC
	.comm	_I915_MAP_WB,4,2                ## @I915_MAP_WB
	.no_dead_strip	_init_status_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_status_page
_init_status_page:                      ; @init_status_page
	.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	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_i915_gem_object_create_internal
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	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	_PTR_ERR
LBB0_2:
Lloh4:
	adrp	x8, _I915_CACHE_LLC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I915_CACHE_LLC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i915_gem_object_set_cache_coherency
	ldr	x8, [x20, #24]
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_i915_vma_instance
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _I915_MAP_WB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I915_MAP_WB@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i915_gem_object_pin_map
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x22
LBB0_6:
	bl	_PTR_ERR
	mov	x22, x0
LBB0_7:
	mov	x0, x19
	bl	_i915_gem_object_put
LBB0_8:
	mov	x0, x22
	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
	ret
LBB0_9:
	ldr	w2, [x23]
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	str	w0, [x20, #16]
	str	x21, [x20, #8]
	ldr	w0, [x20]
	bl	_HWS_NEEDS_PHYSICAL
	mov	w22, #0
	cbnz	w0, LBB0_8
; %bb.10:
	mov	x0, x20
	mov	x1, x21
	bl	_pin_ggtt_status_page
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.11:
	mov	x0, x19
	bl	_i915_gem_object_unpin_map
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate status page\n"

	.comm	_I915_CACHE_LLC,4,2             ; @I915_CACHE_LLC
	.comm	_I915_MAP_WB,4,2                ; @I915_MAP_WB
	.no_dead_strip	_init_status_page
.subsections_via_symbols
