	.file	"extr_nsio.c_load_nsuri.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not get nsIWebNavigation interface: %08x\n"
	.align 8
.LC1:
	.string	"Could not get nsIDocShell: %08x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"LoadURI failed: %08x\n"
	.text
	.p2align 4
	.globl	load_nsuri
	.type	load_nsuri, @function
load_nsuri:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	lea	rsi, IID_nsIWebNavigation[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rdi, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 8[rsp]
	mov	QWORD PTR [rsp], 0
	call	get_nsinterface@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	NS_FAILED@PLT
	test	rax, rax
	jne	.L20
	mov	rdi, QWORD PTR 8[rsp]
	lea	rdx, 16[rsp]
	lea	rsi, IID_nsIDocShell[rip]
	call	nsIWebNavigation_QueryInterface@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rbp, rax
	call	nsIWebNavigation_Release@PLT
	mov	rdi, rbp
	call	NS_FAILED@PLT
	test	rax, rax
	jne	.L21
	mov	rdi, QWORD PTR 16[rsp]
	test	r13, r13
	je	.L5
	mov	rsi, rsp
	call	nsIDocShell_CreateLoadInfo@PLT
	mov	rdi, rax
	call	NS_FAILED@PLT
	test	rax, rax
	jne	.L22
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, r13
	call	nsIDocShellLoadInfo_SetPostDataStream@PLT
	xor	edi, edi
	cmp	QWORD PTR NS_OK[rip], rax
	sete	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 16[rsp]
.L5:
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR [r12], r15
	lea	rsi, 8[r12]
	mov	ecx, r14d
	mov	rdx, QWORD PTR [rsp]
	mov	r13, QWORD PTR [rax]
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR 0[r13], eax
	mov	r8d, DWORD PTR FALSE[rip]
	call	nsIDocShell_LoadURI@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR [rax], r13
	je	.L23
.L7:
	mov	QWORD PTR [r12], 0
	mov	rdi, QWORD PTR 16[rsp]
	call	nsIDocShell_Release@PLT
	mov	rdi, QWORD PTR [rsp]
	test	rdi, rdi
	je	.L8
	call	nsIDocShellLoadInfo_Release@PLT
.L8:
	mov	rdi, rbp
	call	NS_FAILED@PLT
	mov	r8, rax
	mov	eax, DWORD PTR S_OK[rip]
	test	r8, r8
	jne	.L24
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L20:
	.cfi_restore_state
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	ERR@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	call	ERR@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, QWORD PTR 16[rsp]
	call	nsIDocShell_Release@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR 0[r13], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	call	WARN@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	load_nsuri, .-load_nsuri
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	NS_OK,8,8
	.comm	IID_nsIWebNavigation,4,4
	.comm	IID_nsIDocShell,4,4
	.comm	FALSE,4,4
	.comm	E_FAIL,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_nsio.c_load_nsuri.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not get nsIWebNavigation interface: %08x\012\000"
	.align	2
.LC1:
	.ascii	"Could not get nsIDocShell: %08x\012\000"
	.align	2
.LC2:
	.ascii	"LoadURI failed: %08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_nsuri
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_nsuri, %function
load_nsuri:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	sub	sp, sp, #24
	ldr	r3, .L24
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	ldr	r1, .L24+4
	add	r2, sp, #12
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	ip, [sp, #8]
	bl	get_nsinterface
	mov	r8, r0
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L19
	ldr	r1, .L24+8
	add	r2, sp, #16
	ldr	r0, [sp, #12]
	bl	nsIWebNavigation_QueryInterface
	mov	r8, r0
	ldr	r0, [sp, #12]
	bl	nsIWebNavigation_Release
	mov	r0, r8
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L20
	cmp	r6, #0
	ldr	r0, [sp, #16]
	beq	.L5
	add	r1, sp, #8
	bl	nsIDocShell_CreateLoadInfo
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L21
	mov	r1, r6
	ldr	r0, [sp, #8]
	bl	nsIDocShellLoadInfo_SetPostDataStream
	ldr	r3, .L24+12
	ldr	r3, [r3]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [sp, #16]
.L5:
	mov	r1, r5
	ldr	r2, [r4]
	ldr	r3, .L24+16
	ldr	r6, [r2]
	ldr	r3, [r3]
	ldr	r8, .L24+20
	str	r7, [r1], #4
	str	r3, [r6]
	ldr	r3, [r8]
	ldr	r2, [sp, #8]
	str	r3, [sp]
	ldr	r3, [sp, #48]
	bl	nsIDocShell_LoadURI
	ldr	r3, [r4]
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r0, [sp, #16]
	cmp	r3, r6
	ldreq	r2, [r8]
	streq	r2, [r3]
	mov	r3, #0
	str	r3, [r5]
	bl	nsIDocShell_Release
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L8
	bl	nsIDocShellLoadInfo_Release
.L8:
	mov	r0, r4
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L22
	ldr	r3, .L24+24
	ldr	r0, [r3]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r1, r8
	ldr	r0, .L24+28
	bl	ERR
	ldr	r3, .L24+32
	ldr	r0, [r3]
	b	.L1
.L20:
	mov	r1, r8
	ldr	r0, .L24+36
	bl	ERR
	ldr	r3, .L24+32
	ldr	r0, [r3]
	b	.L1
.L21:
	ldr	r0, [sp, #16]
	bl	nsIDocShell_Release
	ldr	r3, .L24+32
	ldr	r0, [r3]
	b	.L1
.L22:
	mov	r1, r4
	ldr	r0, .L24+40
	bl	WARN
	ldr	r3, .L24+32
	ldr	r0, [r3]
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	IID_nsIWebNavigation
	.word	IID_nsIDocShell
	.word	NS_OK
	.word	TRUE
	.word	FALSE
	.word	S_OK
	.word	.LC0
	.word	E_FAIL
	.word	.LC1
	.word	.LC2
	.size	load_nsuri, .-load_nsuri
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	NS_OK,4,4
	.comm	IID_nsIWebNavigation,4,4
	.comm	IID_nsIDocShell,4,4
	.comm	FALSE,4,4
	.comm	E_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
