	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dc_mouse_callback
_dc_mouse_callback:                     ## @dc_mouse_callback
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_maple_get_drvdata
	movq	(%rax), %r13
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movzbl	8(%rax), %ebx
	notl	%ebx
	movzwl	12(%rax), %r12d
	addl	$-512, %r12d                    ## imm = 0xFE00
	movzwl	14(%rax), %r15d
	addl	$-512, %r15d                    ## imm = 0xFE00
	movzwl	16(%rax), %r14d
	addl	$-512, %r14d                    ## imm = 0xFE00
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$4, %edx
	movq	%r13, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	andl	$9, %edx
	movq	%r13, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$2, %ebx
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_input_report_key
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_input_report_rel
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_input_report_rel
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.no_dead_strip	_dc_mouse_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dc_mouse_callback
_dc_mouse_callback:                     ; @dc_mouse_callback
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_maple_get_drvdata
	ldr	x19, [x0]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldrb	w23, [x8, #8]
	mvn	w24, w23
	ldrh	w9, [x8, #12]
	sub	w20, w9, #512
	ldrh	w9, [x8, #14]
	sub	w21, w9, #512
	ldrh	w8, [x8, #16]
	sub	w22, w8, #512
Lloh0:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	and	w2, w24, #0x4
	mov	x0, x19
	bl	_input_report_key
Lloh3:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w8, #9
	bic	w2, w8, w23
	mov	x0, x19
	bl	_input_report_key
Lloh6:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	and	w2, w24, #0x2
	mov	x0, x19
	bl	_input_report_key
Lloh9:
	adrp	x8, _REL_X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_rel
Lloh12:
	adrp	x8, _REL_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_rel
Lloh15:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_rel
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.no_dead_strip	_dc_mouse_callback
.subsections_via_symbols
