	.file	"117210.c"
	.intel_syntax noprefix
	.text
	.globl	swap
	.type	swap, @function
swap:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	swap, .-swap
	.globl	permute
	.type	permute, @function
permute:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jne	.L3
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L7
.L3:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	permute
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L6
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	permute, .-permute
	.section	.rodata
.LC0:
	.string	"\nSocket creation error."
.LC1:
	.string	"\nSocket created."
.LC2:
	.string	"\nBinding error."
.LC3:
	.string	"\nSocket binded."
.LC4:
	.string	"\nMessage Recieving Failed"
.LC5:
	.string	"\nMessage Recieved: "
.LC6:
	.string	"%s"
.LC7:
	.string	"stop"
	.align 8
.LC8:
	.string	"\nPermutations of the string are: "
	.text
	.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
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], -1
	jne	.L9
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L9:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	WORD PTR -96[rbp], 2
	mov	edi, 3388
	call	htons@PLT
	mov	WORD PTR -94[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	DWORD PTR -112[rbp], 16
	mov	DWORD PTR -120[rbp], 16
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], -1
	jne	.L10
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L14:
	lea	rcx, -120[rbp]
	lea	rdx, -80[rbp]
	lea	rsi, -64[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 50
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], -1
	jne	.L11
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L18
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	lea	edx, -1[rax]
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	permute
	jmp	.L14
.L18:
	nop
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"117210.c"
	.text
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.global	permute
	.syntax unified
	.arm
	.fpu softvfp
	.type	permute, %function
permute:
	@ args = 0, 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]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L3
	ldr	r0, [fp, #-16]
	bl	puts
	b	.L7
.L3:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	permute
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L6
.L7:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	permute, .-permute
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Socket creation error.\000"
	.align	2
.LC1:
	.ascii	"\012Socket created.\000"
	.align	2
.LC2:
	.ascii	"\012Binding error.\000"
	.align	2
.LC3:
	.ascii	"\012Socket binded.\000"
	.align	2
.LC4:
	.ascii	"\012Message Recieving Failed\000"
	.align	2
.LC5:
	.ascii	"\012Message Recieved: \000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"stop\000"
	.align	2
.LC8:
	.ascii	"\012Permutations of the string are: \000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L19+4
	bl	printf
	mov	r0, #0
	bl	exit
.L9:
	ldr	r0, .L19+8
	bl	puts
	mov	r3, #2
	strh	r3, [fp, #-92]	@ movhi
	ldr	r0, .L19+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-90]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-88]
	mov	r3, #16
	str	r3, [fp, #-108]
	mov	r3, #16
	str	r3, [fp, #-116]
	sub	r3, fp, #92
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	bind
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L19+16
	bl	printf
	mov	r0, #0
	bl	exit
.L10:
	ldr	r0, .L19+20
	bl	puts
.L14:
	sub	r1, fp, #60
	sub	r3, fp, #116
	str	r3, [sp, #4]
	sub	r3, fp, #76
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #50
	ldr	r0, [fp, #-112]
	bl	recvfrom
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L19+24
	bl	printf
	ldr	r0, [fp, #-112]
	bl	close
	mov	r0, #0
	bl	exit
.L11:
	ldr	r0, .L19+28
	bl	printf
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L19+32
	bl	printf
	sub	r3, fp, #60
	ldr	r1, .L19+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L19+40
	bl	puts
	sub	r3, fp, #60
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	sub	r2, r3, #1
	sub	r3, fp, #60
	mov	r1, #0
	mov	r0, r3
	bl	permute
	b	.L14
.L18:
	nop
	ldr	r0, [fp, #-112]
	bl	close
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	3388
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
