	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiusb_hid_change_cb
_wiiusb_hid_change_cb:                  ## @wiiusb_hid_change_cb
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rdx
	cmpl	$0, (%rsi)
	je	LBB0_3
## %bb.4:
	movl	$0, (%rdx)
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
	retq
LBB0_3:
	movl	$1, 4(%rdx)
LBB0_5:
	movq	_USB_CLASS_HID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	_wiiusb_hid_change_cb(%rip), %rsi
	callq	_USB_DeviceChangeNotifyAsync
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_CLASS_HID,4,2              ## @USB_CLASS_HID
	.no_dead_strip	_wiiusb_hid_change_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiusb_hid_change_cb
_wiiusb_hid_change_cb:                  ; @wiiusb_hid_change_cb
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_3
; %bb.1:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_remember_state
	mov	x2, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.2:
	str	wzr, [x2]
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	w0, #-1
	ret
LBB0_4:
	.cfi_restore_state
	mov	w8, #1
	str	w8, [x2, #4]
LBB0_5:
Lloh0:
	adrp	x8, _USB_CLASS_HID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_CLASS_HID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, _wiiusb_hid_change_cb@PAGE
Lloh4:
	add	x1, x1, _wiiusb_hid_change_cb@PAGEOFF
	bl	_USB_DeviceChangeNotifyAsync
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_CLASS_HID,4,2              ; @USB_CLASS_HID
	.no_dead_strip	_wiiusb_hid_change_cb
.subsections_via_symbols
