	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auto_set_defaults              ## -- Begin function auto_set_defaults
	.p2align	4, 0x90
_auto_set_defaults:                     ## @auto_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edi, -160(%rbp)
	movq	$0, -152(%rbp)
	movq	_INI_FILE_NAME@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ConfigGetSharedDataFilepath
	testq	%r14, %r14
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r13
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%r13, %rdi
	callq	_ftell
	movq	%rax, %r15
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_fseek
	leaq	1(%r15), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_fread
	cmpq	%r15, %rax
	jne	LBB0_14
## %bb.6:
	movq	%r14, -192(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_fclose
	movb	$0, (%rbx,%r15)
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, %r15
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	jmp	LBB0_17
LBB0_7:
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
LBB0_8:
	xorl	%eax, %eax
	callq	_DebugMessage
	jmp	LBB0_10
LBB0_12:
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	jmp	LBB0_8
LBB0_13:
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_DebugMessage
	movq	%r13, %rdi
	callq	_fclose
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_66
## %bb.11:
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	testq	%r15, %r15
	je	LBB0_62
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
	cmpb	$0, (%r15)
	je	LBB0_62
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rbx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %r15
	incq	%r15
	movb	$0, (%rax)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r15d, %r15d
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rdi
	callq	_StripSpace
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_16
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	movb	(%r13), %al
	cmpb	$35, %al
	je	LBB0_16
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$59, %al
	je	LBB0_16
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$91, %al
	movl	%r14d, -156(%rbp)               ## 4-byte Spill
	jne	LBB0_37
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$93, -1(%rax,%r13)
	jne	LBB0_37
## %bb.26:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$1, %r14d
	je	LBB0_16
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$2, %r14d
	je	LBB0_65
## %bb.28:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, -176(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%r13)
	incq	%r13
	movq	%r13, %rdi
	callq	_StripSpace
	movq	%rax, %r15
	movq	%rax, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=1
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_StripSpace
	movq	%rax, %r15
LBB0_30:                                ##   in Loop: Header=BB0_17 Depth=1
	testq	%r15, %r15
	je	LBB0_52
## %bb.31:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, -184(%rbp)                ## 8-byte Spill
	movl	$1, %r12d
	jmp	LBB0_34
LBB0_32:                                ##   in Loop: Header=BB0_34 Depth=2
	movq	%rax, %r13
	movl	%r13d, %ebx
	subl	%r15d, %ebx
	cmpl	$63, %ebx
	movl	$63, %eax
	cmovgel	%eax, %ebx
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	movslq	%ebx, %rax
	movb	$0, -112(%rbp,%rax)
	incq	%r13
	movq	%r13, %r15
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=2
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_strcasestr
	testq	%rax, %rax
	movl	$0, %eax
	cmovel	%eax, %r12d
	testq	%r15, %r15
	movl	-156(%rbp), %r14d               ## 4-byte Reload
	je	LBB0_51
LBB0_34:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_51
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_32
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=2
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$63, %edx
	callq	_strncpy
	movb	$0, -49(%rbp)
	xorl	%r15d, %r15d
	jmp	LBB0_33
LBB0_37:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_44
## %bb.38:                              ##   in Loop: Header=BB0_17 Depth=1
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.39:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %r14
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	movq	%r13, %rdi
	callq	_StripSpace
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_StripSpace
	movq	%rax, %r15
	movq	%r13, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_48
## %bb.40:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_48
## %bb.41:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_54
## %bb.42:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_54
## %bb.43:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-152(%rbp), %rdi
	movq	_M64TYPE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	movq	%r15, %rcx
	jmp	LBB0_56
LBB0_44:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$58, -1(%rax,%r13)
	jne	LBB0_49
## %bb.45:                              ##   in Loop: Header=BB0_17 Depth=1
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.46:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_58
## %bb.47:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INI_FILE_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.14(%rip), %rsi
	movq	%r13, %rdx
	jmp	LBB0_50
LBB0_48:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	callq	_atoi
	movl	%eax, -112(%rbp)
	movq	-152(%rbp), %rdi
	movq	_M64TYPE_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_55
LBB0_49:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INI_FILE_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.15(%rip), %rsi
	movq	%r13, %rcx
LBB0_50:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%eax, %eax
	callq	_DebugMessage
	jmp	LBB0_16
LBB0_51:                                ##   in Loop: Header=BB0_17 Depth=1
	testl	%r12d, %r12d
	movq	-184(%rbp), %r12                ## 8-byte Reload
	je	LBB0_61
LBB0_52:                                ##   in Loop: Header=BB0_17 Depth=1
	leaq	-144(%rbp), %r15
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	callq	_sprintf
	movq	%r15, %rdi
	leaq	-152(%rbp), %rsi
	callq	_ConfigOpenSection
	movq	_M64ERR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_63
## %bb.53:                              ##   in Loop: Header=BB0_17 Depth=1
	incl	%r12d
	movq	-152(%rbp), %rdi
	movq	_M64TYPE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	leaq	-160(%rbp), %rcx
	xorl	%eax, %eax
	callq	_ConfigSetParameter
	movl	$1, %r14d
	movq	-176(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_16
LBB0_54:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_strcasecmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, -112(%rbp)
	movq	-152(%rbp), %rdi
	movq	_M64TYPE_BOOL@GOTPCREL(%rip), %rax
LBB0_55:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rax), %edx
	movq	%r13, %rsi
	leaq	-112(%rbp), %rcx
LBB0_56:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%eax, %eax
	callq	_ConfigSetParameter
	movq	%r14, %r15
	movl	$2, %r14d
	jmp	LBB0_16
LBB0_58:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$4, %r12d
	je	LBB0_65
## %bb.59:                              ##   in Loop: Header=BB0_17 Depth=1
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	callq	_sprintf
	movq	%r14, %rdi
	leaq	-152(%rbp), %rsi
	callq	_ConfigOpenSection
	movq	_M64ERR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_64
## %bb.60:                              ##   in Loop: Header=BB0_17 Depth=1
	incl	%r12d
	movq	-152(%rbp), %rdi
	movq	_M64TYPE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	leaq	-160(%rbp), %rcx
	xorl	%eax, %eax
	callq	_ConfigSetParameter
	movl	-156(%rbp), %r14d               ## 4-byte Reload
	jmp	LBB0_16
LBB0_61:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-176(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_16
LBB0_14:
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_DebugMessage
	movq	%r14, %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_fclose
	jmp	LBB0_10
LBB0_62:
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	xorl	%eax, %eax
	cmpl	$2, %r14d
	cmovel	%r12d, %eax
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_63:
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-144(%rbp), %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	jmp	LBB0_10
LBB0_64:
	movq	_M64MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-112(%rbp), %rdx
	xorl	%eax, %eax
	callq	_DebugMessage
LBB0_65:
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	callq	_free
	movq	%r12, %rbx
	jmp	LBB0_10
LBB0_66:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INI_FILE_NAME,8,3              ## @INI_FILE_NAME
	.comm	_M64MSG_ERROR,4,2               ## @M64MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't find config file '%s'"

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

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't open config file '%s'"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't allocate %li bytes for config file '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"File read failed for %li bytes of config file '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"OSX:"

L_.str.6:                               ## @.str.6
	.asciz	"AutoConfig%i"

	.comm	_M64ERR_SUCCESS,8,3             ## @M64ERR_SUCCESS
L_.str.7:                               ## @.str.7
	.asciz	"auto_set_defaults(): Couldn't open config section '%s'"

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

	.comm	_M64TYPE_INT,4,2                ## @M64TYPE_INT
L_.str.9:                               ## @.str.9
	.asciz	"plugin"

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

L_.str.11:                              ## @.str.11
	.asciz	"mouse"

L_.str.12:                              ## @.str.12
	.asciz	"true"

	.comm	_M64TYPE_BOOL,4,2               ## @M64TYPE_BOOL
	.comm	_M64TYPE_STRING,4,2             ## @M64TYPE_STRING
L_.str.13:                              ## @.str.13
	.asciz	"__NextController:"

L_.str.14:                              ## @.str.14
	.asciz	"Unknown keyword '%s' in %s"

L_.str.15:                              ## @.str.15
	.asciz	"Invalid line in %s: '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auto_set_defaults              ; -- Begin function auto_set_defaults
	.p2align	2
_auto_set_defaults:                     ; @auto_set_defaults
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	w0, [sp, #36]
	str	xzr, [sp, #24]
Lloh3:
	adrp	x27, _INI_FILE_NAME@GOTPAGE
Lloh4:
	ldr	x27, [x27, _INI_FILE_NAME@GOTPAGEOFF]
	ldr	x0, [x27]
	bl	_ConfigGetSharedDataFilepath
	cbz	x19, LBB0_12
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x28, _M64MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x28, [x28, _M64MSG_ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_strlen
	cmp	w0, #0
	b.le	LBB0_7
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fopen
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	bl	_fseek
	mov	x0, x21
	bl	_ftell
	mov	x22, x0
Lloh12:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	bl	_fseek
	add	x0, x22, #1
	bl	_malloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x23, x0
	mov	w1, #1
	mov	x2, x22
	mov	x3, x21
	bl	_fread
	cmp	x0, x22
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_fclose
	mov	w24, #0
	mov	w21, #0
	strb	wzr, [x23, x22]
Lloh15:
	adrp	x25, l_.str.5@PAGE
Lloh16:
	add	x25, x25, l_.str.5@PAGEOFF
	mov	x20, x23
	b	LBB0_18
LBB0_7:
	ldr	w0, [x28]
	ldr	x8, [x27]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DebugMessage
	b	LBB0_12
LBB0_8:
	ldr	w0, [x28]
	str	x20, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DebugMessage
	b	LBB0_13
LBB0_9:
	ldr	w0, [x28]
	stp	x22, x20, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DebugMessage
	b	LBB0_11
LBB0_10:
	ldr	w0, [x28]
	stp	x22, x20, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DebugMessage
	mov	x0, x23
	bl	_free
LBB0_11:
	mov	x0, x21
	bl	_fclose
LBB0_12:
	mov	w21, #0
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_63
; %bb.14:
	mov	x0, x21
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x28]
	ldr	x8, [x27]
	stp	x8, x22, [sp]
Lloh28:
	adrp	x1, l_.str.15@PAGE
Lloh29:
	add	x1, x1, l_.str.15@PAGEOFF
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	bl	_DebugMessage
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	cbz	x20, LBB0_59
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	ldrb	w8, [x20]
	cbz	w8, LBB0_59
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x22, x20
	mov	x0, x20
	mov	w1, #10
	bl	_strchr
	mov	x20, x0
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	strb	wzr, [x20], #1
LBB0_21:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	bl	_StripSpace
	mov	x22, x0
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #35
	b.eq	LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w8, #59
	b.eq	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w8, #91
	b.ne	LBB0_37
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	bl	_strlen
	add	x8, x22, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #93
	b.ne	LBB0_37
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w24, #1
	b.eq	LBB0_17
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	cmp	w24, #2
	b.eq	LBB0_62
; %bb.28:                               ;   in Loop: Header=BB0_18 Depth=1
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x22
	bl	_strlen
	add	x8, x22, w0, sxtw
	sturb	wzr, [x8, #-1]
	add	x0, x22, #1
	bl	_StripSpace
	mov	x22, x0
	mov	x1, x25
	mov	w2, #4
	bl	_strncmp
	cbnz	x0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x0, x22, #4
	bl	_StripSpace
	mov	x22, x0
LBB0_30:                                ;   in Loop: Header=BB0_18 Depth=1
	cbz	x22, LBB0_50
; %bb.31:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w25, #1
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_34 Depth=2
	mov	x26, x0
	sub	w8, w26, w22
	cmp	w8, #63
	mov	w9, #63
	csel	w23, w8, w9, lt
	add	x0, sp, #72
	mov	x1, x22
	mov	x2, x23
	bl	_strncpy
	add	x8, sp, #72
	strb	wzr, [x8, w23, sxtw]
	add	x22, x26, #1
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=2
	add	x1, sp, #72
	mov	x0, x19
	bl	_strcasestr
	cmp	x0, #0
	csel	w25, wzr, w25, eq
	cbz	x22, LBB0_49
LBB0_34:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_49
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	mov	x0, x22
	mov	w1, #32
	bl	_strchr
	cbnz	x0, LBB0_32
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=2
	add	x0, sp, #72
	mov	x1, x22
	mov	w2, #63
	bl	_strncpy
	mov	x22, #0
	strb	wzr, [sp, #135]
	b	LBB0_33
LBB0_37:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_44
; %bb.38:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	w24, LBB0_17
; %bb.39:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x26, x0
	strb	wzr, [x26], #1
	mov	x0, x22
	bl	_StripSpace
	mov	x22, x0
	mov	x0, x26
	bl	_StripSpace
	mov	x26, x0
	mov	x0, x22
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_48
; %bb.40:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_48
; %bb.41:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
Lloh34:
	adrp	x1, l_.str.10@PAGE
Lloh35:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_53
; %bb.42:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
Lloh36:
	adrp	x1, l_.str.11@PAGE
Lloh37:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_53
; %bb.43:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [sp, #24]
Lloh38:
	adrp	x8, _M64TYPE_STRING@GOTPAGE
Lloh39:
	ldr	x8, [x8, _M64TYPE_STRING@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	str	x26, [sp]
	b	LBB0_55
LBB0_44:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
	bl	_strlen
	add	x8, x22, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #58
	b.ne	LBB0_15
; %bb.45:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	w24, LBB0_17
; %bb.46:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x22
Lloh41:
	adrp	x1, l_.str.13@PAGE
Lloh42:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_56
; %bb.47:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x28]
	ldr	x8, [x27]
	stp	x22, x8, [sp]
Lloh43:
	adrp	x1, l_.str.14@PAGE
Lloh44:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_16
LBB0_48:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x26
	bl	_atoi
	str	w0, [sp, #72]
	ldr	x0, [sp, #24]
Lloh45:
	adrp	x8, _M64TYPE_INT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _M64TYPE_INT@GOTPAGEOFF]
	b	LBB0_54
LBB0_49:                                ;   in Loop: Header=BB0_18 Depth=1
	cbz	w25, LBB0_52
LBB0_50:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x0, sp, #40
Lloh47:
	adrp	x1, l_.str.6@PAGE
Lloh48:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_sprintf
	add	x0, sp, #40
	add	x1, sp, #24
	bl	_ConfigOpenSection
Lloh49:
	adrp	x8, _M64ERR_SUCCESS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _M64ERR_SUCCESS@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_60
; %bb.51:                               ;   in Loop: Header=BB0_18 Depth=1
	add	w21, w21, #1
	ldr	x0, [sp, #24]
Lloh52:
	adrp	x8, _M64TYPE_INT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _M64TYPE_INT@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	add	x8, sp, #36
	str	x8, [sp]
Lloh55:
	adrp	x1, l_.str.8@PAGE
Lloh56:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_ConfigSetParameter
	mov	w24, #1
LBB0_52:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
Lloh57:
	adrp	x25, l_.str.5@PAGE
Lloh58:
	add	x25, x25, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_53:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x26
Lloh59:
	adrp	x1, l_.str.12@PAGE
Lloh60:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_strcasecmp
	cmp	x0, #0
	cset	w8, eq
	str	w8, [sp, #72]
	ldr	x0, [sp, #24]
Lloh61:
	adrp	x8, _M64TYPE_BOOL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _M64TYPE_BOOL@GOTPAGEOFF]
LBB0_54:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w2, [x8]
	add	x8, sp, #72
	str	x8, [sp]
LBB0_55:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x1, x22
	bl	_ConfigSetParameter
	mov	w24, #2
	b	LBB0_17
LBB0_56:                                ;   in Loop: Header=BB0_18 Depth=1
	cmp	w21, #4
	b.eq	LBB0_62
; %bb.57:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x0, sp, #72
Lloh63:
	adrp	x1, l_.str.6@PAGE
Lloh64:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_sprintf
	add	x0, sp, #72
	add	x1, sp, #24
	bl	_ConfigOpenSection
Lloh65:
	adrp	x8, _M64ERR_SUCCESS@GOTPAGE
Lloh66:
	ldr	x8, [x8, _M64ERR_SUCCESS@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_61
; %bb.58:                               ;   in Loop: Header=BB0_18 Depth=1
	add	w21, w21, #1
	ldr	x0, [sp, #24]
Lloh68:
	adrp	x8, _M64TYPE_INT@GOTPAGE
Lloh69:
	ldr	x8, [x8, _M64TYPE_INT@GOTPAGEOFF]
Lloh70:
	ldr	w2, [x8]
	add	x8, sp, #36
	str	x8, [sp]
Lloh71:
	adrp	x1, l_.str.8@PAGE
Lloh72:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_ConfigSetParameter
	b	LBB0_17
LBB0_59:
	mov	x0, x23
	bl	_free
	cmp	w24, #2
	csel	w21, w21, wzr, eq
	b	LBB0_13
LBB0_60:
	ldr	w0, [x28]
	add	x8, sp, #40
	str	x8, [sp]
Lloh73:
	adrp	x1, l_.str.7@PAGE
Lloh74:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_DebugMessage
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_free
	b	LBB0_12
LBB0_61:
	ldr	w0, [x28]
	add	x8, sp, #72
	str	x8, [sp]
Lloh75:
	adrp	x1, l_.str.7@PAGE
Lloh76:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_DebugMessage
LBB0_62:
	mov	x0, x23
	bl	_free
	b	LBB0_13
LBB0_63:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_INI_FILE_NAME,8,3              ; @INI_FILE_NAME
	.comm	_M64MSG_ERROR,4,2               ; @M64MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't find config file '%s'"

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

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't open config file '%s'"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't allocate %li bytes for config file '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"File read failed for %li bytes of config file '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"OSX:"

l_.str.6:                               ; @.str.6
	.asciz	"AutoConfig%i"

	.comm	_M64ERR_SUCCESS,8,3             ; @M64ERR_SUCCESS
l_.str.7:                               ; @.str.7
	.asciz	"auto_set_defaults(): Couldn't open config section '%s'"

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

	.comm	_M64TYPE_INT,4,2                ; @M64TYPE_INT
l_.str.9:                               ; @.str.9
	.asciz	"plugin"

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

l_.str.11:                              ; @.str.11
	.asciz	"mouse"

l_.str.12:                              ; @.str.12
	.asciz	"true"

	.comm	_M64TYPE_BOOL,4,2               ; @M64TYPE_BOOL
	.comm	_M64TYPE_STRING,4,2             ; @M64TYPE_STRING
l_.str.13:                              ; @.str.13
	.asciz	"__NextController:"

l_.str.14:                              ; @.str.14
	.asciz	"Unknown keyword '%s' in %s"

l_.str.15:                              ; @.str.15
	.asciz	"Invalid line in %s: '%s'"

.subsections_via_symbols
