	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecma_builtin_function_prototype_object_bind
_ecma_builtin_function_prototype_object_bind: ## @ecma_builtin_function_prototype_object_bind
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ecma_builtin_get
	movq	%rax, %rbx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	cmpl	$1, %r14d
	jne	LBB0_5
## %bb.2:
	movq	(%r15), %rdi
	callq	_ecma_is_value_integer_number
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setg	%dil
	callq	_JERRY_ASSERT
	movslq	%r14d, %rax
	leaq	16(,%rax,8), %rsi
	movq	_ECMA_OBJECT_TYPE_BOUND_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ecma_create_object
	movq	%rax, %r13
	movl	8(%rax), %edi
	movq	%r12, %rsi
	callq	_ECMA_SET_INTERNAL_VALUE_POINTER
	movq	_ECMA_VALUE_UNDEFINED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.6:
	movl	%r14d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	callq	_ecma_copy_value_if_not_object
	movq	%rax, 16(%r13,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
LBB0_8:
	movl	%r14d, %edi
	callq	_ecma_make_integer_value
	jmp	LBB0_9
LBB0_3:
	movq	_ECMA_OBJECT_TYPE_BOUND_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	movq	%rbx, %rdi
	callq	_ecma_create_object
	movq	%rax, %r13
	movl	8(%rax), %edi
	movq	%r12, %rsi
	callq	_ECMA_SET_INTERNAL_VALUE_POINTER
	movq	_ECMA_VALUE_UNDEFINED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.4:
	movq	(%r15), %rdi
	callq	_ecma_copy_value_if_not_object
LBB0_9:
	movq	%rax, (%r13)
LBB0_10:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecma_make_object_value         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE,4,2 ## @ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE
	.comm	_ECMA_OBJECT_TYPE_BOUND_FUNCTION,4,2 ## @ECMA_OBJECT_TYPE_BOUND_FUNCTION
	.comm	_ECMA_VALUE_UNDEFINED,8,3       ## @ECMA_VALUE_UNDEFINED
	.no_dead_strip	_ecma_builtin_function_prototype_object_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecma_builtin_function_prototype_object_bind
_ecma_builtin_function_prototype_object_bind: ; @ecma_builtin_function_prototype_object_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ecma_builtin_get
	mov	x21, x0
	cbz	w19, LBB0_7
; %bb.1:
	cmp	w19, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x20]
	bl	_ecma_is_value_integer_number
	cbz	w0, LBB0_7
LBB0_3:
	cmp	w19, #0
	cset	w0, gt
	bl	_JERRY_ASSERT
	sbfiz	x8, x19, #3, #32
	add	x1, x8, #16
Lloh3:
	adrp	x8, _ECMA_OBJECT_TYPE_BOUND_FUNCTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECMA_OBJECT_TYPE_BOUND_FUNCTION@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_ecma_create_object
	mov	x21, x0
	ldr	w0, [x0, #8]
	mov	x1, x22
	bl	_ECMA_SET_INTERNAL_VALUE_POINTER
Lloh6:
	adrp	x8, _ECMA_VALUE_UNDEFINED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECMA_VALUE_UNDEFINED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x21]
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.4:
	add	x22, x21, #16
	mov	w23, w19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20], #8
	bl	_ecma_copy_value_if_not_object
	str	x0, [x22], #8
	subs	x23, x23, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_ecma_make_integer_value
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _ECMA_OBJECT_TYPE_BOUND_FUNCTION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ECMA_OBJECT_TYPE_BOUND_FUNCTION@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #16
	bl	_ecma_create_object
	mov	x21, x0
	ldr	w0, [x0, #8]
	mov	x1, x22
	bl	_ECMA_SET_INTERNAL_VALUE_POINTER
Lloh12:
	adrp	x8, _ECMA_VALUE_UNDEFINED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ECMA_VALUE_UNDEFINED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x21]
	cbz	w19, LBB0_10
; %bb.8:
	ldr	x0, [x20]
	bl	_ecma_copy_value_if_not_object
LBB0_9:
	str	x0, [x21]
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ecma_make_object_value
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE,4,2 ; @ECMA_BUILTIN_ID_FUNCTION_PROTOTYPE
	.comm	_ECMA_OBJECT_TYPE_BOUND_FUNCTION,4,2 ; @ECMA_OBJECT_TYPE_BOUND_FUNCTION
	.comm	_ECMA_VALUE_UNDEFINED,8,3       ; @ECMA_VALUE_UNDEFINED
	.no_dead_strip	_ecma_builtin_function_prototype_object_bind
.subsections_via_symbols
