	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_read_cnr
_stv090x_read_cnr:                      ## @stv090x_read_cnr
	.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	%rsi, %rbx
	movq	(%rdi), %r15
	movl	(%r15), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.6:
	movq	_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movq	_LOCK_DEFINITIF_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$5, %edi
	callq	_msleep
	xorl	%r13d, %r13d
	movl	$16, %ebx
	movq	_NOSDATAT_UNNORMED_FIELD@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NOSDATAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movq	%rax, %r12
	movq	_NOSDATAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_MAKEWORD16
	addl	%eax, %r13d
	movl	$1, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_8
## %bb.9:
	leal	15(%r13), %r15d
	testl	%r13d, %r13d
	cmovnsl	%r13d, %r15d
	sarl	$4, %r15d
	movq	_stv090x_s1cn_tab@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	(%rbx), %rdi
	movslq	%eax, %rcx
	leal	-1(%rax), %esi
	movl	-4(%rdi,%rcx,4), %ebx
	subl	(%rdi), %ebx
	movl	%r15d, %edx
	callq	_stv090x_table_lookup
	jmp	LBB0_10
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.2:
	movq	_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movq	_LOCK_DEFINITIF_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$5, %edi
	callq	_msleep
	xorl	%r13d, %r13d
	movl	$16, %ebx
	movq	_NOSPLHT_NORMED_FIELD@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NNOSPLHT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movq	%rax, %r12
	movq	_NNOSPLHT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_MAKEWORD16
	addl	%eax, %r13d
	movl	$1, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_4
## %bb.5:
	leal	15(%r13), %r15d
	testl	%r13d, %r13d
	cmovnsl	%r13d, %r15d
	sarl	$4, %r15d
	movq	_stv090x_s2cn_tab@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	(%rbx), %rdi
	movslq	%eax, %rcx
	leal	-1(%rax), %esi
	movl	-4(%rdi,%rcx,4), %ebx
	subl	12(%rdi), %ebx
	movl	%r15d, %edx
	callq	_stv090x_table_lookup
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
LBB0_10:
	movl	%eax, %ecx
	shll	$16, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSTATUS,4,2                    ## @DSTATUS
	.comm	_LOCK_DEFINITIF_FIELD,4,2       ## @LOCK_DEFINITIF_FIELD
	.comm	_NNOSPLHT1,4,2                  ## @NNOSPLHT1
	.comm	_NOSPLHT_NORMED_FIELD,4,2       ## @NOSPLHT_NORMED_FIELD
	.comm	_NNOSPLHT0,4,2                  ## @NNOSPLHT0
	.comm	_stv090x_s2cn_tab,8,3           ## @stv090x_s2cn_tab
	.comm	_NOSDATAT1,4,2                  ## @NOSDATAT1
	.comm	_NOSDATAT_UNNORMED_FIELD,4,2    ## @NOSDATAT_UNNORMED_FIELD
	.comm	_NOSDATAT0,4,2                  ## @NOSDATAT0
	.comm	_stv090x_s1cn_tab,8,3           ## @stv090x_s1cn_tab
	.no_dead_strip	_stv090x_read_cnr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_read_cnr
_stv090x_read_cnr:                      ; @stv090x_read_cnr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w8, [x20]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
Lloh3:
	adrp	x8, _LOCK_DEFINITIF_FIELD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCK_DEFINITIF_FIELD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cbz	x0, LBB0_11
; %bb.2:
	mov	w0, #5
	bl	_msleep
	mov	w22, #0
	mov	w23, #16
Lloh6:
	adrp	x24, _NOSDATAT1@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NOSDATAT1@GOTPAGEOFF]
Lloh8:
	adrp	x25, _NOSDATAT_UNNORMED_FIELD@GOTPAGE
Lloh9:
	ldr	x25, [x25, _NOSDATAT_UNNORMED_FIELD@GOTPAGEOFF]
Lloh10:
	adrp	x26, _NOSDATAT0@GOTPAGE
