	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slopes_to_scale
_slopes_to_scale:                       ## @slopes_to_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movl	%edx, %ecx
	cmpq	$1, %rsi
	jne	LBB0_4
## %bb.3:
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	jmp	LBB0_6
LBB0_1:
	xorl	%r8d, %r8d
	jmp	LBB0_8
LBB0_4:
	movq	%rsi, %r11
	andq	$-2, %r11
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%r10,8), %r9d
	movl	8(%rdi,%r10,8), %r14d
	cmpl	%r9d, %ecx
	movl	%r9d, %ebx
	cmovll	%ecx, %ebx
	movl	4(%rdi,%r10,8), %eax
	imull	%ebx, %eax
	cltd
	idivl	%r9d
	movl	%eax, %r9d
	addl	%r8d, %r9d
	subl	%ebx, %ecx
	cmpl	%r14d, %ecx
	movl	%r14d, %ebx
	cmovll	%ecx, %ebx
	movl	12(%rdi,%r10,8), %eax
	imull	%ebx, %eax
	cltd
	idivl	%r14d
	movl	%eax, %r8d
	addl	%r9d, %r8d
	subl	%ebx, %ecx
	addq	$2, %r10
	cmpq	%r10, %r11
	jne	LBB0_5
LBB0_6:
	testb	$1, %sil
	je	LBB0_8
## %bb.7:
	movl	(%rdi,%r10,8), %esi
	cmpl	%esi, %ecx
	cmovgel	%esi, %ecx
	imull	4(%rdi,%r10,8), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	addl	%r8d, %eax
	movl	%eax, %r8d
LBB0_8:
	movl	%r8d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_slopes_to_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slopes_to_scale
_slopes_to_scale:                       ; @slopes_to_scale
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_4
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	add	x8, x8, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w9, w11, [x8, #-4]
	cmp	w2, w9
	csel	w10, w2, w9, lt
	mul	w11, w10, w11
	sdiv	w9, w11, w9
	add	w0, w9, w0
	sub	w2, w2, w10
	add	x8, x8, #8
	subs	x1, x1, #1
	b.ne	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_slopes_to_scale
.subsections_via_symbols
