	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_script
_run_script:                            ## @run_script
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	callq	_get_script_str
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	movq	_SCRIPTTEXT_HOSTMANAGESSOURCE@GOTPCREL(%rip), %rax
	movq	_SCRIPTITEM_ISVISIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movl	%ecx, 8(%rsp)
	movl	$1, (%rsp)
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_IActiveScriptParse_ParseScriptText
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_SysFreeString
	movl	%r15d, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WINE_FIXME                     ## TAILCALL
LBB0_4:
	movq	_SCRIPTSTATE_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IActiveScript_SetScriptState
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
LBB0_3:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WINE_FIXME                     ## TAILCALL
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get script text\n"

	.comm	_SCRIPTTEXT_HOSTMANAGESSOURCE,4,2 ## @SCRIPTTEXT_HOSTMANAGESSOURCE
	.comm	_SCRIPTITEM_ISVISIBLE,4,2       ## @SCRIPTITEM_ISVISIBLE
L_.str.1:                               ## @.str.1
	.asciz	"ParseScriptText failed: %08x\n"

	.comm	_SCRIPTSTATE_STARTED,4,2        ## @SCRIPTSTATE_STARTED
L_.str.2:                               ## @.str.2
	.asciz	"SetScriptState failed: %08x\n"

	.no_dead_strip	_run_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_script
_run_script:                            ; @run_script
	.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	x21, x2
	mov	x19, x1
	bl	_get_script_str
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _SCRIPTTEXT_HOSTMANAGESSOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCRIPTTEXT_HOSTMANAGESSOURCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SCRIPTITEM_ISVISIBLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCRIPTITEM_ISVISIBLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w7, w9, w8
	stp	xzr, xzr, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	w5, #1
	mov	w6, #1
	bl	_IActiveScriptParse_ParseScriptText
	mov	x21, x0
	mov	x0, x20
	bl	_SysFreeString
	mov	x0, x21
	bl	_FAILED
	cbz	x0, LBB0_4
; %bb.2:
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	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	_WINE_FIXME
LBB0_4:
Lloh10:
	adrp	x8, _SCRIPTSTATE_STARTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SCRIPTSTATE_STARTED@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IActiveScript_SetScriptState
	mov	x19, x0
	bl	_FAILED
	cbz	x0, LBB0_7
; %bb.5:
	str	x19, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_WINE_FIXME
LBB0_7:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get script text\n"

	.comm	_SCRIPTTEXT_HOSTMANAGESSOURCE,4,2 ; @SCRIPTTEXT_HOSTMANAGESSOURCE
	.comm	_SCRIPTITEM_ISVISIBLE,4,2       ; @SCRIPTITEM_ISVISIBLE
l_.str.1:                               ; @.str.1
	.asciz	"ParseScriptText failed: %08x\n"

	.comm	_SCRIPTSTATE_STARTED,4,2        ; @SCRIPTSTATE_STARTED
l_.str.2:                               ; @.str.2
	.asciz	"SetScriptState failed: %08x\n"

	.no_dead_strip	_run_script
.subsections_via_symbols
