	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_DoReborn                     ## -- Begin function G_DoReborn
	.p2align	4, 0x90
_G_DoReborn:                            ## @G_DoReborn
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_netgame@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edi, %r12d
	movq	_players@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %r14
	movq	(%rax,%r14,8), %rax
	movq	$0, (%rax)
	movq	_deathmatch@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.13:
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_G_DeathMatchSpawnPlayer        ## TAILCALL
LBB0_1:
	movq	_ga_loadlevel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_gameaction@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_playerstarts@GOTPCREL(%rip), %rbx
	shlq	$2, %r14
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	movl	%r12d, %edi
	callq	_G_CheckSpot
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:
	addq	(%rbx), %r14
	jmp	LBB0_10
LBB0_4:
	movq	_MAXPLAYERS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.5:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_playerstarts@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%r12d, %edi
	callq	_G_CheckSpot
	testq	%rax, %rax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_12:
	movq	_playerstarts@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_P_SpawnPlayer                  ## TAILCALL
LBB0_7:
	incl	%r12d
	movq	_playerstarts@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movl	%r12d, (%rdi,%r13)
	addq	%r13, %rdi
	callq	_P_SpawnPlayer
	incl	%ebx
	movq	(%r14), %rax
	movl	%ebx, (%rax,%r13)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_netgame,4,2                    ## @netgame
	.comm	_ga_loadlevel,4,2               ## @ga_loadlevel
	.comm	_gameaction,4,2                 ## @gameaction
	.comm	_players,8,3                    ## @players
	.comm	_deathmatch,8,3                 ## @deathmatch
	.comm	_playerstarts,8,3               ## @playerstarts
	.comm	_MAXPLAYERS,4,2                 ## @MAXPLAYERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_DoReborn                     ; -- Begin function G_DoReborn
	.p2align	2
_G_DoReborn:                            ; @G_DoReborn
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _netgame@GOTPAGE
Lloh1:
	ldr	x8, [x8, _netgame@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _players@GOTPAGE
Lloh4:
	ldr	x8, [x8, _players@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	str	xzr, [x8]
Lloh6:
	adrp	x8, _deathmatch@GOTPAGE
Lloh7:
	ldr	x8, [x8, _deathmatch@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_G_DeathMatchSpawnPlayer
LBB0_3:
Lloh9:
	adrp	x8, _ga_loadlevel@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ga_loadlevel@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _gameaction@GOTPAGE
Lloh13:
	ldr	x9, [x9, _gameaction@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	sxtw	x21, w19
Lloh15:
	adrp	x20, _playerstarts@GOTPAGE
Lloh16:
	ldr	x20, [x20, _playerstarts@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, x21, lsl #2
	mov	x0, x19
	bl	_G_CheckSpot
	cbz	x0, LBB0_7
LBB0_6:
	ldr	x8, [x20]
	add	x0, x8, x21, lsl #2
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_P_SpawnPlayer
LBB0_7:
Lloh17:
	adrp	x24, _MAXPLAYERS@GOTPAGE
Lloh18:
	ldr	x24, [x24, _MAXPLAYERS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:
	mov	x22, #0
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x1, x8, x22
	mov	x0, x19
	bl	_G_CheckSpot
	cbnz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x24]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_9
	b	LBB0_6
LBB0_11:
	add	w8, w19, #1
	ldr	x9, [x20]
	add	x0, x9, x22
	str	w8, [x0]
	bl	_P_SpawnPlayer
	add	w8, w23, #1
	ldr	x9, [x20]
	str	w8, [x9, x22]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_netgame,4,2                    ; @netgame
	.comm	_ga_loadlevel,4,2               ; @ga_loadlevel
	.comm	_gameaction,4,2                 ; @gameaction
	.comm	_players,8,3                    ; @players
	.comm	_deathmatch,8,3                 ; @deathmatch
	.comm	_playerstarts,8,3               ; @playerstarts
	.comm	_MAXPLAYERS,4,2                 ; @MAXPLAYERS
.subsections_via_symbols
