	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_CrossSubsector               ## -- Begin function P_CrossSubsector
	.p2align	4, 0x90
_P_CrossSubsector:                      ## @P_CrossSubsector
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_subsectors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %r14d
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.1:
	movq	_segs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%rax,%rcx), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rdx,%rax,8), %r15
	addq	$16, %r15
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_topslope@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%edx, %edx
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_bottomslope@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jle	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %r15
	decl	%r14d
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	_validcount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%rbx)
	movq	16(%rbx), %r12
	movq	24(%rbx), %r13
	movq	(%r13), %rsi
	movq	8(%r13), %rdi
	movq	_strace@GOTPCREL(%rip), %rdx
	callq	_P_DivlineSide
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rsi
	movq	8(%r12), %rdi
	movq	_strace@GOTPCREL(%rip), %rdx
	callq	_P_DivlineSide
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movdqu	(%r13), %xmm0
	movdqa	%xmm0, -80(%rbp)
	movdqu	(%r12), %xmm1
	psubq	%xmm0, %xmm1
	movdqa	%xmm1, -64(%rbp)
	movq	_strace@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rdi
	leaq	-80(%rbp), %r12
	movq	%r12, %rdx
	callq	_P_DivlineSide
	movl	%eax, %r13d
	movq	_t2x@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_t2y@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdx
	callq	_P_DivlineSide
	cmpl	%eax, %r13d
	je	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ML_TWOSIDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	testl	%eax, 8(%rbx)
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-16(%r15), %rsi
	movq	-8(%r15), %r12
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rsi), %rbx
	movq	8(%rsi), %r13
	cmpq	%rbx, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %rcx
	je	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %rcx
	cmovlq	%rcx, %r13
	cmpq	%rbx, %rax
	cmovgq	%rax, %rbx
	cmpq	%r13, %rbx
	jge	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_strace@GOTPCREL(%rip), %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rsi
	callq	_P_InterceptVector2
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	(%r12), %rax
	cmpq	(%rdx), %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_sightzstart@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%rbx, %rdi
	movq	%rsi, %rbx
	callq	_FixedDiv
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_bottomslope@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_bottomslope@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	cmpq	8(%rdx), %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_sightzstart@GOTPCREL(%rip), %rax
	subq	(%rax), %r13
	movq	%r13, %rdi
	callq	_FixedDiv
	movq	_topslope@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	movl	$0, %edx
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_topslope@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%rax, %rcx
	jmp	LBB0_16
LBB0_18:
	movl	$1, %edx
LBB0_19:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_subsectors,8,3                 ## @subsectors
	.comm	_segs,8,3                       ## @segs
	.comm	_validcount,8,3                 ## @validcount
	.comm	_strace,32,3                    ## @strace
	.comm	_t2x,8,3                        ## @t2x
	.comm	_t2y,8,3                        ## @t2y
	.comm	_ML_TWOSIDED,4,2                ## @ML_TWOSIDED
	.comm	_sightzstart,8,3                ## @sightzstart
	.comm	_bottomslope,8,3                ## @bottomslope
	.comm	_topslope,8,3                   ## @topslope
	.comm	_numsubsectors,4,2              ## @numsubsectors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_CrossSubsector               ; -- Begin function P_CrossSubsector
	.p2align	2
