	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function in_sdl_menu_translate
_in_sdl_menu_translate:                 ## @in_sdl_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	8(%rdi), %rax
	movq	(%rax), %r9
	movq	(%r9), %r8
	testq	%r8, %r8
	jne	LBB0_2
## %bb.1:
	movq	_in_sdl_keys@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
LBB0_2:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	sete	%cl
	setne	%al
	movl	8(%r9,%rcx,4), %edi
	movq	16(%r9,%rax,8), %rax
	testl	%esi, %esi
	js	LBB0_9
## %bb.3:
	testl	%edi, %edi
	jle	LBB0_7
## %bb.4:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, 4(%rax,%rcx,8)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	testq	%rdx, %rdx
	jne	LBB0_15
	jmp	LBB0_8
LBB0_9:
	testl	%edi, %edi
	jle	LBB0_19
## %bb.10:
	negl	%esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rax,%rcx,8)
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_11
LBB0_19:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_14:
	movl	(%rax,%rcx,8), %eax
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_15:
	movq	_SDLK_LAST@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jbe	LBB0_8
## %bb.16:
	movslq	%esi, %rcx
	movq	(%r8,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.17:
	cmpb	$0, 1(%rcx)
	je	LBB0_18
LBB0_8:
	popq	%rbp
	retq
LBB0_20:
	movl	4(%rax,%rcx,8), %eax
	popq	%rbp
	retq
LBB0_18:
	movq	_PBTN_CHAR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movb	(%rcx), %cl
	movb	%cl, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_in_sdl_keys,8,3                ## @in_sdl_keys
	.comm	_SDLK_LAST,4,2                  ## @SDLK_LAST
	.comm	_PBTN_CHAR,4,2                  ## @PBTN_CHAR
	.no_dead_strip	_in_sdl_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_sdl_menu_translate
_in_sdl_menu_translate:                 ; @in_sdl_menu_translate
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [x0]
	ldr	x10, [x8]
Lloh0:
	adrp	x8, _in_sdl_keys@GOTPAGE
Lloh1:
	ldr	x8, [x8, _in_sdl_keys@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x11, [x10]
	cmp	x11, #0
	csel	x8, x8, x11, eq
	mov	w11, #24
	mov	w12, #16
	cmp	x9, #0
	csel	x11, x12, x11, eq
	mov	w9, #8
	mov	w12, #12
	csel	x9, x12, x9, eq
	ldr	w9, [x10, x9]
	ldr	x10, [x10, x11]
	cmp	w9, #1
	tbnz	w1, #31, LBB0_6
; %bb.1:
	b.lt	LBB0_5
; %bb.2:
	add	x10, x10, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w1
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
	cbnz	x2, LBB0_12
	b	LBB0_15
LBB0_6:
	b.lt	LBB0_10
; %bb.7:
	neg	w8, w1
	add	x10, x10, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-4]
	cmp	w11, w8
	b.eq	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_10:
	mov	w0, #0
	ret
LBB0_11:
	ldur	w0, [x10, #-4]
	cbz	x2, LBB0_15
LBB0_12:
Lloh3:
	adrp	x9, _SDLK_LAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDLK_LAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ls	LBB0_15
; %bb.13:
	ldr	x8, [x8, w1, sxtw #3]
	cbz	x8, LBB0_15
; %bb.14:
	ldrb	w9, [x8, #1]
	cbz	w9, LBB0_17
LBB0_15:
	ret
LBB0_16:
	ldr	w0, [x10]
	ret
LBB0_17:
Lloh6:
	adrp	x9, _PBTN_CHAR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PBTN_CHAR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w0
	ldrb	w8, [x8]
	strb	w8, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_in_sdl_keys,8,3                ; @in_sdl_keys
	.comm	_SDLK_LAST,4,2                  ; @SDLK_LAST
	.comm	_PBTN_CHAR,4,2                  ; @PBTN_CHAR
	.no_dead_strip	_in_sdl_menu_translate
.subsections_via_symbols
