	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_left_input_desc_kbd
_action_left_input_desc_kbd:            ## @action_left_input_desc_kbd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rcx
	movq	_MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subl	%r8d, %ebx
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rsi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%rsi)
                                        ## kill: def $eax killed $eax def $rax
                                        ## kill: def $edx killed $edx def $rdx
	xorl	%edi, %edi
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r9
	movq	_RARCH_MAX_KEYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_key_descriptors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	decl	%ebx
	je	LBB0_7
## %bb.2:
	movl	(%r9,%rdx,4), %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %eax
	cmpl	(%rcx,%rax,4), %esi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
	cmpl	%edi, %ebx
	jne	LBB0_3
## %bb.5:
	movl	%ebx, %edi
LBB0_6:
	subl	$1, %edi
	jae	LBB0_8
LBB0_7:
	addl	%r8d, %ebx
	movl	%ebx, %edi
LBB0_8:
	movl	%edi, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r9,%rdx,4)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_SETTINGS_INPUT_DESC_KBD_BEGIN,4,2 ## @MENU_SETTINGS_INPUT_DESC_KBD_BEGIN
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ## @RARCH_FIRST_CUSTOM_BIND
	.comm	_RARCH_MAX_KEYS,4,2             ## @RARCH_MAX_KEYS
	.comm	_key_descriptors,8,3            ## @key_descriptors
	.no_dead_strip	_action_left_input_desc_kbd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function action_left_input_desc_kbd
_action_left_input_desc_kbd:            ; @action_left_input_desc_kbd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_config_get_ptr
	cbz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	sub	w9, w19, w10
Lloh3:
	adrp	x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x8]
	udiv	w12, w9, w11
	ldr	x8, [x0]
	ldr	x8, [x8, w12, uxtw #3]
Lloh6:
	adrp	x13, _RARCH_MAX_KEYS@GOTPAGE
Lloh7:
	ldr	x13, [x13, _RARCH_MAX_KEYS@GOTPAGEOFF]
	msub	w9, w12, w11, w9
Lloh8:
	ldr	w12, [x13]
Lloh9:
	adrp	x11, _key_descriptors@GOTPAGE
Lloh10:
	ldr	x11, [x11, _key_descriptors@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	subs	w12, w12, #1
	b.eq	LBB0_8
; %bb.2:
	mov	w13, #0
	ldr	w14, [x8, w9, uxtw #2]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x11, w13, uxtw #2]
	cmp	w14, w15
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w13, w13, #1
	cmp	w12, w13
	b.ne	LBB0_3
; %bb.5:
	mov	x13, x12
LBB0_6:
	cbz	w13, LBB0_8
; %bb.7:
	sub	w10, w13, #1
	b	LBB0_9
LBB0_8:
	add	w10, w12, w10
LBB0_9:
	ldr	w10, [x11, w10, uxtw #2]
	str	w10, [x8, x9, lsl #2]
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_SETTINGS_INPUT_DESC_KBD_BEGIN,4,2 ; @MENU_SETTINGS_INPUT_DESC_KBD_BEGIN
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ; @RARCH_FIRST_CUSTOM_BIND
	.comm	_RARCH_MAX_KEYS,4,2             ; @RARCH_MAX_KEYS
	.comm	_key_descriptors,8,3            ; @key_descriptors
	.no_dead_strip	_action_left_input_desc_kbd
.subsections_via_symbols
