	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avc_tuner_tuneqpsk
_avc_tuner_tuneqpsk:                    ## @avc_tuner_tuneqpsk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	40(%rdi), %rax
	movq	_AVC_OPCODE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_SFE_VENDOR_DE_COMPANYID_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%rax), %rcx
	movl	%edx, (%rcx)
	movq	_SFE_VENDOR_DE_COMPANYID_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_SFE_VENDOR_DE_COMPANYID_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	(%rdi), %r8
	movq	_FIREDTV_DVB_S2@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	cmpq	%r9, %r8
	jne	LBB0_1
## %bb.2:
	movq	_SFE_VENDOR_OPCODE_TUNE_QPSK2@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SFE_VENDOR_OPCODE_TUNE_QPSK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movzbl	3(%rsi), %eax
	movl	%eax, 16(%rcx)
	movzbl	2(%rsi), %eax
	movl	%eax, 20(%rcx)
	movzbl	1(%rsi), %eax
	movl	%eax, 24(%rcx)
	movzbl	(%rsi), %eax
	movl	%eax, 28(%rcx)
	movslq	4(%rsi), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$38, %rax
	addl	%edx, %eax
	movzbl	%ah, %eax
	movl	%eax, 32(%rcx)
	movslq	4(%rsi), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$38, %rax
	addl	%edx, %eax
	movzbl	%al, %eax
	movl	%eax, 36(%rcx)
	movl	$-140, %eax
	addl	8(%rsi), %eax
	xorl	%esi, %esi
	cmpl	$5, %eax
	ja	LBB0_5
## %bb.4:
	cltq
	leaq	l_switch.table.avc_tuner_tuneqpsk(%rip), %rdx
	movl	(%rdx,%rax,4), %esi
LBB0_5:
	movl	%esi, 40(%rcx)
	movl	8(%rdi), %eax
	cmpl	$255, %eax
	jne	LBB0_7
## %bb.6:
	movl	$255, 44(%rcx)
	jmp	LBB0_10
LBB0_7:
	movq	_SEC_VOLTAGE_18@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_9
## %bb.8:
	movl	$0, 44(%rcx)
	jmp	LBB0_10
LBB0_9:
	movl	$1, 44(%rcx)
LBB0_10:
	movl	12(%rdi), %eax
	cmpl	$255, %eax
	jne	LBB0_12
## %bb.11:
	movl	$255, 48(%rcx)
	jmp	LBB0_15
LBB0_12:
	movq	_SEC_TONE_ON@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_14
## %bb.13:
	movl	$1, 48(%rcx)
	jmp	LBB0_15
LBB0_14:
	movl	$0, 48(%rcx)
LBB0_15:
	movl	$13, %eax
	cmpq	%r9, %r8
	jne	LBB0_22
## %bb.16:
	movq	16(%rdi), %rax
	movq	_SYS_DVBS2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_23
## %bb.17:
	movl	$-132, %eax
	addl	24(%rdi), %eax
	movl	$2, %edx
	cmpl	$2, %eax
	ja	LBB0_19
## %bb.18:
	cltq
	leaq	l_switch.table.avc_tuner_tuneqpsk.1(%rip), %rdx
	movl	(%rdx,%rax,4), %edx
LBB0_19:
	movl	%edx, 52(%rcx)
	movl	28(%rdi), %eax
	xorl	%edx, %edx
	cmpl	$131, %eax
	setne	%dl
	addl	%edx, %edx
	cmpl	$130, %eax
	movl	$1, %eax
	cmovnel	%edx, %eax
	movl	%eax, 56(%rcx)
	movl	$-135, %edx
	addl	32(%rdi), %edx
	movl	$16, %eax
	cmpl	$3, %edx
	jae	LBB0_22
## %bb.20:
	movslq	%edx, %rax
	leaq	l_switch.table.avc_tuner_tuneqpsk.2(%rip), %rdx
	movl	(%rdx,%rax,4), %eax
	jmp	LBB0_21
LBB0_23:
	movabsq	$1095216660481, %rax            ## imm = 0xFF00000001
	movq	%rax, 52(%rcx)
	movl	$255, %eax
LBB0_21:
	movl	%eax, 60(%rcx)
	movl	$16, %eax
