	.file	"258758.c"
	.intel_syntax noprefix
	.text
	.globl	onSegment
	.type	onSegment, @function
onSegment:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cmp	edx, eax
	cmovle	eax, edx
	cmp	ecx, eax
	jl	.L2
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cmp	edx, eax
	cmovge	eax, edx
	cmp	ecx, eax
	jg	.L2
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	cmovle	eax, edx
	cmp	ecx, eax
	jl	.L2
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cmp	edx, eax
	cmovge	eax, edx
	cmp	ecx, eax
	jg	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	onSegment, .-onSegment
	.globl	orientation
	.type	orientation, @function
orientation:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	sub	eax, ecx
	imul	eax, edx
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	ecx, edx
	sub	ecx, esi
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -24[rbp]
	sub	edx, esi
	imul	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L7
	mov	eax, 1
	jmp	.L6
.L7:
	mov	eax, 2
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	orientation, .-orientation
	.globl	isIntersect
	.type	isIntersect, @function
isIntersect:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	orientation
	mov	DWORD PTR -16[rbp], eax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	orientation
	mov	DWORD PTR -12[rbp], eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	orientation
	mov	DWORD PTR -8[rbp], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	orientation
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	je	.L10
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	je	.L10
	mov	eax, 1
	jmp	.L11
.L10:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L12
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	onSegment
	test	eax, eax
	je	.L12
	mov	eax, 1
	jmp	.L11
.L12:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L13
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	onSegment
	test	eax, eax
	je	.L13
	mov	eax, 1
	jmp	.L11
.L13:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L14
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	onSegment
	test	eax, eax
	je	.L14
	mov	eax, 1
	jmp	.L11
.L14:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L15
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	onSegment
	test	eax, eax
	je	.L15
	mov	eax, 1
	jmp	.L11
.L15:
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	isIntersect, .-isIntersect
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %d"
.LC2:
	.string	"1"
.LC3:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -76[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L17
.L20:
	lea	rsi, -52[rbp]
	lea	rcx, -68[rbp]
	lea	rdx, -56[rbp]
	lea	rax, -72[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, -44[rbp]
	lea	rcx, -60[rbp]
	lea	rdx, -48[rbp]
	lea	rax, -64[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	isIntersect
	test	eax, eax
	je	.L18
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L17
.L18:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L17:
	mov	eax, DWORD PTR -76[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -76[rbp], edx
	test	eax, eax
	jne	.L20
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"258758.c"
	.text
	.align	2
	.global	onSegment
	.syntax unified
	.arm
	.fpu softvfp
	.type	onSegment, %function
onSegment:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	sub	ip, fp, #12
	stm	ip, {r0, r1}
	sub	r1, fp, #20
	stm	r1, {r2, r3}
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	cmp	r1, r3
	blt	.L2
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	cmp	r1, r3
	bgt	.L2
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	cmp	r1, r3
	blt	.L2
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	cmp	r1, r3
	bgt	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	onSegment, .-onSegment
	.align	2
	.global	orientation
	.syntax unified
	.arm
	.fpu softvfp
	.type	orientation, %function
orientation:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	sub	ip, fp, #20
	stm	ip, {r0, r1}
	sub	r1, fp, #28
	stm	r1, {r2, r3}
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r1, [fp, #4]
	ldr	r2, [fp, #-28]
	sub	r2, r1, r2
	mul	r2, r3, r2
	ldr	r1, [fp, #8]
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	ldr	r0, [fp, #-28]
	ldr	r1, [fp, #-20]
	sub	r1, r0, r1
	mul	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L7
	mov	r3, #1
	b	.L6
.L7:
	mov	r3, #2
.L6:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	orientation, .-orientation
	.align	2
	.global	isIntersect
	.syntax unified
	.arm
	.fpu softvfp
	.type	isIntersect, %function
isIntersect:
	@ args = 16, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	sub	ip, fp, #28
	stm	ip, {r0, r1}
	sub	r1, fp, #36
	stm	r1, {r2, r3}
	mov	r2, sp
	add	r3, fp, #4
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #36
	ldm	r3, {r2, r3}
	sub	r1, fp, #28
	ldm	r1, {r0, r1}
	bl	orientation
	str	r0, [fp, #-20]
	mov	r2, sp
	add	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #36
	ldm	r3, {r2, r3}
	sub	r1, fp, #28
	ldm	r1, {r0, r1}
	bl	orientation
	str	r0, [fp, #-16]
	mov	r2, sp
	sub	r3, fp, #28
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	add	r3, fp, #12
	ldm	r3, {r2, r3}
	add	r1, fp, #4
	ldm	r1, {r0, r1}
	bl	orientation
	str	r0, [fp, #-12]
	mov	r2, sp
	sub	r3, fp, #36
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	add	r3, fp, #12
	ldm	r3, {r2, r3}
	add	r1, fp, #4
	ldm	r1, {r0, r1}
	bl	orientation
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L10
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L10
	mov	r3, #1
	b	.L11
.L10:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L12
	mov	r2, sp
	sub	r3, fp, #36
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	add	r3, fp, #4
	ldm	r3, {r2, r3}
	sub	r1, fp, #28
	ldm	r1, {r0, r1}
	bl	onSegment
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	mov	r3, #1
	b	.L11
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L13
	mov	r2, sp
	sub	r3, fp, #36
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	add	r3, fp, #12
	ldm	r3, {r2, r3}
	sub	r1, fp, #28
	ldm	r1, {r0, r1}
	bl	onSegment
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	mov	r3, #1
	b	.L11
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L14
	mov	r2, sp
	add	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #28
	ldm	r3, {r2, r3}
	add	r1, fp, #4
	ldm	r1, {r0, r1}
	bl	onSegment
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	mov	r3, #1
	b	.L11
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
	mov	r2, sp
	add	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #36
	ldm	r3, {r2, r3}
	add	r1, fp, #4
	ldm	r1, {r0, r1}
	bl	onSegment
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	mov	r3, #1
	b	.L11
.L15:
	mov	r3, #0
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isIntersect, .-isIntersect
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%d %d %d %d\000"
	.align	2
.LC2:
	.ascii	"1\000"
	.align	2
.LC3:
	.ascii	"0\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, .L23+4
	bl	__isoc99_scanf
	b	.L17
.L20:
	sub	r0, fp, #68
	sub	r2, fp, #56
	sub	r1, fp, #72
	sub	r3, fp, #52
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	sub	r0, fp, #60
	sub	r2, fp, #48
	sub	r1, fp, #64
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-12]
	add	r2, sp, #8
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	mov	r2, sp
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #32
	ldm	r3, {r2, r3}
	sub	r1, fp, #40
	ldm	r1, {r0, r1}
	bl	isIntersect
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L23+12
	bl	puts
	b	.L17
.L18:
	ldr	r0, .L23+16
	bl	puts
.L17:
	ldr	r3, [fp, #-76]
	sub	r2, r3, #1
	str	r2, [fp, #-76]
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
