	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SvEntityForGentity          ## -- Begin function SV_SvEntityForGentity
	.p2align	4, 0x90
_SV_SvEntityForGentity:                 ## @SV_SvEntityForGentity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_MAX_GENTITIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_3
LBB0_2:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Com_Error
	movq	(%rbx), %rax
LBB0_3:
	movq	_sv@GOTPCREL(%rip), %rcx
	shlq	$2, %rax
	addq	(%rcx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_GENTITIES,8,3              ## @MAX_GENTITIES
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_SvEntityForGentity: bad gEnt"

	.comm	_sv,8,3                         ## @sv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SvEntityForGentity          ; -- Begin function SV_SvEntityForGentity
	.p2align	2
_SV_SvEntityForGentity:                 ; @SV_SvEntityForGentity
	.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
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MAX_GENTITIES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_GENTITIES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	ldr	x8, [x19]
LBB0_3:
Lloh8:
	adrp	x9, _sv@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sv@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8, lsl #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_GENTITIES,8,3              ; @MAX_GENTITIES
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_SvEntityForGentity: bad gEnt"

	.comm	_sv,8,3                         ; @sv
.subsections_via_symbols
