	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PlayerModel_MenuEvent
_PlayerModel_MenuEvent:                 ## @PlayerModel_MenuEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_10
## %bb.1:
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.4:
	movq	_s_playermodel@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.5:
	decl	%ecx
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
	callq	_PlayerModel_SaveChanges
	xorl	%eax, %eax
	popq	%rbp
	jmp	_UI_PopMenu                     ## TAILCALL
LBB0_7:
	movq	_s_playermodel@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	decl	%edx
	cmpl	%edx, %ecx
	jge	LBB0_10
## %bb.8:
	incl	%ecx
LBB0_6:
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_PlayerModel_UpdateGrid         ## TAILCALL
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_s_playermodel,8,2              ## @s_playermodel
	.no_dead_strip	_PlayerModel_MenuEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PlayerModel_MenuEvent
_PlayerModel_MenuEvent:                 ; @PlayerModel_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
Lloh0:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _s_playermodel@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_playermodel@GOTPAGEOFF]
	ldr	w9, [x8]
	subs	w9, w9, #1
	b.ge	LBB0_8
	b	LBB0_9
LBB0_5:
	bl	_PlayerModel_SaveChanges
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_UI_PopMenu
LBB0_6:
Lloh5:
	adrp	x8, _s_playermodel@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s_playermodel@GOTPAGEOFF]
	ldp	w9, w10, [x8]
	sub	w10, w10, #1
	cmp	w9, w10
	b.ge	LBB0_9
; %bb.7:
	add	w9, w9, #1
LBB0_8:
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_PlayerModel_UpdateGrid
LBB0_9:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_s_playermodel,8,2              ; @s_playermodel
	.no_dead_strip	_PlayerModel_MenuEvent
.subsections_via_symbols
