	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function compute
LCPI0_0:
	.quad	0x4010000000000000              ## double 4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_compute:                               ## @compute
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r13d
	movl	4(%rdi), %ecx
	movl	8(%rdi), %edi
	movl	%esi, %eax
	cltd
	idivl	%edi
	movl	%eax, %r8d
	subl	%r13d, %ecx
	imull	%edx, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	%eax, %r14d
	movl	12(%rbx), %r12d
	movl	16(%rbx), %eax
	subl	%r12d, %eax
	imull	%r8d, %eax
	cltd
	idivl	20(%rbx)
	movl	%eax, %r15d
	movq	24(%rbx), %rax
	movslq	%esi, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,4), %edi
	shrl	$31, %edi
	callq	_assert
	movl	32(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	addl	%r13d, %r14d
	cvtsi2sd	%r14d, %xmm0
	addl	%r12d, %r15d
	cvtsi2sd	%r15d, %xmm1
	xorl	%ecx, %ecx
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movapd	%xmm0, %xmm5
	movapd	%xmm1, %xmm3
	movapd	%xmm0, %xmm4
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	mulsd	%xmm4, %xmm4
	movapd	%xmm3, %xmm6
	mulsd	%xmm3, %xmm6
	movapd	%xmm6, %xmm7
	addsd	%xmm4, %xmm7
	ucomisd	%xmm2, %xmm7
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	mulsd	%xmm5, %xmm3
	subsd	%xmm6, %xmm4
	addsd	%xmm0, %xmm4
	addsd	%xmm3, %xmm3
	addsd	%xmm1, %xmm3
	incl	%ecx
	movapd	%xmm4, %xmm5
	cmpl	%ecx, %eax
	jne	LBB0_3
## %bb.5:
	movl	%eax, %ecx
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_6:
	movq	24(%rbx), %rax
	movl	%ecx, (%rax,%rdx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute
_compute:                               ; @compute
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	w23, w27, [x0]
	ldp	w26, w22, [x0, #8]
	ldp	w25, w24, [x0, #16]
	ldr	x8, [x0, #24]
	sxtw	x21, w20
	ldr	w8, [x8, w1, sxtw #2]
	lsr	w0, w8, #31
	bl	_assert
	ldr	w9, [x19, #32]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w8, #0
	sub	w10, w27, w23
	sdiv	w11, w20, w26
	msub	w12, w11, w26, w20
	mul	w10, w12, w10
	sdiv	w10, w10, w26
	add	w10, w10, w23
	scvtf	d0, w10
	sub	w10, w25, w22
	mul	w10, w10, w11
	sdiv	w10, w10, w24
	add	w10, w10, w22
	scvtf	d1, w10
	fmov	d2, #4.00000000
	fmov	d3, d0
	fmov	d4, d1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	fmul	d5, d3, d3
	fmul	d6, d4, d4
	fadd	d7, d6, d5
	fcmp	d7, d2
	b.ge	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	fmul	d4, d4, d3
	fsub	d3, d5, d6
	fadd	d3, d3, d0
	fadd	d4, d4, d4
	fadd	d4, d4, d1
	add	w8, w8, #1
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.4:
	mov	x8, x9
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	ldr	x9, [x19, #24]
	str	w8, [x9, x21, lsl #2]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute
.subsections_via_symbols
