	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawCustomView              ## -- Begin function CG_DrawCustomView
	.p2align	4, 0x90
_CG_DrawCustomView:                     ## @CG_DrawCustomView
	.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
	xorl	%eax, %eax
	callq	_trap_R_ClearScene
	movq	_cg@GOTPCREL(%rip), %rbx
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SNAPFLAG_NOT_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rbx), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_dmlab_custom_view
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	callq	_CG_AddPacketEntities
	xorl	%eax, %eax
	callq	_CG_AddMarks
	xorl	%eax, %eax
	callq	_CG_AddParticles
	xorl	%eax, %eax
	callq	_CG_AddLocalEntities
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_trap_R_RenderScene             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,24,3                        ## @cg
	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ## @SNAPFLAG_NOT_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawCustomView              ; -- Begin function CG_DrawCustomView
	.p2align	2
_CG_DrawCustomView:                     ; @CG_DrawCustomView
	.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
	bl	_trap_R_ClearScene
Lloh0:
	adrp	x19, _cg@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cg@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _SNAPFLAG_NOT_ACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SNAPFLAG_NOT_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x19, #8]
	str	w8, [x19]
	mov	x0, x19
	bl	_dmlab_custom_view
	str	w0, [x19, #4]
	bl	_CG_AddPacketEntities
	bl	_CG_AddMarks
	bl	_CG_AddParticles
	bl	_CG_AddLocalEntities
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_R_RenderScene
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,24,3                        ; @cg
	.comm	_SNAPFLAG_NOT_ACTIVE,4,2        ; @SNAPFLAG_NOT_ACTIVE
.subsections_via_symbols
