	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function hit_test
LCPI0_0:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hit_test
	.p2align	4, 0x90
_hit_test:                              ## @hit_test
	.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
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movss	%xmm4, -48(%rbp)                ## 4-byte Spill
	movss	%xmm3, -44(%rbp)                ## 4-byte Spill
	movss	%xmm2, -52(%rbp)                ## 4-byte Spill
	movss	%xmm1, -60(%rbp)                ## 4-byte Spill
	movl	%edi, -80(%rbp)                 ## 4-byte Spill
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	callq	_chunked
	movl	%eax, %r12d
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_chunked
	movl	%eax, %r14d
	leaq	-92(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	leaq	-84(%rbp), %rdx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_get_sight_vector
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorps	%xmm0, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-72(%rbp), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-68(%rbp), %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-64(%rbp), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %r12d
	movl	-76(%rbp), %r14d                ## 4-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	_g@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	addq	$4, %r13
	cmpq	%rcx, %r15
	jge	LBB0_2
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_chunk_distance
	cmpl	$1, %eax
	jg	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r14d
	movss	-92(%rbp), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	movss	-88(%rbp), %xmm4                ## xmm4 = mem[0],zero,zero,zero
	movss	-84(%rbp), %xmm5                ## xmm5 = mem[0],zero,zero,zero
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-60(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	leaq	-72(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-64(%rbp), %r9
	callq	__hit_test
	testl	%eax, %eax
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r12d
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-72(%rbp), %xmm0
	subss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edi
	movl	$2, %esi
	callq	_powf
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-68(%rbp), %xmm0
	movq	%rax, %rbx
	subss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edi
	movl	$2, %esi
	callq	_powf
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-64(%rbp), %xmm0
	addq	%rax, %rbx
	subss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %edi
	movl	$2, %esi
	callq	_powf
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_sqrtf
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	LCPI0_0(%rip), %xmm1
	jne	LBB0_7
	jnp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_9
	jmp	LBB0_8
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hit_test                       ; -- Begin function hit_test
	.p2align	2
_hit_test:                              ; @hit_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d13, d12, [sp, #48]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	stp	x2, x3, [sp, #8]                ; 16-byte Folded Spill
	mov	x21, x1
	fmov	s11, s4
	fmov	s12, s3
	fmov	s8, s2
	fmov	s9, s1
	fmov	s10, s0
	mov	x22, x0
	bl	_chunked
	mov	x23, x0
	fmov	s0, s8
	bl	_chunked
	mov	x24, x0
	add	x0, sp, #44
	add	x1, sp, #40
	add	x2, sp, #36
	fmov	s0, s12
	fmov	s1, s11
	bl	_get_sight_vector
Lloh0:
	adrp	x28, _g@GOTPAGE
Lloh1:
	ldr	x28, [x28, _g@GOTPAGEOFF]
	ldr	x8, [x28]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, #0
	mov	x20, #0
	mov	w25, #0
	movi	d11, #0000000000000000
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #32]
	str	w8, [x21]
	ldr	w8, [sp, #28]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w8, [sp, #24]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
	fmov	s11, s0
	mov	x25, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	x8, [x28]
	ldrsw	x9, [x8]
	add	x19, x19, #4
	cmp	x20, x9
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	x26, x8, x19
	mov	x0, x26
	mov	x1, x23
	mov	x2, x24
	bl	_chunk_distance
	cmp	w0, #1
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	s4, s3, [sp, #40]
	ldr	s5, [sp, #36]
	add	x3, sp, #32
	add	x4, sp, #28
	add	x5, sp, #24
	mov	x0, x26
	mov	w1, #8
	mov	x2, x22
	fmov	s0, s10
	fmov	s1, s9
	fmov	s2, s8
	bl	__hit_test
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	s0, [sp, #32]
	scvtf	s0, s0
	fsub	s0, s0, s10
	fcvtzs	w0, s0
	mov	w1, #2
	bl	_powf
	mov	x27, x0
	ldr	s0, [sp, #28]
	scvtf	s0, s0
	fsub	s0, s0, s9
	fcvtzs	w0, s0
	mov	w1, #2
	bl	_powf
	add	x27, x0, x27
	ldr	s0, [sp, #24]
	scvtf	s0, s0
	fsub	s0, s0, s8
	fcvtzs	w0, s0
	mov	w1, #2
	bl	_powf
	add	x0, x27, x0
	bl	_sqrtf
	fcmp	s11, #0.0
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	fcmp	s0, s11
	b.pl	LBB0_3
	b	LBB0_2
LBB0_8:
	mov	w25, #0
LBB0_9:
	mov	x0, x25
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
.subsections_via_symbols
