	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_stsz_tag
_mov_write_stsz_tag:                    ## @mov_write_stsz_tag
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_avio_tell
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ffio_wfourcc
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movl	(%r13), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	8(%r13), %r9
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	movl	$-1, %ebx
	movl	$1, %edi
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	testb	%al, %al
	je	LBB0_10
	jmp	LBB0_12
LBB0_4:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	xorl	%ecx, %ecx
	movl	$-1, %r10d
	movl	$1, %edi
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rcx,8), %eax
	movl	4(%r9,%rcx,8), %ebx
	cltd
	idivl	%ebx
	movl	%eax, %esi
	addl	%ebx, %r12d
	movl	8(%r9,%rcx,8), %eax
	movl	12(%r9,%rcx,8), %r14d
	cltd
	idivl	%r14d
	movl	%eax, %ebx
	cmpl	%r10d, %esi
	movl	$0, %eax
	cmovel	%edi, %eax
	cmpl	$-1, %r10d
	cmovel	%edi, %eax
	cmpl	%esi, %ebx
	movl	$0, %edi
	cmovel	%eax, %edi
	cmpl	$-1, %esi
	cmovel	%eax, %edi
	addl	%r14d, %r12d
	addq	$2, %rcx
	movl	%ebx, %r10d
	cmpq	%rcx, %r11
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movl	(%r9,%rcx,8), %eax
	movl	4(%r9,%rcx,8), %ecx
	cltd
	idivl	%ecx
	xorl	%edx, %edx
	cmpl	%ebx, %eax
	cmovel	%edi, %edx
	cmpl	$-1, %ebx
	cmovnel	%edx, %edi
	addl	%ecx, %r12d
LBB0_8:
	testl	%edi, %edi
	sete	%al
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testb	%al, %al
	jne	LBB0_12
LBB0_10:
	testl	%r8d, %r8d
	je	LBB0_12
## %bb.11:
	movq	8(%r13), %rcx
	movl	(%rcx), %eax
	cltd
	idivl	4(%rcx)
	movl	$1, %edi
	movl	%eax, %esi
	callq	_FFMAX
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_avio_wb32
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_wb32
	jmp	LBB0_19
LBB0_12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_wb32
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.13:
	movq	8(%r13), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_19
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movl	4(%rax,%r12,8), %esi
	testl	%esi, %esi
	jle	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%r12,8), %eax
	cltd
	idivl	%esi
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_avio_wb32
	incl	%ebx
	movq	8(%r13), %rax
	movl	4(%rax,%r12,8), %esi
	cmpl	%esi, %ebx
	jl	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r13), %ecx
	jmp	LBB0_18
LBB0_19:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stsz"

	.no_dead_strip	_mov_write_stsz_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_write_stsz_tag
_mov_write_stsz_tag:                    ; @mov_write_stsz_tag
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w22, #0
	ldr	x9, [x21, #8]
	add	x9, x9, #4
	mov	w10, #-1
	mov	w11, #1
	mov	x12, x8
	mov	w13, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w14, w15, [x9, #-4]
	sdiv	w14, w14, w15
	cmp	w14, w13
	ccmp	w13, w10, #4, ne
	csel	w11, w11, wzr, eq
	add	w22, w15, w22
	add	x9, x9, #8
	mov	x13, x14
	subs	x12, x12, #1
	b.ne	LBB0_2
; %bb.3:
	cmp	w11, #0
	cset	w9, eq
	tbz	w9, #0, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w22, #0
	mov	w9, #0
	tbnz	w9, #0, LBB0_7
LBB0_5:
	cbz	w8, LBB0_7
; %bb.6:
	ldr	x8, [x21, #8]
	ldp	w9, w8, [x8]
	sdiv	w1, w9, w8
	mov	w0, #1
	bl	_FFMAX
	mov	x1, x0
	mov	x0, x19
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	b	LBB0_14
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	x1, x22
	bl	_avio_wb32
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x22, #0
	ldr	x8, [x21, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_14
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	x10, x8, x22, lsl #3
	ldr	w10, [x10, #4]
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w23, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x24, x22, #3
	ldr	w8, [x8, x24]
	sdiv	w1, w8, w10
	mov	x0, x19
	bl	_avio_wb32
	add	w23, w23, #1
	ldr	x8, [x21, #8]
	add	x9, x8, x24
	ldr	w10, [x9, #4]
	cmp	w23, w10
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x21]
	b	LBB0_9
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	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	_update_size
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stsz"

	.no_dead_strip	_mov_write_stsz_tag
.subsections_via_symbols
