	.file	"151199.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: ruptime hostname"
.LC1:
	.string	"ruptime"
.LC2:
	.string	"getaddrinfo error: %s\n"
	.align 8
.LC3:
	.string	"error: %d, Can't connect to %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -56[rbp], 1
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -80[rbp]
	lea	rdx, -64[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	je	.L3
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	r8d, ecx
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	connect_retry
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -88[rbp], eax
	jmp	.L10
.L5:
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	print_uptime
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L4:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC4:
	.string	"recv error"
	.text
	.globl	print_uptime
	.type	print_uptime, @function
print_uptime:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L12:
	lea	rsi, -144[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	ecx, 0
	mov	edx, 128
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	jg	.L13
	cmp	DWORD PTR -148[rbp], 0
	jns	.L16
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_uptime, .-print_uptime
	.globl	connect_retry
	.type	connect_retry, @function
connect_retry:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	DWORD PTR -32[rbp], r8d
	mov	DWORD PTR -8[rbp], 1
	jmp	.L18
.L23:
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L19
	mov	eax, -1
	jmp	.L20
.L19:
	mov	edx, DWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -8[rbp], 64
	jg	.L22
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	sleep@PLT
.L22:
	sal	DWORD PTR -8[rbp]
.L18:
	cmp	DWORD PTR -8[rbp], 128
	jle	.L23
	mov	eax, -1
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	connect_retry, .-connect_retry
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"151199.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: ruptime hostname\000"
	.align	2
.LC1:
	.ascii	"ruptime\000"
	.align	2
.LC2:
	.ascii	"getaddrinfo error: %s\012\000"
	.align	2
.LC3:
	.ascii	"error: %d, Can't connect to %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L11+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r0, [r3]
	sub	r3, fp, #56
	sub	r2, fp, #40
	ldr	r1, .L11+8
	bl	getaddrinfo
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L3
	ldr	r0, [fp, #-48]
	bl	gai_strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
	b	.L4
.L7:
	ldr	r3, [fp, #-52]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-52]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #0
	mov	r1, #1
	bl	connect_retry
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	b	.L10
.L5:
	ldr	r0, [fp, #-44]
	bl	print_uptime
	mov	r0, #0
	bl	exit
.L10:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-52]
.L4:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, .L11+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"recv error\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_uptime
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_uptime, %function
print_uptime:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L14
.L15:
	ldr	r2, [fp, #-140]
	sub	r3, fp, #136
	mov	r1, r3
	mov	r0, #1
	bl	write
.L14:
	sub	r1, fp, #136
	mov	r3, #0
	mov	r2, #128
	ldr	r0, [fp, #-144]
	bl	recv
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bgt	.L15
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L19+4
	bl	puts
	mov	r0, #1
	bl	exit
.L18:
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC6
	.word	.LC5
	.size	print_uptime, .-print_uptime
	.align	2
	.global	connect_retry
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_retry, %function
connect_retry:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L22
.L27:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L23
	mvn	r3, #0
	b	.L24
.L23:
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-8]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-8]
	b	.L24
.L25:
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, [fp, #-12]
	cmp	r3, #64
	bgt	.L26
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	sleep
.L26:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-12]
	cmp	r3, #128
	ble	.L27
	mvn	r3, #0
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	connect_retry, .-connect_retry
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
