	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_Draw3DModel                 ## -- Begin function CG_Draw3DModel
	.p2align	4, 0x90
_CG_Draw3DModel:                        ## @CG_Draw3DModel
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -56(%rbp)
	movss	%xmm1, -52(%rbp)
	movss	%xmm2, -48(%rbp)
	movss	%xmm3, -44(%rbp)
	movq	_cg_draw3dIcons@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_cg_drawIcons@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-56(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_CG_AdjustFrom640
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-184(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	-124(%rbp), %esi
	movl	%ebx, %edi
	callq	_AnglesToAxis
	movl	-128(%rbp), %esi
	movl	%r13d, %edi
	callq	_VectorCopy
	movq	%r12, -136(%rbp)
	movq	%r15, -144(%rbp)
	movq	_RF_NOSHADOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -148(%rbp)
	movq	_RDF_NOWORLDMODEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	-92(%rbp), %edi
	callq	_AxisClear
	movabsq	$128849018910, %rax             ## imm = 0x1E0000001E
	movq	%rax, -120(%rbp)
	movss	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -112(%rbp)
	movss	-52(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -108(%rbp)
	movss	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -104(%rbp)
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -100(%rbp)
	movq	_cg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	xorl	%eax, %eax
	callq	_trap_R_ClearScene
	movq	%r14, %rdi
	callq	_trap_R_AddRefEntityToScene
	leaq	-120(%rbp), %rdi
	callq	_trap_R_RenderScene
LBB0_3:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_draw3dIcons,4,2             ## @cg_draw3dIcons
	.comm	_cg_drawIcons,4,2               ## @cg_drawIcons
	.comm	_RF_NOSHADOW,4,2                ## @RF_NOSHADOW
	.comm	_RDF_NOWORLDMODEL,4,2           ## @RDF_NOWORLDMODEL
	.comm	_cg,4,2                         ## @cg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_Draw3DModel                 ; -- Begin function CG_Draw3DModel
	.p2align	2
_CG_Draw3DModel:                        ; @CG_Draw3DModel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	stp	s1, s0, [x29, #-40]
	stp	s3, s2, [x29, #-48]
Lloh0:
	adrp	x8, _cg_draw3dIcons@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_draw3dIcons@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _cg_drawIcons@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cg_drawIcons@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	sub	x0, x29, #36
	sub	x1, x29, #40
	sub	x2, x29, #44
	sub	x3, x29, #48
	bl	_CG_AdjustFrom640
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w1, [sp, #60]
	mov	x0, x22
	bl	_AnglesToAxis
	ldr	w1, [sp, #56]
	mov	x0, x21
	bl	_VectorCopy
	stp	x19, x20, [sp, #40]
Lloh6:
	adrp	x8, _RF_NOSHADOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RF_NOSHADOW@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #36]
Lloh9:
	adrp	x8, _RDF_NOWORLDMODEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDF_NOWORLDMODEL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #96]
	ldr	w0, [sp, #92]
	bl	_AxisClear
	movi.2s	v0, #30
	str	d0, [sp, #64]
	ldp	s1, s0, [x29, #-40]
	stp	s0, s1, [sp, #72]
	ldp	s1, s0, [x29, #-48]
	stp	s0, s1, [sp, #80]
Lloh12:
	adrp	x8, _cg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	bl	_trap_R_ClearScene
	mov	x0, sp
	bl	_trap_R_AddRefEntityToScene
	add	x0, sp, #64
	bl	_trap_R_RenderScene
LBB0_2:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_draw3dIcons,4,2             ; @cg_draw3dIcons
	.comm	_cg_drawIcons,4,2               ; @cg_drawIcons
	.comm	_RF_NOSHADOW,4,2                ; @RF_NOSHADOW
	.comm	_RDF_NOWORLDMODEL,4,2           ; @RDF_NOWORLDMODEL
	.comm	_cg,4,2                         ; @cg
.subsections_via_symbols
