	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiiusb_hid_process_control_message
_wiiusb_hid_process_control_message:    ## @wiiusb_hid_process_control_message
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_2
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.5:
	movq	_USB_REQTYPE_INTERFACE_SET@GOTPCREL(%rip), %r14
	movq	_USB_REQ_SETREPORT@GOTPCREL(%rip), %r15
	movq	_USB_REPTYPE_OUTPUT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	shll	$8, %ecx
	orl	$1, %ecx
	movl	4(%rbx), %eax
	movl	8(%rbx), %r9d
	movl	%eax, (%rsp)
	xorl	%r8d, %r8d
	callq	_USB_WriteCtrlMsg
	testl	%eax, %eax
	js	LBB0_6
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %edi
	movl	16(%rbx), %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	callq	_USB_WriteIntrMsg
	testl	%eax, %eax
	js	LBB0_7
	jmp	LBB0_8
LBB0_2:
	movq	_USB_REQTYPE_INTERFACE_SET@GOTPCREL(%rip), %r14
	movq	_USB_REQ_SETREPORT@GOTPCREL(%rip), %r15
	movq	_USB_REPTYPE_FEATURE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	shll	$8, %ecx
	orl	$244, %ecx
	movl	4(%rbx), %eax
	movl	8(%rbx), %r9d
	movl	%eax, (%rsp)
	xorl	%r8d, %r8d
	callq	_USB_WriteCtrlMsg
	testl	%eax, %eax
	js	LBB0_3
LBB0_8:
	movq	_WIIUSB_SC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_REQTYPE_INTERFACE_SET,4,2  ## @USB_REQTYPE_INTERFACE_SET
	.comm	_USB_REQ_SETREPORT,4,2          ## @USB_REQ_SETREPORT
	.comm	_USB_REPTYPE_FEATURE,4,2        ## @USB_REPTYPE_FEATURE
	.comm	_USB_REPTYPE_OUTPUT,4,2         ## @USB_REPTYPE_OUTPUT
	.comm	_WIIUSB_SC_NONE,4,2             ## @WIIUSB_SC_NONE
	.no_dead_strip	_wiiusb_hid_process_control_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiiusb_hid_process_control_message
_wiiusb_hid_process_control_message:    ; @wiiusb_hid_process_control_message
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x20, _USB_REQTYPE_INTERFACE_SET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _USB_REQTYPE_INTERFACE_SET@GOTPAGEOFF]
Lloh2:
	adrp	x21, _USB_REQ_SETREPORT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _USB_REQ_SETREPORT@GOTPAGEOFF]
Lloh4:
	adrp	x22, _USB_REPTYPE_OUTPUT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _USB_REPTYPE_OUTPUT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w5, w0, [x19, #8]
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w8, [x22]
	mov	w3, #1
	bfi	w3, w8, #8, #24
	ldr	w6, [x19, #4]
	mov	w4, #0
	bl	_USB_WriteCtrlMsg
	tbnz	w0, #31, LBB0_4
	b	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w0, w1, [x19, #12]
	ldp	w3, w2, [x19, #4]
	bl	_USB_WriteIntrMsg
	tbnz	w0, #31, LBB0_5
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x20, _USB_REQTYPE_INTERFACE_SET@GOTPAGE
Lloh7:
	ldr	x20, [x20, _USB_REQTYPE_INTERFACE_SET@GOTPAGEOFF]
Lloh8:
	adrp	x21, _USB_REQ_SETREPORT@GOTPAGE
Lloh9:
	ldr	x21, [x21, _USB_REQ_SETREPORT@GOTPAGEOFF]
Lloh10:
	adrp	x22, _USB_REPTYPE_FEATURE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _USB_REPTYPE_FEATURE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w5, w0, [x19, #8]
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w8, [x22]
	mov	w3, #244
	bfi	w3, w8, #8, #24
	ldr	w6, [x19, #4]
	mov	w4, #0
	bl	_USB_WriteCtrlMsg
	tbnz	w0, #31, LBB0_7
LBB0_8:
Lloh12:
	adrp	x8, _WIIUSB_SC_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WIIUSB_SC_NONE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_REQTYPE_INTERFACE_SET,4,2  ; @USB_REQTYPE_INTERFACE_SET
	.comm	_USB_REQ_SETREPORT,4,2          ; @USB_REQ_SETREPORT
	.comm	_USB_REPTYPE_FEATURE,4,2        ; @USB_REPTYPE_FEATURE
	.comm	_USB_REPTYPE_OUTPUT,4,2         ; @USB_REPTYPE_OUTPUT
	.comm	_WIIUSB_SC_NONE,4,2             ; @WIIUSB_SC_NONE
	.no_dead_strip	_wiiusb_hid_process_control_message
.subsections_via_symbols
