	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_lvds_pll_setup_gen3
_rcar_lvds_pll_setup_gen3:              ## @rcar_lvds_pll_setup_gen3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$42000000, %esi                 ## imm = 0x280DE80
	jae	LBB0_2
## %bb.1:
	movq	_LVDPLLCR_PLLDIVCNT_42M@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	cmpl	$85000000, %esi                 ## imm = 0x510FF40
	jae	LBB0_4
## %bb.3:
	movq	_LVDPLLCR_PLLDIVCNT_85M@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	cmpl	$128000000, %esi                ## imm = 0x7A12000
	jae	LBB0_5
## %bb.6:
	movq	_LVDPLLCR_PLLDIVCNT_128M@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_LVDPLLCR_PLLDIVCNT_148M@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	_LVDPLLCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_rcar_lvds_write                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LVDPLLCR_PLLDIVCNT_42M,4,2     ## @LVDPLLCR_PLLDIVCNT_42M
	.comm	_LVDPLLCR_PLLDIVCNT_85M,4,2     ## @LVDPLLCR_PLLDIVCNT_85M
	.comm	_LVDPLLCR_PLLDIVCNT_128M,4,2    ## @LVDPLLCR_PLLDIVCNT_128M
	.comm	_LVDPLLCR_PLLDIVCNT_148M,4,2    ## @LVDPLLCR_PLLDIVCNT_148M
	.comm	_LVDPLLCR,4,2                   ## @LVDPLLCR
	.no_dead_strip	_rcar_lvds_pll_setup_gen3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_lvds_pll_setup_gen3
_rcar_lvds_pll_setup_gen3:              ; @rcar_lvds_pll_setup_gen3
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _LVDPLLCR_PLLDIVCNT_42M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LVDPLLCR_PLLDIVCNT_42M@GOTPAGEOFF]
	mov	w9, #56960
	movk	w9, #640, lsl #16
Lloh2:
	adrp	x10, _LVDPLLCR_PLLDIVCNT_85M@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LVDPLLCR_PLLDIVCNT_85M@GOTPAGEOFF]
	mov	w11, #65344
	movk	w11, #1296, lsl #16
Lloh4:
	adrp	x12, _LVDPLLCR_PLLDIVCNT_148M@GOTPAGE
Lloh5:
	ldr	x12, [x12, _LVDPLLCR_PLLDIVCNT_148M@GOTPAGEOFF]
Lloh6:
	adrp	x13, _LVDPLLCR_PLLDIVCNT_128M@GOTPAGE
Lloh7:
	ldr	x13, [x13, _LVDPLLCR_PLLDIVCNT_128M@GOTPAGEOFF]
	mov	w14, #8192
	movk	w14, #1953, lsl #16
	cmp	w1, w14
	csel	x12, x13, x12, lo
	cmp	w1, w11
	csel	x10, x10, x12, lo
	cmp	w1, w9
	csel	x8, x8, x10, lo
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _LVDPLLCR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LVDPLLCR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	b	_rcar_lvds_write
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LVDPLLCR_PLLDIVCNT_42M,4,2     ; @LVDPLLCR_PLLDIVCNT_42M
	.comm	_LVDPLLCR_PLLDIVCNT_85M,4,2     ; @LVDPLLCR_PLLDIVCNT_85M
	.comm	_LVDPLLCR_PLLDIVCNT_128M,4,2    ; @LVDPLLCR_PLLDIVCNT_128M
	.comm	_LVDPLLCR_PLLDIVCNT_148M,4,2    ; @LVDPLLCR_PLLDIVCNT_148M
	.comm	_LVDPLLCR,4,2                   ; @LVDPLLCR
	.no_dead_strip	_rcar_lvds_pll_setup_gen3
.subsections_via_symbols
