	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_setup
_i9xx_setup:                            ## @i9xx_setup
	.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
	movl	$512, %edi                      ## imm = 0x200
	callq	_KB
	movl	%eax, %ebx
	movq	_intel_private@GOTPCREL(%rip), %r14
	movl	4(%r14), %edi
	movq	_I915_MMADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	$-524288, %edi                  ## imm = 0xFFF80000
	andl	-20(%rbp), %edi
	movl	%edi, -20(%rbp)
	movl	%ebx, %esi
	callq	_ioremap
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_INTEL_GTT_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$5, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$3, %eax
	jne	LBB0_6
## %bb.4:
	movl	4(%r14), %edi
	movq	_I915_PTEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-24(%rbp), %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movl	-20(%rbp), %ebx
	movl	$2, %edi
	callq	_MB
	jmp	LBB0_7
LBB0_6:
	movl	-20(%rbp), %ebx
	movl	$512, %edi                      ## imm = 0x200
	callq	_KB
LBB0_7:
	addl	%ebx, %eax
LBB0_8:
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_intel_i9xx_setup_flush
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_private,12,2             ## @intel_private
	.comm	_I915_MMADDR,4,2                ## @I915_MMADDR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INTEL_GTT_GEN,4,2              ## @INTEL_GTT_GEN
	.comm	_I915_PTEADDR,4,2               ## @I915_PTEADDR
	.no_dead_strip	_i9xx_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_setup
_i9xx_setup:                            ; @i9xx_setup
	.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	w0, #512
	bl	_KB
	mov	x19, x0
Lloh0:
	adrp	x20, _intel_private@GOTPAGE
Lloh1:
	ldr	x20, [x20, _intel_private@GOTPAGEOFF]
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x8, _I915_MMADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I915_MMADDR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	and	w0, w8, #0xfff80000
	str	w0, [sp, #12]
	mov	x1, x19
	bl	_ioremap
	str	w0, [x20, #8]
	cbz	w0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _INTEL_GTT_GEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INTEL_GTT_GEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #5
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #3
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x8, _I915_PTEADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I915_PTEADDR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_pci_read_config_dword
	ldr	w8, [sp, #8]
	b	LBB0_8
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
	ldr	w19, [sp, #12]
	mov	w0, #2
	bl	_MB
	b	LBB0_7
LBB0_6:
	ldr	w19, [sp, #12]
	mov	w0, #512
	bl	_KB
LBB0_7:
	add	w8, w0, w19
LBB0_8:
	str	w8, [x20]
	bl	_intel_i9xx_setup_flush
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_private,12,2             ; @intel_private
	.comm	_I915_MMADDR,4,2                ; @I915_MMADDR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INTEL_GTT_GEN,4,2              ; @INTEL_GTT_GEN
	.comm	_I915_PTEADDR,4,2               ; @I915_PTEADDR
	.no_dead_strip	_i9xx_setup
.subsections_via_symbols
