	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handler_ir
_handler_ir:                            ## @handler_ir
	.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
	.cfi_offset %rbx, -24
	movq	_wiimod_ext_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	(%rdi), %rax
	movq	(%r8,%rax,8), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	_wiimote_devtype_mods@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	8(%rdi), %rax
	movq	(%r8,%rax,8), %rbx
	movq	_WIIMOD_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	(%rbx), %r10
	cmpq	%r8, %r10
	je	LBB0_6
## %bb.2:
	movq	_wiimod_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%r10,8), %rax
	movq	(%rax), %r11
	testq	%r11, %r11
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %r10
	addq	$8, %rbx
	cmpq	%r8, %r10
	jne	LBB0_4
LBB0_6:
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	popq	%rbx
	popq	%rbp
	jmpq	*%r11                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wiimod_ext_table,8,3           ## @wiimod_ext_table
	.comm	_wiimote_devtype_mods,8,3       ## @wiimote_devtype_mods
	.comm	_WIIMOD_NULL,8,3                ## @WIIMOD_NULL
	.comm	_wiimod_table,8,3               ## @wiimod_table
	.no_dead_strip	_handler_ir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handler_ir
_handler_ir:                            ; @handler_ir
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _wiimod_ext_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wiimod_ext_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x4, [x8]
	cbz	x4, LBB0_2
LBB0_1:
	br	x4
LBB0_2:
Lloh3:
	adrp	x8, _wiimote_devtype_mods@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wiimote_devtype_mods@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	ldr	x11, [x8, x9, lsl #3]
Lloh6:
	adrp	x8, _WIIMOD_NULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WIIMOD_NULL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x11]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.3:
Lloh9:
	adrp	x10, _wiimod_table@GOTPAGE
Lloh10:
	ldr	x10, [x10, _wiimod_table@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x11, x11, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x10, x9, lsl #3]
	ldr	x4, [x9]
	cbnz	x4, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x11], #8
	cmp	x9, x8
	b.ne	LBB0_4
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_wiimod_ext_table,8,3           ; @wiimod_ext_table
	.comm	_wiimote_devtype_mods,8,3       ; @wiimote_devtype_mods
	.comm	_WIIMOD_NULL,8,3                ; @WIIMOD_NULL
	.comm	_wiimod_table,8,3               ; @wiimod_table
	.no_dead_strip	_handler_ir
.subsections_via_symbols
