	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m560_raw_event
_m560_raw_event:                        ## @m560_raw_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_hid_get_drvdata
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	cmpl	$6, %ebx
	jg	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_hid_err
	xorl	%r15d, %r15d
	jmp	LBB0_27
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_hid_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_27
LBB0_4:
	movq	%rax, %r14
	movl	(%r12), %eax
	movq	_REPORT_ID_HIDPP_LONG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.5:
	movl	8(%r12), %ecx
	movq	_M560_SUB_ID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_18
## %bb.6:
	cmpl	$0, 24(%r12)
	je	LBB0_7
LBB0_18:
	movl	$1, %r15d
	cmpl	$2, %eax
	jne	LBB0_27
## %bb.19:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M560_MOUSE_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	4(%r12), %eax
	setne	%dl
	callq	_input_report_key
	movl	(%r14), %edi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M560_MOUSE_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	4(%r12), %eax
	setne	%dl
	callq	_input_report_key
	movl	4(%r12), %eax
	movq	_M560_MOUSE_BTN_WHEEL_LEFT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movl	$-120, %ebx
	movl	$-1, %edx
	jmp	LBB0_23
LBB0_21:
	movq	_M560_MOUSE_BTN_WHEEL_RIGHT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.22:
	movl	$120, %ebx
	movl	$1, %edx
LBB0_23:
	movl	(%r14), %edi
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_rel
	movl	(%r14), %edi
	movq	_REL_HWHEEL_HI_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_rel
LBB0_24:
	leaq	12(%r12), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$12, %ecx
	callq	_hid_field_extract
	movl	%eax, %edi
	movl	$12, %esi
	callq	_hid_snto32
	movl	(%r14), %edi
	movq	_REL_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_input_report_rel
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	movl	$12, %ecx
	callq	_hid_field_extract
	movl	%eax, %edi
	movl	$12, %esi
	callq	_hid_snto32
	movl	(%r14), %edi
	movq	_REL_Y@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_input_report_rel
	movl	24(%r12), %edi
	movl	$8, %esi
	callq	_hid_snto32
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	(%r14), %edi
	movq	%r14, %rsi
	addq	$4, %rsi
	movl	%eax, %edx
	callq	_hidpp_scroll_counter_handle_scroll
LBB0_26:
	movl	(%r14), %edi
	callq	_input_sync
LBB0_27:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	20(%r12), %eax
	cmpl	$174, %eax
	jg	LBB0_11
## %bb.8:
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	cmpl	$174, %eax
	jne	LBB0_3
## %bb.10:
	movq	_BTN_BACK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	cmpl	$176, %eax
	je	LBB0_15
## %bb.12:
	cmpl	$175, %eax
	jne	LBB0_3
## %bb.13:
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_16:
	movq	_BTN_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	(%r14), %edi
	movq	_BTN_FORWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	(%r14), %edi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_17
LBB0_15:
	movq	_BTN_FORWARD@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movl	$1, %edx
LBB0_17:
	callq	_input_report_key
	movl	(%r14), %edi
	callq	_input_sync
	movl	$1, %r15d
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error in parameter\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"error in report\n"

	.comm	_REPORT_ID_HIDPP_LONG,4,2       ## @REPORT_ID_HIDPP_LONG
	.comm	_M560_SUB_ID,4,2                ## @M560_SUB_ID
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_FORWARD,4,2                ## @BTN_FORWARD
	.comm	_BTN_BACK,4,2                   ## @BTN_BACK
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_M560_MOUSE_BTN_LEFT,4,2        ## @M560_MOUSE_BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_M560_MOUSE_BTN_RIGHT,4,2       ## @M560_MOUSE_BTN_RIGHT
	.comm	_M560_MOUSE_BTN_WHEEL_LEFT,4,2  ## @M560_MOUSE_BTN_WHEEL_LEFT
	.comm	_REL_HWHEEL,4,2                 ## @REL_HWHEEL
	.comm	_REL_HWHEEL_HI_RES,4,2          ## @REL_HWHEEL_HI_RES
	.comm	_M560_MOUSE_BTN_WHEEL_RIGHT,4,2 ## @M560_MOUSE_BTN_WHEEL_RIGHT
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.no_dead_strip	_m560_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m560_raw_event
_m560_raw_event:                        ; @m560_raw_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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_hid_get_drvdata
	mov	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_3
; %bb.1:
	cmp	w22, #6
	b.gt	LBB0_4
