	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i830_chipset_flush
_i830_chipset_flush:                    ## @i830_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_wbinvd_on_all_cpus
	movq	_intel_private@GOTPCREL(%rip), %r15
	movq	_I830_HIC@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	orl	$-2147483648, %eax              ## imm = 0x80000000
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	testl	%eax, %eax
	jns	LBB0_4
## %bb.1:
	addq	%r13, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$50, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	testl	%eax, %eax
	js	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_intel_private,8,3              ## @intel_private
	.comm	_I830_HIC,8,3                   ## @I830_HIC
	.no_dead_strip	_i830_chipset_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i830_chipset_flush
_i830_chipset_flush:                    ; @i830_chipset_flush
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _jiffies@GOTPAGE
Lloh1:
	ldr	x20, [x20, _jiffies@GOTPAGEOFF]
	ldr	x23, [x20]
	mov	w0, #1000
	bl	_msecs_to_jiffies
	mov	x19, x0
	bl	_wbinvd_on_all_cpus
Lloh2:
	adrp	x21, _intel_private@GOTPAGE
Lloh3:
	ldr	x21, [x21, _intel_private@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x22, _I830_HIC@GOTPAGE
Lloh5:
	ldr	x22, [x22, _I830_HIC@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, #0x80000000
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	tbz	w0, #31, LBB0_4
; %bb.1:
	add	x19, x19, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	mov	x1, x19
	bl	_time_after
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #50
	bl	_udelay
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	tbnz	w0, #31, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_intel_private,8,3              ; @intel_private
	.comm	_I830_HIC,8,3                   ; @I830_HIC
	.no_dead_strip	_i830_chipset_flush
.subsections_via_symbols
