	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function load_configuration
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_load_configuration
	.p2align	4, 0x90
_load_configuration:                    ## @load_configuration
	.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	$1256, %rsp                     ## imm = 0x4E8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_get_sdl_num_joysticks
	movl	%eax, -1212(%rbp)               ## 4-byte Spill
	movl	$0, -1236(%rbp)
	movl	%ebx, -1208(%rbp)               ## 4-byte Spill
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	-1212(%rbp), %edx               ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_2:
	leaq	-1200(%rbp), %rbx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_M64MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	-80(%rbp), %r14
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
	movq	%r14, %rdi
	callq	_ConfigDeleteSection
	movq	_E_MODE_FULL_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, -160(%rbp,%r15,8)
	movq	%rdx, -128(%rbp,%r15,8)
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -176(%rbp,%r15,4)
	movq	-1224(%rbp), %rbx               ## 8-byte Reload
	movb	$0, (%rbx)
	movl	%r15d, %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_init_controller_config
	movq	%r14, %rdi
	callq	_ConfigSaveSection
	movq	-1232(%rbp), %r14               ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r12
	addq	$8, %r14
	addq	$256, %rbx                      ## imm = 0x100
	cmpq	$4, %r13
	je	LBB0_20
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -1224(%rbp)               ## 8-byte Spill
	movq	%r13, %r15
	movl	%r15d, %edi
	callq	_clear_controller
	incq	%r13
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_sprintf
	movq	%rbx, %rdi
	leaq	-96(%rbp), %rsi
	callq	_ConfigOpenSection
	movq	_M64ERR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rax
	movq	%r14, -1232(%rbp)               ## 8-byte Spill
	movl	$0, -1236(%rbp)
	movl	-96(%rbp), %edi
	movq	_M64TYPE_FLOAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$4, %r8d
	leaq	L_.str.3(%rip), %rsi
	leaq	-1236(%rbp), %rcx
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_ConfigGetParameter
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cvttss2si	-1236(%rbp), %eax
	movq	_CONFIG_VERSION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-96(%rbp), %edi
	movq	_M64TYPE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-1232(%rbp), %r14               ## 8-byte Reload
	leaq	(%r14,%rbp), %rcx
	addq	$-128, %rcx
	movl	$4, %r8d
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_ConfigGetParameter
	movq	_M64ERR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-128(%rbp,%r15,8), %rax
	cmpl	$3, %eax
	jb	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_M64MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-80(%rbp), %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_E_MODE_FULL_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp,%r15,8)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -160(%rbp,%r15,8)
	movl	-96(%rbp), %edi
	movq	_M64TYPE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	(%r12,%rbp), %rcx
	addq	$-176, %rcx
	movl	$4, %r8d
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_ConfigGetParameter
	movq	_M64ERR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_M64MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	leaq	-80(%rbp), %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -176(%rbp,%r15,4)
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-96(%rbp), %edi
	movq	_M64TYPE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	-1224(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rcx
	movl	$256, %r8d                      ## imm = 0x100
	xorl	%eax, %eax
	callq	_ConfigGetParameter
	movq	_M64ERR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%rbx)
	jmp	LBB0_19
LBB0_4:
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-80(%rbp), %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
	jmp	LBB0_129
LBB0_20:
	movq	-160(%rbp), %rax
	movq	_E_MODE_MANUAL@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	movl	$0, -1204(%rbp)                 ## 4-byte Folded Spill
	cmpq	(%r15), %rax
	jne	LBB0_26
## %bb.21:
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movl	$1, -1204(%rbp)                 ## 4-byte Folded Spill
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_sprintf
	movl	-176(%rbp), %edx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_load_controller_config
	movl	-176(%rbp), %ecx
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_24
## %bb.22:
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.23:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1, -1204(%rbp)                 ## 4-byte Folded Spill
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
	jmp	LBB0_26
LBB0_24:
	movl	%ecx, -96(%rbp)
	movl	$1, %r14d
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.25:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	movl	$1, %r14d
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
	movl	$1, -1204(%rbp)                 ## 4-byte Folded Spill
