	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function horner_bezier_surf
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_horner_bezier_surf:                    ## @horner_bezier_surf
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movapd	%xmm1, %xmm11
	movq	%rdi, %r14
	movl	%r8d, %eax
	imull	%edx, %eax
	movl	%eax, %ecx
	imull	%r13d, %ecx
	movslq	%ecx, %rbx
	leaq	(%rdi,%rbx,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpl	%r13d, %r8d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_34
## %bb.1:
	cmpl	$2, %r13d
	jl	LBB0_39
## %bb.2:
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_40
## %bb.3:
	leal	-1(%r13), %ecx
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	subsd	%xmm0, %xmm3
	movl	%ecx, -108(%rbp)                ## 4-byte Spill
	cvtsi2sd	%ecx, %xmm9
	mulsd	%xmm0, %xmm9
	leal	(%rax,%rax), %ecx
	movslq	%ecx, %r10
	movslq	%eax, %rdi
	movslq	%edx, %r8
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	%edx, %esi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	leaq	(%rbx,%rsi), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	leaq	(%r10,%rsi), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	leaq	(,%rbx,8), %r9
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movl	%esi, %ecx
	andl	$-4, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movddup	%xmm9, %xmm8                    ## xmm8 = xmm9[0,0]
	movddup	%xmm3, %xmm12                   ## xmm12 = xmm3[0,0]
	movq	%rsi, %rcx
	negq	%rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r10,8), %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	leaq	(,%rsi,8), %r11
	andq	$-32, %r11
	movq	%r8, -200(%rbp)                 ## 8-byte Spill
	leaq	(,%r8,8), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	(,%rdi,8), %r8
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rdi,8), %rcx
	leaq	16(%rax), %r14
	leaq	(%rax,%rbx,8), %rdi
	addq	$8, %rdi
	leaq	(%rax,%rbx,8), %r10
	addq	$16, %r10
	xorl	%r15d, %r15d
	movq	%rax, %r12
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%r9, -184(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-224(%rbp), %r15                ## 8-byte Reload
	incq	%r15
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-232(%rbp), %r14                ## 8-byte Reload
	addq	%rax, %r14
	addq	%rax, %rdi
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	addq	%rax, %rcx
	movq	-216(%rbp), %r12                ## 8-byte Reload
	addq	%rax, %r12
	addq	%rax, %r10
	addq	%rax, -136(%rbp)                ## 8-byte Folded Spill
	cmpq	-192(%rbp), %r15                ## 8-byte Folded Reload
	movl	%ebx, %edx
	movq	%rcx, %rbx
	movq	-184(%rbp), %r9                 ## 8-byte Reload
	je	LBB0_40
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
                                        ##       Child Loop BB0_28 Depth 3
                                        ##       Child Loop BB0_33 Depth 3
	movq	%r15, %rax
	imulq	-200(%rbp), %rax                ## 8-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$4, %edx
	jb	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$32, %r9
	jb	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	imulq	%r15, %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	addq	-152(%rbp), %rax                ## 8-byte Folded Reload
	subq	%rax, %rbx
	movl	$0, %ecx
	cmpq	$32, %rbx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%r14, %rcx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movupd	-16(%rcx), %xmm4
	movupd	(%rcx), %xmm5
	movupd	-16(%rcx,%r8), %xmm6
	movupd	(%rcx,%r8), %xmm7
	mulpd	%xmm8, %xmm6
	mulpd	%xmm8, %xmm7
	mulpd	%xmm12, %xmm4
	addpd	%xmm6, %xmm4
	mulpd	%xmm12, %xmm5
	addpd	%xmm7, %xmm5
	movupd	%xmm4, -16(%rcx,%r9)
	movupd	%xmm5, (%rcx,%r9)
	addq	$32, %rcx
	addq	$-4, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rcx
	cmpq	%rsi, %rax
	jne	LBB0_14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rax
	testb	$1, %sil
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rax
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	addq	%rcx, %rbx
	movsd	(%rax,%rbx,8), %xmm4            ## xmm4 = mem[0],zero
	mulsd	%xmm9, %xmm4
	movsd	(%rax,%rcx,8), %xmm5            ## xmm5 = mem[0],zero
	mulsd	%xmm3, %xmm5
	addsd	%xmm4, %xmm5
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movsd	%xmm5, (%rbx,%rax,8)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rcx, %rax
	orq	$1, %rax
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	notq	%rcx
	cmpq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%rbx,%rax,8), %xmm4            ## xmm4 = mem[0],zero
	mulsd	%xmm9, %xmm4
	movsd	(%r12,%rax,8), %xmm5            ## xmm5 = mem[0],zero
	mulsd	%xmm3, %xmm5
	addsd	%xmm4, %xmm5
	movsd	%xmm5, -8(%rdi,%rax,8)
	movsd	8(%rbx,%rax,8), %xmm4           ## xmm4 = mem[0],zero
	mulsd	%xmm9, %xmm4
	movsd	8(%r12,%rax,8), %xmm5           ## xmm5 = mem[0],zero
	mulsd	%xmm3, %xmm5
	addsd	%xmm4, %xmm5
	movsd	%xmm5, (%rdi,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %rsi
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, -216(%rbp)                ## 8-byte Spill
	movq	%r15, -224(%rbp)                ## 8-byte Spill
	movq	%r14, -232(%rbp)                ## 8-byte Spill
	movl	%edx, %ebx
	cmpl	$3, %r13d
	jb	LBB0_4
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	addq	%r9, %rax
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r9), %rcx
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	addq	%r9, %rdx
	movq	%rdx, -256(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,8), %rax
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%rcx,8), %rax
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	movl	$2, %r12d
	movq	-136(%rbp), %r14                ## 8-byte Reload
	xorl	%r15d, %r15d
	movapd	%xmm0, %xmm10
	movl	-108(%rbp), %eax                ## 4-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=2
	incl	%r12d
	addq	%r8, %r14
	incq	%r15
	cmpl	%r13d, %r12d
	je	LBB0_4
