	.file	"extr_tetrahedron.c_TH_CreateEdge.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"MAX_TH_EDGES"
	.text
	.p2align 4
	.globl	TH_CreateEdge
	.type	TH_CreateEdge, @function
TH_CreateEdge:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movsx	rdi, DWORD PTR thworld[rip]
	test	edi, edi
	jne	.L2
	mov	DWORD PTR thworld[rip], 1
	mov	edi, 1
.L2:
	cmp	DWORD PTR MAX_TH_EDGES[rip], edi
	jle	.L6
.L3:
	lea	eax, 1[rdi]
	mov	DWORD PTR thworld[rip], eax
	mov	rax, QWORD PTR thworld[rip+8]
	lea	rdi, [rax+rdi*8]
	mov	rax, QWORD PTR [rdi]
	mov	DWORD PTR [rax], ebp
	mov	DWORD PTR 4[rax], ebx
	call	TH_AddEdgeToHash@PLT
	mov	eax, DWORD PTR thworld[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	sub	eax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	Error@PLT
	movsx	rdi, DWORD PTR thworld[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	TH_CreateEdge, .-TH_CreateEdge
	.comm	thworld,16,16
	.comm	MAX_TH_EDGES,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_tetrahedron.c_TH_CreateEdge.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MAX_TH_EDGES\000"
	.text
	.align	2
	.global	TH_CreateEdge
	.syntax unified
	.arm
	.fpu softvfp
	.type	TH_CreateEdge, %function
TH_CreateEdge:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L7
	mov	r5, r0
	ldr	r3, [r4]
	mov	r6, r1
	cmp	r3, #0
	moveq	r2, #1
	moveq	r3, r2
	streq	r2, [r4]
	ldr	r2, .L7+4
	ldr	r2, [r2]
	cmp	r2, r3
	ble	.L6
.L3:
	ldr	r0, [r4, #4]
	add	r1, r3, #1
	ldr	r2, [r0, r3, lsl #2]
	str	r1, [r4]
	add	r0, r0, r3, lsl #2
	str	r6, [r2, #4]
	str	r5, [r2]
	bl	TH_AddEdgeToHash
	ldr	r0, [r4]
	sub	r0, r0, #1
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, .L7+8
	bl	Error
	ldr	r3, [r4]
	b	.L3
.L8:
	.align	2
.L7:
	.word	thworld
	.word	MAX_TH_EDGES
	.word	.LC0
	.size	TH_CreateEdge, .-TH_CreateEdge
	.comm	thworld,8,4
	.comm	MAX_TH_EDGES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
