	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Controls_MenuEvent
_Controls_MenuEvent:                    ## @Controls_MenuEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$15, %eax
	ja	LBB0_21
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_19:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
## %bb.20:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_s_controls@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_21:
	popq	%rbp
	retq
LBB0_7:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
## %bb.8:
	movq	_C_WEAPONS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_17:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
	jmp	LBB0_15
LBB0_2:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
## %bb.3:
	movq	_C_MOVEMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
## %bb.10:
	movq	_C_MISC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
## %bb.6:
	movq	_C_LOOKING@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_s_controls@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_Controls_Update                ## TAILCALL
LBB0_18:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
	jmp	LBB0_16
LBB0_11:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
## %bb.12:
	movq	_Controls_ResetDefaults_Draw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Controls_ResetDefaults_Action@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_UI_ConfirmMenu                 ## TAILCALL
LBB0_13:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_21
## %bb.14:
	movq	_s_controls@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	callq	_Controls_SetConfig
LBB0_16:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_UI_PopMenu                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_19
	.long	L0_0_set_17
	.long	L0_0_set_2
	.long	L0_0_set_19
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_18
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_19
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_C_MOVEMENT,4,2                 ## @C_MOVEMENT
	.comm	_s_controls,8,2                 ## @s_controls
	.comm	_C_LOOKING,4,2                  ## @C_LOOKING
	.comm	_C_WEAPONS,4,2                  ## @C_WEAPONS
	.comm	_C_MISC,4,2                     ## @C_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET TO DEFAULTS?"

	.comm	_Controls_ResetDefaults_Draw,4,2 ## @Controls_ResetDefaults_Draw
	.comm	_Controls_ResetDefaults_Action,4,2 ## @Controls_ResetDefaults_Action
	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_Controls_MenuEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Controls_MenuEvent
_Controls_MenuEvent:                    ; @Controls_MenuEvent
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #15
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _qtrue@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _s_controls@GOTPAGE
Lloh9:
	ldr	x9, [x9, _s_controls@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh11:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.6:
Lloh14:
	adrp	x8, _C_WEAPONS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _C_WEAPONS@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
Lloh16:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.8:
	bl	_Controls_SetConfig
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_UI_PopMenu
LBB0_9:
Lloh19:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.10:
Lloh22:
	adrp	x8, _C_MOVEMENT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _C_MOVEMENT@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh24:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.12:
Lloh27:
	adrp	x8, _C_MISC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _C_MISC@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh29:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.14:
Lloh32:
	adrp	x8, _C_LOOKING@GOTPAGE
Lloh33:
	ldr	x8, [x8, _C_LOOKING@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _s_controls@GOTPAGE
Lloh35:
	ldr	x9, [x9, _s_controls@GOTPAGEOFF]
Lloh36:
	str	w8, [x9, #4]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_Controls_Update
LBB0_16:
Lloh37:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.17:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_UI_PopMenu
LBB0_18:
Lloh40:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.19:
Lloh43:
	adrp	x8, _Controls_ResetDefaults_Draw@GOTPAGE
Lloh44:
	ldr	x8, [x8, _Controls_ResetDefaults_Draw@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _Controls_ResetDefaults_Action@GOTPAGE
Lloh47:
	ldr	x8, [x8, _Controls_ResetDefaults_Action@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
Lloh49:
	adrp	x0, l_.str@PAGE
Lloh50:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_UI_ConfirmMenu
LBB0_20:
Lloh51:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh52:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.21:
Lloh54:
	adrp	x8, _s_controls@GOTPAGE
Lloh55:
	ldr	x8, [x8, _s_controls@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cbz	w8, LBB0_23
; %bb.22:
	bl	_Controls_SetConfig
LBB0_23:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_UI_PopMenu
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_C_MOVEMENT,4,2                 ; @C_MOVEMENT
	.comm	_s_controls,8,2                 ; @s_controls
	.comm	_C_LOOKING,4,2                  ; @C_LOOKING
	.comm	_C_WEAPONS,4,2                  ; @C_WEAPONS
	.comm	_C_MISC,4,2                     ; @C_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET TO DEFAULTS?"

	.comm	_Controls_ResetDefaults_Draw,4,2 ; @Controls_ResetDefaults_Draw
	.comm	_Controls_ResetDefaults_Action,4,2 ; @Controls_ResetDefaults_Action
	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_Controls_MenuEvent
.subsections_via_symbols
