	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_ClientEnterWorld            ## -- Begin function SV_ClientEnterWorld
	.p2align	4, 0x90
_SV_ClientEnterWorld:                   ## @SV_ClientEnterWorld
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	28(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_Com_DPrintf
	movq	_CS_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	callq	_SV_UpdateConfigstrings
	movq	_svs@GOTPCREL(%rip), %r12
	movq	%r15, %rbx
	subq	(%r12), %rbx
	shrq	$5, %rbx
	movl	%ebx, %edi
	callq	_SV_GentityNum
	movl	%ebx, (%rax)
	movq	%rax, 16(%r15)
	movl	$-1, (%r15)
	movq	$0, 8(%r15)
	leaq	4(%r15), %rdi
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_3:
	movq	_gvm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GAME_CLIENT_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	(%r12), %r15
	shrq	$5, %r15
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_Call                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Going from CS_PRIMED to CS_ACTIVE for %s\n"

	.comm	_CS_ACTIVE,4,2                  ## @CS_ACTIVE
	.comm	_svs,8,3                        ## @svs
	.comm	_gvm,4,2                        ## @gvm
	.comm	_GAME_CLIENT_BEGIN,4,2          ## @GAME_CLIENT_BEGIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_ClientEnterWorld            ; -- Begin function SV_ClientEnterWorld
	.p2align	2
_SV_ClientEnterWorld:                   ; @SV_ClientEnterWorld
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #28]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_DPrintf
Lloh2:
	adrp	x8, _CS_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CS_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_SV_UpdateConfigstrings
Lloh5:
	adrp	x22, _svs@GOTPAGE
Lloh6:
	ldr	x22, [x22, _svs@GOTPAGEOFF]
	ldr	x8, [x22]
	sub	x8, x19, x8
	lsr	x21, x8, #5
	mov	x0, x21
	bl	_SV_GentityNum
	str	w21, [x0]
	mov	w8, #-1
	str	w8, [x19]
	stp	xzr, x0, [x19, #8]
	add	x0, x19, #4
	cbz	x20, LBB0_2
; %bb.1:
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_3:
Lloh7:
	adrp	x8, _gvm@GOTPAGE
Lloh8:
	ldr	x8, [x8, _gvm@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _GAME_CLIENT_BEGIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GAME_CLIENT_BEGIN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	x8, [x22]
	sub	x8, x19, x8
	lsr	x2, x8, #5
                                        ; kill: def $w2 killed $w2 killed $x2
	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	_VM_Call
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Going from CS_PRIMED to CS_ACTIVE for %s\n"

	.comm	_CS_ACTIVE,4,2                  ; @CS_ACTIVE
	.comm	_svs,8,3                        ; @svs
	.comm	_gvm,4,2                        ; @gvm
	.comm	_GAME_CLIENT_BEGIN,4,2          ; @GAME_CLIENT_BEGIN
.subsections_via_symbols
