	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ch7006_encoder_set_property
_ch7006_encoder_set_property:           ## @ch7006_encoder_set_property
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_drm_i2c_encoder_get_client
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_to_ch7006_priv
	movq	%rax, %r13
	addq	$72, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ch7006_dbg
	cmpq	%r14, 48(%r15)
	je	LBB0_9
## %bb.1:
	movq	%r13, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%r14, 40(%r15)
	je	LBB0_10
## %bb.2:
	cmpq	%r14, 32(%r15)
	movq	%rbx, %r13
	je	LBB0_11
## %bb.3:
	cmpq	%r14, 24(%r15)
	je	LBB0_13
## %bb.4:
	cmpq	%r14, 16(%r15)
	je	LBB0_18
## %bb.5:
	cmpq	%r14, 8(%r15)
	je	LBB0_19
## %bb.6:
	cmpq	%r14, (%r15)
	je	LBB0_20
## %bb.7:
	cmpq	%r14, 8(%rsi)
	jne	LBB0_17
## %bb.8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
	jmp	LBB0_17
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%r13)
	movq	%r12, %rdi
	callq	_ch7006_setup_power_state
	movq	_CH7006_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	jmp	LBB0_22
LBB0_10:
	movq	%rdx, 56(%rsi)
	movq	%r12, %rdi
	callq	_ch7006_setup_properties
	movq	_CH7006_POV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r14
	movq	%rbx, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ch7006_load_reg
	movq	_CH7006_HPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	jmp	LBB0_12
LBB0_11:
	movq	%rdx, 48(%rsi)
	movq	%r12, %rdi
	callq	_ch7006_setup_properties
	movq	_CH7006_POV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ch7006_load_reg
	movq	_CH7006_VPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
LBB0_12:
	movq	%rbx, %rsi
	jmp	LBB0_23
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.14:
	addq	$40, %rsi
LBB0_15:
	movq	%rdx, (%rsi)
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_drm_helper_probe_single_connector_modes
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_24
## %bb.16:
	movq	%rax, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_drm_mode_set_config_internal
	jmp	LBB0_24
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_18:
	movq	%rdx, 32(%rsi)
	movq	%r12, %rdi
	callq	_ch7006_setup_levels
	movq	_CH7006_BLACK_LEVEL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	%rdx, 24(%rsi)
	movq	%r12, %rdi
	callq	_ch7006_setup_properties
	movq	_CH7006_CONTRAST@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	%rdx, 16(%rsi)
	movq	%r12, %rdi
	callq	_ch7006_setup_properties
	movq	_CH7006_FFILTER@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %edx
	movq	%r13, %rdi
LBB0_22:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_23:
	callq	_ch7006_load_reg
	xorl	%ebx, %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_CH7006_POWER,4,2               ## @CH7006_POWER
	.comm	_CH7006_POV,4,2                 ## @CH7006_POV
	.comm	_CH7006_HPOS,4,2                ## @CH7006_HPOS
	.comm	_CH7006_VPOS,4,2                ## @CH7006_VPOS
	.comm	_DRM_MODE_DPMS_OFF,8,3          ## @DRM_MODE_DPMS_OFF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CH7006_BLACK_LEVEL,4,2         ## @CH7006_BLACK_LEVEL
	.comm	_CH7006_CONTRAST,4,2            ## @CH7006_CONTRAST
	.comm	_CH7006_FFILTER,4,2             ## @CH7006_FFILTER
	.no_dead_strip	_ch7006_encoder_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ch7006_encoder_set_property
