	.file	"extr_tlclient.c_rpc_read_packet_from_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
.LC1:
	.string	"fopen (\"%s\", \"r\") failed. %m\n"
.LC2:
	.string	"%x"
.LC3:
	.string	"RPC packet is too big.\n"
	.text
	.p2align 4
	.type	rpc_read_packet_from_file, @function
rpc_read_packet_from_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	fopen@PLT
	test	rax, rax
	je	.L2
	mov	rbp, rax
	mov	eax, DWORD PTR BUFF_SIZE[rip]
	xor	ebx, ebx
	xor	r12d, r12d
	lea	r13, .LC2[rip]
	test	eax, eax
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	lea	r12d, 1[rbx]
	add	rbx, 1
	cmp	DWORD PTR BUFF_SIZE[rip], ebx
	jle	.L4
.L3:
	mov	rdx, QWORD PTR P[rip]
	mov	rsi, r13
	mov	rdi, rbp
	mov	r12d, ebx
	add	rdx, rbx
	call	fscanf@PLT
	cmp	eax, 1
	je	.L6
.L4:
	mov	rdi, rbp
	call	fclose@PLT
	cmp	DWORD PTR BUFF_SIZE[rip], r12d
	je	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	xor	eax, eax
	mov	r12d, -1
	call	kprintf@PLT
	jmp	.L1
.L2:
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	xor	eax, eax
	mov	r12d, -1
	call	kprintf@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rpc_read_packet_from_file, .-rpc_read_packet_from_file
	.comm	P,8,8
	.comm	BUFF_SIZE,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_tlclient.c_rpc_read_packet_from_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"fopen (\"%s\", \"r\") failed. %m\012\000"
	.align	2
.LC2:
	.ascii	"%x\000"
	.align	2
.LC3:
	.ascii	"RPC packet is too big.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rpc_read_packet_from_file, %function
rpc_read_packet_from_file:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L11
	mov	r4, r0
	bl	fopen
	subs	r5, r0, #0
	beq	.L2
	ldr	r6, .L11+4
	mov	r4, #0
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L4
	ldr	r8, .L11+8
	ldr	r7, .L11+12
	b	.L3
.L6:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L4
.L3:
	ldr	r2, [r8]
	mov	r1, r7
	mov	r0, r5
	add	r2, r4, r2
	bl	fscanf
	cmp	r0, #1
	beq	.L6
.L4:
	mov	r0, r5
	bl	fclose
	ldr	r3, [r6]
	cmp	r3, r4
	beq	.L10
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, .L11+16
	bl	kprintf
	mvn	r4, #0
	b	.L1
.L2:
	mov	r1, r4
	ldr	r0, .L11+20
	bl	kprintf
	mvn	r4, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	BUFF_SIZE
	.word	P
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.size	rpc_read_packet_from_file, .-rpc_read_packet_from_file
	.comm	P,4,4
	.comm	BUFF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
