	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setmousespeed
_setmousespeed:                         ## @setmousespeed
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	_rodent@GOTPCREL(%rip), %r12
	movl	8(%r12), %edi
	leaq	-80(%rbp), %rsi
	callq	_tcgetattr
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_IGNBRK@GOTPCREL(%rip), %rax
	movq	_IGNPAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -80(%rbp)
	movl	%r14d, %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	movq	%rax, -64(%rbp)
	movq	-72(%rbp), %rax
	movq	_VTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	_VMIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	cmpl	$2400, %ebx                     ## imm = 0x960
	je	LBB0_7
## %bb.3:
	cmpl	$9600, %ebx                     ## imm = 0x2580
	je	LBB0_4
## %bb.5:
	cmpl	$4800, %ebx                     ## imm = 0x12C0
	jne	LBB0_8
## %bb.6:
	movq	_B4800@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_22
LBB0_7:
	movq	_B2400@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_4:
	movq	_B9600@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_8:
	movq	_B1200@GOTPCREL(%rip), %rbx
LBB0_9:
	movl	(%rbx), %esi
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	callq	_cfsetispeed
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_cfsetospeed
	movl	8(%r12), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_tcsetattr
	leaq	L_.str.1(%rip), %r14
	testq	%rax, %rax
	js	LBB0_22
## %bb.10:
	cmpl	$2400, %r15d                    ## imm = 0x960
	je	LBB0_15
## %bb.11:
	cmpl	$9600, %r15d                    ## imm = 0x2580
	je	LBB0_12
## %bb.13:
	cmpl	$4800, %r15d                    ## imm = 0x12C0
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.3(%rip), %r15
	movq	_B4800@GOTPCREL(%rip), %r13
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.4(%rip), %r15
	movq	_B2400@GOTPCREL(%rip), %r13
	jmp	LBB0_17
LBB0_12:
	leaq	L_.str.2(%rip), %r15
	movq	_B9600@GOTPCREL(%rip), %r13
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.5(%rip), %r15
	movq	_B1200@GOTPCREL(%rip), %r13
LBB0_17:
	movl	(%r13), %esi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cfsetispeed
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_cfsetospeed
	movq	(%r12), %rax
	movq	_MOUSE_PROTO_LOGIMOUSEMAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:
	movq	_MOUSE_PROTO_LOGI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
LBB0_19:
	movl	8(%r12), %edi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_write
	cmpl	$2, %eax
	jne	LBB0_20
LBB0_21:
	movl	$100000, %edi                   ## imm = 0x186A0
	callq	_usleep
	movl	8(%r12), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_tcsetattr
	testq	%rax, %rax
	jns	LBB0_23
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.6(%rip), %r14
LBB0_22:
	movq	%r14, %rdi
	callq	_logwarn
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rodent,16,3                    ## @rodent
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to get status of mouse fd"

	.comm	_IGNBRK,4,2                     ## @IGNBRK
	.comm	_IGNPAR,4,2                     ## @IGNPAR
	.comm	_VTIME,8,3                      ## @VTIME
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_B9600,4,2                      ## @B9600
	.comm	_B4800,4,2                      ## @B4800
	.comm	_B2400,4,2                      ## @B2400
	.comm	_B1200,4,2                      ## @B1200
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
L_.str.1:                               ## @.str.1
	.asciz	"unable to set status of mouse fd"

L_.str.2:                               ## @.str.2
	.asciz	"*q"

L_.str.3:                               ## @.str.3
	.asciz	"*p"

L_.str.4:                               ## @.str.4
	.asciz	"*o"

L_.str.5:                               ## @.str.5
	.asciz	"*n"

	.comm	_MOUSE_PROTO_LOGIMOUSEMAN,8,3   ## @MOUSE_PROTO_LOGIMOUSEMAN
	.comm	_MOUSE_PROTO_LOGI,8,3           ## @MOUSE_PROTO_LOGI
L_.str.6:                               ## @.str.6
	.asciz	"unable to write to mouse fd"

	.no_dead_strip	_setmousespeed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setmousespeed
