	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SCR_DrawScreenField            ## -- Begin function SCR_DrawScreenField
	.p2align	4, 0x90
_SCR_DrawScreenField:                   ## @SCR_DrawScreenField
	.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
	movl	%edi, %r12d
	movq	_re@GOTPCREL(%rip), %rbx
	callq	*16(%rbx)
	movq	_cls@GOTPCREL(%rip), %r14
	cmpl	$135, (%r14)
	je	LBB0_3
## %bb.1:
	imull	$480, 16(%r14), %eax            ## imm = 0x1E0
	movl	20(%r14), %ecx
	shll	$7, %ecx
	leal	(%rcx,%rcx,4), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_3
## %bb.2:
	movq	_g_color_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	*(%rbx)
	movl	12(%r14), %eax
	movl	16(%r14), %edx
	movl	20(%r14), %ecx
	subq	$8, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	*8(%rbx)
	addq	$32, %rsp
	xorl	%edi, %edi
	callq	*(%rbx)
LBB0_3:
	movq	_uivm@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.4:
	movq	_UI_IS_FULLSCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_VM_Call
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_7
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	(%r15), %rdi
	movq	_UI_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	xorl	%eax, %eax
	callq	_VM_Call
	movq	(%r15), %rdi
	movq	_UI_DRAW_CONNECT_SCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_21:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_DPrintf                    ## TAILCALL
LBB0_12:
	movl	%r12d, %edi
	callq	_CL_CGameRendering
	movq	(%r15), %rdi
	movq	_UI_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	xorl	%eax, %eax
	callq	_VM_Call
	movq	(%r15), %rdi
	movq	_UI_DRAW_CONNECT_SCREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Com_Error
	jmp	LBB0_14
LBB0_9:
	xorl	%eax, %eax
	callq	_S_StopAllSounds
	movq	(%r15), %rdi
	movq	_UI_SET_ACTIVE_MENU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UIMENU_MAIN@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edx
	xorl	%eax, %eax
	callq	_VM_Call
LBB0_14:
	movq	_KEYCATCH_UI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_17
## %bb.15:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	movq	_UI_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	xorl	%eax, %eax
	callq	_VM_Call
LBB0_17:
	xorl	%eax, %eax
	callq	_Con_DrawConsole
	movq	_cl_debuggraph@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_22
## %bb.18:
	movq	_cl_timegraph@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_22
## %bb.19:
	movq	_cl_debugMove@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
LBB0_22:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SCR_DrawDebugGraph             ## TAILCALL
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	callq	_SCR_DrawCinematic
	jmp	LBB0_14
LBB0_13:
	movl	%r12d, %edi
	callq	_CL_CGameRendering
	xorl	%eax, %eax
	callq	_SCR_DrawDemoRecording
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_re,24,3                        ## @re
	.comm	_cls,24,2                       ## @cls
	.comm	_g_color_table,8,3              ## @g_color_table
	.comm	_uivm,8,3                       ## @uivm
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"draw screen without UI loaded\n"

	.comm	_UI_IS_FULLSCREEN,4,2           ## @UI_IS_FULLSCREEN
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"SCR_DrawScreenField: bad cls.state"

	.comm	_UI_SET_ACTIVE_MENU,4,2         ## @UI_SET_ACTIVE_MENU
	.comm	_UIMENU_MAIN,4,2                ## @UIMENU_MAIN
	.comm	_UI_REFRESH,4,2                 ## @UI_REFRESH
	.comm	_UI_DRAW_CONNECT_SCREEN,4,2     ## @UI_DRAW_CONNECT_SCREEN
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_KEYCATCH_UI,4,2                ## @KEYCATCH_UI
	.comm	_cl_debuggraph,8,3              ## @cl_debuggraph
	.comm	_cl_timegraph,8,3               ## @cl_timegraph
	.comm	_cl_debugMove,8,3               ## @cl_debugMove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SCR_DrawScreenField            ; -- Begin function SCR_DrawScreenField
	.p2align	2
