	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_InitSwitchList               ## -- Begin function P_InitSwitchList
	.p2align	4, 0x90
_P_InitSwitchList:                      ## @P_InitSwitchList
	.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	_gamemode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_commercial@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	_registered@GOTPCREL(%rip), %rcx
	sete	%dl
	cmpq	(%rcx), %rax
	leal	1(%rdx,%rdx), %eax
	movl	$2, %r14d
	cmovnel	%eax, %r14d
	movq	_MAXSWITCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$12, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_alphSwitchList@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r14d, %edx
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, %r13d
	movl	8(%rcx,%rbx), %edi
	callq	_R_TextureNumForName
	movq	_switchlist@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movslq	%r13d, %r13
	movl	%eax, (%rcx,%r13,4)
	movq	_alphSwitchList@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%rbx), %edi
	callq	_R_TextureNumForName
	movq	(%r12), %rcx
	leal	2(%r13), %edi
	movl	%eax, 4(%rcx,%r13,4)
	movq	_MAXSWITCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	movq	_numswitches@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_switchlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movl	$-1, (%rax,%rcx,4)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gamemode,8,3                   ## @gamemode
	.comm	_registered,8,3                 ## @registered
	.comm	_commercial,8,3                 ## @commercial
	.comm	_MAXSWITCHES,4,2                ## @MAXSWITCHES
	.comm	_alphSwitchList,8,3             ## @alphSwitchList
	.comm	_numswitches,4,2                ## @numswitches
	.comm	_switchlist,8,3                 ## @switchlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_InitSwitchList               ; -- Begin function P_InitSwitchList
	.p2align	2
_P_InitSwitchList:                      ; @P_InitSwitchList
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _gamemode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gamemode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _registered@GOTPAGE
Lloh4:
	ldr	x9, [x9, _registered@GOTPAGEOFF]
Lloh5:
	adrp	x10, _commercial@GOTPAGE
Lloh6:
	ldr	x10, [x10, _commercial@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	mov	w10, #3
	csinc	w10, w10, wzr, eq
	cmp	x8, x9
	mov	w8, #2
	csel	w20, w8, w10, eq
Lloh9:
	adrp	x21, _MAXSWITCHES@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MAXSWITCHES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w19, #0
Lloh11:
	adrp	x25, _alphSwitchList@GOTPAGE
Lloh12:
	ldr	x25, [x25, _alphSwitchList@GOTPAGEOFF]
Lloh13:
	adrp	x24, _switchlist@GOTPAGE
Lloh14:
	ldr	x24, [x24, _switchlist@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x22, x22, #12
	cmp	x23, w8, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	ldr	w10, [x9, x22]
	cbz	w10, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, w20
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x22
	ldr	w0, [x8, #8]
	bl	_R_TextureNumForName
	ldr	x8, [x24]
	sbfiz	x26, x19, #2, #32
	str	w0, [x8, x26]
	ldr	x8, [x25]
	add	x8, x8, x22
	ldr	w0, [x8, #4]
	bl	_R_TextureNumForName
	ldr	x8, [x24]
	add	w19, w19, #2
	add	x8, x26, x8
	str	w0, [x8, #4]
	ldr	w8, [x21]
	b	LBB0_2
LBB0_6:
	cmp	w19, #0
	cinc	w8, w19, lt
Lloh15:
	adrp	x9, _numswitches@GOTPAGE
Lloh16:
	ldr	x9, [x9, _numswitches@GOTPAGEOFF]
	asr	w8, w8, #1
Lloh17:
	str	w8, [x9]
	ldr	x8, [x24]
	mov	w9, #-1
	str	w9, [x8, w19, sxtw #2]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_gamemode,8,3                   ; @gamemode
	.comm	_registered,8,3                 ; @registered
	.comm	_commercial,8,3                 ; @commercial
	.comm	_MAXSWITCHES,4,2                ; @MAXSWITCHES
	.comm	_alphSwitchList,8,3             ; @alphSwitchList
	.comm	_numswitches,4,2                ; @numswitches
	.comm	_switchlist,8,3                 ; @switchlist
.subsections_via_symbols
