	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __wpad_timeouthandler
___wpad_timeouthandler:                 ## @__wpad_timeouthandler
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___wpads_active@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movq	__thread_dispatch_disable_level@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	incl	%eax
	movl	%eax, (%rcx)
	movq	_WPAD_MAX_WIIMOTES@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_9
## %bb.2:
	xorl	%ebx, %ebx
	movq	___wpdcb@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	addq	$16, %rbx
	movq	_WPAD_MAX_WIIMOTES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r15
	movq	8(%r15,%rbx), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_WIIMOTE_STATE_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_WIIMOTE_IS_SET
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15,%rbx), %rax
	incq	%rax
	movq	%rax, (%r15,%rbx)
	movq	___wpad_idletimeout@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r15,%rbx)
	movq	%r12, %rdi
	callq	_wiiuse_disconnect
	jmp	LBB0_7
LBB0_8:
	movq	__thread_dispatch_disable_level@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
LBB0_9:
	decl	%eax
	movl	%eax, (%rcx)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___wpads_active,4,2             ## @__wpads_active
	.comm	__thread_dispatch_disable_level,4,2 ## @_thread_dispatch_disable_level
	.comm	_WPAD_MAX_WIIMOTES,8,3          ## @WPAD_MAX_WIIMOTES
	.comm	___wpdcb,8,3                    ## @__wpdcb
	.comm	_WIIMOTE_STATE_CONNECTED,4,2    ## @WIIMOTE_STATE_CONNECTED
	.comm	___wpad_idletimeout,8,3         ## @__wpad_idletimeout
	.no_dead_strip	___wpad_timeouthandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __wpad_timeouthandler
___wpad_timeouthandler:                 ; @__wpad_timeouthandler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___wpads_active@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___wpads_active@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.1:
Lloh3:
	adrp	x20, __thread_dispatch_disable_level@GOTPAGE
Lloh4:
	ldr	x20, [x20, __thread_dispatch_disable_level@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh5:
	adrp	x21, _WPAD_MAX_WIIMOTES@GOTPAGE
Lloh6:
	ldr	x21, [x21, _WPAD_MAX_WIIMOTES@GOTPAGEOFF]
	ldr	x9, [x21]
	cbz	x9, LBB0_9
; %bb.2:
	mov	x22, #0
	mov	x23, #0
Lloh7:
	adrp	x24, ___wpdcb@GOTPAGE
Lloh8:
	ldr	x24, [x24, ___wpdcb@GOTPAGEOFF]
Lloh9:
	adrp	x25, _WIIMOTE_STATE_CONNECTED@GOTPAGE
Lloh10:
	ldr	x25, [x25, _WIIMOTE_STATE_CONNECTED@GOTPAGEOFF]
Lloh11:
	adrp	x26, ___wpad_idletimeout@GOTPAGE
Lloh12:
	ldr	x26, [x26, ___wpad_idletimeout@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	x8, [x21]
	add	x22, x22, #16
	cmp	x23, x8
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x24]
	add	x8, x27, x22
	ldr	x19, [x8, #8]
	cbz	x19, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_WIIMOTE_IS_SET
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x27, x22]
	add	x8, x8, #1
	str	x8, [x27, x22]
	ldr	x9, [x26]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x27, x22]
	mov	x0, x19
	bl	_wiiuse_disconnect
	b	LBB0_3
LBB0_8:
	ldr	w8, [x20]
LBB0_9:
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	___wpads_active,4,2             ; @__wpads_active
	.comm	__thread_dispatch_disable_level,4,2 ; @_thread_dispatch_disable_level
	.comm	_WPAD_MAX_WIIMOTES,8,3          ; @WPAD_MAX_WIIMOTES
	.comm	___wpdcb,8,3                    ; @__wpdcb
	.comm	_WIIMOTE_STATE_CONNECTED,4,2    ; @WIIMOTE_STATE_CONNECTED
	.comm	___wpad_idletimeout,8,3         ; @__wpad_idletimeout
	.no_dead_strip	___wpad_timeouthandler
.subsections_via_symbols
