	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_vitc_line
_read_vitc_line:                        ## @read_vitc_line
	.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	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	js	LBB0_2
## %bb.1:
	movl	%r8d, %edi
	callq	_FFMIN
	movl	%eax, %r8d
LBB0_2:
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_29
## %bb.3:
	movslq	%ebx, %rax
	movslq	%r14d, %r15
	shlq	$3, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -72(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	%ebx, %eax
	je	LBB0_29
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_20 Depth 3
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rdi
	movq	_LINE_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	testl	%r14d, %r14d
	jle	LBB0_28
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_20 Depth 3
	cmpl	%r14d, %ebx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jge	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	16(%r13), %rax
	movslq	%ebx, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rax, (%r12,%rbx,8)
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_8
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	%r14d, %ebx
	jge	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	24(%r13), %rax
	movslq	%ebx, %rbx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rax, (%r12,%rbx,8)
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=3
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	%r14d, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	32(%r13), %eax
	addl	$10, %eax
	cltq
	imulq	$-1717986919, %rax, %rdi        ## imm = 0x99999999
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$35, %rdi
	addl	%eax, %edi
	addl	%ebx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_FFMAX
	movl	%eax, %r15d
	movl	32(%r13), %eax
	addl	%r15d, %eax
	cmpl	%r14d, %eax
	jg	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_get_pit_avg3
	cmpq	16(%r13), %rax
	jl	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=2
	movslq	32(%r13), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	addl	%r15d, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_get_pit_avg3
	cmpq	24(%r13), %rax
	jg	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=3
	incl	%r14d
	cmpl	$8, %r14d
	je	LBB0_23
LBB0_20:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	2(%r14), %eax
	imull	32(%r13), %eax
	cltq
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	addl	%r15d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_get_pit_avg3
	cmpq	40(%r13), %rax
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movq	8(%r13), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	orl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	1(%rcx), %rax
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$8, %rcx
	movq	%rax, %rcx
	jb	LBB0_6
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$9, %eax
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %rdi
	callq	_get_vitc_crc
	movq	8(%r13), %rcx
	cmpl	32(%rcx), %eax
	jne	LBB0_28
## %bb.27:
	movl	$1, %eax
	jmp	LBB0_30
LBB0_29:
	xorl	%eax, %eax
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_DATA_SIZE,4,2             ## @LINE_DATA_SIZE
	.no_dead_strip	_read_vitc_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_vitc_line
_read_vitc_line:                        ; @read_vitc_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x1, [x0]
	tbnz	x1, #63, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_FFMIN
	mov	x24, x0
LBB0_2:
	cmp	w24, #1
	b.lt	LBB0_30
; %bb.3:
	mov	w25, #0
	sxtw	x26, w19
	sbfiz	x8, x23, #3, #32
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	w27, #1
	mov	w21, #26215
	movk	w21, #26214, lsl #16
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	add	w25, w25, #1
	cmp	w25, w24
	b.eq	LBB0_30
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_24 Depth 3
	ldr	x0, [x22, #8]
Lloh0:
	adrp	x8, _LINE_DATA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINE_DATA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	cmp	w19, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w25, [sp, #28]                  ; 4-byte Folded Spill
	mov	x28, #0
	mov	w24, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x28, #1
	cmp	w24, w19
	ccmp	x28, #8, #2, lt
	mov	x28, x8
	b.hs	LBB0_27
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_24 Depth 3
	cmp	w24, w19
	b.ge	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x22, #16]
	sxtw	x24, w24
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x20, x24, lsl #3]
	cmp	x9, x8
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	add	x24, x24, #1
	cmp	x26, x24
	b.ne	LBB0_10
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w24, w19
	b.ge	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x22, #24]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x24, w24
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x20, x24, lsl #3]
	cmp	x9, x8
	b.le	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	add	x24, x24, #1
	cmp	x26, x24
	b.ne	LBB0_15
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x24, x19
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x22, #32]
	add	w8, w8, #10
	mov	w9, #-1717986919
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #3
	add	w0, w8, w24
	mov	w1, #1
	bl	_FFMAX
	ldr	w8, [x22, #32]
	add	w8, w8, w0
	cmp	w8, w19
	b.gt	LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_get_pit_avg3
	ldr	x8, [x22, #16]
	cmp	x0, x8
	b.lt	LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=2
	ldrsw	x8, [x22, #32]
	mul	x8, x8, x21
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #2
	add	w1, w8, w23
	mov	x0, x20
	bl	_get_pit_avg3
	ldr	x8, [x22, #24]
	cmp	x0, x8
	b.gt	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w25, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=3
	add	w25, w25, #1
	cmp	w25, #8
	b.eq	LBB0_7
LBB0_24:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w8, w25, #2
	ldr	w9, [x22, #32]
	mul	w8, w9, w8
	smull	x8, w8, w21
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #2
	add	w24, w8, w23
	mov	x0, x20
	mov	x1, x24
	bl	_get_pit_avg3
	ldr	x8, [x22, #40]
	cmp	x0, x8
	b.le	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=3
	lsl	w8, w27, w25
	ldr	x9, [x22, #8]
	lsl	x10, x28, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_23
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x28
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #9
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	b.ne	LBB0_4
; %bb.28:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, #8]
	bl	_get_vitc_crc
	ldr	x8, [x22, #8]
	ldr	w8, [x8, #32]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.29:
	mov	w0, #1
	b	LBB0_31
LBB0_30:
	mov	w0, #0
LBB0_31:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_DATA_SIZE,4,2             ; @LINE_DATA_SIZE
	.no_dead_strip	_read_vitc_line
.subsections_via_symbols