_setmousespeed:                         ; @setmousespeed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _rodent@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rodent@GOTPAGEOFF]
	ldr	w0, [x22, #8]
	add	x1, sp, #8
	bl	_tcgetattr
	tbnz	x0, #63, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _IGNBRK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IGNBRK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IGNPAR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IGNPAR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	mov	w8, w21
	stp	xzr, xzr, [sp, #32]
	str	x8, [sp, #24]
	ldr	x8, [sp, #16]
Lloh8:
	adrp	x9, _VTIME@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VTIME@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	wzr, [x8, x9, lsl #2]
Lloh11:
	adrp	x9, _VMIN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh14:
	adrp	x8, _B9600@GOTPAGE
Lloh15:
	ldr	x8, [x8, _B9600@GOTPAGEOFF]
Lloh16:
	adrp	x9, _B2400@GOTPAGE
Lloh17:
	ldr	x9, [x9, _B2400@GOTPAGEOFF]
	mov	w21, #9600
	mov	w23, #4800
	cmp	w20, w23
Lloh18:
	adrp	x10, _B1200@GOTPAGE
Lloh19:
	ldr	x10, [x10, _B1200@GOTPAGEOFF]
Lloh20:
	adrp	x11, _B4800@GOTPAGE
Lloh21:
	ldr	x11, [x11, _B4800@GOTPAGEOFF]
	csel	x10, x10, x11, ne
	cmp	w20, w21
	csel	x8, x8, x10, eq
	cmp	w20, #2400
	csel	x20, x9, x8, eq
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_cfsetispeed
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_cfsetospeed
	ldr	w0, [x22, #8]
Lloh22:
	adrp	x20, _TCSADRAIN@GOTPAGE
Lloh23:
	ldr	x20, [x20, _TCSADRAIN@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_tcsetattr
	tbnz	x0, #63, LBB0_6
; %bb.2:
Lloh24:
	adrp	x8, l_.str.2@PAGE
Lloh25:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh26:
	adrp	x9, _B9600@GOTPAGE
Lloh27:
	ldr	x9, [x9, _B9600@GOTPAGEOFF]
Lloh28:
	adrp	x10, l_.str.4@PAGE
Lloh29:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh30:
	adrp	x11, _B2400@GOTPAGE
Lloh31:
	ldr	x11, [x11, _B2400@GOTPAGEOFF]
Lloh32:
	adrp	x12, l_.str.5@PAGE
Lloh33:
	add	x12, x12, l_.str.5@PAGEOFF
Lloh34:
	adrp	x13, _B1200@GOTPAGE
Lloh35:
	ldr	x13, [x13, _B1200@GOTPAGEOFF]
Lloh36:
	adrp	x14, l_.str.3@PAGE
Lloh37:
	add	x14, x14, l_.str.3@PAGEOFF
	cmp	w19, w23
Lloh38:
	adrp	x15, _B4800@GOTPAGE
Lloh39:
	ldr	x15, [x15, _B4800@GOTPAGEOFF]
	csel	x13, x13, x15, ne
	csel	x12, x12, x14, ne
	cmp	w19, w21
	csel	x9, x9, x13, eq
	csel	x8, x8, x12, eq
	cmp	w19, #2400
	csel	x21, x11, x9, eq
	csel	x19, x10, x8, eq
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_cfsetispeed
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_cfsetospeed
	ldr	x8, [x22]
Lloh40:
	adrp	x9, _MOUSE_PROTO_LOGIMOUSEMAN@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MOUSE_PROTO_LOGIMOUSEMAN@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh43:
	adrp	x9, _MOUSE_PROTO_LOGI@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MOUSE_PROTO_LOGI@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	ldr	w0, [x22, #8]
	mov	x1, x19
	mov	w2, #2
	bl	_write
	cmp	w0, #2
	b.ne	LBB0_10
LBB0_5:
	mov	w0, #34464
	movk	w0, #1, lsl #16
	bl	_usleep
	ldr	w0, [x22, #8]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_tcsetattr
	tbz	x0, #63, LBB0_9
LBB0_6:
Lloh46:
	adrp	x0, l_.str.1@PAGE
Lloh47:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh48:
	adrp	x0, l_.str@PAGE
Lloh49:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	bl	_logwarn
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh50:
	adrp	x0, l_.str.6@PAGE
Lloh51:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_rodent,16,3                    ; @rodent
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to get status of mouse fd"

	.comm	_IGNBRK,4,2                     ; @IGNBRK
	.comm	_IGNPAR,4,2                     ; @IGNPAR
	.comm	_VTIME,8,3                      ; @VTIME
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_B9600,4,2                      ; @B9600
	.comm	_B4800,4,2                      ; @B4800
	.comm	_B2400,4,2                      ; @B2400
	.comm	_B1200,4,2                      ; @B1200
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
l_.str.1:                               ; @.str.1
	.asciz	"unable to set status of mouse fd"

l_.str.2:                               ; @.str.2
	.asciz	"*q"

l_.str.3:                               ; @.str.3
	.asciz	"*p"

l_.str.4:                               ; @.str.4
	.asciz	"*o"

l_.str.5:                               ; @.str.5
	.asciz	"*n"

	.comm	_MOUSE_PROTO_LOGIMOUSEMAN,8,3   ; @MOUSE_PROTO_LOGIMOUSEMAN
	.comm	_MOUSE_PROTO_LOGI,8,3           ; @MOUSE_PROTO_LOGI
l_.str.6:                               ; @.str.6
	.asciz	"unable to write to mouse fd"

	.no_dead_strip	_setmousespeed
.subsections_via_symbols
