	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_ddi_dp_get_dpll
_hsw_ddi_dp_get_dpll:                   ## @hsw_ddi_dp_get_dpll
	.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	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_i915
	movl	(%rbx), %esi
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	cmpl	$81000, %ecx                    ## imm = 0x13C68
	je	LBB0_1
## %bb.2:
	cmpl	$270000, %ecx                   ## imm = 0x41EB0
	je	LBB0_6
## %bb.3:
	cmpl	$135000, %ecx                   ## imm = 0x20F58
	jne	LBB0_5
## %bb.4:
	movq	_DPLL_ID_LCPLL_1350@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_DPLL_ID_LCPLL_810@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_DPLL_ID_LCPLL_2700@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %esi
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_intel_get_shared_dpll_by_id    ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPLL_ID_LCPLL_810,4,2          ## @DPLL_ID_LCPLL_810
	.comm	_DPLL_ID_LCPLL_1350,4,2         ## @DPLL_ID_LCPLL_1350
	.comm	_DPLL_ID_LCPLL_2700,4,2         ## @DPLL_ID_LCPLL_2700
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid clock for DP: %d\n"

	.no_dead_strip	_hsw_ddi_dp_get_dpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_ddi_dp_get_dpll
_hsw_ddi_dp_get_dpll:                   ; @hsw_ddi_dp_get_dpll
	.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, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_to_i915
	ldr	w1, [x19]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w8, w8, #1
	sub	w9, w8, #19, lsl #12            ; =77824
	cmp	w9, #3176
	b.eq	LBB0_4
; %bb.1:
	mov	w9, #7856
	movk	w9, #4, lsl #16
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.2:
	mov	w9, #3928
	movk	w9, #2, lsl #16
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _DPLL_ID_LCPLL_1350@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPLL_ID_LCPLL_1350@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _DPLL_ID_LCPLL_810@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPLL_ID_LCPLL_810@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _DPLL_ID_LCPLL_2700@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPLL_ID_LCPLL_2700@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_get_shared_dpll_by_id
LBB0_7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DPLL_ID_LCPLL_810,4,2          ; @DPLL_ID_LCPLL_810
	.comm	_DPLL_ID_LCPLL_1350,4,2         ; @DPLL_ID_LCPLL_1350
	.comm	_DPLL_ID_LCPLL_2700,4,2         ; @DPLL_ID_LCPLL_2700
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid clock for DP: %d\n"

	.no_dead_strip	_hsw_ddi_dp_get_dpll
.subsections_via_symbols
