	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ffmpeg_audio_resample
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ffmpeg_audio_resample:                 ## @ffmpeg_audio_resample
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 64(%rbx)
	je	LBB0_12
LBB0_2:
	movl	(%r14), %esi
	cmpl	(%rbx), %esi
	jle	LBB0_7
## %bb.3:
	movq	8(%rbx), %rdi
	imull	72(%rbx), %esi
	shll	$2, %esi
	callq	_av_realloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movl	(%r14), %esi
	movl	%esi, (%rbx)
	imull	20(%rbx), %esi
	addl	$16, %esi
	movl	%esi, 16(%rbx)
	movq	24(%rbx), %rdi
	imull	72(%rbx), %esi
	shll	$2, %esi
	callq	_av_realloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_MAX
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 32(%rbx)
	movq	40(%rbx), %rdi
	imull	72(%rbx), %eax
	leal	(,%rax,4), %esi
	callq	_av_realloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	48(%rbx), %rax
LBB0_7:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	cmpq	$0, 64(%rbx)
	je	LBB0_12
LBB0_9:
	movq	8(%rbx), %rdi
	movq	8(%r14), %rsi
	movl	72(%rbx), %edx
	imull	(%r14), %edx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_convert_s16_to_float
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	$0, -24(%rbp)
	movq	8(%r14), %rcx
	movq	%rcx, -48(%rbp)
	movq	24(%rbx), %rcx
	movq	%rcx, -40(%rbp)
	movl	(%r14), %ecx
	movl	%ecx, -32(%rbp)
	movl	20(%rbx), %ecx
	movl	%ecx, -28(%rbp)
	movl	56(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	*(%rax)
	movq	24(%rbx), %rsi
	movq	%rsi, 8(%r14)
	movl	-24(%rbp), %edx
	movl	%edx, (%r14)
	cmpq	$0, 48(%rbx)
	jne	LBB0_12
## %bb.11:
	movq	40(%rbx), %rdi
	imull	72(%rbx), %edx
	callq	_convert_float_to_s16
	movq	40(%rbx), %rax
	movq	%rax, 8(%r14)
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ffmpeg_audio_resample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffmpeg_audio_resample
_ffmpeg_audio_resample:                 ; @ffmpeg_audio_resample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #48]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x20, #64]
	cbz	x9, LBB0_12
LBB0_2:
	ldr	w9, [x19]
	ldr	w10, [x20]
	cmp	w9, w10
	b.le	LBB0_7
; %bb.3:
	ldr	x0, [x20, #8]
	ldr	w8, [x20, #72]
	mul	w8, w9, w8
	lsl	w1, w8, #2
	bl	_av_realloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.4:
	ldr	w8, [x19]
	str	w8, [x20]
	ldr	w9, [x20, #20]
	orr	w10, wzr, #0x10
	madd	w8, w9, w8, w10
	str	w8, [x20, #16]
	ldr	x0, [x20, #24]
	ldr	w9, [x20, #72]
	mul	w8, w8, w9
	lsl	w1, w8, #2
	bl	_av_realloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w0, [x20, #16]
	ldr	w1, [x20]
	bl	_MAX
	str	w0, [x20, #32]
	ldr	x8, [x20, #40]
	ldr	w9, [x20, #72]
	mul	w9, w0, w9
	lsl	w1, w9, #2
	mov	x0, x8
	bl	_av_realloc
	str	x0, [x20, #40]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x8, [x20, #48]
LBB0_7:
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_12
LBB0_9:
	ldr	x0, [x20, #8]
	ldr	x1, [x19, #8]
	ldr	w8, [x19]
	ldr	w9, [x20, #72]
	mul	w2, w9, w8
	fmov	d0, #1.00000000
	bl	_convert_s16_to_float
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_12
; %bb.10:
	str	xzr, [sp, #24]
	ldr	x9, [x19, #8]
	ldr	x10, [x20, #24]
	stp	x9, x10, [sp]
	ldr	w9, [x19]
	ldr	w10, [x20, #20]
	stp	w9, w10, [sp, #16]
	ldr	x8, [x8]
	ldr	w0, [x20, #56]
	mov	x1, sp
	blr	x8
	ldr	x1, [x20, #24]
	str	x1, [x19, #8]
	ldr	w8, [sp, #24]
	str	w8, [x19]
	ldr	x9, [x20, #48]
	cbnz	x9, LBB0_12
; %bb.11:
	ldr	x0, [x20, #40]
	ldr	w9, [x20, #72]
	mul	w2, w9, w8
	bl	_convert_float_to_s16
	ldr	x8, [x20, #40]
	str	x8, [x19, #8]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ffmpeg_audio_resample
.subsections_via_symbols
