	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ch7006_encoder_mode_set
_ch7006_encoder_mode_set:               ## @ch7006_encoder_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_drm_i2c_encoder_get_client
	movq	%rax, %r13
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_ch7006_priv
	movq	%rax, %r15
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rax), %r14
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rbx
	movq	_ch7006_tv_norms@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ch7006_dbg
	movl	(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	(%r12,%rcx,4), %eax
	movq	_CH7006_DISPMODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movq	_CH7006_BWIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r14,%rax,4)
	movq	_CH7006_INPUT_FORMAT_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r15), %esi
	callq	_bitf
	movq	_CH7006_INPUT_FORMAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movq	_CH7006_CLKMODE_SUBC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_CH7006_CLKMODE_XCM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	36(%r15), %esi
	callq	_bitf
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_CH7006_CLKMODE_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r15), %esi
	callq	_bitf
	orl	%ebx, %eax
	movq	_CH7006_CLKMODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	cmpq	$0, 88(%r15)
	je	LBB0_2
## %bb.1:
	movq	_CH7006_CLKMODE_MASTER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%r14,%rcx,4)
LBB0_2:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpq	$0, 80(%r12)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	_CH7006_CLKMODE_POS_EDGE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%r14,%rcx,4)
LBB0_4:
	movl	(%r13), %ebx
	movl	4(%r13), %eax
	andl	$-8, %ebx
	andl	$-8, %eax
	subl	%eax, %ebx
	movq	_CH7006_POV_START_ACTIVE_8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_bitf
	movq	_CH7006_POV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movq	_CH7006_START_ACTIVE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_bitf
	movq	_CH7006_START_ACTIVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r14,%rcx,4)
	movq	_CH7006_INPUT_SYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r14,%rax,4)
	cmpq	$0, 72(%r12)
	je	LBB0_5
## %bb.6:
	movq	_CH7006_INPUT_SYNC_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14,%rax,4)
	cmpq	$0, 64(%r12)
	je	LBB0_9
LBB0_8:
	movq	_CH7006_INPUT_SYNC_EMBEDDED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14,%rax,4)
LBB0_9:
	movl	8(%r13), %edx
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_11
## %bb.10:
	movq	_CH7006_INPUT_SYNC_PVSYNC@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14,%rax,4)
	movl	8(%r13), %edx
LBB0_11:
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_13
## %bb.12:
	movq	_CH7006_INPUT_SYNC_PHSYNC@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14,%rax,4)
LBB0_13:
	movq	_CH7006_DETECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r14,%rax,4)
	movq	_CH7006_BCLKOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r14,%rax,4)
	movq	_CH7006_SUBC_INC3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r14,%rax,4)
	cmpq	$0, 56(%r12)
	je	LBB0_15
## %bb.14:
	movq	_CH7006_SUBC_INC3_POUT_3_3V@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14,%rax,4)
LBB0_15:
	addq	$24, %r15
	movq	_CH7006_SUBC_INC4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r14,%rax,4)
	cmpq	$0, 48(%r12)
	je	LBB0_17
## %bb.16:
	movq	_CH7006_SUBC_INC4_DS_INPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14,%rax,4)
