	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mainmenu_cb
_mainmenu_cb:                           ## @mainmenu_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_areplay_get_status
	movq	_AR_SWITCH_TRAINER@GOTPCREL(%rip), %rcx
	movq	_AR_SWITCH_ON@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rdx, %rdi
	cmpl	(%rcx), %eax
	leaq	L_.str(%rip), %rsi
	cmovneq	%rdi, %rsi
	leaq	-20(%rbp), %rdi
	callq	_strcpy
	movq	_menu_main@GOTPCREL(%rip), %rbx
	cmpl	$6, (%rbx)
	movq	8(%rbx), %rsi
	movq	160(%rsi), %rcx
	jne	LBB0_2
## %bb.1:
	leaq	54(%rcx), %rax
	movq	152(%rsi), %rdx
	movl	144(%rsi), %esi
	movl	%esi, %edi
	addl	$-28, %edi
	shrl	$31, %edi
	addl	%edi, %esi
	addl	$-28, %esi
	sarl	%esi
	movslq	%esi, %rsi
	leaq	(%rdx,%rsi), %r8
	addq	$14, %r8
	movq	_DARK_GREY@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	leaq	L_.str.3(%rip), %rdi
	movl	$14, %esi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	callq	_FONT_writeCenter
	movq	8(%rbx), %rax
	movq	160(%rax), %rcx
	leaq	59(%rcx), %rdx
	addq	$80, %rcx
	movq	152(%rax), %rsi
	movl	144(%rax), %eax
	movl	%eax, %edi
	addl	$-11, %edi
	shrl	$31, %edi
	addl	%edi, %eax
	addl	$-11, %eax
	sarl	%eax
	cltq
	leaq	(%rsi,%rax), %r8
	addq	$11, %r8
	movl	(%r14), %r9d
	leaq	-20(%rbp), %rdi
	movl	$11, %esi
	jmp	LBB0_3
LBB0_2:
	leaq	4(%rcx), %rdx
	addq	$54, %rcx
	movq	152(%rsi), %rax
	movl	144(%rsi), %esi
	movl	%esi, %edi
	addl	$-24, %edi
	shrl	$31, %edi
	addl	%edi, %esi
	addl	$-24, %esi
	sarl	%esi
	movslq	%esi, %rsi
	leaq	(%rax,%rsi), %r8
	addq	$12, %r8
	movq	_DARK_GREY@GOTPCREL(%rip), %r14
	movl	(%r14), %r9d
	leaq	L_.str.3(%rip), %rdi
	movl	$12, %esi
	callq	_FONT_writeCenter
	movq	8(%rbx), %rax
	movq	160(%rax), %rcx
	leaq	56(%rcx), %rdx
	addq	$78, %rcx
	movq	152(%rax), %rsi
	movl	144(%rax), %eax
	movl	%eax, %edi
	addl	$-10, %edi
	shrl	$31, %edi
	addl	%edi, %eax
	addl	$-10, %eax
	sarl	%eax
	cltq
	leaq	(%rsi,%rax), %r8
	addq	$10, %r8
	movl	(%r14), %r9d
	leaq	-20(%rbp), %rdi
	movl	$10, %esi
LBB0_3:
	callq	_FONT_writeCenter
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_main,16,3                 ## @menu_main
	.comm	_AR_SWITCH_TRAINER,4,2          ## @AR_SWITCH_TRAINER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TM"

	.comm	_AR_SWITCH_ON,4,2               ## @AR_SWITCH_ON
L_.str.1:                               ## @.str.1
	.asciz	"ON"

L_.str.2:                               ## @.str.2
	.asciz	"OFF"

L_.str.3:                               ## @.str.3
	.asciz	"Action\nReplay"

	.comm	_DARK_GREY,8,3                  ## @DARK_GREY
	.no_dead_strip	_mainmenu_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mainmenu_cb
_mainmenu_cb:                           ; @mainmenu_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_areplay_get_status
Lloh0:
	adrp	x8, _AR_SWITCH_TRAINER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_SWITCH_TRAINER@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AR_SWITCH_ON@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_SWITCH_ON@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh8:
	adrp	x11, l_.str.1@PAGE
Lloh9:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	w0, w9
	csel	x9, x11, x10, eq
Lloh10:
	adrp	x10, l_.str@PAGE
Lloh11:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w0, w8
	csel	x1, x10, x9, eq
	add	x0, sp, #12
	bl	_strcpy
Lloh12:
	adrp	x19, _menu_main@GOTPAGE
Lloh13:
	ldr	x19, [x19, _menu_main@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	ldr	x2, [x9, #160]
	cmp	w8, #6
	b.ne	LBB0_2
; %bb.1:
	add	x3, x2, #54
	ldr	x8, [x9, #152]
	ldr	w9, [x9, #144]
	sub	w10, w9, #28
	sub	w9, w9, #27
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #1
	add	x8, x8, w9, sxtw
	add	x4, x8, #14
Lloh14:
	adrp	x20, _DARK_GREY@GOTPAGE
Lloh15:
	ldr	x20, [x20, _DARK_GREY@GOTPAGEOFF]
	ldr	w5, [x20]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #14
	bl	_FONT_writeCenter
	ldr	x8, [x19, #8]
	ldp	x10, x9, [x8, #152]
	add	x2, x9, #59
	add	x3, x9, #80
	ldr	w8, [x8, #144]
	sub	w9, w8, #11
	sub	w8, w8, #10
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #1
	add	x8, x10, w8, sxtw
	add	x4, x8, #11
	ldr	w5, [x20]
	add	x0, sp, #12
	mov	w1, #11
	b	LBB0_3
LBB0_2:
	add	x8, x2, #4
	add	x3, x2, #54
	ldr	x10, [x9, #152]
	ldr	w9, [x9, #144]
	sub	w11, w9, #24
	sub	w9, w9, #23
	cmp	w11, #0
	csel	w9, w9, w11, lt
	asr	w9, w9, #1
	add	x9, x10, w9, sxtw
	add	x4, x9, #12
Lloh18:
	adrp	x20, _DARK_GREY@GOTPAGE
Lloh19:
	ldr	x20, [x20, _DARK_GREY@GOTPAGEOFF]
	ldr	w5, [x20]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w1, #12
	mov	x2, x8
	bl	_FONT_writeCenter
	ldr	x8, [x19, #8]
	ldp	x10, x9, [x8, #152]
	add	x2, x9, #56
	add	x3, x9, #78
	ldr	w8, [x8, #144]
	sub	w9, w8, #10
	sub	w8, w8, #9
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #1
	add	x8, x10, w8, sxtw
	add	x4, x8, #10
	ldr	w5, [x20]
	add	x0, sp, #12
	mov	w1, #10
LBB0_3:
	bl	_FONT_writeCenter
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_main,16,3                 ; @menu_main
	.comm	_AR_SWITCH_TRAINER,4,2          ; @AR_SWITCH_TRAINER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TM"

	.comm	_AR_SWITCH_ON,4,2               ; @AR_SWITCH_ON
l_.str.1:                               ; @.str.1
	.asciz	"ON"

l_.str.2:                               ; @.str.2
	.asciz	"OFF"

l_.str.3:                               ; @.str.3
	.asciz	"Action\nReplay"

	.comm	_DARK_GREY,8,3                  ; @DARK_GREY
	.no_dead_strip	_mainmenu_cb
.subsections_via_symbols
