	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function create
LCPI0_0:
	.quad	0xc000000000000000              ## double -2
LCPI0_1:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_2:
	.quad	0x3fefd70a3d70a3d7              ## double 0.99499999999999999
LCPI0_3:
	.quad	0x3fe999999999999a              ## double 0.80000000000000004
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_create:                                ## @create
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	32(%rbp), %r12d
	movl	16(%rbp), %eax
	movq	_AV_SAMPLE_FMT_S16P@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	_SOXR_INT16_S@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movq	_AV_SAMPLE_FMT_S16@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_SOXR_INT16_I@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_4:
	movq	_AV_SAMPLE_FMT_S32P@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_SOXR_INT32_S@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	movq	_AV_SAMPLE_FMT_S32@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	_SOXR_INT32_I@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	movq	_AV_SAMPLE_FMT_FLTP@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_10
## %bb.9:
	movq	_SOXR_FLOAT32_S@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	movq	_AV_SAMPLE_FMT_FLT@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_12
## %bb.11:
	movq	_SOXR_FLOAT32_I@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	movq	_AV_SAMPLE_FMT_DBLP@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_14
## %bb.13:
	movq	_SOXR_FLOAT64_S@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_AV_SAMPLE_FMT_DBL@GOTPCREL(%rip), %rcx
	movl	$-1, %edi
	cmpl	%eax, (%rcx)
	jne	LBB0_17
## %bb.15:
	movq	_SOXR_FLOAT64_I@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edi
LBB0_17:
	movl	%edi, %esi
	callq	_soxr_io_spec
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	LCPI0_1(%rip), %xmm0
	movq	_SOXR_HI_PREC_CLOCK@GOTPCREL(%rip), %rcx
	movq	_SOXR_ROLLOFF_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	cvttsd2si	%xmm0, %edi
	movl	%eax, -36(%rbp)
	testl	%r12d, %r12d
	cmovel	%r12d, %esi
	callq	_soxr_quality_spec
	movq	%rax, -64(%rbp)
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -72(%rbp)
	xorpd	%xmm0, %xmm0
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_18
	jnp	LBB0_19
LBB0_18:
	movapd	%xmm1, %xmm0
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_FFMIN
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%eax, %edi
	callq	_FFMAX
	imull	$100, %eax, %eax
LBB0_19:
	movl	%eax, -64(%rbp)
	movl	%ebx, %edi
	callq	_soxr_delete
	movl	$0, (%rsp)
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	leaq	-72(%rbp), %r9
	movl	%r14d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_soxr_create
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
LBB0_21:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_SAMPLE_FMT_S16P,4,2         ## @AV_SAMPLE_FMT_S16P
	.comm	_SOXR_INT16_S,4,2               ## @SOXR_INT16_S
	.comm	_AV_SAMPLE_FMT_S16,4,2          ## @AV_SAMPLE_FMT_S16
	.comm	_SOXR_INT16_I,4,2               ## @SOXR_INT16_I
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ## @AV_SAMPLE_FMT_S32P
	.comm	_SOXR_INT32_S,4,2               ## @SOXR_INT32_S
	.comm	_AV_SAMPLE_FMT_S32,4,2          ## @AV_SAMPLE_FMT_S32
	.comm	_SOXR_INT32_I,4,2               ## @SOXR_INT32_I
	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ## @AV_SAMPLE_FMT_FLTP
	.comm	_SOXR_FLOAT32_S,4,2             ## @SOXR_FLOAT32_S
	.comm	_AV_SAMPLE_FMT_FLT,4,2          ## @AV_SAMPLE_FMT_FLT
	.comm	_SOXR_FLOAT32_I,4,2             ## @SOXR_FLOAT32_I
	.comm	_AV_SAMPLE_FMT_DBLP,4,2         ## @AV_SAMPLE_FMT_DBLP
	.comm	_SOXR_FLOAT64_S,4,2             ## @SOXR_FLOAT64_S
	.comm	_AV_SAMPLE_FMT_DBL,4,2          ## @AV_SAMPLE_FMT_DBL
	.comm	_SOXR_FLOAT64_I,4,2             ## @SOXR_FLOAT64_I
	.comm	_SOXR_HI_PREC_CLOCK,4,2         ## @SOXR_HI_PREC_CLOCK
	.comm	_SOXR_ROLLOFF_NONE,4,2          ## @SOXR_ROLLOFF_NONE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"soxr_create: %s\n"

	.no_dead_strip	_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create
