	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtt200u_fe_set_frontend
_dtt200u_fe_set_frontend:               ## @dtt200u_fe_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %r15
	movslq	(%rsi), %rax
	movq	_SET_BANDWIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movq	_SET_RF_FREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)
	movl	4(%rsi), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movl	$8, %ecx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_6:
	movl	$7, %ecx
	jmp	LBB0_7
LBB0_2:
	movl	$6, %ecx
LBB0_7:
	imulq	$1125899907, %rax, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$48, %rbx
	addl	%eax, %ebx
	movl	%ecx, -36(%rbp)
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	movl	$2, %edx
	callq	_dvb_usb_generic_write
	movzbl	%bl, %eax
	movl	%eax, -48(%rbp)
	movzbl	%bh, %eax
	movl	%eax, -44(%rbp)
	movl	(%r15), %edi
	leaq	-52(%rbp), %rsi
	movl	$3, %edx
	callq	_dvb_usb_generic_write
	movl	$30, %ebx
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dtt200u_fe_read_status
	decl	%ebx
	jne	LBB0_8
## %bb.9:
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_SET_BANDWIDTH,4,2              ## @SET_BANDWIDTH
	.comm	_SET_RF_FREQ,4,2                ## @SET_RF_FREQ
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FE_TIMEDOUT,4,2                ## @FE_TIMEDOUT
	.no_dead_strip	_dtt200u_fe_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtt200u_fe_set_frontend
_dtt200u_fe_set_frontend:               ; @dtt200u_fe_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x0]
Lloh3:
	adrp	x8, _SET_BANDWIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_BANDWIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh6:
	adrp	x8, _SET_RF_FREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SET_RF_FREQ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	ldp	w8, w9, [x1]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	w10, w9, #128
	cmp	w10, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w9, #8
Lloh9:
	adrp	x11, lJTI0_0@PAGE
Lloh10:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_5:
	mov	w9, #7
	b	LBB0_7
LBB0_6:
	mov	w9, #6
LBB0_7:
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	mul	x8, x8, x10
	lsr	x10, x8, #63
	asr	x8, x8, #48
	add	w21, w8, w10
	str	w9, [sp, #20]
	ldr	w0, [x20]
	add	x1, sp, #16
	mov	w2, #2
	bl	_dvb_usb_generic_write
	and	w8, w21, #0xff
	ubfx	w9, w21, #8, #8
	stp	w8, w9, [sp, #8]
	ldr	w0, [x20]
	add	x1, sp, #4
	mov	w2, #3
	bl	_dvb_usb_generic_write
	mov	w20, #30
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_msleep
	mov	x1, sp
	mov	x0, x19
	bl	_dtt200u_fe_read_status
	subs	w20, w20, #1
	b.ne	LBB0_8
; %bb.9:
	mov	w0, #0
LBB0_10:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_SET_BANDWIDTH,4,2              ; @SET_BANDWIDTH
	.comm	_SET_RF_FREQ,4,2                ; @SET_RF_FREQ
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FE_TIMEDOUT,4,2                ; @FE_TIMEDOUT
	.no_dead_strip	_dtt200u_fe_set_frontend
.subsections_via_symbols
