	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InputCfg
_InputCfg:                              ## @InputCfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$7, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_FCFGD_GAMEPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movb	7(%rbx), %al
	decb	%al
	andb	$3, %al
	jmp	LBB0_2
LBB0_5:
	movq	_FCFGD_POWERPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movb	8(%rbx), %al
	notb	%al
	andb	$1, %al
LBB0_2:
	movzbl	%al, %esi
	jmp	LBB0_3
LBB0_7:
	movq	_FCFGD_HYPERSHOT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_FCFGD_QUIZKING@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	xorl	%esi, %esi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ConfigDevice                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gamepad"

	.comm	_FCFGD_GAMEPAD,4,2              ## @FCFGD_GAMEPAD
L_.str.1:                               ## @.str.1
	.asciz	"powerpad"

	.comm	_FCFGD_POWERPAD,4,2             ## @FCFGD_POWERPAD
L_.str.2:                               ## @.str.2
	.asciz	"hypershot"

	.comm	_FCFGD_HYPERSHOT,4,2            ## @FCFGD_HYPERSHOT
L_.str.3:                               ## @.str.3
	.asciz	"quizking"

	.comm	_FCFGD_QUIZKING,4,2             ## @FCFGD_QUIZKING
	.no_dead_strip	_InputCfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InputCfg
_InputCfg:                              ; @InputCfg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #7
	bl	_strncasecmp
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #8
	bl	_strncasecmp
	cbz	w0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_7
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_8
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x8, _FCFGD_GAMEPAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FCFGD_GAMEPAD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldrb	w8, [x19, #7]
	sub	w8, w8, #1
	and	w1, w8, #0x3
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x8, _FCFGD_POWERPAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FCFGD_POWERPAD@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldrb	w8, [x19, #8]
	mvn	w8, w8
	and	w1, w8, #0x1
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _FCFGD_HYPERSHOT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FCFGD_HYPERSHOT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _FCFGD_QUIZKING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FCFGD_QUIZKING@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	mov	w1, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ConfigDevice
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gamepad"

	.comm	_FCFGD_GAMEPAD,4,2              ; @FCFGD_GAMEPAD
l_.str.1:                               ; @.str.1
	.asciz	"powerpad"

	.comm	_FCFGD_POWERPAD,4,2             ; @FCFGD_POWERPAD
l_.str.2:                               ; @.str.2
	.asciz	"hypershot"

	.comm	_FCFGD_HYPERSHOT,4,2            ; @FCFGD_HYPERSHOT
l_.str.3:                               ; @.str.3
	.asciz	"quizking"

	.comm	_FCFGD_QUIZKING,4,2             ; @FCFGD_QUIZKING
	.no_dead_strip	_InputCfg
.subsections_via_symbols
