	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_moov_size
_compute_moov_size:                     ## @compute_moov_size
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	callq	_get_moov_size
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_26
## %bb.1:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.2:
	movq	8(%r15), %rcx
	cmpl	$8, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rsi,4), %xmm1
	movdqu	16(%rcx,%rsi,4), %xmm2
	movdqu	32(%rcx,%rsi,4), %xmm3
	movdqu	48(%rcx,%rsi,4), %xmm4
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rsi,4)
	movdqu	%xmm2, 16(%rcx,%rsi,4)
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rcx,%rsi,4)
	movdqu	%xmm4, 48(%rcx,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rcx,%rsi,4), %xmm1
	movdqu	16(%rcx,%rsi,4), %xmm2
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rcx,%rsi,4)
	movdqu	%xmm2, 16(%rcx,%rsi,4)
LBB0_10:
	cmpq	%rax, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	%ebx, (%rcx,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_get_moov_size
	testl	%eax, %eax
	js	LBB0_25
## %bb.13:
	movl	%eax, %ecx
	subl	%ebx, %ecx
	je	LBB0_25
## %bb.14:
	movl	(%r15), %r9d
	testl	%r9d, %r9d
	jle	LBB0_25
## %bb.15:
	movq	8(%r15), %rsi
	cmpl	$8, %r9d
	jae	LBB0_17
## %bb.16:
	xorl	%edi, %edi
	jmp	LBB0_24
LBB0_17:
	movl	%r9d, %edi
	andl	$-8, %edi
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdi), %rdx
	movq	%rdx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.19:
	movq	%r8, %rdx
	andq	$-2, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rbx,4), %xmm1
	movdqu	16(%rsi,%rbx,4), %xmm2
	movdqu	32(%rsi,%rbx,4), %xmm3
	movdqu	48(%rsi,%rbx,4), %xmm4
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rsi,%rbx,4)
	movdqu	%xmm2, 16(%rsi,%rbx,4)
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rsi,%rbx,4)
	movdqu	%xmm4, 48(%rsi,%rbx,4)
	addq	$16, %rbx
	addq	$-2, %rdx
	jne	LBB0_20
## %bb.21:
	testb	$1, %r8b
	je	LBB0_23
LBB0_22:
	movdqu	(%rsi,%rbx,4), %xmm1
	movdqu	16(%rsi,%rbx,4), %xmm2
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rsi,%rbx,4)
	movdqu	%xmm2, 16(%rsi,%rbx,4)
LBB0_23:
	cmpq	%r9, %rdi
	je	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	addl	%ecx, (%rsi,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_24
LBB0_25:
	movl	%eax, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
LBB0_18:
	xorl	%ebx, %ebx
	testb	$1, %r8b
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_moov_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_moov_size
_compute_moov_size:                     ; @compute_moov_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x21, [x0]
	bl	_get_moov_size
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	ldr	x9, [x21, #8]
	cmp	w8, #16
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	b	LBB0_20
LBB0_5:
	and	x10, x8, #0xfffffff0
	dup.4s	v0, w19
	add	x11, x9, #32
	mov	x12, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	add.4s	v1, v1, v0
	add.4s	v2, v2, v0
	add.4s	v3, v3, v0
	add.4s	v4, v4, v0
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x12, x12, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_8:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	add	w10, w10, w19
	str	w10, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x20
	bl	_get_moov_size
	tbnz	w0, #31, LBB0_20
; %bb.11:
	subs	w8, w0, w19
	b.eq	LBB0_20
; %bb.12:
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.13:
	ldr	x10, [x21, #8]
	cmp	w9, #16
	b.hs	LBB0_15
; %bb.14:
	mov	x11, #0
	b	LBB0_18
LBB0_15:
	and	x11, x9, #0xfffffff0
	dup.4s	v0, w8
	add	x12, x10, #32
	mov	x13, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ldp	q3, q4, [x12]
	add.4s	v1, v0, v1
	add.4s	v2, v0, v2
	add.4s	v3, v0, v3
	add.4s	v4, v0, v4
	stp	q1, q2, [x12, #-32]
	stp	q3, q4, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x11, x9
	b.eq	LBB0_20
LBB0_18:
	add	x10, x10, x11, lsl #2
	sub	x9, x9, x11
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	add	w11, w8, w11
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_19
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute_moov_size
.subsections_via_symbols