Lloh11:
	ldr	x26, [x26, _NOSDATAT0@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x25]
	bl	_STV090x_GETFIELD_Px
	mov	x21, x0
	ldr	w1, [x26]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x25]
	bl	_STV090x_GETFIELD_Px
	mov	x1, x0
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MAKEWORD16
	add	w22, w0, w22
	mov	w0, #1
	bl	_msleep
	subs	w23, w23, #1
	b.ne	LBB0_3
; %bb.4:
	add	w8, w22, #15
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w20, w8, #4
Lloh12:
	adrp	x21, _stv090x_s1cn_tab@GOTPAGE
Lloh13:
	ldr	x21, [x21, _stv090x_s1cn_tab@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x1, x8, #1
	ldr	x0, [x21]
	ldr	w8, [x0, x1, lsl #2]
	ldr	w9, [x0]
	sub	w21, w8, w9
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_stv090x_table_lookup
	b	LBB0_10
LBB0_5:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.6:
Lloh14:
	adrp	x8, _DSTATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DSTATUS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
Lloh17:
	adrp	x8, _LOCK_DEFINITIF_FIELD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOCK_DEFINITIF_FIELD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD_Px
	cbz	x0, LBB0_11
; %bb.7:
	mov	w0, #5
	bl	_msleep
	mov	w22, #0
	mov	w23, #16
Lloh20:
	adrp	x24, _NNOSPLHT1@GOTPAGE
Lloh21:
	ldr	x24, [x24, _NNOSPLHT1@GOTPAGEOFF]
Lloh22:
	adrp	x25, _NOSPLHT_NORMED_FIELD@GOTPAGE
Lloh23:
	ldr	x25, [x25, _NOSPLHT_NORMED_FIELD@GOTPAGEOFF]
Lloh24:
	adrp	x26, _NNOSPLHT0@GOTPAGE
Lloh25:
	ldr	x26, [x26, _NNOSPLHT0@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x25]
	bl	_STV090x_GETFIELD_Px
	mov	x21, x0
	ldr	w1, [x26]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x25]
	bl	_STV090x_GETFIELD_Px
	mov	x1, x0
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MAKEWORD16
	add	w22, w0, w22
	mov	w0, #1
	bl	_msleep
	subs	w23, w23, #1
	b.ne	LBB0_8
; %bb.9:
	add	w8, w22, #15
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w20, w8, #4
Lloh26:
	adrp	x21, _stv090x_s2cn_tab@GOTPAGE
Lloh27:
	ldr	x21, [x21, _stv090x_s2cn_tab@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x1, x8, #1
	ldr	x0, [x21]
	ldr	w8, [x0, x1, lsl #2]
	ldr	w9, [x0, #12]
	sub	w21, w8, w9
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_stv090x_table_lookup
	cmp	w0, #0
	csel	w0, w0, wzr, gt
LBB0_10:
	lsl	w8, w0, #16
	sub	w8, w8, w0
	sdiv	w8, w8, w21
	str	w8, [x19]
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DSTATUS,4,2                    ; @DSTATUS
	.comm	_LOCK_DEFINITIF_FIELD,4,2       ; @LOCK_DEFINITIF_FIELD
	.comm	_NNOSPLHT1,4,2                  ; @NNOSPLHT1
	.comm	_NOSPLHT_NORMED_FIELD,4,2       ; @NOSPLHT_NORMED_FIELD
	.comm	_NNOSPLHT0,4,2                  ; @NNOSPLHT0
	.comm	_stv090x_s2cn_tab,8,3           ; @stv090x_s2cn_tab
	.comm	_NOSDATAT1,4,2                  ; @NOSDATAT1
	.comm	_NOSDATAT_UNNORMED_FIELD,4,2    ; @NOSDATAT_UNNORMED_FIELD
	.comm	_NOSDATAT0,4,2                  ; @NOSDATAT0
	.comm	_stv090x_s1cn_tab,8,3           ; @stv090x_s1cn_tab
	.no_dead_strip	_stv090x_read_cnr
.subsections_via_symbols
