	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_get_stolen_reserved
_vlv_get_stolen_reserved:               ## @vlv_get_stolen_reserved
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_GEN6_STOLEN_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	(%r12), %r12d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_DRIVER
	movq	_GEN6_STOLEN_RESERVED_ENABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_GEN7_STOLEN_RESERVED_SIZE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_MISSING_CASE
LBB0_3:
	movl	$1048576, (%r15)                ## imm = 0x100000
	addl	$-1048575, %r12d                ## imm = 0xFFF00001
	movl	%r12d, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN6_STOLEN_RESERVED,4,2       ## @GEN6_STOLEN_RESERVED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GEN6_STOLEN_RESERVED = %08x\n"

	.comm	_GEN6_STOLEN_RESERVED_ENABLE,4,2 ## @GEN6_STOLEN_RESERVED_ENABLE
	.comm	_GEN7_STOLEN_RESERVED_SIZE_MASK,4,2 ## @GEN7_STOLEN_RESERVED_SIZE_MASK
	.no_dead_strip	_vlv_get_stolen_reserved
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_get_stolen_reserved
_vlv_get_stolen_reserved:               ; @vlv_get_stolen_reserved
	.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, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GEN6_STOLEN_RESERVED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN6_STOLEN_RESERVED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x21, x0
	ldr	w22, [x22]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_DRIVER
Lloh5:
	adrp	x8, _GEN6_STOLEN_RESERVED_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GEN6_STOLEN_RESERVED_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _GEN7_STOLEN_RESERVED_SIZE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN7_STOLEN_RESERVED_SIZE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w0, w8, w21
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.2:
	bl	_MISSING_CASE
LBB0_3:
	mov	w8, #1048576
	str	w8, [x20]
	mov	w8, #-1048575
	add	w8, w22, w8
	str	w8, [x19]
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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN6_STOLEN_RESERVED,4,2       ; @GEN6_STOLEN_RESERVED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GEN6_STOLEN_RESERVED = %08x\n"

	.comm	_GEN6_STOLEN_RESERVED_ENABLE,4,2 ; @GEN6_STOLEN_RESERVED_ENABLE
	.comm	_GEN7_STOLEN_RESERVED_SIZE_MASK,4,2 ; @GEN7_STOLEN_RESERVED_SIZE_MASK
	.no_dead_strip	_vlv_get_stolen_reserved
.subsections_via_symbols
