	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0900_dvbs1_acq_workaround
_stv0900_dvbs1_acq_workaround:          ## @stv0900_dvbs1_acq_workaround
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %r15
	movl	(%rax), %r12d
	movq	_STV0900_NODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	_HEADER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_stv0900_get_bits
	movq	_STV0900_DVBS_FOUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	16(%r15), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_stv0900_get_symbol_rate
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_stv0900_get_timing_offst
	movq	%rax, %r14
	addl	%r13d, %r14d
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	_STV0900_BLIND_SEARCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	16(%r15), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_stv0900_set_symbol_rate
LBB0_3:
	movq	_STV0900_WARM_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edx
	callq	_stv0900_get_lock_timeout
	movq	_CFR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_stv0900_read_reg
	movl	%eax, %r14d
	movq	_CFR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_stv0900_read_reg
	movl	%eax, %ebx
	movq	_CFR_AUTOSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_bits
	movq	_SPECINV_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STV0900_IQ_FORCE_SWAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_stv0900_write_bits
	movq	_DMDISTATE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$28, %edx
	callq	_stv0900_write_reg
	movq	_CFRINIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	movl	%ebx, %r14d
	callq	_stv0900_write_reg
	movq	_CFRINIT0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_stv0900_write_reg
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$24, %edx
	callq	_stv0900_write_reg
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_stv0900_wait_for_lock
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:
	movq	_SPECINV_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STV0900_IQ_FORCE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_stv0900_write_bits
	movq	_DMDISTATE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$28, %edx
	callq	_stv0900_write_reg
	movq	_CFRINIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_stv0900_write_reg
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_stv0900_write_reg
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$24, %edx
	callq	_stv0900_write_reg
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_stv0900_wait_for_lock
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_7
LBB0_4:
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_stv0900_get_signal_params
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_stv0900_track_optimization
	jmp	LBB0_7