LBB0_21:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_28 Depth 3
                                        ##       Child Loop BB0_33 Depth 3
	movl	%r13d, %ecx
	subl	%r12d, %ecx
	imull	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r12d
	mulsd	%xmm0, %xmm10
	testl	%ebx, %ebx
	jle	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	xorps	%xmm5, %xmm5
	cvtsi2sd	%eax, %xmm5
	mulsd	%xmm10, %xmm5
	cmpl	$4, %ebx
	jb	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	%r15, %rcx
	imulq	-144(%rbp), %rcx                ## 8-byte Folded Reload
	addq	-256(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	cmpq	%rcx, -248(%rbp)                ## 8-byte Folded Reload
	jae	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=2
	cmpq	-240(%rbp), %r14                ## 8-byte Folded Reload
	jae	LBB0_27
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=2
	xorl	%edx, %edx
LBB0_30:                                ##   in Loop: Header=BB0_21 Depth=2
	movq	%rdx, %rcx
	testb	$1, %sil
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	%rdx, %rcx
	movsd	(%r14,%rdx,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm5, %xmm1
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movsd	(%r9,%rcx,8), %xmm2             ## xmm2 = mem[0],zero
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm2
	movsd	%xmm2, (%r9,%rcx,8)
	movq	%rdx, %rcx
	orq	$1, %rcx
LBB0_32:                                ##   in Loop: Header=BB0_21 Depth=2
	notq	%rdx
	cmpq	-72(%rbp), %rdx                 ## 8-byte Folded Reload
	je	LBB0_20
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_21 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movsd	(%r14,%rcx,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm5, %xmm1
	movsd	-8(%rdi,%rcx,8), %xmm2          ## xmm2 = mem[0],zero
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm2
	movsd	%xmm2, -8(%rdi,%rcx,8)
	movsd	8(%r14,%rcx,8), %xmm1           ## xmm1 = mem[0],zero
	mulsd	%xmm5, %xmm1
	movsd	(%rdi,%rcx,8), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm3, %xmm2
	addsd	%xmm1, %xmm2
	movsd	%xmm2, (%rdi,%rcx,8)
	addq	$2, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_33
	jmp	LBB0_20
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=2
	movddup	%xmm5, %xmm6                    ## xmm6 = xmm5[0,0]
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_21 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movupd	-16(%r10,%rcx), %xmm7
	movupd	(%r10,%rcx), %xmm2
	movupd	(%r14,%rcx), %xmm1
	movupd	16(%r14,%rcx), %xmm4
	mulpd	%xmm6, %xmm1
	mulpd	%xmm6, %xmm4
	mulpd	%xmm12, %xmm7
	addpd	%xmm1, %xmm7
	mulpd	%xmm12, %xmm2
	addpd	%xmm4, %xmm2
	movupd	%xmm7, -16(%r10,%rcx)
	movupd	%xmm2, (%r10,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r11
	jne	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %rdx
	cmpq	%rsi, %rcx
	je	LBB0_20
	jmp	LBB0_30
LBB0_34:
	cmpl	$2, %r8d
	jl	LBB0_41
## %bb.35:
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	jle	LBB0_38
## %bb.36:
	movslq	%eax, %r15
	movslq	-72(%rbp), %rax                 ## 4-byte Folded Reload
	movl	%r13d, %ebx
	shlq	$3, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$3, %r15
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movsd	%xmm11, -208(%rbp)              ## 8-byte Spill
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movapd	%xmm11, %xmm0
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%r8d, %ecx
	callq	_horner_bezier_curve
	movsd	-208(%rbp), %xmm11              ## 8-byte Reload
                                        ## xmm11 = mem[0],zero
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	addq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	addq	%r15, %r14
	decq	%rbx
	jne	LBB0_37
LBB0_38:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_42
LBB0_39:
	movq	%r14, %rdi
	movapd	%xmm11, %xmm0
	movl	%r8d, %ecx
	jmp	LBB0_43
LBB0_40:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movapd	%xmm11, %xmm0
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_43
LBB0_41:
	movq	%r14, %rdi
LBB0_42:
	movl	%r13d, %ecx
LBB0_43:
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_horner_bezier_curve            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_horner_bezier_surf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function horner_bezier_surf
_horner_bezier_surf:                    ; @horner_bezier_surf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
	fmov	d8, d1
	fmov	d9, d0
	mov	x27, x1
	mov	x23, x0
	mul	w11, w4, w2
	mul	w10, w11, w3
	add	x28, x0, w10, sxtw #3
	cmp	w4, w3
	b.le	LBB0_28
; %bb.1:
	cmp	w21, #2
	b.lt	LBB0_33
; %bb.2:
	stp	x27, x28, [sp, #8]              ; 16-byte Folded Spill
	cmp	w20, #1
	b.lt	LBB0_34
; %bb.3:
	mov	x8, #0
	mov	x9, #0
	sxtw	x14, w10
	sub	w10, w21, #1
	fmov	d0, #1.00000000
	fsub	d0, d0, d9
	str	w10, [sp, #52]                  ; 4-byte Folded Spill
	scvtf	d1, w10
	lsl	w10, w11, #1
	fmul	d1, d1, d9
	sxtw	x12, w11
	sxtw	x13, w19
	mov	w15, w20
	str	x15, [sp, #72]                  ; 8-byte Folded Spill
	mov	w15, w19
	add	x16, x14, x15
	str	x16, [sp, #40]                  ; 8-byte Folded Spill
	add	x16, x15, w10, sxtw
	str	x14, [sp, #56]                  ; 8-byte Folded Spill
	lsl	x0, x14, #3
	add	x14, x0, x23
	sbfiz	x2, x19, #3, #32
	sbfiz	x3, x11, #3, #32
	add	x11, x3, x23
	stp	x11, x16, [sp, #24]             ; 16-byte Folded Spill
	and	x5, x15, #0xfffffff8
	dup.2d	v2, v1[0]
	dup.2d	v3, v0[0]
	add	x6, x23, #32
	lsl	x11, x15, #3
	and	x7, x11, #0x7ffffffc0
	add	x17, x23, w10, sxtw #3
	str	x14, [sp, #64]                  ; 8-byte Folded Spill
	add	x26, x14, #32
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
	mov	x28, x23
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x6, x6, x2
	add	x8, x8, x13
	add	x28, x28, x2
	add	x17, x17, x2
	add	x26, x26, x2
	add	x27, x27, x2
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	cmp	x9, x10
	b.eq	LBB0_34
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_25 Depth 3
                                        ;       Child Loop BB0_27 Depth 3
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #8
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x16, #0
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x16, #0
	cmp	x0, #64
	b.lo	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mul	x10, x2, x9
	ldr	x11, [sp, #64]                  ; 8-byte Folded Reload
	add	x11, x11, x10
	ldr	x14, [sp, #24]                  ; 8-byte Folded Reload
	add	x10, x14, x10
	sub	x10, x11, x10
	cmp	x10, #64
	b.lo	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x10, x6
	mov	x11, x5
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10]
	add	x16, x10, x3
	ldp	q16, q17, [x16, #-32]
	ldp	q18, q19, [x16]
	fmul.2d	v16, v2, v16
	fmul.2d	v17, v2, v17
	fmul.2d	v18, v2, v18
	fmul.2d	v19, v19, v1[0]
	fmla.2d	v16, v4, v3
	fmla.2d	v17, v5, v3
	fmla.2d	v18, v6, v3
	fmla.2d	v19, v7, v3
	add	x16, x10, x0
	stp	q16, q17, [x16, #-32]
	stp	q18, q19, [x16]
	add	x10, x10, #64
	subs	x11, x11, #8
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x16, x5
	cmp	x5, x15
	b.eq	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x16, x8
	ldr	x11, [sp, #64]                  ; 8-byte Folded Reload
	add	x10, x11, x10, lsl #3
	add	x11, x12, x16
	add	x11, x28, x11, lsl #3
	sub	x4, x15, x16
	add	x16, x28, x16, lsl #3
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d4, [x16], #8
	ldr	d5, [x11], #8
	fmul	d5, d1, d5
	fmadd	d4, d0, d4, d5
	str	d4, [x10], #8
	subs	x4, x4, #1
	b.ne	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w21, #3
	b.lo	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x30, #0
	mul	x10, x9, x13
	ldr	x11, [sp, #56]                  ; 8-byte Folded Reload
	add	x11, x10, x11
	add	x4, x23, x11, lsl #3
	ldr	x11, [sp, #40]                  ; 8-byte Folded Reload
	add	x11, x11, x10
	add	x24, x23, x11, lsl #3
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	add	x22, x11, x10
	mov	w16, #2
	mov	x25, x17
	fmov	d4, d9
	ldr	w11, [sp, #52]                  ; 4-byte Folded Reload
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	w16, w16, #1
	add	x25, x25, x3
	add	x30, x30, #1
	cmp	w16, w21
	b.eq	LBB0_4
LBB0_18:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_25 Depth 3
                                        ;       Child Loop BB0_27 Depth 3
	fmul	d4, d4, d9
	sub	w10, w21, w16
	mul	w10, w11, w10
	sdiv	w11, w10, w16
	cmp	w19, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	scvtf	d5, w11
	fmul	d5, d4, d5
	cmp	w19, #8
	b.hs	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x10, #0
	b	LBB0_27
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=2
	madd	x10, x30, x12, x22
	add	x10, x23, x10, lsl #3
	cmp	x4, x10
	b.hs	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	cmp	x25, x24
	b.hs	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x10, #0
	b	LBB0_27
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x10, #0
	dup.2d	v6, v5[0]
LBB0_25:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x1, x26, x10
	ldp	q7, q16, [x1, #-32]
	ldp	q17, q18, [x1]
	add	x14, x25, x10
	ldp	q19, q20, [x14]
	ldp	q21, q22, [x14, #32]
	fmul.2d	v19, v6, v19
	fmul.2d	v20, v6, v20
	fmul.2d	v21, v6, v21
	fmul.2d	v22, v22, v5[0]
	fmla.2d	v19, v7, v3
	fmla.2d	v20, v16, v3
	fmla.2d	v21, v17, v3
	fmla.2d	v22, v18, v3
	stp	q19, q20, [x1, #-32]
	stp	q21, q22, [x1]
	add	x10, x10, #64
	cmp	x7, x10
	b.ne	LBB0_25
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x10, x5
	cmp	x5, x15
	b.eq	LBB0_17
LBB0_27:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	x14, x10, #3
	ldr	d6, [x27, x14]
	ldr	d7, [x25, x14]
	fmul	d7, d5, d7
	fmadd	d6, d0, d6, d7
	str	d6, [x27, x14]
	add	x10, x10, #1
	cmp	x15, x10
	b.ne	LBB0_27
	b	LBB0_17
LBB0_28:
	cmp	w20, #2
	b.lt	LBB0_36
; %bb.29:
	cmp	w21, #1
	b.lt	LBB0_32
; %bb.30:
	mov	w22, w21
	mov	x8, x19
	sbfiz	x24, x8, #3, #32
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	sbfiz	x26, x11, #3, #32
	mov	x25, x28
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	fmov	d0, d8
	mov	x2, x19
	mov	x3, x20
	bl	_horner_bezier_curve
	add	x25, x25, x24
	add	x23, x23, x26
	subs	x22, x22, #1
	b.ne	LBB0_31
LBB0_32:
	mov	x0, x28
	b	LBB0_37
LBB0_33:
	mov	x0, x23
	mov	x1, x27
	b	LBB0_35
LBB0_34:
	ldp	x1, x0, [sp, #8]                ; 16-byte Folded Reload
LBB0_35:
	fmov	d0, d8
	mov	x2, x19
	mov	x3, x20
	b	LBB0_38
LBB0_36:
	mov	x0, x23
LBB0_37:
	mov	x1, x27
	fmov	d0, d9
	mov	x2, x19
	mov	x3, x21
LBB0_38:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_horner_bezier_curve
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_horner_bezier_surf
.subsections_via_symbols
