	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp2x_menu_init                 ## -- Begin function gp2x_menu_init
	.p2align	4, 0x90
_gp2x_menu_init:                        ## @gp2x_menu_init
	.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	_e_menu_adv_options@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MA_OPT_ARM940_SOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_me_enable
	movq	_e_menu_gfx_options@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_MA_OPT_TEARING_FIX@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_me_enable
	movl	(%rbx), %edi
	movq	_MA_OPT2_GAMMA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_me_enable
	movl	(%rbx), %edi
	movq	_MA_OPT2_A_SN_GAMMA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_me_enable
	movq	_gp2x_dev_id@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.2:
	movq	_e_menu_adv_options@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MA_OPT_ARM940_SOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_me_enable
	movl	(%rbx), %edi
	movl	(%r13), %esi
	movl	$1, %edx
	callq	_me_enable
	movq	%r15, %r14
LBB0_3:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_me_enable
	movl	(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_6
LBB0_4:
	movq	_men_scaling_opts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, 16(%rcx)
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_e_menu_keyconfig@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MA_CTRL_DEADZONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_me_enable                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_e_menu_adv_options,4,2         ## @e_menu_adv_options
	.comm	_MA_OPT_ARM940_SOUND,4,2        ## @MA_OPT_ARM940_SOUND
	.comm	_e_menu_gfx_options,4,2         ## @e_menu_gfx_options
	.comm	_MA_OPT_TEARING_FIX,4,2         ## @MA_OPT_TEARING_FIX
	.comm	_MA_OPT2_GAMMA,4,2              ## @MA_OPT2_GAMMA
	.comm	_MA_OPT2_A_SN_GAMMA,4,2         ## @MA_OPT2_A_SN_GAMMA
	.comm	_gp2x_dev_id,4,2                ## @gp2x_dev_id
	.comm	_men_scaling_opts,8,3           ## @men_scaling_opts
	.comm	_e_menu_keyconfig,4,2           ## @e_menu_keyconfig
	.comm	_MA_CTRL_DEADZONE,4,2           ## @MA_CTRL_DEADZONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp2x_menu_init                 ; -- Begin function gp2x_menu_init
	.p2align	2
_gp2x_menu_init:                        ; @gp2x_menu_init
	.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	x20, _e_menu_adv_options@GOTPAGE
Lloh1:
	ldr	x20, [x20, _e_menu_adv_options@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _MA_OPT_ARM940_SOUND@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MA_OPT_ARM940_SOUND@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_me_enable
Lloh4:
	adrp	x19, _e_menu_gfx_options@GOTPAGE
Lloh5:
	ldr	x19, [x19, _e_menu_gfx_options@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh6:
	adrp	x23, _MA_OPT_TEARING_FIX@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MA_OPT_TEARING_FIX@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_me_enable
	ldr	w0, [x19]
Lloh8:
	adrp	x24, _MA_OPT2_GAMMA@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MA_OPT2_GAMMA@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_me_enable
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _MA_OPT2_A_SN_GAMMA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MA_OPT2_A_SN_GAMMA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_me_enable
Lloh13:
	adrp	x22, _gp2x_dev_id@GOTPAGE
Lloh14:
	ldr	x22, [x22, _gp2x_dev_id@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	w2, #1
	bl	_me_enable
	ldr	w0, [x19]
	ldr	w1, [x24]
	mov	w2, #1
	bl	_me_enable
Lloh15:
	adrp	x23, _MA_OPT2_A_SN_GAMMA@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MA_OPT2_A_SN_GAMMA@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x19]
	ldr	w1, [x23]
	mov	w2, #1
	bl	_me_enable
	ldr	w8, [x22]
	cmp	w8, #129
	b.eq	LBB0_6
LBB0_4:
Lloh17:
	adrp	x9, _men_scaling_opts@GOTPAGE
Lloh18:
	ldr	x9, [x9, _men_scaling_opts@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	xzr, [x9, #16]
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.5:
	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_6:
Lloh20:
	adrp	x8, _e_menu_keyconfig@GOTPAGE
Lloh21:
	ldr	x8, [x8, _e_menu_keyconfig@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _MA_CTRL_DEADZONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MA_CTRL_DEADZONE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w2, #0
	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	_me_enable
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_e_menu_adv_options,4,2         ; @e_menu_adv_options
	.comm	_MA_OPT_ARM940_SOUND,4,2        ; @MA_OPT_ARM940_SOUND
	.comm	_e_menu_gfx_options,4,2         ; @e_menu_gfx_options
	.comm	_MA_OPT_TEARING_FIX,4,2         ; @MA_OPT_TEARING_FIX
	.comm	_MA_OPT2_GAMMA,4,2              ; @MA_OPT2_GAMMA
	.comm	_MA_OPT2_A_SN_GAMMA,4,2         ; @MA_OPT2_A_SN_GAMMA
	.comm	_gp2x_dev_id,4,2                ; @gp2x_dev_id
	.comm	_men_scaling_opts,8,3           ; @men_scaling_opts
	.comm	_e_menu_keyconfig,4,2           ; @e_menu_keyconfig
	.comm	_MA_CTRL_DEADZONE,4,2           ; @MA_CTRL_DEADZONE
.subsections_via_symbols