_SCR_DrawScreenField:                   ; @SCR_DrawScreenField
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x21, _re@GOTPAGE
Lloh1:
	ldr	x21, [x21, _re@GOTPAGEOFF]
	ldr	x8, [x21, #16]
	blr	x8
Lloh2:
	adrp	x20, _cls@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cls@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #135
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #480
	ldp	w9, w10, [x20, #16]
	mul	w8, w9, w8
	add	w9, w10, w10, lsl #2
	cmp	w8, w9, lsl #7
	b.le	LBB0_3
; %bb.2:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _g_color_table@GOTPAGE
Lloh5:
	ldr	x9, [x9, _g_color_table@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	x0, [x9]
	blr	x8
	ldr	x8, [x21, #8]
	ldp	w2, w3, [x20, #16]
	ldr	w9, [x20, #12]
	str	w9, [sp]
	mov	w0, #0
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	blr	x8
	ldr	x8, [x21]
	mov	x0, #0
	blr	x8
LBB0_3:
Lloh7:
	adrp	x21, _uivm@GOTPAGE
Lloh8:
	ldr	x21, [x21, _uivm@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _UI_IS_FULLSCREEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UI_IS_FULLSCREEN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_VM_Call
	cbnz	w0, LBB0_13
; %bb.5:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_10
; %bb.6:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	x0, [x21]
Lloh14:
	adrp	x8, _UI_REFRESH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UI_REFRESH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	str	x8, [sp]
	bl	_VM_Call
	ldr	x0, [x21]
Lloh17:
	adrp	x8, _UI_DRAW_CONNECT_SCREEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UI_DRAW_CONNECT_SCREEN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _qfalse@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_Com_DPrintf
LBB0_9:
	mov	x0, x19
	bl	_CL_CGameRendering
	ldr	x0, [x21]
Lloh24:
	adrp	x8, _UI_REFRESH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UI_REFRESH@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	str	x8, [sp]
	bl	_VM_Call
	ldr	x0, [x21]
Lloh27:
	adrp	x8, _UI_DRAW_CONNECT_SCREEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UI_DRAW_CONNECT_SCREEN@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _qtrue@GOTPAGE
Lloh31:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh32:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
	b	LBB0_13
LBB0_11:
	bl	_S_StopAllSounds
	ldr	x0, [x21]
Lloh37:
	adrp	x8, _UI_SET_ACTIVE_MENU@GOTPAGE
Lloh38:
	ldr	x8, [x8, _UI_SET_ACTIVE_MENU@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _UIMENU_MAIN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _UIMENU_MAIN@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	x8, [sp]
	bl	_VM_Call
LBB0_13:
Lloh42:
	adrp	x8, _KEYCATCH_UI@GOTPAGE
Lloh43:
	ldr	x8, [x8, _KEYCATCH_UI@GOTPAGEOFF]
	ldr	w9, [x20, #4]
Lloh44:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	x0, [x21]
	cmp	w8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_15
; %bb.14:
Lloh45:
	adrp	x8, _UI_REFRESH@GOTPAGE
Lloh46:
	ldr	x8, [x8, _UI_REFRESH@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
	str	x8, [sp]
	bl	_VM_Call
LBB0_15:
	bl	_Con_DrawConsole
Lloh48:
	adrp	x8, _cl_debuggraph@GOTPAGE
Lloh49:
	ldr	x8, [x8, _cl_debuggraph@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_18
; %bb.16:
Lloh51:
	adrp	x8, _cl_timegraph@GOTPAGE
Lloh52:
	ldr	x8, [x8, _cl_timegraph@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_18
; %bb.17:
Lloh54:
	adrp	x8, _cl_debugMove@GOTPAGE
Lloh55:
	ldr	x8, [x8, _cl_debugMove@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_19
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_SCR_DrawDebugGraph
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_20:
	bl	_SCR_DrawCinematic
	b	LBB0_13
LBB0_21:
	mov	x0, x19
	bl	_CL_CGameRendering
	bl	_SCR_DrawDemoRecording
	b	LBB0_13
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_20-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
                                        ; -- End function
	.comm	_re,24,3                        ; @re
	.comm	_cls,24,2                       ; @cls
	.comm	_g_color_table,8,3              ; @g_color_table
	.comm	_uivm,8,3                       ; @uivm
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"draw screen without UI loaded\n"

	.comm	_UI_IS_FULLSCREEN,4,2           ; @UI_IS_FULLSCREEN
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"SCR_DrawScreenField: bad cls.state"

	.comm	_UI_SET_ACTIVE_MENU,4,2         ; @UI_SET_ACTIVE_MENU
	.comm	_UIMENU_MAIN,4,2                ; @UIMENU_MAIN
	.comm	_UI_REFRESH,4,2                 ; @UI_REFRESH
	.comm	_UI_DRAW_CONNECT_SCREEN,4,2     ; @UI_DRAW_CONNECT_SCREEN
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_KEYCATCH_UI,4,2                ; @KEYCATCH_UI
	.comm	_cl_debuggraph,8,3              ; @cl_debuggraph
	.comm	_cl_timegraph,8,3               ; @cl_timegraph
	.comm	_cl_debugMove,8,3               ; @cl_debugMove
.subsections_via_symbols
