	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mpga_packetizer_packetize
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mpga_packetizer_packetize:             ## @mpga_packetizer_packetize
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	8(%rax), %r15
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%rax), %rbx
	movq	_MPGA_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	24(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	64(%r15), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leaq	4(%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	40(%r15), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	leaq	60(%r15), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	leaq	20(%r15), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	48(%r15), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	(%r15), %eax
	leaq	LJTI0_0(%rip), %r13
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	jmp	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_bytestream_skip_byte
	movl	56(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 56(%r15)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_LOG_DEBUG
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$131, (%r15)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, %rdi
	callq	_bytestream_skip_byte
	incl	56(%r15)
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_bytestream_peek
	cmpl	(%r14), %eax
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$255, (%r12)
	jne	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	4(%r12), %eax
	notl	%eax
	testb	$-32, %al
	jne	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$132, (%r15)
	jmp	LBB0_13
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$132, (%r15)
	jne	LBB0_23
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_MPGA_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_bytestream_peek
	cmpl	(%r14), %eax
	jne	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-144(%rbp), %r9                 ## 8-byte Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	callq	_mpga_read_header
	addq	$32, %rsp
	leaq	L_.str.1(%rip), %rsi
	cmpl	(%r14), %eax
	jne	LBB0_43
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%r15), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jne	LBB0_43
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r15), %eax
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jne	LBB0_43
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	L_.str.2(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_43
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$128, (%r15)
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MPGA_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_bytestream_peek_at
	cmpl	(%r14), %eax
	jne	LBB0_5
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	subq	$32, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	$0, 16(%rsp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	leaq	-100(%rbp), %rcx
	leaq	-96(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_mpga_read_header
	addq	$32, %rsp
	leaq	L_.str.3(%rip), %rsi
	cmpl	(%r14), %eax
	jne	LBB0_43
## %bb.27:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	leaq	L_.str.1(%rip), %rsi
	cmpl	-100(%rbp), %eax
	jne	LBB0_43
## %bb.28:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	leaq	L_.str.1(%rip), %rsi
	cmpl	-96(%rbp), %eax
	je	LBB0_29
LBB0_43:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	callq	_LOG_ERROR
	movl	$129, %eax
LBB0_44:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, (%r15)
	jmp	LBB0_1
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$130, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	_VC_PACKETIZER_FLAG_FLUSH@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_44
LBB0_23:
	movq	_VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_29:
	movl	$130, (%r15)
LBB0_30:
	movl	56(%r15), %edx
	testl	%edx, %edx
	je	LBB0_32
## %bb.31:
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_DEBUG
LBB0_32:
	movl	$0, 56(%r15)
	movq	48(%r15), %rsi
	movq	%rbx, %rdi
	callq	_bytestream_skip
	movq	4(%r15), %rax
	movq	%rax, 12(%r15)
	movl	40(%r15), %esi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_vc_container_time_set_samplerate
	leaq	-92(%rbp), %rsi
	leaq	-156(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_bytestream_get_timestamps
	movl	-92(%rbp), %esi
	movq	%r12, %rdi
	callq	_vc_container_time_set
	movq	$0, 32(%r15)
	movl	$133, (%r15)
LBB0_33:
	movq	%rbx, %rdi
	callq	_bytestream_size
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	movq	_VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPCREL(%rip), %rax
	jl	LBB0_24
## %bb.34:
	movq	32(%r15), %rax
	subq	%rax, %rcx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%rcx, (%r12)
	movq	_VC_CONTAINER_TIME_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r12)
	movl	%ecx, 24(%r12)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r12)
	testq	%rax, %rax
	jne	LBB0_36
## %bb.35:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_vc_container_time_get
	movl	%eax, 20(%r12)
	movl	%eax, 24(%r12)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
LBB0_36:
	movq	_VC_PACKETIZER_FLAG_INFO@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	jne	LBB0_42
## %bb.37:
	movq	_VC_PACKETIZER_FLAG_SKIP@GOTPCREL(%rip), %rax
	movq	(%r12), %rsi
	testl	%ecx, (%rax)
	je	LBB0_39
## %bb.38:
	movq	%rbx, %rdi
	callq	_bytestream_skip
	jmp	LBB0_40
LBB0_39:
	movl	12(%r12), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_MIN
	movq	%rax, (%r12)
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_bytestream_get
LBB0_40:
	movq	32(%r15), %rax
	addq	(%r12), %rax
	movq	%rax, 32(%r15)
	cmpq	24(%r15), %rax
	jne	LBB0_42
## %bb.41:
	movl	20(%r15), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_vc_container_time_add
	movl	$132, (%r15)
LBB0_42:
	movq	%r14, %rax
LBB0_24:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_45
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_30
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_33
	.end_data_region
                                        ## -- End function
	.comm	_MPGA_HEADER_SIZE,4,2           ## @MPGA_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lost sync"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_INCOMPLETE_DATA,4,2 ## @VC_CONTAINER_ERROR_INCOMPLETE_DATA
L_.str.1:                               ## @.str.1
	.asciz	"invalid header"

L_.str.2:                               ## @.str.2
	.asciz	"free format not supported"

	.comm	_VC_PACKETIZER_FLAG_FLUSH,4,2   ## @VC_PACKETIZER_FLAG_FLUSH
L_.str.3:                               ## @.str.3
	.asciz	"invalid next header"

L_.str.4:                               ## @.str.4
	.asciz	"recovered sync after %i bytes"

	.comm	_VC_CONTAINER_TIME_UNKNOWN,4,2  ## @VC_CONTAINER_TIME_UNKNOWN
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_PACKETIZER_FLAG_INFO,4,2    ## @VC_PACKETIZER_FLAG_INFO
	.comm	_VC_PACKETIZER_FLAG_SKIP,4,2    ## @VC_PACKETIZER_FLAG_SKIP
	.no_dead_strip	_mpga_packetizer_packetize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpga_packetizer_packetize
_mpga_packetizer_packetize:             ; @mpga_packetizer_packetize
	.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
	sub	sp, sp, #80
	stur	w2, [x29, #-140]                ; 4-byte Folded Spill
	stur	x1, [x29, #-152]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x19, [x0]
	ldr	x28, [x19, #8]
	add	x21, x19, #4
Lloh3:
	adrp	x8, _MPGA_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPGA_HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	add	x23, x28, #24
	add	x9, x28, #64
	add	x26, x28, #4
	add	x27, x28, #8
	add	x8, x28, #40
	stp	x8, x9, [x29, #-120]            ; 16-byte Folded Spill
	add	x8, x28, #60
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	mov	x25, x28
	ldr	w8, [x25], #48
Lloh8:
	adrp	x20, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh9:
	ldr	x20, [x20, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh10:
	adrp	x22, _VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPAGE
Lloh11:
	ldr	x22, [x22, _VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPAGEOFF]
	add	x9, x28, #20
	stur	x9, [x29, #-136]                ; 8-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	bl	_LOG_ERROR
	mov	w8, #129
	str	w8, [x28]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x11, lJTI0_0@PAGE
Lloh15:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x8, LBB0_5
	ldrb	w10, [x11, x9]
	add	x8, x8, x10, lsl #2
	br	x8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23]
	b	LBB0_23
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_bytestream_skip_byte
	ldr	w8, [x28, #56]
	add	w9, w8, #1
	str	w9, [x28, #56]
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_LOG_DEBUG
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #131
	str	w8, [x28]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x21
	bl	_bytestream_skip_byte
	ldr	w8, [x28, #56]
	add	w8, w8, #1
	str	w8, [x28, #56]
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x24
	mov	w2, #2
	bl	_bytestream_peek
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x24]
	cmp	w8, #255
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x24, #4]
	mvn	w8, w8
	tst	w8, #0xe0
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #132
	str	w8, [x28]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	cmp	w8, #132
	b.ne	LBB0_44
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _MPGA_HEADER_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MPGA_HEADER_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	bl	_bytestream_peek
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_44
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x25, [sp, #-16]!
	mov	x0, x24
	mov	x1, x23
	ldp	x5, x2, [x29, #-120]            ; 16-byte Folded Reload
	mov	x3, x26
	mov	x4, x27
	ldp	x7, x6, [x29, #-136]            ; 16-byte Folded Reload
	bl	_mpga_read_header
	add	sp, sp, #16
	ldr	w8, [x20]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28, #12]
	cbz	w8, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x26]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28, #16]
	cbz	w8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x27]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x23]
	cbz	x1, LBB0_1
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #128
	str	w8, [x28]
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh27:
	adrp	x8, _MPGA_HEADER_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MPGA_HEADER_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x24
	bl	_bytestream_peek_at
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [sp, #-16]!
	sub	x3, x29, #92
	sub	x4, x29, #96
	mov	x0, x24
	mov	x1, #0
	mov	x2, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_mpga_read_header
	add	sp, sp, #16
	ldr	w8, [x20]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	ldur	w9, [x29, #-92]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	ldur	w9, [x29, #-96]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	cmp	w8, w9
	b.ne	LBB0_2
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh36:
	adrp	x8, _VC_PACKETIZER_FLAG_FLUSH@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VC_PACKETIZER_FLAG_FLUSH@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldur	w9, [x29, #-140]                ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_44
; %bb.28:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #130
	str	w8, [x28]
	b	LBB0_3
LBB0_29:
	mov	w8, #130
	str	w8, [x28]
LBB0_30:
	ldr	w8, [x28, #56]
	cbz	w8, LBB0_32
; %bb.31:
	str	x8, [sp, #-16]!
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #0
	bl	_LOG_DEBUG
	add	sp, sp, #16
LBB0_32:
	str	wzr, [x28, #56]
	ldr	x1, [x28, #48]
	mov	x0, x21
	bl	_bytestream_skip
	ldur	d0, [x28, #4]
	stur	d0, [x28, #12]
	ldr	w1, [x28, #40]
	mov	x0, x19
	mov	w2, #1
	bl	_vc_container_time_set_samplerate
	sub	x1, x29, #100
	sub	x2, x29, #104
	mov	x0, x21
	mov	w3, #1
	bl	_bytestream_get_timestamps
	ldur	w1, [x29, #-100]
	mov	x0, x19
	bl	_vc_container_time_set
	str	xzr, [x28, #32]
	mov	w8, #133
	str	w8, [x28]
LBB0_33:
	mov	x0, x21
	bl	_bytestream_size
	ldr	x8, [x23]
	cmp	x0, x8
	b.ge	LBB0_35
; %bb.34:
Lloh41:
	adrp	x22, _VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPAGE
Lloh42:
	ldr	x22, [x22, _VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPAGEOFF]
	b	LBB0_44
LBB0_35:
	ldr	x9, [x28, #32]
	sub	x8, x8, x9
	ldur	x20, [x29, #-152]               ; 8-byte Folded Reload
	str	x8, [x20]
Lloh43:
	adrp	x8, _VC_CONTAINER_TIME_UNKNOWN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _VC_CONTAINER_TIME_UNKNOWN@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh46:
	adrp	x10, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGE
Lloh47:
	ldr	x10, [x10, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	stp	w10, w8, [x20, #16]
	cbnz	x9, LBB0_37
; %bb.36:
	mov	x0, x19
	bl	_vc_container_time_get
Lloh49:
	adrp	x8, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGE
Lloh50:
	ldr	x8, [x8, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGEOFF]
	stp	w0, w0, [x20, #20]
Lloh51:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
LBB0_37:
Lloh52:
	adrp	x8, _VC_PACKETIZER_FLAG_INFO@GOTPAGE
Lloh53:
	ldr	x8, [x8, _VC_PACKETIZER_FLAG_INFO@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	ldur	w9, [x29, #-140]                ; 4-byte Folded Reload
	tst	w8, w9
	b.ne	LBB0_43
; %bb.38:
Lloh55:
	adrp	x8, _VC_PACKETIZER_FLAG_SKIP@GOTPAGE
Lloh56:
	ldr	x8, [x8, _VC_PACKETIZER_FLAG_SKIP@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	ldr	x1, [x20]
	tst	w8, w9
	b.eq	LBB0_40
; %bb.39:
	mov	x0, x21
	bl	_bytestream_skip
	b	LBB0_41
LBB0_40:
	ldr	w8, [x20, #12]
	mov	x0, x1
	mov	x1, x8
	bl	_MIN
	mov	x2, x0
	str	x0, [x20]
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_bytestream_get
LBB0_41:
	ldr	x8, [x20]
	ldp	x10, x9, [x28, #24]
	add	x8, x9, x8
	cmp	x8, x10
	str	x8, [x28, #32]
	b.ne	LBB0_43
; %bb.42:
	ldr	w1, [x28, #20]
	mov	x0, x19
	bl	_vc_container_time_add
	mov	w8, #132
	str	w8, [x28]
LBB0_43:
Lloh58:
	adrp	x22, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh59:
	ldr	x22, [x22, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_44:
	ldr	w0, [x22]
	ldur	x8, [x29, #-88]
Lloh60:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.45:
	sub	sp, x29, #80
	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
LBB0_46:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_30-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_33-LBB0_5)>>2
                                        ; -- End function
	.comm	_MPGA_HEADER_SIZE,4,2           ; @MPGA_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lost sync"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_INCOMPLETE_DATA,4,2 ; @VC_CONTAINER_ERROR_INCOMPLETE_DATA
l_.str.1:                               ; @.str.1
	.asciz	"invalid header"

l_.str.2:                               ; @.str.2
	.asciz	"free format not supported"

	.comm	_VC_PACKETIZER_FLAG_FLUSH,4,2   ; @VC_PACKETIZER_FLAG_FLUSH
l_.str.3:                               ; @.str.3
	.asciz	"invalid next header"

l_.str.4:                               ; @.str.4
	.asciz	"recovered sync after %i bytes"

	.comm	_VC_CONTAINER_TIME_UNKNOWN,4,2  ; @VC_CONTAINER_TIME_UNKNOWN
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_PACKETIZER_FLAG_INFO,4,2    ; @VC_PACKETIZER_FLAG_INFO
	.comm	_VC_PACKETIZER_FLAG_SKIP,4,2    ; @VC_PACKETIZER_FLAG_SKIP
	.no_dead_strip	_mpga_packetizer_packetize
.subsections_via_symbols
