	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psmouse_process_byte
_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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_23
LBB0_2:
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movq	(%rdi), %r15
	movq	24(%rdi), %rax
	movq	_PSMOUSE_IMPS@GOTPCREL(%rip), %rcx
	movq	_PSMOUSE_GENPS@GOTPCREL(%rip), %r12
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	cmpq	(%r12), %rax
	jne	LBB0_5
LBB0_4:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	3(%r15), %edx
	negl	%edx
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	24(%rbx), %rax
LBB0_5:
	movq	_PSMOUSE_IMEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	movzbl	3(%r15), %eax
	movq	%rax, %rcx
	shrq	$6, %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	andl	$8, %edx
	andl	$7, %eax
	subl	%eax, %edx
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_BTN_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%r15), %edx
	shrl	$4, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	3(%r15), %edx
	shrl	$5, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	jmp	LBB0_11
LBB0_9:
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %esi
	movl	%eax, %edx
	andl	$32, %edx
	andl	$31, %eax
	subl	%eax, %edx
	movq	%r14, %rdi
	callq	_input_report_rel
LBB0_11:
	movq	24(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.12:
	movq	_BTN_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r15), %edx
	shrl	$6, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	(%r15), %al
	shrb	$7, %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	24(%rbx), %rax
LBB0_13:
	movq	_PSMOUSE_THINKPS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	_BTN_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r15), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movb	(%r15), %al
	addb	%al, %al
	andb	$-128, %al
	orb	%al, 1(%r15)
	movq	24(%rbx), %rax
LBB0_15:
	movq	_PSMOUSE_CORTRON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.17:
	movq	_BTN_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r15), %edx
	shrl	$3, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movb	(%r15), %al
	orb	$8, %al
	movb	%al, (%r15)
	jmp	LBB0_18
LBB0_16:
	movb	(%r15), %al
LBB0_18:
	movq	_BTN_LEFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andb	$1, %al
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r15), %edx
	shrl	$2, %edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%r15), %edx
	shrl	%edx
	andl	$1, %edx
	movq	%r14, %rdi
	callq	_input_report_key
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%r15), %eax
	xorl	%ebx, %ebx
	movl	$0, %edx
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movzbl	(%r15), %ecx
	andl	$16, %ecx
	shll	$4, %ecx
	subl	%ecx, %eax
	movl	%eax, %edx
LBB0_20:
	movq	%r14, %rdi
	callq	_input_report_rel
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	2(%r15), %eax
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movzbl	(%r15), %ebx
	andl	$32, %ebx
	shll	$3, %ebx
	subl	%eax, %ebx
LBB0_22:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_input_report_rel
	movq	%r14, %rdi
	callq	_input_sync
	movq	_PSMOUSE_FULL_PACKET@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_PSMOUSE_GOOD_DATA,4,2          ## @PSMOUSE_GOOD_DATA
	.comm	_PSMOUSE_IMPS,8,3               ## @PSMOUSE_IMPS
	.comm	_PSMOUSE_GENPS,8,3              ## @PSMOUSE_GENPS
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_PSMOUSE_IMEX,8,3               ## @PSMOUSE_IMEX
	.comm	_REL_HWHEEL,4,2                 ## @REL_HWHEEL
	.comm	_BTN_SIDE,4,2                   ## @BTN_SIDE
	.comm	_BTN_EXTRA,4,2                  ## @BTN_EXTRA
	.comm	_PSMOUSE_THINKPS,8,3            ## @PSMOUSE_THINKPS
	.comm	_PSMOUSE_CORTRON,8,3            ## @PSMOUSE_CORTRON
	.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	_PSMOUSE_FULL_PACKET,4,2        ## @PSMOUSE_FULL_PACKET
	.no_dead_strip	_psmouse_process_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psmouse_process_byte
