	.file	"816777.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"[FATAL] Should have no arguments\n"
	.align 8
.LC1:
	.string	"[FATAL] Failed to create unix socket: %s\n"
.LC2:
	.string	"/tmp/linit-supd.sock"
	.align 8
.LC3:
	.string	"[FATAL] Failed to bind unix domain socket: %s\n"
.LC4:
	.string	"LINITSOCK"
.LC5:
	.string	"[FATAL] LINITSOCK not set\n"
	.align 8
.LC6:
	.string	"[FATAL] Failed to create socket: %s\n"
	.align 8
.LC7:
	.string	"[FATAL] Socket path is too long\n"
	.align 8
.LC8:
	.string	"[FATAL] Failed to connect: %s\n"
.LC9:
	.string	"r+"
	.align 8
.LC10:
	.string	"[FATAL] Failed to convert fd to stream\n"
.LC11:
	.string	"[FATAL] Failed to listen: %s\n"
.LC12:
	.string	"Starting linit-supd"
.LC13:
	.string	"Accepting"
.LC14:
	.string	"Accepted"
	.align 8
.LC15:
	.string	"[FATAL] Failed to accept connection: %s\n"
.LC16:
	.string	"state linit-supd failed\n"
	.align 8
.LC17:
	.string	"[FATAL] Failed to notify linitd of failure: %s\n"
	.align 8
.LC18:
	.string	"[ERROR] Failed to open stream: %s\n"
	.align 8
.LC19:
	.string	"[ERROR] Failed to read from stream: %s\n"
.LC20:
	.string	"[ERROR] Oversized command\n"
.LC21:
	.string	"[ERROR] Short command\n"
.LC22:
	.string	"Recieved %s\n"
	.align 8
.LC23:
	.string	"[ERROR] Command missing process ID\n"
.LC24:
	.string	"[ERROR] OOM\n"
.LC25:
	.string	"Name: %s PID: %d\n"
	.align 8
.LC26:
	.string	"[ERROR] Command missing signal number\n"
.LC27:
	.string	"[ERROR] process not found"
	.align 8
.LC28:
	.string	"[ERROR] Failed to send signal: %s\n"
