	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_bind_sublabel_remap_kbd_sublabel
_action_bind_sublabel_remap_kbd_sublabel: ## @action_bind_sublabel_remap_kbd_sublabel
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%esi, %eax
	movq	16(%rbp), %r14
	movq	_MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %ebx
	movq	_MENU_ENUM_LABEL_VALUE_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_input_config_get_device_display_name
	movl	%ebx, %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_input_config_get_device_display_name
	jmp	LBB0_5
LBB0_2:
	callq	_input_config_get_device_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_input_config_get_device_name
	jmp	LBB0_5
LBB0_4:
	movq	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
LBB0_5:
	incl	%ebx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movl	%ebx, %r8d
	movq	%rax, %r9
	callq	_snprintf
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s #%d: %s"

	.comm	_MENU_ENUM_LABEL_VALUE_USER,4,2 ## @MENU_ENUM_LABEL_VALUE_USER
	.comm	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE,4,2 ## @MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE
	.no_dead_strip	_action_bind_sublabel_remap_kbd_sublabel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function action_bind_sublabel_remap_kbd_sublabel
_action_bind_sublabel_remap_kbd_sublabel: ; @action_bind_sublabel_remap_kbd_sublabel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x6
	mov	x20, x5
Lloh0:
	adrp	x8, _MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_SETTINGS_INPUT_DESC_KBD_BEGIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
	sub	w8, w1, w8
Lloh5:
	ldr	w9, [x9]
	udiv	w21, w8, w9
Lloh6:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_USER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_USER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x22, x0
	mov	x0, x21
	bl	_input_config_get_device_display_name
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_input_config_get_device_display_name
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_input_config_get_device_name
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_input_config_get_device_name
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
LBB0_5:
	mov	x5, x0
	add	w4, w21, #1
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_snprintf
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s #%d: %s"

	.comm	_MENU_ENUM_LABEL_VALUE_USER,4,2 ; @MENU_ENUM_LABEL_VALUE_USER
	.comm	_MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE,4,2 ; @MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE
	.no_dead_strip	_action_bind_sublabel_remap_kbd_sublabel
.subsections_via_symbols
