	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_engine_clsid
_get_engine_clsid:                      ## @get_engine_clsid
	.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	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_HKEY_CLASSES_ROOT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-180(%rbp), %rdx
	callq	_RegOpenKeyW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.2:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -184(%rbp)
	movl	-180(%rbp), %edi
	leaq	-184(%rbp), %rcx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_RegQueryValueW
	movq	%rax, %rbx
	movl	-180(%rbp), %edi
	callq	_RegCloseKey
	cmpq	(%r15), %rbx
	jne	LBB0_1
## %bb.3:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_wine_dbgstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_WINE_TRACE
	leaq	_get_engine_clsid.script_engineW(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcatW
	movl	(%r12), %edi
	leaq	-180(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_RegOpenKeyW
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.4:
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -184(%rbp)
	movl	-180(%rbp), %edi
	leaq	-184(%rbp), %rcx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_RegQueryValueW
	movq	%rax, %rbx
	movl	-180(%rbp), %edi
	callq	_RegCloseKey
	cmpq	(%r15), %rbx
	jne	LBB0_1
## %bb.5:
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_wine_dbgstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_WINE_TRACE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_CLSIDFromProgID
	movl	%eax, %edi
	callq	_SUCCEEDED
	jmp	LBB0_6
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_get_engine_clsid.script_engineW:       ## @get_engine_clsid.script_engineW
	.asciz	"\\ScriptEngine"

	.comm	_HKEY_CLASSES_ROOT,4,2          ## @HKEY_CLASSES_ROOT
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fileid is %s\n"

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

	.no_dead_strip	_get_engine_clsid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_engine_clsid
_get_engine_clsid:                      ; @get_engine_clsid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x22, _HKEY_CLASSES_ROOT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HKEY_CLASSES_ROOT@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x2, sp
	bl	_RegOpenKeyW
Lloh5:
	adrp	x21, _ERROR_SUCCESS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	add	x0, sp, #72
	bl	_ARRAY_SIZE
	str	w0, [sp, #4]
	ldr	w0, [sp]
	add	x2, sp, #72
	add	x3, sp, #4
	mov	x1, #0
	bl	_RegQueryValueW
	mov	x20, x0
	ldr	w0, [sp]
	bl	_RegCloseKey
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.2:
	add	x0, sp, #72
	bl	_wine_dbgstr_w
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WINE_TRACE
Lloh9:
	adrp	x1, _get_engine_clsid.script_engineW@PAGE
Lloh10:
	add	x1, x1, _get_engine_clsid.script_engineW@PAGEOFF
	add	x0, sp, #72
	bl	_strcatW
	ldr	w0, [x22]
	add	x1, sp, #72
	mov	x2, sp
	bl	_RegOpenKeyW
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	str	w0, [sp, #4]
	ldr	w0, [sp]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x1, #0
	bl	_RegQueryValueW
	mov	x20, x0
	ldr	w0, [sp]
	bl	_RegCloseKey
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_wine_dbgstr_w
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WINE_TRACE
	add	x0, sp, #8
	mov	x1, x19
	bl	_CLSIDFromProgID
	bl	_SUCCEEDED
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_get_engine_clsid.script_engineW:       ; @get_engine_clsid.script_engineW
	.asciz	"\\ScriptEngine"

	.comm	_HKEY_CLASSES_ROOT,4,2          ; @HKEY_CLASSES_ROOT
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fileid is %s\n"

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

	.no_dead_strip	_get_engine_clsid
.subsections_via_symbols
