	.file	"190769252.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: %s <proxy_device>\n"
.LC1:
	.string	"Unable to open proxy port %s\n"
.LC2:
	.string	"Got string: %s\n"
	.align 8
.LC3:
	.string	"Proxy read error.  Exiting....\n"
	.align 8
.LC4:
	.string	"Proxy write error.  Exiting....\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, 432
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -408[rbp], -1
	mov	DWORD PTR -396[rbp], 0
	cmp	DWORD PTR -420[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -432[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -112[rbp]
	movabs	rsi, 2408703890194983240
	mov	QWORD PTR [rax], rsi
	mov	WORD PTR 8[rax], 10
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -404[rbp], eax
.L11:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -368[rbp]
	mov	rdi, rdx
#APP
# 52 "the_stack_data/190769252.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -392[rbp], edx
	mov	DWORD PTR -388[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -240[rbp]
	mov	rdi, rdx
#APP
# 53 "the_stack_data/190769252.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -384[rbp], edx
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -408[rbp], -1
	jne	.L3
	mov	rax, QWORD PTR -432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 2050
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -408[rbp], eax
	cmp	DWORD PTR -408[rbp], 0
	jns	.L3
	mov	rax, QWORD PTR -432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -408[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -368[rbp+rax*8]
	mov	eax, DWORD PTR -408[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -368[rbp+rax*8], rdx
	mov	eax, DWORD PTR -408[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -240[rbp+rax*8]
	mov	eax, DWORD PTR -408[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -240[rbp+rax*8], rdx
	mov	eax, DWORD PTR -408[rbp]
	lea	edi, 1[rax]
	lea	rdx, -240[rbp]
	lea	rax, -368[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -376[rbp], eax
	mov	eax, DWORD PTR -408[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -368[rbp+rax*8]
	mov	eax, DWORD PTR -408[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L4
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -408[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -396[rbp], eax
	cmp	DWORD PTR -396[rbp], 0
	jle	.L5
	mov	eax, DWORD PTR -396[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -400[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -400[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	mov	edx, eax
	mov	eax, DWORD PTR -400[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 10
	setne	al
	add	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -400[rbp]
	cdqe
	mov	BYTE PTR -112[rbp+rax], dl
	add	DWORD PTR -400[rbp], 1
.L6:
	mov	eax, DWORD PTR -400[rbp]
	cmp	eax, DWORD PTR -396[rbp]
	jl	.L7
	mov	eax, DWORD PTR -396[rbp]
	mov	DWORD PTR -404[rbp], eax
	jmp	.L4
.L5:
	cmp	DWORD PTR -396[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -408[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	DWORD PTR -408[rbp], -1
	jmp	.L9
.L8:
	cmp	DWORD PTR -396[rbp], 0
	jns	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -408[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -240[rbp+rax*8]
	mov	eax, DWORD PTR -408[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L11
	mov	edx, DWORD PTR -404[rbp]
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -408[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -372[rbp], eax
	mov	eax, DWORD PTR -372[rbp]
	cmp	eax, DWORD PTR -404[rbp]
	je	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -408[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
.L9:
	jmp	.L11
	.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	"190769252.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s <proxy_device>\012\000"
	.align	2
.LC1:
	.ascii	"Hi, mom!\012\000"
	.align	2
.LC2:
	.ascii	"Unable to open proxy port %s\012\000"
	.align	2
.LC3:
	.ascii	"Got string: %s\012\000"
	.align	2
.LC4:
	.ascii	"Proxy read error.  Exiting....\012\000"
	.align	2
.LC5:
	.ascii	"Proxy write error.  Exiting....\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 408
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #416
	str	r0, [fp, #-408]
	str	r1, [fp, #-412]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-404]
	mov	r3, #0
	str	r3, [fp, #-384]
	ldr	r3, [fp, #-408]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-412]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #108
	ldr	r2, .L17+8
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-400]
.L15:
	sub	r3, fp, #364
	str	r3, [fp, #-380]
	mov	r3, #0
	str	r3, [fp, #-392]
	b	.L3
.L4:
	ldr	r3, [fp, #-380]
	ldr	r2, [fp, #-392]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-392]
	add	r3, r3, #1
	str	r3, [fp, #-392]
.L3:
	ldr	r3, [fp, #-392]
	cmp	r3, #31
	bls	.L4
	sub	r3, fp, #236
	str	r3, [fp, #-376]
	mov	r3, #0
	str	r3, [fp, #-388]
	b	.L5
.L6:
	ldr	r3, [fp, #-376]
	ldr	r2, [fp, #-388]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-388]
	add	r3, r3, #1
	str	r3, [fp, #-388]
.L5:
	ldr	r3, [fp, #-388]
	cmp	r3, #31
	bls	.L6
	ldr	r3, [fp, #-404]
	cmn	r3, #1
	bne	.L7
	ldr	r3, [fp, #-412]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L17+12
	mov	r0, r3
	bl	open
	str	r0, [fp, #-404]
	ldr	r3, [fp, #-404]
	cmp	r3, #0
	bge	.L7
	ldr	r3, [fp, #-412]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-404]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-360]
	ldr	r3, [fp, #-404]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-360]
	ldr	r3, [fp, #-404]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-232]
	ldr	r3, [fp, #-404]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-232]
	ldr	r3, [fp, #-404]
	add	r0, r3, #1
	sub	r2, fp, #236
	sub	r1, fp, #364
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	bl	select
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-404]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-360]
	ldr	r3, [fp, #-404]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [fp, #-404]
	bl	read
	str	r0, [fp, #-384]
	ldr	r3, [fp, #-384]
	cmp	r3, #0
	ble	.L9
	sub	r2, fp, #108
	ldr	r3, [fp, #-384]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L17+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-396]
	b	.L10
.L11:
	sub	r2, fp, #108
	ldr	r3, [fp, #-396]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r1, fp, #108
	ldr	r2, [fp, #-396]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, #10
	movne	r2, #1
	moveq	r2, #0
	and	r2, r2, #255
	add	r3, r3, r2
	and	r1, r3, #255
	sub	r2, fp, #108
	ldr	r3, [fp, #-396]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-396]
	add	r3, r3, #1
	str	r3, [fp, #-396]
.L10:
	ldr	r2, [fp, #-396]
	ldr	r3, [fp, #-384]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-384]
	str	r3, [fp, #-400]
	b	.L8
.L9:
	ldr	r3, [fp, #-384]
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-404]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-404]
	b	.L13
.L12:
	ldr	r3, [fp, #-384]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L17+24
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-404]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-232]
	ldr	r3, [fp, #-404]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #108
	ldr	r2, [fp, #-400]
	mov	r1, r3
	ldr	r0, [fp, #-404]
	bl	write
	str	r0, [fp, #-368]
	ldr	r2, [fp, #-368]
	ldr	r3, [fp, #-400]
	cmp	r2, r3
	beq	.L14
	ldr	r0, .L17+28
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	sub	r3, fp, #108
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-404]
	bl	write
.L13:
	b	.L15
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	2050
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
