	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidpp10_extra_mouse_buttons_raw_event
_hidpp10_extra_mouse_buttons_raw_event: ## @hidpp10_extra_mouse_buttons_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	cmpl	$7, %edx
	jl	LBB0_6
## %bb.3:
	movq	%rsi, %r14
	movl	(%rsi), %ecx
	movq	_REPORT_ID_HIDPP_SHORT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.4:
	movl	8(%r14), %ecx
	movq	_HIDPP_SUB_ID_MOUSE_EXTRA_BTNS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_6
## %bb.5:
	movq	_BTN_MOUSE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movl	12(%r14), %edx
	andl	$1, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	incq	%rsi
	movl	12(%r14), %edx
	andl	$2, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$2, %rsi
	movl	12(%r14), %edx
	andl	$4, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$3, %rsi
	movl	12(%r14), %edx
	andl	$8, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$4, %rsi
	movl	12(%r14), %edx
	andl	$16, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$5, %rsi
	movl	12(%r14), %edx
	andl	$32, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$6, %rsi
	movl	12(%r14), %edx
	andl	$64, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$7, %rsi
	movl	$128, %r15d
	movl	12(%r14), %edx
	andl	%r15d, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	_BTN_MISC@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	16(%r14), %edx
	andl	$1, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	incq	%rsi
	movl	16(%r14), %edx
	andl	$2, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$2, %rsi
	movl	16(%r14), %edx
	andl	$4, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$3, %rsi
	movl	16(%r14), %edx
	andl	$8, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$4, %rsi
	movl	16(%r14), %edx
	andl	$16, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$5, %rsi
	movl	16(%r14), %edx
	andl	$32, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$6, %rsi
	movl	16(%r14), %edx
	andl	$64, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$7, %rsi
	andl	16(%r14), %r15d
	movl	%r15d, %edx
	callq	_input_report_key
	movl	(%rbx), %edi
	callq	_input_sync
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REPORT_ID_HIDPP_SHORT,4,2      ## @REPORT_ID_HIDPP_SHORT
	.comm	_HIDPP_SUB_ID_MOUSE_EXTRA_BTNS,4,2 ## @HIDPP_SUB_ID_MOUSE_EXTRA_BTNS
	.comm	_BTN_MOUSE,8,3                  ## @BTN_MOUSE
	.comm	_BTN_MISC,8,3                   ## @BTN_MISC
	.no_dead_strip	_hidpp10_extra_mouse_buttons_raw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidpp10_extra_mouse_buttons_raw_event
_hidpp10_extra_mouse_buttons_raw_event: ; @hidpp10_extra_mouse_buttons_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	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_6
; %bb.1:
	cmp	w2, #7
	b.lt	LBB0_5
; %bb.2:
	mov	x20, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _REPORT_ID_HIDPP_SHORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REPORT_ID_HIDPP_SHORT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _HIDPP_SUB_ID_MOUSE_EXTRA_BTNS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIDPP_SUB_ID_MOUSE_EXTRA_BTNS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x21, _BTN_MOUSE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _BTN_MOUSE@GOTPAGEOFF]
	ldr	x1, [x21]
	ldr	w8, [x20, #12]
	and	w2, w8, #0x1
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #1
	ldr	w8, [x20, #12]
	and	w2, w8, #0x2
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #2
	ldr	w8, [x20, #12]
	and	w2, w8, #0x4
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #3
	ldr	w8, [x20, #12]
	and	w2, w8, #0x8
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #4
	ldr	w8, [x20, #12]
	and	w2, w8, #0x10
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #5
	ldr	w8, [x20, #12]
	and	w2, w8, #0x20
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #6
	ldr	w8, [x20, #12]
	and	w2, w8, #0x40
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #7
	ldr	w8, [x20, #12]
	and	w2, w8, #0x80
	bl	_input_report_key
	ldr	w0, [x19]
Lloh8:
	adrp	x21, _BTN_MISC@GOTPAGE
Lloh9:
	ldr	x21, [x21, _BTN_MISC@GOTPAGEOFF]
	ldr	x1, [x21]
	ldr	w8, [x20, #16]
	and	w2, w8, #0x1
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #1
	ldr	w8, [x20, #16]
	and	w2, w8, #0x2
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #2
	ldr	w8, [x20, #16]
	and	w2, w8, #0x4
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #3
	ldr	w8, [x20, #16]
	and	w2, w8, #0x8
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #4
	ldr	w8, [x20, #16]
	and	w2, w8, #0x10
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #5
	ldr	w8, [x20, #16]
	and	w2, w8, #0x20
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #6
	ldr	w8, [x20, #16]
	and	w2, w8, #0x40
	bl	_input_report_key
	ldr	w0, [x19]
	ldr	x8, [x21]
	add	x1, x8, #7
	ldr	w8, [x20, #16]
	and	w2, w8, #0x80
	bl	_input_report_key
	ldr	w0, [x19]
	bl	_input_sync
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REPORT_ID_HIDPP_SHORT,4,2      ; @REPORT_ID_HIDPP_SHORT
	.comm	_HIDPP_SUB_ID_MOUSE_EXTRA_BTNS,4,2 ; @HIDPP_SUB_ID_MOUSE_EXTRA_BTNS
	.comm	_BTN_MOUSE,8,3                  ; @BTN_MOUSE
	.comm	_BTN_MISC,8,3                   ; @BTN_MISC
	.no_dead_strip	_hidpp10_extra_mouse_buttons_raw_event
.subsections_via_symbols
