	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function test_promise_resolve_success
LCPI0_0:
	.quad	0x4008000000000000              ## double 3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_promise_resolve_success:          ## @test_promise_resolve_success
	.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
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_jerry_create_promise
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_jerry_get_promise_result
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_undefined
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%r15d, %edi
	callq	_jerry_get_promise_state
	movq	_JERRY_PROMISE_STATE_PENDING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	xorl	%eax, %eax
	callq	_jerry_create_object
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rdi
	callq	_jerry_create_string
	movl	%eax, %r12d
	movl	$3, %edi
	callq	_jerry_create_number
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_jerry_set_property
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_boolean
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_jerry_get_boolean_value
	xorl	%r14d, %r14d
	cmpl	$1, %eax
	sete	%r14b
LBB0_2:
	movl	%r14d, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_jerry_resolve_or_reject_promise
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_get_promise_result
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_jerry_value_is_object
	movl	%eax, %edi
	callq	_TEST_ASSERT
	leaq	L_.str(%rip), %rdi
	callq	_jerry_create_string
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_jerry_get_property
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_jerry_value_is_number
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%r14d, %edi
	callq	_jerry_get_number_value
	cmpeqsd	LCPI0_0(%rip), %xmm0
	movq	%xmm0, %rdi
	andl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TEST_ASSERT
	movl	%r14d, %edi
	callq	_jerry_release_value
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_get_promise_state
	movq	_JERRY_PROMISE_STATE_FULFILLED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%r13d, %edi
	callq	_jerry_release_value
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	$50, %edi
	callq	_jerry_create_number
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_jerry_resolve_or_reject_promise
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_jerry_get_promise_result
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_jerry_value_is_object
	movl	%eax, %edi
	callq	_TEST_ASSERT
	leaq	L_.str(%rip), %rdi
	callq	_jerry_create_string
	movl	%eax, %r14d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_jerry_get_property
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_number
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_get_number_value
	cmpeqsd	LCPI0_0(%rip), %xmm0
	movq	%xmm0, %rdi
	andl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r14d, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_get_promise_state
	xorl	%edi, %edi
	movq	_JERRY_PROMISE_STATE_FULFILLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%r13d, %edi
	callq	_jerry_release_value
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jerry_release_value            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JERRY_PROMISE_STATE_PENDING,8,3 ## @JERRY_PROMISE_STATE_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key_one"

	.comm	_JERRY_PROMISE_STATE_FULFILLED,8,3 ## @JERRY_PROMISE_STATE_FULFILLED
	.no_dead_strip	_test_promise_resolve_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_promise_resolve_success
_test_promise_resolve_success:          ; @test_promise_resolve_success
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	bl	_jerry_create_promise
	mov	x19, x0
	bl	_jerry_get_promise_result
	mov	x20, x0
	bl	_jerry_value_is_undefined
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_get_promise_state
Lloh0:
	adrp	x8, _JERRY_PROMISE_STATE_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JERRY_PROMISE_STATE_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_release_value
	bl	_jerry_create_object
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_jerry_create_string
	mov	x21, x0
	mov	w0, #3
	bl	_jerry_create_number
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_jerry_set_property
	mov	x22, x0
	bl	_jerry_value_is_boolean
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_jerry_get_boolean_value
	cmp	w0, #1
	cset	w0, eq
LBB0_2:
	bl	_TEST_ASSERT
	mov	x0, x22
	bl	_jerry_release_value
	mov	x0, x21
	bl	_jerry_release_value
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_jerry_resolve_or_reject_promise
	mov	x21, x0
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_get_promise_result
	mov	x22, x0
	bl	_jerry_value_is_object
	bl	_TEST_ASSERT
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_jerry_create_string
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_jerry_get_property
	mov	x24, x0
	bl	_jerry_value_is_number
	bl	_TEST_ASSERT
	mov	x0, x24
	bl	_jerry_get_number_value
	fmov	d8, #3.00000000
	fcmp	d0, d8
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x24
	bl	_jerry_release_value
	mov	x0, x23
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_get_promise_state
Lloh7:
	adrp	x24, _JERRY_PROMISE_STATE_FULFILLED@GOTPAGE
Lloh8:
	ldr	x24, [x24, _JERRY_PROMISE_STATE_FULFILLED@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x22
	bl	_jerry_release_value
	mov	x0, x21
	bl	_jerry_release_value
	mov	w0, #50
	bl	_jerry_create_number
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_jerry_resolve_or_reject_promise
	mov	x21, x0
	mov	x0, x19
	bl	_jerry_get_promise_result
	mov	x22, x0
	bl	_jerry_value_is_object
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_create_string
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	bl	_jerry_get_property
	mov	x23, x0
	bl	_jerry_value_is_number
	bl	_TEST_ASSERT
	mov	x0, x23
	bl	_jerry_get_number_value
	fcmp	d0, d8
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x23
	bl	_jerry_release_value
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_get_promise_state
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x22
	bl	_jerry_release_value
	mov	x0, x21
	bl	_jerry_release_value
	mov	x0, x19
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_jerry_release_value
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_JERRY_PROMISE_STATE_PENDING,8,3 ; @JERRY_PROMISE_STATE_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key_one"

	.comm	_JERRY_PROMISE_STATE_FULFILLED,8,3 ; @JERRY_PROMISE_STATE_FULFILLED
	.no_dead_strip	_test_promise_resolve_success
.subsections_via_symbols
