	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function in_gp2x_menu_translate
_in_gp2x_menu_translate:                ## @in_gp2x_menu_translate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_KEY_PBTN_MAP_SIZE@GOTPCREL(%rip), %rax
	testl	%esi, %esi
	js	LBB0_5
## %bb.1:
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_10
## %bb.2:
	movq	_key_pbtn_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, 4(%rcx)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rcx
	decq	%rdx
	jne	LBB0_3
LBB0_10:
	popq	%rbp
	retq
LBB0_5:
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_10
## %bb.6:
	negl	%esi
	movq	_key_pbtn_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$4, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, -4(%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$8, %rcx
	decq	%rdx
	jne	LBB0_7
	jmp	LBB0_10
LBB0_9:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_PBTN_MAP_SIZE,4,2          ## @KEY_PBTN_MAP_SIZE
	.comm	_key_pbtn_map,8,3               ## @key_pbtn_map
	.no_dead_strip	_in_gp2x_menu_translate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function in_gp2x_menu_translate
_in_gp2x_menu_translate:                ; @in_gp2x_menu_translate
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _KEY_PBTN_MAP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_PBTN_MAP_SIZE@GOTPAGEOFF]
	tbnz	w1, #31, LBB0_5
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.2:
Lloh2:
	adrp	x8, _key_pbtn_map@GOTPAGE
Lloh3:
	ldr	x8, [x8, _key_pbtn_map@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, #4]
	cmp	w10, w1
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_3
	b	LBB0_9
LBB0_5:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.6:
	neg	w10, w1
Lloh5:
	adrp	x8, _key_pbtn_map@GOTPAGE
Lloh6:
	ldr	x8, [x8, _key_pbtn_map@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x8, x8, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x8, #-4]
	cmp	w11, w10
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_9:
	mov	w0, #0
	ret
LBB0_10:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_PBTN_MAP_SIZE,4,2          ; @KEY_PBTN_MAP_SIZE
	.comm	_key_pbtn_map,8,3               ; @key_pbtn_map
	.no_dead_strip	_in_gp2x_menu_translate
.subsections_via_symbols
