	.file	"544448.c"
	.intel_syntax noprefix
	.text
	.globl	stlen
	.type	stlen, @function
stlen:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	stlen, .-stlen
	.globl	bb
	.type	bb, @function
bb:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 97
	jne	.L4
	mov	eax, 1
	jmp	.L5
.L4:
	cmp	BYTE PTR -4[rbp], 65
	jne	.L6
	mov	eax, 0
	jmp	.L5
.L6:
	mov	eax, 11
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bb, .-bb
	.section	.rodata
.LC0:
	.string	"%s(%d)\n"
	.text
	.globl	proc_fn
	.type	proc_fn, @function
proc_fn:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	stlen
	cmp	eax, 23001
	jne	.L8
	mov	eax, 2
	jmp	.L12
.L8:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	stlen
	cmp	eax, 4
	jne	.L10
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L10
	mov	eax, 1
	jmp	.L12
.L10:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	stlen
	test	eax, eax
	jle	.L11
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 65
	jne	.L11
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	stlen
	movsx	rdx, eax
	mov	rcx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
.L11:
	mov	edi, 117
	call	bb
	mov	eax, 1
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	proc_fn, .-proc_fn
	.section	.rodata
.LC1:
	.string	"Socket bind failed"
.LC2:
	.string	"Listen failed"
.LC3:
	.string	"Accept failed"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	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 -312[rbp], eax
	lea	rax, -304[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -304[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -300[rbp], eax
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -302[rbp], ax
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L15
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L16
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	DWORD PTR -316[rbp], 16
	lea	rdx, -316[rbp]
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], 0
	jns	.L18
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	lea	rax, -272[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	proc_fn
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
.L18:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L19
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L16
	.cfi_endproc
.LFE9:
	.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	"544448.c"
	.text
	.align	2
	.global	stlen
	.syntax unified
	.arm
	.fpu softvfp
	.type	stlen, %function
stlen:
	@ 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	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stlen, .-stlen
	.align	2
	.global	bb
	.syntax unified
	.arm
	.fpu softvfp
	.type	bb, %function
bb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L4
	mov	r3, #1
	b	.L5
.L4:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L6
	mov	r3, #0
	b	.L5
.L6:
	mov	r3, #11
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bb, .-bb
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s(%d)\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	proc_fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	proc_fn, %function
proc_fn:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-48]
	ldr	r0, .L14+4
	bl	printf
	ldr	r0, [fp, #-48]
	bl	stlen
	mov	r3, r0
	ldr	r2, .L14+8
	cmp	r3, r2
	bne	.L8
	mov	r3, #2
	b	.L12
.L8:
	ldr	r0, [fp, #-48]
	bl	stlen
	mov	r3, r0
	cmp	r3, #4
	bne	.L10
	ldr	r3, [fp, #-48]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L10
	mov	r3, #1
	b	.L12
.L10:
	ldr	r0, [fp, #-48]
	bl	stlen
	mov	r3, r0
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #65
	bne	.L11
	ldr	r0, [fp, #-48]
	bl	stlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #40
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	memcpy
.L11:
	mov	r0, #117
	bl	bb
	mov	r3, #1
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	.LC0
	.word	23001
	.size	proc_fn, .-proc_fn
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Socket bind failed\000"
	.align	2
.LC3:
	.ascii	"Listen failed\000"
	.align	2
.LC4:
	.ascii	"Accept failed\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-304]
	sub	r3, fp, #296
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #292
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-316]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #292
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #296
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L23+4
	bl	puts
	mov	r0, #1
	bl	exit
.L17:
	mov	r1, #5
	ldr	r0, [fp, #-304]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L23+8
	bl	puts
	mov	r0, #1
	bl	exit
.L18:
	mov	r3, #16
	str	r3, [fp, #-308]
	sub	r2, fp, #308
	sub	r3, fp, #280
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	accept
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L23+12
	bl	puts
	mov	r0, #1
	bl	exit
.L21:
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	proc_fn
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
.L20:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-300]
	bl	close
	b	.L18
.L24:
	.align	2
.L23:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
