	.file	"940132.c"
	.intel_syntax noprefix
	.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
	mov	eax, 0
	call	ntpdate
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"203.50.77.6"
.LC1:
	.string	"udp"
.LC2:
	.string	"Time: %s"
	.align 8
.LC3:
	.string	"System time is %d seconds off\n"
	.text
	.globl	ntpdate
	.type	ntpdate, @function
ntpdate:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 144
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -128[rbp], rax
	mov	DWORD PTR -144[rbp], 123
	mov	DWORD PTR -140[rbp], 1024
	mov	QWORD PTR -80[rbp], 8
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	ebx, DWORD PTR -140[rbp]
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -120[rbp], rax
	movsx	rax, ebx
	mov	r8, rax
	mov	r9d, 0
	movsx	rax, ebx
	mov	rsi, rax
	mov	edi, 0
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -112[rbp], rax
	lea	rdi, .LC1[rip]
	call	getprotobyname@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -136[rbp], eax
	lea	rax, -96[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -96[rbp], 2
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -144[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -94[rbp], ax
	lea	rdx, -96[rbp]
	lea	rsi, -80[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 48
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -132[rbp], eax
	movsx	rax, ebx
	lea	rdx, 0[0+rax*8]
	mov	rsi, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -132[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 80[rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -148[rbp], eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, 2085978496
	mov	DWORD PTR -148[rbp], eax
	lea	rax, -148[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	ctime@PLT
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	mov	DWORD PTR -132[rbp], eax
	mov	edx, DWORD PTR -148[rbp]
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, edx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsp, r12
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ntpdate, .-ntpdate
	.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	"940132.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	ntpdate
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"203.50.77.6\000"
	.align	2
.LC2:
	.ascii	"udp\000"
	.align	2
.LC3:
	.ascii	"Time: %s\000"
	.align	2
.LC4:
	.ascii	"System time is %d seconds off\012\000"
	.align	2
.LC1:
	.ascii	"\010\000\000\000\000\000\000\000\000\000"
	.space	38
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ntpdate
	.syntax unified
	.arm
	.fpu softvfp
	.type	ntpdate, %function
ntpdate:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #112
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	ldr	r3, .L5+4
	str	r3, [fp, #-108]
	mov	r3, #123
	str	r3, [fp, #-112]
	mov	r3, #1024
	str	r3, [fp, #-104]
	ldr	r2, .L5+8
	sub	r3, fp, #64
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #54
	mov	r2, #38
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r4, [fp, #-104]
	sub	r3, r4, #1
	str	r3, [fp, #-100]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-96]
	ldr	r0, .L5+12
	bl	getprotobyname
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #8]
	mov	r2, r3
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-88]
	sub	r3, fp, #80
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-80]	@ movhi
	ldr	r0, [fp, #-108]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-78]	@ movhi
	sub	r1, fp, #64
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #80
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #48
	ldr	r0, [fp, #-88]
	bl	sendto
	str	r0, [fp, #-84]
	mov	r3, r4
	lsl	r2, r3, #2
	mov	r3, #0
	ldr	r1, [fp, #-96]
	ldr	r0, [fp, #-88]
	bl	recv
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	mov	r2, r3
	ldr	r3, .L5+16
	add	r3, r2, r3
	str	r3, [fp, #-116]
	sub	r3, fp, #116
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L5+20
	bl	printf
	mov	r0, #0
	bl	time
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-84]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L5+24
	bl	printf
	mov	sp, r5
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	2085978496
	.word	.LC3
	.word	.LC4
	.size	ntpdate, .-ntpdate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