LBB0_2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_hid_err
	mov	w0, #0
	b	LBB0_17
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_4:
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _REPORT_ID_HIDPP_LONG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _REPORT_ID_HIDPP_LONG@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	w9, [x21, #8]
Lloh10:
	adrp	x10, _M560_SUB_ID@GOTPAGE
Lloh11:
	ldr	x10, [x10, _M560_SUB_ID@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.6:
	ldr	w9, [x21, #24]
	cbz	w9, LBB0_18
LBB0_7:
	cmp	w8, #2
	b.ne	LBB0_16
; %bb.8:
Lloh13:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w8, [x21, #4]
Lloh16:
	adrp	x9, _M560_MOUSE_BTN_LEFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _M560_MOUSE_BTN_LEFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, ne
	bl	_input_report_key
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w8, [x21, #4]
Lloh22:
	adrp	x9, _M560_MOUSE_BTN_RIGHT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _M560_MOUSE_BTN_RIGHT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, ne
	bl	_input_report_key
	ldr	w8, [x21, #4]
Lloh25:
	adrp	x9, _M560_MOUSE_BTN_WHEEL_LEFT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _M560_MOUSE_BTN_WHEEL_LEFT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	w22, #-120
	mov	w2, #-1
	b	LBB0_12
LBB0_10:
Lloh28:
	adrp	x9, _M560_MOUSE_BTN_WHEEL_RIGHT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _M560_MOUSE_BTN_WHEEL_RIGHT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	mov	w22, #120
	mov	w2, #1
LBB0_12:
	ldr	w0, [x19]
Lloh31:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_input_report_rel
	ldr	w0, [x19]
Lloh34:
	adrp	x8, _REL_HWHEEL_HI_RES@GOTPAGE
Lloh35:
	ldr	x8, [x8, _REL_HWHEEL_HI_RES@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_input_report_rel
LBB0_13:
	add	x22, x21, #12
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	mov	w3, #12
	bl	_hid_field_extract
	mov	w1, #12
	bl	_hid_snto32
	mov	x2, x0
	ldr	w0, [x19]
Lloh37:
	adrp	x8, _REL_X@GOTPAGE
Lloh38:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_input_report_rel
	mov	x0, x20
	mov	x1, x22
	mov	w2, #12
	mov	w3, #12
	bl	_hid_field_extract
	mov	w1, #12
	bl	_hid_snto32
	mov	x2, x0
	ldr	w0, [x19]
Lloh40:
	adrp	x8, _REL_Y@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_input_report_rel
	ldr	w0, [x21, #24]
	mov	w1, #8
	bl	_hid_snto32
	cbz	w0, LBB0_15
; %bb.14:
	mov	x2, x0
	mov	x1, x19
	ldr	w0, [x1], #4
	bl	_hidpp_scroll_counter_handle_scroll
LBB0_15:
	ldr	w0, [x19]
	bl	_input_sync
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
LBB0_18:
	ldr	w8, [x21, #20]
	cmp	w8, #174
	b.gt	LBB0_22
; %bb.19:
	cbz	w8, LBB0_25
; %bb.20:
	cmp	w8, #174
	b.ne	LBB0_2
; %bb.21:
Lloh43:
	adrp	x8, _BTN_BACK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BTN_BACK@GOTPAGEOFF]
	b	LBB0_27
LBB0_22:
	cmp	w8, #176
	b.eq	LBB0_26
; %bb.23:
	cmp	w8, #175
	b.ne	LBB0_2
; %bb.24:
Lloh45:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
	b	LBB0_27
LBB0_25:
Lloh47:
	adrp	x8, _BTN_BACK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BTN_BACK@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x19]
Lloh50:
	adrp	x8, _BTN_FORWARD@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BTN_FORWARD@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x19]
Lloh53:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	b	LBB0_15
LBB0_26:
Lloh56:
	adrp	x8, _BTN_FORWARD@GOTPAGE
Lloh57:
	ldr	x8, [x8, _BTN_FORWARD@GOTPAGEOFF]
LBB0_27:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_report_key
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error in parameter\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"error in report\n"

	.comm	_REPORT_ID_HIDPP_LONG,4,2       ; @REPORT_ID_HIDPP_LONG
	.comm	_M560_SUB_ID,4,2                ; @M560_SUB_ID
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_FORWARD,4,2                ; @BTN_FORWARD
	.comm	_BTN_BACK,4,2                   ; @BTN_BACK
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_M560_MOUSE_BTN_LEFT,4,2        ; @M560_MOUSE_BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_M560_MOUSE_BTN_RIGHT,4,2       ; @M560_MOUSE_BTN_RIGHT
	.comm	_M560_MOUSE_BTN_WHEEL_LEFT,4,2  ; @M560_MOUSE_BTN_WHEEL_LEFT
	.comm	_REL_HWHEEL,4,2                 ; @REL_HWHEEL
	.comm	_REL_HWHEEL_HI_RES,4,2          ; @REL_HWHEEL_HI_RES
	.comm	_M560_MOUSE_BTN_WHEEL_RIGHT,4,2 ; @M560_MOUSE_BTN_WHEEL_RIGHT
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.no_dead_strip	_m560_raw_event
.subsections_via_symbols