_ch7006_encoder_set_property:           ; @ch7006_encoder_set_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x25, x2
	mov	x22, x1
	mov	x24, x0
	bl	_drm_i2c_encoder_get_client
	mov	x19, x0
	mov	x0, x24
	bl	_to_ch7006_priv
	mov	x23, x0
	add	x20, x0, #72
	ldp	x26, x27, [x24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ch7006_dbg
	ldr	x8, [x27, #48]
	cmp	x8, x25
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [x27, #40]
	cmp	x8, x25
	b.eq	LBB0_10
; %bb.2:
	ldr	x8, [x27, #32]
	cmp	x8, x25
	b.eq	LBB0_11
; %bb.3:
	ldr	x8, [x27, #24]
	cmp	x8, x25
	b.eq	LBB0_12
; %bb.4:
	ldr	x8, [x27, #16]
	cmp	x8, x25
	b.eq	LBB0_17
; %bb.5:
	ldr	x8, [x27, #8]
	cmp	x8, x25
	b.eq	LBB0_18
; %bb.6:
	ldr	x8, [x27]
	cmp	x8, x25
	b.eq	LBB0_19
; %bb.7:
	ldr	x8, [x23, #8]
	cmp	x8, x25
	b.ne	LBB0_16
; %bb.8:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
	b	LBB0_16
LBB0_9:
	str	x21, [x23, #64]
	mov	x0, x24
	bl	_ch7006_setup_power_state
Lloh5:
	adrp	x8, _CH7006_POWER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CH7006_POWER@GOTPAGEOFF]
	b	LBB0_20
LBB0_10:
	str	x21, [x23, #56]
	mov	x0, x24
	bl	_ch7006_setup_properties
Lloh7:
	adrp	x8, _CH7006_POV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CH7006_POV@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ch7006_load_reg
Lloh10:
	adrp	x8, _CH7006_HPOS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CH7006_HPOS@GOTPAGEOFF]
	b	LBB0_20
LBB0_11:
	str	x21, [x23, #48]
	mov	x0, x24
	bl	_ch7006_setup_properties
Lloh12:
	adrp	x8, _CH7006_POV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CH7006_POV@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ch7006_load_reg
Lloh15:
	adrp	x8, _CH7006_VPOS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CH7006_VPOS@GOTPAGEOFF]
	b	LBB0_20
LBB0_12:
	ldr	x8, [x22]
Lloh17:
	adrp	x9, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	add	x23, x23, #40
LBB0_14:
	str	x21, [x23]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	bl	_drm_helper_probe_single_connector_modes
	cbz	x26, LBB0_21
; %bb.15:
	str	x26, [sp, #8]
	add	x0, sp, #8
	bl	_drm_mode_set_config_internal
	b	LBB0_21
LBB0_16:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_17:
	str	x21, [x23, #32]
	mov	x0, x24
	bl	_ch7006_setup_levels
Lloh23:
	adrp	x8, _CH7006_BLACK_LEVEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CH7006_BLACK_LEVEL@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	str	x21, [x23, #24]
	mov	x0, x24
	bl	_ch7006_setup_properties
Lloh25:
	adrp	x8, _CH7006_CONTRAST@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CH7006_CONTRAST@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	str	x21, [x23, #16]
	mov	x0, x24
	bl	_ch7006_setup_properties
Lloh27:
	adrp	x8, _CH7006_FFILTER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CH7006_FFILTER@GOTPAGEOFF]
LBB0_20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ch7006_load_reg
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_CH7006_POWER,4,2               ; @CH7006_POWER
	.comm	_CH7006_POV,4,2                 ; @CH7006_POV
	.comm	_CH7006_HPOS,4,2                ; @CH7006_HPOS
	.comm	_CH7006_VPOS,4,2                ; @CH7006_VPOS
	.comm	_DRM_MODE_DPMS_OFF,8,3          ; @DRM_MODE_DPMS_OFF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CH7006_BLACK_LEVEL,4,2         ; @CH7006_BLACK_LEVEL
	.comm	_CH7006_CONTRAST,4,2            ; @CH7006_CONTRAST
	.comm	_CH7006_FFILTER,4,2             ; @CH7006_FFILTER
	.no_dead_strip	_ch7006_encoder_set_property
.subsections_via_symbols
