	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_extradata_mpeg12
_extract_extradata_mpeg12:              ## @extract_extradata_mpeg12
	.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	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	(%rdi), %r12
	movq	_UINT32_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	8(%rsi), %rsi
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_2
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movl	%ebx, %edi
	cmpq	%rcx, %rax
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %edx
	orl	(%rsi,%rcx,4), %edx
	movl	$1, %ebx
	cmpl	$435, %edx                      ## imm = 0x1B3
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%edi, %edi
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$437, %edx                      ## imm = 0x1B5
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %ebx
	cmpl	$511, %edx                      ## imm = 0x1FF
	jg	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$256, %edx                      ## imm = 0x100
	jl	LBB0_5
## %bb.9:
	cmpl	$4, %ecx
	jb	LBB0_13
## %bb.10:
	addq	$-3, %rcx
	movl	%ecx, (%r14)
	movl	%ecx, %edi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rdi
	callq	_av_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	8(%r13), %rsi
	movl	(%r14), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movslq	(%r14), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	movq	(%rbx), %rdx
	xorl	%esi, %esi
	callq	_memset
	cmpq	$0, (%r12)
	je	LBB0_13
## %bb.12:
	movslq	(%r14), %rax
	movq	%rax, %rcx
	shlq	$2, %rcx
	addq	%rcx, 8(%r13)
	subl	%eax, (%r13)
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	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	_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_mpeg12
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_extradata_mpeg12
_extract_extradata_mpeg12:              ; @extract_extradata_mpeg12
	.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
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	w10, #0
	ldr	x22, [x0]
Lloh0:
	adrp	x9, _UINT32_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UINT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
	ldr	x12, [x1, #8]
	mov	w9, #-3
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	add	x12, x12, #4
	subs	x8, x8, #1
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	orr	w11, w13, w11, lsl #8
	cmp	w11, #435
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w10, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #437
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #511
	b.gt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #256
	b.lt	LBB0_3
; %bb.9:
	add	w8, w9, #3
	cmp	w8, #4
	b.lo	LBB0_13
; %bb.10:
	str	w9, [x20]
Lloh3:
	adrp	x23, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, w9, uxtw
	bl	_av_malloc
	str	x0, [x21]
	cbz	x0, LBB0_14
; %bb.11:
	ldr	x1, [x19, #8]
	ldr	w2, [x20]
	bl	_memcpy
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x0, x8, x9, lsl #2
	ldr	x2, [x23]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.12:
	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]
LBB0_13:
	mov	w0, #0
	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_14:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	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 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_mpeg12
.subsections_via_symbols
