	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_flush_fragment_interleaving
_mov_flush_fragment_interleaving:       ## @mov_flush_fragment_interleaving
	.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	%rdi, %rax
	movq	16(%rsi), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rsi, %r15
	movq	(%rax), %r12
	cmpl	$0, (%r12)
	jne	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	16(%r15), %rdi
LBB0_5:
	leaq	-48(%rbp), %rsi
	callq	_avio_close_dyn_buf
	movl	%eax, %r13d
	movq	$0, 16(%r15)
	movl	(%r12), %edi
	callq	_avio_tell
	movl	%eax, %r14d
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi
	movl	%r13d, %edx
	callq	_avio_write
	movq	-48(%rbp), %rdi
	callq	_av_free
	movslq	(%r15), %rax
	movl	4(%r15), %r11d
	cmpl	%r11d, %eax
	jge	LBB0_16
## %bb.6:
	movslq	%r11d, %rdx
	movq	8(%r15), %rsi
	movq	%rdx, %r9
	subq	%rax, %r9
	cmpq	$8, %r9
	jb	LBB0_15
## %bb.7:
	movq	%r9, %r8
	andq	$-8, %r8
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rcx
	movq	%rcx, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:
	movq	%r10, %rcx
	andq	$-2, %rcx
	leaq	(%rsi,%rax,4), %rbx
	addq	$48, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rbx,%rdi,4), %xmm1
	movdqu	-32(%rbx,%rdi,4), %xmm2
	movdqu	-16(%rbx,%rdi,4), %xmm3
	movdqu	(%rbx,%rdi,4), %xmm4
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, -48(%rbx,%rdi,4)
	movdqu	%xmm2, -32(%rbx,%rdi,4)
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm4
	movdqu	%xmm3, -16(%rbx,%rdi,4)
	movdqu	%xmm4, (%rbx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rcx
	jne	LBB0_10
## %bb.11:
	testb	$1, %r10b
	je	LBB0_13
LBB0_12:
	addq	%rax, %rdi
	movdqu	(%rsi,%rdi,4), %xmm1
	movdqu	16(%rsi,%rdi,4), %xmm2
	paddd	%xmm0, %xmm1
	paddd	%xmm0, %xmm2
	movdqu	%xmm1, (%rsi,%rdi,4)
	movdqu	%xmm2, 16(%rsi,%rdi,4)
LBB0_13:
	cmpq	%r8, %r9
	movl	$0, %ebx
	je	LBB0_16
## %bb.14:
	addq	%r8, %rax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	addl	%r14d, (%rsi,%rax,4)
	incq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_15
LBB0_16:
	movl	%r11d, (%r15)
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_8:
	xorl	%edi, %edi
	testb	$1, %r10b
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mov_flush_fragment_interleaving
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_flush_fragment_interleaving
_mov_flush_fragment_interleaving:       ; @mov_flush_fragment_interleaving
	.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	x8, x0
	ldr	x0, [x1, #16]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x1
	ldr	x21, [x8]
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_avio_open_dyn_buf
	tbnz	w0, #31, LBB0_12
; %bb.3:
	ldr	x0, [x19, #16]
LBB0_4:
	add	x1, sp, #8
	bl	_avio_close_dyn_buf
	mov	x22, x0
	str	xzr, [x19, #16]
	ldr	w0, [x21]
	bl	_avio_tell
	mov	x20, x0
	ldr	w0, [x21]
	ldr	x1, [sp, #8]
	mov	x2, x22
	bl	_avio_write
	ldr	x0, [sp, #8]
	bl	_av_free
	ldp	w14, w8, [x19]
                                        ; kill: def $w14 killed $w14 def $x14
	sxtw	x14, w14
	cmp	w14, w8
	b.ge	LBB0_11
; %bb.5:
	sxtw	x9, w8
	ldr	x10, [x19, #8]
	sub	x12, x9, x14
	mov	x11, x14
	cmp	x12, #16
	b.lo	LBB0_9
; %bb.6:
	and	x13, x12, #0xfffffffffffffff0
	add	x11, x13, x14
	dup.4s	v0, w20
	add	x14, x10, x14, lsl #2
	add	x14, x14, #32
	mov	x15, x13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x14, #-32]
	ldp	q3, q4, [x14]
	add.4s	v1, v1, v0
	add.4s	v2, v2, v0
	add.4s	v3, v3, v0
	add.4s	v4, v4, v0
	stp	q1, q2, [x14, #-32]
	stp	q3, q4, [x14], #64
	subs	x15, x15, #16
	b.ne	LBB0_7
; %bb.8:
	cmp	x12, x13
	b.eq	LBB0_11
LBB0_9:
	add	x10, x10, x11, lsl #2
	sub	x9, x9, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	add	w11, w11, w20
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	mov	w0, #0
	str	w8, [x19]
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mov_flush_fragment_interleaving
.subsections_via_symbols
