	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_activex_object
_create_activex_object:                 ## @create_activex_object
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_CLSIDFromProgID
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-40(%rbp), %rdi
	callq	_debugstr_guid
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_INTERFACE_USES_SECURITY_MANAGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_get_sec_mgr
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %r14
	movq	$0, -48(%rbp)
	movq	_URLACTION_ACTIVEX_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %r8
	movq	%r14, %rdi
	movl	$8, %ecx
	movl	$8, %r9d
	pushq	$0
	pushq	$0
	callq	_IInternetHostSecurityManager_ProcessUrlAction
	addq	$16, %rsp
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_1
## %bb.24:
	movq	-48(%rbp), %rax
	movq	_URLPOLICY_ALLOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
	jmp	LBB0_8
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	_CLSCTX_INPROC_SERVER@GOTPCREL(%rip), %rax
	movq	_CLSCTX_LOCAL_SERVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_IID_IClassFactory@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %rdi
	leaq	-56(%rbp), %r8
	xorl	%edx, %edx
	callq	_CoGetClassObject
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_2
## %bb.9:
	movq	-56(%rbp), %rdi
	movq	_IID_IClassFactoryEx@GOTPCREL(%rip), %rsi
	leaq	-88(%rbp), %rdx
	callq	_IClassFactory_QueryInterface
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_FIXME
	movq	-88(%rbp), %rdi
	callq	_IClassFactoryEx_Release
LBB0_11:
	movq	-56(%rbp), %rdi
	movq	_IID_IUnknown@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	callq	_IClassFactory_CreateInstance
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_2
## %bb.12:
	testq	%r14, %r14
	je	LBB0_19
