	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ActiveXObject_value
_ActiveXObject_value:                   ## @ActiveXObject_value
	.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	$24, %rsp
	.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, %r12
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_DISPATCH_CONSTRUCT@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	(%r15), %esi
	movq	_INTERFACESAFE_FOR_UNTRUSTED_DATA@GOTPCREL(%rip), %rcx
	movq	_INTERFACE_USES_DISPEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movq	_INTERFACE_USES_SECURITY_MANAGER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	cmpl	%ecx, %esi
	je	LBB0_5
## %bb.2:
	cmpl	%eax, %esi
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_12
LBB0_5:
	cmpl	$1, %r13d
	jne	LBB0_10
## %bb.6:
	movl	(%r12), %esi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	callq	_to_flat_string
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_create_activex_object
	movq	%rax, %rbx
	movq	-64(%rbp), %rdi
	callq	_jsstr_release
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.8:
	movq	_IID_IDispatch@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_IUnknown_QueryInterface
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_IUnknown_Release
	movl	%r15d, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
LBB0_11:
	xorl	%eax, %eax
	callq	_FIXME
LBB0_12:
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_JS_E_CANNOT_CREATE_OBJ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_throw_generic_error
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_16:
	movq	-48(%rbp), %rdi
	callq	_jsval_disp
	movl	%eax, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_DISPATCH_CONSTRUCT,8,3         ## @DISPATCH_CONSTRUCT
L_.str.1:                               ## @.str.1
	.asciz	"unsupported flags %x\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.comm	_INTERFACESAFE_FOR_UNTRUSTED_DATA,4,2 ## @INTERFACESAFE_FOR_UNTRUSTED_DATA
	.comm	_INTERFACE_USES_DISPEX,4,2      ## @INTERFACE_USES_DISPEX
	.comm	_INTERFACE_USES_SECURITY_MANAGER,4,2 ## @INTERFACE_USES_SECURITY_MANAGER
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported safeopt %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"unsupported argc %d\n"

	.comm	_JS_E_CANNOT_CREATE_OBJ,4,2     ## @JS_E_CANNOT_CREATE_OBJ
	.comm	_IID_IDispatch,4,2              ## @IID_IDispatch
L_.str.4:                               ## @.str.4
	.asciz	"Object does not support IDispatch\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ActiveXObject_value
_ActiveXObject_value:                   ; @ActiveXObject_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x8, _DISPATCH_CONSTRUCT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DISPATCH_CONSTRUCT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_7
; %bb.1:
Lloh5:
	adrp	x9, _INTERFACESAFE_FOR_UNTRUSTED_DATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INTERFACESAFE_FOR_UNTRUSTED_DATA@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _INTERFACE_USES_DISPEX@GOTPAGE
Lloh9:
	ldr	x10, [x10, _INTERFACE_USES_DISPEX@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	adrp	x11, _INTERFACE_USES_SECURITY_MANAGER@GOTPAGE
Lloh12:
	ldr	x11, [x11, _INTERFACE_USES_SECURITY_MANAGER@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	orr	w9, w9, w11
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_8
; %bb.2:
	cmp	w21, #1
	b.ne	LBB0_9
; %bb.3:
	ldr	w1, [x22]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x20
	bl	_to_flat_string
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_12
; %bb.4:
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	_create_activex_object
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	_jsstr_release
	cbz	x21, LBB0_13
; %bb.5:
Lloh14:
	adrp	x1, _IID_IDispatch@GOTPAGE
Lloh15:
	ldr	x1, [x1, _IID_IDispatch@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x21
	bl	_IUnknown_QueryInterface
	mov	x20, x0
	mov	x0, x21
	bl	_IUnknown_Release
	mov	x0, x20
	bl	_FAILED
	cbz	x0, LBB0_14
; %bb.6:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_7:
	str	x23, [sp]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	x21, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_FIXME
Lloh24:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
LBB0_11:
	ldr	w21, [x8]
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh26:
	adrp	x8, _JS_E_CANNOT_CREATE_OBJ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _JS_E_CANNOT_CREATE_OBJ@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_throw_generic_error
	mov	x21, x0
	b	LBB0_12
LBB0_14:
	ldr	x0, [sp, #8]
	bl	_jsval_disp
	str	w0, [x19]
Lloh29:
	adrp	x8, _S_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_DISPATCH_CONSTRUCT,8,3         ; @DISPATCH_CONSTRUCT
l_.str.1:                               ; @.str.1
	.asciz	"unsupported flags %x\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.comm	_INTERFACESAFE_FOR_UNTRUSTED_DATA,4,2 ; @INTERFACESAFE_FOR_UNTRUSTED_DATA
	.comm	_INTERFACE_USES_DISPEX,4,2      ; @INTERFACE_USES_DISPEX
	.comm	_INTERFACE_USES_SECURITY_MANAGER,4,2 ; @INTERFACE_USES_SECURITY_MANAGER
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported safeopt %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"unsupported argc %d\n"

	.comm	_JS_E_CANNOT_CREATE_OBJ,4,2     ; @JS_E_CANNOT_CREATE_OBJ
	.comm	_IID_IDispatch,4,2              ; @IID_IDispatch
l_.str.4:                               ; @.str.4
	.asciz	"Object does not support IDispatch\n"

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