	.file	"974869.c"
	.intel_syntax noprefix
	.text
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	cmovge	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MAX, .-MAX
	.section	.rodata
.LC0:
	.string	"Connect to %s:%u\n"
.LC1:
	.string	"exit\n"
.LC2:
	.string	"%s"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 224
	mov	DWORD PTR -4308[rbp], edi
	mov	QWORD PTR -4320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -4256[rbp]
	mov	rdi, rdx
#APP
# 25 "the_stack_data/974869.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -4292[rbp], edx
	mov	DWORD PTR -4288[rbp], eax
	cmp	DWORD PTR -4308[rbp], 3
	jne	.L4
	mov	rax, QWORD PTR -4320[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -4320[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR -4296[rbp], ax
	movzx	edx, WORD PTR -4296[rbp]
	lea	rax, -4128[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	lea	rax, -4128[rbp]
	movabs	rcx, 3328210909095473713
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 49
	mov	WORD PTR -4296[rbp], 3000
.L5:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4284[rbp], eax
	mov	DWORD PTR -4280[rbp], 16
	mov	edx, DWORD PTR -4280[rbp]
	lea	rax, -4272[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -4272[rbp], 2
	lea	rax, -4128[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -4268[rbp], eax
	movzx	eax, WORD PTR -4296[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -4270[rbp], ax
	lea	rcx, -4272[rbp]
	mov	eax, DWORD PTR -4284[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
.L10:
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -4256[rbp]
	or	rax, 1
	mov	QWORD PTR -4256[rbp], rax
	mov	eax, DWORD PTR -4284[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4256[rbp+rax*8]
	mov	eax, DWORD PTR -4284[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 -4256[rbp+rax*8], rdx
	mov	eax, DWORD PTR -4284[rbp]
	mov	esi, eax
	mov	edi, 0
	call	MAX
	add	eax, 1
	mov	WORD PTR -4294[rbp], ax
	movzx	eax, WORD PTR -4294[rbp]
	lea	rsi, -4256[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
	mov	rax, QWORD PTR -4256[rbp]
	and	eax, 1
	test	rax, rax
	je	.L6
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -4276[rbp], eax
	lea	rax, -4112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4284[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L10
.L6:
	mov	eax, DWORD PTR -4284[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -4256[rbp+rax*8]
	mov	eax, DWORD PTR -4284[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	.L10
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4284[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4276[rbp], eax
	cmp	DWORD PTR -4276[rbp], 0
	jle	.L10
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L14:
	nop
	mov	eax, DWORD PTR -4284[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"974869.c"
	.text
	.align	2
	.global	MAX
	.syntax unified
	.arm
	.fpu softvfp
	.type	MAX, %function
MAX:
	@ 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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	MAX, .-MAX
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Connect to %s:%u\012\000"
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"exit\012\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4288
	sub	sp, sp, #20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-196]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-200]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #20
	str	r3, [r2, #-180]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-184]
	b	.L4
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-184]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	add	r3, r3, #1
	str	r3, [r2, #-184]
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	cmp	r3, #31
	bls	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	cmp	r3, #3
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-200]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-200]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	strh	r3, [r2, #-188]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrh	r2, [r3, #-188]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L17+4
	bl	printf
	b	.L7
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r2, .L17+8
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, .L17+12
	strh	r2, [r3, #-188]	@ movhi
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-176]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-172]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r2, [r2, #-172]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-164]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-160]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrh	r3, [r3, #-188]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	strh	r2, [r3, #-162]	@ movhi
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-176]
	bl	connect
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	orr	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-148]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-148]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	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
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-148]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-176]
	mov	r0, #0
	bl	MAX
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r3, #1
	strh	r3, [r2, #-186]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrh	r0, [r3, #-186]
	sub	r1, fp, #4224
	sub	r1, r1, #12
	sub	r1, r1, #20
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [r4, #-168]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L17+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-176]
	bl	write
	b	.L12
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-148]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	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	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-176]
	bl	read
	str	r0, [r4, #-168]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	cmp	r3, #0
	ble	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L17+20
	bl	printf
	b	.L12
.L16:
	nop
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-176]
	bl	close
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	3000
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
