	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_action_setting_disp_set_label_input_desc_kbd
_menu_action_setting_disp_set_label_input_desc_kbd: ## @menu_action_setting_disp_set_label_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%edx, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rcx
	movq	_MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPCREL(%rip), %rax
	subl	(%rax), %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
	movq	_RARCH_MAX_KEYS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	movq	_key_descriptors@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	decl	%edi
	je	LBB0_6
## %bb.2:
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax,%rdx,4), %eax
	movl	%edi, %ecx
	xorl	%r13d, %r13d
	movq	%rsi, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rdx), %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	$16, %rdx
	cmpq	%r13, %rcx
	jne	LBB0_3
## %bb.5:
	movl	%edi, %r13d
LBB0_6:
	movq	16(%rbp), %rbx
	movl	%r13d, %eax
	shlq	$4, %rax
	movl	(%rsi,%rax), %ecx
	movq	_RETROK_FIRST@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	jmp	LBB0_9
LBB0_7:
	movq	8(%rsi,%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r12, %rsi
LBB0_9:
	movq	%rbx, %rdx
	callq	_strlcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$19, (%rax)
	movq	32(%rbp), %rdi
	movq	24(%rbp), %rsi
	movq	40(%rbp), %rdx
	callq	_strlcpy
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.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
	.comm	_RETROK_FIRST,4,2               ## @RETROK_FIRST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Keyboard %s"

L_.str.1:                               ## @.str.1
	.asciz	"---"

	.no_dead_strip	_menu_action_setting_disp_set_label_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 menu_action_setting_disp_set_label_input_desc_kbd
_menu_action_setting_disp_set_label_input_desc_kbd: ; @menu_action_setting_disp_set_label_input_desc_kbd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x7
	mov	x21, x6
	mov	x22, x5
	mov	x27, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x26, x8, x9
	mov	sp, x26
	bl	_config_get_ptr
	cbz	x0, LBB0_10
; %bb.1:
Lloh8:
	adrp	x8, _RARCH_MAX_KEYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RARCH_MAX_KEYS@GOTPAGEOFF]
	ldp	x24, x23, [x29, #16]
Lloh10:
	ldr	w9, [x8]
Lloh11:
	adrp	x8, _key_descriptors@GOTPAGE
Lloh12:
	ldr	x8, [x8, _key_descriptors@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	subs	w9, w9, #1
	b.eq	LBB0_6
; %bb.2:
	mov	x10, #0
Lloh14:
	adrp	x11, _MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPAGE
Lloh15:
	ldr	x11, [x11, _MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	sub	w11, w27, w11
Lloh17:
	adrp	x12, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh18:
	ldr	x12, [x12, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	udiv	w13, w11, w12
	msub	w11, w13, w12, w11
	ldr	x12, [x0]
	ldr	x12, [x12, w13, uxtw #3]
	ldr	w11, [x12, w11, uxtw #2]
	mov	x12, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	cmp	w11, w13
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	x12, x12, #16
	cmp	x9, x10
	b.ne	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	x9, x10
LBB0_6:
	mov	w9, w9
	lsl	x10, x9, #4
	ldr	w10, [x8, x10]
Lloh20:
	adrp	x11, _RETROK_FIRST@GOTPAGE
Lloh21:
	ldr	x11, [x11, _RETROK_FIRST@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_8
; %bb.7:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	b	LBB0_9
LBB0_8:
	add	x8, x8, x9, lsl #4
	ldr	x3, [x8, #8]
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x26
	mov	x1, x25
	bl	_snprintf
	mov	x0, x22
	mov	x1, x26
LBB0_9:
	mov	x2, x21
	bl	_strlcpy
	mov	w8, #19
	str	w8, [x20]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	bl	_strlcpy
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.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
	.comm	_RETROK_FIRST,4,2               ; @RETROK_FIRST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Keyboard %s"

l_.str.1:                               ; @.str.1
	.asciz	"---"

	.no_dead_strip	_menu_action_setting_disp_set_label_input_desc_kbd
.subsections_via_symbols
