	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_i9xx_setup_flush
_intel_i9xx_setup_flush:                ## @intel_i9xx_setup_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_intel_private@GOTPCREL(%rip), %rbx
	cmpq	$0, 24(%rbx)
	jne	LBB0_10
## %bb.1:
	movq	_INTEL_GTT_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$6, %eax
	je	LBB0_10
## %bb.2:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, 16(%rbx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	_IS_G33@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_4
## %bb.3:
	cmpl	$4, %eax
	jge	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_intel_i915_setup_chipset_flush
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	callq	_intel_i965_g33_setup_chipset_flush
LBB0_6:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioremap_nocache
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_10
LBB0_11:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_private,40,3             ## @intel_private
	.comm	_INTEL_GTT_GEN,4,2              ## @INTEL_GTT_GEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Intel Flush Page"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_IS_G33,8,3                     ## @IS_G33
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"can't ioremap flush page - no chipset flushing\n"

	.no_dead_strip	_intel_i9xx_setup_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_i9xx_setup_flush
_intel_i9xx_setup_flush:                ; @intel_i9xx_setup_flush
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x9, [x19, #24]
Lloh2:
	adrp	x8, _INTEL_GTT_GEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_GTT_GEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x9, #0
	ccmp	w8, #6, #4, eq
	b.eq	LBB0_4
; %bb.1:
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [x19, #16]
Lloh7:
	adrp	x9, _IORESOURCE_MEM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x19, #32]
Lloh10:
	adrp	x9, _IS_G33@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IS_G33@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	w8, #4, #0, eq
	b.lt	LBB0_5
; %bb.2:
	bl	_intel_i965_g33_setup_chipset_flush
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_ioremap_nocache
	str	w0, [x19, #8]
	cbz	w0, LBB0_7
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_intel_i915_setup_chipset_flush
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_3
LBB0_6:
	ldr	w0, [x19, #8]
	cbnz	w0, LBB0_4
LBB0_7:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_private,40,3             ; @intel_private
	.comm	_INTEL_GTT_GEN,4,2              ; @INTEL_GTT_GEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Intel Flush Page"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_IS_G33,8,3                     ; @IS_G33
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"can't ioremap flush page - no chipset flushing\n"

	.no_dead_strip	_intel_i9xx_setup_flush
.subsections_via_symbols
