	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function corsair_mouse_report_fixup
_corsair_mouse_report_fixup:            ## @corsair_mouse_report_fixup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_usb_interface
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_8
## %bb.1:
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.2:
	cmpl	$172, (%r15)
	jb	LBB0_8
## %bb.3:
	cmpl	$21, 300(%r14)
	jne	LBB0_8
## %bb.4:
	cmpl	$22, 308(%r14)
	jne	LBB0_8
## %bb.5:
	cmpl	$255, 312(%r14)
	jne	LBB0_8
## %bb.6:
	cmpl	$15, 316(%r14)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hid_info
	movl	$38, 308(%r14)
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fixing up report descriptor\n"

	.no_dead_strip	_corsair_mouse_report_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function corsair_mouse_report_fixup
_corsair_mouse_report_fixup:            ; @corsair_mouse_report_fixup
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_usb_interface
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #172
	b.lo	LBB0_8
; %bb.3:
	ldr	w8, [x19, #300]
	cmp	w8, #21
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x19, #308]
	cmp	w8, #22
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x19, #312]
	cmp	w8, #255
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x19, #316]
	cmp	w8, #15
	b.ne	LBB0_8
; %bb.7:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_info
	mov	w8, #38
	str	w8, [x19, #308]
LBB0_8:
	mov	x0, 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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fixing up report descriptor\n"

	.no_dead_strip	_corsair_mouse_report_fixup
.subsections_via_symbols
