	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_scan_input_desc
_action_scan_input_desc:                ## @action_scan_input_desc
	.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
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	$0, -24(%rbp)
	leaq	-24(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_menu_entries_get_last_stack
	movq	-24(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	incq	%rbx
	movq	%rbx, %rdi
	callq	_atoi
	movzbl	%al, %eax
	decl	%eax
	addl	$-7, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_input_config_translate_str_to_bind_id
	movl	%eax, %r14d
	xorl	%eax, %eax
LBB0_3:
	movq	_input_config_binds@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%r14d, %ecx
	movq	_RETROK_UNKNOWN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shlq	$5, %rcx
	movl	%edx, 24(%rax,%rcx)
	movq	_NO_BTN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rsi, 16(%rax,%rcx)
	movq	_AXIS_NONE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 8(%rax,%rcx)
	movq	(%rdx), %rdx
	movq	%rdx, (%rax,%rcx)
LBB0_5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deferred_user_binds_list"

	.comm	_input_config_binds,8,3         ## @input_config_binds
	.comm	_RETROK_UNKNOWN,4,2             ## @RETROK_UNKNOWN
	.comm	_NO_BTN,8,3                     ## @NO_BTN
	.comm	_AXIS_NONE,4,2                  ## @AXIS_NONE
	.no_dead_strip	_action_scan_input_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function action_scan_input_desc
_action_scan_input_desc:                ; @action_scan_input_desc
	.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
	mov	x19, x3
	mov	x20, x1
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_menu_entries_get_last_stack
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #1
	bl	_atoi
	sub	w8, w0, #1
	sub	w0, w19, #7
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_input_config_translate_str_to_bind_id
	mov	x8, #0
LBB0_3:
Lloh2:
	adrp	x9, _input_config_binds@GOTPAGE
Lloh3:
	ldr	x9, [x9, _input_config_binds@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w9, w0
Lloh5:
	adrp	x10, _RETROK_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RETROK_UNKNOWN@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	add	x8, x8, x9, lsl #5
	str	w10, [x8, #24]
Lloh8:
	adrp	x9, _NO_BTN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NO_BTN@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x10, [x8, #16]
Lloh10:
	adrp	x10, _AXIS_NONE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AXIS_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	str	w10, [x8, #8]
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deferred_user_binds_list"

	.comm	_input_config_binds,8,3         ; @input_config_binds
	.comm	_RETROK_UNKNOWN,4,2             ; @RETROK_UNKNOWN
	.comm	_NO_BTN,8,3                     ; @NO_BTN
	.comm	_AXIS_NONE,4,2                  ; @AXIS_NONE
	.no_dead_strip	_action_scan_input_desc
.subsections_via_symbols
