	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtv_set_frontend
_dtv_set_frontend:                      ## @dtv_set_frontend
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	48(%rdi), %r12
	callq	_dvb_frontend_check_parameters
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	8(%r15), %r14
	leaq	32(%r12), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dtv_property_legacy_params_sync
	movl	8(%r15), %ecx
	addl	$-128, %ecx
	cmpl	$11, %ecx
	ja	LBB0_9
## %bb.3:
	movl	$115, %esi
	movl	$6000000, %eax                  ## imm = 0x5B8D80
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_5:
	movl	$135, %esi
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_6:
	movl	44(%r15), %eax
	cmpl	$141, %eax
	movl	$125, %ecx
	movl	$135, %edx
	cmovel	%ecx, %edx
	cmpl	$142, %eax
	movl	$120, %esi
	cmovnel	%edx, %esi
	jmp	LBB0_7
LBB0_4:
	movl	$113, %esi
LBB0_7:
	movl	16(%r15), %edi
	movl	$100, %edx
	callq	_mult_frac
LBB0_8:
	movl	%eax, 12(%r15)
LBB0_9:
	movq	_dvb_force_auto_inversion@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_INVERSION_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
LBB0_11:
	movq	24(%r15), %rax
	movq	_HIERARCHY_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movq	32(%r15), %rax
	movq	_FEC_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	_FEC_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
LBB0_14:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_16
LBB0_17:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_21
## %bb.18:
	movl	$741, %ecx                      ## imm = 0x2E5
	btl	%eax, %ecx
	jae	LBB0_19
## %bb.26:
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, (%r12)
	movslq	16(%r15), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	sarq	$42, %rcx
	movq	%rax, %rdx
	shrq	$63, %rdx
	addl	%edx, %ecx
	movl	%ecx, 8(%r12)
	sarq	$39, %rax
	addl	%edx, %eax
	movl	%eax, 4(%r12)
	jmp	LBB0_22
LBB0_19:
	movl	$1050, %ecx                     ## imm = 0x41A
	btl	%eax, %ecx
	jae	LBB0_21
## %bb.20:
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_dvb_frontend_get_stepsize
	addl	%eax, %eax
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_dvb_frontend_get_stepsize
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	incl	%eax
	movl	%eax, 4(%r12)
	jmp	LBB0_22
LBB0_16:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	-48(%rbp), %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%r12)
	movl	-44(%rbp), %eax
	movl	%eax, 4(%r12)
	movl	-40(%rbp), %eax
	movl	%eax, 8(%r12)
	jmp	LBB0_22
LBB0_21:
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, (%r12)
	movq	$0, 4(%r12)
LBB0_22:
	movq	_dvb_override_tune_delay@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.23:
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%r12)
LBB0_24:
	movq	_FESTATE_RETUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_DVBFE_ALGO_SEARCH_AGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
	movq	%r15, %rdi
	callq	_dvb_frontend_clear_events
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_dvb_frontend_add_event
	movq	%r15, %rdi
	callq	_dvb_frontend_wakeup
	movq	$0, 16(%r12)
LBB0_25:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dvb_force_auto_inversion,8,3   ## @dvb_force_auto_inversion
	.comm	_INVERSION_AUTO,4,2             ## @INVERSION_AUTO
	.comm	_HIERARCHY_NONE,8,3             ## @HIERARCHY_NONE
	.comm	_FEC_NONE,8,3                   ## @FEC_NONE
	.comm	_FEC_AUTO,8,3                   ## @FEC_AUTO
	.comm	_HZ,4,2                         ## @HZ
	.comm	_dvb_override_tune_delay,4,2    ## @dvb_override_tune_delay
	.comm	_FESTATE_RETUNE,4,2             ## @FESTATE_RETUNE
	.comm	_DVBFE_ALGO_SEARCH_AGAIN,4,2    ## @DVBFE_ALGO_SEARCH_AGAIN
	.no_dead_strip	_dtv_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtv_set_frontend
