	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ch7006_setup_properties        ## -- Begin function ch7006_setup_properties
	.p2align	4, 0x90
_ch7006_setup_properties:               ## @ch7006_setup_properties
	.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	%rdi, %rbx
	callq	_drm_i2c_encoder_get_client
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_ch7006_priv
	leaq	32(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_ch7006_tv_norms@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movq	24(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rax), %r13
	movl	20(%rax), %ecx
	movq	%rax, %r12
	xorl	%edi, %edi
	movl	$2, %esi
	movl	$3, %edx
	callq	_interpolate
	movl	%eax, %ebx
	movq	_CH7006_FFILTER_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_bitf
	movl	%eax, %r14d
	movq	_CH7006_FFILTER_LUMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_bitf
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_CH7006_FFILTER_CHROMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_bitf
	orl	%ebx, %eax
	movq	_CH7006_FFILTER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r12), %ecx
	xorl	%edi, %edi
	movl	$5, %esi
	movl	$7, %edx
	callq	_interpolate
	movq	_CH7006_CONTRAST_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_bitf
	movq	_CH7006_CONTRAST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	%r15, %r12
	shlq	$4, %r12
	movq	_fixed1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r13d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	imull	(%r15,%r12), %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %esi
	movl	%r13d, %edi
	callq	_do_div
	movl	(%rbx), %ebx
	imull	(%r14), %ebx
	movl	4(%r14), %esi
	movl	%ebx, %edi
	callq	_do_div
	imull	4(%r15,%r12), %ebx
	movl	12(%r14), %eax
	imull	%r13d, %eax
	subl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imull	8(%rax), %ebx
	imull	8(%r14), %ebx
	movl	%ebx, %edi
	callq	_round_fixed
	cltd
	idivl	(%r15,%r12)
	cltq
	imulq	$1374389535, %rax, %r14         ## imm = 0x51EB851F
	movq	%r14, %rax
	shrq	$63, %rax
	shrq	$32, %r14
	sarl	$7, %r14d
	addl	%eax, %r14d
	movq	_CH7006_POV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HPOS_8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_setbitf
	movq	_CH7006_HPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_setbitf
	movl	8(%r15,%r12), %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	imull	16(%rax), %r13d
	movl	%r13d, %edi
	callq	_round_fixed
	subl	%eax, %ebx
	addl	12(%r15,%r12), %ebx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_max
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	imull	12(%rcx), %eax
	cltq
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	shrq	$32, %rbx
	sarl	$6, %ebx
	addl	%eax, %ebx
	movq	_CH7006_POV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VPOS_8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_setbitf
	movq	_CH7006_VPOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_setbitf
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%ebx, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_FFILTER_TEXT,4,2        ## @CH7006_FFILTER_TEXT
	.comm	_CH7006_FFILTER_LUMA,4,2        ## @CH7006_FFILTER_LUMA
	.comm	_CH7006_FFILTER_CHROMA,4,2      ## @CH7006_FFILTER_CHROMA
	.comm	_CH7006_FFILTER,8,3             ## @CH7006_FFILTER
	.comm	_CH7006_CONTRAST_0,4,2          ## @CH7006_CONTRAST_0
	.comm	_CH7006_CONTRAST,8,3            ## @CH7006_CONTRAST
	.comm	_fixed1,4,2                     ## @fixed1
	.comm	_CH7006_POV,4,2                 ## @CH7006_POV
	.comm	_HPOS_8,4,2                     ## @HPOS_8
	.comm	_CH7006_HPOS,4,2                ## @CH7006_HPOS
	.comm	_VPOS_8,4,2                     ## @VPOS_8
	.comm	_CH7006_VPOS,4,2                ## @CH7006_VPOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hpos: %d, vpos: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ch7006_setup_properties        ; -- Begin function ch7006_setup_properties
	.p2align	2
