	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_write_box_stsz
_mp4_write_box_stsz:                    ## @mp4_write_box_stsz
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	leaq	-56(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U8
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U24
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U32
	movq	(%r14), %rax
	movq	_MP4_SAMPLE_TABLE_STSZ@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	callq	_WRITE_U32
	cmpq	$0, 16(%r12)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edx
	shll	$2, %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_BYTES
	jmp	LBB0_8
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %r14d
	xorl	%edi, %edi
	callq	_INT64_C
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_vc_container_io_seek
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mp4_writer_read_sample_from_temp
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.3:
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mp4_writer_read_sample_from_temp
	cmpq	(%r14), %rax
	jne	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %esi
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rdx
	callq	_WRITE_U32
	incl	%r13d
	jmp	LBB0_6
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_MP4_SAMPLE_TABLE_STSZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpl	(%rax,%rcx,4), %r13d
	sete	%dil
	callq	_vc_container_assert
LBB0_8:
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version"

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

L_.str.2:                               ## @.str.2
	.asciz	"sample_size"

	.comm	_MP4_SAMPLE_TABLE_STSZ,8,3      ## @MP4_SAMPLE_TABLE_STSZ
L_.str.3:                               ## @.str.3
	.asciz	"sample_count"

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

	.no_dead_strip	_mp4_write_box_stsz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_write_box_stsz
_mp4_write_box_stsz:                    ; @mp4_write_box_stsz
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldp	x9, x8, [x0]
	ldr	x21, [x8]
	ldr	x8, [x21]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8]
	ldr	x22, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U8
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U24
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U32
	ldr	x8, [x22]
Lloh6:
	adrp	x23, _MP4_SAMPLE_TABLE_STSZ@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MP4_SAMPLE_TABLE_STSZ@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w1, [x8, x9, lsl #2]
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_WRITE_U32
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w2, w8, #2
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_BYTES
	b	LBB0_8
LBB0_2:
	ldr	w20, [x21, #8]
	mov	w0, #0
	bl	_INT64_C
	mov	x1, x0
	mov	x0, x20
	bl	_vc_container_io_seek
	mov	x1, sp
	mov	x0, x19
	bl	_mp4_writer_read_sample_from_temp
	mov	w24, #0
Lloh10:
	adrp	x25, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	mov	w24, #0
Lloh12:
	adrp	x20, l_.str.4@PAGE
Lloh13:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_mp4_writer_read_sample_from_temp
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_WRITE_U32
	add	w24, w24, #1
	b	LBB0_4
LBB0_7:
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w24, w8
	cset	w0, eq
	bl	_vc_container_assert
LBB0_8:
	mov	x0, x19
	bl	_STREAM_STATUS
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version"

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

l_.str.2:                               ; @.str.2
	.asciz	"sample_size"

	.comm	_MP4_SAMPLE_TABLE_STSZ,8,3      ; @MP4_SAMPLE_TABLE_STSZ
l_.str.3:                               ; @.str.3
	.asciz	"sample_count"

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

	.no_dead_strip	_mp4_write_box_stsz
.subsections_via_symbols