_dtv_set_frontend:                      ; @dtv_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x21, [x0, #48]
	bl	_dvb_frontend_check_parameters
	tbnz	x0, #63, LBB0_4
; %bb.1:
	add	x20, x19, #8
	add	x2, x21, #32
	mov	x0, x19
	mov	x1, x20
	bl	_dtv_property_legacy_params_sync
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_9
; %bb.2:
	mov	w0, #36224
	movk	w0, #91, lsl #16
	mov	w1, #115
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	w1, #135
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_26
LBB0_5:
	ldr	w8, [x19, #44]
	mov	w9, #135
	mov	w10, #125
	cmp	w8, #141
	csel	w9, w10, w9, eq
	mov	w10, #120
	cmp	w8, #142
	csel	w1, w10, w9, eq
	b	LBB0_7
LBB0_6:
	mov	w1, #113
LBB0_7:
	ldr	w0, [x19, #16]
	mov	w2, #100
	bl	_mult_frac
LBB0_8:
	str	w0, [x19, #12]
LBB0_9:
Lloh5:
	adrp	x8, _dvb_force_auto_inversion@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dvb_force_auto_inversion@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh8:
	adrp	x8, _INVERSION_AUTO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INVERSION_AUTO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #40]
LBB0_11:
	ldr	x8, [x19, #24]
Lloh11:
	adrp	x9, _HIERARCHY_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HIERARCHY_NONE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x19, #32]
Lloh14:
	adrp	x9, _FEC_NONE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FEC_NONE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh17:
	adrp	x8, _FEC_AUTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FEC_AUTO@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_14:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x1, sp
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_21
LBB0_16:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_22
; %bb.17:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #741
	tst	w8, w9
	b.eq	LBB0_19
; %bb.18:
Lloh20:
	adrp	x8, _HZ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh22:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	ldrsw	x9, [x19, #16]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	asr	x10, x9, #42
	lsr	x11, x9, #63
	add	w10, w10, w11
	asr	x9, x9, #39
	add	w9, w9, w11
	str	w8, [x21]
	stp	w9, w10, [x21, #4]
	b	LBB0_23
LBB0_19:
	mov	w9, #1050
	tst	w8, w9
	b.eq	LBB0_22
; %bb.20:
Lloh23:
	adrp	x8, _HZ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	str	w8, [x21]
	mov	x0, x19
	bl	_dvb_frontend_get_stepsize
	lsl	w8, w0, #1
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_dvb_frontend_get_stepsize
	mov	w8, #1
	bfi	w8, w0, #1, #31
	str	w8, [x21, #4]
	b	LBB0_23
LBB0_21:
	ldr	w8, [sp]
Lloh26:
	adrp	x9, _HZ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x21]
	ldur	d0, [sp, #4]
	stur	d0, [x21, #4]
	b	LBB0_23
LBB0_22:
Lloh29:
	adrp	x8, _HZ@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh31:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	stp	wzr, wzr, [x21, #4]
	add	w8, w8, w9
	str	w8, [x21]
LBB0_23:
Lloh32:
	adrp	x8, _dvb_override_tune_delay@GOTPAGE
Lloh33:
	ldr	x8, [x8, _dvb_override_tune_delay@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.24:
Lloh35:
	adrp	x9, _HZ@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x21]
LBB0_25:
Lloh38:
	adrp	x8, _FESTATE_RETUNE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FESTATE_RETUNE@GOTPAGEOFF]
Lloh40:
	adrp	x9, _DVBFE_ALGO_SEARCH_AGAIN@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DVBFE_ALGO_SEARCH_AGAIN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	ldr	w9, [x9]
	ldr	w10, [x21, #24]
	orr	w9, w10, w9
	stp	w9, w8, [x21, #24]
	mov	x0, x19
	bl	_dvb_frontend_clear_events
	mov	x0, x19
	mov	w1, #0
	bl	_dvb_frontend_add_event
	mov	x0, x19
	bl	_dvb_frontend_wakeup
	mov	w0, #0
	str	xzr, [x21, #16]
LBB0_26:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dvb_force_auto_inversion,8,3   ; @dvb_force_auto_inversion
	.comm	_INVERSION_AUTO,4,2             ; @INVERSION_AUTO
	.comm	_HIERARCHY_NONE,8,3             ; @HIERARCHY_NONE
	.comm	_FEC_NONE,8,3                   ; @FEC_NONE
	.comm	_FEC_AUTO,8,3                   ; @FEC_AUTO
	.comm	_HZ,4,2                         ; @HZ
	.comm	_dvb_override_tune_delay,4,2    ; @dvb_override_tune_delay
	.comm	_FESTATE_RETUNE,4,2             ; @FESTATE_RETUNE
	.comm	_DVBFE_ALGO_SEARCH_AGAIN,4,2    ; @DVBFE_ALGO_SEARCH_AGAIN
	.no_dead_strip	_dtv_set_frontend
.subsections_via_symbols
