	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lseg_crossing
_lseg_crossing:                         ## @lseg_crossing
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movl	%esi, %edi
	callq	_FPzero
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	%ebx, %edi
	callq	_FPzero
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_POINT_ON_POLYGON@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_27
LBB0_11:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	movl	%r15d, %edi
	callq	_FPgt
	movq	%rax, %r14
	movl	%r13d, %ebx
	xorl	%r12d, %r12d
	cmpq	$1, %rax
	movl	$0, %r13d
	sbbl	%r13d, %r13d
	orl	$1, %r13d
	movl	%ebx, %edi
	callq	_FPzero
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	xorps	%xmm0, %xmm0
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FPlt
	testq	%rax, %rax
	cmovel	%r13d, %r12d
	jmp	LBB0_27
LBB0_3:
	xorps	%xmm0, %xmm0
	movl	%ebx, %edi
	callq	_FPgt
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_FPzero
	testq	%r14, %r14
	je	LBB0_8
## %bb.4:
	xorps	%xmm0, %xmm0
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	%r12d, %edi
	callq	_FPgt
	jmp	LBB0_6
LBB0_13:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, %r13d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movl	%ebx, %edi
	testq	%r14, %r14
	je	LBB0_14
## %bb.15:
	callq	_FPgt
	jmp	LBB0_16
LBB0_8:
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	xorps	%xmm0, %xmm0
	movl	%r12d, %edi
	callq	_FPlt
LBB0_6:
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_2
	jmp	LBB0_27
LBB0_7:
	movl	%r13d, %edi
	callq	_FPlt
	xorl	%r12d, %r12d
	cmpq	$1, %rax
	sbbl	%r12d, %r12d
	orl	$1, %r12d
	jmp	LBB0_27
LBB0_14:
	callq	_FPlt
LBB0_16:
	xorl	%r12d, %r12d
	testq	%rax, %rax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_27
## %bb.17:
	xorps	%xmm0, %xmm0
	movl	%ebx, %edi
	callq	_FPge
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	xorps	%xmm0, %xmm0
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FPgt
	testq	%rax, %rax
	je	LBB0_19
LBB0_26:
	addl	%r14d, %r14d
	movl	%r14d, %r12d
	jmp	LBB0_27
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_27
LBB0_19:
	xorps	%xmm0, %xmm0
	movl	%ebx, %edi
	callq	_FPlt
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	xorps	%xmm0, %xmm0
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FPle
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_27
LBB0_21:
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_float8_mi
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_float8_mul
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_float8_mi
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_float8_mul
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_float8_mi
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FPzero
	testq	%rax, %rax
	jne	LBB0_2
## %bb.22:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_23
## %bb.24:
	xorps	%xmm0, %xmm0
	movl	%ebx, %edi
	callq	_FPgt
	jmp	LBB0_25
LBB0_23:
	xorps	%xmm0, %xmm0
	movl	%ebx, %edi
	callq	_FPlt
LBB0_25:
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_26
LBB0_27:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POINT_ON_POLYGON,4,2           ## @POINT_ON_POLYGON
	.no_dead_strip	_lseg_crossing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lseg_crossing
_lseg_crossing:                         ; @lseg_crossing
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_FPzero
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_FPzero
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _POINT_ON_POLYGON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POINT_ON_POLYGON@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_3:
	movi	d0, #0000000000000000
	mov	x0, x23
	bl	_FPgt
	mov	x22, x0
	cmp	x0, #0
	mov	w8, #-1
	cneg	w24, w8, ne
	mov	x0, x19
	bl	_FPzero
	movi	d0, #0000000000000000
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_FPlt
	cmp	x0, #0
	csel	w0, w24, wzr, eq
	b	LBB0_21
LBB0_5:
	movi	d0, #0000000000000000
	mov	x0, x21
	bl	_FPgt
	mov	x21, x0
	mov	x0, x19
	bl	_FPzero
	cbz	x21, LBB0_10
; %bb.6:
	movi	d0, #0000000000000000
	cbz	x0, LBB0_13
; %bb.7:
	mov	x0, x20
	bl	_FPgt
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	cbz	x22, LBB0_14
; %bb.9:
	bl	_FPgt
	cbnz	x0, LBB0_20
	b	LBB0_15
LBB0_10:
	cbz	x0, LBB0_21
; %bb.11:
	movi	d0, #0000000000000000
	mov	x0, x20
	bl	_FPlt
LBB0_12:
Lloh3:
	adrp	x8, _POINT_ON_POLYGON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POINT_ON_POLYGON@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_21
LBB0_13:
	mov	x0, x19
	bl	_FPlt
	cmp	x0, #0
	mov	w8, #-1
	cneg	w0, w8, ne
	b	LBB0_21
LBB0_14:
	bl	_FPlt
	cbnz	x0, LBB0_20
LBB0_15:
	movi	d0, #0000000000000000
	mov	x0, x21
	bl	_FPge
	cbz	x0, LBB0_18
; %bb.16:
	movi	d0, #0000000000000000
	mov	x0, x20
	bl	_FPgt
	cbz	x0, LBB0_18
LBB0_17:
	lsl	w0, w24, #1
	b	LBB0_21
LBB0_18:
	movi	d0, #0000000000000000
	mov	x0, x21
	bl	_FPlt
	cbz	x0, LBB0_22
; %bb.19:
	movi	d0, #0000000000000000
	mov	x0, x20
	bl	_FPle
	cbz	x0, LBB0_22
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	x0, x21
	mov	x1, x20
	bl	_float8_mi
	mov	x1, x23
	bl	_float8_mul
	mov	x20, x0
	mov	x0, x23
	mov	x1, x19
	bl	_float8_mi
	mov	x1, x21
	bl	_float8_mul
	mov	x1, x0
	mov	x0, x20
	bl	_float8_mi
	mov	x19, x0
	bl	_FPzero
	cbnz	x0, LBB0_2
; %bb.23:
	movi	d0, #0000000000000000
	mov	x0, x19
	cbz	x22, LBB0_25
; %bb.24:
	bl	_FPgt
	cbnz	x0, LBB0_20
	b	LBB0_17
LBB0_25:
	bl	_FPlt
	cbnz	x0, LBB0_20
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_POINT_ON_POLYGON,4,2           ; @POINT_ON_POLYGON
	.no_dead_strip	_lseg_crossing
.subsections_via_symbols
