	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_op_general_object_default_value ## -- Begin function ecma_op_general_object_default_value
	.p2align	4, 0x90
_ecma_op_general_object_default_value:  ## @ecma_op_general_object_default_value
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_ecma_is_lexical_environment
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
LBB0_3:
	callq	_JERRY_ASSERT
	movq	_ECMA_PREFERRED_TYPE_NO@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_8
## %bb.4:
	movq	_LIT_MAGIC_STRING_DATE_UL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ecma_object_class_is
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ECMA_PREFERRED_TYPE_STRING@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ECMA_PREFERRED_TYPE_NUMBER@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %r15
LBB0_8:
	movq	_ECMA_PREFERRED_TYPE_STRING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_10
## %bb.9:
	movq	_LIT_MAGIC_STRING_TO_STRING_UL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_LIT_MAGIC_STRING_VALUE_OF_UL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ecma_op_object_get_by_magic_id
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	jne	LBB0_27
## %bb.12:
	movq	_ECMA_VALUE_EMPTY@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	%ebx, %edi
	callq	_ecma_op_is_callable
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	%ebx, %edi
	callq	_ecma_get_object_from_value
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_ecma_make_object_value
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ecma_op_function_call
	movl	%eax, %r12d
LBB0_14:
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r12d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	je	LBB0_16
LBB0_26:
	movl	%r12d, %ebx
	jmp	LBB0_27
LBB0_16:
	movl	%r12d, %edi
	callq	_ecma_is_value_empty
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movl	%r12d, %edi
	callq	_ecma_is_value_object
	testl	%eax, %eax
	je	LBB0_26
LBB0_18:
	movl	%r12d, %edi
	callq	_ecma_free_value
	movq	_ECMA_PREFERRED_TYPE_NUMBER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_20
## %bb.19:
	movq	_LIT_MAGIC_STRING_TO_STRING_UL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_20:
	movq	_LIT_MAGIC_STRING_VALUE_OF_UL@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ecma_op_object_get_by_magic_id
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	jne	LBB0_27
## %bb.22:
	movl	(%r13), %r15d
	movl	%ebx, %edi
	callq	_ecma_op_is_callable
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	%ebx, %edi
	callq	_ecma_get_object_from_value
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_ecma_make_object_value
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ecma_op_function_call
	movl	%eax, %r15d
LBB0_24:
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r15d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	je	LBB0_28
LBB0_25:
	movl	%r15d, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movl	%r15d, %edi
	callq	_ecma_is_value_empty
	testl	%eax, %eax
	jne	LBB0_30
## %bb.29:
	movl	%r15d, %edi
	callq	_ecma_is_value_object
	testl	%eax, %eax
	je	LBB0_25
LBB0_30:
	movl	%r15d, %edi
	callq	_ecma_free_value
	leaq	L_.str(%rip), %rdi
	callq	_ECMA_ERR_MSG
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecma_raise_type_error          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMA_PREFERRED_TYPE_NO,8,3     ## @ECMA_PREFERRED_TYPE_NO
	.comm	_LIT_MAGIC_STRING_DATE_UL,4,2   ## @LIT_MAGIC_STRING_DATE_UL
	.comm	_ECMA_PREFERRED_TYPE_STRING,8,3 ## @ECMA_PREFERRED_TYPE_STRING
	.comm	_ECMA_PREFERRED_TYPE_NUMBER,8,3 ## @ECMA_PREFERRED_TYPE_NUMBER
	.comm	_LIT_MAGIC_STRING_TO_STRING_UL,4,2 ## @LIT_MAGIC_STRING_TO_STRING_UL
	.comm	_LIT_MAGIC_STRING_VALUE_OF_UL,4,2 ## @LIT_MAGIC_STRING_VALUE_OF_UL
	.comm	_ECMA_VALUE_EMPTY,4,2           ## @ECMA_VALUE_EMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid argument type in [[DefaultValue]]."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_op_general_object_default_value ; -- Begin function ecma_op_general_object_default_value
	.p2align	2
_ecma_op_general_object_default_value:  ; @ecma_op_general_object_default_value
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ecma_is_lexical_environment
	cmp	w0, #0
	cset	w0, eq
LBB0_2:
	bl	_JERRY_ASSERT
