	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreatePassages                 ## -- Begin function CreatePassages
	.p2align	4, 0x90
_CreatePassages:                        ## @CreatePassages
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SEPERATORS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	addl	%eax, %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_sorted_portals@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rcx
	cmpq	$0, 40(%rcx)
	je	LBB0_2
## %bb.1:
	movq	_stat_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rcx)
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_leafs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	cmpl	$0, (%rax,%rcx)
	jle	LBB0_30
## %bb.3:
	leaq	(%rax,%rcx), %rdx
	addq	%rax, %rcx
	addq	$8, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$48, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	_MAX_SEPERATORS@GOTPCREL(%rip), %rbx
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	movslq	(%rdx), %rax
	cmpq	%rax, %rsi
	jge	LBB0_30
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
                                        ##         Child Loop BB0_17 Depth 4
                                        ##       Child Loop BB0_23 Depth 3
	movq	(%rcx), %rax
	movq	(%rax,%rsi,8), %r15
	cmpq	$0, 40(%r15)
	jne	LBB0_29
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	_portalbytes@GOTPCREL(%rip), %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	addq	$16, %rdi
	callq	_malloc
	movq	%rax, %r14
	movq	(%r13), %rdx
	addq	$16, %rdx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	24(%r13), %rdi
	movq	24(%r15), %rsi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	addl	%r8d, %r8d
	movq	%r12, %rcx
	callq	_AddSeperators
	movq	%r15, -136(%rbp)                ## 8-byte Spill
	movq	24(%r15), %rdi
	movl	%eax, %r15d
	movq	24(%r13), %rsi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movslq	%r15d, %rax
	leaq	(%r12,%rax,8), %rcx
	movl	(%rbx), %r8d
	addl	%r8d, %r8d
	subl	%eax, %r8d
	callq	_AddSeperators
	movl	%eax, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	8(%rdx), %rax
	testq	%rdx, %rdx
	cmoveq	-128(%rbp), %rax                ## 8-byte Folded Reload
	movq	$0, 8(%r14)
	movq	%r14, (%rax)
	movq	_numportals@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_28
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	addl	%r15d, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	24(%rax,%rdx), %rsi
	leaq	-152(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	orl	%edx, (%rax,%rcx,4)
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	movq	_numportals@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %rax
	cmpq	%rax, %r13
	jge	LBB0_27
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
                                        ##         Child Loop BB0_17 Depth 4
                                        ##       Child Loop BB0_23 Depth 3
	movq	_portals@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r13, %rdx
	shlq	$6, %rdx
	cmpq	$0, 40(%rax,%rdx)
	jne	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rsi
	movl	%r13d, %edi
	movl	%r13d, %ecx
	andb	$7, %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	shrl	$3, %edi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movl	(%rsi,%rdi,4), %esi
	movzbl	%cl, %ecx
	btl	%ecx, %esi
	jae	LBB0_26
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, (%rcx,%rsi,4)
	je	LBB0_26
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%rax,%rdx), %r14
	addq	$32, %r14
	xorl	%ebx, %ebx
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_17 Depth 4
	movl	(%r14), %edi
	movl	4(%r12,%rbx,8), %esi
	callq	_DotProduct
	subss	(%r12,%rbx,8), %xmm0
	movq	_ON_EPSILON@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	subss	-16(%r14), %xmm1
	ucomiss	%xmm0, %xmm1
	ja	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=3
	movq	-8(%r14), %r14
	movl	(%r14), %eax
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ##       Parent Loop BB0_15 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	8(%r14), %rax
	movl	(%rax,%r15,4), %edi
	movl	4(%r12,%rbx,8), %esi
	callq	_DotProduct
	subss	(%r12,%rbx,8), %xmm0
	movq	_ON_EPSILON@GOTPCREL(%rip), %rax
	ucomiss	(%rax), %xmm0
	ja	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=4
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jl	LBB0_17
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=3
	movl	(%r14), %eax
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=3
	movq	-120(%rbp), %r14                ## 8-byte Reload
	cmpl	%eax, %r15d
	jge	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=3
	incq	%rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, %rbx
	jne	LBB0_15
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-8(%r14), %rsi
	leaq	-152(%rbp), %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	-152(%rbp), %rdi
	leaq	-168(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_PassageChopWinding
	movq	%rax, %r14
	leaq	-168(%rbp), %rax
	cmpq	%rax, %r14
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=3
	leaq	-152(%rbp), %rdi
	leaq	-168(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=3
	testq	%r14, %r14
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=3
	addq	$8, %rbx
	decq	%r15
	jne	LBB0_23
	jmp	LBB0_12
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SEPERATORS,4,2             ## @MAX_SEPERATORS
	.comm	_sorted_portals,8,3             ## @sorted_portals
	.comm	_stat_done,4,2                  ## @stat_done
	.comm	_leafs,8,3                      ## @leafs
	.comm	_portalbytes,8,3                ## @portalbytes
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_numportals,4,2                 ## @numportals
	.comm	_portals,8,3                    ## @portals
	.comm	_ON_EPSILON,4,2                 ## @ON_EPSILON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreatePassages                 ; -- Begin function CreatePassages
	.p2align	2
_CreatePassages:                        ; @CreatePassages
	.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
	sub	sp, sp, #128
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_SEPERATORS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SEPERATORS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x28, x9, x8
	mov	sp, x28
Lloh8:
	adrp	x8, _sorted_portals@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sorted_portals@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x23, [x8, w0, sxtw #3]
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_4
; %bb.1:
Lloh11:
	adrp	x8, _stat_done@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stat_done@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x23, #56]
LBB0_2:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.3:
	sub	sp, x29, #80
	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
LBB0_4:
Lloh17:
	adrp	x8, _leafs@GOTPAGE
Lloh18:
	ldr	x8, [x8, _leafs@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x9, x8, x9, lsl #4
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.5:
	mov	x24, #0
	mov	x22, #0
	add	x26, x9, #8
	add	x8, x23, #48
	stur	x8, [x29, #-192]                ; 8-byte Folded Spill
Lloh20:
	adrp	x25, _ON_EPSILON@GOTPAGE
Lloh21:
	ldr	x25, [x25, _ON_EPSILON@GOTPAGEOFF]
	stur	x23, [x29, #-168]               ; 8-byte Folded Spill
	stp	x26, x9, [x29, #-208]           ; 16-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldp	x22, x23, [x29, #-176]          ; 16-byte Folded Reload
	ldp	x26, x9, [x29, #-208]           ; 16-byte Folded Reload
	ldur	x24, [x29, #-184]               ; 8-byte Folded Reload
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x9]
	cmp	x24, x8
	b.ge	LBB0_2
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;       Child Loop BB0_19 Depth 3
                                        ;         Child Loop BB0_22 Depth 4
                                        ;       Child Loop BB0_29 Depth 3
	ldr	x8, [x26]
	ldr	x27, [x8, x24, lsl #3]
	ldr	x8, [x27, #40]
	cbnz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh22:
	adrp	x21, _portalbytes@GOTPAGE
Lloh23:
	ldr	x21, [x21, _portalbytes@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, #16
	bl	_malloc
	mov	x19, x0
	ldr	x8, [x21]
	add	x2, x8, #16
	mov	w1, #0
	bl	_memset
	ldr	x0, [x23, #24]
	ldr	x1, [x27, #24]
Lloh24:
	adrp	x8, _qfalse@GOTPAGE
Lloh25:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x20, _MAX_SEPERATORS@GOTPAGE
Lloh28:
	ldr	x20, [x20, _MAX_SEPERATORS@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	w4, w8, #1
	mov	x3, x28
	bl	_AddSeperators
	mov	x21, x0
	ldr	x0, [x27, #24]
	ldr	x1, [x23, #24]
Lloh29:
	adrp	x8, _qtrue@GOTPAGE
Lloh30:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x3, x28, w21, sxtw #3
	ldr	w8, [x20]
	lsl	w8, w8, #1
	sub	w4, w8, w21
	bl	_AddSeperators
	str	xzr, [x19, #8]
	add	x8, x22, #8
	cmp	x22, #0
	ldur	x9, [x29, #-192]                ; 8-byte Folded Reload
	csel	x8, x9, x8, eq
	str	x19, [x8]
Lloh32:
	adrp	x8, _numportals@GOTPAGE
Lloh33:
	ldr	x8, [x8, _numportals@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	stp	x24, x19, [x29, #-184]          ; 16-byte Folded Spill
	stur	x27, [x29, #-160]               ; 8-byte Folded Spill
	mov	x24, #0
	add	w8, w0, w21
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x8, x8, x24, lsl #6
	ldr	x1, [x8, #24]
	sub	x0, x29, #104
	mov	w2, #16
	bl	_memcpy
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldur	x9, [x29, #-144]                ; 8-byte Folded Reload
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	ldur	w11, [x29, #-148]               ; 4-byte Folded Reload
	orr	w10, w10, w11
	str	w10, [x8, x9]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x24, x24, #1
Lloh35:
	adrp	x8, _numportals@GOTPAGE
Lloh36:
	ldr	x8, [x8, _numportals@GOTPAGEOFF]
Lloh37:
	ldrsw	x8, [x8]
	cmp	x24, x8, lsl #1
	b.ge	LBB0_6
LBB0_14:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_19 Depth 3
                                        ;         Child Loop BB0_22 Depth 4
                                        ;       Child Loop BB0_29 Depth 3
Lloh38:
	adrp	x8, _portals@GOTPAGE
Lloh39:
	ldr	x8, [x8, _portals@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	add	x9, x8, x24, lsl #6
	ldr	x9, [x9, #40]
	cbnz	x9, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldur	x9, [x29, #-160]                ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ubfx	x10, x24, #3, #29
	stur	x10, [x29, #-144]               ; 8-byte Folded Spill
	ldr	w9, [x9, x10, lsl #2]
	and	w10, w24, #0x7
	mov	w11, #1
	lsl	w10, w11, w10
	stur	w10, [x29, #-148]               ; 4-byte Folded Spill
	tst	w9, w10
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldur	x9, [x29, #-168]                ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldur	x10, [x29, #-144]               ; 8-byte Folded Reload
	ldr	w9, [x9, x10, lsl #2]
	ldur	w10, [x29, #-148]               ; 4-byte Folded Reload
	tst	w9, w10
	b.eq	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	cmp	w9, #0
	b.le	LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x21, #0
	add	x8, x8, x24, lsl #6
	add	x9, x8, #32
	stur	x9, [x29, #-136]                ; 8-byte Folded Spill
	add	x27, x8, #16
	add	x26, x8, #24
LBB0_19:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_22 Depth 4
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	ldr	w0, [x8]
	add	x20, x28, x21, lsl #3
	mov	x19, x20
	ldr	w1, [x19, #4]!
	bl	_DotProduct
	ldr	s1, [x20]
	fsub	s0, s0, s1
	ldr	s1, [x27]
	ldr	s2, [x25]
	fsub	s1, s2, s1
	fcmp	s0, s1
	b.mi	LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=3
	mov	x22, x28
	ldr	x28, [x26]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=3
	mov	x23, #0
LBB0_22:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ;       Parent Loop BB0_19 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x28, #8]
	ldr	w0, [x8, x23, lsl #2]
	ldr	w1, [x19]
	bl	_DotProduct
	ldr	s1, [x20]
	fsub	s0, s0, s1
	ldr	s1, [x25]
	fcmp	s0, s1
	b.gt	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=4
	add	x23, x23, #1
	ldrsw	x8, [x28]
	cmp	x23, x8
	b.lt	LBB0_22
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_19 Depth=3
	mov	w23, #0
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=3
	ldr	w8, [x28]
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=3
	mov	x28, x22
	cmp	w23, w8
	b.ge	LBB0_13
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=3
	add	x21, x21, #1
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	cmp	x21, x8
	b.ne	LBB0_19
; %bb.28:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x1, [x26]
	sub	x0, x29, #104
	mov	w2, #16
	bl	_memcpy
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	mov	x21, x28
LBB0_29:                                ;   Parent Loop BB0_8 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	sub	x0, x29, #104
	sub	x1, x29, #120
	mov	x2, x21
	bl	_PassageChopWinding
	mov	x22, x0
	sub	x8, x29, #120
	cmp	x0, x8
	b.ne	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=3
	sub	x0, x29, #104
	sub	x1, x29, #120
	mov	w2, #16
	bl	_memcpy
LBB0_31:                                ;   in Loop: Header=BB0_29 Depth=3
	cbz	x22, LBB0_13
; %bb.32:                               ;   in Loop: Header=BB0_29 Depth=3
	add	x21, x21, #8
	subs	x19, x19, #1
	b.ne	LBB0_29
	b	LBB0_12
LBB0_33:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x19
	ldur	x9, [x29, #-200]                ; 8-byte Folded Reload
	b	LBB0_7
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SEPERATORS,4,2             ; @MAX_SEPERATORS
	.comm	_sorted_portals,8,3             ; @sorted_portals
	.comm	_stat_done,4,2                  ; @stat_done
	.comm	_leafs,8,3                      ; @leafs
	.comm	_portalbytes,8,3                ; @portalbytes
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_numportals,4,2                 ; @numportals
	.comm	_portals,8,3                    ; @portals
	.comm	_ON_EPSILON,4,2                 ; @ON_EPSILON
.subsections_via_symbols
