	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_graphics_stolen
_intel_graphics_stolen:                 ## @intel_graphics_stolen
	.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
	xorl	%eax, %eax
	callq	_pci_cfgregopen
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_PCIR_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$2, %r8d
	callq	_pci_cfgregread
	movq	_PCI_VENDOR_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	_PCIR_SUBCLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$2, %r8d
	callq	_pci_cfgregread
	movq	_PCI_CLASS_VGA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	_PCIR_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	movl	$2, %r8d
	callq	_pci_cfgregread
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	je	LBB0_9
## %bb.4:
	movq	%rax, %r15
	movq	_intel_ids@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_nitems
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	movl	$8, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	cmpq	%r15, -8(%rdi,%r12)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	callq	_nitems
	cltq
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movq	(%rdi,%r12), %rbx
	xorl	%edi, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	*8(%rbx)
	movq	_intel_graphics_stolen_base@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	*(%rbx)
	movq	_intel_graphics_stolen_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIR_VENDOR,4,2                ## @PCIR_VENDOR
	.comm	_PCI_VENDOR_INTEL,8,3           ## @PCI_VENDOR_INTEL
	.comm	_PCIR_SUBCLASS,4,2              ## @PCIR_SUBCLASS
	.comm	_PCI_CLASS_VGA,8,3              ## @PCI_CLASS_VGA
	.comm	_PCIR_DEVICE,4,2                ## @PCIR_DEVICE
	.comm	_intel_ids,8,3                  ## @intel_ids
	.comm	_intel_graphics_stolen_base,4,2 ## @intel_graphics_stolen_base
	.comm	_intel_graphics_stolen_size,4,2 ## @intel_graphics_stolen_size
	.no_dead_strip	_intel_graphics_stolen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_graphics_stolen
_intel_graphics_stolen:                 ; @intel_graphics_stolen
	.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
	bl	_pci_cfgregopen
	cbz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _PCIR_VENDOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIR_VENDOR@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w0, #0
	mov	w1, #2
	mov	w2, #0
	mov	w4, #2
	bl	_pci_cfgregread
Lloh3:
	adrp	x8, _PCI_VENDOR_INTEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_VENDOR_INTEL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.2:
Lloh6:
	adrp	x8, _PCIR_SUBCLASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIR_SUBCLASS@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	w0, #0
	mov	w1, #2
	mov	w2, #0
	mov	w4, #2
	bl	_pci_cfgregread
Lloh9:
	adrp	x8, _PCI_CLASS_VGA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_CLASS_VGA@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
Lloh12:
	adrp	x8, _PCIR_DEVICE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCIR_DEVICE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	w0, #0
	mov	w1, #2
	mov	w2, #0
	mov	w4, #2
	bl	_pci_cfgregread
	mov	w8, #65535
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.4:
	mov	x19, x0
Lloh15:
	adrp	x20, _intel_ids@GOTPAGE
Lloh16:
	ldr	x20, [x20, _intel_ids@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_nitems
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x21, #0
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	x8, [x0, x21]
	cmp	x8, x19
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	bl	_nitems
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:
	add	x8, x0, x21
	ldr	x19, [x8, #8]
	ldr	x8, [x19, #8]
	mov	w0, #0
	mov	w1, #2
	mov	w2, #0
	blr	x8
Lloh17:
	adrp	x8, _intel_graphics_stolen_base@GOTPAGE
Lloh18:
	ldr	x8, [x8, _intel_graphics_stolen_base@GOTPAGEOFF]
Lloh19:
	str	w0, [x8]
	ldr	x8, [x19]
	mov	w0, #0
	mov	w1, #2
	mov	w2, #0
	blr	x8
Lloh20:
	adrp	x8, _intel_graphics_stolen_size@GOTPAGE
Lloh21:
	ldr	x8, [x8, _intel_graphics_stolen_size@GOTPAGEOFF]
Lloh22:
	str	w0, [x8]
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIR_VENDOR,4,2                ; @PCIR_VENDOR
	.comm	_PCI_VENDOR_INTEL,8,3           ; @PCI_VENDOR_INTEL
	.comm	_PCIR_SUBCLASS,4,2              ; @PCIR_SUBCLASS
	.comm	_PCI_CLASS_VGA,8,3              ; @PCI_CLASS_VGA
	.comm	_PCIR_DEVICE,4,2                ; @PCIR_DEVICE
	.comm	_intel_ids,8,3                  ; @intel_ids
	.comm	_intel_graphics_stolen_base,4,2 ; @intel_graphics_stolen_base
	.comm	_intel_graphics_stolen_size,4,2 ; @intel_graphics_stolen_size
	.no_dead_strip	_intel_graphics_stolen
.subsections_via_symbols
