	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerry_port_normalize_path      ## -- Begin function jerry_port_normalize_path
	.p2align	4, 0x90
_jerry_port_normalize_path:             ## @jerry_port_normalize_path
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_PATH_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_malloc
	movq	%rax, %r12
	movl	(%r14), %edi
	callq	_malloc
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dirname
	movl	$256, %edx                      ## imm = 0x100
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_strncpy
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_strncat
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$256, %edx                      ## imm = 0x100
	xorl	%eax, %eax
	callq	_strncat
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_realpath
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_free
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_strnlen
	cmpq	%r15, %rax
	jae	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_strncpy
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r12, %rdi
	callq	_free
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

	.comm	_MAX_JERRY_PATH_SIZE,4,2        ## @MAX_JERRY_PATH_SIZE
	.comm	__MAX_DIR,4,2                   ## @_MAX_DIR
	.comm	__MAX_DRIVE,4,2                 ## @_MAX_DRIVE
	.comm	__MAX_PATH,4,2                  ## @_MAX_PATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerry_port_normalize_path      ; -- Begin function jerry_port_normalize_path
	.p2align	2
_jerry_port_normalize_path:             ; @jerry_port_normalize_path
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _PATH_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PATH_MAX@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_malloc
	mov	x19, x0
	ldr	w0, [x24]
	bl	_malloc
	mov	x24, x0
	mov	x0, x22
	bl	_dirname
	mov	x1, x0
	mov	w22, #256
	mov	x0, x24
	mov	w2, #256
	bl	_strncpy
	mov	w8, #1
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
	stp	x9, x8, [sp]
	mov	x0, x24
	bl	_strncat
	stp	x23, x22, [sp]
	mov	x0, x24
	bl	_strncat
	mov	x0, x24
	mov	x1, x19
	bl	_realpath
	mov	x23, x0
	mov	x0, x24
	bl	_free
	cbz	x23, LBB0_3
; %bb.1:
	mov	x0, x23
	mov	x1, x20
	bl	_strnlen
	cmp	x0, x20
	b.hs	LBB0_3
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_strncpy
	b	LBB0_4
LBB0_3:
	mov	x22, #0
LBB0_4:
	mov	x0, x19
	bl	_free
	mov	x0, x22
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_MAX_JERRY_PATH_SIZE,4,2        ; @MAX_JERRY_PATH_SIZE
	.comm	__MAX_DIR,4,2                   ; @_MAX_DIR
	.comm	__MAX_DRIVE,4,2                 ; @_MAX_DRIVE
	.comm	__MAX_PATH,4,2                  ; @_MAX_PATH
.subsections_via_symbols
