	.file	"extr_tess.c_CheckOrientation.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CheckOrientation, @function
CheckOrientation:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r11, QWORD PTR 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	r10, QWORD PTR 24[r11]
	lea	rbx, 16[r11]
	cmp	rbx, r10
	je	.L1
	xor	r8d, r8d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r9, QWORD PTR [r10]
	cmp	QWORD PTR [r9], 0
	jle	.L3
	mov	rdx, r9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR 24[rdx]
	mov	rcx, QWORD PTR 16[rdx]
	mov	rdx, QWORD PTR 8[rdx]
	mov	eax, DWORD PTR [rsi]
	sub	eax, DWORD PTR [rcx]
	mov	ecx, DWORD PTR 4[rcx]
	add	ecx, DWORD PTR 4[rsi]
	imul	eax, ecx
	cdqe
	add	r8, rax
	cmp	r9, rdx
	jne	.L4
.L3:
	mov	r10, QWORD PTR 8[r10]
	cmp	rbx, r10
	jne	.L5
	test	r8, r8
	js	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r11]
	cmp	r11, rax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	neg	DWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	cmp	r11, rax
	jne	.L7
.L6:
	mov	rax, QWORD PTR [rdi]
	neg	DWORD PTR [rax]
	neg	DWORD PTR 4[rax]
	neg	DWORD PTR 8[rax]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	CheckOrientation, .-CheckOrientation
	.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_tess.c_CheckOrientation.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckOrientation, %function
CheckOrientation:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0, #4]
	ldr	r5, [r7, #12]
	add	r6, r7, #8
	cmp	r6, r5
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	lr, #0
.L5:
	ldr	r4, [r5]
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L3
	mov	r3, r4
.L4:
	ldr	r1, [r3, #12]
	ldr	ip, [r3, #8]
	ldr	r2, [r1]
	ldr	r3, [r3, #4]
	ldr	r1, [r1, #4]
	ldm	ip, {r8, ip}
	cmp	r4, r3
	sub	r2, r2, r8
	add	r1, r1, ip
	mla	lr, r1, r2, lr
	bne	.L4
.L3:
	ldr	r5, [r5, #4]
	cmp	r6, r5
	bne	.L5
	cmp	lr, #0
	popge	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r7, #4]
	cmp	r7, r3
	beq	.L6
.L7:
	ldr	r2, [r3]
	rsb	r2, r2, #0
	str	r2, [r3]
	ldr	r3, [r3, #4]
	cmp	r7, r3
	bne	.L7
.L6:
	ldr	r3, [r0]
	ldm	r3, {r0, r1, r2}
	rsb	r0, r0, #0
	rsb	r1, r1, #0
	rsb	r2, r2, #0
	stm	r3, {r0, r1, r2}
	pop	{r4, r5, r6, r7, r8, pc}
	.size	CheckOrientation, .-CheckOrientation
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
