	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_tcon_lvds_set_status
_sun4i_tcon_lvds_set_status:            ## @sun4i_tcon_lvds_set_status
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %eax
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	(%rdi), %edi
	movq	_SUN4I_TCON0_LVDS_IF_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SUN4I_TCON0_LVDS_IF_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%edx, %ecx
	callq	_regmap_update_bits
	movl	(%r13), %r15d
	movq	_SUN4I_TCON0_LVDS_ANA0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$2, %edi
	callq	_SUN6I_TCON0_LVDS_ANA0_C
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_SUN6I_TCON0_LVDS_ANA0_V
	orl	%eax, %ebx
	movl	$2, %edi
	callq	_SUN6I_TCON0_LVDS_ANA0_PD
	orl	%eax, %ebx
	movq	_SUN6I_TCON0_LVDS_ANA0_EN_LDO@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movl	$2, %edi
	callq	_udelay
	movl	(%r13), %edi
	movq	_SUN4I_TCON0_LVDS_ANA0_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SUN6I_TCON0_LVDS_ANA0_EN_MB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movl	$2, %edi
	callq	_udelay
	movl	(%r13), %edi
	movl	(%rbx), %esi
	movq	_SUN6I_TCON0_LVDS_ANA0_EN_DRVC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	%r14, %rdi
	callq	_sun4i_tcon_get_pixel_depth
	xorl	%ecx, %ecx
	cmpl	$18, %eax
	setne	%cl
	leal	7(,%rcx,8), %r12d
	movl	(%r13), %r14d
	movl	(%rbx), %r15d
	movl	$15, %edi
	callq	_SUN6I_TCON0_LVDS_ANA0_EN_DRVD
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_SUN6I_TCON0_LVDS_ANA0_EN_DRVD
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write_bits              ## TAILCALL
LBB0_2:
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN4I_TCON0_LVDS_IF_REG,4,2    ## @SUN4I_TCON0_LVDS_IF_REG
	.comm	_SUN4I_TCON0_LVDS_IF_EN,4,2     ## @SUN4I_TCON0_LVDS_IF_EN
	.comm	_SUN4I_TCON0_LVDS_ANA0_REG,4,2  ## @SUN4I_TCON0_LVDS_ANA0_REG
	.comm	_SUN6I_TCON0_LVDS_ANA0_EN_LDO,4,2 ## @SUN6I_TCON0_LVDS_ANA0_EN_LDO
	.comm	_SUN6I_TCON0_LVDS_ANA0_EN_MB,4,2 ## @SUN6I_TCON0_LVDS_ANA0_EN_MB
	.comm	_SUN6I_TCON0_LVDS_ANA0_EN_DRVC,4,2 ## @SUN6I_TCON0_LVDS_ANA0_EN_DRVC
	.no_dead_strip	_sun4i_tcon_lvds_set_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_tcon_lvds_set_status
_sun4i_tcon_lvds_set_status:            ; @sun4i_tcon_lvds_set_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x9, _SUN4I_TCON0_LVDS_IF_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUN4I_TCON0_LVDS_IF_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _SUN4I_TCON0_LVDS_IF_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUN4I_TCON0_LVDS_IF_EN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x3, x2
	bl	_regmap_update_bits
	ldr	w21, [x19]
Lloh6:
	adrp	x24, _SUN4I_TCON0_LVDS_ANA0_REG@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SUN4I_TCON0_LVDS_ANA0_REG@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	w0, #2
	bl	_SUN6I_TCON0_LVDS_ANA0_C
	mov	x23, x0
	mov	w0, #3
	bl	_SUN6I_TCON0_LVDS_ANA0_V
	orr	w23, w0, w23
	mov	w0, #2
	bl	_SUN6I_TCON0_LVDS_ANA0_PD
	orr	w8, w23, w0
Lloh8:
	adrp	x9, _SUN6I_TCON0_LVDS_ANA0_EN_LDO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SUN6I_TCON0_LVDS_ANA0_EN_LDO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x21
	mov	x1, x22
	bl	_regmap_write
	mov	w0, #2
	bl	_udelay
	ldr	w0, [x19]
	ldr	w1, [x24]
Lloh11:
	adrp	x8, _SUN6I_TCON0_LVDS_ANA0_EN_MB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUN6I_TCON0_LVDS_ANA0_EN_MB@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	w0, #2
	bl	_udelay
	ldr	w0, [x19]
	ldr	w1, [x24]
Lloh14:
	adrp	x8, _SUN6I_TCON0_LVDS_ANA0_EN_DRVC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUN6I_TCON0_LVDS_ANA0_EN_DRVC@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	x0, x20
	bl	_sun4i_tcon_get_pixel_depth
	mov	w8, #15
	mov	w9, #7
	cmp	w0, #18
	csel	w20, w9, w8, eq
	ldr	w19, [x19]
	ldr	w21, [x24]
	mov	w0, #15
	bl	_SUN6I_TCON0_LVDS_ANA0_EN_DRVD
	mov	x22, x0
	mov	x0, x20
	bl	_SUN6I_TCON0_LVDS_ANA0_EN_DRVD
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_regmap_write_bits
LBB0_2:
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN4I_TCON0_LVDS_IF_REG,4,2    ; @SUN4I_TCON0_LVDS_IF_REG
	.comm	_SUN4I_TCON0_LVDS_IF_EN,4,2     ; @SUN4I_TCON0_LVDS_IF_EN
	.comm	_SUN4I_TCON0_LVDS_ANA0_REG,4,2  ; @SUN4I_TCON0_LVDS_ANA0_REG
	.comm	_SUN6I_TCON0_LVDS_ANA0_EN_LDO,4,2 ; @SUN6I_TCON0_LVDS_ANA0_EN_LDO
	.comm	_SUN6I_TCON0_LVDS_ANA0_EN_MB,4,2 ; @SUN6I_TCON0_LVDS_ANA0_EN_MB
	.comm	_SUN6I_TCON0_LVDS_ANA0_EN_DRVC,4,2 ; @SUN6I_TCON0_LVDS_ANA0_EN_DRVC
	.no_dead_strip	_sun4i_tcon_lvds_set_status
.subsections_via_symbols
