	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_get_feclock
_stv090x_get_feclock:                   ## @stv090x_get_feclock
	.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
	testq	%rsi, %rsi
	jle	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PDELSTATUS1@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	testq	%rax, %rax
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_msleep
	addq	$10, %r12
	cmpq	%r14, %r12
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DMDSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_STV090x_READ_DEMOD
	movq	_HEADER_MODE_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movq	%r15, %rcx
	movq	_PKTDELIN_LOCK_FIELD@GOTPCREL(%rip), %r13
	cmpq	$2, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$3, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VSTATUSVIT@GOTPCREL(%rip), %rcx
	movq	_LOCKEDVIT_FIELD@GOTPCREL(%rip), %r13
	jmp	LBB0_5
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMDSTATE,4,2                   ## @DMDSTATE
	.comm	_HEADER_MODE_FIELD,4,2          ## @HEADER_MODE_FIELD
	.comm	_PDELSTATUS1,4,2                ## @PDELSTATUS1
	.comm	_PKTDELIN_LOCK_FIELD,4,2        ## @PKTDELIN_LOCK_FIELD
	.comm	_VSTATUSVIT,4,2                 ## @VSTATUSVIT
	.comm	_LOCKEDVIT_FIELD,4,2            ## @LOCKEDVIT_FIELD
	.no_dead_strip	_stv090x_get_feclock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_get_feclock
_stv090x_get_feclock:                   ; @stv090x_get_feclock
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	x1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
Lloh0:
	adrp	x22, _DMDSTATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMDSTATE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _HEADER_MODE_FIELD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HEADER_MODE_FIELD@GOTPAGEOFF]
Lloh4:
	adrp	x24, _PKTDELIN_LOCK_FIELD@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PKTDELIN_LOCK_FIELD@GOTPAGEOFF]
Lloh6:
	adrp	x25, _PDELSTATUS1@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PDELSTATUS1@GOTPAGEOFF]
Lloh8:
	adrp	x26, _LOCKEDVIT_FIELD@GOTPAGE
Lloh9:
	ldr	x26, [x26, _LOCKEDVIT_FIELD@GOTPAGEOFF]
Lloh10:
	adrp	x27, _VSTATUSVIT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _VSTATUSVIT@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x25
	mov	x28, x24
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x8]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x28]
	bl	_STV090x_GETFIELD_Px
	cbnz	x0, LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_msleep
	add	x21, x21, #10
	cmp	x21, x19
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x23]
	bl	_STV090x_GETFIELD_Px
	cmp	x0, #2
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x0, #3
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x27
	mov	x28, x26
	b	LBB0_3
LBB0_8:
	mov	x0, #0
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMDSTATE,4,2                   ; @DMDSTATE
	.comm	_HEADER_MODE_FIELD,4,2          ; @HEADER_MODE_FIELD
	.comm	_PDELSTATUS1,4,2                ; @PDELSTATUS1
	.comm	_PKTDELIN_LOCK_FIELD,4,2        ; @PKTDELIN_LOCK_FIELD
	.comm	_VSTATUSVIT,4,2                 ; @VSTATUSVIT
	.comm	_LOCKEDVIT_FIELD,4,2            ; @LOCKEDVIT_FIELD
	.no_dead_strip	_stv090x_get_feclock
.subsections_via_symbols
