	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiusb_get_description
_wiiusb_get_description:                ## @wiiusb_get_description
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movzbl	(%rdx), %r8d
	testq	%r8, %r8
	je	LBB0_12
## %bb.1:
	movq	8(%rdx), %r9
	xorl	%r15d, %r15d
	movq	_USB_ENDPOINT_INTERRUPT@GOTPCREL(%rip), %r14
	movq	_USB_ENDPOINT_OUT@GOTPCREL(%rip), %r10
	movq	_USB_ENDPOINT_IN@GOTPCREL(%rip), %r11
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	%r8, %r15
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r15, %rax
	shlq	$4, %rax
	cmpl	$0, 8(%r9,%rax)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r9,%rax), %rax
	movq	8(%rax), %rcx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %ecx
	movq	(%rax), %rax
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	addq	$12, %rbx
	cmpq	%rbx, %r12
	je	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rbx), %ecx
	andl	$3, %ecx
	cmpl	(%r14), %ecx
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	4(%rax,%rbx), %edx
	movl	%edx, %edi
	andl	$128, %edi
	movl	(%r10), %r13d
	cmpl	(%r11), %edi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%edx, (%rsi)
	movl	8(%rax,%rbx), %ecx
	movl	%ecx, 12(%rsi)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	cmpl	%r13d, %edi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%edx, 4(%rsi)
	movl	8(%rax,%rbx), %ecx
	movl	%ecx, 8(%rsi)
	jmp	LBB0_10
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_ENDPOINT_INTERRUPT,4,2     ## @USB_ENDPOINT_INTERRUPT
	.comm	_USB_ENDPOINT_OUT,4,2           ## @USB_ENDPOINT_OUT
	.comm	_USB_ENDPOINT_IN,4,2            ## @USB_ENDPOINT_IN
	.no_dead_strip	_wiiusb_get_description
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiusb_get_description
_wiiusb_get_description:                ; @wiiusb_get_description
	.cfi_startproc
; %bb.0:
	ldrb	w8, [x2]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x9, #0
	ldr	x10, [x2, #8]
Lloh0:
	adrp	x11, _USB_ENDPOINT_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _USB_ENDPOINT_INTERRUPT@GOTPAGEOFF]
Lloh2:
	adrp	x12, _USB_ENDPOINT_OUT@GOTPAGE
Lloh3:
	ldr	x12, [x12, _USB_ENDPOINT_OUT@GOTPAGEOFF]
Lloh4:
	adrp	x13, _USB_ENDPOINT_IN@GOTPAGE
Lloh5:
	ldr	x13, [x13, _USB_ENDPOINT_IN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x14, x10, x9, lsl #4
	ldr	w14, [x14, #8]
	cbz	w14, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x14, x9, #4
	ldr	x15, [x10, x14]
	ldr	x14, [x15, #8]
	cbz	w14, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	and	x14, x14, #0xffffffff
	ldr	x15, [x15]
	add	x15, x15, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x15, x15, #12
	subs	x14, x14, #1
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w16, [x15, #-8]
	and	w16, w16, #0x3
	ldr	w17, [x11]
	cmp	w16, w17
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldur	w16, [x15, #-4]
	and	w17, w16, #0x80
	ldr	w0, [x12]
	ldr	w2, [x13]
	cmp	w17, w2
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	str	w16, [x1]
	ldr	w2, [x15]
	str	w2, [x1, #12]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w17, w0
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w17, [x15]
	stp	w16, w17, [x1, #4]
	b	LBB0_6
LBB0_12:
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_ENDPOINT_INTERRUPT,4,2     ; @USB_ENDPOINT_INTERRUPT
	.comm	_USB_ENDPOINT_OUT,4,2           ; @USB_ENDPOINT_OUT
	.comm	_USB_ENDPOINT_IN,4,2            ; @USB_ENDPOINT_IN
	.no_dead_strip	_wiiusb_get_description
.subsections_via_symbols
