	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_stolen_to_physical
_i915_stolen_to_physical:               ## @i915_stolen_to_physical
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %r14
	movl	$0, -20(%rbp)
	callq	_INTEL_INFO
	cmpl	$6, (%rax)
	jl	LBB0_2
## %bb.1:
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$176, %esi
	callq	_pci_read_config_dword
	movl	$-4096, %eax                    ## imm = 0xF000
	andl	-20(%rbp), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_INTEL_INFO
	cmpl	$3, (%rax)
	jg	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_IS_G33
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$164, %esi
	callq	_pci_read_config_dword
	movl	-20(%rbp), %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	cltq
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_max_low_pfn_mapped,4,2         ## @max_low_pfn_mapped
	.no_dead_strip	_i915_stolen_to_physical
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_stolen_to_physical
_i915_stolen_to_physical:               ; @i915_stolen_to_physical
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8, #8]
	str	wzr, [sp, #12]
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #6
	b.lt	LBB0_2
; %bb.1:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #176
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffff000
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #3
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_IS_G33
	cbz	x0, LBB0_5
LBB0_4:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #164
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	sxtw	x0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_max_low_pfn_mapped,4,2         ; @max_low_pfn_mapped
	.no_dead_strip	_i915_stolen_to_physical
.subsections_via_symbols
