	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saitek_event
_saitek_event:                          ## @saitek_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	callq	_hid_get_drvdata
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	_EV_KEY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%r12)
	jne	LBB0_7
## %bb.2:
	movq	(%r15), %rcx
	movq	(%rcx), %r15
	movl	(%rax), %eax
	movq	_SAITEK_RELEASE_MODE_RAT7@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	8(%r12), %esi
	movq	_BTN_MOUSE@GOTPCREL(%rip), %rcx
	movl	%esi, %edx
	subl	(%rcx), %edx
	cmpl	$10, %edx
	je	LBB0_6
LBB0_4:
	movq	_SAITEK_RELEASE_MODE_MMO7@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movl	8(%r12), %esi
	movq	_BTN_MOUSE@GOTPCREL(%rip), %rax
	movl	%esi, %ecx
	subl	(%rax), %ecx
	cmpl	$15, %ecx
	jne	LBB0_7
LBB0_6:
	movl	$1, %r14d
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_input_report_key
	movl	8(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_KEY,8,3                     ## @EV_KEY
	.comm	_SAITEK_RELEASE_MODE_RAT7,4,2   ## @SAITEK_RELEASE_MODE_RAT7
	.comm	_BTN_MOUSE,4,2                  ## @BTN_MOUSE
	.comm	_SAITEK_RELEASE_MODE_MMO7,4,2   ## @SAITEK_RELEASE_MODE_MMO7
	.no_dead_strip	_saitek_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saitek_event
_saitek_event:                          ; @saitek_event
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_hid_get_drvdata
	mov	w21, #0
	cbz	x22, LBB0_8
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x20]
	ldr	x20, [x8]
	ldr	w9, [x0]
Lloh3:
	adrp	x8, _SAITEK_RELEASE_MODE_RAT7@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAITEK_RELEASE_MODE_RAT7@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
Lloh6:
	adrp	x8, _BTN_MOUSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_MOUSE@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x19, #8]
	ldr	w10, [x8]
	sub	w10, w1, w10
	cmp	w10, #10
	b.eq	LBB0_6
LBB0_4:
Lloh8:
	adrp	x10, _SAITEK_RELEASE_MODE_MMO7@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SAITEK_RELEASE_MODE_MMO7@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.5:
	ldr	w1, [x19, #8]
	ldr	w8, [x8]
	sub	w8, w1, w8
	cmp	w8, #15
	b.ne	LBB0_7
LBB0_6:
	mov	w21, #1
	mov	x0, x20
	mov	w2, #1
	bl	_input_report_key
	ldr	w1, [x19, #8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_report_key
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_KEY,8,3                     ; @EV_KEY
	.comm	_SAITEK_RELEASE_MODE_RAT7,4,2   ; @SAITEK_RELEASE_MODE_RAT7
	.comm	_BTN_MOUSE,4,2                  ; @BTN_MOUSE
	.comm	_SAITEK_RELEASE_MODE_MMO7,4,2   ; @SAITEK_RELEASE_MODE_MMO7
	.no_dead_strip	_saitek_event
.subsections_via_symbols