LBB0_22:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVC_OPCODE_VENDOR,4,2          ## @AVC_OPCODE_VENDOR
	.comm	_SFE_VENDOR_DE_COMPANYID_0,4,2  ## @SFE_VENDOR_DE_COMPANYID_0
	.comm	_SFE_VENDOR_DE_COMPANYID_1,4,2  ## @SFE_VENDOR_DE_COMPANYID_1
	.comm	_SFE_VENDOR_DE_COMPANYID_2,4,2  ## @SFE_VENDOR_DE_COMPANYID_2
	.comm	_FIREDTV_DVB_S2,8,3             ## @FIREDTV_DVB_S2
	.comm	_SFE_VENDOR_OPCODE_TUNE_QPSK2,4,2 ## @SFE_VENDOR_OPCODE_TUNE_QPSK2
	.comm	_SFE_VENDOR_OPCODE_TUNE_QPSK,4,2 ## @SFE_VENDOR_OPCODE_TUNE_QPSK
	.comm	_SEC_VOLTAGE_18,4,2             ## @SEC_VOLTAGE_18
	.comm	_SEC_TONE_ON,4,2                ## @SEC_TONE_ON
	.comm	_SYS_DVBS2,8,3                  ## @SYS_DVBS2
	.no_dead_strip	_avc_tuner_tuneqpsk
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.avc_tuner_tuneqpsk
l_switch.table.avc_tuner_tuneqpsk:
	.long	5                               ## 0x5
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	1                               ## 0x1

	.p2align	2                               ## @switch.table.avc_tuner_tuneqpsk.1
l_switch.table.avc_tuner_tuneqpsk.1:
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	3                               ## 0x3

	.p2align	2                               ## @switch.table.avc_tuner_tuneqpsk.2
l_switch.table.avc_tuner_tuneqpsk.2:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function avc_tuner_tuneqpsk
lCPI0_0:
	.long	1                               ; 0x1
	.long	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_avc_tuner_tuneqpsk:                    ; @avc_tuner_tuneqpsk
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AVC_OPCODE_VENDOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVC_OPCODE_VENDOR@GOTPAGEOFF]
	ldr	x9, [x0, #40]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x9, #8]
Lloh3:
	adrp	x8, _SFE_VENDOR_DE_COMPANYID_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SFE_VENDOR_DE_COMPANYID_0@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	ldr	x8, [x9]
	str	w10, [x8]
Lloh6:
	adrp	x9, _SFE_VENDOR_DE_COMPANYID_1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SFE_VENDOR_DE_COMPANYID_1@GOTPAGEOFF]
