	.file	"extr_tjunction.c_AddPatchEdges.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AddPatchEdges
	.type	AddPatchEdges, @function
AddPatchEdges:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	DWORD PTR [rdi], 2
	jle	.L2
	mov	ebx, 8
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 4[r12]
	mov	rdx, QWORD PTR 8[r12]
	sub	eax, 1
	imul	eax, DWORD PTR [r12]
	add	eax, ebp
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	r13, QWORD PTR [rdx+rax*8]
	mov	r14, QWORD PTR 16[rdx+rcx]
	mov	rsi, QWORD PTR 8[rdx+rcx]
	mov	rdi, r13
	mov	rdx, r14
	call	ColinearEdge@PLT
	test	rax, rax
	jne	.L26
.L4:
	mov	eax, DWORD PTR [r12]
	add	ebp, 2
	add	rbx, 16
	sub	eax, 2
	cmp	eax, ebp
	jle	.L2
.L5:
	mov	rax, QWORD PTR 8[r12]
	mov	r13, QWORD PTR -8[rax+rbx]
	mov	r14, QWORD PTR 8[rax+rbx]
	mov	rsi, QWORD PTR [rax+rbx]
	mov	rdx, r14
	mov	rdi, r13
	call	ColinearEdge@PLT
	test	rax, rax
	je	.L3
	mov	edx, DWORD PTR qfalse[rip]
	mov	rsi, r14
	mov	rdi, r13
	call	AddEdge@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, DWORD PTR qfalse[rip]
	mov	rsi, r14
	mov	rdi, r13
	call	AddEdge@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	DWORD PTR 4[r12], 2
	jle	.L1
	xor	ebx, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR [r12]
	mov	rcx, QWORD PTR 8[r12]
	imul	ebp, eax
	lea	esi, -1[rax]
	lea	edx, [rsi+rbp]
	movsx	rdx, edx
	mov	r14, QWORD PTR [rcx+rdx*8]
	lea	edx, 0[rbp+rax*2]
	imul	eax, r13d
	add	edx, esi
	movsx	rdx, edx
	mov	rdi, r14
	mov	rbp, QWORD PTR [rcx+rdx*8]
	add	eax, esi
	cdqe
	mov	rdx, rbp
	mov	rsi, QWORD PTR [rcx+rax*8]
	call	ColinearEdge@PLT
	test	rax, rax
	jne	.L27
	mov	eax, DWORD PTR 4[r12]
	sub	eax, 2
	cmp	ebx, eax
	jge	.L1
.L9:
	mov	eax, DWORD PTR [r12]
	lea	r13d, 1[rbx]
	mov	rdx, QWORD PTR 8[r12]
	mov	ebp, ebx
	mov	ecx, eax
	imul	ecx, ebx
	add	ebx, 2
	movsx	rsi, ecx
	lea	ecx, [rcx+rax*2]
	imul	eax, r13d
	movsx	rcx, ecx
	mov	r14, QWORD PTR [rdx+rsi*8]
	mov	r15, QWORD PTR [rdx+rcx*8]
	mov	rdi, r14
	cdqe
	mov	rsi, QWORD PTR [rdx+rax*8]
	mov	rdx, r15
	call	ColinearEdge@PLT
	test	rax, rax
	je	.L7
	mov	edx, DWORD PTR qfalse[rip]
	mov	rsi, r15
	mov	rdi, r14
	call	AddEdge@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, DWORD PTR qfalse[rip]
	mov	rsi, rbp
	mov	rdi, r14
	call	AddEdge@PLT
	mov	eax, DWORD PTR 4[r12]
	sub	eax, 2
	cmp	ebx, eax
	jl	.L9
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	AddPatchEdges, .-AddPatchEdges
	.comm	qfalse,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tjunction.c_AddPatchEdges.c"
	.text
	.align	2
	.global	AddPatchEdges
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddPatchEdges, %function
AddPatchEdges:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #2
	mov	r4, r0
	ble	.L2
	mov	r6, #0
	ldr	r7, .L28
	mov	r5, r6
	b	.L5
.L3:
	ldm	r4, {r2, r3}
	sub	r3, r3, #1
	mla	r3, r2, r3, r5
	ldr	r2, [r4, #8]
	add	r5, r5, #2
	ldr	r8, [r2, r3, lsl #2]
	add	r1, r2, r3, lsl #2
	ldmib	r1, {r1, r9}
	mov	r0, r8
	mov	r2, r9
	bl	ColinearEdge
	cmp	r0, #0
	bne	.L26
	ldr	r3, [r4]
	sub	r2, r3, #2
	cmp	r2, r5
	ble	.L2
.L5:
	ldr	r2, [r4, #8]
	mov	r3, r2
	ldr	r8, [r3, r6]!
	add	r6, r6, #8
	ldr	r9, [r2, r6]
	mov	r0, r8
	mov	r2, r9
	ldr	r1, [r3, #4]
	bl	ColinearEdge
	cmp	r0, #0
	beq	.L3
	mov	r1, r9
	mov	r0, r8
	ldr	r2, [r7]
	bl	AddEdge
	b	.L3
.L26:
	ldr	r2, [r7]
	mov	r1, r9
	mov	r0, r8
	bl	AddEdge
	ldr	r3, [r4]
	sub	r2, r3, #2
	cmp	r2, r5
	bgt	.L5
.L2:
	ldr	r2, [r4, #4]
	cmp	r2, #2
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r5, #0
	ldr	r6, .L28
	b	.L9
.L7:
	ldr	r3, [r4]
	ldr	r0, [r4, #8]
	mul	r1, r8, r3
	sub	r2, r3, #1
	mla	r7, r3, r7, r2
	add	r3, r2, r3, lsl #1
	add	r3, r3, r1
	add	r1, r2, r1
	ldr	r9, [r0, r3, lsl #2]
	ldr	r8, [r0, r1, lsl #2]
	mov	r2, r9
	ldr	r1, [r0, r7, lsl #2]
	mov	r0, r8
	bl	ColinearEdge
	cmp	r0, #0
	bne	.L27
.L8:
	ldr	r3, [r4, #4]
	sub	r3, r3, #2
	cmp	r5, r3
	popge	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r4]
.L9:
	mul	r0, r5, r3
	add	r7, r5, #1
	ldr	r1, [r4, #8]
	mul	r2, r7, r3
	add	r3, r0, r3, lsl #1
	ldr	r10, [r1, r3, lsl #2]
	ldr	r9, [r1, r0, lsl #2]
	ldr	r1, [r1, r2, lsl #2]
	mov	r0, r9
	mov	r2, r10
	bl	ColinearEdge
	cmp	r0, #0
	mov	r8, r5
	add	r5, r5, #2
	beq	.L7
	mov	r1, r10
	mov	r0, r9
	ldr	r2, [r6]
	bl	AddEdge
	b	.L7
.L27:
	mov	r1, r9
	mov	r0, r8
	ldr	r2, [r6]
	bl	AddEdge
	b	.L8
.L29:
	.align	2
.L28:
	.word	qfalse
	.size	AddPatchEdges, .-AddPatchEdges
	.comm	qfalse,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
