	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Object_getPrototypeOf
_Object_getPrototypeOf:                 ## @Object_getPrototypeOf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	%r9, %r14
	movq	%r8, %rbx
	movl	(%r8), %edi
	callq	_is_object_instance
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	4(%rbx), %edi
	callq	_debugstr_jsval
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	(%rbx), %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_to_jsdisp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_S_OK@GOTPCREL(%rip), %rbx
	testq	%r14, %r14
	je	LBB0_11
## %bb.7:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_jsdisp_addref
	movl	%eax, %edi
	callq	_jsval_obj
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rbx
LBB0_11:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_9:
	xorl	%eax, %eax
	callq	_jsval_null
LBB0_10:
	movl	%eax, (%r14)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arguments\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
L_.str.1:                               ## @.str.1
	.asciz	"(%s)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Non-JS object\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Object_getPrototypeOf
_Object_getPrototypeOf:                 ; @Object_getPrototypeOf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w3, LBB0_6
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	ldr	w0, [x4]
	bl	_is_object_instance
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x20, #4]
	bl	_debugstr_jsval
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w0, [x20]
	bl	_get_object
	bl	_to_jsdisp
	cbz	x0, LBB0_8
; %bb.3:
	cbz	x19, LBB0_11
; %bb.4:
	ldr	x0, [x0]
	cbz	x0, LBB0_9
; %bb.5:
	bl	_jsdisp_addref
	bl	_jsval_obj
	b	LBB0_10
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_FIXME
Lloh4:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_9:
	bl	_jsval_null
LBB0_10:
	str	w0, [x19]
LBB0_11:
Lloh8:
	adrp	x8, _S_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arguments\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
l_.str.1:                               ; @.str.1
	.asciz	"(%s)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Non-JS object\n"

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