	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_lvds_poweroff
_rockchip_lvds_poweroff:                ## @rockchip_lvds_poweroff
	.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	%rdi, %rbx
	movq	_RK3288_LVDS_CFG_REG21@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RK3288_LVDS_CFG_REG21_TX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lvds_writel
	movq	_RK3288_LVDS_CFG_REGC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RK3288_LVDS_CFG_REGC_PLL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_lvds_writel
	movq	_LVDS_DUAL@GOTPCREL(%rip), %rax
	movq	_LVDS_TTL_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_LVDS_CH0_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_LVDS_CH1_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_LVDS_PWRDN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, %edx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
LBB0_2:
	movl	4(%rbx), %edi
	callq	_pm_runtime_put
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_clk_disable                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RK3288_LVDS_CFG_REG21,4,2      ## @RK3288_LVDS_CFG_REG21
	.comm	_RK3288_LVDS_CFG_REG21_TX_ENABLE,4,2 ## @RK3288_LVDS_CFG_REG21_TX_ENABLE
	.comm	_RK3288_LVDS_CFG_REGC,4,2       ## @RK3288_LVDS_CFG_REGC
	.comm	_RK3288_LVDS_CFG_REGC_PLL_ENABLE,4,2 ## @RK3288_LVDS_CFG_REGC_PLL_ENABLE
	.comm	_LVDS_DUAL,4,2                  ## @LVDS_DUAL
	.comm	_LVDS_TTL_EN,4,2                ## @LVDS_TTL_EN
	.comm	_LVDS_CH0_EN,4,2                ## @LVDS_CH0_EN
	.comm	_LVDS_CH1_EN,4,2                ## @LVDS_CH1_EN
	.comm	_LVDS_PWRDN,4,2                 ## @LVDS_PWRDN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not write to GRF: %d\n"

	.no_dead_strip	_rockchip_lvds_poweroff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_lvds_poweroff
_rockchip_lvds_poweroff:                ; @rockchip_lvds_poweroff
	.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, x0
Lloh0:
	adrp	x8, _RK3288_LVDS_CFG_REG21@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RK3288_LVDS_CFG_REG21@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RK3288_LVDS_CFG_REG21_TX_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RK3288_LVDS_CFG_REG21_TX_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_lvds_writel
Lloh6:
	adrp	x8, _RK3288_LVDS_CFG_REGC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RK3288_LVDS_CFG_REGC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _RK3288_LVDS_CFG_REGC_PLL_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RK3288_LVDS_CFG_REGC_PLL_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lvds_writel
Lloh12:
	adrp	x8, _LVDS_DUAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LVDS_DUAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _LVDS_TTL_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LVDS_TTL_EN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _LVDS_CH0_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LVDS_CH0_EN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _LVDS_CH1_EN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LVDS_CH1_EN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _LVDS_PWRDN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LVDS_PWRDN@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w2, w8, w8, lsl #16
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_regmap_write
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19, #4]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_disable
	.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 AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RK3288_LVDS_CFG_REG21,4,2      ; @RK3288_LVDS_CFG_REG21
	.comm	_RK3288_LVDS_CFG_REG21_TX_ENABLE,4,2 ; @RK3288_LVDS_CFG_REG21_TX_ENABLE
	.comm	_RK3288_LVDS_CFG_REGC,4,2       ; @RK3288_LVDS_CFG_REGC
	.comm	_RK3288_LVDS_CFG_REGC_PLL_ENABLE,4,2 ; @RK3288_LVDS_CFG_REGC_PLL_ENABLE
	.comm	_LVDS_DUAL,4,2                  ; @LVDS_DUAL
	.comm	_LVDS_TTL_EN,4,2                ; @LVDS_TTL_EN
	.comm	_LVDS_CH0_EN,4,2                ; @LVDS_CH0_EN
	.comm	_LVDS_CH1_EN,4,2                ; @LVDS_CH1_EN
	.comm	_LVDS_PWRDN,4,2                 ; @LVDS_PWRDN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not write to GRF: %d\n"

	.no_dead_strip	_rockchip_lvds_poweroff
.subsections_via_symbols
