	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp7045_fe_set_frontend
_vp7045_fe_set_frontend:                ## @vp7045_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	(%rdi), %rax
	movslq	8(%rdi), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movzbl	%ch, %edx
	movzbl	%cl, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -48(%rbp)
	movl	%edx, -44(%rbp)
	movl	%esi, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	12(%rdi), %ecx
	cmpl	$6000000, %ecx                  ## imm = 0x5B8D80
	je	LBB0_6
## %bb.1:
	cmpl	$8000000, %ecx                  ## imm = 0x7A1200
	je	LBB0_2
## %bb.3:
	cmpl	$7000000, %ecx                  ## imm = 0x6ACFC0
	jne	LBB0_5
## %bb.4:
	movl	$7, %ecx
	jmp	LBB0_7
LBB0_6:
	movl	$6, %ecx
	jmp	LBB0_7
LBB0_2:
	movl	$8, %ecx
LBB0_7:
	movl	%ecx, -32(%rbp)
	movl	(%rax), %edi
	movq	_LOCK_TUNER_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$200, (%rsp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rdx
	movl	$5, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_vp7045_usb_op
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LOCK_TUNER_COMMAND,4,2         ## @LOCK_TUNER_COMMAND
	.no_dead_strip	_vp7045_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 vp7045_fe_set_frontend
_vp7045_fe_set_frontend:                ; @vp7045_fe_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldr	x8, [x0]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	ldp	w11, w9, [x0, #8]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	mul	x10, x11, x10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	ubfx	w11, w10, #16, #8
	ubfx	w12, w10, #8, #8
	stp	w11, w12, [sp, #4]
	and	w10, w10, #0xff
	stp	w10, wzr, [sp, #12]
	sub	w10, w9, #1464, lsl #12         ; =5996544
	cmp	w10, #3456
	b.eq	LBB0_4
; %bb.1:
	mov	w10, #4608
	movk	w10, #122, lsl #16
	cmp	w9, w10
	b.eq	LBB0_5
; %bb.2:
	mov	w10, #53184
	movk	w10, #106, lsl #16
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.3:
	mov	w9, #7
	b	LBB0_6
LBB0_4:
	mov	w9, #6
	b	LBB0_6
LBB0_5:
	mov	w9, #8
LBB0_6:
	str	w9, [sp, #20]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _LOCK_TUNER_COMMAND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCK_TUNER_COMMAND@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	w3, #5
	mov	x4, #0
	mov	w5, #0
	mov	w6, #200
	bl	_vp7045_usb_op
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LOCK_TUNER_COMMAND,4,2         ; @LOCK_TUNER_COMMAND
	.no_dead_strip	_vp7045_fe_set_frontend
.subsections_via_symbols