_create:                                ; @create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	fmov	d9, d2
	fmov	d8, d0
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	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Lloh47:
	ldr	w9, [x9]
	cmp	w8, w6
	csinv	w0, w9, wzr, eq
LBB0_15:
	mov	x1, x0
	bl	_soxr_io_spec
	str	w0, [sp, #24]
	fmov	d0, #-2.00000000
	fadd	d0, d9, d0
	fmov	d1, #0.25000000
	fmul	d0, d0, d1
	fcvtzs	w0, d0
Lloh48:
	adrp	x8, _SOXR_HI_PREC_CLOCK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SOXR_HI_PREC_CLOCK@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _SOXR_ROLLOFF_NONE@GOTPAGE
Lloh52:
	ldr	x9, [x9, _SOXR_ROLLOFF_NONE@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w22, #0
	csel	w1, wzr, w8, eq
	bl	_soxr_quality_spec
	str	x1, [sp, #16]
	str	d9, [sp, #8]
	fcmp	d8, #0.0
	b.eq	LBB0_17
; %bb.16:
	mov	x8, #41943
	movk	x8, #15728, lsl #16
	movk	x8, #55050, lsl #32
	movk	x8, #16367, lsl #48
	fmov	d1, x8
	fmov	d0, d8
	bl	_FFMIN
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16361, lsl #48
	fmov	d0, x8
	bl	_FFMAX
	mov	w8, #100
	mul	w1, w0, w8
LBB0_17:
	str	w1, [sp, #16]
	mov	x0, x21
	bl	_soxr_delete
	add	x3, sp, #28
	add	x4, sp, #24
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w6, #0
	bl	_soxr_create
	mov	x19, x0
	cbnz	x0, LBB0_19
; %bb.18:
Lloh54:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	ldr	w3, [sp, #28]
Lloh57:
	adrp	x2, l_.str@PAGE
Lloh58:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_SAMPLE_FMT_S16P,4,2         ; @AV_SAMPLE_FMT_S16P
	.comm	_SOXR_INT16_S,4,2               ; @SOXR_INT16_S
	.comm	_AV_SAMPLE_FMT_S16,4,2          ; @AV_SAMPLE_FMT_S16
	.comm	_SOXR_INT16_I,4,2               ; @SOXR_INT16_I
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ; @AV_SAMPLE_FMT_S32P
	.comm	_SOXR_INT32_S,4,2               ; @SOXR_INT32_S
	.comm	_AV_SAMPLE_FMT_S32,4,2          ; @AV_SAMPLE_FMT_S32
	.comm	_SOXR_INT32_I,4,2               ; @SOXR_INT32_I
	.comm	_AV_SAMPLE_FMT_FLTP,4,2         ; @AV_SAMPLE_FMT_FLTP
	.comm	_SOXR_FLOAT32_S,4,2             ; @SOXR_FLOAT32_S
	.comm	_AV_SAMPLE_FMT_FLT,4,2          ; @AV_SAMPLE_FMT_FLT
	.comm	_SOXR_FLOAT32_I,4,2             ; @SOXR_FLOAT32_I
	.comm	_AV_SAMPLE_FMT_DBLP,4,2         ; @AV_SAMPLE_FMT_DBLP
	.comm	_SOXR_FLOAT64_S,4,2             ; @SOXR_FLOAT64_S
	.comm	_AV_SAMPLE_FMT_DBL,4,2          ; @AV_SAMPLE_FMT_DBL
	.comm	_SOXR_FLOAT64_I,4,2             ; @SOXR_FLOAT64_I
	.comm	_SOXR_HI_PREC_CLOCK,4,2         ; @SOXR_HI_PREC_CLOCK
	.comm	_SOXR_ROLLOFF_NONE,4,2          ; @SOXR_ROLLOFF_NONE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"soxr_create: %s\n"

	.no_dead_strip	_create
.subsections_via_symbols
