	.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	(%rsi), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movzbl	%ch, %edx
	movzbl	%cl, %edi
                                        ## kill: def $ecx killed $ecx killed $rcx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, -48(%rbp)
	movl	%edx, -44(%rbp)
	movl	%edi, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	4(%rsi), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_5
## %bb.1:
	movl	$8, %ecx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_6:
	movl	$7, %ecx
	jmp	LBB0_7
LBB0_2:
	movl	$6, %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
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
	.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	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.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	w9, #19923
	movk	w9, #4194, lsl #16
	ldp	w10, w11, [x1]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mul	x9, x10, x9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	ubfx	w10, w9, #16, #8
	ubfx	w12, w9, #8, #8
	stp	w10, w12, [sp, #4]
	and	w9, w9, #0xff
	stp	w9, wzr, [sp, #12]
	sub	w10, w11, #128
	cmp	w10, #3
	b.hi	LBB0_3
; %bb.1:
	mov	w9, #8
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	mov	w9, #7
	b	LBB0_7
LBB0_6:
	mov	w9, #6
LBB0_7:
	str	w9, [sp, #20]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _LOCK_TUNER_COMMAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOCK_TUNER_COMMAND@GOTPAGEOFF]
Lloh11:
	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
LBB0_8:
	ldur	x8, [x29, #-8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LOCK_TUNER_COMMAND,4,2         ; @LOCK_TUNER_COMMAND
	.no_dead_strip	_vp7045_fe_set_frontend
.subsections_via_symbols
