	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_remapping_set_defaults   ## -- Begin function input_remapping_set_defaults
	.p2align	4, 0x90
_input_remapping_set_defaults:          ## @input_remapping_set_defaults
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_global_get_ptr
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	(%rax), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	callq	_free
LBB0_4:
	movq	$0, (%r14)
	movq	_RARCH_CTL_UNSET_REMAPS_CORE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	_RARCH_CTL_UNSET_REMAPS_CONTENT_DIR_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	_RARCH_CTL_UNSET_REMAPS_GAME_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
LBB0_5:
	movq	_MAX_USERS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	je	LBB0_20
## %bb.6:
	movq	_old_analog_dpad_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_old_libretro_device@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edi, %edi
	movq	_input_config_binds@GOTPCREL(%rip), %r8
	movq	_RETROK_UNKNOWN@GOTPCREL(%rip), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdi
	movl	(%r9), %ecx
	movl	%eax, %esi
	cmpq	%rcx, %rdi
	jae	LBB0_20
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	$-8, %eax
	cmpl	$-8, %esi
	jne	LBB0_8
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r10,%rdi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rdx
	movq	%rcx, (%rdx,%rdi,8)
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r11,%rdi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rdx
	movq	%rcx, (%rdx,%rdi,8)
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r8), %rcx
	xorl	%edx, %edx
	movl	%esi, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	(%rbx), %rax
	movq	(%rax,%rdi,8), %rax
	movl	%edx, (%rax,%rdx,4)
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%rdx
	movl	(%r15), %eax
	leal	8(%rax), %esi
	cmpq	%rsi, %rdx
	jae	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %eax
	cmpq	%rax, %rdx
	jae	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	(%rcx,%rdi,8), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	(%rax,%rdx,4), %eax
	movq	(%rbx), %rsi
	movq	(%rsi,%rdi,8), %rsi
	movl	%eax, (%rsi,%rdx,4)
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	(%r14), %eax
	movq	24(%rbx), %rsi
	movq	(%rsi,%rdi,8), %rsi
	movl	%eax, (%rsi,%rdx,4)
	jmp	LBB0_14
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_CTL_UNSET_REMAPS_CORE_ACTIVE,4,2 ## @RARCH_CTL_UNSET_REMAPS_CORE_ACTIVE
	.comm	_RARCH_CTL_UNSET_REMAPS_CONTENT_DIR_ACTIVE,4,2 ## @RARCH_CTL_UNSET_REMAPS_CONTENT_DIR_ACTIVE
	.comm	_RARCH_CTL_UNSET_REMAPS_GAME_ACTIVE,4,2 ## @RARCH_CTL_UNSET_REMAPS_GAME_ACTIVE
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ## @RARCH_FIRST_CUSTOM_BIND
	.comm	_input_config_binds,8,3         ## @input_config_binds
	.comm	_RETROK_UNKNOWN,4,2             ## @RETROK_UNKNOWN
	.comm	_old_analog_dpad_mode,8,3       ## @old_analog_dpad_mode
	.comm	_old_libretro_device,8,3        ## @old_libretro_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_remapping_set_defaults   ; -- Begin function input_remapping_set_defaults
	.p2align	2
_input_remapping_set_defaults:          ; @input_remapping_set_defaults
	.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	x21, x0
	bl	_config_get_ptr
	mov	x19, x0
	bl	_global_get_ptr
	cbz	x0, LBB0_20
; %bb.1:
	cbz	w21, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x0, [x0]
	bl	_string_is_empty
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x20]
	bl	_free
LBB0_4:
	str	xzr, [x20]
Lloh0:
	adrp	x8, _RARCH_CTL_UNSET_REMAPS_CORE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RARCH_CTL_UNSET_REMAPS_CORE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
Lloh3:
	adrp	x8, _RARCH_CTL_UNSET_REMAPS_CONTENT_DIR_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_CTL_UNSET_REMAPS_CONTENT_DIR_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
Lloh6:
	adrp	x8, _RARCH_CTL_UNSET_REMAPS_GAME_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RARCH_CTL_UNSET_REMAPS_GAME_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
LBB0_5:
Lloh9:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_20
; %bb.6:
	mov	x9, #0
Lloh11:
	adrp	x10, _old_analog_dpad_mode@GOTPAGE
Lloh12:
	ldr	x10, [x10, _old_analog_dpad_mode@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x12, _old_libretro_device@GOTPAGE
Lloh15:
	ldr	x12, [x12, _old_libretro_device@GOTPAGEOFF]
Lloh16:
	adrp	x11, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh17:
	ldr	x11, [x11, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
Lloh18:
	ldr	x12, [x12]
	ldr	w15, [x11]
Lloh19:
	adrp	x13, _input_config_binds@GOTPAGE
Lloh20:
	ldr	x13, [x13, _input_config_binds@GOTPAGEOFF]
Lloh21:
	adrp	x14, _RETROK_UNKNOWN@GOTPAGE
Lloh22:
	ldr	x14, [x14, _RETROK_UNKNOWN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #1
	ldr	w16, [x8]
	cmp	x9, x16
	b.hs	LBB0_20
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmn	w15, #8
	b.ne	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x16, [x10, x9, lsl #3]
	cbz	x16, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x17, [x19, #16]
	str	x16, [x17, x9, lsl #3]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x16, [x12, x9, lsl #3]
	cbz	x16, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x17, [x19, #8]
	str	x16, [x17, x9, lsl #3]
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x16, #0
	ldr	x17, [x13]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x15, [x19]
	ldr	x15, [x15, x9, lsl #3]
	str	w16, [x15, x16, lsl #2]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x16, x16, #1
	ldr	w15, [x11]
	add	w0, w15, #8
	cmp	x16, x0
	b.hs	LBB0_9
LBB0_16:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x16, w15, uxtw
	b.hs	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x15, [x17, x9, lsl #3]
	cbz	x15, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	lsl	x0, x16, #2
	ldr	w15, [x15, x0]
	ldr	x1, [x19]
	ldr	x1, [x1, x9, lsl #3]
	str	w15, [x1, x0]
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	w15, [x14]
	ldr	x0, [x19, #24]
	ldr	x0, [x0, x9, lsl #3]
	str	w15, [x0, x16, lsl #2]
	b	LBB0_15
LBB0_20:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_CTL_UNSET_REMAPS_CORE_ACTIVE,4,2 ; @RARCH_CTL_UNSET_REMAPS_CORE_ACTIVE
	.comm	_RARCH_CTL_UNSET_REMAPS_CONTENT_DIR_ACTIVE,4,2 ; @RARCH_CTL_UNSET_REMAPS_CONTENT_DIR_ACTIVE
	.comm	_RARCH_CTL_UNSET_REMAPS_GAME_ACTIVE,4,2 ; @RARCH_CTL_UNSET_REMAPS_GAME_ACTIVE
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ; @RARCH_FIRST_CUSTOM_BIND
	.comm	_input_config_binds,8,3         ; @input_config_binds
	.comm	_RETROK_UNKNOWN,4,2             ; @RETROK_UNKNOWN
	.comm	_old_analog_dpad_mode,8,3       ; @old_analog_dpad_mode
	.comm	_old_libretro_device,8,3        ; @old_libretro_device
.subsections_via_symbols
