	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_CheckBBox                    ## -- Begin function R_CheckBBox
	.p2align	4, 0x90
_R_CheckBBox:                           ## @R_CheckBBox
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_viewx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BOXLEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%eax, %eax
	movl	$0, %ecx
	cmpl	(%rdi,%rsi,4), %edx
	jle	LBB0_2
## %bb.1:
	movq	_BOXRIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%esi, %esi
	cmpl	(%rdi,%rcx,4), %edx
	setl	%sil
	movl	$2, %ecx
	subl	%esi, %ecx
LBB0_2:
	movq	_viewy@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_BOXTOP@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	(%rdi,%rsi,4), %edx
	jge	LBB0_4
## %bb.3:
	movq	_BOXBOTTOM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%esi, %esi
	cmpl	(%rdi,%rax,4), %edx
	setle	%sil
	leal	4(,%rsi,4), %eax
LBB0_4:
	orl	%ecx, %eax
	movl	$1, %r14d
	cmpl	$5, %eax
	je	LBB0_15
## %bb.5:
	movq	_checkcoord@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rdx
	movl	(%rdi,%rax,4), %eax
	movl	(%rdi,%rdx,4), %esi
	movq	16(%rcx), %rdx
	movl	(%rdi,%rdx,4), %r15d
	movq	24(%rcx), %rcx
	movl	(%rdi,%rcx,4), %r12d
	movl	%eax, %edi
	callq	_R_PointToAngle
	movl	%eax, %ebx
	movq	_viewangle@GOTPCREL(%rip), %r13
	subl	(%r13), %ebx
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_R_PointToAngle
	subl	(%r13), %eax
	movl	%ebx, %ecx
	subl	%eax, %ecx
	movq	_ANG180@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jge	LBB0_15
## %bb.6:
	movq	_clipangle@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	(%rdx,%rbx), %edi
	leal	(%rdx,%rdx), %esi
	subl	%esi, %edi
	jle	LBB0_8
## %bb.7:
	xorl	%r14d, %r14d
	movl	%edx, %ebx
	cmpl	%ecx, %edi
	jge	LBB0_15
LBB0_8:
	movl	%edx, %edi
	subl	%eax, %edi
	subl	%esi, %edi
	jle	LBB0_11
## %bb.9:
	xorl	%r14d, %r14d
	cmpl	%ecx, %edi
	jge	LBB0_15
## %bb.10:
	negl	%edx
	movl	%edx, %eax
LBB0_11:
	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), %rdx
	movslq	%ebx, %rcx
	movl	(%rdx,%rcx,4), %ecx
	cltq
	movl	(%rdx,%rax,4), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, %ecx
	je	LBB0_15
## %bb.12:
	decl	%eax
	movq	_solidsegs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	addq	$8, %rdx
	cmpl	%eax, (%rsi)
	jl	LBB0_13
## %bb.14:
	xorl	%r14d, %r14d
	cmpl	-4(%rdx), %ecx
	setl	%r14b
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_viewx,4,2                      ## @viewx
	.comm	_BOXLEFT,8,3                    ## @BOXLEFT
	.comm	_BOXRIGHT,8,3                   ## @BOXRIGHT
	.comm	_viewy,4,2                      ## @viewy
	.comm	_BOXTOP,8,3                     ## @BOXTOP
	.comm	_BOXBOTTOM,8,3                  ## @BOXBOTTOM
	.comm	_checkcoord,8,3                 ## @checkcoord
	.comm	_viewangle,4,2                  ## @viewangle
	.comm	_ANG180,4,2                     ## @ANG180
	.comm	_clipangle,4,2                  ## @clipangle
	.comm	_ANG90,4,2                      ## @ANG90
	.comm	_ANGLETOFINESHIFT,4,2           ## @ANGLETOFINESHIFT
	.comm	_viewangletox,8,3               ## @viewangletox
	.comm	_solidsegs,8,3                  ## @solidsegs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_CheckBBox                    ; -- Begin function R_CheckBBox
	.p2align	2
_R_CheckBBox:                           ; @R_CheckBBox
	.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
