	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_extradata_mpeg4
_extract_extradata_mpeg4:               ## @extract_extradata_mpeg4
	.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	%rcx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movslq	(%rsi), %rcx
	leaq	(%rax,%rcx,4), %r13
	movq	_UINT32_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	leaq	-44(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, %rax
	jae	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_avpriv_find_start_code
	movl	-44(%rbp), %ecx
	cmpl	$438, %ecx                      ## imm = 0x1B6
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$435, %ecx                      ## imm = 0x1B3
	jne	LBB0_1
LBB0_4:
	subq	8(%r12), %rax
	cmpq	$17, %rax
	jl	LBB0_9
## %bb.5:
	addq	$-16, %rax
	shrq	$2, %rax
	movl	%eax, (%r14)
	movslq	%eax, %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r15
	addq	(%r15), %rdi
	callq	_av_malloc
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	8(%r12), %rsi
	movl	(%r14), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movslq	(%r14), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	movq	(%r15), %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_memset
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movslq	(%r14), %rax
	movq	%rax, %rcx
	shlq	$2, %rcx
	addq	%rcx, 8(%r12)
	subl	%eax, (%r12)
	jmp	LBB0_9
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_extract_extradata_mpeg4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_extradata_mpeg4
_extract_extradata_mpeg4:               ; @extract_extradata_mpeg4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	ldr	x23, [x0]
	ldr	x0, [x1, #8]
	ldrsw	x8, [x1]
	add	x22, x0, x8, lsl #2
Lloh0:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x0, x22
	b.hs	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x2, sp, #12
	mov	x1, x22
	bl	_avpriv_find_start_code
	ldr	w8, [sp, #12]
	cmp	w8, #438
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #435
	b.ne	LBB0_1
LBB0_4:
	ldr	x8, [x19, #8]
	sub	x8, x0, x8
	cmp	x8, #17
	b.lt	LBB0_8
; %bb.5:
	sub	x8, x8, #16
	lsr	x8, x8, #2
	str	w8, [x20]
Lloh3:
	adrp	x22, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, w8, sxtw
	bl	_av_malloc
	str	x0, [x21]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x1, [x19, #8]
	ldr	w2, [x20]
	bl	_memcpy
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x0, x8, x9, lsl #2
	ldr	x2, [x22]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w0, #0
	ldrsw	x8, [x20]
	ldr	x9, [x19, #8]
	add	x9, x9, x8, lsl #2
	str	x9, [x19, #8]
	ldr	w9, [x19]
	sub	w8, w9, w8
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_extract_extradata_mpeg4
.subsections_via_symbols