LBB0_17:
	movq	8(%r12), %rax
	movq	_CH7006_PLL_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r14,%rcx,4)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ch7006_setup_levels
	movq	%rbx, %rdi
	callq	_ch7006_setup_subcarrier
	movq	%rbx, %rdi
	callq	_ch7006_setup_pll
	movq	%rbx, %rdi
	callq	_ch7006_setup_power_state
	movq	%rbx, %rdi
	callq	_ch7006_setup_properties
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ch7006_state_load              ## TAILCALL
LBB0_5:
	xorl	%ecx, %ecx
	cmpq	$0, 64(%r12)
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ch7006_tv_norms,8,3            ## @ch7006_tv_norms
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_CH7006_DISPMODE,8,3            ## @CH7006_DISPMODE
	.comm	_CH7006_BWIDTH,8,3              ## @CH7006_BWIDTH
	.comm	_CH7006_INPUT_FORMAT_FORMAT,4,2 ## @CH7006_INPUT_FORMAT_FORMAT
	.comm	_CH7006_INPUT_FORMAT,8,3        ## @CH7006_INPUT_FORMAT
	.comm	_CH7006_CLKMODE_SUBC_LOCK,4,2   ## @CH7006_CLKMODE_SUBC_LOCK
	.comm	_CH7006_CLKMODE_XCM,4,2         ## @CH7006_CLKMODE_XCM
	.comm	_CH7006_CLKMODE_PCM,4,2         ## @CH7006_CLKMODE_PCM
	.comm	_CH7006_CLKMODE,8,3             ## @CH7006_CLKMODE
	.comm	_CH7006_CLKMODE_MASTER,4,2      ## @CH7006_CLKMODE_MASTER
	.comm	_CH7006_CLKMODE_POS_EDGE,4,2    ## @CH7006_CLKMODE_POS_EDGE
	.comm	_CH7006_POV_START_ACTIVE_8,4,2  ## @CH7006_POV_START_ACTIVE_8
	.comm	_CH7006_POV,8,3                 ## @CH7006_POV
	.comm	_CH7006_START_ACTIVE_0,4,2      ## @CH7006_START_ACTIVE_0
	.comm	_CH7006_START_ACTIVE,8,3        ## @CH7006_START_ACTIVE
	.comm	_CH7006_INPUT_SYNC,8,3          ## @CH7006_INPUT_SYNC
	.comm	_CH7006_INPUT_SYNC_OUTPUT,4,2   ## @CH7006_INPUT_SYNC_OUTPUT
	.comm	_CH7006_INPUT_SYNC_EMBEDDED,4,2 ## @CH7006_INPUT_SYNC_EMBEDDED
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_CH7006_INPUT_SYNC_PVSYNC,4,2   ## @CH7006_INPUT_SYNC_PVSYNC
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_CH7006_INPUT_SYNC_PHSYNC,4,2   ## @CH7006_INPUT_SYNC_PHSYNC
	.comm	_CH7006_DETECT,8,3              ## @CH7006_DETECT
	.comm	_CH7006_BCLKOUT,8,3             ## @CH7006_BCLKOUT
	.comm	_CH7006_SUBC_INC3,8,3           ## @CH7006_SUBC_INC3
	.comm	_CH7006_SUBC_INC3_POUT_3_3V,4,2 ## @CH7006_SUBC_INC3_POUT_3_3V
	.comm	_CH7006_SUBC_INC4,8,3           ## @CH7006_SUBC_INC4
	.comm	_CH7006_SUBC_INC4_DS_INPUT,4,2  ## @CH7006_SUBC_INC4_DS_INPUT
	.comm	_CH7006_PLL_CONTROL,8,3         ## @CH7006_PLL_CONTROL
	.no_dead_strip	_ch7006_encoder_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ch7006_encoder_mode_set
