	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_input_key_bind_set_mode_common
_menu_input_key_bind_set_mode_common:   ## @menu_input_key_bind_set_mode_common
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %ebx
	movl	(%rsi), %r14d
	xorl	%edi, %edi
	callq	_menu_entries_get_menu_stack_ptr
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	movq	%rax, %r15
	leaq	-80(%rbp), %rdi
	callq	_menu_displaylist_info_init
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_9
## %bb.2:
	movq	8(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	callq	_setting_get_bind_type
	movq	_menu_input_binds@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, 4(%rcx)
	movq	%rbx, 16(%rcx)
	movl	(%rbx), %eax
	movl	%eax, 24(%rcx)
	movl	%r14d, 8(%rcx)
	movq	%r12, -48(%rbp)
	movq	_MENU_SETTINGS_CUSTOM_BIND_KEYBOARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r15, -80(%rbp)
	movq	_MENU_ENUM_LABEL_CUSTOM_BIND@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_input_config_binds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movq	_menu_input_binds@GOTPCREL(%rip), %rcx
	movq	%rax, 16(%rcx)
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	_MENU_SETTINGS_BIND_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_MENU_SETTINGS_BIND_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	%r12, -48(%rbp)
	movq	_MENU_SETTINGS_CUSTOM_BIND_KEYBOARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%r15, -80(%rbp)
	movq	_MENU_ENUM_LABEL_CUSTOM_BIND_ALL@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rdi
	movq	%rdi, -64(%rbp)
	callq	_msg_hash_to_str
	movl	%eax, %edi
	callq	_strdup
	movq	%rax, -72(%rbp)
	movq	_DISPLAYLIST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	callq	_menu_displaylist_ctl
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	-80(%rbp), %rdi
	callq	_menu_displaylist_process
LBB0_8:
	leaq	-80(%rbp), %rdi
	callq	_menu_displaylist_info_free
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$-1, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_input_binds,32,3          ## @menu_input_binds
	.comm	_MENU_SETTINGS_CUSTOM_BIND_KEYBOARD,8,3 ## @MENU_SETTINGS_CUSTOM_BIND_KEYBOARD
	.comm	_MENU_ENUM_LABEL_CUSTOM_BIND,8,3 ## @MENU_ENUM_LABEL_CUSTOM_BIND
	.comm	_DISPLAYLIST_INFO,4,2           ## @DISPLAYLIST_INFO
	.comm	_input_config_binds,8,3         ## @input_config_binds
	.comm	_MENU_SETTINGS_BIND_BEGIN,4,2   ## @MENU_SETTINGS_BIND_BEGIN
	.comm	_MENU_SETTINGS_BIND_LAST,4,2    ## @MENU_SETTINGS_BIND_LAST
	.comm	_MENU_ENUM_LABEL_CUSTOM_BIND_ALL,8,3 ## @MENU_ENUM_LABEL_CUSTOM_BIND_ALL
	.no_dead_strip	_menu_input_key_bind_set_mode_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_input_key_bind_set_mode_common
_menu_input_key_bind_set_mode_common:   ; @menu_input_key_bind_set_mode_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x22, x0
	ldr	w23, [x1]
	mov	w0, #0
	bl	_menu_entries_get_menu_stack_ptr
	mov	x20, x0
	bl	_menu_navigation_get_selection
	mov	x19, x0
	add	x0, sp, #8
	bl	_menu_displaylist_info_init
	cmp	w22, #130
	b.eq	LBB0_4
; %bb.1:
	mov	w0, #0
	cmp	w22, #128
	b.ne	LBB0_9
; %bb.2:
	ldr	x22, [x21, #8]
	cbz	x22, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_setting_get_bind_type
Lloh0:
	adrp	x8, _menu_input_binds@GOTPAGE
Lloh1:
	ldr	x8, [x8, _menu_input_binds@GOTPAGEOFF]
	stp	w0, w0, [x8]
	str	x22, [x8, #16]
	ldr	w9, [x22]
	str	w9, [x8, #24]
	str	w23, [x8, #8]
Lloh2:
	adrp	x8, _MENU_SETTINGS_CUSTOM_BIND_KEYBOARD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MENU_SETTINGS_CUSTOM_BIND_KEYBOARD@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stp	x8, x20, [sp, #32]
Lloh5:
	adrp	x8, _MENU_ENUM_LABEL_CUSTOM_BIND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MENU_ENUM_LABEL_CUSTOM_BIND@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _input_config_binds@GOTPAGE
Lloh8:
	ldr	x8, [x8, _input_config_binds@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x8, [x8, x23, lsl #3]
Lloh10:
	adrp	x9, _menu_input_binds@GOTPAGE
Lloh11:
	ldr	x9, [x9, _menu_input_binds@GOTPAGEOFF]
	str	x8, [x9, #16]
	ldr	w8, [x8]
	str	w8, [x9, #24]
Lloh12:
	adrp	x8, _MENU_SETTINGS_BIND_BEGIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MENU_SETTINGS_BIND_BEGIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _MENU_SETTINGS_BIND_LAST@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MENU_SETTINGS_BIND_LAST@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w8, w10, [x9]
Lloh18:
	adrp	x8, _MENU_SETTINGS_CUSTOM_BIND_KEYBOARD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MENU_SETTINGS_CUSTOM_BIND_KEYBOARD@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x8, x20, [sp, #32]
Lloh21:
	adrp	x8, _MENU_ENUM_LABEL_CUSTOM_BIND_ALL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MENU_ENUM_LABEL_CUSTOM_BIND_ALL@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x8]
	str	x19, [sp, #8]
	str	x0, [sp, #24]
	bl	_msg_hash_to_str
	bl	_strdup
	str	x0, [sp, #16]
Lloh23:
	adrp	x8, _DISPLAYLIST_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DISPLAYLIST_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_menu_displaylist_ctl
	cbz	w0, LBB0_7
; %bb.6:
	add	x0, sp, #8
	bl	_menu_displaylist_process
LBB0_7:
	add	x0, sp, #8
	bl	_menu_displaylist_info_free
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_input_binds,32,3          ; @menu_input_binds
	.comm	_MENU_SETTINGS_CUSTOM_BIND_KEYBOARD,8,3 ; @MENU_SETTINGS_CUSTOM_BIND_KEYBOARD
	.comm	_MENU_ENUM_LABEL_CUSTOM_BIND,8,3 ; @MENU_ENUM_LABEL_CUSTOM_BIND
	.comm	_DISPLAYLIST_INFO,4,2           ; @DISPLAYLIST_INFO
	.comm	_input_config_binds,8,3         ; @input_config_binds
	.comm	_MENU_SETTINGS_BIND_BEGIN,4,2   ; @MENU_SETTINGS_BIND_BEGIN
	.comm	_MENU_SETTINGS_BIND_LAST,4,2    ; @MENU_SETTINGS_BIND_LAST
	.comm	_MENU_ENUM_LABEL_CUSTOM_BIND_ALL,8,3 ; @MENU_ENUM_LABEL_CUSTOM_BIND_ALL
	.no_dead_strip	_menu_input_key_bind_set_mode_common
.subsections_via_symbols
