	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mremote_clientchg
_mremote_clientchg:                     ## @mremote_clientchg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_rodent@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_MOUSE_PROTO_X10MOUSEREM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	testl	%edi, %edi
	je	LBB0_5
## %bb.2:
	movl	$4, -20(%rbp)
	movl	12(%r14), %edi
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	callq	_accept
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	cmpl	$0, 8(%r14)
	js	LBB0_7
LBB0_4:
	movl	%ebx, %edi
	callq	_close
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	_debug
	movl	8(%r14), %edi
	callq	_close
	movl	$-1, 8(%r14)
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_logwarnx
	cmpl	$0, 8(%r14)
	jns	LBB0_4
LBB0_7:
	movl	%ebx, 8(%r14)
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	callq	_debug
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rodent,16,3                    ## @rodent
	.comm	_MOUSE_PROTO_X10MOUSEREM,8,3    ## @MOUSE_PROTO_X10MOUSEREM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed accept on mouse remote socket"

L_.str.1:                               ## @.str.1
	.asciz	"remote client connect...accepted"

L_.str.2:                               ## @.str.2
	.asciz	"another remote client connect...disconnected"

L_.str.3:                               ## @.str.3
	.asciz	"remote client disconnected"

	.no_dead_strip	_mremote_clientchg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mremote_clientchg
_mremote_clientchg:                     ; @mremote_clientchg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _rodent@GOTPAGE
Lloh1:
	ldr	x20, [x20, _rodent@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _MOUSE_PROTO_X10MOUSEREM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MOUSE_PROTO_X10MOUSEREM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	cbz	w0, LBB0_5
; %bb.2:
	mov	w8, #4
	str	w8, [sp, #4]
	ldr	w0, [x20, #12]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_accept
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w8, [x20, #8]
	tbnz	w8, #31, LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_close
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debug
	ldr	w0, [x20, #8]
	bl	_close
	mov	w8, #-1
	str	w8, [x20, #8]
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_logwarnx
	ldr	w8, [x20, #8]
	tbz	w8, #31, LBB0_4
LBB0_7:
	str	w19, [x20, #8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_debug
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_rodent,16,3                    ; @rodent
	.comm	_MOUSE_PROTO_X10MOUSEREM,8,3    ; @MOUSE_PROTO_X10MOUSEREM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed accept on mouse remote socket"

l_.str.1:                               ; @.str.1
	.asciz	"remote client connect...accepted"

l_.str.2:                               ; @.str.2
	.asciz	"another remote client connect...disconnected"

l_.str.3:                               ; @.str.3
	.asciz	"remote client disconnected"

	.no_dead_strip	_mremote_clientchg
.subsections_via_symbols