_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_24
LBB0_2:
	mov	x20, x0
	ldr	x21, [x0]
	ldp	x8, x19, [x0, #24]
Lloh2:
	adrp	x9, _PSMOUSE_IMPS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PSMOUSE_IMPS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x24, _PSMOUSE_GENPS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _PSMOUSE_GENPS@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldrsb	w8, [x21, #3]
	neg	w2, w8
	mov	x0, x19
	bl	_input_report_rel
	ldr	x8, [x20, #24]
LBB0_4:
Lloh10:
	adrp	x9, _PSMOUSE_IMEX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PSMOUSE_IMEX@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x22, _BTN_SIDE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _BTN_SIDE@GOTPAGEOFF]
Lloh15:
	adrp	x23, _BTN_EXTRA@GOTPAGE
Lloh16:
	ldr	x23, [x23, _BTN_EXTRA@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldrb	w8, [x21, #3]
	lsr	x9, x8, #6
Lloh17:
	adrp	x10, lJTI0_0@PAGE
Lloh18:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_6:
Lloh19:
	adrp	x9, _REL_WHEEL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _REL_WHEEL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x9]
	and	w9, w8, #0x8
	and	w8, w8, #0x7
	sub	w2, w9, w8
	mov	x0, x19
	bl	_input_report_rel
	ldr	w1, [x22]
	ldrb	w8, [x21, #3]
	ubfx	w2, w8, #4, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	w1, [x23]
	ldrb	w8, [x21, #3]
	ubfx	w2, w8, #5, #1
	mov	x0, x19
	bl	_input_report_key
	b	LBB0_10
LBB0_7:
Lloh22:
	adrp	x9, _REL_HWHEEL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _REL_HWHEEL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x9, _REL_WHEEL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _REL_WHEEL@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x9]
	and	w9, w8, #0x20
	and	w8, w8, #0x1f
	sub	w2, w9, w8
	mov	x0, x19
	bl	_input_report_rel
LBB0_10:
	ldr	x8, [x20, #24]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	w1, [x22]
	ldrb	w8, [x21]
	ubfx	w2, w8, #6, #1
	mov	x0, x19
	bl	_input_report_key
	ldr	w1, [x23]
	ldrb	w8, [x21]
	lsr	w2, w8, #7
	mov	x0, x19
	bl	_input_report_key
	ldr	x8, [x20, #24]
LBB0_12:
Lloh26:
	adrp	x9, _PSMOUSE_THINKPS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PSMOUSE_THINKPS@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	w1, [x23]
	ldrb	w8, [x21]
	ubfx	w2, w8, #3, #1
	mov	x0, x19
	bl	_input_report_key
	ldrb	w8, [x21]
	lsl	w8, w8, #1
	and	w8, w8, #0x80
	ldrb	w9, [x21, #1]
	orr	w8, w8, w9
	strb	w8, [x21, #1]
	ldr	x8, [x20, #24]
LBB0_14:
Lloh29:
	adrp	x9, _PSMOUSE_CORTRON@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PSMOUSE_CORTRON@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	w1, [x22]
	ldrb	w8, [x21]
	ubfx	w2, w8, #3, #1
	mov	x0, x19
	bl	_input_report_key
	ldrb	w8, [x21]
	orr	w8, w8, #0x8
	strb	w8, [x21]
	b	LBB0_17
LBB0_16:
	ldrb	w8, [x21]
LBB0_17:
Lloh32:
	adrp	x9, _BTN_LEFT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BTN_LEFT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x9]
	and	w2, w8, #0x1
	mov	x0, x19
	bl	_input_report_key
Lloh35:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldrb	w8, [x21]
	ubfx	w2, w8, #2, #1
	mov	x0, x19
	bl	_input_report_key
Lloh38:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldrb	w8, [x21]
	ubfx	w2, w8, #1, #1
	mov	x0, x19
	bl	_input_report_key
Lloh41:
	adrp	x8, _REL_X@GOTPAGE
Lloh42:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldrb	w8, [x21, #1]
	cbz	w8, LBB0_19
; %bb.18:
	ldrb	w9, [x21]
	lsl	w9, w9, #4
	and	w9, w9, #0x100
	sub	w2, w8, w9
	b	LBB0_20
LBB0_19:
	mov	w2, #0
LBB0_20:
	mov	x0, x19
	bl	_input_report_rel
Lloh44:
	adrp	x8, _REL_Y@GOTPAGE
Lloh45:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldrb	w8, [x21, #2]
	cbz	w8, LBB0_22
; %bb.21:
	ldrb	w9, [x21]
	lsl	w9, w9, #3
	and	w9, w9, #0x100
	sub	w2, w9, w8
	b	LBB0_23
LBB0_22:
	mov	w2, #0
LBB0_23:
	mov	x0, x19
	bl	_input_report_rel
	mov	x0, x19
	bl	_input_sync
Lloh47:
	adrp	x8, _PSMOUSE_FULL_PACKET@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PSMOUSE_FULL_PACKET@GOTPAGEOFF]
LBB0_24:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
                                        ; -- End function
	.comm	_PSMOUSE_GOOD_DATA,4,2          ; @PSMOUSE_GOOD_DATA
	.comm	_PSMOUSE_IMPS,8,3               ; @PSMOUSE_IMPS
	.comm	_PSMOUSE_GENPS,8,3              ; @PSMOUSE_GENPS
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_PSMOUSE_IMEX,8,3               ; @PSMOUSE_IMEX
	.comm	_REL_HWHEEL,4,2                 ; @REL_HWHEEL
	.comm	_BTN_SIDE,4,2                   ; @BTN_SIDE
	.comm	_BTN_EXTRA,4,2                  ; @BTN_EXTRA
	.comm	_PSMOUSE_THINKPS,8,3            ; @PSMOUSE_THINKPS
	.comm	_PSMOUSE_CORTRON,8,3            ; @PSMOUSE_CORTRON
	.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	_PSMOUSE_FULL_PACKET,4,2        ; @PSMOUSE_FULL_PACKET
	.no_dead_strip	_psmouse_process_byte
.subsections_via_symbols
