	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_keepalive
_set_keepalive:                         ## @set_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movl	$4, -48(%rbp)
	movl	$1, -44(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-44(%rbp), %rcx
	movl	$4, %r8d
	callq	_rs_setsockopt
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_keepalive@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_TCP_KEEPIDLE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_rs_setsockopt
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%ebx, %edi
	callq	_rs_getsockopt
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	cmpl	$0, -44(%rbp)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:
	movl	(%r14), %esi
	movl	(%r15), %edx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movl	%ebx, %edi
	callq	_rs_getsockopt
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-44(%rbp), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rsetsockopt SO_KEEPALIVE"

	.comm	_keepalive,4,2                  ## @keepalive
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TCP_KEEPIDLE,4,2               ## @TCP_KEEPIDLE
L_.str.1:                               ## @.str.1
	.asciz	"rsetsockopt TCP_KEEPIDLE"

L_.str.2:                               ## @.str.2
	.asciz	"Keepalive: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"ON"

L_.str.4:                               ## @.str.4
	.asciz	"OFF"

L_.str.5:                               ## @.str.5
	.asciz	"  time: %i\n"

	.no_dead_strip	_set_keepalive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_keepalive
_set_keepalive:                         ; @set_keepalive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	mov	w9, #4
	mov	w8, #1
	stp	w9, w8, [sp, #8]
Lloh0:
	adrp	x22, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _SO_KEEPALIVE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SO_KEEPALIVE@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #12
	mov	w4, #4
	bl	_rs_setsockopt
	cbnz	x0, LBB0_7
; %bb.1:
Lloh4:
	adrp	x8, _keepalive@GOTPAGE
Lloh5:
	ldr	x8, [x8, _keepalive@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh7:
	adrp	x20, _IPPROTO_TCP@GOTPAGE
Lloh8:
	ldr	x20, [x20, _IPPROTO_TCP@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh9:
	adrp	x21, _TCP_KEEPIDLE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _TCP_KEEPIDLE@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_rs_setsockopt
	cbnz	x0, LBB0_8
LBB0_2:
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	bl	_rs_getsockopt
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh13:
	adrp	x10, l_.str.4@PAGE
Lloh14:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_4:
	ldr	w1, [x20]
	ldr	w2, [x21]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	bl	_rs_getsockopt
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_6
LBB0_8:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rsetsockopt SO_KEEPALIVE"

	.comm	_keepalive,4,2                  ; @keepalive
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TCP_KEEPIDLE,4,2               ; @TCP_KEEPIDLE
l_.str.1:                               ; @.str.1
	.asciz	"rsetsockopt TCP_KEEPIDLE"

l_.str.2:                               ; @.str.2
	.asciz	"Keepalive: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"ON"

l_.str.4:                               ; @.str.4
	.asciz	"OFF"

l_.str.5:                               ; @.str.5
	.asciz	"  time: %i\n"

	.no_dead_strip	_set_keepalive
.subsections_via_symbols
