	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_ref_object                ## -- Begin function ecma_ref_object
	.p2align	4, 0x90
_ecma_ref_object:                       ## @ecma_ref_object
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ECMA_OBJECT_MAX_REF@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_JERRY_LIKELY
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ECMA_OBJECT_REF_ONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_ERR_REF_COUNT_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_jerry_fatal                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMA_OBJECT_MAX_REF,8,3        ## @ECMA_OBJECT_MAX_REF
	.comm	_ECMA_OBJECT_REF_ONE,8,3        ## @ECMA_OBJECT_REF_ONE
	.comm	_ERR_REF_COUNT_LIMIT,4,2        ## @ERR_REF_COUNT_LIMIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_ref_object                ; -- Begin function ecma_ref_object
	.p2align	2
_ecma_ref_object:                       ; @ecma_ref_object
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ECMA_OBJECT_MAX_REF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ECMA_OBJECT_MAX_REF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lt
	bl	_JERRY_LIKELY
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ECMA_OBJECT_REF_ONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ECMA_OBJECT_REF_ONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x8, _ERR_REF_COUNT_LIMIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_REF_COUNT_LIMIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_jerry_fatal
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMA_OBJECT_MAX_REF,8,3        ; @ECMA_OBJECT_MAX_REF
	.comm	_ECMA_OBJECT_REF_ONE,8,3        ; @ECMA_OBJECT_REF_ONE
	.comm	_ERR_REF_COUNT_LIMIT,4,2        ; @ERR_REF_COUNT_LIMIT
.subsections_via_symbols
