	.file	"extr_jerry_port.c_jerry_port_read_source.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rb"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Error: failed to open file: %s\n"
	.align 8
.LC2:
	.string	"Error: failed to allocate memory for module"
	.align 8
.LC3:
	.string	"Error: failed to read file: %s\n"
	.text
	.p2align 4
	.globl	jerry_port_read_source
	.type	jerry_port_read_source, @function
jerry_port_read_source:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	call	fopen@PLT
	test	rax, rax
	je	.L8
	mov	rdi, rax
	mov	rbp, rax
	call	jerry_port_get_file_size@PLT
	mov	rdi, rax
	mov	r14, rax
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L9
	mov	rdx, r14
	mov	rdi, rax
	mov	rcx, rbp
	mov	esi, 1
	call	fread@PLT
	mov	rdi, rbp
	mov	r14, rax
	test	rax, rax
	je	.L10
	call	fclose@PLT
	mov	QWORD PTR [rbx], r14
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	fclose@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	free@PLT
	mov	edi, DWORD PTR JERRY_LOG_LEVEL_ERROR[rip]
	mov	rdx, r13
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	jerry_port_log@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR JERRY_LOG_LEVEL_ERROR[rip]
	mov	rdx, r13
	xor	eax, eax
	xor	r12d, r12d
	lea	rsi, .LC1[rip]
	call	jerry_port_log@PLT
	jmp	.L1
.L9:
	mov	rdi, rbp
	call	fclose@PLT
	mov	edi, DWORD PTR JERRY_LOG_LEVEL_ERROR[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	jerry_port_log@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	jerry_port_read_source, .-jerry_port_read_source
	.comm	JERRY_LOG_LEVEL_ERROR,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_jerry_port.c_jerry_port_read_source.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"Error: failed to open file: %s\012\000"
	.align	2
.LC2:
	.ascii	"Error: failed to allocate memory for module\000"
	.align	2
.LC3:
	.ascii	"Error: failed to read file: %s\012\000"
	.text
	.align	2
	.global	jerry_port_read_source
	.syntax unified
	.arm
	.fpu softvfp
	.type	jerry_port_read_source, %function
jerry_port_read_source:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r1, .L11
	mov	r7, r0
	bl	fopen
	subs	r8, r0, #0
	beq	.L8
	bl	jerry_port_get_file_size
	mov	r5, r0
	bl	malloc
	subs	r4, r0, #0
	beq	.L9
	mov	r2, r5
	mov	r3, r8
	mov	r1, #1
	bl	fread
	subs	r5, r0, #0
	mov	r0, r8
	beq	.L10
	bl	fclose
	str	r5, [r6]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bl	fclose
	mov	r0, r4
	mov	r4, r5
	bl	free
	ldr	r3, .L11+4
	mov	r2, r7
	ldr	r0, [r3]
	ldr	r1, .L11+8
	bl	jerry_port_log
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L11+4
	mov	r2, r7
	ldr	r0, [r3]
	ldr	r1, .L11+12
	mov	r4, r8
	bl	jerry_port_log
	b	.L1
.L9:
	mov	r0, r8
	bl	fclose
	ldr	r3, .L11+4
	ldr	r1, .L11+16
	ldr	r0, [r3]
	bl	jerry_port_log
	b	.L1
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	JERRY_LOG_LEVEL_ERROR
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	jerry_port_read_source, .-jerry_port_read_source
	.comm	JERRY_LOG_LEVEL_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
