	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_mp4_descr
_parse_mp4_descr:                       ## @parse_mp4_descr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdi, %rbx
	movq	%rsi, -32(%rbp)
	movl	%edx, -40(%rbp)
	movl	8(%rdi), %edi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_ff_mp4_read_descr
	movl	%eax, %r14d
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_update_offsets
	movl	-40(%rbp), %r9d
	testl	%r9d, %r9d
	js	LBB0_3
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.2:
	cmpl	%r9d, %r14d
	jg	LBB0_3
## %bb.4:
	movslq	4(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	_MAX_LEVEL@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jle	LBB0_5
## %bb.7:
	movl	-36(%rbp), %ecx
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.8:
	cmpl	%r15d, %ecx
	jne	LBB0_21
## %bb.9:
	movl	%r15d, %ecx
LBB0_10:
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_11
## %bb.12:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_17:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_parse_MP4SLDescrTag
	jmp	LBB0_18
LBB0_3:
	movl	8(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_20
LBB0_5:
	movl	8(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_6
LBB0_21:
	movl	8(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_19
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_14:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_parse_MP4ODescrTag
	jmp	LBB0_18
LBB0_13:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_parse_MP4IODescrTag
	jmp	LBB0_18
LBB0_15:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_parse_MP4ESDescrTag
	jmp	LBB0_18
LBB0_16:
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_parse_MP4DecConfigDescrTag
LBB0_18:
	movl	%eax, %r15d
LBB0_19:
	decl	4(%rbx)
	movl	%r14d, %esi
	addq	-32(%rbp), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_avio_seek
LBB0_20:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tag %x length violation new length %d bytes remaining %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_MAX_LEVEL,8,3                  ## @MAX_LEVEL
L_.str.1:                               ## @.str.1
	.asciz	"Maximum MP4 descriptor level exceeded\n"

L_.str.2:                               ## @.str.2
	.asciz	"Found tag %x expected %x\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_parse_mp4_descr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_mp4_descr
_parse_mp4_descr:                       ; @parse_mp4_descr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x3
	mov	x19, x0
	str	x1, [sp, #40]
	str	w2, [sp, #36]
	ldr	w0, [x0, #8]
	add	x2, sp, #32
	mov	x1, x19
	bl	_ff_mp4_read_descr
	mov	x20, x0
	add	x1, sp, #40
	add	x2, sp, #36
	mov	x0, x19
	bl	_update_offsets
	ldr	w8, [sp, #36]
	tbnz	w8, #31, LBB0_2
; %bb.1:
	cmp	w20, #1
	ccmp	w20, w8, #0, ge
	b.le	LBB0_3
LBB0_2:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	ldr	w9, [sp, #32]
	stp	x20, x8, [sp, #8]
	str	x9, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	b	LBB0_20
LBB0_3:
	ldrsw	x8, [x19, #4]
	add	w9, w8, #1
	str	w9, [x19, #4]
Lloh8:
	adrp	x9, _MAX_LEVEL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX_LEVEL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.le	LBB0_7
; %bb.4:
	ldr	w8, [sp, #32]
	cbz	w21, LBB0_9
; %bb.5:
	cmp	w8, w21
	b.eq	LBB0_10
; %bb.6:
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	stp	x8, x21, [sp]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	bl	_av_log
Lloh21:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh23:
	ldr	w21, [x8]
	b	LBB0_19
LBB0_9:
	mov	x21, x8
LBB0_10:
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.11:
Lloh24:
	adrp	x9, lJTI0_0@PAGE
Lloh25:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, x20
	bl	_parse_MP4SLDescrTag
	b	LBB0_18
LBB0_13:
	mov	w21, #0
	b	LBB0_19
LBB0_14:
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, x20
	bl	_parse_MP4ODescrTag
	b	LBB0_18
LBB0_15:
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, x20
	bl	_parse_MP4IODescrTag
	b	LBB0_18
LBB0_16:
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, x20
	bl	_parse_MP4ESDescrTag
	b	LBB0_18
LBB0_17:
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, x20
	bl	_parse_MP4DecConfigDescrTag
LBB0_18:
	mov	x21, x0
LBB0_19:
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	ldr	x8, [sp, #40]
	add	x1, x8, w20, uxtw
Lloh26:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_avio_seek
LBB0_20:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_16-LBB0_12)>>2
	.byte	(LBB0_17-LBB0_12)>>2
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tag %x length violation new length %d bytes remaining %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_MAX_LEVEL,8,3                  ; @MAX_LEVEL
l_.str.1:                               ; @.str.1
	.asciz	"Maximum MP4 descriptor level exceeded\n"

l_.str.2:                               ; @.str.2
	.asciz	"Found tag %x expected %x\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_parse_mp4_descr
.subsections_via_symbols
