	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FaceFromSuperverts             ## -- Begin function FaceFromSuperverts
	.p2align	4, 0x90
_FaceFromSuperverts:                    ## @FaceFromSuperverts
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	_numsuperverts@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MAXEDGES@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r14d
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	_superverts@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_NewFaceFromFace
	movq	24(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r12), %rax
	movq	8(%rax), %r12
	movq	(%r15), %rax
	movq	%rax, 16(%r12)
	movq	%r12, (%r15)
	movq	_MAXEDGES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	subl	%ecx, %r14d
	addl	$2, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%ecx, %eax
	decl	%eax
	cltd
	movq	_numsuperverts@GOTPCREL(%rip), %rsi
	idivl	(%rsi)
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %r14d
	jle	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	_c_faceoverflows@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r12, %rdi
	callq	_NewFaceFromFace
	movq	24(%r12), %rcx
	movq	%rax, (%rcx)
	movq	24(%r12), %rax
	movq	(%rax), %r10
	movq	(%r15), %rax
	movq	%rax, 16(%r10)
	movq	%r10, (%r15)
	movl	(%rbx), %eax
	movl	%eax, (%r10)
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_numsuperverts@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$1, %r8d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rsi
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movslq	%edx, %rax
	movq	(%rsi,%rax,8), %rax
	movq	8(%r10), %rdx
	movq	%rax, (%rdx,%rbx,8)
	movq	(%r13), %rsi
	leal	1(%rcx), %eax
	cltd
	idivl	%edi
	movslq	%edx, %rax
	movq	(%rsi,%rax,8), %rax
	movq	8(%r10), %rdx
	movq	%rax, 8(%rdx,%rbx,8)
	addq	$2, %rbx
	addl	$2, %ecx
	cmpq	%rbx, %r9
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r8b
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	cltd
	idivl	%edi
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rax
	movq	8(%r10), %rcx
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_9
LBB0_10:
	movl	%r14d, (%r12)
	testl	%r14d, %r14d
	jle	LBB0_17
## %bb.11:
	movq	_numsuperverts@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %r8d
	cmpl	$1, %r14d
	jne	LBB0_13
## %bb.12:
	xorl	%edi, %edi
	jmp	LBB0_15
LBB0_13:
	movl	%r8d, %r10d
	andl	$-2, %r10d
	xorl	%edi, %edi
	movq	_superverts@GOTPCREL(%rip), %r9
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rbx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rax
	movq	(%rbx,%rax,8), %rax
	movq	8(%r12), %rdx
	movq	%rax, (%rdx,%rdi,8)
	movq	(%r9), %rbx
	leal	1(%rcx), %eax
	cltd
	idivl	%esi
	movslq	%edx, %rax
	movq	(%rbx,%rax,8), %rax
	movq	8(%r12), %rdx
	movq	%rax, 8(%rdx,%rdi,8)
	addq	$2, %rdi
	addl	$2, %ecx
	cmpq	%rdi, %r10
	jne	LBB0_14
LBB0_15:
	testb	$1, %r8b
	je	LBB0_17
## %bb.16:
	movq	_superverts@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%edi, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rax
	movq	8(%r12), %rcx
	movq	%rax, (%rcx,%rdi,8)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numsuperverts,4,2              ## @numsuperverts
	.comm	_MAXEDGES,4,2                   ## @MAXEDGES
	.comm	_c_faceoverflows,4,2            ## @c_faceoverflows
	.comm	_superverts,8,3                 ## @superverts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FaceFromSuperverts             ; -- Begin function FaceFromSuperverts
	.p2align	2
_FaceFromSuperverts:                    ; @FaceFromSuperverts
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x23, _numsuperverts@GOTPAGE
Lloh1:
	ldr	x23, [x23, _numsuperverts@GOTPAGEOFF]
	ldr	w24, [x23]
Lloh2:
	adrp	x25, _MAXEDGES@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MAXEDGES@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh4:
	adrp	x22, _superverts@GOTPAGE
Lloh5:
	ldr	x22, [x22, _superverts@GOTPAGEOFF]
	cmp	w24, w8
	b.le	LBB0_6
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x26, _c_faceoverflows@GOTPAGE
Lloh7:
	ldr	x26, [x26, _c_faceoverflows@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_NewFaceFromFace
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	ldr	x8, [x19, #24]
	ldr	x19, [x8, #8]
	ldr	x8, [x21]
	str	x8, [x19, #16]
	str	x19, [x21]
	ldr	w8, [x25]
	sub	w9, w24, w8
	add	w24, w9, #2
	add	w9, w20, w8
	sub	w9, w9, #1
	ldr	w10, [x23]
	sdiv	w11, w9, w10
	msub	w20, w11, w10, w9
	cmp	w24, w8
	b.le	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x26]
	add	w8, w8, #1
	str	w8, [x26]
	mov	x0, x19
	bl	_NewFaceFromFace
	ldr	x8, [x19, #24]
	str	x0, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [x21]
	str	x9, [x8, #16]
	str	x8, [x21]
	ldr	w9, [x25]
	str	w9, [x8]
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, #0
	ldr	w11, [x23]
	mov	w12, w20
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x22]
	add	w14, w12, w10
	sdiv	w15, w14, w11
	msub	w14, w15, w11, w14
	ldr	x13, [x13, w14, sxtw #3]
	ldr	x14, [x8, #8]
	str	x13, [x14, x10, lsl #3]
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	str	w24, [x19]
	cmp	w24, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x8, #0
	ldr	w9, [x23]
	mov	w10, w24
	mov	w11, w20
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x22]
	add	w13, w11, w8
	sdiv	w14, w13, w9
	msub	w13, w14, w9, w13
	ldr	x12, [x12, w13, sxtw #3]
	ldr	x13, [x19, #8]
	str	x12, [x13, x8, lsl #3]
	add	x8, x8, #1
	cmp	x10, x8
	b.ne	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_numsuperverts,4,2              ; @numsuperverts
	.comm	_MAXEDGES,4,2                   ; @MAXEDGES
	.comm	_c_faceoverflows,4,2            ; @c_faceoverflows
	.comm	_superverts,8,3                 ; @superverts
.subsections_via_symbols