Lloh0:
	adrp	x8, _ECMA_PREFERRED_TYPE_NO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECMA_PREFERRED_TYPE_NO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x21, _ECMA_PREFERRED_TYPE_STRING@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ECMA_PREFERRED_TYPE_STRING@GOTPAGEOFF]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _LIT_MAGIC_STRING_DATE_UL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIT_MAGIC_STRING_DATE_UL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ecma_object_class_is
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x20, [x21]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ECMA_PREFERRED_TYPE_NUMBER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECMA_PREFERRED_TYPE_NUMBER@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
LBB0_6:
Lloh11:
	adrp	x23, _LIT_MAGIC_STRING_TO_STRING_UL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _LIT_MAGIC_STRING_TO_STRING_UL@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh13:
	adrp	x24, _LIT_MAGIC_STRING_VALUE_OF_UL@GOTPAGE
Lloh14:
	ldr	x24, [x24, _LIT_MAGIC_STRING_VALUE_OF_UL@GOTPAGEOFF]
	cmp	x20, x8
	csel	x8, x23, x24, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ecma_op_object_get_by_magic_id
	mov	x21, x0
	bl	_ECMA_IS_VALUE_ERROR
	cbnz	x0, LBB0_18
; %bb.7:
Lloh15:
	adrp	x25, _ECMA_VALUE_EMPTY@GOTPAGE
Lloh16:
	ldr	x25, [x25, _ECMA_VALUE_EMPTY@GOTPAGEOFF]
	ldr	w22, [x25]
	mov	x0, x21
	bl	_ecma_op_is_callable
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_ecma_get_object_from_value
	mov	x22, x0
	mov	x0, x19
	bl	_ecma_make_object_value
	mov	x1, x0
	mov	x0, x22
	mov	x2, #0
	mov	w3, #0
	bl	_ecma_op_function_call
	mov	x22, x0
LBB0_9:
	mov	x0, x21
	bl	_ecma_free_value
	mov	x0, x22
	bl	_ECMA_IS_VALUE_ERROR
	cbz	x0, LBB0_11
LBB0_10:
	mov	x21, x22
	b	LBB0_18
LBB0_11:
	mov	x0, x22
	bl	_ecma_is_value_empty
	cbnz	w0, LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_ecma_is_value_object
	cbz	w0, LBB0_10
LBB0_13:
	mov	x0, x22
	bl	_ecma_free_value
Lloh17:
	adrp	x8, _ECMA_PREFERRED_TYPE_NUMBER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ECMA_PREFERRED_TYPE_NUMBER@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x20, x8
	csel	x8, x23, x24, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ecma_op_object_get_by_magic_id
	mov	x21, x0
	bl	_ECMA_IS_VALUE_ERROR
	cbnz	x0, LBB0_18
; %bb.14:
	ldr	w20, [x25]
	mov	x0, x21
	bl	_ecma_op_is_callable
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_ecma_get_object_from_value
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_make_object_value
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	mov	w3, #0
	bl	_ecma_op_function_call
	mov	x20, x0
LBB0_16:
	mov	x0, x21
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cbz	x0, LBB0_19
LBB0_17:
	mov	x21, x20
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x20
	bl	_ecma_is_value_empty
	cbnz	w0, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_ecma_is_value_object
	cbz	w0, LBB0_17
LBB0_21:
	mov	x0, x20
	bl	_ecma_free_value
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ECMA_ERR_MSG
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ecma_raise_type_error
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMA_PREFERRED_TYPE_NO,8,3     ; @ECMA_PREFERRED_TYPE_NO
	.comm	_LIT_MAGIC_STRING_DATE_UL,4,2   ; @LIT_MAGIC_STRING_DATE_UL
	.comm	_ECMA_PREFERRED_TYPE_STRING,8,3 ; @ECMA_PREFERRED_TYPE_STRING
	.comm	_ECMA_PREFERRED_TYPE_NUMBER,8,3 ; @ECMA_PREFERRED_TYPE_NUMBER
	.comm	_LIT_MAGIC_STRING_TO_STRING_UL,4,2 ; @LIT_MAGIC_STRING_TO_STRING_UL
	.comm	_LIT_MAGIC_STRING_VALUE_OF_UL,4,2 ; @LIT_MAGIC_STRING_VALUE_OF_UL
	.comm	_ECMA_VALUE_EMPTY,4,2           ; @ECMA_VALUE_EMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid argument type in [[DefaultValue]]."

.subsections_via_symbols
