	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiu_poll_adapter
_wiiu_poll_adapter:                     ## @wiiu_poll_adapter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %r8
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	_ADAPTER_STATE_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r8)
	movl	8(%r8), %edi
	movl	(%r8), %edx
	movl	4(%r8), %esi
	movq	_wiiu_hid_read_loop_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbp
	jmp	_HIDRead                        ## TAILCALL
LBB0_1:
	movq	_ADAPTER_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADAPTER_STATE_DONE,4,2         ## @ADAPTER_STATE_DONE
	.comm	_ADAPTER_STATE_READING,4,2      ## @ADAPTER_STATE_READING
	.comm	_wiiu_hid_read_loop_callback,4,2 ## @wiiu_hid_read_loop_callback
	.no_dead_strip	_wiiu_poll_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiu_poll_adapter
_wiiu_poll_adapter:                     ; @wiiu_poll_adapter
	.cfi_startproc
; %bb.0:
	mov	x4, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ADAPTER_STATE_READING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADAPTER_STATE_READING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x4, #12]
	ldp	w1, w0, [x4, #4]
	ldr	w2, [x4]
Lloh3:
	adrp	x8, _wiiu_hid_read_loop_callback@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wiiu_hid_read_loop_callback@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	b	_HIDRead
LBB0_2:
Lloh6:
	adrp	x8, _ADAPTER_STATE_DONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADAPTER_STATE_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x4, #12]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADAPTER_STATE_DONE,4,2         ; @ADAPTER_STATE_DONE
	.comm	_ADAPTER_STATE_READING,4,2      ; @ADAPTER_STATE_READING
	.comm	_wiiu_hid_read_loop_callback,4,2 ; @wiiu_hid_read_loop_callback
	.no_dead_strip	_wiiu_poll_adapter
.subsections_via_symbols
