	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiimote_dev_show
_wiimote_dev_show:                      ## @wiimote_dev_show
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_dev_to_wii
	movq	%rax, %r12
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	$-129, %ebx
	addl	(%r12), %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	$5, %ebx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movabsq	$2940529703415666, %rax         ## imm = 0xA72656C6C6F72
	movq	%rax, 7(%r14)
	movabsq	$8247338242310894192, %rax      ## imm = 0x72746E6F636F7270
	movq	%rax, (%r14)
	movl	$14, %eax
	jmp	LBB0_10
LBB0_8:
	movabsq	$751669508295061109, %rax       ## imm = 0xA6E776F6E6B6E75
	jmp	LBB0_9
LBB0_7:
	movabsq	$749689261916054896, %rax       ## imm = 0xA676E69646E6570
	jmp	LBB0_9
LBB0_2:
	movabsq	$748557903122556263, %rax       ## imm = 0xA636972656E6567
LBB0_9:
	movq	%rax, (%r14)
	movb	$0, 8(%r14)
	movl	$8, %eax
	jmp	LBB0_10
LBB0_4:
	movl	$667698, 3(%r14)                ## imm = 0xA3032
	movl	$846095719, (%r14)              ## imm = 0x326E6567
	movl	$6, %eax
	jmp	LBB0_10
LBB0_3:
	movl	$667697, 3(%r14)                ## imm = 0xA3031
	movl	$829318503, (%r14)              ## imm = 0x316E6567
	movl	$6, %eax
	jmp	LBB0_10
LBB0_5:
	movabsq	$2925192190845541, %rax         ## imm = 0xA6472616F6265
	movq	%rax, 6(%r14)
	movabsq	$7090182514096759138, %rax      ## imm = 0x6265636E616C6162
	movq	%rax, (%r14)
	movl	$13, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"generic\n"

L_.str.1:                               ## @.str.1
	.asciz	"gen10\n"

L_.str.2:                               ## @.str.2
	.asciz	"gen20\n"

L_.str.3:                               ## @.str.3
	.asciz	"balanceboard\n"

L_.str.4:                               ## @.str.4
	.asciz	"procontroller\n"

L_.str.5:                               ## @.str.5
	.asciz	"pending\n"

L_.str.6:                               ## @.str.6
	.asciz	"unknown\n"

	.no_dead_strip	_wiimote_dev_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiimote_dev_show
_wiimote_dev_show:                      ; @wiimote_dev_show
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	bl	_dev_to_wii
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w20, [x20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	sub	w8, w20, #129
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, l_.str.4@PAGE
Lloh3:
	add	x8, x8, l_.str.4@PAGEOFF
	ldr	x9, [x8]
	ldur	x8, [x8, #7]
	stur	x8, [x19, #7]
	str	x9, [x19]
	mov	w0, #14
	b	LBB0_11
LBB0_3:
	strb	wzr, [x19, #8]
Lloh4:
	adrp	x8, l_.str.6@PAGE
Lloh5:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_4:
	strb	wzr, [x19, #8]
Lloh6:
	adrp	x8, l_.str.5@PAGE
Lloh7:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_6
LBB0_5:
	strb	wzr, [x19, #8]
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #8
	b	LBB0_11
LBB0_7:
	mov	w8, #12338
	movk	w8, #10, lsl #16
	stur	w8, [x19, #3]
	mov	w8, #25959
	movk	w8, #12910, lsl #16
	b	LBB0_9
LBB0_8:
	mov	w8, #12337
	movk	w8, #10, lsl #16
	stur	w8, [x19, #3]
	mov	w8, #25959
	movk	w8, #12654, lsl #16
LBB0_9:
	str	w8, [x19]
	mov	w0, #6
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, l_.str.3@PAGE
Lloh11:
	add	x8, x8, l_.str.3@PAGEOFF
	ldr	x9, [x8]
	ldur	x8, [x8, #6]
	stur	x8, [x19, #6]
	str	x9, [x19]
	mov	w0, #13
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"generic\n"

l_.str.1:                               ; @.str.1
	.asciz	"gen10\n"

l_.str.2:                               ; @.str.2
	.asciz	"gen20\n"

l_.str.3:                               ; @.str.3
	.asciz	"balanceboard\n"

l_.str.4:                               ; @.str.4
	.asciz	"procontroller\n"

l_.str.5:                               ; @.str.5
	.asciz	"pending\n"

l_.str.6:                               ; @.str.6
	.asciz	"unknown\n"

	.no_dead_strip	_wiimote_dev_show
.subsections_via_symbols
