	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_delivery_search
_stv090x_delivery_search:               ## @stv090x_delivery_search
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	movq	_DMDCFGMD@GOTPCREL(%rip), %r15
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.9:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_DVBS1_ENABLE_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movq	_DVBS2_ENABLE_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_stv090x_vitclk_ctl
	testl	%eax, %eax
	js	LBB0_35
## %bb.11:
	movq	%r14, %rdi
	callq	_stv090x_dvbs_track_crl
	testl	%eax, %eax
	js	LBB0_35
## %bb.12:
	movq	_CAR2CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$34, %edx
	callq	_STV090x_WRITE_DEMOD
LBB0_31:
	testl	%eax, %eax
	js	LBB0_35
## %bb.32:
	movq	%r14, %rdi
	callq	_stv090x_set_vit_thacq
	testl	%eax, %eax
	js	LBB0_35
## %bb.33:
	movq	%r14, %rdi
	callq	_stv090x_set_viterbi
LBB0_34:
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jns	LBB0_36
	jmp	LBB0_35
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_20
## %bb.2:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_DVBS1_ENABLE_FIELD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movq	_DVBS2_ENABLE_FIELD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.3:
	movl	(%r12), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r13), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_stv090x_vitclk_ctl
	testl	%eax, %eax
	js	LBB0_35
## %bb.5:
	movq	_ACLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$26, %edx
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.6:
	movq	_BCLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$9, %edx
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.7:
	movq	8(%r14), %rax
	cmpl	$32, (%rax)
	movq	_CAR2CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	jg	LBB0_13
## %bb.8:
	movl	$38, %edx
	jmp	LBB0_14
LBB0_20:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_DVBS1_ENABLE_FIELD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movq	_DVBS2_ENABLE_FIELD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.21:
	movl	(%r12), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r13), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.22:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_stv090x_vitclk_ctl
	testl	%eax, %eax
	js	LBB0_35
## %bb.23:
	movq	%r14, %rdi
	callq	_stv090x_dvbs_track_crl
	testl	%eax, %eax
	js	LBB0_35
## %bb.24:
	movq	8(%r14), %rax
	cmpl	$32, (%rax)
	movq	_CAR2CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	jg	LBB0_26
## %bb.25:
	movl	$38, %edx
	jmp	LBB0_27
LBB0_26:
	movl	$102, %edx
LBB0_27:
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.28:
	movl	4(%r14), %eax
	movq	_STV090x_SINGLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_29
## %bb.30:
	movq	%r14, %rdi
	callq	_stv090x_activate_modcod_single
	jmp	LBB0_31
LBB0_13:
	movl	$102, %edx
LBB0_14:
	callq	_STV090x_WRITE_DEMOD
	testl	%eax, %eax
	js	LBB0_35
## %bb.15:
	movl	4(%r14), %eax
	movq	_STV090x_SINGLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.17:
	movq	%r14, %rdi
	callq	_stv090x_activate_modcod_single
	jmp	LBB0_18
LBB0_29:
	movq	%r14, %rdi
	callq	_stv090x_activate_modcod
	jmp	LBB0_31
LBB0_16:
	movq	%r14, %rdi
	callq	_stv090x_activate_modcod
LBB0_18:
	testl	%eax, %eax
	js	LBB0_35
## %bb.19:
	movq	%r14, %rdi
	callq	_stv090x_set_vit_thtracq
	jmp	LBB0_34
LBB0_35:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movl	$-1, %eax
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMDCFGMD,4,2                   ## @DMDCFGMD
	.comm	_DVBS1_ENABLE_FIELD,4,2         ## @DVBS1_ENABLE_FIELD
	.comm	_DVBS2_ENABLE_FIELD,4,2         ## @DVBS2_ENABLE_FIELD
	.comm	_CAR2CFG,4,2                    ## @CAR2CFG
	.comm	_ACLC,4,2                       ## @ACLC
	.comm	_BCLC,4,2                       ## @BCLC
	.comm	_STV090x_SINGLE,4,2             ## @STV090x_SINGLE
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_delivery_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_delivery_search
_stv090x_delivery_search:               ; @stv090x_delivery_search
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #129
Lloh0:
	adrp	x21, _DMDCFGMD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMDCFGMD@GOTPAGEOFF]
	cmp	w9, #2
	b.hs	LBB0_8
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
Lloh2:
	adrp	x8, _DVBS1_ENABLE_FIELD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DVBS1_ENABLE_FIELD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
