	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typeof_string
_typeof_string:                         ## @typeof_string
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_jsval_type
                                        ## kill: def $eax killed $eax def $rax
	movq	_S_OK@GOTPCREL(%rip), %r15
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movl	%ebx, %edi
	callq	_get_variant
	movl	%eax, %edi
	callq	_debugstr_variant
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %r15
	jmp	LBB0_15
LBB0_2:
	movq	_undefinedW@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	_stringW@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movl	%ebx, %edi
	callq	_get_object
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	%ebx, %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movq	_JSCLASS_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_is_class
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movq	_objectW@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_objectW@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	_numberW@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_13:
	movq	_booleanW@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_15:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_functionW@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_jsdisp_release
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_undefinedW,8,3                 ## @undefinedW
	.comm	_objectW,8,3                    ## @objectW
	.comm	_JSCLASS_FUNCTION,4,2           ## @JSCLASS_FUNCTION
	.comm	_functionW,8,3                  ## @functionW
	.comm	_stringW,8,3                    ## @stringW
	.comm	_numberW,8,3                    ## @numberW
	.comm	_booleanW,8,3                   ## @booleanW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled variant %s\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_typeof_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typeof_string
_typeof_string:                         ; @typeof_string
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_jsval_type
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_12
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x20
	bl	_get_variant
	bl	_debugstr_variant
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh4:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
Lloh6:
	adrp	x8, _undefinedW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _undefinedW@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x8, _stringW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stringW@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	mov	x0, x20
	bl	_get_object
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh10:
	adrp	x8, _JSCLASS_FUNCTION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JSCLASS_FUNCTION@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_is_class
Lloh13:
	adrp	x8, _functionW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _functionW@GOTPAGEOFF]
Lloh15:
	adrp	x9, _objectW@GOTPAGE
Lloh16:
	ldr	x9, [x9, _objectW@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	bl	_jsdisp_release
	b	LBB0_12
LBB0_8:
Lloh17:
	adrp	x8, _objectW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _objectW@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _numberW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _numberW@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _booleanW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _booleanW@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_12:
Lloh23:
	adrp	x8, _S_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_13:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_undefinedW,8,3                 ; @undefinedW
	.comm	_objectW,8,3                    ; @objectW
	.comm	_JSCLASS_FUNCTION,4,2           ; @JSCLASS_FUNCTION
	.comm	_functionW,8,3                  ; @functionW
	.comm	_stringW,8,3                    ; @stringW
	.comm	_numberW,8,3                    ; @numberW
	.comm	_booleanW,8,3                   ; @booleanW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled variant %s\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_typeof_string
.subsections_via_symbols
