	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function config_input
LCPI0_0:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x3fd0000000000000              ## double 0.25
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_config_input:                          ## @config_input
	.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, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	cvtsi2sdl	(%r15), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movl	(%rdi), %eax
	cltd
	idivl	8(%r15)
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	movl	$8, %esi
	callq	_av_malloc_array
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$0, 4(%r15)
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jle	LBB0_4
## %bb.2:
	mulsd	LCPI0_0(%rip), %xmm1
	addsd	LCPI0_1(%rip), %xmm1
	xorl	%r12d, %r12d
	movq	_M_PI@GOTPCREL(%rip), %r13
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %eax
	imull	%r12d, %eax
	cltd
	idivl	(%r14)
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movl	(%r13), %ebx
	addsd	LCPI0_2(%rip), %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_fmod
	imull	%eax, %ebx
	addl	%ebx, %ebx
	movl	%ebx, %edi
	callq	_sin
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_fabs
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movl	$1, %ecx
	subl	%eax, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	movq	16(%r15), %rax
	movsd	%xmm0, (%rax,%r12,8)
	incq	%r12
	movslq	4(%r15), %rax
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_4:
	movq	$0, 24(%r15)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_config_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_input
_config_input:                          ; @config_input
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	s8, [x20]
	ldr	w8, [x0]
	ldr	w9, [x20, #8]
	sdiv	w0, w8, w9
	str	w0, [x20, #4]
	mov	w1, #8
	bl	_av_malloc_array
	str	x0, [x20, #16]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	sshll.2d	v0, v8, #0
	scvtf	d0, d0
	fmov	d1, #-0.50000000
	fmul	d0, d0, d1
	fmov	d1, #1.00000000
	fadd	d8, d0, d1
Lloh0:
	adrp	x22, _M_PI@GOTPAGE
Lloh1:
	ldr	x22, [x22, _M_PI@GOTPAGEOFF]
	fmov	d10, #0.25000000
	mov	w23, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #8]
	mul	w8, w8, w21
	ldr	w9, [x19]
	sdiv	w8, w8, w9
	scvtf	d0, w8
	ldr	w24, [x22]
	fadd	d0, d0, d10
	fmov	d1, #1.00000000
	bl	_fmod
	mul	w8, w24, w0
	lsl	w0, w8, #1
	bl	_sin
	fmov	d9, d0
	fmov	d0, d8
	bl	_fabs
	sub	w8, w23, w0
	scvtf	d0, w8
	fmadd	d0, d9, d0, d8
	ldr	x8, [x20, #16]
	str	d0, [x8, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
	str	xzr, [x20, #24]
	mov	w0, #0
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_config_input
.subsections_via_symbols
