	.file	"51543.c"
	.intel_syntax noprefix
	.text
	.globl	server_prepare
	.type	server_prepare, @function
server_prepare:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, __FUNCTION__.0[rip]
	call	puts@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -40[rbp], 1
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 15
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 1234
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 8192
	mov	edi, eax
	call	listen@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	server_prepare, .-server_prepare
	.section	.rodata
	.align 8
.LC0:
	.string	"[%d] connection from %s, port %d\n"
.LC1:
	.string	"%24s\n"
	.text
	.globl	server_action
	.type	server_action, @function
server_action:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -8244[rbp], edi
	mov	QWORD PTR -8256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8224[rbp], 0
	mov	QWORD PTR -8216[rbp], 0
	lea	rdx, -8208[rbp]
	mov	eax, 0
	mov	ecx, 1022
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -8256[rbp]
	lea	rsi, 4[rax]
	lea	rax, -8224[rbp]
	mov	ecx, 8192
	mov	rdx, rax
	mov	edi, 2
	mov	eax, 0
	call	inet_ntop@PLT
	mov	rax, QWORD PTR -8256[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, 0
	call	getpid@PLT
	mov	esi, eax
	lea	rax, -8224[rbp]
	mov	ecx, ebx
	mov	rdx, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -8232[rbp], rax
	lea	rax, -8232[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	lea	rax, -8224[rbp]
	mov	rcx, rdx
	lea	rdx, .LC1[rip]
	mov	esi, 8192
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -8224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -8224[rbp]
	mov	eax, DWORD PTR -8244[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -8244[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	server_action, .-server_action
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	server_prepare
	mov	DWORD PTR -44[rbp], eax
.L8:
	mov	DWORD PTR -48[rbp], 16
	lea	rdx, -48[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -40[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	server_action
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L8
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 15
__FUNCTION__.0:
	.string	"server_prepare"
	.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	"51543.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server_prepare
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_prepare, %function
server_prepare:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	puts
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	setsockopt
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L4+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r1, #8192
	ldr	r0, [fp, #-28]
	bl	listen
	ldr	r3, [fp, #-28]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	__FUNCTION__.5743
	.word	1234
	.size	server_prepare, .-server_prepare
	.section	.rodata
	.align	2
.LC1:
	.ascii	"[%d] connection from %s, port %d\012\000"
	.align	2
.LC2:
	.ascii	"%24s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	server_action
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_action, %function
server_action:
	@ args = 0, pretend = 0, frame = 8208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-16]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L8+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r1, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #4
	mov	r3, #8192
	mov	r0, #2
	bl	inet_ntop
	bl	getpid
	mov	r4, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #4
	mov	r1, r4
	ldr	r0, .L8+8
	bl	printf
	mov	r0, #0
	bl	time
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L8+12
	mov	r1, #8192
	bl	snprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-12]
	bl	write
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	close
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	8188
	.word	.LC1
	.word	.LC2
	.size	server_action, .-server_action
	.section	.rodata
	.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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	server_prepare
	str	r0, [fp, #-36]
.L12:
	mov	r3, #16
	str	r3, [fp, #-40]
	sub	r2, fp, #40
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	accept
	str	r0, [fp, #-32]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L11
	ldr	r0, [fp, #-36]
	bl	close
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	server_action
	mov	r0, #0
	bl	exit
.L11:
	ldr	r0, [fp, #-32]
	bl	close
	b	.L12
.L15:
	.align	2
.L14:
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__FUNCTION__.5743, %object
	.size	__FUNCTION__.5743, 15
__FUNCTION__.5743:
	.ascii	"server_prepare\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
