	.file	"42654.c"
	.intel_syntax noprefix
	.text
	.local	NAME
	.comm	NAME,4090,32
	.globl	build_address
	.type	build_address, @function
build_address:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 110
	jbe	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L3
	mov	eax, 0
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 110
	lea	rax, stun.0[rip]
	mov	QWORD PTR -24[rbp], rax
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], 1
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 2[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	build_address, .-build_address
	.section	.rodata
.LC0:
	.string	"argc<=2 %d \n"
.LC1:
	.string	"build_address"
.LC2:
	.string	"socket"
.LC3:
	.string	"bind"
.LC4:
	.string	"listen"
.LC5:
	.string	"%d"
.LC6:
	.string	"SOCKET"
.LC7:
	.string	"execvp"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 2
	jg	.L6
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L12
.L6:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	build_address
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L8
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L12
.L8:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L9
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L12
.L9:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	unlink@PLT
	mov	edx, DWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L10
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L12
.L10:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L11
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	lea	rdx, .LC5[rip]
	mov	esi, 4089
	lea	rdi, NAME[rip]
	mov	eax, 0
	call	snprintf@PLT
	mov	edx, 1
	lea	rsi, NAME[rip]
	lea	rdi, .LC6[rip]
	call	setenv@PLT
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC7[rip]
	call	perror@PLT
	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
.LFE7:
	.size	main, .-main
	.local	stun.0
	.comm	stun.0,110,32
	.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	"42654.c"
	.text
	.local	NAME
	.comm	NAME,4090,4
	.align	2
	.global	build_address
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_address, %function
build_address:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #110
	bls	.L2
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	b	.L4
.L2:
	ldr	r3, [fp, #-28]
	mov	r2, #110
	str	r2, [r3]
	ldr	r3, .L5
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-16]
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stun.6659
	.size	build_address, .-build_address
	.section	.rodata
	.align	2
.LC0:
	.ascii	"argc<=2 %d \012\000"
	.align	2
.LC1:
	.ascii	"build_address\000"
	.align	2
.LC2:
	.ascii	"socket\000"
	.align	2
.LC3:
	.ascii	"bind\000"
	.align	2
.LC4:
	.ascii	"listen\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"SOCKET\000"
	.align	2
.LC7:
	.ascii	"execvp\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bgt	.L8
	ldr	r1, [fp, #-24]
	ldr	r0, .L16+4
	bl	printf
	mov	r3, #1
	b	.L14
.L8:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	build_address
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L16+8
	bl	perror
	mov	r3, #1
	b	.L14
.L10:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L16+12
	bl	perror
	mov	r3, #1
	b	.L14
.L11:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	unlink
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L16+16
	bl	perror
	mov	r3, #1
	b	.L14
.L12:
	mov	r1, #10
	ldr	r0, [fp, #-12]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L16+20
	bl	perror
	mov	r3, #1
	b	.L14
.L13:
	ldr	r3, [fp, #-12]
	ldr	r2, .L16+24
	ldr	r1, .L16+28
	ldr	r0, .L16+32
	bl	snprintf
	mov	r2, #1
	ldr	r1, .L16+32
	ldr	r0, .L16+36
	bl	setenv
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	ldr	r0, .L16+40
	bl	perror
	mov	r3, #1
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	4089
	.word	NAME
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.local	stun.6659
	.comm	stun.6659,110,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
