	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psmouse_process_byte           ## -- Begin function psmouse_process_byte
	.p2align	4, 0x90
_psmouse_process_byte:                  ## @psmouse_process_byte
	.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	8(%rdi), %rax
	cmpq	16(%rdi), %rax
	jge	LBB0_2
## %bb.1:
	movq	_PSMOUSE_GOOD_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movq	(%rdi), %r15
	movq	32(%rdi), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_18
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	movq	_BTN_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %r13d
	movl	$3, %edi
	callq	_BIT
	andl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_input_report_key
	movl	(%r15), %eax
	andl	$64, %eax
	addl	%eax, %eax
	orl	%eax, 4(%r15)
	jmp	LBB0_18
LBB0_5:
	movl	12(%r15), %edi
	movl	%edi, %eax
	shrl	$6, %eax
	andl	$3, %eax
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movl	$3, %esi
	callq	_sign_extend32
	movq	_psmouse_a4tech_2wheels@GOTPCREL(%rip), %rsi
	movl	%eax, %edx
	negl	%edx
	movl	%eax, %ecx
	cmovnsl	%edx, %ecx
	cmpl	$0, (%rsi)
	je	LBB0_12
## %bb.10:
	cmpl	$2, %ecx
	jb	LBB0_12
## %bb.11:
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	jmp	LBB0_13
LBB0_17:
	movq	_BTN_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %r13d
	movl	$3, %edi
	callq	_BIT
	andl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_input_report_key
	movl	$3, %edi
	callq	_BIT
	orl	%eax, (%r15)
	jmp	LBB0_18
LBB0_4:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	subl	12(%r15), %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	jmp	LBB0_18
LBB0_15:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	subl	12(%r15), %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_BTN_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %r13d
	movl	$6, %edi
	callq	_BIT
	andl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_input_report_key
	movq	_BTN_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %r13d
	movl	$7, %edi
	jmp	LBB0_14
LBB0_8:
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r12d
	movl	$5, %esi
	callq	_sign_extend32
	negl	%eax
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_input_report_rel
	jmp	LBB0_18
LBB0_12:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_13:
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_BTN_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	12(%r15), %r13d
	movl	$4, %edi
	callq	_BIT
	andl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_input_report_key
	movq	_BTN_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	12(%r15), %r13d
	movl	$5, %edi
LBB0_14:
	callq	_BIT
	andl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_input_report_key
LBB0_18:
	movl	24(%rbx), %eax
	orl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_psmouse_report_standard_packet
	movq	%r14, %rdi
	callq	_input_sync
	movq	_PSMOUSE_FULL_PACKET@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_17
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_6, LBB0_6-LJTI0_1
LJTI0_1:
	.long	L0_1_set_9
	.long	L0_1_set_8
	.long	L0_1_set_6
	.long	L0_1_set_9
	.end_data_region
                                        ## -- End function
	.comm	_PSMOUSE_GOOD_DATA,4,2          ## @PSMOUSE_GOOD_DATA
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_REL_HWHEEL,4,2                 ## @REL_HWHEEL
	.comm	_psmouse_a4tech_2wheels,4,2     ## @psmouse_a4tech_2wheels
	.comm	_BTN_SIDE,4,2                   ## @BTN_SIDE
	.comm	_BTN_EXTRA,4,2                  ## @BTN_EXTRA
	.comm	_PSMOUSE_FULL_PACKET,4,2        ## @PSMOUSE_FULL_PACKET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psmouse_process_byte           ; -- Begin function psmouse_process_byte
	.p2align	2
