	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ch7006_setup_subcarrier        ## -- Begin function ch7006_setup_subcarrier
	.p2align	4, 0x90
_ch7006_setup_subcarrier:               ## @ch7006_setup_subcarrier
	.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
	movq	%rdi, %rbx
	callq	_drm_i2c_encoder_get_client
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_ch7006_priv
	leaq	16(%rax), %r15
	movq	_ch7006_tv_norms@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	movl	(%rax), %eax
	sarl	$8, %eax
	movsbl	3(%rcx,%rdx,4), %edi
	imull	%eax, %edi
	callq	_round_fixed
	movl	%eax, %ebx
	movq	_CH7006_SUBC_INC0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$28, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	movq	_CH7006_SUBC_INC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$24, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	movq	_CH7006_SUBC_INC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$20, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	movq	_CH7006_SUBC_INC3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$16, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	movq	_CH7006_SUBC_INC4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$12, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	movq	_CH7006_SUBC_INC5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$8, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	movq	_CH7006_SUBC_INC6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$4, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	movq	_CH7006_SUBC_INC7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ch7006_dbg                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ch7006_tv_norms,8,3            ## @ch7006_tv_norms
	.comm	_CH7006_SUBC_INC0,4,2           ## @CH7006_SUBC_INC0
	.comm	_CH7006_SUBC_INC1,4,2           ## @CH7006_SUBC_INC1
	.comm	_CH7006_SUBC_INC2,4,2           ## @CH7006_SUBC_INC2
	.comm	_CH7006_SUBC_INC3,4,2           ## @CH7006_SUBC_INC3
	.comm	_CH7006_SUBC_INC4,4,2           ## @CH7006_SUBC_INC4
	.comm	_CH7006_SUBC_INC5,4,2           ## @CH7006_SUBC_INC5
	.comm	_CH7006_SUBC_INC6,4,2           ## @CH7006_SUBC_INC6
	.comm	_CH7006_SUBC_INC7,4,2           ## @CH7006_SUBC_INC7
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subcarrier inc: %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ch7006_setup_subcarrier        ; -- Begin function ch7006_setup_subcarrier
	.p2align	2
_ch7006_setup_subcarrier:               ; @ch7006_setup_subcarrier
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	bl	_drm_i2c_encoder_get_client
	mov	x19, x0
	mov	x0, x20
	bl	_to_ch7006_priv
	add	x20, x0, #16
Lloh0:
	adrp	x8, _ch7006_tv_norms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ch7006_tv_norms@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x9, x10, [x0]
	ldr	w10, [x10]
	asr	w10, w10, #8
	add	x8, x8, x9, lsl #2
	ldrsb	w8, [x8, #3]
	mul	w0, w8, w10
	bl	_round_fixed
	mov	x21, x0
Lloh3:
	adrp	x8, _CH7006_SUBC_INC0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CH7006_SUBC_INC0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #28
	mov	x3, x21
	bl	_setbitf
Lloh6:
	adrp	x8, _CH7006_SUBC_INC1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CH7006_SUBC_INC1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #24
	mov	x3, x21
	bl	_setbitf
Lloh9:
	adrp	x8, _CH7006_SUBC_INC2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CH7006_SUBC_INC2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #20
	mov	x3, x21
	bl	_setbitf
Lloh12:
	adrp	x8, _CH7006_SUBC_INC3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CH7006_SUBC_INC3@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #16
	mov	x3, x21
	bl	_setbitf
Lloh15:
	adrp	x8, _CH7006_SUBC_INC4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CH7006_SUBC_INC4@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #12
	mov	x3, x21
	bl	_setbitf
Lloh18:
	adrp	x8, _CH7006_SUBC_INC5@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CH7006_SUBC_INC5@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #8
	mov	x3, x21
	bl	_setbitf
Lloh21:
	adrp	x8, _CH7006_SUBC_INC6@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CH7006_SUBC_INC6@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #4
	mov	x3, x21
	bl	_setbitf
Lloh24:
	adrp	x8, _CH7006_SUBC_INC7@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CH7006_SUBC_INC7@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x3, x21
	bl	_setbitf
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ch7006_dbg
	.loh AdrpAdd	Lloh27, Lloh28
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_ch7006_tv_norms,8,3            ; @ch7006_tv_norms
	.comm	_CH7006_SUBC_INC0,4,2           ; @CH7006_SUBC_INC0
	.comm	_CH7006_SUBC_INC1,4,2           ; @CH7006_SUBC_INC1
	.comm	_CH7006_SUBC_INC2,4,2           ; @CH7006_SUBC_INC2
	.comm	_CH7006_SUBC_INC3,4,2           ; @CH7006_SUBC_INC3
	.comm	_CH7006_SUBC_INC4,4,2           ; @CH7006_SUBC_INC4
	.comm	_CH7006_SUBC_INC5,4,2           ; @CH7006_SUBC_INC5
	.comm	_CH7006_SUBC_INC6,4,2           ; @CH7006_SUBC_INC6
	.comm	_CH7006_SUBC_INC7,4,2           ; @CH7006_SUBC_INC7
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subcarrier inc: %u\n"

.subsections_via_symbols
