	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ths7303_config
_ths7303_config:                        ## @ths7303_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_to_state
	cmpl	$0, 12(%rax)
	je	LBB0_11
## %bb.1:
	movl	8(%rax), %ecx
	cmpl	$120000001, %ecx                ## imm = 0x7270E01
	jl	LBB0_4
## %bb.2:
	movq	_THS7303_FILTER_MODE_1080P@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	_THS7303_CHANNEL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ths7303_read
	andl	$248, %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ths7303_write
	movq	_THS7303_CHANNEL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ths7303_read
	andl	$248, %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ths7303_write
	movq	_THS7303_CHANNEL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ths7303_read
	andl	$248, %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ths7303_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	cmpl	$70000001, %ecx                 ## imm = 0x42C1D81
	jl	LBB0_6
## %bb.5:
	movq	_THS7303_FILTER_MODE_720P_1080I@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_6:
	cmpl	$20000001, %ecx                 ## imm = 0x1312D01
	jl	LBB0_8
## %bb.7:
	movq	_THS7303_FILTER_MODE_480P_576P@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_THS7303_FILTER_MODE_480I_576I@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_10:
	movq	_THS7303_FILTER_MODE_DISABLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ths7303_setval                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_THS7303_CHANNEL_1,4,2          ## @THS7303_CHANNEL_1
	.comm	_THS7303_CHANNEL_2,4,2          ## @THS7303_CHANNEL_2
	.comm	_THS7303_CHANNEL_3,4,2          ## @THS7303_CHANNEL_3
	.comm	_THS7303_FILTER_MODE_1080P,4,2  ## @THS7303_FILTER_MODE_1080P
	.comm	_THS7303_FILTER_MODE_720P_1080I,4,2 ## @THS7303_FILTER_MODE_720P_1080I
	.comm	_THS7303_FILTER_MODE_480P_576P,4,2 ## @THS7303_FILTER_MODE_480P_576P
	.comm	_THS7303_FILTER_MODE_480I_576I,4,2 ## @THS7303_FILTER_MODE_480I_576I
	.comm	_THS7303_FILTER_MODE_DISABLE,4,2 ## @THS7303_FILTER_MODE_DISABLE
	.no_dead_strip	_ths7303_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ths7303_config
_ths7303_config:                        ; @ths7303_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_to_state
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x0, #8]
	mov	w9, #3585
	movk	w9, #1831, lsl #16
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _THS7303_FILTER_MODE_1080P@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THS7303_FILTER_MODE_1080P@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh2:
	adrp	x8, _THS7303_CHANNEL_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THS7303_CHANNEL_1@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ths7303_read
	and	w2, w0, #0xf8
	mov	x0, x19
	mov	x1, x20
	bl	_ths7303_write
Lloh5:
	adrp	x8, _THS7303_CHANNEL_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _THS7303_CHANNEL_2@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ths7303_read
	and	w2, w0, #0xf8
	mov	x0, x19
	mov	x1, x20
	bl	_ths7303_write
Lloh8:
	adrp	x8, _THS7303_CHANNEL_3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _THS7303_CHANNEL_3@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ths7303_read
	and	w2, w0, #0xf8
	mov	x0, x19
	mov	x1, x20
	bl	_ths7303_write
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w9, #7553
	movk	w9, #1068, lsl #16
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _THS7303_FILTER_MODE_720P_1080I@GOTPAGE
Lloh12:
	ldr	x8, [x8, _THS7303_FILTER_MODE_720P_1080I@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	mov	w9, #11521
	movk	w9, #305, lsl #16
	cmp	w8, w9
	b.lt	LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _THS7303_FILTER_MODE_480P_576P@GOTPAGE
Lloh14:
	ldr	x8, [x8, _THS7303_FILTER_MODE_480P_576P@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _THS7303_FILTER_MODE_480I_576I@GOTPAGE
Lloh16:
	ldr	x8, [x8, _THS7303_FILTER_MODE_480I_576I@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _THS7303_FILTER_MODE_DISABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _THS7303_FILTER_MODE_DISABLE@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ths7303_setval
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_THS7303_CHANNEL_1,4,2          ; @THS7303_CHANNEL_1
	.comm	_THS7303_CHANNEL_2,4,2          ; @THS7303_CHANNEL_2
	.comm	_THS7303_CHANNEL_3,4,2          ; @THS7303_CHANNEL_3
	.comm	_THS7303_FILTER_MODE_1080P,4,2  ; @THS7303_FILTER_MODE_1080P
	.comm	_THS7303_FILTER_MODE_720P_1080I,4,2 ; @THS7303_FILTER_MODE_720P_1080I
	.comm	_THS7303_FILTER_MODE_480P_576P,4,2 ; @THS7303_FILTER_MODE_480P_576P
	.comm	_THS7303_FILTER_MODE_480I_576I,4,2 ; @THS7303_FILTER_MODE_480I_576I
	.comm	_THS7303_FILTER_MODE_DISABLE,4,2 ; @THS7303_FILTER_MODE_DISABLE
	.no_dead_strip	_ths7303_config
.subsections_via_symbols
