	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __intel_set_cpu_fifo_underrun_reporting
___intel_set_cpu_fifo_underrun_reporting: ## @__intel_set_cpu_fifo_underrun_reporting
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_to_i915
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_intel_get_crtc_for_pipe
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_lockdep_assert_held
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	sete	%bl
	xorl	%eax, %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	sete	%al
	movl	%eax, (%r14)
	movq	%r13, %rdi
	callq	_HAS_GMCH
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_i9xx_set_fifo_underrun_reporting
	jmp	LBB0_8
LBB0_2:
	movl	%ebx, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%r13, %rdi
	movl	$5, %esi
	movl	$6, %edx
	callq	_IS_GEN_RANGE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_ironlake_set_fifo_underrun_reporting
	movl	%r14d, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%r13, %rdi
	movl	$7, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	movl	%r15d, %edx
	movq	%rbx, %r15
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %ebx
	movl	%r14d, %ecx
	callq	_ivybridge_set_fifo_underrun_reporting
	jmp	LBB0_8
LBB0_6:
	movq	%r13, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	movl	%r14d, %ebx
	jl	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_broadwell_set_fifo_underrun_reporting
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___intel_set_cpu_fifo_underrun_reporting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __intel_set_cpu_fifo_underrun_reporting
___intel_set_cpu_fifo_underrun_reporting: ; @__intel_set_cpu_fifo_underrun_reporting
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_to_i915
	mov	x23, x0
	mov	x1, x21
	bl	_intel_get_crtc_for_pipe
	mov	x24, x0
	mov	x0, x23
	bl	_lockdep_assert_held
	ldr	w8, [x24]
	cmp	w8, #0
	cset	w20, eq
	cmp	w19, #0
	cset	w8, eq
	str	w8, [x24]
	mov	x0, x23
	bl	_HAS_GMCH
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_i9xx_set_fifo_underrun_reporting
	b	LBB0_8
LBB0_2:
	mov	x0, x23
	mov	w1, #5
	mov	w2, #6
	bl	_IS_GEN_RANGE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_ironlake_set_fifo_underrun_reporting
	b	LBB0_8
LBB0_4:
	mov	x0, x23
	mov	w1, #7
	bl	_IS_GEN
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_ivybridge_set_fifo_underrun_reporting
	b	LBB0_8
LBB0_6:
	mov	x0, x23
	bl	_INTEL_GEN
	cmp	w0, #8
	b.lt	LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_broadwell_set_fifo_underrun_reporting
LBB0_8:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___intel_set_cpu_fifo_underrun_reporting
.subsections_via_symbols
