	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiusb_hid_removal_cb
_wiiusb_hid_removal_cb:                 ## @wiiusb_hid_removal_cb
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$-1, %eax
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	8(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.3:
	cmpq	$0, 16(%rbx)
	jne	LBB0_10
## %bb.4:
	cmpq	%rsi, %rcx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rsi, %rcx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_5:
	leaq	8(%rbx), %rax
LBB0_8:
	movq	(%rsi), %rcx
	movq	%rcx, (%rax)
LBB0_9:
	movq	%rsi, %rdi
	callq	_wiiusb_hid_release_adapter
	movl	$1, (%rbx)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wiiusb_hid_removal_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_removal_cb
_wiiusb_hid_removal_cb:                 ; @wiiusb_hid_removal_cb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x19, [x1, #8]
	cbz	x19, LBB0_4
; %bb.2:
	mov	x8, x19
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x10, [x19, #16]
	cbz	x10, LBB0_7
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, x9
	ldr	x9, [x9]
	cbz	x9, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x1
	b.ne	LBB0_6
; %bb.8:
	ldr	x9, [x1]
	str	x9, [x8]
LBB0_9:
	mov	x0, x1
	bl	_wiiusb_hid_release_adapter
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wiiusb_hid_removal_cb
.subsections_via_symbols