.LC29:
	.string	"ok\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, 1296
	mov	DWORD PTR -1284[rbp], edi
	mov	QWORD PTR -1296[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1284[rbp], 1
	je	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L45
.L2:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -1272[rbp], eax
	cmp	DWORD PTR -1272[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 65
	jmp	.L45
.L4:
	lea	rax, -1152[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1152[rbp], 1
	lea	rax, -1152[rbp]
	add	rax, 2
	mov	edx, 107
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncpy@PLT
	lea	rcx, -1152[rbp]
	mov	eax, DWORD PTR -1272[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 65
	jmp	.L45
.L6:
	lea	rdi, .LC4[rip]
	call	getenv@PLT
	mov	QWORD PTR -1216[rbp], rax
	cmp	QWORD PTR -1216[rbp], 0
	jne	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 65
	jmp	.L45
.L47:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -1268[rbp], eax
	cmp	DWORD PTR -1268[rbp], -1
	jne	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 65
	jmp	.L45
.L10:
	lea	rdx, -1152[rbp]
	mov	eax, 0
	mov	ecx, 13
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	WORD PTR [rdx], ax
	add	rdx, 2
	mov	WORD PTR -1152[rbp], 1
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	cmp	rax, 108
	jbe	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	eax, 65
	jmp	.L45
.L11:
	mov	rax, QWORD PTR -1216[rbp]
	lea	rdx, -1152[rbp]
	add	rdx, 2
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	lea	rcx, -1152[rbp]
	mov	eax, DWORD PTR -1268[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 65
	jmp	.L45
.L12:
	mov	eax, DWORD PTR -1268[rbp]
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -1208[rbp], rax
	cmp	QWORD PTR -1208[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, 65
	jmp	.L45
.L13:
	mov	QWORD PTR -1256[rbp], 0
	mov	eax, DWORD PTR -1272[rbp]
	mov	esi, 16
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L48
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 65
	jmp	.L45
.L48:
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L44:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1272[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1264[rbp], eax
	lea	rdi, .LC14[rip]
	call	puts@PLT
	cmp	DWORD PTR -1264[rbp], -1
	jne	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1208[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -1208[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L18:
	mov	eax, 65
	jmp	.L45
.L16:
	mov	eax, DWORD PTR -1264[rbp]
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -1200[rbp], rax
	cmp	QWORD PTR -1200[rbp], 0
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -1264[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L43
.L19:
	mov	rdx, QWORD PTR -1200[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L21:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 10
	jne	.L22
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	ja	.L24
	jmp	.L49
.L22:
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L49:
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L24:
	movzx	eax, BYTE PTR -1040[rbp]
	mov	BYTE PTR -1273[rbp], al
	lea	rax, -1040[rbp]
	add	rax, 1
	mov	QWORD PTR -1192[rbp], rax
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	movsx	eax, BYTE PTR -1273[rbp]
	cmp	eax, 42
	je	.L25
	cmp	eax, 94
	je	.L26
	jmp	.L27
.L25:
	mov	rax, QWORD PTR -1192[rbp]
	mov	QWORD PTR -1168[rbp], rax
	mov	rax, QWORD PTR -1192[rbp]
	mov	QWORD PTR -1248[rbp], rax
	jmp	.L28
.L29:
	add	QWORD PTR -1248[rbp], 1
.L28:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1248[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -1248[rbp]
	cmp	rax, QWORD PTR -1192[rbp]
	jne	.L30
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L30:
	lea	rax, -1256[rbp]
	mov	QWORD PTR -1240[rbp], rax
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -1240[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 16
	mov	QWORD PTR -1240[rbp], rax
.L31:
	mov	rax, QWORD PTR -1240[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L32
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -1160[rbp], rax
	cmp	QWORD PTR -1160[rbp], 0
	jne	.L33
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L33:
	mov	rax, QWORD PTR -1248[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1160[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1160[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L34
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -1160[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L34:
	mov	rax, QWORD PTR -1248[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -1160[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	rax, QWORD PTR -1160[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1240[rbp]
	mov	rdx, QWORD PTR -1160[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -1192[rbp]
	mov	QWORD PTR -1184[rbp], rax
	mov	rax, QWORD PTR -1192[rbp]
	mov	QWORD PTR -1232[rbp], rax
	jmp	.L35
.L36:
	add	QWORD PTR -1232[rbp], 1
.L35:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1232[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -1232[rbp]
	cmp	rax, QWORD PTR -1192[rbp]
	jne	.L37
	lea	rdi, .LC26[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L37:
	lea	rax, -1256[rbp]
	mov	QWORD PTR -1224[rbp], rax
	jmp	.L38
.L40:
	mov	rax, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 16
	mov	QWORD PTR -1224[rbp], rax
.L38:
	mov	rax, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L39
	mov	rax, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
.L39:
	mov	rax, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L41
	lea	rdi, .LC27[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L41:
	mov	rax, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -1260[rbp], eax
	mov	rax, QWORD PTR -1184[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -1260[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	cmp	eax, -1
	jne	.L42
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L43
.L42:
	mov	eax, DWORD PTR -1260[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	rax, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -1176[rbp], rax
	mov	rax, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -1224[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -1176[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
.L27:
	mov	rax, QWORD PTR -1200[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L43:
	jmp	.L44
.L45:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"816777.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[FATAL] Should have no arguments\012\000"
	.align	2
.LC1:
	.ascii	"[FATAL] Failed to create unix socket: %s\012\000"
	.align	2
.LC2:
	.ascii	"/tmp/linit-supd.sock\000"
	.align	2
.LC3:
	.ascii	"[FATAL] Failed to bind unix domain socket: %s\012\000"
	.align	2
.LC4:
	.ascii	"LINITSOCK\000"
	.align	2
.LC5:
	.ascii	"[FATAL] LINITSOCK not set\012\000"
	.align	2
.LC6:
	.ascii	"[FATAL] Failed to create socket: %s\012\000"
	.align	2
.LC7:
	.ascii	"[FATAL] Socket path is too long\012\000"
	.align	2
.LC8:
	.ascii	"[FATAL] Failed to connect: %s\012\000"
	.align	2
.LC9:
	.ascii	"r+\000"
	.align	2
.LC10:
	.ascii	"[FATAL] Failed to convert fd to stream\012\000"
	.align	2
.LC11:
	.ascii	"[FATAL] Failed to listen: %s\012\000"
	.align	2
.LC12:
	.ascii	"Starting linit-supd\000"
	.align	2
.LC13:
	.ascii	"Accepting\000"
	.align	2
.LC14:
	.ascii	"Accepted\000"
	.align	2
.LC15:
	.ascii	"[FATAL] Failed to accept connection: %s\012\000"
	.align	2
.LC16:
	.ascii	"state linit-supd failed\012\000"
	.align	2
.LC17:
	.ascii	"[FATAL] Failed to notify linitd of failure: %s\012\000"
	.align	2
.LC18:
	.ascii	"[ERROR] Failed to open stream: %s\012\000"
	.align	2
.LC19:
	.ascii	"[ERROR] Failed to read from stream: %s\012\000"
	.align	2
.LC20:
	.ascii	"[ERROR] Oversized command\012\000"
	.align	2
.LC21:
	.ascii	"[ERROR] Short command\012\000"
	.align	2
.LC22:
	.ascii	"Recieved %s\012\000"
	.align	2
.LC23:
	.ascii	"[ERROR] Command missing process ID\012\000"
	.align	2
.LC24:
	.ascii	"[ERROR] OOM\012\000"
	.align	2
.LC25:
	.ascii	"Name: %s PID: %d\012\000"
	.align	2
.LC26:
	.ascii	"[ERROR] Command missing signal number\012\000"
	.align	2
.LC27:
	.ascii	"[ERROR] process not found\000"
	.align	2
.LC28:
	.ascii	"[ERROR] Failed to send signal: %s\012\000"
	.align	2
.LC29:
	.ascii	"ok\012\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1216
	sub	sp, sp, #12
	str	r0, [fp, #-1232]
	str	r1, [fp, #-1236]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-1232]
	cmp	r3, #1
	beq	.L2
	ldr	r0, .L50+4
	bl	perror
	mov	r3, #1
	b	.L45
.L2:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-1200]
	ldr	r3, [fp, #-1200]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #65
	b	.L45
.L4:
	sub	r3, fp, #1136
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #1136
	sub	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #1136
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r2, #107
	ldr	r1, .L50+16
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #1136
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-1200]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #65
	b	.L45
.L6:
	ldr	r0, .L50+24
	bl	getenv
	str	r0, [fp, #-1196]
	ldr	r3, [fp, #-1196]
	cmp	r3, #0
	bne	.L47
	ldr	r3, .L50+8
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L50+28
	bl	fwrite
	mov	r3, #65
	b	.L45
.L47:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-1192]
	ldr	r3, [fp, #-1192]
	cmn	r3, #1
	bne	.L10
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+32
	mov	r0, r4
	bl	fprintf
	mov	r3, #65
	b	.L45
.L10:
	sub	r3, fp, #1136
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #1136
	sub	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-1196]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	cmp	r3, #108
	bls	.L11
	ldr	r3, .L50+8
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L50+36
	bl	fwrite
	mov	r3, #65
	b	.L45
.L11:
	sub	r3, fp, #1136
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #2
	ldr	r1, [fp, #-1196]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1136
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-1192]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+40
	mov	r0, r4
	bl	fprintf
	mov	r3, #65
	b	.L45
.L12:
	ldr	r1, .L50+44
	ldr	r0, [fp, #-1192]
	bl	fdopen
	str	r0, [fp, #-1188]
	ldr	r3, [fp, #-1188]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L50+8
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L50+48
	bl	fwrite
	mov	r3, #65
	b	.L45
.L13:
	mov	r3, #0
	str	r3, [fp, #-1220]
	mov	r1, #16
	ldr	r0, [fp, #-1200]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L48
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+52
	mov	r0, r4
	bl	fprintf
	mov	r3, #65
	b	.L45
.L48:
	ldr	r0, .L50+56
	bl	puts
.L44:
	ldr	r0, .L50+60
	bl	puts
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1200]
	bl	accept
	str	r0, [fp, #-1184]
	ldr	r0, .L50+64
	bl	puts
	ldr	r3, [fp, #-1184]
	cmn	r3, #1
	bne	.L16
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+68
	mov	r0, r4
	bl	fprintf
	ldr	r1, .L50+72
	ldr	r0, [fp, #-1188]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+76
	mov	r0, r4
	bl	fprintf
	b	.L18
.L17:
	ldr	r0, [fp, #-1188]
	bl	fclose
.L18:
	mov	r3, #65
	b	.L45
.L16:
	ldr	r1, .L50+44
	ldr	r0, [fp, #-1184]
	bl	fdopen
	str	r0, [fp, #-1180]
	ldr	r3, [fp, #-1180]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+80
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-1184]
	bl	close
	b	.L43
.L19:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1180]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+84
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L21:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L22
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1028]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bhi	.L24
	b	.L49
.L22:
	ldr	r0, .L50+88
	bl	perror
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L49:
	ldr	r0, .L50+92
	bl	perror
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L24:
	ldrb	r3, [fp, #-1040]
	strb	r3, [fp, #-1221]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #1
	str	r3, [fp, #-1176]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L50+96
	bl	printf
	ldrb	r3, [fp, #-1221]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L25
	cmp	r3, #94
	beq	.L26
	b	.L27
.L25:
	ldr	r3, [fp, #-1176]
	str	r3, [fp, #-1160]
	ldr	r3, [fp, #-1176]
	str	r3, [fp, #-1216]
	b	.L28
.L29:
	ldr	r3, [fp, #-1216]
	add	r3, r3, #1
	str	r3, [fp, #-1216]
.L28:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-1216]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L29
	ldr	r2, [fp, #-1216]
	ldr	r3, [fp, #-1176]
	cmp	r2, r3
	bne	.L30
	ldr	r0, .L50+100
	bl	perror
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L30:
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [fp, #-1212]
	b	.L31
.L32:
	ldr	r3, [fp, #-1212]
	ldr	r3, [r3]
	add	r3, r3, #8
	str	r3, [fp, #-1212]
.L31:
	ldr	r3, [fp, #-1212]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L32
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	bne	.L33
	ldr	r0, .L50+104
	bl	perror
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L33:
	ldr	r0, [fp, #-1216]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1156]
	str	r2, [r3]
	ldr	r3, [fp, #-1156]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L34
	ldr	r0, .L50+104
	bl	perror
	ldr	r0, [fp, #-1156]
	bl	free
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L34:
	ldr	r3, [fp, #-1216]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-1160]
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-1156]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-1156]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1156]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L50+108
	bl	printf
	ldr	r3, [fp, #-1212]
	ldr	r2, [fp, #-1156]
	str	r2, [r3]
	b	.L27
.L26:
	ldr	r3, [fp, #-1176]
	str	r3, [fp, #-1172]
	ldr	r3, [fp, #-1176]
	str	r3, [fp, #-1208]
	b	.L35
.L36:
	ldr	r3, [fp, #-1208]
	add	r3, r3, #1
	str	r3, [fp, #-1208]
.L35:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-1208]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L36
	ldr	r2, [fp, #-1208]
	ldr	r3, [fp, #-1176]
	cmp	r2, r3
	bne	.L37
	ldr	r0, .L50+112
	bl	perror
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L37:
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [fp, #-1204]
	b	.L38
.L40:
	ldr	r3, [fp, #-1204]
	ldr	r3, [r3]
	add	r3, r3, #8
	str	r3, [fp, #-1204]
.L38:
	ldr	r3, [fp, #-1204]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-1204]
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-1208]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
.L39:
	ldr	r3, [fp, #-1204]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
	ldr	r0, .L50+116
	bl	perror
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L41:
	ldr	r3, [fp, #-1204]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1168]
	ldr	r0, [fp, #-1172]
	bl	atoi
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-1168]
	bl	kill
	mov	r3, r0
	cmn	r3, #1
	bne	.L42
	ldr	r3, .L50+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L50+120
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-1180]
	bl	fclose
	b	.L43
.L42:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-1168]
	bl	waitpid
	ldr	r3, [fp, #-1204]
	ldr	r3, [r3]
	str	r3, [fp, #-1164]
	ldr	r3, [fp, #-1204]
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-1204]
	str	r2, [r3]
	ldr	r0, [fp, #-1164]
	bl	free
	nop
.L27:
	ldr	r3, [fp, #-1180]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L50+124
	bl	fwrite
	ldr	r0, [fp, #-1180]
	bl	fclose
.L43:
	b	.L44
.L45:
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC30
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
