	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kpad_name
_kpad_name:                             ## @kpad_name
	.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
	movl	%edi, %ebx
	callq	_to_wiimote_channel
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_wiimotes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_7
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_PAD_NAME_WIIMOTE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_PAD_NAME_WIIU_PRO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_PAD_NAME_NUNCHUK@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movl	%ebx, %eax
	movl	(%rcx,%rax,4), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_LOG
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_PAD_NAME_CLASSIC@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown"

	.comm	_wiimotes,8,3                   ## @wiimotes
	.comm	_PAD_NAME_WIIU_PRO,8,3          ## @PAD_NAME_WIIU_PRO
	.comm	_PAD_NAME_CLASSIC,8,3           ## @PAD_NAME_CLASSIC
	.comm	_PAD_NAME_NUNCHUK,8,3           ## @PAD_NAME_NUNCHUK
	.comm	_PAD_NAME_WIIMOTE,8,3           ## @PAD_NAME_WIIMOTE
L_.str.1:                               ## @.str.1
	.asciz	"[kpad]: Unknown pad type %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"N/A"

	.no_dead_strip	_kpad_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kpad_name
_kpad_name:                             ; @kpad_name
	.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
	bl	_to_wiimote_channel
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _wiimotes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wiimotes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8, w0, uxtw #2]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hi	LBB0_7
; %bb.2:
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh5:
	adrp	x8, _PAD_NAME_WIIMOTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAD_NAME_WIIMOTE@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh9:
	adrp	x8, _PAD_NAME_WIIU_PRO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAD_NAME_WIIU_PRO@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _PAD_NAME_NUNCHUK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAD_NAME_NUNCHUK@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	w1, [x8, w19, uxtw #2]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _PAD_NAME_CLASSIC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAD_NAME_CLASSIC@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown"

	.comm	_wiimotes,8,3                   ; @wiimotes
	.comm	_PAD_NAME_WIIU_PRO,8,3          ; @PAD_NAME_WIIU_PRO
	.comm	_PAD_NAME_CLASSIC,8,3           ; @PAD_NAME_CLASSIC
	.comm	_PAD_NAME_NUNCHUK,8,3           ; @PAD_NAME_NUNCHUK
	.comm	_PAD_NAME_WIIMOTE,8,3           ; @PAD_NAME_WIIMOTE
l_.str.1:                               ; @.str.1
	.asciz	"[kpad]: Unknown pad type %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"N/A"

	.no_dead_strip	_kpad_name
.subsections_via_symbols
