	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_SpriteFogNum                 ## -- Begin function R_SpriteFogNum
	.p2align	4, 0x90
_R_SpriteFogNum:                        ## @R_SpriteFogNum
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	_RDF_NOWORLDMODEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, 8(%rcx)
	jne	LBB0_12
## %bb.1:
	movq	_RF_CROSSHAIR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rdi)
	jne	LBB0_12
## %bb.2:
	movq	(%rcx), %rcx
	movl	(%rcx), %r14d
	cmpl	$2, %r14d
	jl	LBB0_12
## %bb.3:
	movq	8(%rcx), %r11
	movq	8(%rdi), %r8
	movq	16(%rdi), %r10
	movq	(%r8), %r15
	leaq	(%r10,%r15), %r9
	subq	%r10, %r15
	movl	$1, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpq	%rdi, %r14
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r11,%rdi,8), %rcx
	movq	8(%rcx), %rbx
	cmpq	(%rbx), %r15
	jge	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx), %rdx
	cmpq	(%rdx), %r9
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r8), %rsi
	movq	%rsi, %rcx
	subq	%r10, %rcx
	cmpq	8(%rbx), %rcx
	jge	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r10, %rsi
	cmpq	8(%rdx), %rsi
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r8), %rcx
	movq	%rcx, %rsi
	subq	%r10, %rsi
	cmpq	16(%rbx), %rsi
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r10, %rcx
	cmpq	16(%rdx), %rcx
	jle	LBB0_11
## %bb.10:
	movl	%edi, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tr,16,3                        ## @tr
	.comm	_RDF_NOWORLDMODEL,4,2           ## @RDF_NOWORLDMODEL
	.comm	_RF_CROSSHAIR,4,2               ## @RF_CROSSHAIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_SpriteFogNum                 ; -- Begin function R_SpriteFogNum
	.p2align	2
_R_SpriteFogNum:                        ; @R_SpriteFogNum
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _tr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
	ldr	w9, [x8, #8]
Lloh2:
	adrp	x10, _RDF_NOWORLDMODEL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RDF_NOWORLDMODEL@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_11
; %bb.1:
	ldr	w9, [x0]
Lloh5:
	adrp	x10, _RF_CROSSHAIR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RF_CROSSHAIR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_11
; %bb.2:
	ldr	x9, [x8]
	ldr	w8, [x9]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.3:
	ldr	x9, [x9, #8]
	ldp	x10, x11, [x0, #8]
	ldr	x13, [x10]
	sub	x12, x13, x11
	add	x13, x11, x13
	mov	w0, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x9, x0, lsl #3]
	ldr	x14, [x15, #8]
	ldr	x16, [x14]
	cmp	x12, x16
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x15]
	ldr	x16, [x15]
	cmp	x13, x16
	b.le	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x16, [x10, #8]
	ldr	x17, [x14, #8]
	sub	x1, x16, x11
	cmp	x1, x17
	b.ge	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x17, [x15, #8]
	add	x16, x11, x16
	cmp	x16, x17
	b.le	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x16, [x10, #16]
	ldr	x14, [x14, #16]
	sub	x17, x16, x11
	cmp	x17, x14
	b.ge	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x14, [x15, #16]
	add	x15, x11, x16
	cmp	x15, x14
	b.le	LBB0_4
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tr,16,3                        ; @tr
	.comm	_RDF_NOWORLDMODEL,4,2           ; @RDF_NOWORLDMODEL
	.comm	_RF_CROSSHAIR,4,2               ; @RF_CROSSHAIR
.subsections_via_symbols
