	.file	"175533.c"
	.intel_syntax noprefix
	.text
	.local	remote_handle
	.comm	remote_handle,11,8
	.section	.rodata
.LC0:
	.string	"%s host port handle\n"
	.align 8
.LC1:
	.string	"Handle must be no greater than %d characters.\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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 4
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 10
	jbe	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 10
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	init_connection
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	get_remote_handle
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, remote_handle[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	read_loop
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	get_remote_handle
	.type	get_remote_handle, @function
get_remote_handle:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 10
	lea	rsi, remote_handle[rip]
	mov	edi, eax
	call	read@PLT
	mov	BYTE PTR remote_handle[rip+10], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_remote_handle, .-get_remote_handle
	.section	.rodata
.LC2:
	.string	"Couldn't open socket!"
.LC3:
	.string	"Couldn't get host name"
	.align 8
.LC4:
	.string	"Couldn't connect to the socket"
	.text
	.globl	init_connection
	.type	init_connection, @function
init_connection:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jns	.L7
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L8
	lea	rdi, .LC3[rip]
	call	herror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -32[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -60[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rax, -32[rbp]
	mov	rcx, rax
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init_connection, .-init_connection
	.section	.rodata
.LC5:
	.string	"%s> "
.LC6:
	.string	"\\quit"
	.align 8
.LC7:
	.string	"message must be less than 500 characters\n"
.LC8:
	.string	"writing message"
.LC9:
	.string	"reading message"
.LC10:
	.string	"%s> %s\n"
	.text
	.globl	read_loop
	.type	read_loop, @function
read_loop:
.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, 592
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	QWORD PTR -584[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	lea	rax, -528[rbp]
	add	rax, 10
	mov	QWORD PTR -544[rbp], rax
	mov	rax, QWORD PTR -576[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L20:
	mov	rdx, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR -536[rbp]
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L23
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 64
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	rcx, QWORD PTR -576[rbp]
	lea	rax, -528[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rcx, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR -544[rbp]
	mov	edx, 501
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	cmp	QWORD PTR -536[rbp], 512
	jle	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L13
.L16:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -564[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L17
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -564[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, -1
	jne	.L18
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	rdx, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR -584[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -544[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR -576[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -552[rbp]
	lea	rax, -560[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jg	.L20
	jmp	.L15
.L23:
	nop
	jmp	.L15
.L24:
	nop
.L15:
	mov	eax, DWORD PTR -564[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_loop, .-read_loop
	.section	.rodata
.LC11:
	.string	"fstat"
	.text
	.globl	get_fd_size
	.type	get_fd_size, @function
get_fd_size:
.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L26
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L26:
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_fd_size, .-get_fd_size
	.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	"175533.c"
	.text
	.local	remote_handle
	.comm	remote_handle,11,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s host port handle\012\000"
	.align	2
.LC1:
	.ascii	"Handle must be no greater than %d characters.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	beq	.L2
	ldr	r3, .L5
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L5+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #10
	bls	.L3
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #10
	ldr	r1, .L5+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	init_connection
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	get_remote_handle
	ldr	r2, .L5+12
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	read_loop
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	remote_handle
	.size	main, .-main
	.align	2
	.global	get_remote_handle
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_remote_handle, %function
get_remote_handle:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #10
	ldr	r1, .L8
	ldr	r0, [fp, #-8]
	bl	read
	ldr	r3, .L8
	mov	r2, #0
	strb	r2, [r3, #10]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	remote_handle
	.size	get_remote_handle, .-get_remote_handle
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Couldn't open socket!\000"
	.align	2
.LC3:
	.ascii	"Couldn't get host name\000"
	.align	2
.LC4:
	.ascii	"Couldn't connect to the socket\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_connection
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_connection, %function
init_connection:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L16+4
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	ldr	r0, [fp, #-40]
	bl	gethostbyname
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L16+8
	bl	herror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	connect
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L16+12
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-36]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	init_connection, .-init_connection
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%s> \000"
	.align	2
.LC7:
	.ascii	"\\quit\000"
	.align	2
.LC8:
	.ascii	"message must be less than 500 characters\012\000"
	.align	2
.LC9:
	.ascii	"writing message\000"
	.align	2
.LC10:
	.ascii	"reading message\000"
	.align	2
.LC11:
	.ascii	"%s> %s\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_loop
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_loop, %function
read_loop:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	str	r2, [fp, #-552]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-540]
	mov	r3, #0
	str	r3, [fp, #-536]
	sub	r3, fp, #524
	add	r3, r3, #10
	str	r3, [fp, #-532]
	ldr	r1, [fp, #-548]
	ldr	r0, .L31+4
	bl	printf
	b	.L19
.L26:
	ldr	r2, [fp, #-540]
	ldr	r3, [fp, #-528]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-540]
	ldr	r1, .L31+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #524
	mov	r0, r3
	mov	r3, #512
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #524
	mov	r2, #10
	ldr	r1, [fp, #-548]
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-540]
	ldr	r2, .L31+12
	mov	r1, r3
	ldr	r0, [fp, #-532]
	bl	strncpy
	ldr	r3, [fp, #-528]
	cmp	r3, #512
	ble	.L22
	ldr	r3, .L31+16
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L31+20
	bl	fwrite
	b	.L19
.L22:
	sub	r3, fp, #524
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-544]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L31+24
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	sub	r3, fp, #524
	mov	r2, #512
	mov	r1, r3
	ldr	r0, [fp, #-544]
	bl	read
	mov	r3, r0
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L31+28
	bl	perror
	mov	r0, #1
	bl	exit
.L24:
	ldr	r2, [fp, #-532]
	ldr	r1, [fp, #-552]
	ldr	r0, .L31+32
	bl	printf
	ldr	r1, .L31+8
	ldr	r0, [fp, #-532]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r1, [fp, #-548]
	ldr	r0, .L31+4
	bl	printf
.L19:
	ldr	r3, .L31+36
	ldr	r2, [r3]
	sub	r1, fp, #536
	sub	r3, fp, #540
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bgt	.L26
	b	.L21
.L29:
	nop
	b	.L21
.L30:
	nop
.L21:
	ldr	r0, [fp, #-544]
	bl	close
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC12
	.word	.LC6
	.word	.LC7
	.word	501
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stdin
	.size	read_loop, .-read_loop
	.section	.rodata
	.align	2
.LC13:
	.ascii	"fstat\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_fd_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_fd_size, %function
get_fd_size:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	fstat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L34
	ldr	r0, .L37+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L34:
	ldr	r3, [fp, #-56]
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC14
	.word	.LC13
	.size	get_fd_size, .-get_fd_size
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