LBB0_6:
	movq	(%r14), %rax
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV0900_NODATA,4,2             ## @STV0900_NODATA
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_HEADER_MODE,4,2                ## @HEADER_MODE
	.comm	_STV0900_DVBS_FOUND,8,3         ## @STV0900_DVBS_FOUND
	.comm	_STV0900_BLIND_SEARCH,8,3       ## @STV0900_BLIND_SEARCH
	.comm	_STV0900_WARM_START,4,2         ## @STV0900_WARM_START
	.comm	_CFR2,4,2                       ## @CFR2
	.comm	_CFR1,4,2                       ## @CFR1
	.comm	_CFR_AUTOSCAN,4,2               ## @CFR_AUTOSCAN
	.comm	_SPECINV_CONTROL,4,2            ## @SPECINV_CONTROL
	.comm	_STV0900_IQ_FORCE_SWAPPED,4,2   ## @STV0900_IQ_FORCE_SWAPPED
	.comm	_DMDISTATE,4,2                  ## @DMDISTATE
	.comm	_CFRINIT1,4,2                   ## @CFRINIT1
	.comm	_CFRINIT0,4,2                   ## @CFRINIT0
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_STV0900_IQ_FORCE_NORMAL,4,2    ## @STV0900_IQ_FORCE_NORMAL
	.no_dead_strip	_stv0900_dvbs1_acq_workaround
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0900_dvbs1_acq_workaround
_stv0900_dvbs1_acq_workaround:          ; @stv0900_dvbs1_acq_workaround
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x22, [x8, #8]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _STV0900_NODATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STV0900_NODATA@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x23, _FALSE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x22, #8]
	str	x8, [x9, x21, lsl #3]
Lloh5:
	adrp	x8, _HEADER_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HEADER_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_stv0900_get_bits
Lloh8:
	adrp	x8, _STV0900_DVBS_FOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STV0900_DVBS_FOUND@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	w1, [x22, #16]
	mov	x0, x22
	mov	x2, x21
	bl	_stv0900_get_symbol_rate
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_stv0900_get_timing_offst
	add	w23, w23, w0
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
Lloh11:
	adrp	x9, _STV0900_BLIND_SEARCH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _STV0900_BLIND_SEARCH@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x22, #16]
	mov	x0, x22
	mov	x2, x23
	mov	x3, x21
	bl	_stv0900_set_symbol_rate
LBB0_3:
Lloh14:
	adrp	x8, _STV0900_WARM_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STV0900_WARM_START@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x0, sp, #12
	add	x1, sp, #8
	mov	x2, x23
	bl	_stv0900_get_lock_timeout
Lloh17:
	adrp	x8, _CFR2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CFR2@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_stv0900_read_reg
	mov	x23, x0
Lloh20:
	adrp	x8, _CFR1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CFR1@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_stv0900_read_reg
	mov	x24, x0
Lloh23:
	adrp	x8, _CFR_AUTOSCAN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CFR_AUTOSCAN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_stv0900_write_bits
Lloh26:
	adrp	x8, _SPECINV_CONTROL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SPECINV_CONTROL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _STV0900_IQ_FORCE_SWAPPED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STV0900_IQ_FORCE_SWAPPED@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_stv0900_write_bits
Lloh32:
	adrp	x25, _DMDISTATE@GOTPAGE
Lloh33:
	ldr	x25, [x25, _DMDISTATE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x22
	mov	w2, #28
	bl	_stv0900_write_reg
Lloh34:
	adrp	x27, _CFRINIT1@GOTPAGE
Lloh35:
	ldr	x27, [x27, _CFRINIT1@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x22
	mov	x2, x23
	bl	_stv0900_write_reg
Lloh36:
	adrp	x28, _CFRINIT0@GOTPAGE
Lloh37:
	ldr	x28, [x28, _CFRINIT0@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x22
	mov	x2, x24
	bl	_stv0900_write_reg
	ldr	w1, [x25]
	mov	x0, x22
	mov	w2, #24
	bl	_stv0900_write_reg
	ldp	w3, w2, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_stv0900_wait_for_lock
Lloh38:
	adrp	x26, _TRUE@GOTPAGE
Lloh39:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
Lloh40:
	adrp	x8, _SPECINV_CONTROL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SPECINV_CONTROL@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _STV0900_IQ_FORCE_NORMAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _STV0900_IQ_FORCE_NORMAL@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_stv0900_write_bits
	ldr	w1, [x25]
	mov	x0, x22
	mov	w2, #28
	bl	_stv0900_write_reg
	ldr	w1, [x27]
	mov	x0, x22
	mov	x2, x23
	bl	_stv0900_write_reg
	ldr	w1, [x28]
	mov	x0, x22
	mov	x2, x24
	bl	_stv0900_write_reg
	ldr	w1, [x25]
	mov	x0, x22
	mov	w2, #24
	bl	_stv0900_write_reg
	ldp	w3, w2, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_stv0900_wait_for_lock
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_5:
	ldr	x8, [x22, #8]
	str	x0, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_stv0900_get_signal_params
	mov	x20, x0
	mov	x0, x19
	bl	_stv0900_track_optimization
	b	LBB0_7
LBB0_6:
	ldr	x8, [x23]
	ldr	x9, [x22, #8]
	str	x8, [x9, x21, lsl #3]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_STV0900_NODATA,4,2             ; @STV0900_NODATA
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_HEADER_MODE,4,2                ; @HEADER_MODE
	.comm	_STV0900_DVBS_FOUND,8,3         ; @STV0900_DVBS_FOUND
	.comm	_STV0900_BLIND_SEARCH,8,3       ; @STV0900_BLIND_SEARCH
	.comm	_STV0900_WARM_START,4,2         ; @STV0900_WARM_START
	.comm	_CFR2,4,2                       ; @CFR2
	.comm	_CFR1,4,2                       ; @CFR1
	.comm	_CFR_AUTOSCAN,4,2               ; @CFR_AUTOSCAN
	.comm	_SPECINV_CONTROL,4,2            ; @SPECINV_CONTROL
	.comm	_STV0900_IQ_FORCE_SWAPPED,4,2   ; @STV0900_IQ_FORCE_SWAPPED
	.comm	_DMDISTATE,4,2                  ; @DMDISTATE
	.comm	_CFRINIT1,4,2                   ; @CFRINIT1
	.comm	_CFRINIT0,4,2                   ; @CFRINIT0
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_STV0900_IQ_FORCE_NORMAL,4,2    ; @STV0900_IQ_FORCE_NORMAL
	.no_dead_strip	_stv0900_dvbs1_acq_workaround
.subsections_via_symbols
