	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function cheby
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cheby:                                 ## @cheby
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm0
	movss	%xmm0, (%rdi)
	cmpl	$2, %esi
	jge	LBB0_1
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r10d
	incl	%esi
	leaq	1(%r10), %r9
	leaq	-1(%r10), %r8
	leaq	(%rdi,%r10,4), %rdx
	addq	$-4, %rdx
	movl	$2, %ecx
	xorl	%r11d, %r11d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	incq	%r11
	cmpq	%rsi, %rcx
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	cmpq	%r10, %rcx
	movq	%r10, %rbx
	cmovlq	%rcx, %rbx
	leaq	2(%r11), %rax
	cmpq	%r10, %rax
	cmovgeq	%r10, %rax
	movq	%r9, %r15
	subq	%rax, %r15
	movq	%r10, %rax
	cmpq	$2, %r15
	jb	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-2(%r15), %rax
	movq	%rax, %r14
	shrq	%r14
	incq	%r14
	cmpq	$2, %rax
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %rax
	subq	%rbx, %rax
	shrq	%rax
	incq	%rax
	andq	$-2, %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	-16(%rdx,%rbx,4), %xmm0         ## xmm0 = mem[0],zero
	movsd	-8(%rdx,%rbx,4), %xmm1          ## xmm1 = mem[0],zero
	movsd	(%rdx,%rbx,4), %xmm2            ## xmm2 = mem[0],zero
	subps	%xmm2, %xmm1
	addps	%xmm2, %xmm2
	movlps	%xmm2, (%rdx,%rbx,4)
	subps	%xmm1, %xmm0
	addps	%xmm1, %xmm1
	movlhps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movups	%xmm0, -16(%rdx,%rbx,4)
	addq	$-4, %rbx
	addq	$-2, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	negq	%rbx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r12
	andq	$-2, %r12
	testb	$1, %r14b
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r10, %rax
	subq	%rbx, %rax
	movsd	-12(%rdi,%rax,4), %xmm0         ## xmm0 = mem[0],zero
	movsd	-4(%rdi,%rax,4), %xmm1          ## xmm1 = mem[0],zero
	subps	%xmm1, %xmm0
	addps	%xmm1, %xmm1
	movlhps	%xmm1, %xmm0                    ## xmm0 = xmm0[0],xmm1[0]
	movups	%xmm0, -12(%rdi,%rax,4)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, %r15
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r10, %rax
	subq	%r12, %rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	-12(%rdi,%rax,4), %xmm0         ## xmm0 = mem[0],zero,zero,zero
	movss	-4(%rdi,%rax,4), %xmm1          ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	movss	%xmm0, -12(%rdi,%rax,4)
	addss	%xmm1, %xmm1
	movss	%xmm1, -4(%rdi,%rax,4)
	decq	%rax
	cmpq	%rcx, %rax
	jg	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cheby
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cheby
_cheby:                                 ; @cheby
	.cfi_startproc
; %bb.0:
	ldr	s0, [x0]
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	str	s0, [x0]
	cmp	w1, #2
	b.ge	LBB0_2
LBB0_1:
	ret
LBB0_2:
	mov	x8, #0
	mov	w9, w1
	add	w10, w1, #1
	add	x11, x9, #1
	add	x12, x0, w1, uxtw #2
	sub	x12, x12, #4
	mov	w13, #2
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x13, x13, #1
	add	x8, x8, #1
	cmp	x13, x10
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	cmp	x13, x9
	csel	x16, x13, x9, lt
	add	x14, x8, #2
	cmp	x14, x9
	csel	x14, x14, x9, lt
	sub	x15, x11, x14
	mov	x14, x9
	cmp	x15, #2
	b.lo	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x14, x11, x16
	and	x16, x14, #0xfffffffffffffffe
	and	x17, x15, #0xfffffffffffffffe
	sub	x14, x9, x17
	mov	x2, x12
	mov	x1, x12
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x2]
	ldr	d1, [x1, #-8]!
	fsub.2s	v1, v1, v0
	str	d1, [x1]
	fadd.2s	v0, v0, v0
	str	d0, [x2]
	mov	x2, x1
	subs	x16, x16, #2
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x15, x17
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x15, x0, x14, lsl #2
	ldr	s0, [x15]
	ldur	s1, [x15, #-8]
	fsub	s1, s1, s0
	stur	s1, [x15, #-8]
	fadd	s0, s0, s0
	str	s0, [x15]
	sub	x15, x14, #1
	cmp	x14, x13
	mov	x14, x15
	b.gt	LBB0_8
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cheby
.subsections_via_symbols
