	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_port_clock_valid
_hdmi_port_clock_valid:                 ## @hdmi_port_clock_valid
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_intel_hdmi_to_dev
	movl	%eax, %edi
	callq	_to_i915
	cmpl	$25000, %r13d                   ## imm = 0x61A8
	jge	LBB0_2
## %bb.1:
	movq	_MODE_CLOCK_LOW@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_hdmi_port_clock_limit
	cmpl	%r13d, %eax
	jge	LBB0_4
## %bb.3:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_4:
	movq	%r14, %rdi
	callq	_IS_GEN9_LP
	leal	-223334(%r13), %ecx
	cmpl	$16665, %ecx                    ## imm = 0x4119
	ja	LBB0_7
## %bb.5:
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_MODE_CLOCK_RANGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	callq	_IS_CHERRYVIEW
	addl	$-216001, %r13d                 ## imm = 0xFFFCB43F
	movq	_MODE_OK@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MODE_CLOCK_RANGE@GOTPCREL(%rip), %rdx
LBB0_9:
	cmpl	$23999, %r13d                   ## imm = 0x5DBF
	cmovbq	%rdx, %rcx
LBB0_10:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_CLOCK_LOW,4,2             ## @MODE_CLOCK_LOW
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.comm	_MODE_CLOCK_RANGE,4,2           ## @MODE_CLOCK_RANGE
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_hdmi_port_clock_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_port_clock_valid
_hdmi_port_clock_valid:                 ; @hdmi_port_clock_valid
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	bl	_intel_hdmi_to_dev
	bl	_to_i915
	mov	w8, #25000
	cmp	w19, w8
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _MODE_CLOCK_LOW@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MODE_CLOCK_LOW@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_hdmi_port_clock_limit
	cmp	w0, w19
	b.ge	LBB0_4
; %bb.3:
Lloh2:
	adrp	x21, _MODE_CLOCK_HIGH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MODE_CLOCK_HIGH@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_IS_GEN9_LP
	sub	w8, w19, #54, lsl #12           ; =221184
	sub	w8, w8, #2150
Lloh4:
	adrp	x21, _MODE_CLOCK_RANGE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MODE_CLOCK_RANGE@GOTPAGEOFF]
	mov	w9, #16665
	cmp	w8, w9
	b.hi	LBB0_6
; %bb.5:
	cbnz	x0, LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cmp	x0, #0
	sub	w8, w19, #52, lsl #12           ; =212992
	sub	w8, w8, #3009
	mov	w9, #23999
	ccmp	w8, w9, #2, ne
Lloh6:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
	csel	x21, x21, x8, lo
LBB0_7:
	ldr	w0, [x21]
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_CLOCK_LOW,4,2             ; @MODE_CLOCK_LOW
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_MODE_CLOCK_RANGE,4,2           ; @MODE_CLOCK_RANGE
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_hdmi_port_clock_valid
.subsections_via_symbols
