	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maybe_to_primitive
_maybe_to_primitive:                    ## @maybe_to_primitive
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_is_object_instance
	testl	%eax, %eax
	je	LBB0_14
## %bb.1:
	movl	%ebx, %edi
	callq	_get_object
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	movl	%ebx, %edi
	callq	_get_object
	movl	%eax, %edi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r15
	movq	_JSCLASS_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_is_class
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_to_number
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_jsdisp_release
	movl	%ebx, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_jsval_number
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_14:
	movl	%ebx, %edi
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jsval_copy                     ## TAILCALL
LBB0_6:
	movq	_JSCLASS_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_is_class
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_to_string
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_jsdisp_release
	movl	%ebx, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	-40(%rbp), %rdi
	callq	_jsval_string
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_9:
	movq	_JSCLASS_BOOLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_is_class
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_bool_obj_value
	movl	%eax, %edi
	callq	_jsval_bool
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_jsdisp_release
	jmp	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	callq	_jsval_obj
	movl	%eax, (%r14)
LBB0_12:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JSCLASS_NUMBER,4,2             ## @JSCLASS_NUMBER
	.comm	_JSCLASS_STRING,4,2             ## @JSCLASS_STRING
	.comm	_JSCLASS_BOOLEAN,4,2            ## @JSCLASS_BOOLEAN
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_maybe_to_primitive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maybe_to_primitive
_maybe_to_primitive:                    ; @maybe_to_primitive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_is_object_instance
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_get_object
	cbz	w0, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _JSCLASS_NUMBER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JSCLASS_NUMBER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_is_class
	cbz	x0, LBB0_7
; %bb.4:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_to_number
	mov	x21, x0
	mov	x0, x20
	bl	_jsdisp_release
	mov	x0, x21
	bl	_SUCCEEDED
	cbz	x0, LBB0_14
; %bb.5:
	ldr	d0, [sp, #8]
	bl	_jsval_number
	str	w0, [x19]
	b	LBB0_14
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	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
	add	sp, sp, #64
	b	_jsval_copy
LBB0_7:
Lloh3:
	adrp	x8, _JSCLASS_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JSCLASS_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_is_class
	cbz	x0, LBB0_10
; %bb.8:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_to_string
	mov	x21, x0
	mov	x0, x20
	bl	_jsdisp_release
	mov	x0, x21
	bl	_SUCCEEDED
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x0, [sp, #8]
	bl	_jsval_string
	str	w0, [x19]
	b	LBB0_14
LBB0_10:
Lloh6:
	adrp	x8, _JSCLASS_BOOLEAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JSCLASS_BOOLEAN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_is_class
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_bool_obj_value
	bl	_jsval_bool
	str	w0, [x19]
	mov	x0, x20
	bl	_jsdisp_release
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_jsval_obj
	str	w0, [x19]
LBB0_13:
Lloh9:
	adrp	x8, _S_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_JSCLASS_NUMBER,4,2             ; @JSCLASS_NUMBER
	.comm	_JSCLASS_STRING,4,2             ; @JSCLASS_STRING
	.comm	_JSCLASS_BOOLEAN,4,2            ; @JSCLASS_BOOLEAN
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_maybe_to_primitive
.subsections_via_symbols
