	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_WorldDone                    ## -- Begin function G_WorldDone
	.p2align	4, 0x90
_G_WorldDone:                           ## @G_WorldDone
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ga_worlddone@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_gameaction@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_secretexit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_players@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_consoleplayer@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	$1, (%rcx,%rdx,4)
LBB0_2:
	movq	_gamemode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_commercial@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.3:
	movq	_gamemap@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$31, %ecx
	ja	LBB0_7
## %bb.4:
	movl	$1074792512, %edx               ## imm = 0x40100840
	btl	%ecx, %edx
	jb	LBB0_8
## %bb.5:
	movl	$-2147450880, %edx              ## imm = 0x80008000
	btl	%ecx, %edx
	jae	LBB0_7
## %bb.6:
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_F_StartFinale                  ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ga_worlddone,4,2               ## @ga_worlddone
	.comm	_gameaction,4,2                 ## @gameaction
	.comm	_secretexit,8,3                 ## @secretexit
	.comm	_players,8,3                    ## @players
	.comm	_consoleplayer,8,3              ## @consoleplayer
	.comm	_gamemode,8,3                   ## @gamemode
	.comm	_commercial,8,3                 ## @commercial
	.comm	_gamemap,4,2                    ## @gamemap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_WorldDone                    ; -- Begin function G_WorldDone
	.p2align	2
_G_WorldDone:                           ; @G_WorldDone
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ga_worlddone@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ga_worlddone@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _gameaction@GOTPAGE
Lloh4:
	ldr	x9, [x9, _gameaction@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _secretexit@GOTPAGE
Lloh7:
	ldr	x8, [x8, _secretexit@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, _players@GOTPAGE
Lloh10:
	ldr	x9, [x9, _players@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _consoleplayer@GOTPAGE
Lloh13:
	ldr	x10, [x10, _consoleplayer@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	mov	w11, #1
	str	w11, [x9, x10, lsl #2]
LBB0_2:
Lloh15:
	adrp	x9, _gamemode@GOTPAGE
Lloh16:
	ldr	x9, [x9, _gamemode@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _commercial@GOTPAGE
Lloh19:
	ldr	x10, [x10, _commercial@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
Lloh21:
	adrp	x9, _gamemap@GOTPAGE
Lloh22:
	ldr	x9, [x9, _gamemap@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w9, #31
	b.hi	LBB0_6
; %bb.4:
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #2112
	movk	w10, #16400, lsl #16
	tst	w9, w10
	b.ne	LBB0_7
; %bb.5:
	and	w9, w9, #0x80008000
	cmp	w9, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_7
LBB0_6:
	ret
LBB0_7:
	b	_F_StartFinale
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ga_worlddone,4,2               ; @ga_worlddone
	.comm	_gameaction,4,2                 ; @gameaction
	.comm	_secretexit,8,3                 ; @secretexit
	.comm	_players,8,3                    ; @players
	.comm	_consoleplayer,8,3              ; @consoleplayer
	.comm	_gamemode,8,3                   ; @gamemode
	.comm	_commercial,8,3                 ; @commercial
	.comm	_gamemap,4,2                    ; @gamemap
.subsections_via_symbols
