	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function one_shot_resample
LCPI0_0:
	.long	0x40800000                      ## float 4
LCPI0_1:
	.long	0x5f000000                      ## float 9.22337203E+18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_one_shot_resample:                     ## @one_shot_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	_s_rate@GOTPCREL(%rip), %rax
	cvtsi2sdq	(%rax), %xmm0
	movl	%edx, %eax
	cvtsi2sd	%rax, %xmm1
	divsd	%xmm1, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movq	_RESAMPLER_QUALITY_DONTCARE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	leaq	-64(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_retro_resampler_realloc
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	shrq	%r14
	testq	%rbx, %rbx
	js	LBB0_2
## %bb.3:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rbx, %xmm0
	jmp	LBB0_4
LBB0_2:
	andl	$1, %ebx
	orq	%r14, %rbx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rbx, %xmm0
	addss	%xmm0, %xmm0
LBB0_4:
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	addss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %rax
	movq	%rax, %rcx
	subss	LCPI0_1(%rip), %xmm0
	sarq	$63, %rcx
	cvttss2si	%xmm0, %rdx
	andq	%rcx, %rdx
	orq	%rax, %rdx
	movq	%rdx, (%r12)
	leaq	60(,%rdx,4), %rsi
	andq	$-64, %rsi
	movl	$16, %edi
	callq	_memalign_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, -112(%rbp)
	movq	%rax, -104(%rbp)
	movq	%r14, -96(%rbp)
	movq	$0, -80(%rbp)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -88(%rbp)
	movq	-56(%rbp), %rax
	movq	-64(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	callq	*8(%rax)
	movq	-56(%rbp), %rax
	movq	-64(%rbp), %rdi
	callq	*(%rax)
	movl	$1, %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s_rate,8,3                     ## @s_rate
	.comm	_RESAMPLER_QUALITY_DONTCARE,4,2 ## @RESAMPLER_QUALITY_DONTCARE
	.no_dead_strip	_one_shot_resample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function one_shot_resample
_one_shot_resample:                     ; @one_shot_resample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x22, x4
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #8]
Lloh0:
	adrp	x8, _s_rate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_rate@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	ucvtf	d1, w2
	scvtf	d0, d0
	fdiv	d0, d0, d1
	fcvt	s8, d0
Lloh3:
	adrp	x8, _RESAMPLER_QUALITY_DONTCARE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESAMPLER_QUALITY_DONTCARE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x0, sp, #16
	add	x1, sp, #8
	mov	x2, #0
	fmov	s0, s8
	bl	_retro_resampler_realloc
	cbz	w0, LBB0_3
; %bb.1:
	ucvtf	s0, x19
	fmov	s1, #4.00000000
	fmadd	s0, s0, s8, s1
	fcvtzu	x8, s0
	str	x8, [x22]
	lsl	x8, x8, #2
	add	x8, x8, #60
	and	x1, x8, #0xffffffffffffffc0
	mov	w0, #16
	bl	_memalign_alloc
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.2:
	stp	x20, x0, [sp, #24]
	lsr	x8, x19, #1
	str	x8, [sp, #40]
	str	xzr, [sp, #56]
	str	s8, [sp, #48]
	ldp	x8, x0, [sp, #8]
	ldr	x8, [x8, #8]
	add	x1, sp, #24
	blr	x8
	ldp	x8, x0, [sp, #8]
	ldr	x8, [x8]
	blr	x8
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_s_rate,8,3                     ; @s_rate
	.comm	_RESAMPLER_QUALITY_DONTCARE,4,2 ; @RESAMPLER_QUALITY_DONTCARE
	.no_dead_strip	_one_shot_resample
.subsections_via_symbols
