	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jerryx_resolve_native_module
_jerryx_resolve_native_module:          ## @jerryx_resolve_native_module
	.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, %r13
	movl	%edi, %r15d
	callq	_jerry_get_utf8_string_size
	movq	%rax, %rbx
	movq	_jerry_char_t@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_name_string@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rbx, %rdx
	callq	_JERRY_VLA
	movq	(%r14), %rsi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	callq	_jerry_string_to_utf8_char_buffer
	movq	_first_module_p@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %r12
	testq	%r12, %r12
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_strlen
	cmpq	%rbx, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	*%rcx
	jmp	LBB0_8
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_JERRY_ERROR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_on_resolve_absent@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_jerryx_module_create_error
LBB0_8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_jerry_char_t,4,2               ## @jerry_char_t
	.comm	_name_string,8,3                ## @name_string
	.comm	_first_module_p,8,3             ## @first_module_p
	.comm	_JERRY_ERROR_TYPE,4,2           ## @JERRY_ERROR_TYPE
	.comm	_on_resolve_absent,4,2          ## @on_resolve_absent
	.no_dead_strip	_jerryx_resolve_native_module
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jerryx_resolve_native_module
_jerryx_resolve_native_module:          ; @jerryx_resolve_native_module
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	bl	_jerry_get_utf8_string_size
	mov	x21, x0
Lloh0:
	adrp	x8, _jerry_char_t@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jerry_char_t@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x22, _name_string@GOTPAGE
Lloh4:
	ldr	x22, [x22, _name_string@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x2, x21
	bl	_JERRY_VLA
	ldr	x1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_jerry_string_to_utf8_char_buffer
Lloh5:
	adrp	x8, _first_module_p@GOTPAGE
Lloh6:
	ldr	x8, [x8, _first_module_p@GOTPAGEOFF]
Lloh7:
	ldr	x24, [x8]
	cbz	x24, LBB0_8
; %bb.1:
	ldr	x22, [x22]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [x24, #16]
	cbz	x24, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x24, #8]
	cbz	x23, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_strlen
	cmp	x0, x21
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_strncmp
	cbnz	w0, LBB0_2
; %bb.6:
	ldr	x8, [x24]
	cbz	x8, LBB0_10
; %bb.7:
	blr	x8
	b	LBB0_11
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh8:
	adrp	x8, _JERRY_ERROR_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _JERRY_ERROR_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _on_resolve_absent@GOTPAGE
Lloh12:
	ldr	x8, [x8, _on_resolve_absent@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_jerryx_module_create_error
LBB0_11:
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_jerry_char_t,4,2               ; @jerry_char_t
	.comm	_name_string,8,3                ; @name_string
	.comm	_first_module_p,8,3             ; @first_module_p
	.comm	_JERRY_ERROR_TYPE,4,2           ; @JERRY_ERROR_TYPE
	.comm	_on_resolve_absent,4,2          ; @on_resolve_absent
	.no_dead_strip	_jerryx_resolve_native_module
.subsections_via_symbols
