	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_set_dvb
_simple_set_dvb:                        ## @simple_set_dvb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %r8
	movq	(%rdi), %rcx
	movl	$-129, %esi
	addl	(%rcx), %esi
	cmpl	$4, %esi
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rsi
	addq	%rax, %rsi
	jmpq	*%rsi
LBB0_8:
	movq	_dtv_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.9:
	movl	4(%rdx), %eax
	andl	$-2, %eax
	xorl	%ecx, %ecx
	cmpl	$134, %eax
	sete	%cl
LBB0_10:
	leaq	8(%r8), %rsi
	addq	$12, %r8
	movq	%r8, %rdx
	popq	%rbp
	jmp	_simple_set_rf_input            ## TAILCALL
LBB0_2:
	movl	8(%rdx), %eax
	movq	_BANDWIDTH_8_MHZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.3:
	cmpl	$158870000, (%rdx)              ## imm = 0x97829F0
	jl	LBB0_7
## %bb.4:
	orb	$8, 12(%r8)
	popq	%rbp
	retq
LBB0_5:
	movl	(%rdx), %eax
	xorl	%ecx, %ecx
	cmpl	$444000000, %eax                ## imm = 0x1A76E700
	setge	%cl
	cmpl	$161000000, %eax                ## imm = 0x998AA40
	leal	2(%rcx,%rcx), %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	orl	12(%r8), %ecx
	movl	%ecx, 12(%r8)
	movl	8(%rdx), %eax
	movq	_BANDWIDTH_8_MHZ@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_7
## %bb.6:
	orl	$8, %ecx
	movl	%ecx, 12(%r8)
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_BANDWIDTH_8_MHZ,4,2            ## @BANDWIDTH_8_MHZ
	.comm	_dtv_input,8,3                  ## @dtv_input
	.no_dead_strip	_simple_set_dvb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_set_dvb
_simple_set_dvb:                        ; @simple_set_dvb
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	w9, [x8]
	sub	w9, w9, #129
	cmp	w9, #4
	b.hi	LBB0_10
; %bb.1:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x9, _dtv_input@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dtv_input@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x8, [x8, #8]
	ldr	w3, [x9, x8, lsl #2]
	cbnz	w3, LBB0_4
; %bb.3:
	ldr	w8, [x2, #4]
	and	w8, w8, #0xfffffffe
	cmp	w8, #134
	cset	w3, eq
LBB0_4:
	add	x8, x1, #8
	add	x2, x1, #12
	mov	x1, x8
	b	_simple_set_rf_input
LBB0_5:
	ldr	w8, [x2, #8]
Lloh5:
	adrp	x9, _BANDWIDTH_8_MHZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BANDWIDTH_8_MHZ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
	ldr	w8, [x2]
	mov	w9, #10736
	movk	w9, #2424, lsl #16
	cmp	w8, w9
	b.lt	LBB0_10
; %bb.7:
	ldr	w8, [x1, #12]
	b	LBB0_9
LBB0_8:
	ldr	w8, [x2]
	mov	w9, #59136
	movk	w9, #6774, lsl #16
	mov	w10, #4
	mov	w11, #2
	cmp	w8, w9
	csel	w9, w11, w10, lt
	mov	w10, #43584
	movk	w10, #2456, lsl #16
	cmp	w8, w10
	csinc	w8, w9, wzr, ge
	ldr	w9, [x1, #12]
	orr	w8, w8, w9
	str	w8, [x1, #12]
	ldr	w9, [x2, #8]
Lloh8:
	adrp	x10, _BANDWIDTH_8_MHZ@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BANDWIDTH_8_MHZ@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_10
LBB0_9:
	orr	w8, w8, #0x8
	str	w8, [x1, #12]
LBB0_10:
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_BANDWIDTH_8_MHZ,4,2            ; @BANDWIDTH_8_MHZ
	.comm	_dtv_input,8,3                  ; @dtv_input
	.no_dead_strip	_simple_set_dvb
.subsections_via_symbols