Lloh8:
	adrp	x10, _SFE_VENDOR_DE_COMPANYID_2@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SFE_VENDOR_DE_COMPANYID_2@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	stp	w9, w10, [x8, #4]
Lloh12:
	adrp	x10, _FIREDTV_DVB_S2@GOTPAGE
Lloh13:
	ldr	x10, [x10, _FIREDTV_DVB_S2@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _SFE_VENDOR_OPCODE_TUNE_QPSK2@GOTPAGE
Lloh16:
	ldr	x11, [x11, _SFE_VENDOR_OPCODE_TUNE_QPSK2@GOTPAGEOFF]
Lloh17:
	adrp	x12, _SFE_VENDOR_OPCODE_TUNE_QPSK@GOTPAGE
Lloh18:
	ldr	x12, [x12, _SFE_VENDOR_OPCODE_TUNE_QPSK@GOTPAGEOFF]
	cmp	x9, x10
	csel	x11, x11, x12, eq
	ldr	w11, [x11]
	str	w11, [x8, #12]
	ldrb	w11, [x1, #3]
	str	w11, [x8, #16]
	ldrb	w11, [x1, #2]
	str	w11, [x8, #20]
	ldrb	w11, [x1, #1]
	str	w11, [x8, #24]
	ldrb	w11, [x1]
	str	w11, [x8, #28]
	ldrsw	x11, [x1, #4]
	mov	w12, #19923
	movk	w12, #4194, lsl #16
	mul	x11, x11, x12
	lsr	x13, x11, #63
	lsr	x11, x11, #38
	add	w11, w11, w13
	ubfx	w11, w11, #8, #8
	str	w11, [x8, #32]
	ldrsw	x11, [x1, #4]
	mul	x11, x11, x12
	lsr	x12, x11, #63
	lsr	x11, x11, #38
	add	w11, w11, w12
	and	w11, w11, #0xff
	str	w11, [x8, #36]
	ldr	w11, [x1, #8]
	sub	w11, w11, #140
	cmp	w11, #5
	b.hi	LBB0_2
; %bb.1:
Lloh19:
	adrp	x12, l_switch.table.avc_tuner_tuneqpsk@PAGE
Lloh20:
	add	x12, x12, l_switch.table.avc_tuner_tuneqpsk@PAGEOFF
	ldr	w11, [x12, w11, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w11, #0
LBB0_3:
	str	w11, [x8, #40]
	ldr	w11, [x0, #8]
	cmp	w11, #255
	b.eq	LBB0_7
; %bb.4:
Lloh21:
	adrp	x12, _SEC_VOLTAGE_18@GOTPAGE
Lloh22:
	ldr	x12, [x12, _SEC_VOLTAGE_18@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_6
; %bb.5:
	str	wzr, [x8, #44]
	b	LBB0_8
LBB0_6:
	mov	w11, #1
LBB0_7:
	str	w11, [x8, #44]
LBB0_8:
	ldr	w11, [x0, #12]
	cmp	w11, #255
	b.eq	LBB0_11
; %bb.9:
Lloh24:
	adrp	x12, _SEC_TONE_ON@GOTPAGE
Lloh25:
	ldr	x12, [x12, _SEC_TONE_ON@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_15
; %bb.10:
	mov	w11, #1
LBB0_11:
	str	w11, [x8, #48]
	cmp	x9, x10
	b.ne	LBB0_16
LBB0_12:
	ldr	x9, [x0, #16]
Lloh27:
	adrp	x10, _SYS_DVBS2@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SYS_DVBS2@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.13:
	ldr	w9, [x0, #24]
	sub	w9, w9, #132
	cmp	w9, #2
	b.hi	LBB0_18
; %bb.14:
Lloh30:
	adrp	x10, l_switch.table.avc_tuner_tuneqpsk.1@PAGE
Lloh31:
	add	x10, x10, l_switch.table.avc_tuner_tuneqpsk.1@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
	b	LBB0_19
LBB0_15:
	str	wzr, [x8, #48]
	cmp	x9, x10
	b.eq	LBB0_12
LBB0_16:
	mov	w0, #13
	ret
LBB0_17:
Lloh32:
	adrp	x9, lCPI0_0@PAGE
Lloh33:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x8, #52]
	mov	w9, #255
	b	LBB0_21
LBB0_18:
	mov	w9, #2
LBB0_19:
	str	w9, [x8, #52]
	ldr	w9, [x0, #28]
	cmp	w9, #131
	cset	w10, ne
	lsl	w10, w10, #1
	cmp	w9, #130
	csinc	w9, w10, wzr, ne
	str	w9, [x8, #56]
	ldr	w9, [x0, #32]
	sub	w9, w9, #135
	cmp	w9, #3
	b.hs	LBB0_22
; %bb.20:
Lloh34:
	adrp	x10, l_switch.table.avc_tuner_tuneqpsk.2@PAGE
Lloh35:
	add	x10, x10, l_switch.table.avc_tuner_tuneqpsk.2@PAGEOFF
	ldr	w9, [x10, w9, sxtw #2]
LBB0_21:
	str	w9, [x8, #60]
LBB0_22:
	mov	w0, #16
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdr	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AVC_OPCODE_VENDOR,4,2          ; @AVC_OPCODE_VENDOR
	.comm	_SFE_VENDOR_DE_COMPANYID_0,4,2  ; @SFE_VENDOR_DE_COMPANYID_0
	.comm	_SFE_VENDOR_DE_COMPANYID_1,4,2  ; @SFE_VENDOR_DE_COMPANYID_1
	.comm	_SFE_VENDOR_DE_COMPANYID_2,4,2  ; @SFE_VENDOR_DE_COMPANYID_2
	.comm	_FIREDTV_DVB_S2,8,3             ; @FIREDTV_DVB_S2
	.comm	_SFE_VENDOR_OPCODE_TUNE_QPSK2,4,2 ; @SFE_VENDOR_OPCODE_TUNE_QPSK2
	.comm	_SFE_VENDOR_OPCODE_TUNE_QPSK,4,2 ; @SFE_VENDOR_OPCODE_TUNE_QPSK
	.comm	_SEC_VOLTAGE_18,4,2             ; @SEC_VOLTAGE_18
	.comm	_SEC_TONE_ON,4,2                ; @SEC_TONE_ON
	.comm	_SYS_DVBS2,8,3                  ; @SYS_DVBS2
	.no_dead_strip	_avc_tuner_tuneqpsk
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.avc_tuner_tuneqpsk
l_switch.table.avc_tuner_tuneqpsk:
	.long	5                               ; 0x5
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	1                               ; 0x1

	.p2align	2                               ; @switch.table.avc_tuner_tuneqpsk.1
l_switch.table.avc_tuner_tuneqpsk.1:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	3                               ; 0x3

	.p2align	2                               ; @switch.table.avc_tuner_tuneqpsk.2
l_switch.table.avc_tuner_tuneqpsk.2:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