_psmouse_process_byte:                  ; @psmouse_process_byte
	.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
	ldp	x8, x9, [x0, #8]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PSMOUSE_GOOD_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSMOUSE_GOOD_DATA@GOTPAGEOFF]
	b	LBB0_18
LBB0_2:
	mov	x20, x0
	ldr	x21, [x0]
	ldp	x8, x19, [x0, #32]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_17
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh4:
	adrp	x8, _BTN_EXTRA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BTN_EXTRA@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	ldr	w23, [x21]
	mov	w0, #3
	bl	_BIT
	and	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	bl	_input_report_key
	ldp	w8, w9, [x21]
	lsl	w8, w8, #1
	and	w8, w8, #0x80
	orr	w8, w8, w9
	str	w8, [x21, #4]
	b	LBB0_17
LBB0_5:
	ldr	w0, [x21, #12]
	ubfx	w8, w0, #6, #2
Lloh7:
	adrp	x9, lJTI0_1@PAGE
Lloh8:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	w1, #3
	bl	_sign_extend32
Lloh9:
	adrp	x8, _psmouse_a4tech_2wheels@GOTPAGE
Lloh10:
	ldr	x8, [x8, _psmouse_a4tech_2wheels@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	cneg	w9, w0, mi
	cmp	w8, #0
	ccmp	w9, #2, #0, ne
	b.hs	LBB0_14
; %bb.7:
Lloh12:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	neg	w2, w0
	b	LBB0_15
LBB0_8:
Lloh15:
	adrp	x8, _BTN_SIDE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_SIDE@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	ldr	w23, [x21]
	mov	w0, #3
	bl	_BIT
	and	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	bl	_input_report_key
	mov	w0, #3
	bl	_BIT
	ldr	w8, [x21]
	orr	w8, w8, w0
	str	w8, [x21]
	b	LBB0_17
LBB0_9:
Lloh18:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [x21, #12]
	neg	w2, w8
	mov	x0, x19
	bl	_input_report_rel
	b	LBB0_17
LBB0_10:
Lloh21:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x21, #12]
	neg	w2, w8
	mov	x0, x19
	bl	_input_report_rel
Lloh24:
	adrp	x8, _BTN_SIDE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_SIDE@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
	ldr	w23, [x21]
	mov	w0, #6
	bl	_BIT
	and	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	bl	_input_report_key
Lloh27:
	adrp	x8, _BTN_EXTRA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTN_EXTRA@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	ldr	w23, [x21]
	mov	w0, #7
	b	LBB0_16
LBB0_11:
Lloh30:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh32:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
LBB0_13:
	ldr	w22, [x8]
	mov	w1, #5
	bl	_sign_extend32
	neg	w2, w0
	mov	x0, x19
	mov	x1, x22
	bl	_input_report_rel
	b	LBB0_17
LBB0_14:
Lloh34:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w2, w8, #1
LBB0_15:
	mov	x0, x19
	bl	_input_report_rel
Lloh37:
	adrp	x8, _BTN_SIDE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BTN_SIDE@GOTPAGEOFF]
Lloh39:
	ldr	w22, [x8]
	ldr	w23, [x21, #12]
	mov	w0, #4
	bl	_BIT
	and	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	bl	_input_report_key
Lloh40:
	adrp	x8, _BTN_EXTRA@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BTN_EXTRA@GOTPAGEOFF]
Lloh42:
	ldr	w22, [x8]
	ldr	w23, [x21, #12]
	mov	w0, #5
LBB0_16:
	bl	_BIT
	and	w2, w0, w23
	mov	x0, x19
	mov	x1, x22
	bl	_input_report_key
LBB0_17:
	ldr	w8, [x20, #24]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_psmouse_report_standard_packet
	mov	x0, x19
	bl	_input_sync
Lloh43:
	adrp	x8, _PSMOUSE_FULL_PACKET@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PSMOUSE_FULL_PACKET@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
lJTI0_1:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
                                        ; -- End function
	.comm	_PSMOUSE_GOOD_DATA,4,2          ; @PSMOUSE_GOOD_DATA
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_REL_HWHEEL,4,2                 ; @REL_HWHEEL
	.comm	_psmouse_a4tech_2wheels,4,2     ; @psmouse_a4tech_2wheels
	.comm	_BTN_SIDE,4,2                   ; @BTN_SIDE
	.comm	_BTN_EXTRA,4,2                  ; @BTN_EXTRA
	.comm	_PSMOUSE_FULL_PACKET,4,2        ; @PSMOUSE_FULL_PACKET
.subsections_via_symbols