Lloh0:
	adrp	x8, _viewx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _viewx@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BOXLEFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BOXLEFT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w9, [x0, x9, lsl #2]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _BOXRIGHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BOXRIGHT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x0, x9, lsl #2]
	cmp	w8, w9
	mov	w8, #1
	cinc	w8, w8, ge
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
Lloh9:
	adrp	x9, _viewy@GOTPAGE
Lloh10:
	ldr	x9, [x9, _viewy@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _BOXTOP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BOXTOP@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	w10, [x0, x10, lsl #2]
	cmp	w9, w10
	b.ge	LBB0_5
; %bb.4:
Lloh15:
	adrp	x10, _BOXBOTTOM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BOXBOTTOM@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	ldr	w10, [x0, x10, lsl #2]
	mov	w11, #8
	mov	w12, #4
	cmp	w9, w10
	csel	w9, w12, w11, gt
	b	LBB0_6
LBB0_5:
	mov	w9, #0
LBB0_6:
	orr	w8, w9, w8
	cmp	w8, #5
	b.eq	LBB0_15
; %bb.7:
Lloh18:
	adrp	x9, _checkcoord@GOTPAGE
Lloh19:
	ldr	x9, [x9, _checkcoord@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x9, [x9, w8, uxtw #3]
	ldp	x8, x10, [x9]
	ldr	w8, [x0, x8, lsl #2]
	ldr	w1, [x0, x10, lsl #2]
	ldp	x10, x9, [x9, #16]
	ldr	w19, [x0, x10, lsl #2]
	ldr	w20, [x0, x9, lsl #2]
	mov	x0, x8
	bl	_R_PointToAngle
Lloh21:
	adrp	x22, _viewangle@GOTPAGE
Lloh22:
	ldr	x22, [x22, _viewangle@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w21, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_R_PointToAngle
	ldr	w8, [x22]
	sub	w8, w0, w8
	sub	w9, w21, w8
Lloh23:
	adrp	x10, _ANG180@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ANG180@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_15
; %bb.8:
Lloh26:
	adrp	x10, _clipangle@GOTPAGE
Lloh27:
	ldr	x10, [x10, _clipangle@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	lsl	w11, w10, #1
	add	w12, w10, w21
	subs	w12, w12, w11
	b.le	LBB0_10
; %bb.9:
	mov	x21, x10
	cmp	w12, w9
	b.ge	LBB0_14
LBB0_10:
	sub	w12, w10, w8
	subs	w11, w12, w11
	b.le	LBB0_13
; %bb.11:
	cmp	w11, w9
	b.ge	LBB0_14
; %bb.12:
	neg	w8, w10
LBB0_13:
Lloh29:
	adrp	x9, _ANG90@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ANG90@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	add	w10, w9, w21
Lloh32:
	adrp	x11, _ANGLETOFINESHIFT@GOTPAGE
Lloh33:
	ldr	x11, [x11, _ANGLETOFINESHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	asr	w10, w10, w11
	add	w8, w9, w8
	asr	w9, w8, w11
Lloh35:
	adrp	x8, _viewangletox@GOTPAGE
Lloh36:
	ldr	x8, [x8, _viewangletox@GOTPAGEOFF]
Lloh37:
	ldr	x11, [x8]
	ldr	w8, [x11, w10, sxtw #2]
	ldr	w9, [x11, w9, sxtw #2]
	cmp	w8, w9
	b.ne	LBB0_17
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	w0, #1
LBB0_16:
	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_17:
	sub	w9, w9, #1
Lloh38:
	adrp	x10, _solidsegs@GOTPAGE
Lloh39:
	ldr	x10, [x10, _solidsegs@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #8
	cmp	w11, w9
	b.lt	LBB0_18
; %bb.19:
	ldur	w9, [x10, #-4]
	cmp	w8, w9
	cset	w0, lt
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_viewx,4,2                      ; @viewx
	.comm	_BOXLEFT,8,3                    ; @BOXLEFT
	.comm	_BOXRIGHT,8,3                   ; @BOXRIGHT
	.comm	_viewy,4,2                      ; @viewy
	.comm	_BOXTOP,8,3                     ; @BOXTOP
	.comm	_BOXBOTTOM,8,3                  ; @BOXBOTTOM
	.comm	_checkcoord,8,3                 ; @checkcoord
	.comm	_viewangle,4,2                  ; @viewangle
	.comm	_ANG180,4,2                     ; @ANG180
	.comm	_clipangle,4,2                  ; @clipangle
	.comm	_ANG90,4,2                      ; @ANG90
	.comm	_ANGLETOFINESHIFT,4,2           ; @ANGLETOFINESHIFT
	.comm	_viewangletox,8,3               ; @viewangletox
	.comm	_solidsegs,8,3                  ; @solidsegs
.subsections_via_symbols
