	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_native_function
_register_native_function:              ## @register_native_function
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_jerry_get_global_object
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_jerry_create_external_function
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_function
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_jerry_value_is_constructor
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_jerry_create_string
	movl	%eax, %r15d
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_jerry_set_property
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_release_value
	movl	%r13d, %edi
	callq	_jerry_value_is_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_6
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	%ebx, %edi
	callq	_jerry_release_value
	jmp	LBB0_7
LBB0_4:
	movl	$1, %r15d
LBB0_6:
	movl	%r13d, %r12d
LBB0_7:
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	%r15d, %eax
	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.1:                               ## @.str.1
	.asciz	"!!! register_native_function failed: [%s]\r\n"

L_str:                                  ## @str
	.asciz	"!!! create_external_function failed !!!\r"

	.no_dead_strip	_register_native_function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_native_function
_register_native_function:              ; @register_native_function
	.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	x21, x1
	mov	x20, x0
	bl	_jerry_get_global_object
	mov	x19, x0
	mov	x0, x21
	bl	_jerry_create_external_function
	mov	x21, x0
	bl	_jerry_value_is_function
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_jerry_value_is_constructor
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_jerry_create_string
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_jerry_set_property
	mov	x22, x0
	mov	x0, x21
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_release_value
	mov	x0, x23
	bl	_jerry_release_value
	mov	x0, x22
	bl	_jerry_value_is_error
	cbz	x0, LBB0_5
; %bb.3:
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	w20, #0
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x21
	bl	_jerry_release_value
	mov	w20, #0
	b	LBB0_7
LBB0_5:
	mov	w20, #1
LBB0_6:
	mov	x19, x22
LBB0_7:
	mov	x0, x19
	bl	_jerry_release_value
	mov	x0, x20
	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	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"!!! register_native_function failed: [%s]\r\n"

l_str:                                  ; @str
	.asciz	"!!! create_external_function failed !!!\r"

	.no_dead_strip	_register_native_function
.subsections_via_symbols
