	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_read_box_esds
_mp4_read_box_esds:                     ## @mp4_read_box_esds
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	leaq	L_.str(%rip), %rsi
	callq	_MP4_SKIP_U8
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_SKIP_U24
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_mp4_read_esds_descriptor_header
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.1:
	movl	-36(%rbp), %eax
	cmpl	$3, %eax
	jne	LBB0_10
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_SKIP_U16
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_READ_U8
	movq	%rax, %r15
	testb	$-128, %r15b
	jne	LBB0_3
## %bb.4:
	testb	$64, %r15b
	jne	LBB0_5
LBB0_6:
	testb	$32, %r15b
	je	LBB0_8
LBB0_7:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_SKIP_U16
LBB0_8:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_mp4_read_esds_descriptor_header
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.9:
	movl	-36(%rbp), %eax
LBB0_10:
	cmpl	$4, %eax
	jne	LBB0_18
## %bb.11:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_READ_U8
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_SKIP_U8
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_SKIP_U24
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_SKIP_U32
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_READ_U32
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	cmpq	$0, -48(%rbp)
	jle	LBB0_18
## %bb.12:
	cmpl	$14, -40(%rbp)
	jl	LBB0_18
## %bb.13:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_mp4_read_esds_descriptor_header
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.14:
	cmpl	$5, -36(%rbp)
	jne	LBB0_18
## %bb.15:
	movl	-40(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vc_container_track_allocate_extradata
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.17:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%rbx, %rdi
	callq	_MP4_READ_BYTES
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
LBB0_18:
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_SKIP_U16
	testb	$64, %r15b
	je	LBB0_6
LBB0_5:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_MP4_READ_U8
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_MP4_SKIP_STRING
	testb	$32, %r15b
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version"

L_.str.1:                               ## @.str.1
	.asciz	"flags"

	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"es_id"

L_.str.3:                               ## @.str.3
	.asciz	"depend_on_es_id"

L_.str.4:                               ## @.str.4
	.asciz	"url_size"

L_.str.5:                               ## @.str.5
	.asciz	"url"

L_.str.6:                               ## @.str.6
	.asciz	"OCR_es_id"

L_.str.7:                               ## @.str.7
	.asciz	"object_type_indication"

L_.str.8:                               ## @.str.8
	.asciz	"stream_type"

L_.str.9:                               ## @.str.9
	.asciz	"buffer_size_db"

L_.str.10:                              ## @.str.10
	.asciz	"max_bitrate"

L_.str.11:                              ## @.str.11
	.asciz	"avg_bitrate"

	.no_dead_strip	_mp4_read_box_esds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_read_box_esds
_mp4_read_box_esds:                     ; @mp4_read_box_esds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	x1, [sp, #8]
	ldp	x9, x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x9, x8, lsl #3]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_MP4_SKIP_U8
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_MP4_SKIP_U24
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x19
	bl	_mp4_read_esds_descriptor_header
Lloh4:
	adrp	x22, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.1:
	ldr	w8, [sp]
	cmp	w8, #3
	b.ne	LBB0_8
; %bb.2:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_MP4_SKIP_U16
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_MP4_READ_U8
	mov	x21, x0
	tbnz	w21, #7, LBB0_18
; %bb.3:
	tbnz	w21, #6, LBB0_19
LBB0_4:
	tbz	w21, #5, LBB0_6
LBB0_5:
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_MP4_SKIP_U16
LBB0_6:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x19
	bl	_mp4_read_esds_descriptor_header
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.7:
	ldr	w8, [sp]
LBB0_8:
	cmp	w8, #4
	b.ne	LBB0_16
; %bb.9:
Lloh12:
	adrp	x1, l_.str.7@PAGE
Lloh13:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_MP4_READ_U8
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	str	x0, [x8]
Lloh14:
	adrp	x1, l_.str.8@PAGE
Lloh15:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_MP4_SKIP_U8
Lloh16:
	adrp	x1, l_.str.9@PAGE
Lloh17:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_MP4_SKIP_U24
Lloh18:
	adrp	x1, l_.str.10@PAGE
Lloh19:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_MP4_SKIP_U32
Lloh20:
	adrp	x1, l_.str.11@PAGE
Lloh21:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_MP4_READ_U32
	ldr	x8, [x20]
	str	w0, [x8, #8]
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.10:
	ldr	w8, [sp, #4]
	cmp	w8, #14
	b.lt	LBB0_16
; %bb.11:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x19
	bl	_mp4_read_esds_descriptor_header
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.12:
	ldr	w8, [sp]
	cmp	w8, #5
	b.ne	LBB0_16
; %bb.13:
	ldr	w2, [sp, #4]
	cbz	w2, LBB0_16
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_vc_container_track_allocate_extradata
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.15:
	ldr	x8, [x20]
	ldr	w1, [x8]
	ldr	w2, [sp, #4]
	mov	x0, x19
	bl	_MP4_READ_BYTES
	ldr	x8, [x20]
	str	w0, [x8, #4]
LBB0_16:
	mov	x0, x19
	bl	_STREAM_STATUS
LBB0_17:
	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
	add	sp, sp, #64
	ret
LBB0_18:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_MP4_SKIP_U16
	tbz	w21, #6, LBB0_4
LBB0_19:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_MP4_READ_U8
	mov	x1, x0
Lloh26:
	adrp	x2, l_.str.5@PAGE
Lloh27:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MP4_SKIP_STRING
	tbnz	w21, #5, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version"

l_.str.1:                               ; @.str.1
	.asciz	"flags"

	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"es_id"

l_.str.3:                               ; @.str.3
	.asciz	"depend_on_es_id"

l_.str.4:                               ; @.str.4
	.asciz	"url_size"

l_.str.5:                               ; @.str.5
	.asciz	"url"

l_.str.6:                               ; @.str.6
	.asciz	"OCR_es_id"

l_.str.7:                               ; @.str.7
	.asciz	"object_type_indication"

l_.str.8:                               ; @.str.8
	.asciz	"stream_type"

l_.str.9:                               ; @.str.9
	.asciz	"buffer_size_db"

l_.str.10:                              ; @.str.10
	.asciz	"max_bitrate"

l_.str.11:                              ; @.str.11
	.asciz	"avg_bitrate"

	.no_dead_strip	_mp4_read_box_esds
.subsections_via_symbols
