	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_detached_arraybuffer
_test_detached_arraybuffer:             ## @test_detached_arraybuffer
	.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
	leaq	-48(%rbp), %rsi
	movl	$1, %edi
	xorl	%edx, %edx
	callq	_jerry_create_arraybuffer_external
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%r15d, %edi
	callq	_jerry_value_is_arraybuffer
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%r15d, %edi
	callq	_jerry_get_arraybuffer_byte_length
	xorl	%edi, %edi
	cmpq	$1, %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%r15d, %edi
	callq	_jerry_is_arraybuffer_detachable
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_get_boolean_value
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_detach_arraybuffer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	leaq	_test_detached_arraybuffer.types(%rip), %r12
	movq	_JERRY_ERROR_TYPE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r12), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_jerry_create_typedarray_for_arraybuffer_sz
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_get_error_type
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	addq	$4, %r14
	cmpq	$36, %r14
	jne	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	callq	_jerry_release_value
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %rsi
	movl	$1, %edi
	xorl	%edx, %edx
	callq	_jerry_create_arraybuffer_external
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%r15d, %edi
	callq	_jerry_value_is_arraybuffer
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%r15d, %edi
	callq	_jerry_get_arraybuffer_byte_length
	xorl	%edi, %edi
	cmpq	$1, %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%r15d, %edi
	callq	_jerry_is_arraybuffer_detachable
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_get_boolean_value
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_detach_arraybuffer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r12), %edi
	movl	%r15d, %esi
	callq	_jerry_create_typedarray_for_arraybuffer
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_get_error_type
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	addq	$4, %r14
	cmpq	$36, %r14
	jne	LBB0_3
## %bb.4:
	movl	%r15d, %edi
	callq	_jerry_release_value
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @test_detached_arraybuffer.types
_test_detached_arraybuffer.types:
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	132                             ## 0x84
	.long	131                             ## 0x83
	.long	134                             ## 0x86
	.long	130                             ## 0x82
	.long	133                             ## 0x85
	.long	136                             ## 0x88
	.long	135                             ## 0x87

	.comm	_JERRY_ERROR_TYPE,8,3           ## @JERRY_ERROR_TYPE
	.no_dead_strip	_test_detached_arraybuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_detached_arraybuffer
_test_detached_arraybuffer:             ; @test_detached_arraybuffer
	.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
	add	x1, sp, #12
	mov	w0, #1
	mov	x2, #0
	bl	_jerry_create_arraybuffer_external
	mov	x19, x0
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_value_is_arraybuffer
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_get_arraybuffer_byte_length
	cmp	x0, #1
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_is_arraybuffer_detachable
	mov	x20, x0
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_get_boolean_value
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_detach_arraybuffer
	mov	x20, x0
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_release_value
	mov	x23, #0
Lloh0:
	adrp	x21, _test_detached_arraybuffer.types@PAGE
Lloh1:
	add	x21, x21, _test_detached_arraybuffer.types@PAGEOFF
Lloh2:
	adrp	x22, _JERRY_ERROR_TYPE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _JERRY_ERROR_TYPE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x23]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #4
	bl	_jerry_create_typedarray_for_arraybuffer_sz
	mov	x20, x0
	bl	_jerry_value_is_error
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_get_error_type
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_release_value
	add	x23, x23, #4
	cmp	x23, #36
	b.ne	LBB0_1
; %bb.2:
	mov	x0, x19
	bl	_jerry_release_value
	add	x1, sp, #8
	mov	w0, #1
	mov	x2, #0
	bl	_jerry_create_arraybuffer_external
	mov	x19, x0
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_value_is_arraybuffer
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_get_arraybuffer_byte_length
	cmp	x0, #1
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_is_arraybuffer_detachable
	mov	x20, x0
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_get_boolean_value
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_detach_arraybuffer
	mov	x20, x0
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_release_value
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, x23]
	mov	x1, x19
	bl	_jerry_create_typedarray_for_arraybuffer
	mov	x20, x0
	bl	_jerry_value_is_error
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_get_error_type
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_release_value
	add	x23, x23, #4
	cmp	x23, #36
	b.ne	LBB0_3
; %bb.4:
	mov	x0, x19
	bl	_jerry_release_value
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @test_detached_arraybuffer.types
_test_detached_arraybuffer.types:
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	132                             ; 0x84
	.long	131                             ; 0x83
	.long	134                             ; 0x86
	.long	130                             ; 0x82
	.long	133                             ; 0x85
	.long	136                             ; 0x88
	.long	135                             ; 0x87

	.comm	_JERRY_ERROR_TYPE,8,3           ; @JERRY_ERROR_TYPE
	.no_dead_strip	_test_detached_arraybuffer
.subsections_via_symbols