_ch7006_setup_properties:               ; @ch7006_setup_properties
	.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	x20, x0
	bl	_drm_i2c_encoder_get_client
	mov	x19, x0
	mov	x0, x20
	bl	_to_ch7006_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _ch7006_tv_norms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ch7006_tv_norms@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	ldr	x26, [x0]
	ldr	x24, [x0, #24]
	mov	x20, x0
	ldr	x27, [x20, #32]!
	ldr	w3, [x0, #20]
	mov	w0, #0
	mov	w1, #2
	mov	w2, #3
	bl	_interpolate
	mov	x22, x0
Lloh3:
	adrp	x8, _CH7006_FFILTER_TEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CH7006_FFILTER_TEXT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_bitf
	mov	x23, x0
Lloh6:
	adrp	x8, _CH7006_FFILTER_LUMA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CH7006_FFILTER_LUMA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_bitf
	orr	w22, w0, w23
Lloh9:
	adrp	x8, _CH7006_FFILTER_CHROMA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CH7006_FFILTER_CHROMA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_bitf
	orr	w8, w22, w0
Lloh12:
	adrp	x9, _CH7006_FFILTER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CH7006_FFILTER@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	str	w8, [x27, x9, lsl #2]
	ldr	w3, [x21, #16]
	mov	w0, #0
	mov	w1, #5
	mov	w2, #7
	bl	_interpolate
	mov	x1, x0
Lloh15:
	adrp	x8, _CH7006_CONTRAST_0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CH7006_CONTRAST_0@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_bitf
Lloh18:
	adrp	x8, _CH7006_CONTRAST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CH7006_CONTRAST@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	w0, [x27, x8, lsl #2]
	add	x25, x25, x26, lsl #4
	ldr	w8, [x25]
Lloh21:
	adrp	x22, _fixed1@GOTPAGE
Lloh22:
	ldr	x22, [x22, _fixed1@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w23, w9, w8
	ldr	w1, [x24, #8]
	mov	x0, x23
	bl	_do_div
	ldr	w8, [x22]
	ldp	w9, w1, [x24]
	mul	w22, w8, w9
	mov	x0, x22
	bl	_do_div
	ldr	w8, [x25, #4]
	ldp	w10, w9, [x24, #8]
	mul	w9, w9, w23
	neg	w9, w9
	madd	w8, w8, w22, w9
	ldr	w9, [x21, #8]
	mul	w8, w8, w9
	mul	w0, w8, w10
	bl	_round_fixed
	ldr	w8, [x25]
	sdiv	w8, w0, w8
	mov	w26, #34079
	movk	w26, #20971, lsl #16
	smull	x8, w8, w26
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w22, w8, w9, asr #7
Lloh23:
	adrp	x27, _CH7006_POV@GOTPAGE
Lloh24:
	ldr	x27, [x27, _CH7006_POV@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh25:
	adrp	x8, _HPOS_8@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HPOS_8@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_setbitf
Lloh28:
	adrp	x8, _CH7006_HPOS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CH7006_HPOS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x3, x22
	bl	_setbitf
	ldr	w28, [x25, #8]
	ldr	w8, [x24, #16]
	mul	w0, w8, w23
	bl	_round_fixed
	ldr	w8, [x25, #12]
	sub	w9, w28, w0
	add	w1, w9, w8
	mov	w0, #0
	bl	_max
	ldr	w8, [x21, #12]
	mul	w8, w8, w0
	smull	x8, w8, w26
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w21, w8, w9, asr #6
	ldr	w1, [x27]
Lloh31:
	adrp	x8, _VPOS_8@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VPOS_8@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x21
	bl	_setbitf
Lloh34:
	adrp	x8, _CH7006_VPOS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CH7006_VPOS@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x3, x21
	bl	_setbitf
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, 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_dbg
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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_FFILTER_TEXT,4,2        ; @CH7006_FFILTER_TEXT
	.comm	_CH7006_FFILTER_LUMA,4,2        ; @CH7006_FFILTER_LUMA
	.comm	_CH7006_FFILTER_CHROMA,4,2      ; @CH7006_FFILTER_CHROMA
	.comm	_CH7006_FFILTER,8,3             ; @CH7006_FFILTER
	.comm	_CH7006_CONTRAST_0,4,2          ; @CH7006_CONTRAST_0
	.comm	_CH7006_CONTRAST,8,3            ; @CH7006_CONTRAST
	.comm	_fixed1,4,2                     ; @fixed1
	.comm	_CH7006_POV,4,2                 ; @CH7006_POV
	.comm	_HPOS_8,4,2                     ; @HPOS_8
	.comm	_CH7006_HPOS,4,2                ; @CH7006_HPOS
	.comm	_VPOS_8,4,2                     ; @VPOS_8
	.comm	_CH7006_VPOS,4,2                ; @CH7006_VPOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hpos: %d, vpos: %d\n"

.subsections_via_symbols
