	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_misc_portal_surface         ## -- Begin function SP_misc_portal_surface
	.p2align	4, 0x90
_SP_misc_portal_surface:                ## @SP_misc_portal_surface
	.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
	movl	36(%rdi), %edi
	callq	_VectorClear
	movl	32(%rbx), %edi
	callq	_VectorClear
	movq	%rbx, %rdi
	callq	_trap_LinkEntity
	movq	_SVF_PORTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_ET_PORTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	cmpl	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_locateCamera@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$100, %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_VectorCopy                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SVF_PORTAL,4,2                 ## @SVF_PORTAL
	.comm	_ET_PORTAL,4,2                  ## @ET_PORTAL
	.comm	_locateCamera,4,2               ## @locateCamera
	.comm	_level,8,3                      ## @level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_misc_portal_surface         ; -- Begin function SP_misc_portal_surface
	.p2align	2
_SP_misc_portal_surface:                ; @SP_misc_portal_surface
	.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
	ldr	w0, [x0, #36]
	bl	_VectorClear
	ldr	w0, [x19, #32]
	bl	_VectorClear
	mov	x0, x19
	bl	_trap_LinkEntity
Lloh0:
	adrp	x8, _SVF_PORTAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVF_PORTAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh3:
	adrp	x8, _ET_PORTAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ET_PORTAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _locateCamera@GOTPAGE
Lloh7:
	ldr	x8, [x8, _locateCamera@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh9:
	adrp	x8, _level@GOTPAGE
Lloh10:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x8, x8, #100
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldp	w1, w0, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_VectorCopy
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SVF_PORTAL,4,2                 ; @SVF_PORTAL
	.comm	_ET_PORTAL,4,2                  ; @ET_PORTAL
	.comm	_locateCamera,4,2               ; @locateCamera
	.comm	_level,8,3                      ; @level
.subsections_via_symbols
