	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg_parse_packet
_mpeg_parse_packet:                     ## @mpeg_parse_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	16(%rbp), %r13d
	cmpl	$4, %r13d
	jle	LBB0_1
## %bb.2:
	movq	%r9, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%r9, %rdi
	callq	_AV_RB32
	leaq	16(%rbx), %rsi
	leal	-4(%r13), %r12d
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.3:
	andl	$67108864, %eax                 ## imm = 0x4000000
	je	LBB0_6
## %bb.4:
	cmpl	$8, %r13d
	ja	LBB0_5
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_5:
	addq	$32, %rbx
	addl	$-8, %r13d
	movl	%r13d, %r12d
	movq	%rbx, %rsi
LBB0_6:
	movq	%rsi, %rbx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_9
## %bb.7:
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movl	(%r14), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mpeg_parse_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg_parse_packet
_mpeg_parse_packet:                     ; @mpeg_parse_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	subs	w21, w6, #4
	b.le	LBB0_4
; %bb.1:
	mov	x23, x6
	mov	x22, x5
	mov	x19, x3
	mov	x20, x2
	mov	x0, x5
	bl	_AV_RB32
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	and	w10, w0, #0x4000000
	cmp	x8, x9
	ccmp	w10, #0, #4, eq
	b.ne	LBB0_3
; %bb.2:
	add	x22, x22, #16
	b	LBB0_6
LBB0_3:
	subs	w21, w23, #8
	b.hi	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_5:
	add	x22, x22, #32
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_9
; %bb.7:
	ldr	w0, [x19, #4]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	mov	w0, #0
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mpeg_parse_packet
.subsections_via_symbols
