	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solve
_solve:                                 ## @solve
	.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 $edx killed $edx def $rdx
	leal	-1(%rdx), %r8d
	cmpl	$2, %edx
	jl	LBB0_10
## %bb.1:
	movl	%edx, %r10d
	movl	%r8d, %r9d
	leaq	8(,%r10,8), %r11
	xorl	%r14d, %r14d
	movq	%r10, %r15
	movq	%rsi, %rcx
	movq	%rdi, %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r11, %r12
	addq	$8, %rcx
	decq	%r15
	cmpq	%r9, %r14
	je	LBB0_4
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r14, %rax
	incq	%r14
	cmpq	%r10, %r14
	jae	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%r12,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	(%rcx,%rbx,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	(%rsi,%rax,8), %xmm0
	subsd	%xmm0, %xmm1
	movsd	%xmm1, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_9
	jmp	LBB0_3
LBB0_10:
	imull	%edx, %edx
	movslq	%edx, %rax
	movslq	%r8d, %rcx
	movsd	(%rsi,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	divsd	-8(%rdi,%rax,8), %xmm0
	movsd	%xmm0, (%rsi,%rcx,8)
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%edx, %eax
	imull	%edx, %eax
	cltq
	movslq	%r8d, %rcx
	movsd	(%rsi,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	divsd	-8(%rdi,%rax,8), %xmm0
	movsd	%xmm0, (%rsi,%rcx,8)
	addl	$-2, %edx
	leaq	(%r10,%r10), %r14
	xorl	%r8d, %r8d
	movq	%rdi, %r9
	movq	%rdx, %r15
	movq	%r10, %r11
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rax
	imulq	%r10, %rax
	addq	%r15, %rax
	divsd	(%rdi,%rax,8), %xmm0
	movsd	%xmm0, (%rsi,%r15,8)
	leaq	-1(%r15), %rax
	incl	%r8d
	addq	$-8, %r9
	testq	%r15, %r15
	movq	%rax, %r15
	jle	LBB0_11
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	%r11, %rbx
	decq	%r11
	movsd	(%rsi,%r15,8), %xmm0            ## xmm0 = mem[0],zero
	leaq	1(%r15), %rax
	cmpq	%r10, %rax
	jge	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %r8b
	jne	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r11, %rax
	imulq	%r10, %rax
	addq	%r15, %rax
	movsd	(%rdi,%rax,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	(%rsi,%r11,8), %xmm1
	subsd	%xmm1, %xmm0
	testl	%r8d, %r8d
	jne	LBB0_14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r11, %rbx
	testl	%r8d, %r8d
	je	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r10, %rax
	imulq	%rbx, %rax
	leaq	(%r9,%rax,8), %r12
	leaq	1(%rbx), %rax
	imulq	%r10, %rax
	leaq	(%r9,%rax,8), %rax
	movq	%rdx, %rcx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%r12,%rcx,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	(%rsi,%rbx,8), %xmm1
	subsd	%xmm1, %xmm0
	movsd	(%rax,%rcx,8), %xmm1            ## xmm1 = mem[0],zero
	mulsd	8(%rsi,%rbx,8), %xmm1
	subsd	%xmm1, %xmm0
	addq	$2, %rbx
	addq	%r14, %rcx
	cmpl	%ebx, %r10d
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_solve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solve
_solve:                                 ; @solve
	.cfi_startproc
; %bb.0:
	subs	w11, w2, #1
	b.le	LBB0_6
; %bb.1:
	mov	x15, #0
	mov	w8, w2
	add	x10, x0, #8
	lsl	x9, x8, #3
	add	x12, x9, #8
	add	x13, x1, #8
	mov	w14, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x14, x14, #1
	add	x10, x10, x12
	add	x13, x13, #8
	mov	x15, x16
	cmp	x16, x11
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x16, x15, #1
	cmp	x16, x8
	b.hs	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x17, x8
	mov	x3, x13
	mov	x4, x10
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x4], #8
	ldr	d1, [x1, x15, lsl #3]
	ldr	d2, [x3]
	fmsub	d0, d0, d1, d2
	str	d0, [x3], #8
	sub	x17, x17, #1
	cmp	x14, x17
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	mul	w8, w2, w2
	sub	w8, w8, #1
	ldr	d0, [x0, w8, sxtw #3]
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	sbfiz	x8, x11, #3, #32
	ldr	d1, [x1, x8]
	fdiv	d0, d1, d0
	str	d0, [x1, x8]
LBB0_7:
	ret
LBB0_8:
	mov	x10, #0
	mul	w12, w2, w2
	sub	w12, w12, #1
	ldr	d0, [x0, w12, sxtw #3]
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	sbfiz	x11, x11, #3, #32
	ldr	d1, [x1, x11]
	fdiv	d0, d1, d0
	str	d0, [x1, x11]
	sub	w12, w2, #2
	add	x11, x9, x1
	add	x11, x11, #24
	sub	x13, x8, #1
	madd	x13, x13, x8, x12
	add	x13, x0, x13, lsl #3
	add	x13, x13, #32
	mov	x14, #-8
	sub	x14, x14, x9
	lsl	x15, x8, #6
	mov	w16, #1
	mov	x17, x8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	madd	x3, x12, x8, x12
	ldr	d1, [x0, x3, lsl #3]
	fdiv	d0, d0, d1
	str	d0, [x1, x12, lsl #3]
	sub	x3, x12, #1
	add	x16, x16, #1
	sub	x11, x11, #8
	add	x13, x13, x14
	cmp	x12, #0
	mov	x12, x3
	b.le	LBB0_7
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_18 Depth 2
	add	x10, x10, #1
	sub	x17, x17, #1
	ldr	d0, [x1, x12, lsl #3]
	add	x3, x12, #1
	cmp	x3, x8
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x10, #8
	b.lo	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w2, #1
	b.ne	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	and	x4, x16, #0xfffffffffffffff8
	and	x5, x10, #0xfffffffffffffff8
	add	x3, x17, x5
	mov	x6, x13
	mov	x7, x11
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q1, q2, [x6, #-32]
	ldp	q3, q4, [x6]
	ldp	q5, q6, [x7, #-32]
	ldp	q7, q16, [x7], #64
	fneg.2d	v1, v1
	fneg.2d	v2, v2
	fneg.2d	v3, v3
	fneg.2d	v4, v4
	fmul.2d	v1, v5, v1
	mov	d5, v1[1]
	fmul.2d	v2, v6, v2
	mov	d6, v2[1]
	fmul.2d	v3, v7, v3
	mov	d7, v3[1]
	fmul.2d	v4, v16, v4
	mov	d16, v4[1]
	fadd	d0, d0, d1
	fadd	d0, d0, d5
	fadd	d0, d0, d2
	fadd	d0, d0, d6
	fadd	d0, d0, d3
	fadd	d0, d0, d7
	fadd	d0, d0, d4
	fadd	d0, d0, d16
	add	x6, x6, x15
	subs	x4, x4, #8
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x10, x5
	b.eq	LBB0_9
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x3, x17
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	madd	x4, x8, x3, x12
	add	x4, x0, x4, lsl #3
	add	x5, x1, x3, lsl #3
	sub	w3, w2, w3
LBB0_18:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d1, [x4]
	ldr	d2, [x5], #8
	fmsub	d0, d1, d2, d0
	add	x4, x4, x9
	subs	w3, w3, #1
	b.ne	LBB0_18
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_solve
.subsections_via_symbols
