	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Function_bind
_Function_bind:                         ## @Function_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
	movq	%r9, %r14
	movq	%r8, %r13
	movl	%ecx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_function_this
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.2:
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_is_object_instance
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	(%r13), %edi
	callq	_get_object
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	(%r13), %edi
	callq	_get_object
	decl	%r12d
	addq	$4, %r13
	leaq	-48(%rbp), %r9
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	%r12d, %ecx
	movq	%r13, %r8
	callq	_create_bind_function
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	movq	-48(%rbp), %rdi
	testq	%r14, %r14
	je	LBB0_13
## %bb.6:
	callq	_jsval_obj
	movl	%eax, (%r14)
	jmp	LBB0_14
LBB0_7:
	movq	_JS_E_FUNCTION_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_type_error               ## TAILCALL
LBB0_8:
	movl	(%r13), %edi
	callq	_debugstr_jsval
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_10:
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	_jsdisp_release
LBB0_14:
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_JS_E_FUNCTION_EXPECTED,4,2     ## @JS_E_FUNCTION_EXPECTED
L_.str.1:                               ## @.str.1
	.asciz	"no this argument\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
L_.str.2:                               ## @.str.2
	.asciz	"%s is not an object instance\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_Function_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Function_bind
_Function_bind:                         ; @Function_bind
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x23
	bl	_function_this
	cbz	x0, LBB0_7
; %bb.1:
	cbz	w22, LBB0_9
; %bb.2:
	mov	x23, x0
	ldr	w0, [x20]
	bl	_is_object_instance
	cbz	w0, LBB0_8
; %bb.3:
	ldr	w0, [x20]
	bl	_get_object
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w0, [x20], #4
	bl	_get_object
	mov	x2, x0
	sub	w3, w22, #1
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x23
	mov	x4, x20
	bl	_create_bind_function
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_12
; %bb.5:
	ldr	x0, [sp, #8]
	cbz	x19, LBB0_13
; %bb.6:
	bl	_jsval_obj
	str	w0, [x19]
	b	LBB0_14
LBB0_7:
Lloh2:
	adrp	x8, _JS_E_FUNCTION_EXPECTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JS_E_FUNCTION_EXPECTED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, #0
	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
	b	_throw_type_error
LBB0_8:
	ldr	w0, [x20]
	bl	_debugstr_jsval
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_FIXME
Lloh9:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x20
	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
LBB0_13:
	bl	_jsdisp_release
LBB0_14:
Lloh11:
	adrp	x8, _S_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_JS_E_FUNCTION_EXPECTED,4,2     ; @JS_E_FUNCTION_EXPECTED
l_.str.1:                               ; @.str.1
	.asciz	"no this argument\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
l_.str.2:                               ; @.str.2
	.asciz	"%s is not an object instance\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_Function_bind
.subsections_via_symbols
