	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function corsair_event
_corsair_event:                         ## @corsair_event
	.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
	movq	%rdx, %rbx
	callq	_hid_get_drvdata
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_HID_USAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %ecx
	cmpl	$129, %ecx
	je	LBB0_2
## %bb.3:
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_2:
	movl	$1, %ecx
LBB0_5:
	movl	%ecx, (%rax)
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_USAGE,4,2                  ## @HID_USAGE
	.no_dead_strip	_corsair_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function corsair_event
_corsair_event:                         ; @corsair_event
	.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
	mov	x19, x2
	bl	_hid_get_drvdata
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w9, [x19]
Lloh0:
	adrp	x10, _HID_USAGE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HID_USAGE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w9, #128
	b.ne	LBB0_6
; %bb.3:
	mov	w9, #0
	b	LBB0_5
LBB0_4:
	mov	w9, #1
LBB0_5:
	str	w9, [x8]
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_USAGE,4,2                  ; @HID_USAGE
	.no_dead_strip	_corsair_event
.subsections_via_symbols
