	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbs_mpeg2_split_fragment
_cbs_mpeg2_split_fragment:              ## @cbs_mpeg2_split_fragment
	.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
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, -44(%rbp)
	movq	8(%rsi), %rdi
	movslq	(%rsi), %rax
	leaq	(%rdi,%rax,4), %rsi
	leaq	-44(%rbp), %rdx
	callq	_avpriv_find_start_code
	movq	%rax, %rbx
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	andl	$-256, %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_9
## %bb.1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r15), %rsi
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	cmpq	%rsi, %rbx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -44(%rbp)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %r13d
	leaq	-4(%rbx), %r14
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rdx
	callq	_avpriv_find_start_code
	movq	%rax, %rbx
	movl	-44(%rbp), %r12d
	movl	$-256, %eax
	andl	%eax, %r12d
	xorl	%r9d, %r9d
	cmpl	$256, %r12d                     ## imm = 0x100
	setne	%r9b
	shlq	$4, %r9
	addq	%rbx, %r9
	subq	%r14, %r9
	addq	$-16, %r9
	sarq	$2, %r9
	movl	4(%r15), %eax
	movl	%eax, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%r14, %r8
	callq	_ff_cbs_insert_unit_data
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$256, %r12d                     ## imm = 0x100
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	-48(%rbp)                       ## 4-byte Folded Spill
	movzbl	-44(%rbp), %eax
	jmp	LBB0_2
LBB0_9:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%eax, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_cbs_mpeg2_split_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbs_mpeg2_split_fragment
_cbs_mpeg2_split_fragment:              ; @cbs_mpeg2_split_fragment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #-1
	str	w8, [sp, #12]
	ldr	x0, [x1, #8]
	ldrsw	x8, [x1]
	add	x1, x0, x8, lsl #2
	add	x2, sp, #12
	bl	_avpriv_find_start_code
	ldr	w8, [sp, #12]
	and	w9, w8, #0xffffff00
	cmp	w9, #256
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x0
	mov	w22, #0
	mov	x25, #-16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldrsw	x10, [x19]
	add	x1, x9, x10, lsl #2
	cmp	x21, x1
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [sp, #12]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w23, w8, #0xff
	sub	x24, x21, #4
	add	x2, sp, #12
	mov	x0, x21
	bl	_avpriv_find_start_code
	mov	x21, x0
	ldr	w8, [sp, #12]
	and	w26, w8, #0xffffff00
	cmp	w26, #256
	csel	x8, x25, xzr, eq
	add	x8, x0, x8
	sub	x8, x8, x24
	asr	x5, x8, #2
	ldr	w6, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_ff_cbs_insert_unit_data
	tbnz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, #256
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	ldrb	w8, [sp, #12]
	b	LBB0_2
LBB0_7:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_cbs_mpeg2_split_fragment
.subsections_via_symbols
