	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sphere                         ## -- Begin function sphere
	.p2align	4, 0x90
_sphere:                                ## @sphere
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %eax
	movl	%eax, %r8d
	subl	%esi, %r8d
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	addl	%esi, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r8d
	jle	LBB0_1
LBB0_19:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %ebx
	movl	4(%rdi), %eax
	movl	8(%rdi), %r12d
	movl	12(%rdi), %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	subl	%esi, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	(%rax,%rsi), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %ecx
	cvtsi2ssl	-112(%rbp), %xmm8       ## 4-byte Folded Reload
	subl	%esi, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	cvtsi2ss	%eax, %xmm9
	leal	(%r12,%rsi), %edi
	cvtsi2ss	%r12d, %xmm6
	cvtsi2ss	%esi, %xmm7
	leaq	_sphere.offsets(%rip), %r13
	movl	%r9d, -96(%rbp)                 ## 4-byte Spill
	movss	%xmm8, -88(%rbp)                ## 4-byte Spill
	movss	%xmm9, -84(%rbp)                ## 4-byte Spill
	movl	%edi, -80(%rbp)                 ## 4-byte Spill
	movss	%xmm6, -76(%rbp)                ## 4-byte Spill
	movss	%xmm7, -72(%rbp)                ## 4-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r8), %eax
	cmpl	-56(%rbp), %r8d                 ## 4-byte Folded Reload
	movl	%eax, %r8d
	je	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	cmpl	-112(%rbp), %r8d                ## 4-byte Folded Reload
	setne	%cl
	testb	%cl, %al
	jne	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm4, %xmm4
	cvtsi2ss	%r8d, %xmm4
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	movss	%xmm4, -100(%rbp)               ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=2
	leal	1(%r14), %eax
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%eax, %r14d
	je	LBB0_18
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	cmpl	-120(%rbp), %r14d               ## 4-byte Folded Reload
	setne	%cl
	testb	%cl, %al
	jne	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%edi, -52(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	xorps	%xmm5, %xmm5
	cvtsi2ss	%r14d, %xmm5
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	movss	%xmm5, -104(%rbp)               ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=3
	leal	1(%r15), %eax
	cmpl	%edi, %r15d
	movl	%eax, %r15d
	je	LBB0_17
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
	testl	%r9d, %r9d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=3
	cmpl	%r12d, %r15d
	jne	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=3
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	xorl	%eax, %eax
	movl	$8, %edx
	movl	%ebx, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=4
	movl	$1, %ecx
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=4
	addq	$12, %rdx
	cmpq	$104, %rdx
	je	LBB0_13
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ##       Parent Loop BB0_8 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movss	-8(%rdx,%r13), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm4, %xmm1
	subss	%xmm8, %xmm1
	movss	-4(%rdx,%r13), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm5, %xmm2
	subss	%xmm9, %xmm2
	movss	(%rdx,%r13), %xmm3              ## xmm3 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm3
	subss	%xmm6, %xmm3
	mulss	%xmm2, %xmm2
	mulss	%xmm1, %xmm1
	addss	%xmm2, %xmm1
	mulss	%xmm3, %xmm3
	addss	%xmm1, %xmm3
	xorps	%xmm1, %xmm1
	sqrtss	%xmm3, %xmm1
	ucomiss	%xmm1, %xmm7
	jbe	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=4
	movl	$1, %eax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=3
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=3
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=3
	movl	%r8d, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movq	%r8, %rbx
	callq	_builder_block
	movss	-104(%rbp), %xmm5               ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movss	-100(%rbp), %xmm4               ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movss	-72(%rbp), %xmm7                ## 4-byte Reload
                                        ## xmm7 = mem[0],zero,zero,zero
	movss	-76(%rbp), %xmm6                ## 4-byte Reload
                                        ## xmm6 = mem[0],zero,zero,zero
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movss	-84(%rbp), %xmm9                ## 4-byte Reload
                                        ## xmm9 = mem[0],zero,zero,zero
	movss	-88(%rbp), %xmm8                ## 4-byte Reload
                                        ## xmm8 = mem[0],zero,zero,zero
	movl	-96(%rbp), %r9d                 ## 4-byte Reload
	movq	%rbx, %r8
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @sphere.offsets
_sphere.offsets:
	.long	0xbf000000                      ## float -0.5
	.long	0xbf000000                      ## float -0.5
	.long	0xbf000000                      ## float -0.5
	.long	0xbf000000                      ## float -0.5
	.long	0xbf000000                      ## float -0.5
	.long	0x3f000000                      ## float 0.5
	.long	0xbf000000                      ## float -0.5
	.long	0x3f000000                      ## float 0.5
	.long	0xbf000000                      ## float -0.5
	.long	0xbf000000                      ## float -0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0xbf000000                      ## float -0.5
	.long	0xbf000000                      ## float -0.5
	.long	0x3f000000                      ## float 0.5
	.long	0xbf000000                      ## float -0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0xbf000000                      ## float -0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sphere
lCPI0_0:
	.long	0x3f000000                      ; float 0.5
	.long	0xbf000000                      ; float -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sphere
	.p2align	2
_sphere:                                ; @sphere
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	d11, d10, [sp, #112]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #128]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	str	w4, [sp, #60]                   ; 4-byte Folded Spill
	ldr	w8, [x0]
	sub	w23, w8, w1
	stp	w3, w8, [sp, #12]               ; 8-byte Folded Spill
	add	w8, w8, w1
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	cmp	w23, w8
	b.le	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #128]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_2:
	mov	x19, x5
	mov	x22, x2
	ldp	w9, w21, [x0, #4]
	ldr	w24, [x0, #12]
	sub	w8, w9, w1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	add	w26, w9, w1
	sub	w8, w21, w1
	stp	w8, w9, [sp, #52]               ; 8-byte Folded Spill
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	scvtf	s0, w8
	scvtf	s1, w9
	scvtf	s2, w21
	scvtf	s3, w1
	dup.2s	v8, v0[0]
	dup.2s	v9, v1[0]
	dup.2s	v10, v2[0]
	dup.4s	v3, v3[0]
	add	w20, w21, w1
	mov	w8, #1
	bfi	w8, w1, #1, #31
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	neg	w8, w1
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d11, [x8, lCPI0_0@PAGEOFF]
	str	q3, [sp, #64]                   ; 16-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w23, #1
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w23, w9
	mov	x23, x8
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cmp	w23, w8
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #4, ne
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	ccmp	w8, w26, #0, eq
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	scvtf	s0, w23
	dup.2s	v0, v0[0]
	fadd.2s	v0, v0, v11
	fsub.2s	v0, v0, v8
	zip1.4s	v0, v0, v0
	str	q0, [sp, #32]                   ; 16-byte Folded Spill
	ldr	w25, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w8, w25, #1
	cmp	w25, w26
	mov	x25, x8
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cmp	w25, w8
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	ccmp	w8, #0, #4, ne
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	ccmp	w8, w20, #0, eq
	b.gt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	scvtf	s0, w25
	dup.2s	v0, v0[0]
	fadd.2s	v0, v0, v11
	fsub.2s	v0, v0, v9
	fmul.2s	v0, v0, v0
	mov.d	v0[1], v0[0]
	ldr	q1, [sp, #32]                   ; 16-byte Folded Reload
	fmla.4s	v0, v1, v1
	zip2.4s	v4, v0, v0
	zip1.4s	v5, v0, v0
	ldp	w28, w27, [sp, #24]             ; 8-byte Folded Reload
	stp	q5, q4, [sp, #80]               ; 32-byte Folded Spill
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=3
	add	w28, w28, #1
	subs	w27, w27, #1
	b.eq	LBB0_6
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	w19, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	cbnz	w28, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=3
	add	w2, w21, w28
	cmp	w22, #0
	cset	w8, ne
	scvtf	s0, w2
	dup.2s	v0, v0[0]
	fadd.2s	v0, v0, v11
	fsub.2s	v0, v0, v10
	mov.d	v0[1], v0[0]
	mov.16b	v1, v4
	fmla.4s	v1, v0, v0
	mov.16b	v2, v5
	fmla.4s	v2, v0, v0
	fsqrt.4s	v0, v2
	fsqrt.4s	v1, v1
	fcmgt.4s	v1, v3, v1
	fcmgt.4s	v0, v3, v0
	uzp1.8h	v0, v0, v1
	xtn.8b	v0, v0
	umov.b	w9, v0[0]
	umov.b	w10, v0[1]
	orr	w12, w9, w10
	umov.b	w11, v0[2]
	orr	w13, w12, w11
	umov.b	w12, v0[3]
	orr	w14, w13, w12
	umov.b	w13, v0[4]
	orr	w15, w14, w13
	umov.b	w14, v0[5]
	orr	w16, w15, w14
	umov.b	w15, v0[6]
	orr	w17, w16, w15
	umov.b	w16, v0[7]
	orr	w17, w17, w16
	tbz	w17, #0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=3
	and	w9, w9, w10
	and	w9, w9, w11
	and	w9, w9, w12
	and	w9, w9, w13
	and	w9, w9, w14
	and	w9, w9, w15
	and	w9, w9, w16
	eor	w9, w9, #0x1
	orr	w8, w8, w9
	tbz	w8, #0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=3
	mov	x0, x23
	mov	x1, x25
	mov	x3, x24
	bl	_builder_block
	ldp	q5, q4, [sp, #80]               ; 32-byte Folded Reload
	ldr	q3, [sp, #64]                   ; 16-byte Folded Reload
	b	LBB0_9
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