## %bb.13:
	movq	-40(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	$0, -112(%rbp)
	subq	$8, %rsp
	movq	_GUID_CUSTOM_CONFIRMOBJECTSAFETY@GOTPCREL(%rip), %rsi
	leaq	-72(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	leaq	-112(%rbp), %r8
	movq	%r14, %rdi
	movl	$24, %r9d
	pushq	$0
	callq	_IInternetHostSecurityManager_QueryCustomPolicy
	addq	$16, %rsp
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	cmpq	$8, -80(%rbp)
	movq	-72(%rbp), %rdi
	movq	%rdi, %rax
	jae	LBB0_16
## %bb.15:
	movq	_URLPOLICY_DISALLOW@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_CoTaskMemFree
LBB0_17:
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_27
## %bb.18:
	movq	-48(%rbp), %rax
	movq	_URLPOLICY_ALLOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
LBB0_19:
	movq	-32(%rbp), %rdi
	movq	_IID_IObjectWithSite@GOTPCREL(%rip), %rsi
	leaq	-64(%rbp), %rdx
	callq	_IUnknown_QueryInterface
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	%r15, %rdi
	callq	_create_ax_site
	movq	-64(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_26
## %bb.21:
	movq	%rax, %rbx
	movq	%rax, %rsi
	callq	_IObjectWithSite_SetSite
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_IUnknown_Release
	movq	-64(%rbp), %rdi
	callq	_IObjectWithSite_Release
	movl	%r14d, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_27
LBB0_22:
	movq	-32(%rbp), %rbx
	jmp	LBB0_2
LBB0_26:
	callq	_IObjectWithSite_Release
LBB0_27:
	movq	-32(%rbp), %rdi
	callq	_IUnknown_Release
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"GUID %s\n"

	.comm	_INTERFACE_USES_SECURITY_MANAGER,4,2 ## @INTERFACE_USES_SECURITY_MANAGER
	.comm	_URLACTION_ACTIVEX_RUN,4,2      ## @URLACTION_ACTIVEX_RUN
	.comm	_URLPOLICY_ALLOW,8,3            ## @URLPOLICY_ALLOW
	.comm	_CLSCTX_INPROC_SERVER,4,2       ## @CLSCTX_INPROC_SERVER
	.comm	_CLSCTX_LOCAL_SERVER,4,2        ## @CLSCTX_LOCAL_SERVER
	.comm	_IID_IClassFactory,4,2          ## @IID_IClassFactory
	.comm	_IID_IClassFactoryEx,4,2        ## @IID_IClassFactoryEx
L_.str.2:                               ## @.str.2
	.asciz	"Use IClassFactoryEx\n"

	.comm	_IID_IUnknown,4,2               ## @IID_IUnknown
	.comm	_GUID_CUSTOM_CONFIRMOBJECTSAFETY,4,2 ## @GUID_CUSTOM_CONFIRMOBJECTSAFETY
	.comm	_URLPOLICY_DISALLOW,8,3         ## @URLPOLICY_DISALLOW
	.comm	_IID_IObjectWithSite,4,2        ## @IID_IObjectWithSite
	.no_dead_strip	_create_activex_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_activex_object
_create_activex_object:                 ; @create_activex_object
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_debugstr_w
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x1, sp, #8
	mov	x0, x20
	bl	_CLSIDFromProgID
	bl	_FAILED
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, #0
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	add	x0, sp, #8
	bl	_debugstr_guid
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _INTERFACE_USES_SECURITY_MANAGER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INTERFACE_USES_SECURITY_MANAGER@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_get_sec_mgr
	cbz	x0, LBB0_2
; %bb.5:
	mov	x20, x0
	str	xzr, [sp, #16]
Lloh7:
	adrp	x8, _URLACTION_ACTIVEX_RUN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _URLACTION_ACTIVEX_RUN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #16
	add	x4, sp, #8
	mov	w3, #8
	mov	w5, #8
	mov	w6, #0
	mov	w7, #0
	bl	_IInternetHostSecurityManager_ProcessUrlAction
	bl	_FAILED
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_2
; %bb.6:
	ldr	x8, [sp, #16]
Lloh10:
	adrp	x9, _URLPOLICY_ALLOW@GOTPAGE
Lloh11:
	ldr	x9, [x9, _URLPOLICY_ALLOW@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
	b	LBB0_8
LBB0_7:
	mov	x20, #0
LBB0_8:
Lloh13:
	adrp	x8, _CLSCTX_INPROC_SERVER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CLSCTX_INPROC_SERVER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _CLSCTX_LOCAL_SERVER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CLSCTX_LOCAL_SERVER@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh19:
	adrp	x3, _IID_IClassFactory@GOTPAGE
Lloh20:
	ldr	x3, [x3, _IID_IClassFactory@GOTPAGEOFF]
	add	x0, sp, #8
	add	x4, sp, #48
	mov	x2, #0
	bl	_CoGetClassObject
	bl	_FAILED
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_2
; %bb.9:
	ldr	x0, [sp, #48]
Lloh21:
	adrp	x1, _IID_IClassFactoryEx@GOTPAGE
Lloh22:
	ldr	x1, [x1, _IID_IClassFactoryEx@GOTPAGEOFF]
	add	x2, sp, #56
	bl	_IClassFactory_QueryInterface
	bl	_SUCCEEDED
	cbz	x0, LBB0_11
; %bb.10:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
	ldr	x0, [sp, #56]
	bl	_IClassFactoryEx_Release
LBB0_11:
	ldr	x0, [sp, #48]
Lloh25:
	adrp	x2, _IID_IUnknown@GOTPAGE
Lloh26:
	ldr	x2, [x2, _IID_IUnknown@GOTPAGEOFF]
	add	x3, sp, #24
	mov	x1, #0
	bl	_IClassFactory_CreateInstance
	bl	_FAILED
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_2
; %bb.12:
	cbz	x20, LBB0_17
; %bb.13:
	ldr	x9, [sp, #8]
	ldr	x8, [sp, #24]
	stp	x8, x9, [x29, #-40]
	stur	xzr, [x29, #-48]
Lloh27:
	adrp	x1, _GUID_CUSTOM_CONFIRMOBJECTSAFETY@GOTPAGE
Lloh28:
	ldr	x1, [x1, _GUID_CUSTOM_CONFIRMOBJECTSAFETY@GOTPAGEOFF]
	add	x2, sp, #32
	add	x3, sp, #40
	sub	x4, x29, #48
	mov	x0, x20
	mov	w5, #24
	mov	w6, #0
	bl	_IInternetHostSecurityManager_QueryCustomPolicy
	mov	x20, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_15
; %bb.14:
	ldp	x0, x8, [sp, #32]
Lloh29:
	adrp	x9, _URLPOLICY_DISALLOW@GOTPAGE
Lloh30:
	ldr	x9, [x9, _URLPOLICY_DISALLOW@GOTPAGEOFF]
	cmp	x8, #7
	csel	x8, x0, x9, hi
	ldr	x8, [x8]
	str	x8, [sp, #16]
	bl	_CoTaskMemFree
LBB0_15:
	mov	x0, x20
	bl	_FAILED
	cbnz	x0, LBB0_22
; %bb.16:
	ldr	x8, [sp, #16]
Lloh31:
	adrp	x9, _URLPOLICY_ALLOW@GOTPAGE
Lloh32:
	ldr	x9, [x9, _URLPOLICY_ALLOW@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_17:
	ldr	x0, [sp, #24]
Lloh34:
	adrp	x1, _IID_IObjectWithSite@GOTPAGE
Lloh35:
	ldr	x1, [x1, _IID_IObjectWithSite@GOTPAGEOFF]
	sub	x2, x29, #24
	bl	_IUnknown_QueryInterface
	bl	_SUCCEEDED
	cbz	x0, LBB0_20
; %bb.18:
	mov	x0, x19
	bl	_create_ax_site
	mov	x19, x0
	ldur	x0, [x29, #-24]
	cbz	x19, LBB0_21
; %bb.19:
	mov	x1, x19
	bl	_IObjectWithSite_SetSite
	mov	x20, x0
	mov	x0, x19
	bl	_IUnknown_Release
	ldur	x0, [x29, #-24]
	bl	_IObjectWithSite_Release
	mov	x0, x20
	bl	_FAILED
	cbnz	x0, LBB0_22
LBB0_20:
	ldr	x0, [sp, #24]
	b	LBB0_2
LBB0_21:
	bl	_IObjectWithSite_Release
LBB0_22:
	ldr	x0, [sp, #24]
	bl	_IUnknown_Release
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"GUID %s\n"

	.comm	_INTERFACE_USES_SECURITY_MANAGER,4,2 ; @INTERFACE_USES_SECURITY_MANAGER
	.comm	_URLACTION_ACTIVEX_RUN,4,2      ; @URLACTION_ACTIVEX_RUN
	.comm	_URLPOLICY_ALLOW,8,3            ; @URLPOLICY_ALLOW
	.comm	_CLSCTX_INPROC_SERVER,4,2       ; @CLSCTX_INPROC_SERVER
	.comm	_CLSCTX_LOCAL_SERVER,4,2        ; @CLSCTX_LOCAL_SERVER
	.comm	_IID_IClassFactory,4,2          ; @IID_IClassFactory
	.comm	_IID_IClassFactoryEx,4,2        ; @IID_IClassFactoryEx
l_.str.2:                               ; @.str.2
	.asciz	"Use IClassFactoryEx\n"

	.comm	_IID_IUnknown,4,2               ; @IID_IUnknown
	.comm	_GUID_CUSTOM_CONFIRMOBJECTSAFETY,4,2 ; @GUID_CUSTOM_CONFIRMOBJECTSAFETY
	.comm	_URLPOLICY_DISALLOW,8,3         ; @URLPOLICY_DISALLOW
	.comm	_IID_IObjectWithSite,4,2        ; @IID_IObjectWithSite
	.no_dead_strip	_create_activex_object
.subsections_via_symbols
