	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_lvds_mode_fixup
_rcar_lvds_mode_fixup:                  ## @rcar_lvds_mode_fixup
	.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	%rdx, %rbx
	callq	_bridge_to_rcar_lvds
	movq	(%rax), %rax
	movq	_RCAR_LVDS_QUIRK_EXT_PLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movl	$31000, %eax                    ## imm = 0x7918
	movl	$5000, %esi                     ## imm = 0x1388
	cmovel	%eax, %esi
	movl	(%rbx), %edi
	movl	$148500, %edx                   ## imm = 0x24414
	callq	_clamp
	movl	%eax, (%rbx)
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_LVDS_QUIRK_EXT_PLL,4,2    ## @RCAR_LVDS_QUIRK_EXT_PLL
	.no_dead_strip	_rcar_lvds_mode_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_lvds_mode_fixup
_rcar_lvds_mode_fixup:                  ; @rcar_lvds_mode_fixup
	.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, x2
	bl	_bridge_to_rcar_lvds
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _RCAR_LVDS_QUIRK_EXT_PLL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCAR_LVDS_QUIRK_EXT_PLL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #5000
	mov	w9, #31000
	csel	w1, w9, w8, eq
	ldr	w0, [x19]
	mov	w2, #17428
	movk	w2, #2, lsl #16
	bl	_clamp
	str	w0, [x19]
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_LVDS_QUIRK_EXT_PLL,4,2    ; @RCAR_LVDS_QUIRK_EXT_PLL
	.no_dead_strip	_rcar_lvds_mode_fixup
.subsections_via_symbols