Lloh5:
	adrp	x8, _DVBS2_ENABLE_FIELD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DVBS2_ENABLE_FIELD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_stv090x_vitclk_ctl
	tbnz	w0, #31, LBB0_33
; %bb.3:
	mov	x0, x19
	bl	_stv090x_dvbs_track_crl
	tbnz	w0, #31, LBB0_33
; %bb.4:
Lloh8:
	adrp	x8, _CAR2CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAR2CFG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #34
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
LBB0_5:
	mov	x0, x19
	bl	_stv090x_set_vit_thacq
	tbnz	w0, #31, LBB0_33
; %bb.6:
	mov	x0, x19
	bl	_stv090x_set_viterbi
	tbnz	w0, #31, LBB0_33
LBB0_7:
	mov	w0, #0
	b	LBB0_34
LBB0_8:
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.9:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
Lloh11:
	adrp	x22, _DVBS1_ENABLE_FIELD@GOTPAGE
Lloh12:
	ldr	x22, [x22, _DVBS1_ENABLE_FIELD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
Lloh13:
	adrp	x23, _DVBS2_ENABLE_FIELD@GOTPAGE
Lloh14:
	ldr	x23, [x23, _DVBS2_ENABLE_FIELD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.10:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	bl	_stv090x_vitclk_ctl
	tbnz	w0, #31, LBB0_33
; %bb.12:
Lloh15:
	adrp	x8, _ACLC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACLC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #26
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.13:
Lloh18:
	adrp	x8, _BCLC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BCLC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #9
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _CAR2CFG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CAR2CFG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
	mov	x0, x19
	cmp	w8, #32
	b.gt	LBB0_27
; %bb.15:
	mov	w2, #38
	b	LBB0_28
LBB0_16:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
Lloh24:
	adrp	x22, _DVBS1_ENABLE_FIELD@GOTPAGE
Lloh25:
	ldr	x22, [x22, _DVBS1_ENABLE_FIELD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
Lloh26:
	adrp	x23, _DVBS2_ENABLE_FIELD@GOTPAGE
Lloh27:
	ldr	x23, [x23, _DVBS2_ENABLE_FIELD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.17:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.18:
	mov	x0, x19
	mov	w1, #0
	bl	_stv090x_vitclk_ctl
	tbnz	w0, #31, LBB0_33
; %bb.19:
	mov	x0, x19
	bl	_stv090x_dvbs_track_crl
	tbnz	w0, #31, LBB0_33
; %bb.20:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _CAR2CFG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CAR2CFG@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
	mov	x0, x19
	cmp	w8, #32
	b.gt	LBB0_22
; %bb.21:
	mov	w2, #38
	b	LBB0_23
LBB0_22:
	mov	w2, #102
LBB0_23:
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.24:
	ldr	w8, [x19, #4]
Lloh31:
	adrp	x9, _STV090x_SINGLE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _STV090x_SINGLE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.25:
	bl	_stv090x_activate_modcod_single
	tbz	w0, #31, LBB0_5
	b	LBB0_33
LBB0_26:
	bl	_stv090x_activate_modcod
	tbz	w0, #31, LBB0_5
	b	LBB0_33
LBB0_27:
	mov	w2, #102
LBB0_28:
	bl	_STV090x_WRITE_DEMOD
	tbnz	w0, #31, LBB0_33
; %bb.29:
	ldr	w8, [x19, #4]
Lloh34:
	adrp	x9, _STV090x_SINGLE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _STV090x_SINGLE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_31
; %bb.30:
	bl	_stv090x_activate_modcod_single
	tbz	w0, #31, LBB0_32
	b	LBB0_33
LBB0_31:
	bl	_stv090x_activate_modcod
	tbnz	w0, #31, LBB0_33
LBB0_32:
	mov	x0, x19
	bl	_stv090x_set_vit_thtracq
	tbz	w0, #31, LBB0_7
LBB0_33:
Lloh37:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x2, l_.str@PAGE
Lloh41:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_34:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_DMDCFGMD,4,2                   ; @DMDCFGMD
	.comm	_DVBS1_ENABLE_FIELD,4,2         ; @DVBS1_ENABLE_FIELD
	.comm	_DVBS2_ENABLE_FIELD,4,2         ; @DVBS2_ENABLE_FIELD
	.comm	_CAR2CFG,4,2                    ; @CAR2CFG
	.comm	_ACLC,4,2                       ; @ACLC
	.comm	_BCLC,4,2                       ; @BCLC
	.comm	_STV090x_SINGLE,4,2             ; @STV090x_SINGLE
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_delivery_search
.subsections_via_symbols
