	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function move_audio
_move_audio:                            ## @move_audio
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	$0, -88(%rbp)
	movq	(%rdi), %rax
	movl	4(%rax), %r12d
	decl	%r12d
	movl	$1, %r15d
	movl	%r12d, %ecx
	shll	%cl, %r15d
	movl	%r15d, %eax
	cltd
	idivl	%esi
	cmpl	$0, 8(%rdi)
	movl	12(%rdi), %edx
	movslq	%r15d, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_7
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r14
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	movl	%ebx, %eax
	shll	%cl, %eax
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	24(%r13), %rsi
	movq	%r14, %rdx
	callq	_memcpy
	incl	%ebx
	movl	12(%r13), %edx
	addl	$2, %r15d
	cmpl	%edx, %ebx
	jl	LBB0_3
	jmp	LBB0_7
LBB0_4:
	testl	%edx, %edx
	jle	LBB0_7
## %bb.5:
	shll	$2, %r15d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movslq	%eax, %rdi
	shlq	$2, %rdi
	addq	16(%r13), %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	incl	%ebx
	movl	12(%r13), %edx
	addl	$2, %r14d
	cmpl	%edx, %ebx
	jl	LBB0_6
LBB0_7:
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_15
## %bb.8:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	40(%r13), %rcx
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movslq	-72(%rbp), %rcx                 ## 4-byte Folded Reload
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shlq	$2, -64(%rbp)                   ## 8-byte Folded Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	-88(%rbp), %rdi
	callq	_av_frame_free
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	-104(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_14
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_ff_bufqueue_get
	movq	%rax, -88(%rbp)
	cmpl	$0, 12(%r13)
	jle	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imulq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%ecx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	shll	%cl, %edx
	movslq	%edx, %rdx
	movq	16(%r13), %rsi
	addq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	(%rsi,%rdi,4), %rsi
	movq	%r13, %r14
	leaq	(,%rdi,4), %r13
	movl	%r12d, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movslq	%edi, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	24(%r14), %r13
	movq	8(%rax), %rcx
	movq	(%rcx,%r12,8), %rbx
	movslq	(%rax), %r15
	shlq	$2, %r15
	leaq	(%rsi,%rdx,4), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movq	%r14, %r13
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	incq	%r12
	movslq	12(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	-88(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	addl	$2, %ecx
	jmp	LBB0_11
LBB0_14:
	movl	12(%r13), %edx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_15:
	movl	$1, 8(%r13)
	movq	16(%r13), %rsi
	movq	32(%r13), %rdi
	addl	%edx, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	movslq	%edx, %rdx
	callq	_memcpy
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_move_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function move_audio
_move_audio:                            ; @move_audio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x19, x0
	str	xzr, [sp, #40]
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
	sub	w23, w8, #1
	mov	w8, #1
	lsl	w22, w8, w23
	sdiv	w8, w22, w1
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldp	w9, w8, [x0, #8]
	cmp	w8, #1
	cbz	w9, LBB0_4
; %bb.1:
	b.lt	LBB0_7
; %bb.2:
	mov	w24, #0
	mov	w25, #0
	sbfiz	x21, x22, #2, #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w24, w23
	ldp	x9, x10, [x19, #16]
	add	x0, x9, w8, sxtw #2
	lsl	w8, w25, w23
	add	x1, x10, w8, sxtw #2
	mov	x2, x21
	bl	_memcpy
	add	w25, w25, #1
	ldr	w8, [x19, #12]
	add	w24, w24, #2
	cmp	w25, w8
	b.lt	LBB0_3
	b	LBB0_7
LBB0_4:
	b.lt	LBB0_7
; %bb.5:
	mov	w24, #0
	mov	w25, #0
	lsl	w21, w22, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	w9, w24, w23
	add	x0, x8, w9, sxtw #2
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	add	w25, w25, #1
	ldr	w8, [x19, #12]
	add	w24, w24, #2
	cmp	w25, w8
	b.lt	LBB0_6
LBB0_7:
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.8:
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
	add	x9, x19, #40
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x26, w22
	sxtw	x8, w20
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #40
	bl	_av_frame_free
	ldp	x8, x9, [sp, #24]               ; 16-byte Folded Reload
	add	x9, x9, #1
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	cmp	x9, x8
	b.eq	LBB0_14
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_ff_bufqueue_get
	str	x0, [sp, #40]
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w28, #0
	mov	x24, #0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	mul	x27, x8, x9
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w8, w28, w23
	ldp	x9, x10, [x19, #16]
	add	x9, x9, x26, lsl #2
	lsl	x11, x27, #2
	add	x9, x9, x11
	lsl	w21, w24, w23
	add	x25, x10, x11
	ldr	x10, [x0, #8]
	ldr	x20, [x10, x24, lsl #3]
	ldrsw	x10, [x0]
	lsl	x22, x10, #2
	add	x0, x9, w8, sxtw #2
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x0, x25, w21, sxtw #2
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x24, x24, #1
	ldrsw	x8, [x19, #12]
	cmp	x24, x8
	b.ge	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [sp, #40]
	add	w28, w28, #2
	b	LBB0_12
LBB0_14:
	ldr	w8, [x19, #12]
LBB0_15:
	mov	w9, #1
	str	w9, [x19, #8]
	ldr	x0, [x19, #32]
	ldr	x1, [x19, #16]
	lsl	w8, w8, #1
	lsl	w8, w8, w23
	sxtw	x2, w8
	bl	_memcpy
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_move_audio
.subsections_via_symbols