_ch7006_encoder_mode_set:               ; @ch7006_encoder_mode_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x1
	mov	x19, x0
	bl	_drm_i2c_encoder_get_client
	mov	x20, x0
	mov	x0, x19
	bl	_to_ch7006_priv
	mov	x22, x0
	mov	x21, x0
	ldr	x25, [x21, #24]!
	ldr	x24, [x0, #16]
Lloh0:
	adrp	x8, _ch7006_tv_norms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ch7006_tv_norms@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	ldr	x27, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ch7006_dbg
	ldr	w8, [x26, x27, lsl #2]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _CH7006_DISPMODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CH7006_DISPMODE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	w8, [x25, x9, lsl #2]
Lloh8:
	adrp	x8, _CH7006_BWIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CH7006_BWIDTH@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	wzr, [x25, x8, lsl #2]
Lloh11:
	adrp	x8, _CH7006_INPUT_FORMAT_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CH7006_INPUT_FORMAT_FORMAT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x22, #32]
	bl	_bitf
Lloh14:
	adrp	x8, _CH7006_INPUT_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CH7006_INPUT_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	w0, [x25, x8, lsl #2]
Lloh17:
	adrp	x8, _CH7006_CLKMODE_SUBC_LOCK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CH7006_CLKMODE_SUBC_LOCK@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
Lloh20:
	adrp	x8, _CH7006_CLKMODE_XCM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CH7006_CLKMODE_XCM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x22, #36]
	bl	_bitf
	orr	w24, w0, w24
Lloh23:
	adrp	x8, _CH7006_CLKMODE_PCM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CH7006_CLKMODE_PCM@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w1, [x22, #40]
	bl	_bitf
	orr	w8, w24, w0
Lloh26:
	adrp	x9, _CH7006_CLKMODE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CH7006_CLKMODE@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	w8, [x25, x9, lsl #2]
	ldr	x10, [x22, #88]
	cbz	x10, LBB0_2
; %bb.1:
Lloh29:
	adrp	x10, _CH7006_CLKMODE_MASTER@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CH7006_CLKMODE_MASTER@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x25, x9, lsl #2]
LBB0_2:
	ldr	x10, [x22, #80]
	cbz	x10, LBB0_4
; %bb.3:
Lloh32:
	adrp	x10, _CH7006_CLKMODE_POS_EDGE@GOTPAGE
Lloh33:
	ldr	x10, [x10, _CH7006_CLKMODE_POS_EDGE@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x25, x9, lsl #2]
LBB0_4:
	ldp	w8, w9, [x23]
	and	w8, w8, #0xfffffff8
	and	w9, w9, #0xfffffff8
	sub	w24, w8, w9
Lloh35:
	adrp	x8, _CH7006_POV_START_ACTIVE_8@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CH7006_POV_START_ACTIVE_8@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_bitf
Lloh38:
	adrp	x8, _CH7006_POV@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CH7006_POV@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	w0, [x25, x8, lsl #2]
Lloh41:
	adrp	x8, _CH7006_START_ACTIVE_0@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CH7006_START_ACTIVE_0@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_bitf
Lloh44:
	adrp	x8, _CH7006_START_ACTIVE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CH7006_START_ACTIVE@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	str	w0, [x25, x8, lsl #2]
Lloh47:
	adrp	x8, _CH7006_INPUT_SYNC@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CH7006_INPUT_SYNC@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	str	wzr, [x25, x8, lsl #2]
	ldr	x9, [x22, #72]
	cbz	x9, LBB0_6
; %bb.5:
Lloh50:
	adrp	x9, _CH7006_INPUT_SYNC_OUTPUT@GOTPAGE
Lloh51:
	ldr	x9, [x9, _CH7006_INPUT_SYNC_OUTPUT@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	str	w9, [x25, x8, lsl #2]
LBB0_6:
	ldr	x10, [x22, #64]
	cbz	x10, LBB0_8
; %bb.7:
Lloh53:
	adrp	x10, _CH7006_INPUT_SYNC_EMBEDDED@GOTPAGE
Lloh54:
	ldr	x10, [x10, _CH7006_INPUT_SYNC_EMBEDDED@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x25, x8, lsl #2]
LBB0_8:
	ldr	w10, [x23, #8]
Lloh56:
	adrp	x11, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh57:
	ldr	x11, [x11, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh58:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_10
; %bb.9:
Lloh59:
	adrp	x10, _CH7006_INPUT_SYNC_PVSYNC@GOTPAGE
Lloh60:
	ldr	x10, [x10, _CH7006_INPUT_SYNC_PVSYNC@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x25, x8, lsl #2]
	ldr	w10, [x23, #8]
LBB0_10:
Lloh62:
	adrp	x11, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh63:
	ldr	x11, [x11, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh64:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_12
; %bb.11:
Lloh65:
	adrp	x10, _CH7006_INPUT_SYNC_PHSYNC@GOTPAGE
Lloh66:
	ldr	x10, [x10, _CH7006_INPUT_SYNC_PHSYNC@GOTPAGEOFF]
Lloh67:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x25, x8, lsl #2]
LBB0_12:
Lloh68:
	adrp	x8, _CH7006_DETECT@GOTPAGE
Lloh69:
	ldr	x8, [x8, _CH7006_DETECT@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	str	wzr, [x25, x8, lsl #2]
Lloh71:
	adrp	x8, _CH7006_BCLKOUT@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CH7006_BCLKOUT@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	str	wzr, [x25, x8, lsl #2]
Lloh74:
	adrp	x8, _CH7006_SUBC_INC3@GOTPAGE
Lloh75:
	ldr	x8, [x8, _CH7006_SUBC_INC3@GOTPAGEOFF]
Lloh76:
	ldr	x8, [x8]
	str	wzr, [x25, x8, lsl #2]
	ldr	x9, [x22, #56]
	cbz	x9, LBB0_14
; %bb.13:
Lloh77:
	adrp	x9, _CH7006_SUBC_INC3_POUT_3_3V@GOTPAGE
Lloh78:
	ldr	x9, [x9, _CH7006_SUBC_INC3_POUT_3_3V@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	str	w9, [x25, x8, lsl #2]
LBB0_14:
Lloh80:
	adrp	x8, _CH7006_SUBC_INC4@GOTPAGE
Lloh81:
	ldr	x8, [x8, _CH7006_SUBC_INC4@GOTPAGEOFF]
Lloh82:
	ldr	x8, [x8]
	str	wzr, [x25, x8, lsl #2]
	ldr	x9, [x22, #48]
	cbz	x9, LBB0_16
; %bb.15:
Lloh83:
	adrp	x9, _CH7006_SUBC_INC4_DS_INPUT@GOTPAGE
Lloh84:
	ldr	x9, [x9, _CH7006_SUBC_INC4_DS_INPUT@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	str	w9, [x25, x8, lsl #2]
LBB0_16:
	ldr	x8, [x22, #8]
Lloh86:
	adrp	x9, _CH7006_PLL_CONTROL@GOTPAGE
Lloh87:
	ldr	x9, [x9, _CH7006_PLL_CONTROL@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w8, [x8, x9]
	str	w8, [x25, x9]
	mov	x0, x19
	bl	_ch7006_setup_levels
	mov	x0, x19
	bl	_ch7006_setup_subcarrier
	mov	x0, x19
	bl	_ch7006_setup_pll
	mov	x0, x19
	bl	_ch7006_setup_power_state
	mov	x0, x19
	bl	_ch7006_setup_properties
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ch7006_state_load
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_ch7006_tv_norms,8,3            ; @ch7006_tv_norms
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_CH7006_DISPMODE,8,3            ; @CH7006_DISPMODE
	.comm	_CH7006_BWIDTH,8,3              ; @CH7006_BWIDTH
	.comm	_CH7006_INPUT_FORMAT_FORMAT,4,2 ; @CH7006_INPUT_FORMAT_FORMAT
	.comm	_CH7006_INPUT_FORMAT,8,3        ; @CH7006_INPUT_FORMAT
	.comm	_CH7006_CLKMODE_SUBC_LOCK,4,2   ; @CH7006_CLKMODE_SUBC_LOCK
	.comm	_CH7006_CLKMODE_XCM,4,2         ; @CH7006_CLKMODE_XCM
	.comm	_CH7006_CLKMODE_PCM,4,2         ; @CH7006_CLKMODE_PCM
	.comm	_CH7006_CLKMODE,8,3             ; @CH7006_CLKMODE
	.comm	_CH7006_CLKMODE_MASTER,4,2      ; @CH7006_CLKMODE_MASTER
	.comm	_CH7006_CLKMODE_POS_EDGE,4,2    ; @CH7006_CLKMODE_POS_EDGE
	.comm	_CH7006_POV_START_ACTIVE_8,4,2  ; @CH7006_POV_START_ACTIVE_8
	.comm	_CH7006_POV,8,3                 ; @CH7006_POV
	.comm	_CH7006_START_ACTIVE_0,4,2      ; @CH7006_START_ACTIVE_0
	.comm	_CH7006_START_ACTIVE,8,3        ; @CH7006_START_ACTIVE
	.comm	_CH7006_INPUT_SYNC,8,3          ; @CH7006_INPUT_SYNC
	.comm	_CH7006_INPUT_SYNC_OUTPUT,4,2   ; @CH7006_INPUT_SYNC_OUTPUT
	.comm	_CH7006_INPUT_SYNC_EMBEDDED,4,2 ; @CH7006_INPUT_SYNC_EMBEDDED
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_CH7006_INPUT_SYNC_PVSYNC,4,2   ; @CH7006_INPUT_SYNC_PVSYNC
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_CH7006_INPUT_SYNC_PHSYNC,4,2   ; @CH7006_INPUT_SYNC_PHSYNC
	.comm	_CH7006_DETECT,8,3              ; @CH7006_DETECT
	.comm	_CH7006_BCLKOUT,8,3             ; @CH7006_BCLKOUT
	.comm	_CH7006_SUBC_INC3,8,3           ; @CH7006_SUBC_INC3
	.comm	_CH7006_SUBC_INC3_POUT_3_3V,4,2 ; @CH7006_SUBC_INC3_POUT_3_3V
	.comm	_CH7006_SUBC_INC4,8,3           ; @CH7006_SUBC_INC4
	.comm	_CH7006_SUBC_INC4_DS_INPUT,4,2  ; @CH7006_SUBC_INC4_DS_INPUT
	.comm	_CH7006_PLL_CONTROL,8,3         ; @CH7006_PLL_CONTROL
	.no_dead_strip	_ch7006_encoder_mode_set
.subsections_via_symbols
