	.file	"165768964.c"
	.intel_syntax noprefix
	.text
	.globl	res
	.bss
	.align 8
	.type	res, @object
	.size	res, 8
res:
	.zero	8
	.globl	hints
	.align 32
	.type	hints, @object
	.size	hints, 48
hints:
	.zero	48
	.text
	.globl	reset
	.type	reset, @function
reset:
.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 hints[rip+4], 2
	mov	DWORD PTR hints[rip+8], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reset, .-reset
	.globl	sch
	.bss
	.align 4
	.type	sch, @object
	.size	sch, 4
sch:
	.zero	4
	.globl	in_file
	.align 8
	.type	in_file, @object
	.size	in_file, 8
in_file:
	.zero	8
	.globl	out_file
	.align 8
	.type	out_file, @object
	.size	out_file, 8
out_file:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	cpn
	.type	cpn, @function
cpn:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L3
.L5:
	mov	rax, QWORD PTR out_file[rip]
	mov	edx, DWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR out_file[rip]
	mov	rdi, rax
	call	fflush@PLT
	cmp	DWORD PTR -4[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 0
	call	_exit@PLT
.L4:
	add	DWORD PTR -8[rbp], 1
.L3:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L5
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cpn, .-cpn
	.section	.rodata
.LC1:
	.string	"%s\n"
	.text
	.globl	cpk
	.type	cpk, @function
cpk:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR out_file[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR out_file[rip]
	mov	rdi, rax
	call	fflush@PLT
	cmp	DWORD PTR -4[rbp], 0
	jns	.L8
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 0
	call	_exit@PLT
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cpk, .-cpk
	.section	.rodata
.LC2:
	.string	"%d"
	.text
	.globl	crk
	.type	crk, @function
crk:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR in_file[rip]
	lea	rdx, -12[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jns	.L10
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 0
	call	_exit@PLT
.L10:
	mov	eax, DWORD PTR -12[rbp]
	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
.LFE9:
	.size	crk, .-crk
	.section	.rodata
.LC3:
	.string	"r"
.LC4:
	.string	"w"
.LC5:
	.string	"%llu"
.LC6:
	.string	"%llu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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], 3
	jg	.L14
	mov	eax, 1
	jmp	.L20
.L14:
	call	reset
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, res[rip]
	lea	rdx, hints[rip]
	mov	rdi, rax
	call	getaddrinfo@PLT
	test	eax, eax
	jns	.L16
	mov	edi, 0
	call	_exit@PLT
.L16:
	mov	rax, QWORD PTR res[rip]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR res[rip]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR sch[rip], eax
	mov	eax, DWORD PTR sch[rip]
	test	eax, eax
	jns	.L17
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 0
	call	_exit@PLT
.L17:
	mov	rax, QWORD PTR res[rip]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR res[rip]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR sch[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L18
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 0
	call	_exit@PLT
.L18:
	mov	eax, DWORD PTR sch[rip]
	mov	edi, eax
	call	dup@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR sch[rip]
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR in_file[rip], rax
	mov	eax, DWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR out_file[rip], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	cpk
	mov	eax, 0
	call	crk
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	cpn
	mov	rax, QWORD PTR in_file[rip]
	lea	rdx, -16[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jns	.L19
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 0
	call	_exit@PLT
.L19:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR in_file[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR out_file[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR res[rip]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, 0
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"165768964.c"
	.text
	.comm	res,4,4
	.global	hints
	.bss
	.align	2
	.type	hints, %object
	.size	hints, 32
hints:
	.space	32
	.text
	.align	2
	.global	reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset, %function
reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L2
	mov	r2, #2
	str	r2, [r3, #4]
	ldr	r3, .L2
	mov	r2, #1
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	hints
	.size	reset, .-reset
	.global	sch
	.bss
	.align	2
	.type	sch, %object
	.size	sch, 4
sch:
	.space	4
	.comm	in_file,4,4
	.comm	out_file,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	cpn
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpn, %function
cpn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L5
.L7:
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L8+4
	mov	r0, r3
	bl	fprintf
	str	r0, [fp, #-8]
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L6
	ldr	r3, .L8+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r0, #0
	bl	_exit
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L7
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	out_file
	.word	.LC0
	.word	res
	.size	cpn, .-cpn
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	cpk
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpk, %function
cpk:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L13+4
	mov	r0, r3
	bl	fprintf
	str	r0, [fp, #-8]
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L12
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r0, #0
	bl	_exit
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	out_file
	.word	.LC1
	.word	res
	.size	cpk, .-cpk
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	crk
	.syntax unified
	.arm
	.fpu softvfp
	.type	crk, %function
crk:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L19+4
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L19+8
	mov	r0, r3
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bge	.L16
	ldr	r3, .L19+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r0, #0
	bl	_exit
.L16:
	ldr	r3, [fp, #-12]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	in_file
	.word	.LC2
	.word	res
	.size	crk, .-crk
	.section	.rodata
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"%llu\000"
	.align	2
.LC7:
	.ascii	"%llu\012\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bgt	.L22
	mov	r3, #1
	b	.L28
.L22:
	bl	reset
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r1, [r3]
	ldr	r3, .L30+4
	ldr	r2, .L30+8
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	bge	.L24
	mov	r0, #0
	bl	_exit
.L24:
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r0, [r3, #4]
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r2, #0
	mov	r1, r3
	bl	socket
	mov	r3, r0
	ldr	r2, .L30+12
	str	r3, [r2]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L25
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r0, #0
	bl	_exit
.L25:
	ldr	r3, .L30+12
	ldr	r0, [r3]
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r1, [r3, #20]
	ldr	r3, .L30+4
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L26
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r0, #0
	bl	_exit
.L26:
	ldr	r3, .L30+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	dup
	str	r0, [fp, #-28]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	ldr	r1, .L30+16
	mov	r0, r3
	bl	fdopen
	mov	r3, r0
	ldr	r2, .L30+20
	str	r3, [r2]
	ldr	r1, .L30+24
	ldr	r0, [fp, #-28]
	bl	fdopen
	mov	r3, r0
	ldr	r2, .L30+28
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	cpk
	bl	crk
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	cpn
	ldr	r3, .L30+20
	ldr	r3, [r3]
	sub	r2, fp, #20
	ldr	r1, .L30+32
	mov	r0, r3
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bge	.L27
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r0, #0
	bl	_exit
.L27:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L30+36
	bl	printf
	ldr	r3, .L30+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L30+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L30+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L30+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r3, #0
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC8
	.word	res
	.word	hints
	.word	sch
	.word	.LC4
	.word	in_file
	.word	.LC5
	.word	out_file
	.word	.LC6
	.word	.LC7
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
