	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function FindEdgeVerts
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_FindEdgeVerts
	.p2align	4, 0x90
_FindEdgeVerts:                         ## @FindEdgeVerts
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cvtsi2sdq	(%rdi), %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rdi), %xmm0
	addl	$4096, %eax                     ## imm = 0x1000
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %ecx
	sarl	$7, %eax
	addl	$4096, %ecx                     ## imm = 0x1000
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rsi), %xmm0
	sarl	$7, %ecx
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r8d
	addl	$4096, %r8d                     ## imm = 0x1000
	sarl	$7, %r8d
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rsi), %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r15d
	addl	$4096, %r15d                    ## imm = 0x1000
	sarl	$7, %r15d
	cmpl	%r8d, %eax
	movl	%r8d, %r13d
	cmovll	%eax, %r13d
	cmovgl	%eax, %r8d
	cmpl	%r15d, %ecx
	movl	%r15d, %r11d
	cmovll	%ecx, %r11d
	cmovgl	%ecx, %r15d
	movq	_num_edge_verts@GOTPCREL(%rip), %rdi
	movl	$0, (%rdi)
	movq	_hashverts@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_vertexchain@GOTPCREL(%rip), %r10
	movq	_HASH_SIZE@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r13), %eax
	cmpl	%r8d, %r13d
	movl	%eax, %r13d
	je	LBB0_7
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_3 Depth 3
	movq	_edge_verts@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%r10), %rsi
	movl	%r11d, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=2
	leal	1(%rcx), %eax
	cmpl	%r15d, %ecx
	movl	%eax, %ecx
	je	LBB0_6
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_3 Depth 3
	movl	(%r14), %eax
	imull	%ecx, %eax
	addl	%r13d, %eax
	cltq
	movl	(%r12,%rax,4), %eax
	testl	%eax, %eax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	(%rdi), %rdx
	leal	1(%rdx), %r9d
	movl	%r9d, (%rdi)
	movl	%eax, (%rbx,%rdx,4)
	cltq
	movl	(%rsi,%rax,4), %eax
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_edge_verts,4,2             ## @num_edge_verts
	.comm	_hashverts,8,3                  ## @hashverts
	.comm	_HASH_SIZE,4,2                  ## @HASH_SIZE
	.comm	_edge_verts,8,3                 ## @edge_verts
	.comm	_vertexchain,8,3                ## @vertexchain
	.comm	_numvertexes,4,2                ## @numvertexes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindEdgeVerts                  ; -- Begin function FindEdgeVerts
	.p2align	2
_FindEdgeVerts:                         ; @FindEdgeVerts
	.cfi_startproc
; %bb.0:
	ldp	d0, d1, [x0]
	scvtf	d0, d0
	fmov	d2, #0.50000000
	fadd	d0, d0, d2
	fcvtzs	w8, d0
	scvtf	d0, d1
	fadd	d0, d0, d2
	fcvtzs	w9, d0
	ldp	d0, d1, [x1]
	scvtf	d0, d0
	fadd	d0, d0, d2
	fcvtzs	w10, d0
	add	w8, w8, #1, lsl #12             ; =4096
	asr	w8, w8, #7
	add	w9, w9, #1, lsl #12             ; =4096
	asr	w11, w9, #7
	add	w9, w10, #1, lsl #12            ; =4096
	asr	w10, w9, #7
	scvtf	d0, d1
	fadd	d0, d0, d2
	fcvtzs	w9, d0
	add	w9, w9, #1, lsl #12             ; =4096
	asr	w12, w9, #7
	cmp	w8, w10
	csel	w9, w8, w10, lt
	csel	w8, w8, w10, gt
	cmp	w11, w12
	csel	w10, w11, w12, lt
	csel	w11, w11, w12, gt
Lloh0:
	adrp	x12, _num_edge_verts@GOTPAGE
Lloh1:
	ldr	x12, [x12, _num_edge_verts@GOTPAGEOFF]
	str	wzr, [x12]
Lloh2:
	adrp	x13, _hashverts@GOTPAGE
Lloh3:
	ldr	x13, [x13, _hashverts@GOTPAGEOFF]
Lloh4:
	ldr	x13, [x13]
Lloh5:
	adrp	x14, _edge_verts@GOTPAGE
Lloh6:
	ldr	x14, [x14, _edge_verts@GOTPAGEOFF]
Lloh7:
	adrp	x15, _vertexchain@GOTPAGE
Lloh8:
	ldr	x15, [x15, _vertexchain@GOTPAGEOFF]
Lloh9:
	adrp	x16, _HASH_SIZE@GOTPAGE
Lloh10:
	ldr	x16, [x16, _HASH_SIZE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w17, w9, #1
	cmp	w9, w8
	mov	x9, x17
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
	ldr	x17, [x14]
	ldr	x0, [x15]
	mov	x1, x10
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	w2, w1, #1
	cmp	w1, w11
	mov	x1, x2
	b.eq	LBB0_1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
	ldr	w2, [x16]
	madd	w2, w2, w1, w9
	ldr	w2, [x13, w2, sxtw #2]
	cbz	w2, LBB0_3
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x3, [x12]
	add	w4, w3, #1
	str	w4, [x12]
	str	w2, [x17, x3, lsl #2]
	ldr	w2, [x0, w2, sxtw #2]
	cbnz	w2, LBB0_5
	b	LBB0_3
LBB0_6:
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_num_edge_verts,4,2             ; @num_edge_verts
	.comm	_hashverts,8,3                  ; @hashverts
	.comm	_HASH_SIZE,4,2                  ; @HASH_SIZE
	.comm	_edge_verts,8,3                 ; @edge_verts
	.comm	_vertexchain,8,3                ; @vertexchain
	.comm	_numvertexes,4,2                ; @numvertexes
.subsections_via_symbols
