	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adbhid_mouse_input
_adbhid_mouse_input:                    ## @adbhid_mouse_input
	.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
	movzbl	(%rdi), %r15d
	shrq	$4, %r15
	movq	_adbhid@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_9
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movb	1(%rbx), %al
	movb	2(%rbx), %cl
	movl	%eax, %edx
	andb	$127, %dl
	andb	%cl, %al
	andb	$-128, %al
	orb	%dl, %al
	movb	%al, 1(%rbx)
	orb	$-128, %cl
	movb	%cl, 2(%rbx)
	jmp	LBB0_9
LBB0_13:
	movzbl	%r15b, %esi
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_6:
	movb	1(%rbx), %dil
	movb	2(%rbx), %sil
	andb	$127, %dil
	movb	3(%rbx), %cl
	movl	%ecx, %eax
	shlb	$5, %al
	movl	%ecx, %edx
	shlb	$4, %dl
	andb	%al, %dl
	andb	$-128, %dl
	orb	%dil, %dl
	movb	%dl, 1(%rbx)
	andb	$127, %sil
	movl	%ecx, %eax
	shlb	$7, %al
	orb	%sil, %al
	movb	%al, 2(%rbx)
	movl	%ecx, %eax
	andb	$119, %al
	shlb	$6, %cl
	andb	$-128, %cl
	jmp	LBB0_5
LBB0_7:
	movb	1(%rbx), %al
	movb	2(%rbx), %sil
	andb	$127, %al
	movb	3(%rbx), %cl
	movl	%ecx, %edx
	shlb	$7, %dl
	orb	%al, %dl
	movb	%dl, 1(%rbx)
	andb	$127, %sil
	movl	%ecx, %eax
	shlb	$6, %al
	andb	$-128, %al
	orb	%sil, %al
	movb	%al, 2(%rbx)
	shlb	$5, %cl
	andb	$-128, %cl
	movb	%cl, 3(%rbx)
	jmp	LBB0_9
LBB0_4:
	movb	1(%rbx), %al
	movb	2(%rbx), %sil
	andb	$127, %al
	movb	3(%rbx), %cl
	movl	%ecx, %edx
	shlb	$7, %dl
	orb	%al, %dl
	movb	%dl, 1(%rbx)
	andb	$127, %sil
	movl	%ecx, %eax
	shlb	$6, %al
	andb	$-128, %al
	orb	%sil, %al
	movb	%al, 2(%rbx)
	movl	%ecx, %eax
	shlb	$5, %al
	andb	$-128, %al
	andb	$127, %cl
LBB0_5:
	orb	%al, %cl
	movb	%cl, 3(%rbx)
	jmp	LBB0_9
LBB0_8:
	movb	2(%rbx), %al
	movl	%eax, %ecx
	andb	$-128, %cl
	movb	%cl, 3(%rbx)
	orb	$-128, %al
	movb	%al, 2(%rbx)
	movl	$4, %r14d
LBB0_9:
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movl	4(%rax), %edi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	1(%rbx), %al
	notb	%al
	shrb	$7, %al
	movzbl	%al, %edx
	callq	_input_report_key
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movl	4(%rax), %edi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	2(%rbx), %al
	notb	%al
	shrb	$7, %al
	movzbl	%al, %edx
	callq	_input_report_key
	cmpl	$4, %r14d
	jl	LBB0_12
## %bb.10:
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	cmpl	$128, (%rax)
	je	LBB0_12
## %bb.11:
	movl	4(%rax), %edi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	3(%rbx), %al
	notb	%al
	shrb	$7, %al
	movzbl	%al, %edx
	callq	_input_report_key
