	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resample_flush
_resample_flush:                        ## @resample_flush
	.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	32(%rdi), %rax
	leaq	8(%rdi), %r14
	movl	(%rdi), %edi
	movl	(%rax), %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	shrl	$31, %edx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addl	%edx, %eax
	incl	%eax
	sarl	%eax
	movl	(%rbx), %esi
	addl	4(%rbx), %esi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%eax, %esi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_swri_realloc_audio
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movl	24(%rbx), %edi
	callq	_av_assert0
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.2:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	movl	$1, %r13d
	cmovgel	%ecx, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	movl	$-1, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rbx), %ecx
	movl	12(%rbx), %edx
	addl	4(%rbx), %ecx
	leal	(%r14,%rcx), %esi
	imull	%edx, %esi
	movslq	%esi, %rdi
	addq	%rax, %rdi
	addl	%r15d, %ecx
	imull	%edx, %ecx
	movslq	%ecx, %rsi
	addq	%rax, %rsi
	callq	_memcpy
	incl	%r14d
	decl	%r15d
	cmpl	%r14d, %r13d
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_resample_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resample_flush
_resample_flush:                        ; @resample_flush
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #32]
	add	x20, x0, #8
	ldr	w0, [x0]
	ldr	w1, [x8]
	bl	_FFMIN
	mov	x21, x0
	add	w8, w0, #1
	add	w9, w0, #2
	cmp	w8, #0
	csinc	w8, w9, w0, lt
	asr	w22, w8, #1
	ldp	w9, w8, [x19]
	add	w8, w9, w8
	add	w1, w8, w22
	mov	x0, x20
	bl	_swri_realloc_audio
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_av_assert0
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x23, #0
	cmp	w22, #1
	csinc	w24, w22, wzr, gt
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
	mov	w26, #-1
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x23, lsl #3]
	ldp	w10, w9, [x19]
	add	w9, w10, w9
	add	w10, w25, w9
	ldr	w2, [x19, #12]
	mul	w10, w10, w2
	add	x0, x8, w10, sxtw
	add	w9, w26, w9
	mul	w9, w9, w2
	add	x1, x8, w9, sxtw
	bl	_memcpy
	add	w25, w25, #1
	sub	w26, w26, #1
	cmp	w24, w25
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	b	LBB0_3
LBB0_8:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_resample_flush
.subsections_via_symbols
