	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_crtc_hdmi_mode_set    ## -- Begin function oaktrail_crtc_hdmi_mode_set
	.p2align	4, 0x90
_oaktrail_crtc_hdmi_mode_set:           ## @oaktrail_crtc_hdmi_mode_set
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, -92(%rbp)                 ## 4-byte Spill
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	_HTOTAL_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_HBLANK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_HSYNC_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_VTOTAL_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_VBLANK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_VSYNC_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_DSPBSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_DSPBPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_PIPEBSRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_PIPEBCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_DSPBCNTR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_gma_power_begin
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_VGACNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VGA_DISP_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_WRITE
	movq	_DPLL_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG_READ
	movq	_DPLL_PWRDN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	testl	%eax, %esi
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	movq	_DPLL_RESET@GOTPCREL(%rip), %rcx
	orl	%eax, %esi
	orl	(%rcx), %esi
	callq	_REG_WRITE
	movq	_DPLL_DIV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	_DPLL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_REG_WRITE
LBB0_3:
	movl	$150, %edi
	callq	_udelay
	movq	%r12, %rdi
	callq	_oaktrail_hdmi_reset
	movl	56(%r14), %esi
	leaq	-104(%rbp), %rcx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	$25000, %edx                    ## imm = 0x61A8
	callq	_oaktrail_hdmi_find_dpll
	movl	(%r15), %edi
	callq	_REG_READ
	movq	_DPLL_PDIV_MASK@GOTPCREL(%rip), %rcx
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movl	(%r13), %ebx
	movq	_DPLL_RESET@GOTPCREL(%rip), %rdx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	movl	$8, %esi
	callq	_REG_WRITE
	movq	_DPLL_DIV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-104(%rbp), %esi
	shll	$6, %esi
	orl	-100(%rbp), %esi
	callq	_REG_WRITE
	movq	_DPLL_ADJUST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-104(%rbp), %esi
	sarl	$14, %esi
	decl	%esi
	callq	_REG_WRITE
	movl	-96(%rbp), %esi
	movq	_DPLL_PDIV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%ebx, %esi
	movq	_DPLL_ENSTAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r15), %edi
	movq	_DPLL_DITHEN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_REG_WRITE
	movq	_DPLL_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2147483648, %esi              ## imm = 0x80000000
	callq	_REG_WRITE
	movq	_DPLL_CLK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2147155710, %esi              ## imm = 0x80050102
	callq	_REG_WRITE
	movl	$150, %edi
	callq	_udelay
	movl	$4100, %edi                     ## imm = 0x1004
	movl	$509, %esi                      ## imm = 0x1FD
	callq	_HDMI_WRITE
	movl	$8192, %edi                     ## imm = 0x2000
	movl	$1, %esi
	callq	_HDMI_WRITE
	movl	$8200, %edi                     ## imm = 0x2008
	xorl	%esi, %esi
	callq	_HDMI_WRITE
	movl	$12592, %edi                    ## imm = 0x3130
	movl	$8, %esi
	callq	_HDMI_WRITE
	movl	$4124, %edi                     ## imm = 0x101C
	movl	$25167888, %esi                 ## imm = 0x1800810
	callq	_HDMI_WRITE
	movq	%r14, %rdi
	callq	_htotal_calculate
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_REG_WRITE
	movl	(%r14), %eax
	movl	4(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_WRITE
	movl	8(%r14), %eax
	movl	12(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_WRITE
	movl	16(%r14), %eax
	movl	20(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_WRITE
	movl	24(%r14), %eax
	movl	28(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_WRITE
	movl	32(%r14), %eax
	movl	36(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_WRITE
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movl	16(%rbx), %esi
	movl	40(%rbx), %eax
	shll	$16, %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	decl	%esi
	orl	%eax, %esi
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_WRITE
	movq	_PCH_HTOTAL_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r14), %eax
	movl	44(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	callq	_REG_WRITE
	movq	_PCH_HBLANK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %eax
	movl	4(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	callq	_REG_WRITE
	movq	_PCH_HSYNC_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %eax
	movl	12(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	callq	_REG_WRITE
	movq	_PCH_VTOTAL_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %eax
	movl	20(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	callq	_REG_WRITE
	movq	_PCH_VBLANK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r14), %eax
	movl	28(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	callq	_REG_WRITE
	movq	_PCH_VSYNC_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %eax
	movl	36(%r14), %esi
	decl	%eax
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	callq	_REG_WRITE
	movq	_PCH_PIPEBSRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movl	40(%rbx), %eax
	shll	$16, %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	decl	%esi
	orl	%eax, %esi
	callq	_REG_WRITE
	movl	4(%r14), %eax
	movl	40(%r14), %esi
	subl	(%r14), %eax
	movq	_HDMI_HBLANK_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	callq	_HDMI_WRITE
	movl	48(%rbx), %eax
	movl	52(%rbx), %esi
	shll	$16, %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	decl	%esi
	orl	%eax, %esi
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	callq	_REG_WRITE
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	(%rdi), %rax
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	callq	*(%rax)
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_REG_READ
	movl	%eax, %r14d
	movq	_DISPPLANE_GAMMA_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_DISPPLANE_SEL_PIPE_B@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_DISPLAY_PLANE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_REG_READ
	movl	%eax, %ebx
	movq	_PIPEACONF_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movl	%r15d, %edi
	callq	_REG_READ
	movq	_PCH_PIPEBCONF@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movl	(%r15), %edi
	callq	_REG_READ
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_gma_wait_for_vblank
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_REG_WRITE
	movq	%rbx, %rdi
	callq	_gma_wait_for_vblank
	movq	%rbx, %rdi
	callq	_gma_power_end
LBB0_4:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTOTAL_A,4,2                   ## @HTOTAL_A
	.comm	_HTOTAL_B,4,2                   ## @HTOTAL_B
	.comm	_HBLANK_A,4,2                   ## @HBLANK_A
	.comm	_HBLANK_B,4,2                   ## @HBLANK_B
	.comm	_HSYNC_A,4,2                    ## @HSYNC_A
	.comm	_HSYNC_B,4,2                    ## @HSYNC_B
	.comm	_VTOTAL_A,4,2                   ## @VTOTAL_A
	.comm	_VTOTAL_B,4,2                   ## @VTOTAL_B
	.comm	_VBLANK_A,4,2                   ## @VBLANK_A
	.comm	_VBLANK_B,4,2                   ## @VBLANK_B
	.comm	_VSYNC_A,4,2                    ## @VSYNC_A
	.comm	_VSYNC_B,4,2                    ## @VSYNC_B
	.comm	_DSPASIZE,4,2                   ## @DSPASIZE
	.comm	_DSPBSIZE,4,2                   ## @DSPBSIZE
	.comm	_DSPAPOS,4,2                    ## @DSPAPOS
	.comm	_DSPBPOS,4,2                    ## @DSPBPOS
	.comm	_PIPEASRC,4,2                   ## @PIPEASRC
	.comm	_PIPEBSRC,4,2                   ## @PIPEBSRC
	.comm	_PIPEACONF,4,2                  ## @PIPEACONF
	.comm	_PIPEBCONF,4,2                  ## @PIPEBCONF
	.comm	_DSPBCNTR,4,2                   ## @DSPBCNTR
	.comm	_VGACNTRL,4,2                   ## @VGACNTRL
	.comm	_VGA_DISP_DISABLE,4,2           ## @VGA_DISP_DISABLE
	.comm	_DPLL_CTRL,4,2                  ## @DPLL_CTRL
	.comm	_DPLL_PWRDN,4,2                 ## @DPLL_PWRDN
	.comm	_DPLL_RESET,4,2                 ## @DPLL_RESET
	.comm	_DPLL_DIV_CTRL,4,2              ## @DPLL_DIV_CTRL
	.comm	_DPLL_STATUS,4,2                ## @DPLL_STATUS
	.comm	_DPLL_PDIV_MASK,4,2             ## @DPLL_PDIV_MASK
	.comm	_DPLL_ADJUST,4,2                ## @DPLL_ADJUST
	.comm	_DPLL_PDIV_SHIFT,4,2            ## @DPLL_PDIV_SHIFT
	.comm	_DPLL_ENSTAT,4,2                ## @DPLL_ENSTAT
	.comm	_DPLL_DITHEN,4,2                ## @DPLL_DITHEN
	.comm	_DPLL_UPDATE,4,2                ## @DPLL_UPDATE
	.comm	_DPLL_CLK_ENABLE,4,2            ## @DPLL_CLK_ENABLE
	.comm	_PCH_HTOTAL_B,4,2               ## @PCH_HTOTAL_B
	.comm	_PCH_HBLANK_B,4,2               ## @PCH_HBLANK_B
	.comm	_PCH_HSYNC_B,4,2                ## @PCH_HSYNC_B
	.comm	_PCH_VTOTAL_B,4,2               ## @PCH_VTOTAL_B
	.comm	_PCH_VBLANK_B,4,2               ## @PCH_VBLANK_B
	.comm	_PCH_VSYNC_B,4,2                ## @PCH_VSYNC_B
	.comm	_PCH_PIPEBSRC,4,2               ## @PCH_PIPEBSRC
	.comm	_HDMI_HBLANK_A,4,2              ## @HDMI_HBLANK_A
	.comm	_DISPPLANE_GAMMA_ENABLE,4,2     ## @DISPPLANE_GAMMA_ENABLE
	.comm	_DISPPLANE_SEL_PIPE_B,4,2       ## @DISPPLANE_SEL_PIPE_B
	.comm	_DISPLAY_PLANE_ENABLE,4,2       ## @DISPLAY_PLANE_ENABLE
	.comm	_PIPEACONF_ENABLE,4,2           ## @PIPEACONF_ENABLE
	.comm	_PCH_PIPEBCONF,4,2              ## @PCH_PIPEBCONF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oaktrail_crtc_hdmi_mode_set    ; -- Begin function oaktrail_crtc_hdmi_mode_set
	.p2align	2
_oaktrail_crtc_hdmi_mode_set:           ; @oaktrail_crtc_hdmi_mode_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x27, x4
	str	w3, [sp, #60]                   ; 4-byte Folded Spill
	mov	x28, x2
	mov	x26, x1
	mov	x25, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _HTOTAL_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTOTAL_B@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _HBLANK_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HBLANK_B@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _HSYNC_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HSYNC_B@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x8, _VTOTAL_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VTOTAL_B@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
Lloh12:
	adrp	x8, _VBLANK_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VBLANK_B@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
Lloh15:
	adrp	x8, _VSYNC_B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VSYNC_B@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
Lloh18:
	adrp	x8, _DSPBSIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DSPBSIZE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
Lloh21:
	adrp	x8, _DSPBPOS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DSPBPOS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
Lloh24:
	adrp	x8, _PIPEBSRC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PIPEBSRC@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
Lloh27:
	adrp	x8, _PIPEBCONF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PIPEBCONF@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
Lloh30:
	adrp	x8, _DSPBCNTR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DSPBCNTR@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_gma_power_begin
	cbz	w0, LBB0_4
; %bb.1:
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	stp	w21, w20, [sp, #24]             ; 8-byte Folded Spill
Lloh33:
	adrp	x8, _VGACNTRL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VGACNTRL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _VGA_DISP_DISABLE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VGA_DISP_DISABLE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_REG_WRITE
Lloh39:
	adrp	x27, _DPLL_CTRL@GOTPAGE
Lloh40:
	ldr	x27, [x27, _DPLL_CTRL@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_REG_READ
Lloh41:
	adrp	x20, _DPLL_PWRDN@GOTPAGE
Lloh42:
	ldr	x20, [x20, _DPLL_PWRDN@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh43:
	adrp	x21, _DPLL_RESET@GOTPAGE
Lloh44:
	ldr	x21, [x21, _DPLL_RESET@GOTPAGEOFF]
Lloh45:
	adrp	x22, _DPLL_DIV_CTRL@GOTPAGE
Lloh46:
	ldr	x22, [x22, _DPLL_DIV_CTRL@GOTPAGEOFF]
	tst	w9, w0
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x27]
	ldr	w10, [x21]
	orr	w9, w9, w0
	orr	w1, w9, w10
	mov	x0, x8
	bl	_REG_WRITE
	ldr	w0, [x22]
	mov	w1, #0
	bl	_REG_WRITE
Lloh47:
	adrp	x8, _DPLL_STATUS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DPLL_STATUS@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_REG_WRITE
LBB0_3:
	mov	w0, #150
	bl	_udelay
	mov	x0, x19
	bl	_oaktrail_hdmi_reset
	ldr	w1, [x28, #56]
	add	x3, sp, #64
	mov	x0, x25
	mov	w2, #25000
	bl	_oaktrail_hdmi_find_dpll
	ldr	w0, [x27]
	bl	_REG_READ
Lloh50:
	adrp	x8, _DPLL_PDIV_MASK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _DPLL_PDIV_MASK@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w8, w9, w8
	orr	w8, w8, w10
	bic	w20, w0, w8
	ldr	w0, [x27]
	mov	w1, #8
	bl	_REG_WRITE
	ldr	w0, [x22]
	ldp	w8, w9, [sp, #64]
	orr	w1, w9, w8, lsl #6
	bl	_REG_WRITE
Lloh53:
	adrp	x8, _DPLL_ADJUST@GOTPAGE
Lloh54:
	ldr	x8, [x8, _DPLL_ADJUST@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	ldr	w8, [sp, #64]
	asr	w8, w8, #14
	sub	w1, w8, #1
	bl	_REG_WRITE
	ldr	w0, [x27]
Lloh56:
	adrp	x8, _DPLL_PDIV_SHIFT@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DPLL_PDIV_SHIFT@GOTPAGEOFF]
	ldr	w9, [sp, #72]
Lloh58:
	ldr	w8, [x8]
	lsl	w8, w9, w8
	orr	w8, w8, w20
Lloh59:
	adrp	x9, _DPLL_ENSTAT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _DPLL_ENSTAT@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh62:
	adrp	x9, _DPLL_DITHEN@GOTPAGE
Lloh63:
	ldr	x9, [x9, _DPLL_DITHEN@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_REG_WRITE
Lloh65:
	adrp	x8, _DPLL_UPDATE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _DPLL_UPDATE@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	mov	w1, #-2147483648
	bl	_REG_WRITE
Lloh68:
	adrp	x8, _DPLL_CLK_ENABLE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _DPLL_CLK_ENABLE@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	mov	w1, #258
	movk	w1, #32773, lsl #16
	bl	_REG_WRITE
	mov	w0, #150
	bl	_udelay
	mov	w0, #4100
	mov	w1, #509
	bl	_HDMI_WRITE
	mov	w0, #8192
	mov	w1, #1
	bl	_HDMI_WRITE
	mov	w0, #8200
	mov	w1, #0
	bl	_HDMI_WRITE
	mov	w0, #12592
	mov	w1, #8
	bl	_HDMI_WRITE
	mov	w0, #4124
	mov	w1, #2064
	movk	w1, #384, lsl #16
	bl	_HDMI_WRITE
	mov	x0, x28
	bl	_htotal_calculate
	mov	x1, x0
	mov	x0, x24
	bl	_REG_WRITE
	ldp	w8, w9, [x28]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	mov	x0, x23
	bl	_REG_WRITE
	ldp	w8, w9, [x28, #8]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	ldr	w0, [sp, #32]                   ; 4-byte Folded Reload
	bl	_REG_WRITE
	ldp	w8, w9, [x28, #16]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	bl	_REG_WRITE
	ldp	w8, w9, [x28, #24]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	ldr	w0, [sp, #40]                   ; 4-byte Folded Reload
	bl	_REG_WRITE
	ldp	w8, w9, [x28, #32]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	bl	_REG_WRITE
	ldr	w8, [x26, #40]
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	ldr	w9, [x26, #16]
	sub	w9, w9, #1
	orr	w1, w8, w9
	ldr	w0, [sp, #48]                   ; 4-byte Folded Reload
	bl	_REG_WRITE
Lloh71:
	adrp	x8, _PCH_HTOTAL_B@GOTPAGE
Lloh72:
	ldr	x8, [x8, _PCH_HTOTAL_B@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	ldp	w8, w9, [x28, #40]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_REG_WRITE
Lloh74:
	adrp	x8, _PCH_HBLANK_B@GOTPAGE
Lloh75:
	ldr	x8, [x8, _PCH_HBLANK_B@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	ldp	w8, w9, [x28]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_REG_WRITE
Lloh77:
	adrp	x8, _PCH_HSYNC_B@GOTPAGE
Lloh78:
	ldr	x8, [x8, _PCH_HSYNC_B@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
	ldp	w8, w9, [x28, #8]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_REG_WRITE
Lloh80:
	adrp	x8, _PCH_VTOTAL_B@GOTPAGE
Lloh81:
	ldr	x8, [x8, _PCH_VTOTAL_B@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	ldp	w8, w9, [x28, #16]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_REG_WRITE
Lloh83:
	adrp	x8, _PCH_VBLANK_B@GOTPAGE
Lloh84:
	ldr	x8, [x8, _PCH_VBLANK_B@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	ldp	w8, w9, [x28, #24]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_REG_WRITE
Lloh86:
	adrp	x8, _PCH_VSYNC_B@GOTPAGE
Lloh87:
	ldr	x8, [x8, _PCH_VSYNC_B@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	ldp	w8, w9, [x28, #32]
	sub	w8, w8, #1
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
	bl	_REG_WRITE
Lloh89:
	adrp	x8, _PCH_PIPEBSRC@GOTPAGE
Lloh90:
	ldr	x8, [x8, _PCH_PIPEBSRC@GOTPAGEOFF]
Lloh91:
	ldr	w0, [x8]
	ldr	w8, [x26, #40]
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	ldr	w9, [x26, #16]
	sub	w9, w9, #1
	orr	w1, w8, w9
	bl	_REG_WRITE
	ldp	w9, w8, [x28]
Lloh92:
	adrp	x10, _HDMI_HBLANK_A@GOTPAGE
Lloh93:
	ldr	x10, [x10, _HDMI_HBLANK_A@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x10]
	ldr	w10, [x28, #40]
	lsl	w10, w10, #16
	sub	w10, w10, #16, lsl #12          ; =65536
	sub	w8, w8, w9
	orr	w1, w10, w8
	bl	_HDMI_WRITE
	ldp	w8, w9, [x26, #48]
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	sub	w9, w9, #1
	orr	w1, w8, w9
	ldr	w0, [sp, #52]                   ; 4-byte Folded Reload
	bl	_REG_WRITE
	ldr	w0, [sp, #56]                   ; 4-byte Folded Reload
	mov	w1, #0
	bl	_REG_WRITE
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x25
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	ldr	x3, [sp, #16]                   ; 8-byte Folded Reload
	blr	x8
	ldr	w23, [sp, #28]                  ; 4-byte Folded Reload
	mov	x0, x23
	bl	_REG_READ
Lloh95:
	adrp	x8, _DISPPLANE_GAMMA_ENABLE@GOTPAGE
Lloh96:
	ldr	x8, [x8, _DISPPLANE_GAMMA_ENABLE@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh98:
	adrp	x9, _DISPPLANE_SEL_PIPE_B@GOTPAGE
Lloh99:
	ldr	x9, [x9, _DISPPLANE_SEL_PIPE_B@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh101:
	adrp	x9, _DISPLAY_PLANE_ENABLE@GOTPAGE
Lloh102:
	ldr	x9, [x9, _DISPLAY_PLANE_ENABLE@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w21, [sp, #24]                  ; 4-byte Folded Reload
	mov	x0, x21
	bl	_REG_READ
Lloh104:
	adrp	x8, _PIPEACONF_ENABLE@GOTPAGE
Lloh105:
	ldr	x8, [x8, _PIPEACONF_ENABLE@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	orr	w22, w8, w0
	mov	x0, x21
	mov	x1, x22
	bl	_REG_WRITE
	mov	x0, x21
	bl	_REG_READ
Lloh107:
	adrp	x21, _PCH_PIPEBCONF@GOTPAGE
Lloh108:
	ldr	x21, [x21, _PCH_PIPEBCONF@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x22
	bl	_REG_WRITE
	ldr	w0, [x21]
	bl	_REG_READ
	mov	x0, x19
	bl	_gma_wait_for_vblank
	mov	x0, x23
	mov	x1, x20
	bl	_REG_WRITE
	mov	x0, x19
	bl	_gma_wait_for_vblank
	mov	x0, x19
	bl	_gma_power_end
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_HTOTAL_A,4,2                   ; @HTOTAL_A
	.comm	_HTOTAL_B,4,2                   ; @HTOTAL_B
	.comm	_HBLANK_A,4,2                   ; @HBLANK_A
	.comm	_HBLANK_B,4,2                   ; @HBLANK_B
	.comm	_HSYNC_A,4,2                    ; @HSYNC_A
	.comm	_HSYNC_B,4,2                    ; @HSYNC_B
	.comm	_VTOTAL_A,4,2                   ; @VTOTAL_A
	.comm	_VTOTAL_B,4,2                   ; @VTOTAL_B
	.comm	_VBLANK_A,4,2                   ; @VBLANK_A
	.comm	_VBLANK_B,4,2                   ; @VBLANK_B
	.comm	_VSYNC_A,4,2                    ; @VSYNC_A
	.comm	_VSYNC_B,4,2                    ; @VSYNC_B
	.comm	_DSPASIZE,4,2                   ; @DSPASIZE
	.comm	_DSPBSIZE,4,2                   ; @DSPBSIZE
	.comm	_DSPAPOS,4,2                    ; @DSPAPOS
	.comm	_DSPBPOS,4,2                    ; @DSPBPOS
	.comm	_PIPEASRC,4,2                   ; @PIPEASRC
	.comm	_PIPEBSRC,4,2                   ; @PIPEBSRC
	.comm	_PIPEACONF,4,2                  ; @PIPEACONF
	.comm	_PIPEBCONF,4,2                  ; @PIPEBCONF
	.comm	_DSPBCNTR,4,2                   ; @DSPBCNTR
	.comm	_VGACNTRL,4,2                   ; @VGACNTRL
	.comm	_VGA_DISP_DISABLE,4,2           ; @VGA_DISP_DISABLE
	.comm	_DPLL_CTRL,4,2                  ; @DPLL_CTRL
	.comm	_DPLL_PWRDN,4,2                 ; @DPLL_PWRDN
	.comm	_DPLL_RESET,4,2                 ; @DPLL_RESET
	.comm	_DPLL_DIV_CTRL,4,2              ; @DPLL_DIV_CTRL
	.comm	_DPLL_STATUS,4,2                ; @DPLL_STATUS
	.comm	_DPLL_PDIV_MASK,4,2             ; @DPLL_PDIV_MASK
	.comm	_DPLL_ADJUST,4,2                ; @DPLL_ADJUST
	.comm	_DPLL_PDIV_SHIFT,4,2            ; @DPLL_PDIV_SHIFT
	.comm	_DPLL_ENSTAT,4,2                ; @DPLL_ENSTAT
	.comm	_DPLL_DITHEN,4,2                ; @DPLL_DITHEN
	.comm	_DPLL_UPDATE,4,2                ; @DPLL_UPDATE
	.comm	_DPLL_CLK_ENABLE,4,2            ; @DPLL_CLK_ENABLE
	.comm	_PCH_HTOTAL_B,4,2               ; @PCH_HTOTAL_B
	.comm	_PCH_HBLANK_B,4,2               ; @PCH_HBLANK_B
	.comm	_PCH_HSYNC_B,4,2                ; @PCH_HSYNC_B
	.comm	_PCH_VTOTAL_B,4,2               ; @PCH_VTOTAL_B
	.comm	_PCH_VBLANK_B,4,2               ; @PCH_VBLANK_B
	.comm	_PCH_VSYNC_B,4,2                ; @PCH_VSYNC_B
	.comm	_PCH_PIPEBSRC,4,2               ; @PCH_PIPEBSRC
	.comm	_HDMI_HBLANK_A,4,2              ; @HDMI_HBLANK_A
	.comm	_DISPPLANE_GAMMA_ENABLE,4,2     ; @DISPPLANE_GAMMA_ENABLE
	.comm	_DISPPLANE_SEL_PIPE_B,4,2       ; @DISPPLANE_SEL_PIPE_B
	.comm	_DISPLAY_PLANE_ENABLE,4,2       ; @DISPLAY_PLANE_ENABLE
	.comm	_PIPEACONF_ENABLE,4,2           ; @PIPEACONF_ENABLE
	.comm	_PCH_PIPEBCONF,4,2              ; @PCH_PIPEBCONF
.subsections_via_symbols
