	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_engine
_init_engine:                           ## @init_engine
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_load_typelib
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_script_site@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_IActiveScript_SetScriptSite
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_IActiveScriptParse_InitNew
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_wscriptW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCRIPTITEM_ISVISIBLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_IActiveScript_AddNamedItem
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_wshW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_IActiveScript_AddNamedItem
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_SCRIPTSTATE_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IActiveScript_SetScriptState
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SUCCEEDED                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_script_site,4,2                ## @script_site
	.comm	_wscriptW,4,2                   ## @wscriptW
	.comm	_SCRIPTITEM_ISVISIBLE,4,2       ## @SCRIPTITEM_ISVISIBLE
	.comm	_wshW,4,2                       ## @wshW
	.comm	_SCRIPTSTATE_INITIALIZED,4,2    ## @SCRIPTSTATE_INITIALIZED
	.no_dead_strip	_init_engine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_engine
_init_engine:                           ; @init_engine
	.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	x20, x1
	mov	x19, x0
	bl	_load_typelib
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, _script_site@GOTPAGE
Lloh1:
	ldr	x1, [x1, _script_site@GOTPAGEOFF]
	mov	x0, x19
	bl	_IActiveScript_SetScriptSite
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_IActiveScriptParse_InitNew
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _wscriptW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _wscriptW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x20, _SCRIPTITEM_ISVISIBLE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SCRIPTITEM_ISVISIBLE@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_IActiveScript_AddNamedItem
	bl	_FAILED
	cbnz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _wshW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _wshW@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_IActiveScript_AddNamedItem
	bl	_FAILED
	cbz	x0, LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh13:
	adrp	x8, _SCRIPTSTATE_INITIALIZED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SCRIPTSTATE_INITIALIZED@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IActiveScript_SetScriptState
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SUCCEEDED
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_script_site,4,2                ; @script_site
	.comm	_wscriptW,4,2                   ; @wscriptW
	.comm	_SCRIPTITEM_ISVISIBLE,4,2       ; @SCRIPTITEM_ISVISIBLE
	.comm	_wshW,4,2                       ; @wshW
	.comm	_SCRIPTSTATE_INITIALIZED,4,2    ; @SCRIPTSTATE_INITIALIZED
	.no_dead_strip	_init_engine
.subsections_via_symbols
