	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_AddLine                      ## -- Begin function R_AddLine
	.p2align	4, 0x90
_R_AddLine:                             ## @R_AddLine
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_curline@GOTPCREL(%rip), %r15
	movq	%rdi, (%r15)
	movq	24(%rdi), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_R_PointToAngle
	movl	%eax, %ebx
	movq	16(%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_R_PointToAngle
	movl	%ebx, %ecx
	subl	%eax, %ecx
	movq	_ANG180@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_18
## %bb.1:
	movq	_rw_angle1@GOTPCREL(%rip), %rdx
	movl	%ebx, (%rdx)
	movq	_viewangle@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	subl	%r8d, %ebx
	movq	_clipangle@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	(%rbx,%rdx), %esi
	leal	(%rdx,%rdx), %edi
	subl	%edi, %esi
	jle	LBB0_3
## %bb.2:
	movl	%edx, %ebx
	cmpl	%ecx, %esi
	jge	LBB0_18
LBB0_3:
	subl	%r8d, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	subl	%edi, %esi
	jle	LBB0_6
## %bb.4:
	cmpl	%ecx, %esi
	jge	LBB0_18
## %bb.5:
	negl	%edx
	movl	%edx, %eax
LBB0_6:
	movq	_ANG90@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	%edx, %ebx
	movq	_ANGLETOFINESHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	addl	%edx, %eax
	sarl	%cl, %eax
	movq	_viewangletox@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %rdx
	movl	(%rcx,%rdx,4), %edi
	cltq
	movl	(%rcx,%rax,4), %esi
	cmpl	%esi, %edi
	jne	LBB0_7
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r14), %rax
	movq	_backsector@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	(%rax), %rbx
	movq	_frontsector@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rbx
	jle	LBB0_17
## %bb.9:
	movq	8(%rax), %r8
	movq	8(%rcx), %r9
	cmpq	%r9, %r8
	jge	LBB0_17
## %bb.10:
	cmpq	%r9, %rbx
	jne	LBB0_16
## %bb.11:
	cmpq	%rdx, %r8
	jne	LBB0_16
## %bb.12:
	movq	16(%rax), %rdx
	cmpq	16(%rcx), %rdx
	jne	LBB0_16
## %bb.13:
	movq	24(%rax), %rdx
	cmpq	24(%rcx), %rdx
	jne	LBB0_16
## %bb.14:
	movq	32(%rax), %rax
	cmpq	32(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	(%r15), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
LBB0_16:
	decl	%esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_R_ClipPassWallSegment          ## TAILCALL
LBB0_17:
	decl	%esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_R_ClipSolidWallSegment         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curline,8,3                    ## @curline
	.comm	_ANG180,4,2                     ## @ANG180
	.comm	_rw_angle1,4,2                  ## @rw_angle1
	.comm	_viewangle,8,3                  ## @viewangle
	.comm	_clipangle,4,2                  ## @clipangle
	.comm	_ANG90,4,2                      ## @ANG90
	.comm	_ANGLETOFINESHIFT,4,2           ## @ANGLETOFINESHIFT
	.comm	_viewangletox,8,3               ## @viewangletox
	.comm	_backsector,8,3                 ## @backsector
	.comm	_frontsector,8,3                ## @frontsector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_AddLine                      ; -- Begin function R_AddLine
	.p2align	2
_R_AddLine:                             ; @R_AddLine
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _curline@GOTPAGE
Lloh1:
	ldr	x21, [x21, _curline@GOTPAGEOFF]
	str	x0, [x21]
	ldr	x8, [x0, #24]
	ldp	w1, w0, [x8]
	bl	_R_PointToAngle
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldp	w1, w0, [x8]
	bl	_R_PointToAngle
Lloh2:
	adrp	x8, _ANG180@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ANG180@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	sub	w8, w20, w0
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.1:
Lloh5:
	adrp	x9, _rw_angle1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rw_angle1@GOTPAGEOFF]
Lloh7:
	str	w20, [x9]
Lloh8:
	adrp	x9, _viewangle@GOTPAGE
Lloh9:
	ldr	x9, [x9, _viewangle@GOTPAGEOFF]
Lloh10:
	adrp	x10, _clipangle@GOTPAGE
Lloh11:
	ldr	x10, [x10, _clipangle@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x9]
Lloh13:
	ldr	w10, [x10]
	sub	w9, w20, w11
	add	w13, w9, w10
	lsl	w12, w10, #1
	subs	w13, w13, w12
	b.le	LBB0_3
; %bb.2:
	mov	x9, x10
	cmp	w13, w8
	b.ge	LBB0_7
LBB0_3:
	sub	w11, w0, w11
	sub	w13, w10, w11
	subs	w12, w13, w12
	b.le	LBB0_6
; %bb.4:
	cmp	w12, w8
	b.ge	LBB0_7
; %bb.5:
	neg	w11, w10
LBB0_6:
Lloh14:
	adrp	x8, _ANG90@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ANG90@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w9, w8, w9
Lloh17:
	adrp	x10, _ANGLETOFINESHIFT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ANGLETOFINESHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	asr	w9, w9, w10
	add	w8, w8, w11
	asr	w8, w8, w10
Lloh20:
	adrp	x10, _viewangletox@GOTPAGE
Lloh21:
	ldr	x10, [x10, _viewangletox@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	ldr	w0, [x10, w9, sxtw #2]
	ldr	w8, [x10, w8, sxtw #2]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x9, [x19, #8]
Lloh23:
	adrp	x10, _backsector@GOTPAGE
Lloh24:
	ldr	x10, [x10, _backsector@GOTPAGEOFF]
Lloh25:
	str	x9, [x10]
	cbz	x9, LBB0_18
; %bb.9:
	ldr	x12, [x9]
Lloh26:
	adrp	x10, _frontsector@GOTPAGE
Lloh27:
	ldr	x10, [x10, _frontsector@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	ldr	x11, [x10]
	cmp	x12, x11
	b.le	LBB0_18
; %bb.10:
	ldr	x13, [x9, #8]
	ldr	x14, [x10, #8]
	cmp	x13, x14
	b.ge	LBB0_18
; %bb.11:
	cmp	x12, x14
	b.ne	LBB0_17
; %bb.12:
	cmp	x13, x11
	b.ne	LBB0_17
; %bb.13:
	ldr	x11, [x9, #16]
	ldr	x12, [x10, #16]
	cmp	x11, x12
	b.ne	LBB0_17
; %bb.14:
	ldr	x11, [x9, #24]
	ldr	x12, [x10, #24]
	cmp	x11, x12
	b.ne	LBB0_17
; %bb.15:
	ldr	x9, [x9, #32]
	ldr	x10, [x10, #32]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.16:
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbz	x9, LBB0_7
LBB0_17:
	sub	w1, w8, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_R_ClipPassWallSegment
LBB0_18:
	sub	w1, w8, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_R_ClipSolidWallSegment
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_curline,8,3                    ; @curline
	.comm	_ANG180,4,2                     ; @ANG180
	.comm	_rw_angle1,4,2                  ; @rw_angle1
	.comm	_viewangle,8,3                  ; @viewangle
	.comm	_clipangle,4,2                  ; @clipangle
	.comm	_ANG90,4,2                      ; @ANG90
	.comm	_ANGLETOFINESHIFT,4,2           ; @ANGLETOFINESHIFT
	.comm	_viewangletox,8,3               ; @viewangletox
	.comm	_backsector,8,3                 ; @backsector
	.comm	_frontsector,8,3                ; @frontsector
.subsections_via_symbols
