	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_search_car_loop
_stv090x_search_car_loop:               ## @stv090x_search_car_loop
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movslq	(%rdi), %rax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdx
	shrq	$63, %rdx
	shrq	$38, %rsi
	addl	%edx, %esi
	imulq	$1759218605, %rax, %rax         ## imm = 0x68DB8BAD
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$44, %rax
	addl	%edx, %eax
	addl	%esi, %eax
	shll	$15, %eax
	movq	8(%rdi), %rdx
	movslq	(%rdx), %rdx
	imulq	$274877907, %rdx, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdx
	shrq	$63, %rdx
	sarq	$38, %rsi
	addl	%edx, %esi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	cmpl	$16384, %eax                    ## imm = 0x4000
	movl	$16384, %edx                    ## imm = 0x4000
	cmovll	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	xorl	%r15d, %r15d
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	cmovel	%eax, %r15d
	leal	(%rbx,%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	negl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	negl	%edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	$1, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_DMDISTATE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	$28, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CFRINIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	255(%r15), %eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	movzbl	%ah, %edx
	movq	%r12, %rdi
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CFRINIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r15b, %edx
	movq	%r12, %rdi
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	$24, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_PDELCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_STV090x_READ_DEMOD
	movq	%rbx, %r14
	movl	%eax, %ebx
	movq	_ALGOSWRST_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD_Px
	movq	_PDELCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movq	%r14, %rbx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	js	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	js	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	subl	%r15d, %eax
	movl	%eax, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	negl	%r15d
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_stv090x_get_dmdlock
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_stv090x_chk_signal
	testl	%r14d, %r14d
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %eax
	subl	%ebx, %eax
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	(%r15,%rbx), %eax
	xorl	%r14d, %r14d
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %eax
	cmpl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jl	LBB0_1
LBB0_16:
	movq	_PDELCTRL1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_ALGOSWRST_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD_Px
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_STV090x_WRITE_DEMOD
	testq	%rax, %rax
	jns	LBB0_18
LBB0_17:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	movl	$-1, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMDISTATE,4,2                  ## @DMDISTATE
	.comm	_CFRINIT1,4,2                   ## @CFRINIT1
	.comm	_CFRINIT0,4,2                   ## @CFRINIT0
	.comm	_PDELCTRL1,4,2                  ## @PDELCTRL1
	.comm	_ALGOSWRST_FIELD,4,2            ## @ALGOSWRST_FIELD
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_search_car_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_search_car_loop
_stv090x_search_car_loop:               ; @stv090x_search_car_loop
	.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
	stp	w4, w2, [sp, #8]                ; 8-byte Folded Spill
	mov	x21, x3
	mov	x23, x1
	mov	x19, x0
	ldrsw	x8, [x0]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x10, x8, x9
	lsr	x11, x10, #63
	lsr	x10, x10, #38
	add	w10, w10, w11
	mov	w11, #35757
	movk	w11, #26843, lsl #16
	mul	x8, x8, x11
	lsr	x11, x8, #63
	lsr	x8, x8, #44
	add	w8, w8, w11
	add	w8, w10, w8
	lsl	w8, w8, #15
	ldr	x10, [x0, #8]
	ldrsw	x10, [x10]
	mul	x9, x10, x9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	sdiv	w8, w8, w9
	mov	w9, #16384
	cmp	w8, #4, lsl #12                 ; =16384
	csel	w27, w8, w9, lt
	sub	w8, w1, w27
	cmp	w3, #0
	csel	w28, w8, wzr, eq
	lsl	w8, w1, #1
	str	w8, [sp]                        ; 4-byte Folded Spill
	neg	w8, w8
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	neg	w26, w27
	mov	w20, #1
Lloh0:
	adrp	x22, _DMDISTATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMDISTATE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PDELCTRL1@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PDELCTRL1@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #28
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_17
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh4:
	adrp	x8, _CFRINIT1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CFRINIT1@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	w8, w28, #255
	cmp	w28, #0
	csel	w8, w8, w28, lt
	ubfx	w2, w8, #8, #8
	mov	x0, x19
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh7:
	adrp	x8, _CFRINIT0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CFRINIT0@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	and	w2, w28, #0xff
	mov	x0, x19
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #24
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x24, x0
Lloh10:
	adrp	x8, _ALGOSWRST_FIELD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ALGOSWRST_FIELD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x24
	bl	_STV090x_WRITE_DEMOD
	tbnz	x0, #63, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w21, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w28, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	sub	w28, w8, w28
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	add	w28, w28, w8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	neg	w28, w28
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_stv090x_get_dmdlock
	mov	x24, x0
	mov	x0, x19
	bl	_stv090x_chk_signal
	cbnz	w24, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w28, w23
	cmp	w8, w27
	b.ge	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w24, #0
	add	w8, w28, w23
	cmp	w8, w26
	b.le	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w20, #1
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w20, w9
	mov	x20, x8
	b.lt	LBB0_1
LBB0_16:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_STV090x_READ_DEMOD
	mov	x20, x0
Lloh13:
	adrp	x8, _ALGOSWRST_FIELD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ALGOSWRST_FIELD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_STV090x_SETFIELD_Px
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_STV090x_WRITE_DEMOD
	tbz	x0, #63, LBB0_18
LBB0_17:
Lloh16:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w24, #-1
LBB0_18:
	mov	x0, x24
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DMDISTATE,4,2                  ; @DMDISTATE
	.comm	_CFRINIT1,4,2                   ; @CFRINIT1
	.comm	_CFRINIT0,4,2                   ; @CFRINIT0
	.comm	_PDELCTRL1,4,2                  ; @PDELCTRL1
	.comm	_ALGOSWRST_FIELD,4,2            ; @ALGOSWRST_FIELD
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_search_car_loop
.subsections_via_symbols
