	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_intel_limit
_cdv_intel_limit:                       ## @cdv_intel_limit
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_INTEL_OUTPUT_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gma_pipe_has_type
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpl	$96000, %r14d                   ## imm = 0x17700
	jne	LBB0_2
## %bb.3:
	movq	_CDV_LIMIT_SINGLE_LVDS_96@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_INTEL_OUTPUT_DISPLAYPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gma_pipe_has_type
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gma_pipe_has_type
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	cmpl	$27000, %r14d                   ## imm = 0x6978
	jne	LBB0_7
## %bb.8:
	movq	_CDV_LIMIT_DP_27@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_CDV_LIMIT_SINGLE_LVDS_100@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_CDV_LIMIT_DP_100@GOTPCREL(%rip), %rax
LBB0_12:
	movq	_cdv_intel_limits@GOTPCREL(%rip), %rcx
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	cmpl	$27000, %r14d                   ## imm = 0x6978
	jne	LBB0_10
## %bb.11:
	movq	_CDV_LIMIT_DAC_HDMI_27@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_CDV_LIMIT_DAC_HDMI_96@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_LVDS,4,2          ## @INTEL_OUTPUT_LVDS
	.comm	_cdv_intel_limits,8,3           ## @cdv_intel_limits
	.comm	_CDV_LIMIT_SINGLE_LVDS_96,8,3   ## @CDV_LIMIT_SINGLE_LVDS_96
	.comm	_CDV_LIMIT_SINGLE_LVDS_100,8,3  ## @CDV_LIMIT_SINGLE_LVDS_100
	.comm	_INTEL_OUTPUT_DISPLAYPORT,4,2   ## @INTEL_OUTPUT_DISPLAYPORT
	.comm	_INTEL_OUTPUT_EDP,4,2           ## @INTEL_OUTPUT_EDP
	.comm	_CDV_LIMIT_DP_27,8,3            ## @CDV_LIMIT_DP_27
	.comm	_CDV_LIMIT_DP_100,8,3           ## @CDV_LIMIT_DP_100
	.comm	_CDV_LIMIT_DAC_HDMI_27,8,3      ## @CDV_LIMIT_DAC_HDMI_27
	.comm	_CDV_LIMIT_DAC_HDMI_96,8,3      ## @CDV_LIMIT_DAC_HDMI_96
	.no_dead_strip	_cdv_intel_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_intel_limit
_cdv_intel_limit:                       ; @cdv_intel_limit
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _INTEL_OUTPUT_LVDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_LVDS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gma_pipe_has_type
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CDV_LIMIT_SINGLE_LVDS_100@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CDV_LIMIT_SINGLE_LVDS_100@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CDV_LIMIT_SINGLE_LVDS_96@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CDV_LIMIT_SINGLE_LVDS_96@GOTPAGEOFF]
	mov	w10, #30464
	movk	w10, #1, lsl #16
	b	LBB0_6
LBB0_2:
Lloh7:
	adrp	x8, _INTEL_OUTPUT_DISPLAYPORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INTEL_OUTPUT_DISPLAYPORT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gma_pipe_has_type
	cbnz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_gma_pipe_has_type
	cbz	x0, LBB0_7
LBB0_4:
Lloh13:
	adrp	x8, _CDV_LIMIT_DP_100@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CDV_LIMIT_DP_100@GOTPAGEOFF]
Lloh15:
	adrp	x9, _CDV_LIMIT_DP_27@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CDV_LIMIT_DP_27@GOTPAGEOFF]
LBB0_5:
	mov	w10, #27000
LBB0_6:
	cmp	w19, w10
	csel	x8, x9, x8, eq
Lloh17:
	adrp	x9, _cdv_intel_limits@GOTPAGE
Lloh18:
	ldr	x9, [x9, _cdv_intel_limits@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	x8, [x8]
	add	x0, x9, x8, lsl #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh20:
	adrp	x8, _CDV_LIMIT_DAC_HDMI_96@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CDV_LIMIT_DAC_HDMI_96@GOTPAGEOFF]
Lloh22:
	adrp	x9, _CDV_LIMIT_DAC_HDMI_27@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CDV_LIMIT_DAC_HDMI_27@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_LVDS,4,2          ; @INTEL_OUTPUT_LVDS
	.comm	_cdv_intel_limits,8,3           ; @cdv_intel_limits
	.comm	_CDV_LIMIT_SINGLE_LVDS_96,8,3   ; @CDV_LIMIT_SINGLE_LVDS_96
	.comm	_CDV_LIMIT_SINGLE_LVDS_100,8,3  ; @CDV_LIMIT_SINGLE_LVDS_100
	.comm	_INTEL_OUTPUT_DISPLAYPORT,4,2   ; @INTEL_OUTPUT_DISPLAYPORT
	.comm	_INTEL_OUTPUT_EDP,4,2           ; @INTEL_OUTPUT_EDP
	.comm	_CDV_LIMIT_DP_27,8,3            ; @CDV_LIMIT_DP_27
	.comm	_CDV_LIMIT_DP_100,8,3           ; @CDV_LIMIT_DP_100
	.comm	_CDV_LIMIT_DAC_HDMI_27,8,3      ; @CDV_LIMIT_DAC_HDMI_27
	.comm	_CDV_LIMIT_DAC_HDMI_96,8,3      ; @CDV_LIMIT_DAC_HDMI_96
	.no_dead_strip	_cdv_intel_limit
.subsections_via_symbols
