	.file	"extr_activex.c_set_client_site.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not et IOleObject: %08x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"SetClientSite failed: %08x\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Could not get IHlinkTarget iface: %08x\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Navgate failed: %08x\n"
	.text
	.p2align 4
	.type	set_client_site, @function
set_client_site:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	jne	.L2
	mov	rdi, QWORD PTR view[rip]
	test	rdi, rdi
	je	.L3
	mov	esi, DWORD PTR FALSE[rip]
	call	IOleDocumentView_Show@PLT
	mov	rdi, QWORD PTR view[rip]
	xor	esi, esi
	call	IOleDocumentView_CloseView@PLT
	mov	rdi, QWORD PTR view[rip]
	xor	esi, esi
	call	IOleDocumentView_SetInPlaceSite@PLT
	mov	rdi, QWORD PTR view[rip]
	call	IOleDocumentView_Release@PLT
	mov	QWORD PTR view[rip], 0
.L3:
	lea	rdx, 8[rsp]
	lea	rsi, IID_IOleObject[rip]
	mov	rdi, rbp
	call	IHTMLDocument2_QueryInterface@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	xor	esi, esi
	call	IOleObject_SetClientSite@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC1[rip]
	mov	rdx, rax
	sete	dil
	call	ok@PLT
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	call	IOleObject_Release@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdx, 8[rsp]
	lea	rsi, IID_IOleObject[rip]
	call	IHTMLDocument2_QueryInterface@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC0[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	lea	rsi, ClientSite[rip]
	call	IOleObject_SetClientSite@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC1[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 8[rsp]
	lea	rdx, 16[rsp]
	lea	rsi, IID_IHlinkTarget[rip]
	call	IOleObject_QueryInterface@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC2[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 16[rsp]
	xor	edx, edx
	xor	esi, esi
	call	IHlinkTarget_Navigate@PLT
	xor	edi, edi
	cmp	QWORD PTR S_OK[rip], rax
	lea	rsi, .LC3[rip]
	sete	dil
	mov	rdx, rax
	call	ok@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	IHlinkTarget_Release@PLT
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_client_site, .-set_client_site
	.comm	view,8,8
	.comm	S_OK,8,8
	.comm	IID_IOleObject,4,4
	.comm	IID_IHlinkTarget,4,4
	.comm	FALSE,4,4
	.comm	ClientSite,4,4
	.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_activex.c_set_client_site.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not et IOleObject: %08x\012\000"
	.align	2
.LC1:
	.ascii	"SetClientSite failed: %08x\012\000"
	.align	2
.LC2:
	.ascii	"Could not get IHlinkTarget iface: %08x\012\000"
	.align	2
.LC3:
	.ascii	"Navgate failed: %08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_client_site, %function
set_client_site:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	sub	sp, sp, #16
	subs	r4, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bne	.L2
	ldr	r6, .L13+4
	mov	r5, r0
	ldr	r0, [r6]
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L13+8
	ldr	r1, [r3]
	bl	IOleDocumentView_Show
	mov	r1, r4
	ldr	r0, [r6]
	bl	IOleDocumentView_CloseView
	mov	r1, r4
	ldr	r0, [r6]
	bl	IOleDocumentView_SetInPlaceSite
	ldr	r0, [r6]
	bl	IOleDocumentView_Release
	str	r4, [r6]
.L3:
	ldr	r1, .L13+12
	add	r2, sp, #4
	mov	r0, r5
	bl	IHTMLDocument2_QueryInterface
	mov	r2, r0
	ldr	r4, .L13+16
	ldr	r1, .L13+20
	ldr	r0, [r4]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r1, #0
	ldr	r0, [sp, #4]
	bl	IOleObject_SetClientSite
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L13+24
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
.L4:
	ldr	r0, [sp, #4]
	bl	IOleObject_Release
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	add	r2, sp, #4
	ldr	r1, .L13+12
	bl	IHTMLDocument2_QueryInterface
	mov	r2, r0
	ldr	r4, .L13+16
	ldr	r1, .L13+20
	ldr	r0, [r4]
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r1, .L13+28
	ldr	r0, [sp, #4]
	bl	IOleObject_SetClientSite
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L13+24
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	add	r2, sp, #8
	ldr	r1, .L13+32
	ldr	r0, [sp, #4]
	bl	IOleObject_QueryInterface
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L13+36
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	mov	r2, #0
	ldr	r0, [sp, #8]
	mov	r1, r2
	bl	IHlinkTarget_Navigate
	mov	r2, r0
	ldr	r0, [r4]
	ldr	r1, .L13+40
	sub	r0, r0, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp, #8]
	bl	IHlinkTarget_Release
	b	.L4
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	view
	.word	FALSE
	.word	IID_IOleObject
	.word	S_OK
	.word	.LC0
	.word	.LC1
	.word	ClientSite
	.word	IID_IHlinkTarget
	.word	.LC2
	.word	.LC3
	.size	set_client_site, .-set_client_site
	.comm	view,4,4
	.comm	S_OK,4,4
	.comm	IID_IOleObject,4,4
	.comm	IID_IHlinkTarget,4,4
	.comm	FALSE,4,4
	.comm	ClientSite,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
