	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_i915_setup_chipset_flush
_intel_i915_setup_chipset_flush:        ## @intel_i915_setup_chipset_flush
	.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	_intel_private@GOTPCREL(%rip), %rbx
	movl	24(%rbx), %edi
	movq	_I915_IFPADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_pci_read_config_dword
	movslq	-20(%rbp), %rax
	testb	$1, %al
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_intel_alloc_chipset_flush_resource
	movl	$1, (%rbx)
	movl	8(%rbx), %edx
	movl	24(%rbx), %edi
	movl	(%r14), %esi
	orl	$1, %edx
	callq	_pci_write_config_dword
	jmp	LBB0_4
LBB0_2:
	andq	$-2, %rax
	movl	%eax, -20(%rbp)
	movl	$1, (%rbx)
	movl	%eax, 8(%rbx)
	leaq	8(%rbx), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 16(%rbx)
	movq	_iomem_resource@GOTPCREL(%rip), %rdi
	callq	_request_resource
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	$0, (%rbx)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_private,32,3             ## @intel_private
	.comm	_I915_IFPADDR,4,2               ## @I915_IFPADDR
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_iomem_resource,4,2             ## @iomem_resource
	.no_dead_strip	_intel_i915_setup_chipset_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_i915_setup_chipset_flush
_intel_i915_setup_chipset_flush:        ; @intel_i915_setup_chipset_flush
	.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
Lloh0:
	adrp	x19, _intel_private@GOTPAGE
Lloh1:
	ldr	x19, [x19, _intel_private@GOTPAGEOFF]
	ldr	w0, [x19, #24]
Lloh2:
	adrp	x20, _I915_IFPADDR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _I915_IFPADDR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldrsw	x8, [sp, #12]
	tbnz	w8, #0, LBB0_2
; %bb.1:
	bl	_intel_alloc_chipset_flush_resource
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #24]
	ldr	w1, [x20]
	ldr	w8, [x19, #8]
	orr	w2, w8, #0x1
	bl	_pci_write_config_dword
	b	LBB0_4
LBB0_2:
	and	x8, x8, #0xfffffffffffffffe
	str	w8, [sp, #12]
	mov	w9, #1
	mov	x1, x19
	str	w8, [x1, #8]!
	str	w9, [x19]
Lloh4:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #16]
Lloh7:
	adrp	x0, _iomem_resource@GOTPAGE
Lloh8:
	ldr	x0, [x0, _iomem_resource@GOTPAGEOFF]
	bl	_request_resource
	cbz	w0, LBB0_4
; %bb.3:
	str	wzr, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_private,32,3             ; @intel_private
	.comm	_I915_IFPADDR,4,2               ; @I915_IFPADDR
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_iomem_resource,4,2             ; @iomem_resource
	.no_dead_strip	_intel_i915_setup_chipset_flush
.subsections_via_symbols
