	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ch7017_dpms
_ch7017_dpms:                           ## @ch7017_dpms
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_CH7017_LVDS_POWER_DOWN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_ch7017_read
	movq	_CH7017_DAC0_POWER_DOWN@GOTPCREL(%rip), %rax
	movq	_CH7017_DAC1_POWER_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_CH7017_DAC2_POWER_DOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_CH7017_POWER_MANAGEMENT@GOTPCREL(%rip), %rax
	movq	_CH7017_DAC3_POWER_DOWN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_CH7017_TV_POWER_DOWN_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ch7017_write
	movl	-28(%rbp), %eax
	movq	_CH7017_LVDS_POWER_DOWN_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%edx
	andl	%eax, %edx
	testl	%r14d, %r14d
	movl	(%r15), %esi
	cmovel	%ecx, %edx
	movq	%rbx, %rdi
	callq	_ch7017_write
	movl	$20, %edi
	callq	_msleep
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CH7017_LVDS_POWER_DOWN,4,2     ## @CH7017_LVDS_POWER_DOWN
	.comm	_CH7017_POWER_MANAGEMENT,4,2    ## @CH7017_POWER_MANAGEMENT
	.comm	_CH7017_DAC0_POWER_DOWN,4,2     ## @CH7017_DAC0_POWER_DOWN
	.comm	_CH7017_DAC1_POWER_DOWN,4,2     ## @CH7017_DAC1_POWER_DOWN
	.comm	_CH7017_DAC2_POWER_DOWN,4,2     ## @CH7017_DAC2_POWER_DOWN
	.comm	_CH7017_DAC3_POWER_DOWN,4,2     ## @CH7017_DAC3_POWER_DOWN
	.comm	_CH7017_TV_POWER_DOWN_EN,4,2    ## @CH7017_TV_POWER_DOWN_EN
	.comm	_CH7017_LVDS_POWER_DOWN_EN,4,2  ## @CH7017_LVDS_POWER_DOWN_EN
	.no_dead_strip	_ch7017_dpms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ch7017_dpms
_ch7017_dpms:                           ; @ch7017_dpms
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _CH7017_LVDS_POWER_DOWN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CH7017_LVDS_POWER_DOWN@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_ch7017_read
Lloh2:
	adrp	x8, _CH7017_POWER_MANAGEMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CH7017_POWER_MANAGEMENT@GOTPAGEOFF]
Lloh4:
	adrp	x9, _CH7017_DAC0_POWER_DOWN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CH7017_DAC0_POWER_DOWN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _CH7017_DAC1_POWER_DOWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CH7017_DAC1_POWER_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _CH7017_DAC2_POWER_DOWN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CH7017_DAC2_POWER_DOWN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _CH7017_DAC3_POWER_DOWN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CH7017_DAC3_POWER_DOWN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _CH7017_TV_POWER_DOWN_EN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CH7017_TV_POWER_DOWN_EN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_ch7017_write
	ldr	w1, [x21]
Lloh20:
	adrp	x8, _CH7017_LVDS_POWER_DOWN_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CH7017_LVDS_POWER_DOWN_EN@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh22:
	ldr	w8, [x8]
	orr	w10, w8, w9
	bic	w8, w9, w8
	cmp	w19, #0
	csel	w2, w10, w8, eq
	mov	x0, x20
	bl	_ch7017_write
	mov	w0, #20
	bl	_msleep
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CH7017_LVDS_POWER_DOWN,4,2     ; @CH7017_LVDS_POWER_DOWN
	.comm	_CH7017_POWER_MANAGEMENT,4,2    ; @CH7017_POWER_MANAGEMENT
	.comm	_CH7017_DAC0_POWER_DOWN,4,2     ; @CH7017_DAC0_POWER_DOWN
	.comm	_CH7017_DAC1_POWER_DOWN,4,2     ; @CH7017_DAC1_POWER_DOWN
	.comm	_CH7017_DAC2_POWER_DOWN,4,2     ; @CH7017_DAC2_POWER_DOWN
	.comm	_CH7017_DAC3_POWER_DOWN,4,2     ; @CH7017_DAC3_POWER_DOWN
	.comm	_CH7017_TV_POWER_DOWN_EN,4,2    ; @CH7017_TV_POWER_DOWN_EN
	.comm	_CH7017_LVDS_POWER_DOWN_EN,4,2  ; @CH7017_LVDS_POWER_DOWN_EN
	.no_dead_strip	_ch7017_dpms
.subsections_via_symbols
