	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function retrode_input_configured
_retrode_input_configured:              ## @retrode_input_configured
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %r9d
	leal	-1(%r9), %eax
	cmpl	$2, %eax
	jb	LBB0_1
## %bb.2:
	leal	-3(%r9), %eax
	cmpl	$2, %eax
	jae	LBB0_3
## %bb.5:
	addl	$-2, %r9d
	leaq	L_.str.2(%rip), %r8
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %r8
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CONTROLLER_NAME_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_devm_kasprintf
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	testl	%r9d, %r9d
	jne	LBB0_7
## %bb.4:
	leaq	L_.str(%rip), %r8
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r9d, %edx
	callq	_hid_err
	leaq	L_.str.4(%rip), %r8
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CONTROLLER_NAME_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devm_kasprintf
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SNES Mouse"

L_.str.1:                               ## @.str.1
	.asciz	"SNES / N64"

L_.str.2:                               ## @.str.2
	.asciz	"Mega Drive"

L_.str.3:                               ## @.str.3
	.asciz	"Got unhandled report id %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.5:                               ## @.str.5
	.asciz	"%s %s #%d"

	.comm	_CONTROLLER_NAME_BASE,4,2       ## @CONTROLLER_NAME_BASE
L_.str.6:                               ## @.str.6
	.asciz	"%s %s"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_retrode_input_configured
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function retrode_input_configured
_retrode_input_configured:              ; @retrode_input_configured
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	sub	w8, w2, #1
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w2, #3
	cmp	w8, #2
	b.hs	LBB0_6
; %bb.2:
	sub	w2, w2, #2
Lloh0:
	adrp	x4, l_.str.2@PAGE
Lloh1:
	add	x4, x4, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
LBB0_4:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _CONTROLLER_NAME_BASE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CONTROLLER_NAME_BASE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x8, l_.str.5@PAGE
Lloh11:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x2, [sp]
	mov	x0, x20
	mov	x2, x8
	bl	_devm_kasprintf
	cbz	x0, LBB0_10
LBB0_5:
	mov	w8, #0
	ldr	x9, [x19]
	str	x0, [x9]
	b	LBB0_11
LBB0_6:
	cbnz	w2, LBB0_8
; %bb.7:
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_hid_err
Lloh16:
	adrp	x4, l_.str.4@PAGE
Lloh17:
	add	x4, x4, l_.str.4@PAGEOFF
LBB0_9:
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _CONTROLLER_NAME_BASE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONTROLLER_NAME_BASE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x2, l_.str.6@PAGE
Lloh25:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_devm_kasprintf
	cbnz	x0, LBB0_5
LBB0_10:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_11:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SNES Mouse"

l_.str.1:                               ; @.str.1
	.asciz	"SNES / N64"

l_.str.2:                               ; @.str.2
	.asciz	"Mega Drive"

l_.str.3:                               ; @.str.3
	.asciz	"Got unhandled report id %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.5:                               ; @.str.5
	.asciz	"%s %s #%d"

	.comm	_CONTROLLER_NAME_BASE,4,2       ; @CONTROLLER_NAME_BASE
l_.str.6:                               ; @.str.6
	.asciz	"%s %s"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_retrode_input_configured
.subsections_via_symbols