LBB0_12:
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movl	4(%rax), %edi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	2(%rbx), %al
	andb	$127, %al
	cmpb	$64, %al
	setae	%cl
	shlb	$7, %cl
	orb	%al, %cl
	movzbl	%cl, %edx
	callq	_input_report_rel
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movl	4(%rax), %edi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	1(%rbx), %al
	andb	$127, %al
	cmpb	$64, %al
	setae	%cl
	shlb	$7, %cl
	orb	%al, %cl
	movzbl	%cl, %edx
	callq	_input_report_rel
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movl	4(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_adbhid,8,3                     ## @adbhid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADB HID on ID %d not yet registered\n"

	.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
	.no_dead_strip	_adbhid_mouse_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adbhid_mouse_input
_adbhid_mouse_input:                    ; @adbhid_mouse_input
	.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
	ldrb	w8, [x0]
	lsr	x20, x8, #4
Lloh0:
	adrp	x22, _adbhid@GOTPAGE
Lloh1:
	ldr	x22, [x22, _adbhid@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.2:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldrb	w8, [x19, #1]
	ldrb	w9, [x19, #2]
	and	w10, w8, w9
	bfxil	w10, w8, #0, #7
	strb	w10, [x19, #1]
	orr	w8, w9, #0x80
	strb	w8, [x19, #2]
	b	LBB0_9
LBB0_4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	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	_pr_err
LBB0_5:
	ldrb	w8, [x19, #1]
	ldrb	w9, [x19, #3]
	lsl	w10, w9, #4
	and	w10, w10, w9, lsl #5
	bfxil	w10, w8, #0, #7
	strb	w10, [x19, #1]
	ldrb	w8, [x19, #2]
	bfi	w8, w9, #7, #8
	strb	w8, [x19, #2]
	and	w8, w9, #0x77777777
	lsl	w9, w9, #6
	and	w9, w9, #0x80
	orr	w8, w9, w8
	strb	w8, [x19, #3]
	b	LBB0_9
LBB0_6:
	ldrb	w8, [x19, #1]
	ldrb	w9, [x19, #3]
	bfi	w8, w9, #7, #25
	strb	w8, [x19, #1]
	ldrb	w8, [x19, #2]
	lsl	w10, w9, #6
	bfxil	w10, w8, #0, #7
	strb	w10, [x19, #2]
	lsl	w8, w9, #5
	and	w8, w8, #0x80
	strb	w8, [x19, #3]
	b	LBB0_9
LBB0_7:
	ldrb	w8, [x19, #1]
	ldrb	w9, [x19, #3]
	bfi	w8, w9, #7, #8
	strb	w8, [x19, #1]
	ldrb	w8, [x19, #2]
	lsl	w10, w9, #6
	bfxil	w10, w8, #0, #7
	strb	w10, [x19, #2]
	lsl	w8, w9, #5
	bfxil	w8, w9, #0, #7
	strb	w8, [x19, #3]
	b	LBB0_9
LBB0_8:
	ldrb	w8, [x19, #2]
	and	w9, w8, #0x80
	strb	w9, [x19, #3]
	orr	w8, w8, #0x80
	strb	w8, [x19, #2]
	mov	w21, #4
LBB0_9:
	ldr	x8, [x22]
	lsl	x23, x20, #3
	ldr	x8, [x8, x23]
	ldr	w0, [x8, #4]
Lloh6:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldrb	w8, [x19, #1]
	mvn	w8, w8
	ubfx	w2, w8, #7, #1
	bl	_input_report_key
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w0, [x8, #4]
Lloh9:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldrb	w8, [x19, #2]
	mvn	w8, w8
	ubfx	w2, w8, #7, #1
	bl	_input_report_key
	cmp	w21, #4
	b.lt	LBB0_12
; %bb.10:
	ldr	x8, [x22]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x8, #4]
Lloh12:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldrb	w8, [x19, #3]
	mvn	w8, w8
	ubfx	w2, w8, #7, #1
	bl	_input_report_key
LBB0_12:
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w0, [x8, #4]
Lloh15:
	adrp	x8, _REL_X@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldrb	w8, [x19, #2]
	and	w2, w8, #0x7f
	cmp	w2, #63
	cset	w8, hi
	bfi	w2, w8, #7, #1
	bl	_input_report_rel
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w0, [x8, #4]
Lloh18:
	adrp	x8, _REL_Y@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldrb	w8, [x19, #1]
	and	w2, w8, #0x7f
	cmp	w2, #63
	cset	w8, hi
	bfi	w2, w8, #7, #1
	bl	_input_report_rel
	ldr	x8, [x22]
	ldr	x8, [x8, x23]
	ldr	w0, [x8, #4]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_adbhid,8,3                     ; @adbhid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADB HID on ID %d not yet registered\n"

	.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
	.no_dead_strip	_adbhid_mouse_input
.subsections_via_symbols
