	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_helper_keepalive               ## -- Begin function helper_keepalive
	.p2align	4, 0x90
_helper_keepalive:                      ## @helper_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	jle	LBB0_4
## %bb.3:
	movl	4(%rbx), %edx
	testl	%edx, %edx
	jg	LBB0_5
	jmp	LBB0_4
LBB0_1:
	cmpl	$0, 4(%rbx)
	je	LBB0_12
LBB0_4:
	movq	_M_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
LBB0_5:
	leal	(%rcx,%rcx), %eax
	cmpl	%edx, %eax
	jle	LBB0_7
## %bb.6:
	movq	_M_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_msg
LBB0_7:
	cmpl	$0, 8(%rbx)
	jne	LBB0_9
## %bb.8:
	cmpl	$0, 12(%rbx)
	je	LBB0_10
LBB0_9:
	movq	_M_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
LBB0_10:
	movq	16(%rbx), %rax
	movq	_MODE_POINT_TO_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	_PING_RESTART@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	(%rbx), %rax
	movq	%rax, 8(%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ASSERT                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_M_USAGE,4,2                    ## @M_USAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--keepalive parameters must be > 0"

L_.str.1:                               ## @.str.1
	.asciz	"the second parameter to --keepalive (restart timeout=%d) must be at least twice the value of the first parameter (ping interval=%d).  A ratio of 1:5 or 1:6 would be even better.  Recommended setting is --keepalive 10 60."

L_.str.2:                               ## @.str.2
	.asciz	"--keepalive conflicts with --ping, --ping-exit, or --ping-restart.  If you use --keepalive, you don't need any of the other --ping directives."

	.comm	_MODE_POINT_TO_POINT,8,3        ## @MODE_POINT_TO_POINT
	.comm	_PING_RESTART,8,3               ## @PING_RESTART
	.comm	_MODE_SERVER,8,3                ## @MODE_SERVER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_helper_keepalive               ; -- Begin function helper_keepalive
	.p2align	2
_helper_keepalive:                      ; @helper_keepalive
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _M_USAGE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _M_USAGE@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	w9, [x19, #4]
	cmp	w9, #0
	b.le	LBB0_6
; %bb.3:
	cmp	w9, w8, lsl #1
	b.lt	LBB0_7
LBB0_4:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_9
	b	LBB0_8
LBB0_5:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
LBB0_6:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msg
	ldp	w8, w9, [x19]
	cmp	w9, w8, lsl #1
	b.ge	LBB0_4
LBB0_7:
	ldr	w0, [x20]
	stp	x9, x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_9
LBB0_8:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_10
LBB0_9:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_msg
LBB0_10:
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _MODE_POINT_TO_POINT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MODE_POINT_TO_POINT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
Lloh11:
	adrp	x8, _PING_RESTART@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PING_RESTART@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	ldr	d0, [x19]
	str	d0, [x19, #8]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ASSERT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_M_USAGE,4,2                    ; @M_USAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--keepalive parameters must be > 0"

l_.str.1:                               ; @.str.1
	.asciz	"the second parameter to --keepalive (restart timeout=%d) must be at least twice the value of the first parameter (ping interval=%d).  A ratio of 1:5 or 1:6 would be even better.  Recommended setting is --keepalive 10 60."

l_.str.2:                               ; @.str.2
	.asciz	"--keepalive conflicts with --ping, --ping-exit, or --ping-restart.  If you use --keepalive, you don't need any of the other --ping directives."

	.comm	_MODE_POINT_TO_POINT,8,3        ; @MODE_POINT_TO_POINT
	.comm	_PING_RESTART,8,3               ; @PING_RESTART
	.comm	_MODE_SERVER,8,3                ; @MODE_SERVER
.subsections_via_symbols
