	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_read_boxes
_mp4_read_boxes:                        ## @mp4_read_boxes
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r15
	movq	(%r15), %r12
	callq	_STREAM_POSITION
	movl	(%rbx), %eax
	incl	%eax
	movl	%eax, (%rbx)
	cmpq	(%r15), %r12
	jne	LBB0_9
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	testq	%r14, %r14
	js	LBB0_5
## %bb.2:
	movq	%r14, %r15
	movq	_MP4_BOX_MIN_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jg	LBB0_8
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MP4_BOX_MIN_HEADER_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jl	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_STREAM_POSITION
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mp4_read_box
	movq	%rax, %r12
	testq	%r14, %r14
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_STREAM_POSITION
	addq	%r15, %rbx
	subq	%rax, %rbx
	movq	%rbx, %r15
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_3
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
LBB0_9:
	decl	%eax
	movl	%eax, (%rbx)
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_MP4_BOX_MIN_HEADER_SIZE,8,3    ## @MP4_BOX_MIN_HEADER_SIZE
	.no_dead_strip	_mp4_read_boxes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_read_boxes
_mp4_read_boxes:                        ; @mp4_read_boxes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x25, [x8]
Lloh0:
	adrp	x26, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x22, [x26]
	bl	_STREAM_POSITION
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	ldr	x9, [x26]
	cmp	x22, x9
	b.ne	LBB0_9
; %bb.1:
Lloh2:
	adrp	x27, _MP4_BOX_MIN_HEADER_SIZE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MP4_BOX_MIN_HEADER_SIZE@GOTPAGEOFF]
	mov	x23, x20
	tbnz	x20, #63, LBB0_5
; %bb.2:
	ldr	x8, [x27]
	mov	x23, x20
	cmp	x8, x20
	b.gt	LBB0_8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	tbnz	x20, #63, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
	cmp	x23, x8
	b.lt	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_STREAM_POSITION
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x19
	bl	_mp4_read_box
	mov	x22, x0
	tbnz	x20, #63, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_STREAM_POSITION
	add	x8, x24, x23
	sub	x23, x8, x0
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	cmp	x22, x8
	b.eq	LBB0_3
LBB0_8:
	ldr	w8, [x25]
LBB0_9:
	sub	w8, w8, #1
	str	w8, [x25]
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_MP4_BOX_MIN_HEADER_SIZE,8,3    ; @MP4_BOX_MIN_HEADER_SIZE
	.no_dead_strip	_mp4_read_boxes
.subsections_via_symbols
