	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_input
_print_input:                           ## @print_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rax
	movq	_INPUT_TYPE_MOUSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movb	8(%rdi), %al
	testb	%al, %al
	leaq	L_.str.2(%rip), %r10
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%r10, %rcx
	movq	_REMOTE_BUTTON_LEFT@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	andb	%al, %dl
	leaq	L_.str.3(%rip), %r8
	cmoveq	%r10, %r8
	movq	_REMOTE_BUTTON_MIDDLE@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	andb	%al, %dl
	leaq	L_.str.4(%rip), %r9
	cmoveq	%r10, %r9
	movl	28(%rdi), %esi
	movq	_REMOTE_BUTTON_RIGHT@GOTPCREL(%rip), %rdx
	andb	(%rdx), %al
	movl	24(%rdi), %edx
	leaq	L_.str.5(%rip), %rax
	cmoveq	%r10, %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_2:
	movl	20(%rdi), %edx
	movslq	16(%rdi), %rcx
	movslq	12(%rdi), %r8
	leaq	L_.str.6(%rip), %rdi
	movl	%edx, %esi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	jmp	_dbg                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INPUT_TYPE_MOUSE,8,3           ## @INPUT_TYPE_MOUSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote mouse movement: (x,y)=(%d,%d)%s%s%s%s\n"

L_.str.1:                               ## @.str.1
	.asciz	" -- buttons:"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_REMOTE_BUTTON_LEFT,1,0         ## @REMOTE_BUTTON_LEFT
L_.str.3:                               ## @.str.3
	.asciz	"left "

	.comm	_REMOTE_BUTTON_MIDDLE,1,0       ## @REMOTE_BUTTON_MIDDLE
L_.str.4:                               ## @.str.4
	.asciz	"middle "

	.comm	_REMOTE_BUTTON_RIGHT,1,0        ## @REMOTE_BUTTON_RIGHT
L_.str.5:                               ## @.str.5
	.asciz	"right"

L_.str.6:                               ## @.str.6
	.asciz	"remote keypress (code, flag, down):%d (0x%x) [0x%x] [0x%x]\n"

	.no_dead_strip	_print_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_input
_print_input:                           ; @print_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _INPUT_TYPE_MOUSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INPUT_TYPE_MOUSE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldrb	w8, [x0, #8]
	ldp	w2, w1, [x0, #24]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x3, x10, x9, eq
Lloh7:
	adrp	x9, _REMOTE_BUTTON_LEFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _REMOTE_BUTTON_LEFT@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w9, w9, w8
Lloh9:
	adrp	x11, l_.str.3@PAGE
Lloh10:
	add	x11, x11, l_.str.3@PAGEOFF
	tst	w9, #0xff
	csel	x4, x10, x11, eq
Lloh11:
	adrp	x9, _REMOTE_BUTTON_MIDDLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REMOTE_BUTTON_MIDDLE@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w9, w9, w8
Lloh13:
	adrp	x11, l_.str.4@PAGE
Lloh14:
	add	x11, x11, l_.str.4@PAGEOFF
	tst	w9, #0xff
	csel	x9, x10, x11, eq
Lloh15:
	adrp	x11, _REMOTE_BUTTON_RIGHT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _REMOTE_BUTTON_RIGHT@GOTPAGEOFF]
	ldrb	w11, [x11]
	and	w8, w11, w8
Lloh17:
	adrp	x11, l_.str.5@PAGE
Lloh18:
	add	x11, x11, l_.str.5@PAGEOFF
	tst	w8, #0xff
	csel	x8, x10, x11, eq
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	stp	x9, x8, [sp]
	bl	_dbg
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_2:
	ldp	w3, w1, [x0, #16]
                                        ; kill: def $w3 killed $w3 def $x3
	sxtw	x3, w3
Lloh21:
	adrp	x8, l_.str.6@PAGE
Lloh22:
	add	x8, x8, l_.str.6@PAGEOFF
	ldrsw	x4, [x0, #12]
	mov	x0, x8
	mov	x2, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_INPUT_TYPE_MOUSE,8,3           ; @INPUT_TYPE_MOUSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote mouse movement: (x,y)=(%d,%d)%s%s%s%s\n"

l_.str.1:                               ; @.str.1
	.asciz	" -- buttons:"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_REMOTE_BUTTON_LEFT,1,0         ; @REMOTE_BUTTON_LEFT
l_.str.3:                               ; @.str.3
	.asciz	"left "

	.comm	_REMOTE_BUTTON_MIDDLE,1,0       ; @REMOTE_BUTTON_MIDDLE
l_.str.4:                               ; @.str.4
	.asciz	"middle "

	.comm	_REMOTE_BUTTON_RIGHT,1,0        ; @REMOTE_BUTTON_RIGHT
l_.str.5:                               ; @.str.5
	.asciz	"right"

l_.str.6:                               ; @.str.6
	.asciz	"remote keypress (code, flag, down):%d (0x%x) [0x%x] [0x%x]\n"

	.no_dead_strip	_print_input
.subsections_via_symbols
