	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_get_gtt_size          ## -- Begin function i915_gem_get_gtt_size
	.p2align	4, 0x90
_i915_gem_get_gtt_size:                 ## @i915_gem_get_gtt_size
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_INTEL_INFO
	cmpl	$3, (%rax)
	jg	LBB0_5
## %bb.1:
	movq	_I915_TILING_NONE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_INTEL_INFO
	xorl	%ecx, %ecx
	cmpl	$3, (%rax)
	sete	%cl
	shll	$19, %ecx
	addl	$524288, %ecx                   ## imm = 0x80000
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	leal	(%rax,%rax), %ecx
	cmpl	%ebx, %eax
	jl	LBB0_3
	jmp	LBB0_6
LBB0_5:
	movl	%ebx, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I915_TILING_NONE,4,2           ## @I915_TILING_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_get_gtt_size          ; -- Begin function i915_gem_get_gtt_size
	.p2align	2
_i915_gem_get_gtt_size:                 ; @i915_gem_get_gtt_size
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_INTEL_INFO
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _I915_TILING_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I915_TILING_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #3
	ccmp	w9, w21, #4, le
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	mov	w9, #524288
	mov	w10, #1048576
	cmp	w8, #3
	csel	w8, w10, w9, eq
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	lsl	w8, w8, #1
	cmp	w0, w19
	b.lt	LBB0_3
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I915_TILING_NONE,4,2           ; @I915_TILING_NONE
.subsections_via_symbols
