	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpegts_probe
_mpegts_probe:                          ## @mpegts_probe
	.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
	movl	(%rdi), %eax
	movq	_TS_FEC_PACKET_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	jle	LBB0_3
## %bb.4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, %r13d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	$100, %esi
	callq	_FFMIN
	movl	%eax, %ebx
	movq	_TS_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	imull	%r14d, %eax
	movslq	%eax, %rdi
	addq	8(%r15), %rdi
	movl	%edx, %esi
	imull	%ebx, %esi
	movl	$1, %ecx
	callq	_analyze
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_TS_DVHS_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	imull	%r14d, %eax
	movslq	%eax, %rdi
	addq	8(%r15), %rdi
	movl	%edx, %esi
	imull	%ebx, %esi
	movl	$1, %ecx
	callq	_analyze
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_TS_FEC_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	imull	%r14d, %eax
	movslq	%eax, %rdi
	addq	8(%r15), %rdi
	imull	%edx, %ebx
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_analyze
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_FFMAX3
	addl	%eax, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_FFMAX
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	$100, %r14d
	addl	$-100, %r13d
	cmpl	%r14d, %ebx
	jg	LBB0_5
## %bb.6:
	addl	%r12d, %r12d
	leal	(%r12,%r12,4), %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_3:
	xorl	%eax, %eax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_7:
	cltd
	idivl	%ebx
	movl	%eax, %r14d
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ff_dlog
	cmpl	$11, %ebx
	jl	LBB0_10
## %bb.8:
	cmpl	$7, %r14d
	jl	LBB0_10
## %bb.9:
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	addl	$-10, %eax
	jmp	LBB0_16
LBB0_10:
	cmpl	$10, %ebx
	jl	LBB0_13
## %bb.11:
	cmpl	$7, %r14d
	jge	LBB0_12
LBB0_13:
	cmpl	$10, %ebx
	jl	LBB0_15
## %bb.14:
	cmpl	$70, -44(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_15
LBB0_12:
	movq	_AVPROBE_SCORE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	leal	(%r14,%rcx), %eax
	addl	$-10, %eax
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	cmpl	$7, %r14d
	setge	%al
	addl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_FEC_PACKET_SIZE,4,2         ## @TS_FEC_PACKET_SIZE
	.comm	_TS_PACKET_SIZE,4,2             ## @TS_PACKET_SIZE
	.comm	_TS_DVHS_PACKET_SIZE,4,2        ## @TS_DVHS_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TS score: %d %d\n"

	.comm	_AVPROBE_SCORE_MAX,4,2          ## @AVPROBE_SCORE_MAX
	.comm	_CHECK_BLOCK,4,2                ## @CHECK_BLOCK
	.comm	_CHECK_COUNT,4,2                ## @CHECK_COUNT
	.no_dead_strip	_mpegts_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpegts_probe
_mpegts_probe:                          ; @mpegts_probe
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x26, _TS_FEC_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TS_FEC_PACKET_SIZE@GOTPAGEOFF]
	ldr	w9, [x26]
	sdiv	w25, w8, w9
	cbz	w25, LBB0_5
; %bb.1:
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, x0
	mov	w19, #0
	mov	w27, #0
	mov	w28, #0
	mov	x21, x25
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #100
	bl	_FFMIN
	mov	x22, x0
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _TS_PACKET_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TS_PACKET_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mul	w9, w2, w28
	add	x0, x8, w9, sxtw
	mul	w1, w2, w22
	mov	w3, #1
	bl	_analyze
	mov	x23, x0
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _TS_DVHS_PACKET_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TS_DVHS_PACKET_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	mul	w9, w2, w28
	add	x0, x8, w9, sxtw
	mul	w1, w2, w22
	mov	w3, #1
	bl	_analyze
	mov	x24, x0
	ldr	x8, [x20, #8]
	ldr	w2, [x26]
	mul	w9, w2, w28
	add	x0, x8, w9, sxtw
	mul	w1, w2, w22
	mov	w3, #1
	bl	_analyze
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_FFMAX3
	mov	x1, x0
	add	w27, w0, w27
	mov	x0, x19
	bl	_FFMAX
	mov	x19, x0
	add	w28, w28, #100
	sub	w21, w21, #100
	cmp	w25, w28
	b.gt	LBB0_3
; %bb.4:
	add	w8, w27, w27, lsl #2
	lsl	w8, w8, #1
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_14
LBB0_6:
	mov	w8, #0
	mov	w19, #0
LBB0_7:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x9, w19, w9
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w3, w9, w10
	sdiv	w20, w8, w25
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x20
	bl	_ff_dlog
	cmp	w25, #10
	ccmp	w20, #7, #8, gt
	b.ge	LBB0_12
; %bb.8:
	cmp	w25, #10
	ccmp	w20, #7, #8, ge
	b.ge	LBB0_11
; %bb.9:
	cmp	w25, #10
	b.lt	LBB0_13
; %bb.10:
	cmp	w19, #70
	b.lt	LBB0_13
LBB0_11:
Lloh10:
	adrp	x8, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w8, w20, w8, asr #1
	sub	w0, w8, #10
	b	LBB0_14
LBB0_12:
Lloh13:
	adrp	x8, _AVPROBE_SCORE_MAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVPROBE_SCORE_MAX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w8, w20, w8
	sub	w0, w8, #10
	b	LBB0_14
LBB0_13:
	cmp	w20, #6
	cset	w8, gt
	lsl	w0, w8, #1
LBB0_14:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_FEC_PACKET_SIZE,4,2         ; @TS_FEC_PACKET_SIZE
	.comm	_TS_PACKET_SIZE,4,2             ; @TS_PACKET_SIZE
	.comm	_TS_DVHS_PACKET_SIZE,4,2        ; @TS_DVHS_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TS score: %d %d\n"

	.comm	_AVPROBE_SCORE_MAX,4,2          ; @AVPROBE_SCORE_MAX
	.comm	_CHECK_BLOCK,4,2                ; @CHECK_BLOCK
	.comm	_CHECK_COUNT,4,2                ; @CHECK_COUNT
	.no_dead_strip	_mpegts_probe
.subsections_via_symbols
