	.file	"746025.c"
	.intel_syntax noprefix
	.text
	.globl	server
	.bss
	.align 16
	.type	server, @object
	.size	server, 16
server:
	.zero	16
	.globl	client
	.align 16
	.type	client, @object
	.size	client, 16
client:
	.zero	16
	.globl	tramaServer
	.align 4
	.type	tramaServer, @object
	.size	tramaServer, 4
tramaServer:
	.zero	4
	.globl	tramaClient
	.align 4
	.type	tramaClient, @object
	.size	tramaClient, 4
tramaClient:
	.zero	4
	.globl	err
	.align 4
	.type	err, @object
	.size	err, 4
err:
	.zero	4
	.globl	fdSocket
	.align 4
	.type	fdSocket, @object
	.size	fdSocket, 4
fdSocket:
	.zero	4
	.globl	fdAccept
	.align 4
	.type	fdAccept, @object
	.size	fdAccept, 4
fdAccept:
	.zero	4
	.section	.rodata
.LC0:
	.string	"ERROR SERVER: socket(...)\n"
.LC1:
	.string	"ERROR SERVER: bind(...)\n"
.LC2:
	.string	"ERROR SERVER: listen(...)\n"
.LC3:
	.string	"ERROR SERVER: accept(...)\n"
.LC4:
	.string	"Message : %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, 32
	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 fdSocket[rip], eax
	mov	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR fdSocket[rip]
	lea	rdx, -28[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	eax, DWORD PTR fdSocket[rip]
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	WORD PTR server[rip], 2
	mov	edi, 8080
	call	htons@PLT
	mov	WORD PTR server[rip+2], ax
	mov	DWORD PTR server[rip+4], 0
	mov	QWORD PTR server[rip+8], 0
	mov	DWORD PTR tramaServer[rip], 16
	mov	edx, DWORD PTR tramaServer[rip]
	mov	eax, DWORD PTR fdSocket[rip]
	lea	rsi, server[rip]
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR err[rip], eax
	mov	eax, DWORD PTR err[rip]
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	lea	rsi, signal_callback_handler[rip]
	mov	edi, 2
	call	signal@PLT
	mov	eax, DWORD PTR fdSocket[rip]
	mov	esi, 32
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR err[rip], eax
	mov	eax, DWORD PTR err[rip]
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L4:
	mov	DWORD PTR tramaClient[rip], 0
	mov	eax, DWORD PTR fdSocket[rip]
	lea	rdx, tramaClient[rip]
	lea	rsi, client[rip]
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR fdAccept[rip], eax
	mov	eax, DWORD PTR fdAccept[rip]
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	DWORD PTR tramaClient[rip], 120
	mov	eax, DWORD PTR tramaClient[rip]
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 1752392034
	mov	WORD PTR 4[rax], 62
	mov	eax, DWORD PTR tramaClient[rip]
	mov	edx, eax
	mov	eax, DWORD PTR fdAccept[rip]
	mov	rsi, QWORD PTR -24[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR tramaClient[rip]
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR tramaClient[rip]
	mov	edx, eax
	mov	eax, DWORD PTR fdAccept[rip]
	mov	rsi, QWORD PTR -16[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR fdSocket[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR fdAccept[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"Callback Server: %d\n"
	.text
	.globl	signal_callback_handler
	.type	signal_callback_handler, @function
signal_callback_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fdSocket[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR fdAccept[rip]
	mov	edi, eax
	call	close@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	signal_callback_handler, .-signal_callback_handler
	.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	"746025.c"
	.text
	.comm	server,16,4
	.comm	client,16,4
	.comm	tramaServer,4,4
	.comm	tramaClient,4,4
	.comm	err,4,4
	.comm	fdSocket,4,4
	.comm	fdAccept,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR SERVER: socket(...)\012\000"
	.align	2
.LC1:
	.ascii	"ERROR SERVER: bind(...)\012\000"
	.align	2
.LC2:
	.ascii	"ERROR SERVER: listen(...)\012\000"
	.align	2
.LC3:
	.ascii	"ERROR SERVER: accept(...)\012\000"
	.align	2
.LC4:
	.ascii	"bash>\000"
	.align	2
.LC5:
	.ascii	"Message : %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L8+4
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L8+4
	ldr	r0, [r3]
	sub	r3, fp, #20
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	bl	setsockopt
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L8+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, .L8+12
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L8+16
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L8+12
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L8+12
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L8+20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	ldr	r3, .L8+24
	mov	r2, #16
	str	r2, [r3]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, .L8+24
	ldr	r2, [r2]
	ldr	r1, .L8+12
	mov	r0, r3
	bl	bind
	mov	r3, r0
	ldr	r2, .L8+28
	str	r3, [r2]
	ldr	r3, .L8+28
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L8+32
	bl	perror
	mvn	r0, #0
	bl	exit
.L3:
	ldr	r1, .L8+36
	mov	r0, #2
	bl	signal
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r1, #32
	mov	r0, r3
	bl	listen
	mov	r3, r0
	ldr	r2, .L8+28
	str	r3, [r2]
	ldr	r3, .L8+28
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L8+40
	bl	perror
	mvn	r0, #0
	bl	exit
.L4:
	ldr	r3, .L8+44
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, .L8+44
	ldr	r1, .L8+48
	mov	r0, r3
	bl	accept
	mov	r3, r0
	ldr	r2, .L8+52
	str	r3, [r2]
	ldr	r3, .L8+52
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L8+56
	bl	perror
	mvn	r0, #0
	bl	exit
.L5:
	ldr	r3, .L8+44
	mov	r2, #120
	str	r2, [r3]
	ldr	r3, .L8+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L8+60
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r3, .L8+52
	ldr	r0, [r3]
	ldr	r3, .L8+44
	ldr	r2, [r3]
	mov	r3, #0
	ldr	r1, [fp, #-16]
	bl	send
	ldr	r3, .L8+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, .L8+52
	ldr	r0, [r3]
	ldr	r3, .L8+44
	ldr	r2, [r3]
	mov	r3, #0
	ldr	r1, [fp, #-12]
	bl	recv
	ldr	r1, [fp, #-12]
	ldr	r0, .L8+64
	bl	printf
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L8+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	fdSocket
	.word	.LC0
	.word	server
	.word	8080
	.word	server+8
	.word	tramaServer
	.word	err
	.word	.LC1
	.word	signal_callback_handler
	.word	.LC2
	.word	tramaClient
	.word	client
	.word	fdAccept
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Callback Server: %d\012\000"
	.text
	.align	2
	.global	signal_callback_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_callback_handler, %function
signal_callback_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L11
	bl	printf
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	fdSocket
	.word	fdAccept
	.size	signal_callback_handler, .-signal_callback_handler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
