	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_header
_parse_header:                          ## @parse_header
	.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
	cmpl	$12, %edx
	jle	LBB0_15
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$3, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_15:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$28, %r15d
	jb	LBB0_14
## %bb.3:
	addl	$-13, %r15d
	addq	$52, %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	incq	(%r14)
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %rax
	leaq	(%r13,%rax,4), %r13
	cmpl	$14, %r15d
	jle	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ebx
	leaq	4(%r13), %rdi
	callq	_AV_RB24
                                        ## kill: def $eax killed $eax def $rax
	leal	15(%rax), %r12d
	subl	%r12d, %r15d
	jl	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %ecx
	andl	$-2, %ecx
	cmpl	$8, %ecx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rbx
	movq	32(%r14), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpq	%rax, %rbx
	jae	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movl	%r12d, (%rcx,%rax,4)
	movl	%r12d, %edi
	callq	_av_malloc
	movq	(%r14), %rcx
	movq	32(%r14), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	32(%r14), %rax
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_8
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$18, %ebx
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%r14)
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_av_malloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	44(%r13), %rsi
	movl	16(%r14), %edx
	movq	%rax, %rdi
	callq	_memcpy
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	cmpq	$0, 24(%r14)
	je	LBB0_15
	jmp	LBB0_16
LBB0_17:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FLV"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_parse_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_header
_parse_header:                          ; @parse_header
	.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
	cmp	w2, #12
	b.le	LBB0_2
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #3
	bl	_memcmp
	cbz	x0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_3:
	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_4:
	cmp	w21, #28
	b.lo	LBB0_16
; %bb.5:
	sub	w22, w21, #13
	add	x20, x20, #52
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, w21, sxtw #2
	cmp	w22, #14
	b.le	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	ldr	w23, [x0], #4
	bl	_AV_RB24
	add	w21, w0, #15
	subs	w22, w22, w21
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	and	w8, w23, #0xfffffffe
	cmp	w8, #8
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x23, [x19]
	ldr	x0, [x19, #32]
	bl	_FF_ARRAY_ELEMS
	cmp	x23, x0
	b.hs	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldp	x9, x8, [x19]
	str	w21, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_av_malloc
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #32]
	ldr	x0, [x8, x9]
	cbnz	x0, LBB0_6
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w23, #18
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w0, [x19, #16]
	bl	_av_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x1, x20, #44
	ldr	w2, [x19, #16]
	bl	_memcpy
	b	LBB0_7
LBB0_16:
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w0, w9, wzr, eq
	b	LBB0_3
LBB0_17:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FLV"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_parse_header
.subsections_via_symbols