LBB0_26:
	movq	-152(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_34
## %bb.27:
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_sprintf
	movl	-172(%rbp), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_load_controller_config
	movl	-172(%rbp), %ecx
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_28
## %bb.30:
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movl	$2, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_32:
	movl	%r14d, %ebx
	jmp	LBB0_33
LBB0_28:
	leal	1(%r14), %ebx
	movl	%r14d, %eax
	movl	%ecx, -96(%rbp,%rax,4)
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_33
## %bb.29:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	movl	$2, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_33:
	movl	-1204(%rbp), %eax               ## 4-byte Reload
	incl	%eax
	movl	%eax, -1204(%rbp)               ## 4-byte Spill
	movl	%ebx, %r14d
LBB0_34:
	movq	-144(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_42
## %bb.35:
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_sprintf
	movl	-168(%rbp), %edx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_load_controller_config
	movl	-168(%rbp), %ecx
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_36
## %bb.38:
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_40
## %bb.39:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movl	$3, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_40:
	movl	%r14d, %ebx
	jmp	LBB0_41
LBB0_36:
	leal	1(%r14), %ebx
	movl	%r14d, %eax
	movl	%ecx, -96(%rbp,%rax,4)
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_41
## %bb.37:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	movl	$3, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_41:
	movl	-1204(%rbp), %eax               ## 4-byte Reload
	incl	%eax
	movl	%eax, -1204(%rbp)               ## 4-byte Spill
	movl	%ebx, %r14d
LBB0_42:
	movq	-136(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_50
## %bb.43:
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_sprintf
	movl	-164(%rbp), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_load_controller_config
	movl	-164(%rbp), %ecx
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_44
## %bb.46:
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_48
## %bb.47:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_48:
	movl	%r14d, %ebx
	jmp	LBB0_49
LBB0_44:
	leal	1(%r14), %ebx
	movl	%r14d, %eax
	movl	%ecx, -96(%rbp,%rax,4)
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_49
## %bb.45:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_49:
	movl	-1204(%rbp), %eax               ## 4-byte Reload
	incl	%eax
	movl	%eax, -1204(%rbp)               ## 4-byte Spill
	movl	%ebx, %r14d
LBB0_50:
	movq	_E_MODE_NAMED_AUTO@GOTPCREL(%rip), %rcx
	leaq	-80(%rbp), %r13
	movl	$1, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_51
	.p2align	4, 0x90
LBB0_86:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	_E_MODE_FULL_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -160(%rbp,%rbx,8)
LBB0_87:                                ##   in Loop: Header=BB0_51 Depth=1
	incq	%rbx
	cmpq	$4, %rbx
	je	LBB0_88
LBB0_51:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_64 Depth 2
                                        ##       Child Loop BB0_70 Depth 3
                                        ##       Child Loop BB0_74 Depth 3
	movq	-160(%rbp,%rbx,8), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_87
## %bb.52:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	%rbx, %rax
	shlq	$8, %rax
	cmpb	$0, -1200(%rbp,%rax)
	je	LBB0_86
## %bb.53:                              ##   in Loop: Header=BB0_51 Depth=1
	leaq	(%rax,%rbp), %r15
	addq	$-1200, %r15                    ## imm = 0xFB50
	leal	1(%rbx), %eax
	movq	%r13, %rdi
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_sprintf
	movq	%r15, -1224(%rbp)               ## 8-byte Spill
	movq	%r15, %rdi
	leaq	L_.str.13(%rip), %r15
	movq	%r15, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	movq	%rbx, -1248(%rbp)               ## 8-byte Spill
	je	LBB0_57
## %bb.54:                              ##   in Loop: Header=BB0_51 Depth=1
	movl	%r13d, -1252(%rbp)              ## 4-byte Spill
	cmpl	$0, -1212(%rbp)                 ## 4-byte Folded Reload
	movq	_E_MODE_NAMED_AUTO@GOTPCREL(%rip), %rcx
	jle	LBB0_55
## %bb.63:                              ##   in Loop: Header=BB0_51 Depth=1
	movl	%r14d, %r15d
	movl	%r15d, %eax
	andl	$-8, %eax
	movq	%rax, -1232(%rbp)               ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -1280(%rbp)               ## 8-byte Spill
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -1272(%rbp)               ## 8-byte Spill
	movabsq	$4611686018427387902, %rax      ## imm = 0x3FFFFFFFFFFFFFFE
	andq	%rax, %rcx
	movq	%rcx, -1264(%rbp)               ## 8-byte Spill
	xorl	%r13d, %r13d
	movaps	LCPI0_0(%rip), %xmm6            ## xmm6 = [1,1,1,1]
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_82:                                ##   in Loop: Header=BB0_64 Depth=2
	incl	%r13d
	cmpl	-1212(%rbp), %r13d              ## 4-byte Folded Reload
	je	LBB0_83
LBB0_64:                                ##   Parent Loop BB0_51 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_70 Depth 3
                                        ##       Child Loop BB0_74 Depth 3
	testl	%r14d, %r14d
	jle	LBB0_76
## %bb.65:                              ##   in Loop: Header=BB0_64 Depth=2
	cmpl	$8, %r14d
	jae	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_64 Depth=2
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_74
	.p2align	4, 0x90
LBB0_67:                                ##   in Loop: Header=BB0_64 Depth=2
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm3                ## xmm3 = xmm0[0,0,0,0]
	cmpq	$0, -1280(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_68
## %bb.69:                              ##   in Loop: Header=BB0_64 Depth=2
	xorps	%xmm2, %xmm2
	movq	-1264(%rbp), %rcx               ## 8-byte Reload
	xorl	%eax, %eax
	xorps	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_70:                                ##   Parent Loop BB0_51 Depth=1
                                        ##     Parent Loop BB0_64 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqa	-96(%rbp,%rax,4), %xmm1
	pcmpeqd	%xmm3, %xmm1
	movdqa	-80(%rbp,%rax,4), %xmm5
	pcmpeqd	%xmm3, %xmm5
	movdqa	-64(%rbp,%rax,4), %xmm0
	pcmpeqd	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movdqa	-48(%rbp,%rax,4), %xmm1
	pcmpeqd	%xmm3, %xmm1
	por	%xmm5, %xmm1
	blendvps	%xmm0, %xmm6, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm6, %xmm4
	addq	$16, %rax
	addq	$-2, %rcx
	jne	LBB0_70
## %bb.71:                              ##   in Loop: Header=BB0_64 Depth=2
	testb	$1, -1272(%rbp)                 ## 1-byte Folded Reload
	je	LBB0_73
LBB0_72:                                ##   in Loop: Header=BB0_64 Depth=2
	movdqa	%xmm3, %xmm0
	pcmpeqd	-96(%rbp,%rax,4), %xmm0
	movdqa	-80(%rbp,%rax,4), %xmm1
	pcmpeqd	%xmm3, %xmm1
	blendvps	%xmm0, %xmm6, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm6, %xmm4
LBB0_73:                                ##   in Loop: Header=BB0_64 Depth=2
	movaps	%xmm2, %xmm0
	pcmpeqd	LCPI0_1(%rip), %xmm0
	blendvps	%xmm0, %xmm4, %xmm2
	xorl	%eax, %eax
	ptest	%xmm2, %xmm2
	setne	%al
	movq	-1232(%rbp), %rdx               ## 8-byte Reload
	movq	%rdx, %rcx
	cmpq	%r15, %rdx
	je	LBB0_75
	.p2align	4, 0x90
LBB0_74:                                ##   Parent Loop BB0_51 Depth=1
                                        ##     Parent Loop BB0_64 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r13d, -96(%rbp,%rcx,4)
	cmovel	%r12d, %eax
	incq	%rcx
	cmpq	%rcx, %r15
	jne	LBB0_74
LBB0_75:                                ##   in Loop: Header=BB0_64 Depth=2
	testl	%eax, %eax
	jne	LBB0_82
LBB0_76:                                ##   in Loop: Header=BB0_64 Depth=2
	movl	%r13d, %edi
	callq	_get_sdl_joystick_name
	movaps	LCPI0_0(%rip), %xmm6            ## xmm6 = [1,1,1,1]
	testq	%rax, %rax
	je	LBB0_82
## %bb.77:                              ##   in Loop: Header=BB0_64 Depth=2
	movq	%rax, %rbx
	movq	-1224(%rbp), %rdi               ## 8-byte Reload
	movq	%rax, %rsi
	movl	$255, %edx
	callq	_strncmp
	movaps	LCPI0_0(%rip), %xmm6            ## xmm6 = [1,1,1,1]
	testq	%rax, %rax
	jne	LBB0_82
	jmp	LBB0_78
LBB0_68:                                ##   in Loop: Header=BB0_64 Depth=2
	xorps	%xmm2, %xmm2
	xorl	%eax, %eax
	xorps	%xmm4, %xmm4
	testb	$1, -1272(%rbp)                 ## 1-byte Folded Reload
	jne	LBB0_72
	jmp	LBB0_73
LBB0_57:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rax
	movq	%r15, %rsi
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_auto_set_defaults
	movl	(%r15), %edx
	leaq	L_.str.14(%rip), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_load_controller_config
	testl	%eax, %eax
	jle	LBB0_61
## %bb.58:                              ##   in Loop: Header=BB0_51 Depth=1
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_60:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	%r15, %rdi
	leaq	-80(%rbp), %r13
	movq	%r13, %rsi
	movq	%r15, %rbx
	leaq	L_.str.13(%rip), %rdx
	callq	_auto_copy_inputconfig
	incl	-1204(%rbp)                     ## 4-byte Folded Spill
	movq	%r13, %rdi
	callq	_ConfigSaveSection
	jmp	LBB0_62
LBB0_83:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	_E_MODE_NAMED_AUTO@GOTPCREL(%rip), %rcx
	leaq	-80(%rbp), %r13
	movq	-1248(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_84
LBB0_55:                                ##   in Loop: Header=BB0_51 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_56
LBB0_61:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.16(%rip), %rsi
	xorl	%eax, %eax
	callq	_DebugMessage
	movq	%r15, %rbx
LBB0_62:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	%rbx, %rdi
	callq	_ConfigDeleteSection
	movq	-1248(%rbp), %rbx               ## 8-byte Reload
	movq	_E_MODE_NAMED_AUTO@GOTPCREL(%rip), %rcx
	leaq	-80(%rbp), %r13
	jmp	LBB0_87
LBB0_78:                                ##   in Loop: Header=BB0_51 Depth=1
	leaq	-1200(%rbp), %rax
	movq	%rax, (%rsp)
	movl	-1208(%rbp), %edi               ## 4-byte Reload
	movq	-1248(%rbp), %rsi               ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	leaq	-160(%rbp), %r8
	leaq	-128(%rbp), %r9
	callq	_setup_auto_controllers
	testl	%eax, %eax
	je	LBB0_79
## %bb.80:                              ##   in Loop: Header=BB0_51 Depth=1
	movslq	%r14d, %rcx
	movl	%r13d, -96(%rbp,%rcx,4)
	addl	%eax, -1204(%rbp)               ## 4-byte Folded Spill
	jmp	LBB0_81
LBB0_79:                                ##   in Loop: Header=BB0_51 Depth=1
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.17(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
	movslq	%r14d, %rax
	movl	%r13d, -96(%rbp,%rax,4)
LBB0_81:                                ##   in Loop: Header=BB0_51 Depth=1
	incl	%r14d
	movq	_E_MODE_NAMED_AUTO@GOTPCREL(%rip), %rcx
LBB0_56:                                ##   in Loop: Header=BB0_51 Depth=1
	cmpl	-1212(%rbp), %r13d              ## 4-byte Folded Reload
	leaq	-80(%rbp), %r13
	movq	-1248(%rbp), %rbx               ## 8-byte Reload
	jne	LBB0_87
LBB0_84:                                ##   in Loop: Header=BB0_51 Depth=1
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_86
## %bb.85:                              ##   in Loop: Header=BB0_51 Depth=1
	movq	_M64MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.18(%rip), %rsi
	movl	-1252(%rbp), %edx               ## 4-byte Reload
	movq	%rcx, %r15
	movq	-1224(%rbp), %rcx               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_DebugMessage
	movq	%r15, %rcx
	jmp	LBB0_86
LBB0_88:
	leaq	-80(%rbp), %r15
	movl	$1, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_89
LBB0_114:                               ##   in Loop: Header=BB0_89 Depth=1
	movq	%r15, %rdi
	callq	_ConfigSaveSection
	.p2align	4, 0x90
LBB0_115:                               ##   in Loop: Header=BB0_89 Depth=1
	cmpq	$4, %rbx
	je	LBB0_116
LBB0_89:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_93 Depth 2
                                        ##       Child Loop BB0_99 Depth 3
                                        ##       Child Loop BB0_103 Depth 3
	movq	-160(%rbp,%rbx,8), %rax
	movq	%rbx, -1224(%rbp)               ## 8-byte Spill
	incq	%rbx
	movq	_E_MODE_FULL_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_115
## %bb.90:                              ##   in Loop: Header=BB0_89 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, -1232(%rbp)               ## 8-byte Spill
	movl	%ebx, %edx
	callq	_sprintf
	cmpl	$0, -1212(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_91
## %bb.92:                              ##   in Loop: Header=BB0_89 Depth=1
	xorl	%r15d, %r15d
	movaps	LCPI0_0(%rip), %xmm6            ## xmm6 = [1,1,1,1]
	jmp	LBB0_93
	.p2align	4, 0x90
LBB0_105:                               ##   in Loop: Header=BB0_93 Depth=2
	movl	%r15d, %edi
	callq	_get_sdl_joystick_name
	movq	%rax, %rbx
	leaq	-1200(%rbp), %rax
	movq	%rax, (%rsp)
	movl	-1208(%rbp), %r12d              ## 4-byte Reload
	movl	%r12d, %edi
	movq	-1224(%rbp), %rsi               ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	leaq	-160(%rbp), %r8
	leaq	-128(%rbp), %r9
	callq	_setup_auto_controllers
	orl	%eax, %r12d
	movslq	%r14d, %r12
	jne	LBB0_109
## %bb.106:                             ##   in Loop: Header=BB0_93 Depth=2
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.17(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
	incl	%r14d
	movl	%r15d, -96(%rbp,%r12,4)
	movaps	LCPI0_0(%rip), %xmm6            ## xmm6 = [1,1,1,1]
LBB0_107:                               ##   in Loop: Header=BB0_93 Depth=2
	incl	%r15d
	cmpl	-1212(%rbp), %r15d              ## 4-byte Folded Reload
	je	LBB0_108
LBB0_93:                                ##   Parent Loop BB0_89 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_99 Depth 3
                                        ##       Child Loop BB0_103 Depth 3
	testl	%r14d, %r14d
	jle	LBB0_105
## %bb.94:                              ##   in Loop: Header=BB0_93 Depth=2
	movl	%r14d, %eax
	cmpl	$8, %r14d
	jae	LBB0_96
## %bb.95:                              ##   in Loop: Header=BB0_93 Depth=2
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_103
	.p2align	4, 0x90
LBB0_96:                                ##   in Loop: Header=BB0_93 Depth=2
	movl	%eax, %ecx
	andl	$-8, %ecx
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm3                ## xmm3 = xmm0[0,0,0,0]
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_97
## %bb.98:                              ##   in Loop: Header=BB0_93 Depth=2
	movq	%rdx, %rdi
	movabsq	$4611686018427387902, %rsi      ## imm = 0x3FFFFFFFFFFFFFFE
	andq	%rsi, %rdi
	xorps	%xmm2, %xmm2
	xorl	%esi, %esi
	xorps	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_99:                                ##   Parent Loop BB0_89 Depth=1
                                        ##     Parent Loop BB0_93 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movdqa	-96(%rbp,%rsi,4), %xmm1
	pcmpeqd	%xmm3, %xmm1
	movdqa	-80(%rbp,%rsi,4), %xmm5
	pcmpeqd	%xmm3, %xmm5
	movdqa	-64(%rbp,%rsi,4), %xmm0
	pcmpeqd	%xmm3, %xmm0
	por	%xmm1, %xmm0
	movdqa	-48(%rbp,%rsi,4), %xmm1
	pcmpeqd	%xmm3, %xmm1
	por	%xmm5, %xmm1
	blendvps	%xmm0, %xmm6, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm6, %xmm4
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_99
## %bb.100:                             ##   in Loop: Header=BB0_93 Depth=2
	testb	$1, %dl
	je	LBB0_102
LBB0_101:                               ##   in Loop: Header=BB0_93 Depth=2
	movdqa	%xmm3, %xmm0
	pcmpeqd	-96(%rbp,%rsi,4), %xmm0
	movdqa	-80(%rbp,%rsi,4), %xmm1
	pcmpeqd	%xmm3, %xmm1
	blendvps	%xmm0, %xmm6, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm6, %xmm4
LBB0_102:                               ##   in Loop: Header=BB0_93 Depth=2
	movaps	%xmm2, %xmm0
	pcmpeqd	LCPI0_1(%rip), %xmm0
	blendvps	%xmm0, %xmm4, %xmm2
	xorl	%edx, %edx
	ptest	%xmm2, %xmm2
	setne	%dl
	cmpq	%rax, %rcx
	je	LBB0_104
	.p2align	4, 0x90
LBB0_103:                               ##   Parent Loop BB0_89 Depth=1
                                        ##     Parent Loop BB0_93 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r15d, -96(%rbp,%rcx,4)
	cmovel	%r13d, %edx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_103
LBB0_104:                               ##   in Loop: Header=BB0_93 Depth=2
	testl	%edx, %edx
	jne	LBB0_107
	jmp	LBB0_105
LBB0_97:                                ##   in Loop: Header=BB0_93 Depth=2
	xorps	%xmm2, %xmm2
	xorl	%esi, %esi
	xorps	%xmm4, %xmm4
	testb	$1, %dl
	jne	LBB0_101
	jmp	LBB0_102
LBB0_108:                               ##   in Loop: Header=BB0_89 Depth=1
	leaq	-80(%rbp), %r15
	movq	-1232(%rbp), %rbx               ## 8-byte Reload
	jmp	LBB0_111
LBB0_91:                                ##   in Loop: Header=BB0_89 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_110
LBB0_109:                               ##   in Loop: Header=BB0_89 Depth=1
	incl	%r14d
	movl	%r15d, -96(%rbp,%r12,4)
	addl	%eax, -1204(%rbp)               ## 4-byte Folded Spill
LBB0_110:                               ##   in Loop: Header=BB0_89 Depth=1
	cmpl	-1212(%rbp), %r15d              ## 4-byte Folded Reload
	leaq	-80(%rbp), %r15
	movq	-1232(%rbp), %rbx               ## 8-byte Reload
	jne	LBB0_115
LBB0_111:                               ##   in Loop: Header=BB0_89 Depth=1
	movq	%r15, %rdi
	leaq	-1240(%rbp), %rsi
	callq	_ConfigOpenSection
	movq	_M64ERR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_115
## %bb.112:                             ##   in Loop: Header=BB0_89 Depth=1
	movl	$-1, -1256(%rbp)
	movl	-1240(%rbp), %edi
	movq	_M64TYPE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	leaq	-1256(%rbp), %rcx
	xorl	%eax, %eax
	callq	_ConfigSetParameter
	movq	-1224(%rbp), %rax               ## 8-byte Reload
	movq	-128(%rbp,%rax,8), %rax
	movq	_E_MODE_FULL_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_114
## %bb.113:                             ##   in Loop: Header=BB0_89 Depth=1
	movl	-1240(%rbp), %edi
	movq	_M64TYPE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rsi
	leaq	L_.str.5(%rip), %rcx
	xorl	%eax, %eax
	callq	_ConfigSetParameter
	jmp	LBB0_114
LBB0_116:
	movl	-1204(%rbp), %ebx               ## 4-byte Reload
	testl	%ebx, %ebx
	jne	LBB0_123
## %bb.117:
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_119
## %bb.118:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.19(%rip), %rsi
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_119:
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.13(%rip), %r14
	movq	%r14, %rsi
	callq	_auto_set_defaults
	movl	(%rbx), %edx
	leaq	L_.str.14(%rip), %rdi
	xorl	%esi, %esi
	callq	_load_controller_config
	testl	%eax, %eax
	jle	LBB0_121
## %bb.120:
	movq	-128(%rbp), %rax
	xorl	%edx, %edx
	movq	_E_MODE_FULL_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmoveq	%r14, %rdx
	leaq	L_.str.14(%rip), %rdi
	leaq	L_.str.20(%rip), %rbx
	movq	%rbx, %rsi
	callq	_auto_copy_inputconfig
	movq	%rbx, %rdi
	callq	_ConfigSaveSection
	movl	$1, %ebx
	jmp	LBB0_122
LBB0_121:
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.16(%rip), %rsi
	xorl	%eax, %eax
	callq	_DebugMessage
	xorl	%ebx, %ebx
LBB0_122:
	leaq	L_.str.14(%rip), %rdi
	callq	_ConfigDeleteSection
LBB0_123:
	movq	_controller@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	xorl	%ecx, %ecx
	cmpq	$0, (%rdx)
	movq	8(%rax), %rdx
	setne	%cl
	cmpq	$1, (%rdx)
	sbbl	$-1, %ecx
	movq	16(%rax), %rdx
	cmpq	$1, (%rdx)
	sbbl	$-1, %ecx
	movq	24(%rax), %rax
	cmpq	$1, (%rax)
	sbbl	$-1, %ecx
	cmpl	$0, -1208(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_129
## %bb.124:
	testl	%ecx, %ecx
	je	LBB0_126
## %bb.125:
	movq	_M64MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.21(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
	jmp	LBB0_129
LBB0_126:
	movq	_M64MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	je	LBB0_127
## %bb.128:
	leaq	L_.str.23(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DebugMessage
	jmp	LBB0_129
LBB0_127:
	leaq	L_.str.22(%rip), %rsi
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_129:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_131
## %bb.130:
	addq	$1256, %rsp                     ## imm = 0x4E8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_131:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_M64MSG_INFO,4,2                ## @M64MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i SDL joysticks were found."

L_.str.1:                               ## @.str.1
	.asciz	"Input-SDL-Control%i"

	.comm	_M64ERR_SUCCESS,8,3             ## @M64ERR_SUCCESS
	.comm	_M64MSG_ERROR,4,2               ## @M64MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't open config section '%s'.  Aborting..."

L_.str.3:                               ## @.str.3
	.asciz	"version"

	.comm	_M64TYPE_FLOAT,4,2              ## @M64TYPE_FLOAT
	.comm	_CONFIG_VERSION,8,3             ## @CONFIG_VERSION
	.comm	_M64MSG_WARNING,4,2             ## @M64MSG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Missing or incompatible config section '%s'. Clearing."

	.comm	_E_MODE_FULL_AUTO,8,3           ## @E_MODE_FULL_AUTO
	.comm	_DEVICE_NO_JOYSTICK,4,2         ## @DEVICE_NO_JOYSTICK
L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"mode"

	.comm	_M64TYPE_INT,4,2                ## @M64TYPE_INT
L_.str.7:                               ## @.str.7
	.asciz	"Missing or invalid 'mode' parameter in config section '%s'.  Setting to 2 (Fully Auto)"

L_.str.8:                               ## @.str.8
	.asciz	"device"

L_.str.9:                               ## @.str.9
	.asciz	"Missing 'device' parameter in config section '%s'.  Setting to -1 (No joystick)"

L_.str.10:                              ## @.str.10
	.asciz	"name"

	.comm	_M64TYPE_STRING,4,2             ## @M64TYPE_STRING
	.comm	_E_MODE_MANUAL,8,3              ## @E_MODE_MANUAL
L_.str.11:                              ## @.str.11
	.asciz	"N64 Controller #%i: Using manual config with no SDL joystick (keyboard/mouse only)"

L_.str.12:                              ## @.str.12
	.asciz	"N64 Controller #%i: Using manual config for SDL joystick %i"

	.comm	_E_MODE_NAMED_AUTO,8,3          ## @E_MODE_NAMED_AUTO
L_.str.13:                              ## @.str.13
	.asciz	"Keyboard"

L_.str.14:                              ## @.str.14
	.asciz	"AutoConfig0"

L_.str.15:                              ## @.str.15
	.asciz	"N64 Controller #%i: Using auto-config for keyboard"

L_.str.16:                              ## @.str.16
	.asciz	"Autoconfig keyboard setup invalid"

L_.str.17:                              ## @.str.17
	.asciz	"No auto-config found for joystick named '%s' in InputAutoConfig.ini"

L_.str.18:                              ## @.str.18
	.asciz	"N64 Controller #%i: No SDL joystick found matching name '%s'.  Using full auto mode."

L_.str.19:                              ## @.str.19
	.asciz	"N64 Controller #1: Forcing default keyboard configuration"

L_.str.20:                              ## @.str.20
	.asciz	"Input-SDL-Control1"

	.comm	_controller,8,3                 ## @controller
L_.str.21:                              ## @.str.21
	.asciz	"%i controller(s) found, %i plugged in and usable in the emulator"

L_.str.22:                              ## @.str.22
	.asciz	"No joysticks/controllers found"

L_.str.23:                              ## @.str.23
	.asciz	"%i controllers found, but none were 'plugged in'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_configuration             ; -- Begin function load_configuration
	.p2align	2
_load_configuration:                    ; @load_configuration
	.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, #1216
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_get_sdl_num_joysticks
	mov	x20, x0
	str	wzr, [sp, #44]
	cbnz	w19, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _M64MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M64MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DebugMessage
LBB0_2:
	mov	x24, #0
	mov	x26, #0
	mov	x25, #0
	sub	x23, x29, #224
	add	x27, sp, #48
Lloh8:
	adrp	x22, _DEVICE_NO_JOYSTICK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DEVICE_NO_JOYSTICK@GOTPAGEOFF]
Lloh10:
	adrp	x28, _M64ERR_SUCCESS@GOTPAGE
Lloh11:
	ldr	x28, [x28, _M64ERR_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh12:
	adrp	x8, _M64MSG_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M64MSG_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	sub	x8, x29, #128
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DebugMessage
	sub	x0, x29, #128
	bl	_ConfigDeleteSection
Lloh17:
	adrp	x8, _E_MODE_FULL_AUTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_MODE_FULL_AUTO@GOTPAGEOFF]
Lloh19:
	ldr	x2, [x8]
	lsl	x8, x25, #3
	sub	x9, x29, #208
	str	x2, [x9, x8]
	sub	x9, x29, #176
	str	x2, [x9, x8]
	ldr	w8, [x22]
	str	w8, [x23, x25, lsl #2]
	strb	wzr, [x27]
	mov	x0, x25
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_init_controller_config
	sub	x0, x29, #128
	bl	_ConfigSaveSection
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #4
	add	x24, x24, #8
	add	x27, x27, #256
	mov	x25, x21
	cmp	x21, #4
	b.eq	LBB0_21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_clear_controller
	add	x21, x25, #1
	sub	x0, x29, #128
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_sprintf
	sub	x0, x29, #128
	sub	x1, x29, #144
	bl	_ConfigOpenSection
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [sp, #44]
	ldr	w0, [x23, #80]
Lloh24:
	adrp	x8, _M64TYPE_FLOAT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _M64TYPE_FLOAT@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	w9, #4
	add	x8, sp, #44
	stp	x8, x9, [sp]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ConfigGetParameter
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	s0, [sp, #44]
	fcvtzs	w8, s0
Lloh29:
	adrp	x9, _CONFIG_VERSION@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CONFIG_VERSION@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23, #80]
Lloh32:
	adrp	x8, _M64TYPE_INT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _M64TYPE_INT@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	sub	x8, x29, #176
	add	x8, x8, x24
	mov	w9, #4
	stp	x8, x9, [sp]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_ConfigGetParameter
Lloh37:
	adrp	x23, _M64ERR_SUCCESS@GOTPAGE
Lloh38:
	ldr	x23, [x23, _M64ERR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x8, x29, #176
	ldr	x8, [x8, x25, lsl #3]
	cmp	w8, #3
	b.lo	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w19, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh39:
	adrp	x8, _M64MSG_WARNING@GOTPAGE
Lloh40:
	ldr	x8, [x8, _M64MSG_WARNING@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	sub	x8, x29, #128
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_DebugMessage
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh44:
	adrp	x8, _E_MODE_FULL_AUTO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _E_MODE_FULL_AUTO@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	sub	x9, x29, #176
	str	x8, [x9, x25, lsl #3]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x9, x29, #208
	str	x8, [x9, x25, lsl #3]
	sub	x22, x29, #224
	ldr	w0, [x22, #80]
	add	x8, x22, x26
Lloh47:
	adrp	x9, _M64TYPE_INT@GOTPAGE
Lloh48:
	ldr	x9, [x9, _M64TYPE_INT@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x9]
	mov	w9, #4
	stp	x8, x9, [sp]
Lloh50:
	adrp	x1, l_.str.8@PAGE
Lloh51:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_ConfigGetParameter
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w19, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh52:
	adrp	x8, _M64MSG_WARNING@GOTPAGE
Lloh53:
	ldr	x8, [x8, _M64MSG_WARNING@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	sub	x8, x29, #128
	str	x8, [sp]
Lloh55:
	adrp	x1, l_.str.9@PAGE
Lloh56:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_DebugMessage
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh57:
	adrp	x8, _DEVICE_NO_JOYSTICK@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DEVICE_NO_JOYSTICK@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	sub	x22, x29, #224
	str	w8, [x22, x25, lsl #2]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x23, x29, #224
	ldr	w0, [x22, #80]
Lloh60:
	adrp	x8, _M64TYPE_STRING@GOTPAGE
Lloh61:
	ldr	x8, [x8, _M64TYPE_STRING@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	mov	w8, #256
	stp	x27, x8, [sp]
Lloh63:
	adrp	x1, l_.str.10@PAGE
Lloh64:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_ConfigGetParameter
Lloh65:
	adrp	x8, _M64ERR_SUCCESS@GOTPAGE
Lloh66:
	ldr	x8, [x8, _M64ERR_SUCCESS@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	cmp	x0, x8
Lloh68:
	adrp	x22, _DEVICE_NO_JOYSTICK@GOTPAGE
Lloh69:
	ldr	x22, [x22, _DEVICE_NO_JOYSTICK@GOTPAGEOFF]
	b.eq	LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x27]
	b	LBB0_4
LBB0_19:
Lloh70:
	adrp	x8, _M64MSG_ERROR@GOTPAGE
Lloh71:
	ldr	x8, [x8, _M64MSG_ERROR@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	sub	x8, x29, #128
	str	x8, [sp]
Lloh73:
	adrp	x1, l_.str.2@PAGE
Lloh74:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_20:
	bl	_DebugMessage
	b	LBB0_124
LBB0_21:
	sub	x23, x29, #224
	ldr	x9, [x23, #16]
Lloh75:
	adrp	x21, _E_MODE_MANUAL@GOTPAGE
Lloh76:
	ldr	x21, [x21, _E_MODE_MANUAL@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.22:
Lloh77:
	adrp	x1, l_.str.1@PAGE
Lloh78:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #128
	mov	w2, #1
	bl	_sprintf
	ldr	w2, [x23]
	sub	x0, x29, #128
	mov	w1, #0
	bl	_load_controller_config
	ldr	w8, [x23]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.23:
	cbz	w19, LBB0_28
; %bb.24:
	mov	w25, #0
	b	LBB0_30
LBB0_25:
	mov	w25, #0
	mov	w24, #0
	b	LBB0_31
LBB0_26:
	str	w8, [x23, #80]
	cbz	w19, LBB0_29
; %bb.27:
	mov	w25, #1
	b	LBB0_30
LBB0_28:
Lloh79:
	adrp	x8, _M64MSG_INFO@GOTPAGE
Lloh80:
	ldr	x8, [x8, _M64MSG_INFO@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	mov	w8, #1
	str	x8, [sp]
Lloh82:
	adrp	x1, l_.str.11@PAGE
Lloh83:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_DebugMessage
	mov	w25, #0
	b	LBB0_30
LBB0_29:
Lloh84:
	adrp	x9, _M64MSG_INFO@GOTPAGE
Lloh85:
	ldr	x9, [x9, _M64MSG_INFO@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x9]
	mov	w25, #1
	stp	x25, x8, [sp]
Lloh87:
	adrp	x1, l_.str.12@PAGE
Lloh88:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_DebugMessage
LBB0_30:
	ldr	x8, [x21]
	mov	w24, #1
LBB0_31:
	ldr	x9, [x23, #24]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.32:
Lloh89:
	adrp	x1, l_.str.1@PAGE
Lloh90:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #128
	mov	w2, #2
	bl	_sprintf
	ldr	w2, [x23, #4]
	sub	x0, x29, #128
	mov	w1, #1
	bl	_load_controller_config
	ldr	w8, [x23, #4]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_36
; %bb.33:
	cbnz	w19, LBB0_35
; %bb.34:
Lloh91:
	adrp	x8, _M64MSG_INFO@GOTPAGE
Lloh92:
	ldr	x8, [x8, _M64MSG_INFO@GOTPAGEOFF]
Lloh93:
	ldr	w0, [x8]
	mov	w8, #2
	str	x8, [sp]
Lloh94:
	adrp	x1, l_.str.11@PAGE
Lloh95:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_DebugMessage
LBB0_35:
	mov	x22, x25
	b	LBB0_38
LBB0_36:
	add	w22, w25, #1
	sub	x9, x29, #144
	str	w8, [x9, w25, uxtw #2]
	cbnz	w19, LBB0_38
; %bb.37:
Lloh96:
	adrp	x9, _M64MSG_INFO@GOTPAGE
Lloh97:
	ldr	x9, [x9, _M64MSG_INFO@GOTPAGEOFF]
Lloh98:
	ldr	w0, [x9]
	mov	w9, #2
	stp	x9, x8, [sp]
Lloh99:
	adrp	x1, l_.str.12@PAGE
Lloh100:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_DebugMessage
LBB0_38:
	add	w24, w24, #1
	ldr	x8, [x21]
	mov	x25, x22
Lloh101:
	adrp	x22, _DEVICE_NO_JOYSTICK@GOTPAGE
Lloh102:
	ldr	x22, [x22, _DEVICE_NO_JOYSTICK@GOTPAGEOFF]
LBB0_39:
	ldr	x9, [x23, #32]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.40:
Lloh103:
	adrp	x1, l_.str.1@PAGE
Lloh104:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #128
	mov	w2, #3
	bl	_sprintf
	ldr	w2, [x23, #8]
	sub	x0, x29, #128
	mov	w1, #2
	bl	_load_controller_config
	ldr	w8, [x23, #8]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_44
; %bb.41:
	cbnz	w19, LBB0_43
; %bb.42:
Lloh105:
	adrp	x8, _M64MSG_INFO@GOTPAGE
Lloh106:
	ldr	x8, [x8, _M64MSG_INFO@GOTPAGEOFF]
Lloh107:
	ldr	w0, [x8]
	mov	w8, #3
	str	x8, [sp]
Lloh108:
	adrp	x1, l_.str.11@PAGE
Lloh109:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_DebugMessage
LBB0_43:
	mov	x22, x25
	b	LBB0_46
LBB0_44:
	add	w22, w25, #1
	sub	x9, x29, #144
	str	w8, [x9, w25, uxtw #2]
	cbnz	w19, LBB0_46
; %bb.45:
Lloh110:
	adrp	x9, _M64MSG_INFO@GOTPAGE
Lloh111:
	ldr	x9, [x9, _M64MSG_INFO@GOTPAGEOFF]
Lloh112:
	ldr	w0, [x9]
	mov	w9, #3
	stp	x9, x8, [sp]
Lloh113:
	adrp	x1, l_.str.12@PAGE
Lloh114:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_DebugMessage
LBB0_46:
	add	w24, w24, #1
	ldr	x8, [x21]
	mov	x25, x22
Lloh115:
	adrp	x22, _DEVICE_NO_JOYSTICK@GOTPAGE
Lloh116:
	ldr	x22, [x22, _DEVICE_NO_JOYSTICK@GOTPAGEOFF]
LBB0_47:
	ldr	x9, [x23, #40]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.48:
Lloh117:
	adrp	x1, l_.str.1@PAGE
Lloh118:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #128
	mov	w2, #4
	bl	_sprintf
	ldr	w2, [x23, #12]
	sub	x0, x29, #128
	mov	w1, #3
	bl	_load_controller_config
	ldr	w8, [x23, #12]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_53
; %bb.49:
	cbnz	w19, LBB0_51
; %bb.50:
Lloh119:
	adrp	x8, _M64MSG_INFO@GOTPAGE
Lloh120:
	ldr	x8, [x8, _M64MSG_INFO@GOTPAGEOFF]
Lloh121:
	ldr	w0, [x8]
	mov	w8, #4
	str	x8, [sp]
Lloh122:
	adrp	x1, l_.str.11@PAGE
Lloh123:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_DebugMessage
LBB0_51:
	mov	x21, x25
	b	LBB0_55
LBB0_52:
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_56
LBB0_53:
	add	w21, w25, #1
	sub	x9, x29, #144
	str	w8, [x9, w25, uxtw #2]
	cbnz	w19, LBB0_55
; %bb.54:
Lloh124:
	adrp	x9, _M64MSG_INFO@GOTPAGE
Lloh125:
	ldr	x9, [x9, _M64MSG_INFO@GOTPAGEOFF]
Lloh126:
	ldr	w0, [x9]
	mov	w9, #4
	stp	x9, x8, [sp]
Lloh127:
	adrp	x1, l_.str.12@PAGE
Lloh128:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_DebugMessage
LBB0_55:
	add	w24, w24, #1
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	mov	x25, x21
LBB0_56:
	mov	x22, #0
	sub	x8, x29, #144
	add	x8, x8, #32
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sub	x23, x29, #208
Lloh129:
	adrp	x24, _E_MODE_NAMED_AUTO@GOTPAGE
Lloh130:
	ldr	x24, [x24, _E_MODE_NAMED_AUTO@GOTPAGEOFF]
Lloh131:
	adrp	x28, l_.str.13@PAGE
Lloh132:
	add	x28, x28, l_.str.13@PAGEOFF
	add	x21, sp, #48
	b	LBB0_59
LBB0_57:                                ;   in Loop: Header=BB0_59 Depth=1
Lloh133:
	adrp	x8, _E_MODE_FULL_AUTO@GOTPAGE
Lloh134:
	ldr	x8, [x8, _E_MODE_FULL_AUTO@GOTPAGEOFF]
Lloh135:
	ldr	x8, [x8]
	str	x8, [x23, x22, lsl #3]
LBB0_58:                                ;   in Loop: Header=BB0_59 Depth=1
	add	x22, x22, #1
	cmp	x22, #4
	b.eq	LBB0_91
LBB0_59:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_65 Depth 2
                                        ;       Child Loop BB0_69 Depth 3
                                        ;       Child Loop BB0_72 Depth 3
	ldr	x8, [x23, x22, lsl #3]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_58
; %bb.60:                               ;   in Loop: Header=BB0_59 Depth=1
	add	x27, x21, x22, lsl #8
	ldrb	w8, [x27]
	cbz	w8, LBB0_57
; %bb.61:                               ;   in Loop: Header=BB0_59 Depth=1
	add	w26, w22, #1
	sub	x0, x29, #128
Lloh136:
	adrp	x1, l_.str.1@PAGE
Lloh137:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	bl	_sprintf
	mov	x0, x27
	mov	x1, x28
	bl	_strcasecmp
	cbz	x0, LBB0_78
; %bb.62:                               ;   in Loop: Header=BB0_59 Depth=1
	cmp	w20, #1
	b.lt	LBB0_83
; %bb.63:                               ;   in Loop: Header=BB0_59 Depth=1
	mov	w28, #0
	mov	w23, w25
	and	x24, x23, #0xfffffff0
	movi.4s	v17, #1
	b	LBB0_65
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=2
	add	w28, w28, #1
	cmp	w28, w20
	b.eq	LBB0_82
LBB0_65:                                ;   Parent Loop BB0_59 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_69 Depth 3
                                        ;       Child Loop BB0_72 Depth 3
	cmp	w25, #1
	b.lt	LBB0_74
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=2
	cmp	w25, #16
	b.hs	LBB0_68
; %bb.67:                               ;   in Loop: Header=BB0_65 Depth=2
	mov	x10, #0
	mov	w8, #0
	b	LBB0_71
LBB0_68:                                ;   in Loop: Header=BB0_65 Depth=2
	dup.4s	v1, w28
	movi.2d	v0, #0000000000000000
	mov	x8, x24
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	movi.2d	v4, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
LBB0_69:                                ;   Parent Loop BB0_59 Depth=1
                                        ;     Parent Loop BB0_65 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q5, q6, [x9, #-32]
	ldp	q7, q16, [x9], #64
	cmeq.4s	v5, v5, v1
	cmeq.4s	v6, v6, v1
	cmeq.4s	v7, v7, v1
	cmeq.4s	v16, v16, v1
	bit.16b	v0, v17, v5
	bit.16b	v4, v17, v6
	bit.16b	v3, v17, v7
	bit.16b	v2, v17, v16
	subs	x8, x8, #16
	b.ne	LBB0_69
; %bb.70:                               ;   in Loop: Header=BB0_65 Depth=2
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v4, v1
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v3, v1
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v2, v1
	cmtst.4s	v0, v0, v0
	xtn.4h	v0, v0
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v0[2]
	and	w9, w9, #0x1
	umov.h	w10, v0[3]
	bfi	w8, w9, #2, #1
	bfi	w8, w10, #3, #29
	tst	w8, #0xf
	cset	w8, ne
	mov	x10, x24
	cmp	x24, x23
	b.eq	LBB0_73
LBB0_71:                                ;   in Loop: Header=BB0_65 Depth=2
	sub	x9, x29, #144
	add	x9, x9, x10, lsl #2
	sub	x10, x23, x10
LBB0_72:                                ;   Parent Loop BB0_59 Depth=1
                                        ;     Parent Loop BB0_65 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w11, [x9], #4
	cmp	w11, w28
	csinc	w8, w8, wzr, ne
	subs	x10, x10, #1
	b.ne	LBB0_72
LBB0_73:                                ;   in Loop: Header=BB0_65 Depth=2
	cbnz	w8, LBB0_64
LBB0_74:                                ;   in Loop: Header=BB0_65 Depth=2
	mov	x0, x28
	bl	_get_sdl_joystick_name
	movi.4s	v17, #1
	cbz	x0, LBB0_64
; %bb.75:                               ;   in Loop: Header=BB0_65 Depth=2
	mov	x21, x0
	mov	x0, x27
	mov	x1, x21
	mov	w2, #255
	bl	_strncmp
	movi.4s	v17, #1
	cbnz	x0, LBB0_64
; %bb.76:                               ;   in Loop: Header=BB0_59 Depth=1
	sub	x4, x29, #208
	sub	x5, x29, #176
	add	x6, sp, #48
	mov	x0, x19
	mov	x1, x22
	mov	x2, x28
	mov	x3, x21
	bl	_setup_auto_controllers
	cbz	w0, LBB0_86
; %bb.77:                               ;   in Loop: Header=BB0_59 Depth=1
	sub	x8, x29, #144
	str	w28, [x8, w25, sxtw #2]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	w8, w0, w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_87
LBB0_78:                                ;   in Loop: Header=BB0_59 Depth=1
Lloh138:
	adrp	x21, _DEVICE_NO_JOYSTICK@GOTPAGE
Lloh139:
	ldr	x21, [x21, _DEVICE_NO_JOYSTICK@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x28
	bl	_auto_set_defaults
	ldr	w2, [x21]
Lloh140:
	adrp	x21, l_.str.14@PAGE
Lloh141:
	add	x21, x21, l_.str.14@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_load_controller_config
	cmp	w0, #1
	b.lt	LBB0_84
; %bb.79:                               ;   in Loop: Header=BB0_59 Depth=1
	cbnz	w19, LBB0_81
; %bb.80:                               ;   in Loop: Header=BB0_59 Depth=1
Lloh142:
	adrp	x8, _M64MSG_INFO@GOTPAGE
Lloh143:
	ldr	x8, [x8, _M64MSG_INFO@GOTPAGEOFF]
Lloh144:
	ldr	w0, [x8]
	str	x26, [sp]
Lloh145:
	adrp	x1, l_.str.15@PAGE
Lloh146:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_DebugMessage
LBB0_81:                                ;   in Loop: Header=BB0_59 Depth=1
	sub	x1, x29, #128
	mov	x0, x21
	mov	x2, x28
	bl	_auto_copy_inputconfig
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	w8, w8, #1
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	sub	x0, x29, #128
	bl	_ConfigSaveSection
	b	LBB0_85
LBB0_82:                                ;   in Loop: Header=BB0_59 Depth=1
	sub	x23, x29, #208
Lloh147:
	adrp	x24, _E_MODE_NAMED_AUTO@GOTPAGE
Lloh148:
	ldr	x24, [x24, _E_MODE_NAMED_AUTO@GOTPAGEOFF]
Lloh149:
	adrp	x28, l_.str.13@PAGE
Lloh150:
	add	x28, x28, l_.str.13@PAGEOFF
	add	x21, sp, #48
	b	LBB0_89
LBB0_83:                                ;   in Loop: Header=BB0_59 Depth=1
	mov	w28, #0
	b	LBB0_88
LBB0_84:                                ;   in Loop: Header=BB0_59 Depth=1
Lloh151:
	adrp	x8, _M64MSG_ERROR@GOTPAGE
Lloh152:
	ldr	x8, [x8, _M64MSG_ERROR@GOTPAGEOFF]
Lloh153:
	ldr	w0, [x8]
Lloh154:
	adrp	x1, l_.str.16@PAGE
Lloh155:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_DebugMessage
LBB0_85:                                ;   in Loop: Header=BB0_59 Depth=1
	mov	x0, x21
	bl	_ConfigDeleteSection
	add	x21, sp, #48
	b	LBB0_58
LBB0_86:                                ;   in Loop: Header=BB0_59 Depth=1
Lloh156:
	adrp	x8, _M64MSG_ERROR@GOTPAGE
Lloh157:
	ldr	x8, [x8, _M64MSG_ERROR@GOTPAGEOFF]
Lloh158:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh159:
	adrp	x1, l_.str.17@PAGE
Lloh160:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_DebugMessage
	sub	x8, x29, #144
	str	w28, [x8, w25, sxtw #2]
LBB0_87:                                ;   in Loop: Header=BB0_59 Depth=1
	sub	x23, x29, #208
Lloh161:
	adrp	x24, _E_MODE_NAMED_AUTO@GOTPAGE
Lloh162:
	ldr	x24, [x24, _E_MODE_NAMED_AUTO@GOTPAGEOFF]
	add	x21, sp, #48
	add	w25, w25, #1
LBB0_88:                                ;   in Loop: Header=BB0_59 Depth=1
	cmp	w28, w20
Lloh163:
	adrp	x28, l_.str.13@PAGE
Lloh164:
	add	x28, x28, l_.str.13@PAGEOFF
	b.ne	LBB0_58
LBB0_89:                                ;   in Loop: Header=BB0_59 Depth=1
	cbnz	w19, LBB0_57
; %bb.90:                               ;   in Loop: Header=BB0_59 Depth=1
Lloh165:
	adrp	x8, _M64MSG_WARNING@GOTPAGE
Lloh166:
	ldr	x8, [x8, _M64MSG_WARNING@GOTPAGEOFF]
Lloh167:
	ldr	w0, [x8]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	stp	x26, x27, [sp]
Lloh168:
	adrp	x1, l_.str.18@PAGE
Lloh169:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_DebugMessage
	b	LBB0_57
LBB0_91:
	mov	x22, #0
	sub	x26, x29, #144
	add	x23, x26, #32
	sub	x21, x29, #208
Lloh170:
	adrp	x24, l_.str.17@PAGE
Lloh171:
	add	x24, x24, l_.str.17@PAGEOFF
	b	LBB0_94
LBB0_92:                                ;   in Loop: Header=BB0_94 Depth=1
	sub	x0, x29, #128
	bl	_ConfigSaveSection
LBB0_93:                                ;   in Loop: Header=BB0_94 Depth=1
	cmp	x22, #4
	b.eq	LBB0_116
LBB0_94:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_100 Depth 2
                                        ;       Child Loop BB0_104 Depth 3
                                        ;       Child Loop BB0_107 Depth 3
	mov	x27, x22
	ldr	x8, [x21, x22, lsl #3]
Lloh172:
	adrp	x9, _E_MODE_FULL_AUTO@GOTPAGE
Lloh173:
	ldr	x9, [x9, _E_MODE_FULL_AUTO@GOTPAGEOFF]
Lloh174:
	ldr	x9, [x9]
	add	x22, x22, #1
	cmp	x8, x9
	b.ne	LBB0_93
; %bb.95:                               ;   in Loop: Header=BB0_94 Depth=1
	sub	x0, x29, #128
Lloh175:
	adrp	x1, l_.str.1@PAGE
Lloh176:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_sprintf
	cmp	w20, #1
	b.lt	LBB0_110
; %bb.96:                               ;   in Loop: Header=BB0_94 Depth=1
	mov	w21, #0
	movi.4s	v17, #1
	b	LBB0_100
LBB0_97:                                ;   in Loop: Header=BB0_100 Depth=2
	mov	x0, x21
	bl	_get_sdl_joystick_name
	mov	x28, x0
	sub	x4, x29, #208
	sub	x5, x29, #176
	add	x6, sp, #48
	mov	x0, x19
	mov	x1, x27
	mov	x2, x21
	mov	x3, x28
	bl	_setup_auto_controllers
	orr	w8, w19, w0
	cbnz	w8, LBB0_111
; %bb.98:                               ;   in Loop: Header=BB0_100 Depth=2
Lloh177:
	adrp	x8, _M64MSG_ERROR@GOTPAGE
Lloh178:
	ldr	x8, [x8, _M64MSG_ERROR@GOTPAGEOFF]
Lloh179:
	ldr	w0, [x8]
	str	x28, [sp]
	mov	x1, x24
	bl	_DebugMessage
	str	w21, [x26, w25, sxtw #2]
	add	w8, w25, #1
	mov	x25, x8
	movi.4s	v17, #1
LBB0_99:                                ;   in Loop: Header=BB0_100 Depth=2
	add	w21, w21, #1
	cmp	w21, w20
	b.eq	LBB0_109
LBB0_100:                               ;   Parent Loop BB0_94 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_104 Depth 3
                                        ;       Child Loop BB0_107 Depth 3
	cmp	w25, #1
	b.lt	LBB0_97
; %bb.101:                              ;   in Loop: Header=BB0_100 Depth=2
	mov	w8, w25
	cmp	w25, #16
	b.hs	LBB0_103
; %bb.102:                              ;   in Loop: Header=BB0_100 Depth=2
	mov	x9, #0
	mov	w10, #0
	b	LBB0_106
LBB0_103:                               ;   in Loop: Header=BB0_100 Depth=2
	and	x9, x8, #0xfffffff0
	dup.4s	v1, w21
	movi.2d	v0, #0000000000000000
	mov	x10, x9
	mov	x11, x23
	movi.2d	v4, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
LBB0_104:                               ;   Parent Loop BB0_94 Depth=1
                                        ;     Parent Loop BB0_100 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	cmeq.4s	v5, v5, v1
	cmeq.4s	v6, v6, v1
	cmeq.4s	v7, v7, v1
	cmeq.4s	v16, v16, v1
	bit.16b	v0, v17, v5
	bit.16b	v4, v17, v6
	bit.16b	v3, v17, v7
	bit.16b	v2, v17, v16
	subs	x10, x10, #16
	b.ne	LBB0_104
; %bb.105:                              ;   in Loop: Header=BB0_100 Depth=2
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v4, v1
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v3, v1
	cmeq.4s	v1, v0, #0
	bit.16b	v0, v2, v1
	cmtst.4s	v0, v0, v0
	xtn.4h	v0, v0
	umov.h	w10, v0[0]
	umov.h	w11, v0[1]
	and	w11, w11, #0x1
	bfi	w10, w11, #1, #1
	umov.h	w11, v0[2]
	and	w11, w11, #0x1
	bfi	w10, w11, #2, #1
	umov.h	w11, v0[3]
	bfi	w10, w11, #3, #29
	tst	w10, #0xf
	cset	w10, ne
	cmp	x9, x8
	b.eq	LBB0_108
LBB0_106:                               ;   in Loop: Header=BB0_100 Depth=2
	add	x11, x26, x9, lsl #2
	sub	x8, x8, x9
LBB0_107:                               ;   Parent Loop BB0_94 Depth=1
                                        ;     Parent Loop BB0_100 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w9, [x11], #4
	cmp	w9, w21
	csinc	w10, w10, wzr, ne
	subs	x8, x8, #1
	b.ne	LBB0_107
LBB0_108:                               ;   in Loop: Header=BB0_100 Depth=2
	cbnz	w10, LBB0_99
	b	LBB0_97
LBB0_109:                               ;   in Loop: Header=BB0_94 Depth=1
	sub	x21, x29, #208
	b	LBB0_113
LBB0_110:                               ;   in Loop: Header=BB0_94 Depth=1
	mov	w21, #0
	b	LBB0_112
LBB0_111:                               ;   in Loop: Header=BB0_94 Depth=1
	str	w21, [x26, w25, sxtw #2]
	add	w8, w25, #1
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	w9, w0, w9
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	mov	x25, x8
LBB0_112:                               ;   in Loop: Header=BB0_94 Depth=1
	cmp	w21, w20
	sub	x21, x29, #208
	b.ne	LBB0_93
LBB0_113:                               ;   in Loop: Header=BB0_94 Depth=1
	sub	x0, x29, #128
	add	x1, sp, #40
	bl	_ConfigOpenSection
Lloh180:
	adrp	x8, _M64ERR_SUCCESS@GOTPAGE
Lloh181:
	ldr	x8, [x8, _M64ERR_SUCCESS@GOTPAGEOFF]
Lloh182:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_93
; %bb.114:                              ;   in Loop: Header=BB0_94 Depth=1
	mov	w8, #-1
	str	w8, [sp, #36]
	ldr	w0, [sp, #40]
Lloh183:
	adrp	x8, _M64TYPE_INT@GOTPAGE
Lloh184:
	ldr	x8, [x8, _M64TYPE_INT@GOTPAGEOFF]
Lloh185:
	ldr	w2, [x8]
	add	x8, sp, #36
	str	x8, [sp]
Lloh186:
	adrp	x1, l_.str.8@PAGE
Lloh187:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_ConfigSetParameter
	sub	x8, x29, #176
	ldr	x8, [x8, x27, lsl #3]
Lloh188:
	adrp	x9, _E_MODE_FULL_AUTO@GOTPAGE
Lloh189:
	ldr	x9, [x9, _E_MODE_FULL_AUTO@GOTPAGEOFF]
Lloh190:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_92
; %bb.115:                              ;   in Loop: Header=BB0_94 Depth=1
	ldr	w0, [sp, #40]
Lloh191:
	adrp	x8, _M64TYPE_STRING@GOTPAGE
Lloh192:
	ldr	x8, [x8, _M64TYPE_STRING@GOTPAGEOFF]
Lloh193:
	ldr	w2, [x8]
Lloh194:
	adrp	x8, l_.str.5@PAGE
Lloh195:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp]
Lloh196:
	adrp	x1, l_.str.10@PAGE
Lloh197:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_ConfigSetParameter
	b	LBB0_92
LBB0_116:
	sub	x21, x29, #224
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	cbnz	w20, LBB0_123
; %bb.117:
	cbnz	w19, LBB0_119
; %bb.118:
Lloh198:
	adrp	x8, _M64MSG_INFO@GOTPAGE
Lloh199:
	ldr	x8, [x8, _M64MSG_INFO@GOTPAGEOFF]
Lloh200:
	ldr	w0, [x8]
Lloh201:
	adrp	x1, l_.str.19@PAGE
Lloh202:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_DebugMessage
LBB0_119:
Lloh203:
	adrp	x22, _DEVICE_NO_JOYSTICK@GOTPAGE
Lloh204:
	ldr	x22, [x22, _DEVICE_NO_JOYSTICK@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh205:
	adrp	x20, l_.str.13@PAGE
Lloh206:
	add	x20, x20, l_.str.13@PAGEOFF
	mov	x1, x20
	bl	_auto_set_defaults
	ldr	w2, [x22]
Lloh207:
	adrp	x0, l_.str.14@PAGE
Lloh208:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	w1, #0
	bl	_load_controller_config
	cmp	w0, #1
	b.lt	LBB0_121
; %bb.120:
	ldr	x8, [x21, #48]
Lloh209:
	adrp	x9, _E_MODE_FULL_AUTO@GOTPAGE
Lloh210:
	ldr	x9, [x9, _E_MODE_FULL_AUTO@GOTPAGEOFF]
Lloh211:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x2, x20, xzr, eq
Lloh212:
	adrp	x0, l_.str.14@PAGE
Lloh213:
	add	x0, x0, l_.str.14@PAGEOFF
Lloh214:
	adrp	x20, l_.str.20@PAGE
Lloh215:
	add	x20, x20, l_.str.20@PAGEOFF
	mov	x1, x20
	bl	_auto_copy_inputconfig
	mov	x0, x20
	bl	_ConfigSaveSection
	mov	w20, #1
	b	LBB0_122
LBB0_121:
Lloh216:
	adrp	x8, _M64MSG_ERROR@GOTPAGE
Lloh217:
	ldr	x8, [x8, _M64MSG_ERROR@GOTPAGEOFF]
Lloh218:
	ldr	w0, [x8]
Lloh219:
	adrp	x1, l_.str.16@PAGE
Lloh220:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_DebugMessage
	mov	w20, #0
LBB0_122:
Lloh221:
	adrp	x0, l_.str.14@PAGE
Lloh222:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_ConfigDeleteSection
LBB0_123:
Lloh223:
	adrp	x8, _controller@GOTPAGE
Lloh224:
	ldr	x8, [x8, _controller@GOTPAGEOFF]
Lloh225:
	ldr	x8, [x8]
	ldp	x9, x10, [x8]
	ldr	x9, [x9]
	ldr	x10, [x10]
	cmp	x10, #0
	cset	w10, ne
	cmp	x9, #0
	cinc	w9, w10, ne
	ldp	x10, x8, [x8, #16]
	ldr	x10, [x10]
	cmp	x10, #0
	cinc	w9, w9, ne
	ldr	x8, [x8]
	cmp	x8, #0
	cinc	w8, w9, ne
	cbz	w19, LBB0_126
LBB0_124:
	ldur	x8, [x29, #-96]
Lloh226:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh227:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh228:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_131
; %bb.125:
	add	sp, sp, #1216
	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_126:
	cbz	w8, LBB0_128
; %bb.127:
Lloh229:
	adrp	x9, _M64MSG_INFO@GOTPAGE
Lloh230:
	ldr	x9, [x9, _M64MSG_INFO@GOTPAGEOFF]
Lloh231:
	ldr	w0, [x9]
	stp	x20, x8, [sp]
Lloh232:
	adrp	x1, l_.str.21@PAGE
Lloh233:
	add	x1, x1, l_.str.21@PAGEOFF
	b	LBB0_20
LBB0_128:
Lloh234:
	adrp	x8, _M64MSG_WARNING@GOTPAGE
Lloh235:
	ldr	x8, [x8, _M64MSG_WARNING@GOTPAGEOFF]
Lloh236:
	ldr	w0, [x8]
	cbz	w20, LBB0_130
; %bb.129:
	mov	x8, x20
	str	x8, [sp]
Lloh237:
	adrp	x1, l_.str.23@PAGE
Lloh238:
	add	x1, x1, l_.str.23@PAGEOFF
	b	LBB0_20
LBB0_130:
Lloh239:
	adrp	x1, l_.str.22@PAGE
Lloh240:
	add	x1, x1, l_.str.22@PAGEOFF
	b	LBB0_20
LBB0_131:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpAdd	Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpAdd	Lloh131, Lloh132
	.loh AdrpLdrGot	Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpAdd	Lloh136, Lloh137
	.loh AdrpAdd	Lloh140, Lloh141
	.loh AdrpLdrGot	Lloh138, Lloh139
	.loh AdrpAdd	Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpAdd	Lloh149, Lloh150
	.loh AdrpLdrGot	Lloh147, Lloh148
	.loh AdrpAdd	Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpAdd	Lloh159, Lloh160
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGot	Lloh161, Lloh162
	.loh AdrpAdd	Lloh163, Lloh164
	.loh AdrpAdd	Lloh168, Lloh169
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpAdd	Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpAdd	Lloh175, Lloh176
	.loh AdrpLdrGotLdr	Lloh177, Lloh178, Lloh179
	.loh AdrpLdrGotLdr	Lloh180, Lloh181, Lloh182
	.loh AdrpLdrGotLdr	Lloh188, Lloh189, Lloh190
	.loh AdrpAdd	Lloh186, Lloh187
	.loh AdrpLdrGotLdr	Lloh183, Lloh184, Lloh185
	.loh AdrpAdd	Lloh196, Lloh197
	.loh AdrpAdd	Lloh194, Lloh195
	.loh AdrpLdrGotLdr	Lloh191, Lloh192, Lloh193
	.loh AdrpAdd	Lloh201, Lloh202
	.loh AdrpLdrGotLdr	Lloh198, Lloh199, Lloh200
	.loh AdrpAdd	Lloh207, Lloh208
	.loh AdrpAdd	Lloh205, Lloh206
	.loh AdrpLdrGot	Lloh203, Lloh204
	.loh AdrpAdd	Lloh214, Lloh215
	.loh AdrpAdd	Lloh212, Lloh213
	.loh AdrpLdrGotLdr	Lloh209, Lloh210, Lloh211
	.loh AdrpAdd	Lloh219, Lloh220
	.loh AdrpLdrGotLdr	Lloh216, Lloh217, Lloh218
	.loh AdrpAdd	Lloh221, Lloh222
	.loh AdrpLdrGotLdr	Lloh223, Lloh224, Lloh225
	.loh AdrpLdrGotLdr	Lloh226, Lloh227, Lloh228
	.loh AdrpAdd	Lloh232, Lloh233
	.loh AdrpLdrGotLdr	Lloh229, Lloh230, Lloh231
	.loh AdrpLdrGotLdr	Lloh234, Lloh235, Lloh236
	.loh AdrpAdd	Lloh237, Lloh238
	.loh AdrpAdd	Lloh239, Lloh240
	.cfi_endproc
                                        ; -- End function
	.comm	_M64MSG_INFO,4,2                ; @M64MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i SDL joysticks were found."

l_.str.1:                               ; @.str.1
	.asciz	"Input-SDL-Control%i"

	.comm	_M64ERR_SUCCESS,8,3             ; @M64ERR_SUCCESS
	.comm	_M64MSG_ERROR,4,2               ; @M64MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't open config section '%s'.  Aborting..."

l_.str.3:                               ; @.str.3
	.asciz	"version"

	.comm	_M64TYPE_FLOAT,4,2              ; @M64TYPE_FLOAT
	.comm	_CONFIG_VERSION,8,3             ; @CONFIG_VERSION
	.comm	_M64MSG_WARNING,4,2             ; @M64MSG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Missing or incompatible config section '%s'. Clearing."

	.comm	_E_MODE_FULL_AUTO,8,3           ; @E_MODE_FULL_AUTO
	.comm	_DEVICE_NO_JOYSTICK,4,2         ; @DEVICE_NO_JOYSTICK
l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"mode"

	.comm	_M64TYPE_INT,4,2                ; @M64TYPE_INT
l_.str.7:                               ; @.str.7
	.asciz	"Missing or invalid 'mode' parameter in config section '%s'.  Setting to 2 (Fully Auto)"

l_.str.8:                               ; @.str.8
	.asciz	"device"

l_.str.9:                               ; @.str.9
	.asciz	"Missing 'device' parameter in config section '%s'.  Setting to -1 (No joystick)"

l_.str.10:                              ; @.str.10
	.asciz	"name"

	.comm	_M64TYPE_STRING,4,2             ; @M64TYPE_STRING
	.comm	_E_MODE_MANUAL,8,3              ; @E_MODE_MANUAL
l_.str.11:                              ; @.str.11
	.asciz	"N64 Controller #%i: Using manual config with no SDL joystick (keyboard/mouse only)"

l_.str.12:                              ; @.str.12
	.asciz	"N64 Controller #%i: Using manual config for SDL joystick %i"

	.comm	_E_MODE_NAMED_AUTO,8,3          ; @E_MODE_NAMED_AUTO
l_.str.13:                              ; @.str.13
	.asciz	"Keyboard"

l_.str.14:                              ; @.str.14
	.asciz	"AutoConfig0"

l_.str.15:                              ; @.str.15
	.asciz	"N64 Controller #%i: Using auto-config for keyboard"

l_.str.16:                              ; @.str.16
	.asciz	"Autoconfig keyboard setup invalid"

l_.str.17:                              ; @.str.17
	.asciz	"No auto-config found for joystick named '%s' in InputAutoConfig.ini"

l_.str.18:                              ; @.str.18
	.asciz	"N64 Controller #%i: No SDL joystick found matching name '%s'.  Using full auto mode."

l_.str.19:                              ; @.str.19
	.asciz	"N64 Controller #1: Forcing default keyboard configuration"

l_.str.20:                              ; @.str.20
	.asciz	"Input-SDL-Control1"

	.comm	_controller,8,3                 ; @controller
l_.str.21:                              ; @.str.21
	.asciz	"%i controller(s) found, %i plugged in and usable in the emulator"

l_.str.22:                              ; @.str.22
	.asciz	"No joysticks/controllers found"

l_.str.23:                              ; @.str.23
	.asciz	"%i controllers found, but none were 'plugged in'"

.subsections_via_symbols
