	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_calculate_wrpll
_intel_ddi_calculate_wrpll:             ## @intel_ddi_calculate_wrpll
	.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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_wrpll_tmds_clock_table@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	cmpl	%ebx, (%rdi,%r14)
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	addq	$16, %r14
	cmpq	%rax, %r12
	jb	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
LBB0_5:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%ecx, %ecx
	cmpq	%rax, %r12
	sete	%cl
	subq	%rcx, %r12
	movq	(%r13), %rax
	shlq	$4, %r12
	movl	4(%rax,%r12), %ecx
	movl	%ecx, (%r15)
	movl	8(%rax,%r12), %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%ecx, (%r14)
	movl	12(%rax,%r12), %r8d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%r8d, (%r13)
	movl	(%rax,%r12), %esi
	cmpl	%ebx, %esi
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	callq	_DRM_INFO
	movl	(%r13), %r8d
LBB0_7:
	movl	(%r15), %edx
	movl	(%r14), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wrpll_tmds_clock_table,8,3     ## @wrpll_tmds_clock_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRPLL: using settings for %dKHz on %dKHz mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"WRPLL: %dKHz refresh rate with p=%d, n2=%d r2=%d\n"

	.no_dead_strip	_intel_ddi_calculate_wrpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_calculate_wrpll
_intel_ddi_calculate_wrpll:             ; @intel_ddi_calculate_wrpll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _wrpll_tmds_clock_table@GOTPAGE
Lloh1:
	ldr	x23, [x23, _wrpll_tmds_clock_table@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_4
; %bb.1:
	mov	x25, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	w8, [x0, x25]
	cmp	w8, w20
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x25, x25, #16
	cmp	x24, x0
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x24, #0
LBB0_5:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x24, x0
	cset	w8, eq
	sub	x8, x24, x8
	ldr	x9, [x23]
	add	x8, x9, x8, lsl #4
	ldr	w9, [x8, #4]
	str	w9, [x21]
	ldr	w9, [x8, #8]
	str	w9, [x19]
	ldr	w4, [x8, #12]
	str	w4, [x22]
	ldr	w1, [x8]
	cmp	w1, w20
	b.eq	LBB0_7
; %bb.6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_INFO
	ldr	w4, [x22]
LBB0_7:
	ldr	w2, [x21]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	ldr	w3, [x19]
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DRM_DEBUG_KMS
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_wrpll_tmds_clock_table,8,3     ; @wrpll_tmds_clock_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRPLL: using settings for %dKHz on %dKHz mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"WRPLL: %dKHz refresh rate with p=%d, n2=%d r2=%d\n"

	.no_dead_strip	_intel_ddi_calculate_wrpll
.subsections_via_symbols
