	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_svc_send_keepalive
_tcp_svc_send_keepalive:                ## @tcp_svc_send_keepalive
	.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	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_fastlock_acquire
	movq	%rbx, %rdi
	callq	_rs_ctrl_avail
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_rs_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	incl	8(%rbx)
	movq	_RS_OP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RS_CTRL_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rs_msg_set
	movq	$0, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_rs_post_write
LBB0_3:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fastlock_release               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rs_connected,4,2               ## @rs_connected
	.comm	_RS_OP_CTRL,4,2                 ## @RS_OP_CTRL
	.comm	_RS_CTRL_KEEPALIVE,4,2          ## @RS_CTRL_KEEPALIVE
	.no_dead_strip	_tcp_svc_send_keepalive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_svc_send_keepalive
_tcp_svc_send_keepalive:                ; @tcp_svc_send_keepalive
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_fastlock_acquire
	mov	x0, x20
	bl	_rs_ctrl_avail
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _rs_connected@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rs_connected@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh3:
	adrp	x8, _RS_OP_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RS_OP_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _RS_CTRL_KEEPALIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RS_CTRL_KEEPALIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_rs_msg_set
	mov	x3, x0
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_rs_post_write
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fastlock_release
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_rs_connected,4,2               ; @rs_connected
	.comm	_RS_OP_CTRL,4,2                 ; @RS_OP_CTRL
	.comm	_RS_CTRL_KEEPALIVE,4,2          ; @RS_CTRL_KEEPALIVE
	.no_dead_strip	_tcp_svc_send_keepalive
.subsections_via_symbols
