	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_metric
_compute_metric:                        ## @compute_metric
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.1:
	movq	(%r8), %r10
	testq	%r10, %r10
	je	LBB0_11
## %bb.2:
	movq	%rsi, %r12
	movq	16(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi), %r14
	movq	8(%rdi), %rax
	movl	(%rax,%r14,4), %r11d
	movslq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	%r9d, %ecx
	jne	LBB0_4
## %bb.3:
	cmpq	%r10, %r13
	jne	LBB0_4
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edx
	shll	$2, %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_4:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.5:
	leal	(,%r11,8), %r8d
	leal	(%r11,%r11), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	shlq	$3, %rsi
	movq	(%r10), %r10
	imull	%r11d, %r9d
	movslq	%r9d, %r15
	shlq	$2, %r15
	addq	(%r10,%r14,8), %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movslq	24(%rdi), %r9
	leaq	(%r15,%r9,4), %rbx
	movq	(%r13), %rdi
	imull	%r11d, %ecx
	movslq	%ecx, %rcx
	shlq	$2, %rcx
	addq	(%rdi,%r14,8), %rcx
	leaq	(%rcx,%r9,4), %r13
	movslq	%r8d, %rcx
	shlq	$2, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%edi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rbx
	addq	%rcx, %r13
	cmpl	%eax, %edi
	jge	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	*%r14
	movl	%eax, (%r12)
	addq	$4, %r12
	addq	$8, %r15
	addq	$32, %rbx
	addq	$32, %r13
	cmpq	-112(%rbp), %r15                ## 8-byte Folded Reload
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %eax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_metric
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_metric
_compute_metric:                        ; @compute_metric
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x9, [x2]
	cbz	x9, LBB0_12
; %bb.1:
	ldr	x11, [x4]
	cbz	x11, LBB0_12
; %bb.2:
	mov	x19, x6
	mov	x20, x1
	ldr	x13, [sp]                       ; 8-byte Folded Reload
	ldrsw	x12, [x13]
	ldr	x8, [x13, #8]
	ldr	w10, [x8, x12, lsl #2]
	ldrsw	x8, [x13, #16]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w3, w5
	b.ne	LBB0_5
; %bb.3:
	cmp	x9, x11
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x8, #20]
	lsl	w2, w8, #2
	mov	x0, x20
	mov	w1, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_memset
LBB0_5:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x8, #28]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.6:
	mov	w24, #0
	lsl	w13, w10, #3
	lsl	w22, w10, #1
	ldr	x11, [x11]
	lsl	x12, x12, #3
	ldr	x11, [x11, x12]
	mul	w14, w10, w5
	add	x11, x11, w14, sxtw #2
	ldr	x14, [sp, #8]                   ; 8-byte Folded Reload
	lsl	x25, x14, #3
	ldr	x9, [x9]
	ldr	x9, [x9, x12]
	ldr	x12, [sp]                       ; 8-byte Folded Reload
	ldrsw	x12, [x12, #24]
	lsl	x12, x12, #2
	add	x26, x11, x12
	mul	w10, w10, w3
	add	x9, x9, w10, sxtw #2
	add	x27, x9, x12
	sbfiz	x28, x13, #2, #32
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	add	x26, x26, x28
	add	x27, x27, x28
	cmp	w24, w8
	b.ge	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, #0
	mov	x21, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x27, x23
	add	x1, x26, x23
	mov	x2, x22
	blr	x19
	str	w0, [x20], #4
	add	x21, x21, #8
	add	x23, x23, #32
	cmp	x21, x25
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x8, #28]
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute_metric
.subsections_via_symbols
