	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PTR_SlideTraverse              ## -- Begin function PTR_SlideTraverse
	.p2align	4, 0x90
_PTR_SlideTraverse:                     ## @PTR_SlideTraverse
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpl	$0, 16(%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_I_Error
LBB0_2:
	movq	8(%rbx), %r14
	movq	_ML_TWOSIDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_P_LineOpening
	movq	_openrange@GOTPCREL(%rip), %rdx
	movq	_slidemo@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	cmpq	%rax, (%rdx)
	jl	LBB0_7
## %bb.5:
	movq	_opentop@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%rcx), %rcx
	subq	%rcx, %rdx
	cmpq	%rax, %rdx
	jl	LBB0_7
## %bb.6:
	movq	_openbottom@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	subq	%rcx, %rdx
	movq	_FRACUNIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rcx
	movl	$1, %eax
	cmpq	%rcx, %rdx
	jg	LBB0_7
	jmp	LBB0_9
LBB0_3:
	movq	_slidemo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax), %esi
	movl	20(%rax), %edi
	movq	%r14, %rdx
	callq	_P_PointOnLineSide
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_7:
	movq	_bestslidefrac@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, (%rbx)
	jge	LBB0_9
## %bb.8:
	movq	_secondslidefrac@GOTPCREL(%rip), %rsi
	movq	%rdx, (%rsi)
	movq	_bestslideline@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_secondslideline@GOTPCREL(%rip), %rdi
	movq	%rsi, (%rdi)
	movq	(%rbx), %rsi
	movq	%rsi, (%rcx)
	movq	%r14, (%rdx)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PTR_SlideTraverse: not a line?"

	.comm	_ML_TWOSIDED,4,2                ## @ML_TWOSIDED
	.comm	_slidemo,8,3                    ## @slidemo
	.comm	_openrange,8,3                  ## @openrange
	.comm	_opentop,8,3                    ## @opentop
	.comm	_openbottom,4,2                 ## @openbottom
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_bestslidefrac,8,3              ## @bestslidefrac
	.comm	_secondslidefrac,8,3            ## @secondslidefrac
	.comm	_bestslideline,8,3              ## @bestslideline
	.comm	_secondslideline,8,3            ## @secondslideline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PTR_SlideTraverse              ; -- Begin function PTR_SlideTraverse
	.p2align	2
_PTR_SlideTraverse:                     ; @PTR_SlideTraverse
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I_Error
LBB0_2:
	ldr	x20, [x19, #8]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _ML_TWOSIDED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ML_TWOSIDED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_P_LineOpening
Lloh5:
	adrp	x8, _openrange@GOTPAGE
Lloh6:
	ldr	x8, [x8, _openrange@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x8]
Lloh8:
	adrp	x8, _slidemo@GOTPAGE
Lloh9:
	ldr	x8, [x8, _slidemo@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
	ldr	x8, [x9]
	cmp	x10, x8
	b.lt	LBB0_6
; %bb.4:
Lloh11:
	adrp	x10, _opentop@GOTPAGE
Lloh12:
	ldr	x10, [x10, _opentop@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldr	x9, [x9, #8]
	sub	x10, x10, x9
	cmp	x10, x8
	b.lt	LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _openbottom@GOTPAGE
Lloh15:
	ldr	x8, [x8, _openbottom@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	sub	x8, x8, x9
Lloh17:
	adrp	x9, _FRACUNIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FRACUNIT@GOTPAGEOFF]
Lloh19:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #1
	cmp	x8, x9, lsl #3
	b.le	LBB0_9
LBB0_6:
	ldr	x10, [x19]
Lloh20:
	adrp	x8, _bestslidefrac@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bestslidefrac@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x10, x9
	b.ge	LBB0_10
; %bb.7:
	mov	w0, #0
Lloh22:
	adrp	x10, _secondslidefrac@GOTPAGE
Lloh23:
	ldr	x10, [x10, _secondslidefrac@GOTPAGEOFF]
Lloh24:
	str	x9, [x10]
Lloh25:
	adrp	x9, _bestslideline@GOTPAGE
Lloh26:
	ldr	x9, [x9, _bestslideline@GOTPAGEOFF]
	ldr	x10, [x9]
Lloh27:
	adrp	x11, _secondslideline@GOTPAGE
Lloh28:
	ldr	x11, [x11, _secondslideline@GOTPAGEOFF]
Lloh29:
	str	x10, [x11]
	ldr	x10, [x19]
	str	x10, [x8]
	str	x20, [x9]
	b	LBB0_11
LBB0_8:
Lloh30:
	adrp	x8, _slidemo@GOTPAGE
Lloh31:
	ldr	x8, [x8, _slidemo@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldp	w1, w0, [x8, #16]
	mov	x2, x20
	bl	_P_PointOnLineSide
	cbz	x0, LBB0_6
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PTR_SlideTraverse: not a line?"

	.comm	_ML_TWOSIDED,4,2                ; @ML_TWOSIDED
	.comm	_slidemo,8,3                    ; @slidemo
	.comm	_openrange,8,3                  ; @openrange
	.comm	_opentop,8,3                    ; @opentop
	.comm	_openbottom,4,2                 ; @openbottom
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_bestslidefrac,8,3              ; @bestslidefrac
	.comm	_secondslidefrac,8,3            ; @secondslidefrac
	.comm	_bestslideline,8,3              ; @bestslideline
	.comm	_secondslideline,8,3            ; @secondslideline
.subsections_via_symbols
