	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adjust_display_pll_v3
_adjust_display_pll_v3:                 ## @adjust_display_pll_v3
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	(%rsi), %r13
	imulq	$1717986919, %r13, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movl	%eax, -52(%rbp)
	movq	(%r12), %rax
	movq	8(%rax), %r15
	movl	32(%r14), %edi
	callq	_dal_graphics_object_id_get_encoder_id
	movl	%eax, %edi
	callq	*%r15
	movl	%eax, -56(%rbp)
	movq	(%r12), %rax
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rax, -64(%rbp)
	cmpl	$1, 16(%r14)
	jne	LBB0_2
## %bb.1:
	movq	_DISPPLL_CONFIG_SS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
LBB0_2:
	movq	8(%r14), %rax
	movq	_SIGNAL_TYPE_DVI_DUAL_LINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_DISPPLL_CONFIG_DUAL_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -72(%rbp)
LBB0_4:
	movq	_AdjustDisplayPll@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax
	movq	%rax, 32(%rsp)
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_EXEC_BIOS_CMD_TABLE
	testq	%rax, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_9
## %bb.5:
	movl	-80(%rbp), %edi
	callq	_le32_to_cpu
	addl	$9, %r13d
	cmpl	$19, %r13d
	jae	LBB0_6
## %bb.7:
	movl	$0, 28(%r14)
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	jmp	LBB0_8
LBB0_6:
	imull	(%r14), %eax
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_div_u64
	movl	%eax, 28(%r14)
LBB0_8:
	movl	-84(%rbp), %eax
	movl	%eax, 24(%r14)
	movl	-88(%rbp), %eax
	movl	%eax, 20(%r14)
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_DISPPLL_CONFIG_SS_ENABLE,4,2   ## @DISPPLL_CONFIG_SS_ENABLE
	.comm	_SIGNAL_TYPE_DVI_DUAL_LINK,8,3  ## @SIGNAL_TYPE_DVI_DUAL_LINK
	.comm	_DISPPLL_CONFIG_DUAL_LINK,4,2   ## @DISPPLL_CONFIG_DUAL_LINK
	.comm	_AdjustDisplayPll,4,2           ## @AdjustDisplayPll
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_adjust_display_pll_v3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adjust_display_pll_v3
_adjust_display_pll_v3:                 ; @adjust_display_pll_v3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldrsw	x23, [x1]
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	mul	x8, x23, x8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w20, w8, w9, asr #2
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, x20
	bl	_cpu_to_le16
	str	w0, [sp, #76]
	ldr	x8, [x22]
	ldr	x24, [x8, #8]
	ldr	w0, [x19, #32]
	bl	_dal_graphics_object_id_get_encoder_id
	blr	x24
	str	w0, [sp, #72]
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x0, [x19, #8]
	mov	w1, #0
	blr	x8
	str	x0, [sp, #64]
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DISPPLL_CONFIG_SS_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISPPLL_CONFIG_SS_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #56]
	orr	w8, w9, w8
	str	w8, [sp, #56]
LBB0_2:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _SIGNAL_TYPE_DVI_DUAL_LINK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIGNAL_TYPE_DVI_DUAL_LINK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _DISPPLL_CONFIG_DUAL_LINK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DISPPLL_CONFIG_DUAL_LINK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #56]
	orr	w8, w9, w8
	str	w8, [sp, #56]
LBB0_4:
Lloh12:
	adrp	x8, _AdjustDisplayPll@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AdjustDisplayPll@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldur	q0, [sp, #40]
	ldur	q1, [sp, #56]
	stp	q0, q1, [sp]
	ldr	x8, [sp, #72]
	str	x8, [sp, #32]
	mov	x1, sp
	bl	_EXEC_BIOS_CMD_TABLE
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w0, [sp, #48]
	bl	_le32_to_cpu
	add	w8, w23, #9
	cmp	w8, #19
	b.hs	LBB0_7
; %bb.6:
	str	wzr, [x19, #28]
	bl	_BREAK_TO_DEBUGGER
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19]
	mul	w0, w8, w0
	mov	x1, x20
	bl	_div_u64
	str	w0, [x19, #28]
LBB0_8:
	ldr	d0, [sp, #40]
	stur	d0, [x19, #20]
Lloh15:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_DISPPLL_CONFIG_SS_ENABLE,4,2   ; @DISPPLL_CONFIG_SS_ENABLE
	.comm	_SIGNAL_TYPE_DVI_DUAL_LINK,8,3  ; @SIGNAL_TYPE_DVI_DUAL_LINK
	.comm	_DISPPLL_CONFIG_DUAL_LINK,4,2   ; @DISPPLL_CONFIG_DUAL_LINK
	.comm	_AdjustDisplayPll,4,2           ; @AdjustDisplayPll
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_adjust_display_pll_v3
.subsections_via_symbols
