	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerry_port_read_source         ## -- Begin function jerry_port_read_source
	.p2align	4, 0x90
_jerry_port_read_source:                ## @jerry_port_read_source
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_jerry_port_get_file_size
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_fread
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_fclose
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:
	movq	%r13, (%r15)
	jmp	LBB0_8
LBB0_1:
	movq	_JERRY_LOG_LEVEL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_JERRY_LOG_LEVEL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_jerry_port_log
	jmp	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	callq	_free
	movq	_JERRY_LOG_LEVEL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	xorl	%r12d, %r12d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_jerry_port_log
LBB0_8:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_JERRY_LOG_LEVEL_ERROR,4,2      ## @JERRY_LOG_LEVEL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Error: failed to open file: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error: failed to allocate memory for module"

L_.str.3:                               ## @.str.3
	.asciz	"Error: failed to read file: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerry_port_read_source         ; -- Begin function jerry_port_read_source
	.p2align	2
_jerry_port_read_source:                ; @jerry_port_read_source
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	bl	_jerry_port_get_file_size
	mov	x23, x0
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x23
	mov	x3, x22
	bl	_fread
	mov	x23, x0
	mov	x0, x22
	bl	_fclose
	cbz	x23, LBB0_6
; %bb.3:
	str	x23, [x20]
	b	LBB0_8
LBB0_4:
Lloh2:
	adrp	x8, _JERRY_LOG_LEVEL_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JERRY_LOG_LEVEL_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_fclose
Lloh7:
	adrp	x8, _JERRY_LOG_LEVEL_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _JERRY_LOG_LEVEL_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_jerry_port_log
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_free
Lloh12:
	adrp	x8, _JERRY_LOG_LEVEL_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JERRY_LOG_LEVEL_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	bl	_jerry_port_log
	mov	x21, #0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_JERRY_LOG_LEVEL_ERROR,4,2      ; @JERRY_LOG_LEVEL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Error: failed to open file: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error: failed to allocate memory for module"

l_.str.3:                               ; @.str.3
	.asciz	"Error: failed to read file: %s\n"

.subsections_via_symbols