_P_CrossSubsector:                      ; @P_CrossSubsector
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _subsectors@GOTPAGE
Lloh1:
	ldr	x8, [x8, _subsectors@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x9, x0, #4, #32
	ldr	w21, [x8, x9]
	cbz	w21, LBB0_18
; %bb.1:
	sxtw	x9, w0
Lloh3:
	adrp	x10, _segs@GOTPAGE
Lloh4:
	ldr	x10, [x10, _segs@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	mov	w9, #24
	madd	x8, x8, x9, x10
	add	x22, x8, #16
Lloh6:
	adrp	x23, _validcount@GOTPAGE
Lloh7:
	ldr	x23, [x23, _validcount@GOTPAGEOFF]
Lloh8:
	adrp	x19, _strace@GOTPAGE
Lloh9:
	ldr	x19, [x19, _strace@GOTPAGEOFF]
Lloh10:
	adrp	x24, _t2x@GOTPAGE
Lloh11:
	ldr	x24, [x24, _t2x@GOTPAGEOFF]
Lloh12:
	adrp	x25, _t2y@GOTPAGE
Lloh13:
	ldr	x25, [x25, _t2y@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x8, _topslope@GOTPAGE
Lloh15:
	ldr	x8, [x8, _topslope@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	mov	x24, x25
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh17:
	adrp	x9, _bottomslope@GOTPAGE
Lloh18:
	ldr	x9, [x9, _bottomslope@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	x25, x20
	b.le	LBB0_20
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #24
	subs	w21, w21, #1
	b.eq	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x22]
	ldr	x9, [x27]
	ldr	x8, [x23]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x27]
	ldp	x26, x28, [x27, #16]
	ldp	x1, x0, [x28]
	mov	x2, x19
	bl	_P_DivlineSide
	mov	x20, x0
	ldp	x1, x0, [x26]
	mov	x2, x19
	bl	_P_DivlineSide
	cmp	w20, w0
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	q0, [x28]
	str	q0, [sp]
	ldr	q1, [x26]
	sub.2d	v0, v1, v0
	str	q0, [sp, #16]
	ldp	x1, x0, [x19]
	mov	x2, sp
	bl	_P_DivlineSide
	mov	x20, x0
	ldr	x0, [x24]
	ldr	x1, [x25]
	mov	x2, sp
	bl	_P_DivlineSide
	cmp	w20, w0
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27, #8]
Lloh20:
	adrp	x9, _ML_TWOSIDED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ML_TWOSIDED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x28, x27, [x22, #-16]
	ldp	x8, x10, [x27]
	ldp	x9, x11, [x28]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x10, x11
	b.eq	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x25
	mov	x25, x24
	cmp	x10, x11
	csel	x26, x10, x11, lt
	cmp	x8, x9
	csel	x24, x8, x9, gt
	cmp	x24, x26
	b.ge	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_P_InterceptVector2
	mov	x1, x0
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh23:
	adrp	x8, _sightzstart@GOTPAGE
Lloh24:
	ldr	x8, [x8, _sightzstart@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	sub	x0, x24, x8
	mov	x24, x1
	bl	_FixedDiv
	mov	x1, x24
Lloh26:
	adrp	x8, _bottomslope@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bottomslope@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh29:
	adrp	x8, _bottomslope@GOTPAGE
Lloh30:
	ldr	x8, [x8, _bottomslope@GOTPAGEOFF]
Lloh31:
	str	x0, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27, #8]
	ldr	x9, [x28, #8]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh32:
	adrp	x8, _sightzstart@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sightzstart@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	sub	x0, x26, x8
	bl	_FixedDiv
Lloh35:
	adrp	x8, _topslope@GOTPAGE
Lloh36:
	ldr	x8, [x8, _topslope@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	mov	x24, x25
	b.ge	LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh38:
	adrp	x8, _topslope@GOTPAGE
Lloh39:
	ldr	x8, [x8, _topslope@GOTPAGEOFF]
Lloh40:
	str	x0, [x8]
	mov	x8, x0
	b	LBB0_3
LBB0_18:
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	mov	w0, #0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_subsectors,8,3                 ; @subsectors
	.comm	_segs,8,3                       ; @segs
	.comm	_validcount,8,3                 ; @validcount
	.comm	_strace,32,3                    ; @strace
	.comm	_t2x,8,3                        ; @t2x
	.comm	_t2y,8,3                        ; @t2y
	.comm	_ML_TWOSIDED,4,2                ; @ML_TWOSIDED
	.comm	_sightzstart,8,3                ; @sightzstart
	.comm	_bottomslope,8,3                ; @bottomslope
	.comm	_topslope,8,3                   ; @topslope
	.comm	_numsubsectors,4,2              ; @numsubsectors
.subsections_via_symbols
