	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_gtt_init              ## -- Begin function i915_gem_gtt_init
	.p2align	4, 0x90
_i915_gem_gtt_init:                     ## @i915_gem_gtt_init
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	callq	_INTEL_INFO
	cmpl	$6, (%rax)
	movq	_gen6_gmch_probe@GOTPCREL(%rip), %r9
	cmovlq	_i915_gmch_probe@GOTPCREL(%rip), %r9
	movq	_gen6_gmch_remove@GOTPCREL(%rip), %rax
	cmovlq	_i915_gmch_remove@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r9, (%rbx)
	movl	%eax, 24(%rbx)
	leaq	8(%rbx), %r12
	leaq	12(%rbx), %r14
	leaq	20(%rbx), %rcx
	addq	$16, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	*%r9
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	sarl	$20, %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	movl	(%rbx), %esi
	sarl	$20, %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	(%r14), %esi
	sarl	$20, %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
LBB0_2:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_gmch_remove,4,2           ## @i915_gmch_remove
	.comm	_gen6_gmch_remove,4,2           ## @gen6_gmch_remove
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory usable by graphics device = %zdM\n"

L_.str.1:                               ## @.str.1
	.asciz	"GMADR size = %ldM\n"

L_.str.2:                               ## @.str.2
	.asciz	"GTT stolen size = %zdM\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_gtt_init              ; -- Begin function i915_gem_gtt_init
	.p2align	2
_i915_gem_gtt_init:                     ; @i915_gem_gtt_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x21, [x0]
	bl	_INTEL_INFO
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _gen6_gmch_probe@GOTPAGE
Lloh1:
	ldr	x9, [x9, _gen6_gmch_probe@GOTPAGEOFF]
Lloh2:
	adrp	x10, _i915_gmch_probe@GOTPAGE
Lloh3:
	ldr	x10, [x10, _i915_gmch_probe@GOTPAGEOFF]
	cmp	w8, #6
	csel	x8, x10, x9, lt
Lloh4:
	adrp	x9, _i915_gmch_remove@GOTPAGE
Lloh5:
	ldr	x9, [x9, _i915_gmch_remove@GOTPAGEOFF]
Lloh6:
	adrp	x10, _gen6_gmch_remove@GOTPAGE
Lloh7:
	ldr	x10, [x10, _gen6_gmch_remove@GOTPAGEOFF]
	csel	x9, x9, x10, lt
	ldr	w9, [x9]
	str	x8, [x21]
	str	w9, [x21, #24]
	add	x22, x21, #8
	add	x19, x21, #12
	add	x3, x21, #20
	add	x21, x21, #16
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x4, x21
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	asr	w1, w8, #20
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	ldr	w8, [x21]
	asr	w1, w8, #20
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w8, [x19]
	asr	w1, w8, #20
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_gmch_remove,4,2           ; @i915_gmch_remove
	.comm	_gen6_gmch_remove,4,2           ; @gen6_gmch_remove
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory usable by graphics device = %zdM\n"

l_.str.1:                               ; @.str.1
	.asciz	"GMADR size = %ldM\n"

l_.str.2:                               ; @.str.2
	.asciz	"GTT stolen size = %zdM\n"

.subsections_via_symbols
