	.file	"726578.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"scoket"
.LC1:
	.string	"bind"
.LC2:
	.string	"listen"
.LC3:
	.string	"Wow! got a call"
.LC4:
	.string	"accept"
.LC5:
	.string	"w"
.LC6:
	.string	"fdopen"
.LC7:
	.string	"The time here is..."
	.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, 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -320[rbp], eax
	cmp	DWORD PTR -320[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -288[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	gethostname@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -304[rbp], rax
	mov	rax, QWORD PTR -304[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -288[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	edi, 13000
	call	htons@PLT
	mov	WORD PTR -286[rbp], ax
	mov	WORD PTR -288[rbp], 2
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -320[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -320[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -316[rbp], eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	cmp	DWORD PTR -316[rbp], -1
	jne	.L5
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -316[rbp]
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L6
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	lea	rax, -312[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	fputs@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L4
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"726578.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"scoket\000"
	.align	2
.LC1:
	.ascii	"bind\000"
	.align	2
.LC2:
	.ascii	"listen\000"
	.align	2
.LC3:
	.ascii	"Wow! got a call\000"
	.align	2
.LC4:
	.ascii	"accept\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"fdopen\000"
	.align	2
.LC7:
	.ascii	"The time here is...\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L8+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #280
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	gethostname
	sub	r3, fp, #264
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-292]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #280
	add	r3, r3, #4
	mov	r0, r3
	bl	memmove
	ldr	r0, .L8+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #276
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #280
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-296]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L8+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r1, #1
	ldr	r0, [fp, #-296]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L8+16
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-296]
	bl	accept
	str	r0, [fp, #-288]
	ldr	r0, .L8+20
	bl	puts
	ldr	r3, [fp, #-288]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L8+24
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r1, .L8+28
	ldr	r0, [fp, #-288]
	bl	fdopen
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L8+32
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-284]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L8+36
	bl	fwrite
	sub	r3, fp, #300
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	ldr	r1, [fp, #-284]
	mov	r0, r3
	bl	fputs
	ldr	r0, [fp, #-284]
	bl	fclose
	b	.L4
.L9:
	.align	2
.L8:
	.word	.LC8
	.word	.LC0
	.word	13000
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
