	.file	"extr_shlinstobj.c_SHDOCVW_GetShellInstanceObjectClassObject.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"(rclsid=%s, riid=%s, ppvClassObject=%p)\n"
	.align 8
.LC1:
	.string	"Failed to infer instance CLSID! %s\n"
	.align 8
.LC2:
	.string	"No InitPropertyBag key found!\n"
	.text
	.p2align 4
	.globl	SHDOCVW_GetShellInstanceObjectClassObject
	.type	SHDOCVW_GetShellInstanceObjectClassObject, @function
SHDOCVW_GetShellInstanceObjectClassObject:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, edi
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -48
	mov	r12d, esi
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -56
	movdqa	xmm0, XMMWORD PTR .LC3[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, 101
	mov	rbx, rsp
	mov	DWORD PTR -64[rbp], 1668178292
	mov	WORD PTR -60[rbp], ax
	movsx	rax, DWORD PTR CHARS_IN_GUID[rip]
	movaps	XMMWORD PTR -112[rbp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC4[rip]
	mov	rcx, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	movaps	XMMWORD PTR -96[rbp], xmm0
	movdqa	xmm0, XMMWORD PTR .LC5[rip]
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	movaps	XMMWORD PTR -80[rbp], xmm0
	cmp	rsp, rax
	je	.L3
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L20
.L4:
	mov	edi, r12d
	mov	DWORD PTR -124[rbp], ecx
	mov	r15, rsp
	call	debugstr_guid@PLT
	mov	edi, r14d
	mov	ebx, eax
	call	debugstr_guid@PLT
	mov	edx, ebx
	mov	rcx, r13
	lea	rbx, -112[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	edx, DWORD PTR CHARS_IN_GUID[rip]
	lea	rsi, -106[rbp]
	mov	edi, r14d
	call	StringFromGUID2@PLT
	test	eax, eax
	jne	.L5
.L17:
	mov	r14d, DWORD PTR CLASS_E_CLASSNOTAVAILABLE[rip]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -40[rbp]
	mov	eax, r14d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR CHARS_IN_GUID[rip]
	mov	ecx, DWORD PTR KEY_READ[rip]
	xor	edx, edx
	mov	rsi, rbx
	mov	edi, DWORD PTR HKEY_CLASSES_ROOT[rip]
	lea	r8, -136[rbp]
	add	eax, 5
	cdqe
	mov	BYTE PTR -112[rbp+rax], 92
	call	RegOpenKeyExW@PLT
	cmp	rax, QWORD PTR ERROR_SUCCESS[rip]
	jne	.L17
	mov	edi, DWORD PTR -136[rbp]
	xor	edx, edx
	lea	rcx, -128[rbp]
	lea	r9, -124[rbp]
	mov	r8d, esp
	lea	rsi, wszCLSID.1983[rip]
	call	RegQueryValueExW@PLT
	cmp	rax, QWORD PTR ERROR_SUCCESS[rip]
	jne	.L9
	lea	rbx, -140[rbp]
	mov	rdi, rsp
	mov	rsi, rbx
	call	CLSIDFromString@PLT
	mov	edi, eax
	call	FAILED@PLT
	test	rax, rax
	je	.L22
.L9:
	mov	rdi, r15
	call	debugstr_w@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	FIXME@PLT
	mov	edi, DWORD PTR -136[rbp]
	call	RegCloseKey@PLT
	mov	r14d, DWORD PTR CLASS_E_CLASSNOTAVAILABLE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	ecx, DWORD PTR KEY_READ[rip]
	mov	edi, DWORD PTR -136[rbp]
	xor	edx, edx
	lea	r8, -132[rbp]
	lea	rsi, wszInitPropertyBag.1984[rip]
	call	RegOpenKeyExW@PLT
	mov	edi, DWORD PTR -136[rbp]
	mov	r14, rax
	call	RegCloseKey@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], r14
	je	.L10
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	TRACE@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR -132[rbp]
	lea	rdx, -120[rbp]
	lea	rsi, IID_IPropertyBag[rip]
	call	RegistryPropertyBag_Constructor@PLT
	mov	edi, eax
	mov	r14d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L23
	mov	rsi, QWORD PTR -120[rbp]
	mov	rdi, rbx
	mov	rcx, r13
	mov	edx, r12d
	call	InstanceObjectFactory_Constructor@PLT
	mov	rdi, QWORD PTR -120[rbp]
	mov	r14d, eax
	call	IPropertyBag_Release@PLT
	jmp	.L1
.L23:
	mov	edi, DWORD PTR -132[rbp]
	call	RegCloseKey@PLT
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SHDOCVW_GetShellInstanceObjectClassObject, .-SHDOCVW_GetShellInstanceObjectClassObject
	.section	.rodata
	.align 16
	.type	wszInitPropertyBag.1984, @object
	.size	wszInitPropertyBag.1984, 16
wszInitPropertyBag.1984:
	.string	"InitPropertyBag"
	.type	wszCLSID.1983, @object
	.size	wszCLSID.1983, 6
wszCLSID.1983:
	.string	"CLSID"
	.comm	KEY_READ,4,4
	.comm	IID_IPropertyBag,4,4
	.comm	HKEY_CLASSES_ROOT,4,4
	.comm	ERROR_SUCCESS,8,8
	.comm	CLASS_E_CLASSNOTAVAILABLE,4,4
	.comm	CHARS_IN_GUID,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	3493487384313678915
	.quad	3256155514113896496
	.align 16
.LC4:
	.quad	3472328283342778416
	.quad	3471483871297547568
	.align 16
.LC5:
	.quad	3472328296227680304
	.quad	8317666223386013744
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_shlinstobj.c_SHDOCVW_GetShellInstanceObjectClassObject.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"(rclsid=%s, riid=%s, ppvClassObject=%p)\012\000"
	.align	2
.LC2:
	.ascii	"Failed to infer instance CLSID! %s\012\000"
	.align	2
.LC3:
	.ascii	"No InitPropertyBag key found!\012\000"
	.align	2
.LC0:
	.ascii	"CLSID\\{00000000-0000-0000-0000-000000000000}\\Inst"
	.ascii	"ance\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SHDOCVW_GetShellInstanceObjectClassObject
	.syntax unified
	.arm
	.fpu softvfp
	.type	SHDOCVW_GetShellInstanceObjectClassObject, %function
SHDOCVW_GetShellInstanceObjectClassObject:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #100
	mov	r4, r0
	ldr	lr, .L16
	sub	ip, fp, #88
	mov	r5, r1
	mov	r6, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	ldr	r8, .L16+4
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	ldr	r2, [r8]
	str	r0, [ip], #4
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L16+8
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	strh	r1, [ip]	@ movhi
	str	r2, [fp, #-96]
	bl	debugstr_guid
	mov	r7, r0
	mov	r0, r5
	bl	debugstr_guid
	mov	r3, r6
	mov	r2, r0
	mov	r1, r7
	ldr	r0, .L16+12
	bl	TRACE
	mov	r0, r4
	ldr	r2, [r8]
	sub	r1, fp, #82
	bl	StringFromGUID2
	cmp	r0, #0
	bne	.L2
.L11:
	ldr	r3, .L16+16
	ldr	r4, [r3]
.L1:
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L2:
	mov	ip, #92
	ldr	r2, [r8]
	ldr	r0, .L16+20
	sub	r3, fp, #108
	sub	r1, fp, #28
	ldr	r8, .L16+24
	add	r2, r1, r2
	ldr	r0, [r0]
	str	r3, [sp]
	ldr	r3, [r8]
	strb	ip, [r2, #-55]
	sub	r1, fp, #88
	mov	r2, #0
	bl	RegOpenKeyExW
	ldr	r7, .L16+28
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L11
	sub	r3, fp, #96
	add	r4, sp, #8
	str	r3, [sp, #4]
	mov	r2, #0
	sub	r3, fp, #100
	ldr	r1, .L16+32
	ldr	r0, [fp, #-108]
	str	r4, [sp]
	bl	RegQueryValueExW
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L6
	sub	r1, fp, #112
	mov	r0, r4
	bl	CLSIDFromString
	bl	FAILED
	subs	r2, r0, #0
	beq	.L14
.L6:
	mov	r0, r4
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L16+36
	bl	FIXME
	ldr	r0, [fp, #-108]
	bl	RegCloseKey
	ldr	r3, .L16+16
	ldr	r4, [r3]
	b	.L1
.L14:
	sub	r1, fp, #104
	ldr	r3, [r8]
	ldr	r0, [fp, #-108]
	str	r1, [sp]
	ldr	r1, .L16+40
	bl	RegOpenKeyExW
	mov	r4, r0
	ldr	r0, [fp, #-108]
	bl	RegCloseKey
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L7
	ldr	r0, .L16+44
	bl	TRACE
	b	.L11
.L7:
	ldr	r1, .L16+48
	sub	r2, fp, #92
	ldr	r0, [fp, #-104]
	bl	RegistryPropertyBag_Constructor
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L15
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [fp, #-92]
	sub	r0, fp, #112
	bl	InstanceObjectFactory_Constructor
	mov	r4, r0
	ldr	r0, [fp, #-92]
	bl	IPropertyBag_Release
	b	.L1
.L15:
	ldr	r0, [fp, #-104]
	bl	RegCloseKey
	b	.L1
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	CHARS_IN_GUID
	.word	.LC4
	.word	.LC1
	.word	CLASS_E_CLASSNOTAVAILABLE
	.word	HKEY_CLASSES_ROOT
	.word	KEY_READ
	.word	ERROR_SUCCESS
	.word	.LANCHOR0
	.word	.LC2
	.word	.LANCHOR0+8
	.word	.LC3
	.word	IID_IPropertyBag
	.size	SHDOCVW_GetShellInstanceObjectClassObject, .-SHDOCVW_GetShellInstanceObjectClassObject
	.comm	KEY_READ,4,4
	.comm	IID_IPropertyBag,4,4
	.comm	HKEY_CLASSES_ROOT,4,4
	.comm	ERROR_SUCCESS,4,4
	.comm	CLASS_E_CLASSNOTAVAILABLE,4,4
	.comm	CHARS_IN_GUID,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	wszCLSID.4267, %object
	.size	wszCLSID.4267, 6
wszCLSID.4267:
	.ascii	"CLSID\000"
	.space	2
	.type	wszInitPropertyBag.4268, %object
	.size	wszInitPropertyBag.4268, 16
wszInitPropertyBag.4268:
	.ascii	"InitPropertyBag\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
