	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Function_apply
_Function_apply:                        ## @Function_apply
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, -64(%rbp)
	movl	$0, -44(%rbp)
	movq	$0, -72(%rbp)
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%r13, %rdi
	callq	_function_this
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.3:
	movl	(%r15), %edi
	callq	_is_undefined
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	(%r15), %edi
	callq	_is_null
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	cmpl	$2, %r12d
	jb	LBB0_13
## %bb.7:
	movl	4(%r15), %edi
	callq	_is_object_instance
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	4(%r15), %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %r15
	movq	_JSCLASS_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_is_class
	testl	%eax, %eax
	jne	LBB0_28
## %bb.10:
	movq	_JSCLASS_ARGUMENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_is_class
	testl	%eax, %eax
	je	LBB0_11
LBB0_28:
	leaq	-44(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_array_to_args
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_jsdisp_release
	jmp	LBB0_13
LBB0_1:
	movq	_VDISP_JSDISP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_2
## %bb.27:
	movq	_JS_E_FUNCTION_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_type_error               ## TAILCALL
LBB0_5:
	movl	(%r15), %esi
	leaq	-72(%rbp), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_object
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_26
	jmp	LBB0_6
LBB0_11:
	movq	%r15, %rdi
	callq	_jsdisp_release
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	movq	(%rbx), %rax
	movq	-72(%rbp), %rdx
	movl	-44(%rbp), %r8d
	movq	-64(%rbp), %r9
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	*(%rax)
	movl	%eax, %r14d
LBB0_20:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_IDispatch_Release
LBB0_22:
	cmpl	$0, -44(%rbp)
	je	LBB0_25
## %bb.23:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_jsval_release
	incq	%rbx
	movl	-44(%rbp), %eax
	cmpq	%rax, %rbx
	jb	LBB0_24
LBB0_25:
	movq	-64(%rbp), %rdi
	callq	_heap_free
LBB0_26:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	4(%r13), %esi
	movq	-72(%rbp), %rdx
	movq	_DISPATCH_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-44(%rbp), %r8d
	movq	-64(%rbp), %r9
	leaq	-80(%rbp), %rax
	movq	%rax, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_disp_call_value
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movl	-80(%rbp), %edi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	%edi, (%rax)
	jmp	LBB0_20
LBB0_19:
	callq	_jsval_release
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_VDISP_JSDISP,4,2               ## @VDISP_JSDISP
	.comm	_JS_E_FUNCTION_EXPECTED,4,2     ## @JS_E_FUNCTION_EXPECTED
	.comm	_JSCLASS_ARRAY,4,2              ## @JSCLASS_ARRAY
	.comm	_JSCLASS_ARGUMENTS,4,2          ## @JSCLASS_ARGUMENTS
L_.str.1:                               ## @.str.1
	.asciz	"throw TypeError\n"

	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_DISPATCH_METHOD,4,2            ## @DISPATCH_METHOD
	.no_dead_strip	_Function_apply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Function_apply
_Function_apply:                        ; @Function_apply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x5
	mov	x25, x4
	mov	x26, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x22
	bl	_function_this
	mov	x23, x0
	cbz	x0, LBB0_10
LBB0_1:
	cbz	w26, LBB0_15
; %bb.2:
	ldr	w0, [x25]
	bl	_is_undefined
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x25]
	bl	_is_null
	cbz	w0, LBB0_12
LBB0_4:
	cmp	w26, #2
	b.lo	LBB0_15
; %bb.5:
	ldr	w0, [x25, #4]
	bl	_is_object_instance
	cbz	x0, LBB0_14
; %bb.6:
	ldr	w0, [x25, #4]
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_14
; %bb.7:
	mov	x25, x0
Lloh5:
	adrp	x8, _JSCLASS_ARRAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JSCLASS_ARRAY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_is_class
	cbnz	w0, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _JSCLASS_ARGUMENTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _JSCLASS_ARGUMENTS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_is_class
	cbz	w0, LBB0_13
LBB0_9:
	add	x2, sp, #20
	add	x3, sp, #24
	mov	x0, x20
	mov	x1, x25
	bl	_array_to_args
	mov	x24, x0
	mov	x0, x25
	bl	_jsdisp_release
	b	LBB0_15
LBB0_10:
	ldr	w8, [x22]
Lloh11:
	adrp	x9, _VDISP_JSDISP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VDISP_JSDISP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.11:
Lloh14:
	adrp	x8, _JS_E_FUNCTION_EXPECTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _JS_E_FUNCTION_EXPECTED@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_throw_type_error
LBB0_12:
	ldr	w1, [x25]
	add	x2, sp, #8
	mov	x0, x20
	bl	_to_object
	mov	x24, x0
	bl	_FAILED
	cbnz	x0, LBB0_24
	b	LBB0_4
LBB0_13:
	mov	x0, x25
	bl	_jsdisp_release
LBB0_14:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
Lloh19:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
Lloh21:
	ldr	w24, [x8]
LBB0_15:
	mov	x0, x24
	bl	_SUCCEEDED
	cbz	x0, LBB0_18
; %bb.16:
	cbz	x23, LBB0_25
; %bb.17:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x2, [sp, #8]
	ldr	w4, [sp, #20]
	ldr	x5, [sp, #24]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x21
	mov	x6, x19
	blr	x8
	mov	x24, x0
LBB0_18:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_IDispatch_Release
LBB0_20:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_23
; %bb.21:
	mov	x19, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	w0, [x8, x19, lsl #2]
	bl	_jsval_release
	add	x19, x19, #1
	ldr	w8, [sp, #20]
	cmp	x19, x8
	b.lo	LBB0_22
LBB0_23:
	ldr	x0, [sp, #24]
	bl	_heap_free
LBB0_24:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	ldr	w1, [x22, #4]
	ldr	x2, [sp, #8]
Lloh22:
	adrp	x8, _DISPATCH_METHOD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DISPATCH_METHOD@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	ldr	w4, [sp, #20]
	ldr	x5, [sp, #24]
	add	x6, sp, #4
	mov	x0, x20
	bl	_disp_call_value
	mov	x24, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_18
; %bb.26:
	ldr	w0, [sp, #4]
	cbz	x19, LBB0_28
; %bb.27:
	str	w0, [x19]
	b	LBB0_18
LBB0_28:
	bl	_jsval_release
	b	LBB0_18
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_VDISP_JSDISP,4,2               ; @VDISP_JSDISP
	.comm	_JS_E_FUNCTION_EXPECTED,4,2     ; @JS_E_FUNCTION_EXPECTED
	.comm	_JSCLASS_ARRAY,4,2              ; @JSCLASS_ARRAY
	.comm	_JSCLASS_ARGUMENTS,4,2          ; @JSCLASS_ARGUMENTS
l_.str.1:                               ; @.str.1
	.asciz	"throw TypeError\n"

	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_DISPATCH_METHOD,4,2            ; @DISPATCH_METHOD
	.no_dead_strip	_Function_apply
.subsections_via_symbols
