	.file	"extr_persist.c_set_moniker.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"GetDiaplayName failed: %08x\n"
.LC1:
	.string	"got url: %s\n"
.LC2:
	.string	"pending window for %p %p %p\n"
	.text
	.p2align 4
	.globl	set_moniker
	.type	set_moniker, @function
set_moniker:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	mov	rsi, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rbx, QWORD PTR 16[rdi]
	mov	DWORD PTR 12[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	rbx, rbx
	je	.L2
	cmp	QWORD PTR 8[rbx], rdi
	cmovne	rbx, rax
.L2:
	xor	edx, edx
	lea	rcx, 28[rsp]
	mov	rdi, r14
	call	IMoniker_GetDisplayName@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L37
	mov	edi, DWORD PTR 28[rsp]
	test	r15, r15
	je	.L5
	mov	QWORD PTR 48[rsp], r15
	call	debugstr_w@PLT
	lea	rdi, .LC1[rip]
	movsx	rsi, eax
	xor	eax, eax
	call	TRACE@PLT
	mov	esi, DWORD PTR READYSTATE_LOADING[rip]
	mov	rdi, rbp
	call	set_ready_state@PLT
	mov	rsi, QWORD PTR 48[rsp]
	lea	rdx, 40[rsp]
	mov	rdi, rbp
	call	create_doc_uri@PLT
	mov	r12d, eax
.L6:
	mov	edi, r12d
	call	SUCCEEDED@PLT
	test	rax, rax
	je	.L8
	test	r13, r13
	je	.L9
	mov	QWORD PTR 32[rsp], r13
.L8:
	mov	edi, r12d
	call	SUCCEEDED@PLT
	test	rax, rax
	je	.L10
	mov	rdi, QWORD PTR 8[rbp]
	cmp	QWORD PTR 8[rdi], 0
	jne	.L38
.L11:
	call	abort_window_bindings@PLT
	mov	rcx, QWORD PTR 32[rsp]
	xor	edx, edx
	mov	rdi, rbp
	mov	r8d, DWORD PTR LOAD_FLAGS_BYPASS_CACHE[rip]
	mov	rsi, QWORD PTR 40[rsp]
	call	load_nsuri@PLT
	mov	rdi, QWORD PTR 40[rsp]
	mov	r12d, eax
	call	nsISupports_Release@PLT
	mov	edi, r12d
	call	SUCCEEDED@PLT
	test	rax, rax
	jne	.L39
.L12:
	mov	rdi, QWORD PTR 32[rsp]
	cmp	rdi, r13
	je	.L10
	call	IBindStatusCallback_Release@PLT
.L10:
	mov	edi, r12d
	call	FAILED@PLT
	test	rax, rax
	jne	.L35
	mov	r12d, DWORD PTR S_OK[rip]
	test	rbx, rbx
	je	.L1
	mov	esi, DWORD PTR TRUE[rip]
	mov	rdi, rbx
	call	HTMLDocument_LockContainer@PLT
	cmp	QWORD PTR 16[rbx], 0
	je	.L15
	mov	edi, 16
	call	heap_alloc@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	esi, DWORD PTR set_progress_proc[rip]
	xor	edx, edx
	mov	QWORD PTR 8[rax], rbx
	mov	rdi, rax
	call	push_task@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L35
.L15:
	mov	edi, 24
	call	heap_alloc@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	rdx, QWORD PTR set_downloading_task_destr[rip]
	mov	QWORD PTR 16[rax], rbx
	mov	rdi, rax
	mov	eax, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR set_downloading_proc[rip]
	mov	DWORD PTR 8[rdi], eax
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 4[rdi], eax
	call	push_task@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	edi, DWORD PTR 28[rsp]
.L34:
	call	CoTaskMemFree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	WARN@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdx, 48[rsp]
	xor	esi, esi
	call	create_uri@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	mov	edi, DWORD PTR 28[rsp]
	test	rax, rax
	jne	.L34
	call	debugstr_w@PLT
	lea	rdi, .LC1[rip]
	movsx	rsi, eax
	xor	eax, eax
	call	TRACE@PLT
	mov	esi, DWORD PTR READYSTATE_LOADING[rip]
	mov	rdi, rbp
	call	set_ready_state@PLT
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdi, rbp
	lea	rdx, 40[rsp]
	call	create_doc_uri@PLT
	mov	rdi, QWORD PTR 48[rsp]
	mov	r12d, eax
	call	IUri_Release@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, rbp
	call	create_pending_window@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	rsi, rbp
	mov	r12d, eax
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	TRACE@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L38:
	mov	edi, DWORD PTR [rdi]
	call	remove_target_tasks@PLT
	mov	rdi, QWORD PTR 8[rbp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, DWORD PTR TRUE[rip]
	lea	r9, 32[rsp]
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r14
	call	create_channelbsc@PLT
	mov	r12d, eax
	jmp	.L8
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_moniker, .-set_moniker
	.comm	set_progress_proc,4,4
	.comm	set_downloading_task_destr,8,8
	.comm	set_downloading_proc,4,4
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	READYSTATE_LOADING,4,4
	.comm	LOAD_FLAGS_BYPASS_CACHE,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_persist.c_set_moniker.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GetDiaplayName failed: %08x\012\000"
	.align	2
.LC1:
	.ascii	"got url: %s\012\000"
	.align	2
.LC2:
	.ascii	"pending window for %p %p %p\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_moniker
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_moniker, %function
set_moniker:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r6, [r0, #8]
	mov	r8, r1
	mov	r1, r3
	ldr	r3, .L47
	sub	sp, sp, #36
	cmp	r6, #0
	mov	r5, r0
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r9, [sp, #64]
	beq	.L2
	ldr	r3, [r6, #4]
	cmp	r3, r0
	movne	r6, #0
.L2:
	mov	r2, #0
	add	r3, sp, #20
	mov	r0, r8
	bl	IMoniker_GetDisplayName
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L42
	cmp	r7, #0
	ldr	r0, [sp, #20]
	beq	.L5
	str	r7, [sp, #24]
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L47+4
	bl	TRACE
	ldr	r3, .L47+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	set_ready_state
	mov	r0, r5
	ldr	r1, [sp, #24]
	add	r2, sp, #16
	bl	create_doc_uri
	mov	r4, r0
.L6:
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	beq	.L8
	cmp	r9, #0
	strne	r9, [sp, #12]
	beq	.L43
.L8:
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	beq	.L10
	ldr	r0, [r5, #4]
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L44
.L11:
	bl	abort_window_bindings
	ldr	r2, .L47+12
	ldr	r3, [sp, #12]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #0
	str	r1, [sp]
	ldr	r1, [sp, #16]
	bl	load_nsuri
	mov	r4, r0
	ldr	r0, [sp, #16]
	bl	nsISupports_Release
	mov	r0, r4
	bl	SUCCEEDED
	cmp	r0, #0
	bne	.L45
.L12:
	ldr	r0, [sp, #12]
	cmp	r0, r9
	beq	.L10
	bl	IBindStatusCallback_Release
.L10:
	mov	r0, r4
	bl	FAILED
	subs	r5, r0, #0
	bne	.L40
	cmp	r6, #0
	beq	.L14
	ldr	r3, .L47+16
	mov	r0, r6
	ldr	r1, [r3]
	bl	HTMLDocument_LockContainer
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L15
	mov	r0, #8
	bl	heap_alloc
	ldr	r3, .L47+20
	mov	r2, r5
	ldr	r1, [r3]
	str	r6, [r0, #4]
	ldr	r3, [r6]
	bl	push_task
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L40
.L15:
	mov	r0, #16
	bl	heap_alloc
	ldr	r3, [sp, #68]
	ldr	lr, [sp, #20]
	ldr	ip, .L47+24
	ldr	r1, .L47+28
	str	r3, [r0, #8]
	ldr	r2, [ip]
	ldr	r3, [r6]
	ldr	r1, [r1]
	str	r6, [r0, #12]
	str	lr, [r0, #4]
	bl	push_task
	mov	r4, r0
	b	.L1
.L14:
	ldr	r3, .L47+32
	ldr	r4, [r3]
.L1:
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L40:
	ldr	r0, [sp, #20]
.L39:
	bl	CoTaskMemFree
	b	.L1
.L42:
	mov	r1, r4
	ldr	r0, .L47+36
	bl	WARN
	b	.L1
.L43:
	ldr	r2, .L47+16
	add	r3, sp, #12
	ldr	r2, [r2]
	mov	r0, r8
	stm	sp, {r2, r3}
	mov	r1, r9
	mov	r3, r9
	mov	r2, r9
	bl	create_channelbsc
	mov	r4, r0
	b	.L8
.L5:
	mov	r1, r7
	add	r2, sp, #24
	bl	create_uri
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	ldr	r0, [sp, #20]
	bne	.L39
	bl	debugstr_w
	mov	r1, r0
	ldr	r0, .L47+4
	bl	TRACE
	ldr	r3, .L47+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	set_ready_state
	mov	r0, r5
	ldr	r1, [sp, #24]
	add	r2, sp, #16
	bl	create_doc_uri
	mov	r4, r0
	ldr	r0, [sp, #24]
	bl	IUri_Release
	b	.L6
.L45:
	ldr	r1, [sp, #12]
	mov	r0, r5
	bl	create_pending_window
	mov	r1, r5
	mov	r4, r0
	ldr	r3, [r5]
	ldr	r2, [sp, #12]
	ldr	r0, .L47+40
	bl	TRACE
	b	.L12
.L44:
	ldr	r0, [r0]
	bl	remove_target_tasks
	ldr	r0, [r5, #4]
	b	.L11
.L46:
	bl	__stack_chk_fail
.L48:
	.align	2
.L47:
	.word	.LC3
	.word	.LC1
	.word	READYSTATE_LOADING
	.word	LOAD_FLAGS_BYPASS_CACHE
	.word	TRUE
	.word	set_progress_proc
	.word	set_downloading_task_destr
	.word	set_downloading_proc
	.word	S_OK
	.word	.LC0
	.word	.LC2
	.size	set_moniker, .-set_moniker
	.comm	set_progress_proc,4,4
	.comm	set_downloading_task_destr,4,4
	.comm	set_downloading_proc,4,4
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	READYSTATE_LOADING,4,4
	.comm	LOAD_FLAGS_BYPASS_CACHE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
