	.file	"extr_htmldoc.c_get_doc_elem_by_id.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NULL nsdoc\n"
.LC1:
	.string	"GetElementById failed: %08x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"getElementsByName failed: %08x\n"
	.align 8
.LC3:
	.string	"CompareDocumentPosition failed: 0x%08x\n"
	.align 8
.LC4:
	.string	"CompareDocumentPosition gave: 0x%x\n"
	.text
	.p2align 4
	.globl	get_doc_elem_by_id
	.type	get_doc_elem_by_id, @function
get_doc_elem_by_id:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L26
	lea	r12, 8[rsp]
	mov	rbp, rdi
	lea	r15, 24[rsp]
	mov	r14, rdx
	mov	rdi, r12
	call	nsAString_InitDepend@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r15
	mov	rsi, r12
	call	nsIDOMHTMLDocument_GetElementById@PLT
	mov	rdi, rax
	mov	r13, rax
	call	FAILED@PLT
	test	rax, rax
	jne	.L27
	mov	edi, DWORD PTR 0[rbp]
	lea	rdx, 16[rsp]
	mov	rsi, r12
	call	nsIDOMHTMLDocument_GetElementsByName@PLT
	mov	rdi, r12
	mov	r13, rax
	call	nsAString_Finish@PLT
	mov	rdi, r13
	call	FAILED@PLT
	test	rax, rax
	jne	.L28
	mov	rdi, QWORD PTR 16[rsp]
	xor	esi, esi
	lea	rdx, 32[rsp]
	call	nsIDOMNodeList_Item@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	r12, rax
	call	nsIDOMNodeList_Release@PLT
	xor	edi, edi
	cmp	QWORD PTR NS_OK[rip], r12
	sete	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	test	rdi, rdi
	je	.L8
	test	rsi, rsi
	je	.L9
	lea	rdx, 12[rsp]
	call	nsIDOMNode_CompareDocumentPosition@PLT
	mov	rdi, rax
	mov	r12, rax
	call	NS_FAILED@PLT
	test	rax, rax
	jne	.L29
	mov	esi, DWORD PTR 12[rsp]
	lea	rdi, .LC4[rip]
	call	TRACE@PLT
	mov	eax, DWORD PTR DOCUMENT_POSITION_PRECEDING[rip]
	or	eax, DWORD PTR DOCUMENT_POSITION_CONTAINS[rip]
	test	DWORD PTR 12[rsp], eax
	je	.L11
	mov	r8, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r8
	test	r8, r8
	je	.L8
	test	rsi, rsi
	je	.L9
.L15:
	mov	rdi, r8
	call	nsIDOMNode_Release@PLT
	mov	rsi, QWORD PTR 24[rsp]
.L8:
	test	rsi, rsi
	je	.L14
	mov	rdi, rbp
	mov	rdx, r14
	call	get_elem@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r12d, eax
	call	nsIDOMElement_Release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rsi, r13
	lea	rdi, .LC1[rip]
	call	ERR@PLT
	mov	rdi, r12
	call	nsAString_Finish@PLT
	mov	r12d, DWORD PTR E_FAIL[rip]
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
.L26:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	WARN@PLT
	mov	r12d, DWORD PTR E_UNEXPECTED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR 24[rsp]
	call	nsIDOMElement_Release@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	QWORD PTR 24[rsp], 0
	test	rdi, rdi
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	mov	QWORD PTR [r14], 0
	mov	r12d, DWORD PTR S_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC2[rip]
	mov	rsi, r13
	call	ERR@PLT
	mov	rdi, QWORD PTR 24[rsp]
	test	rdi, rdi
	je	.L6
	call	nsIDOMElement_Release@PLT
.L6:
	mov	r12d, DWORD PTR E_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, r15
	lea	rsi, IID_nsIDOMElement[rip]
	call	nsIDOMNode_QueryInterface@PLT
	xor	edi, edi
	cmp	QWORD PTR NS_OK[rip], rax
	sete	dil
	call	assert@PLT
	mov	r8, QWORD PTR 32[rsp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rsi, r12
	lea	rdi, .LC3[rip]
	call	FIXME@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	nsIDOMNode_Release@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	nsIDOMElement_Release@PLT
	mov	r12d, DWORD PTR E_FAIL[rip]
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_doc_elem_by_id, .-get_doc_elem_by_id
	.comm	S_OK,4,4
	.comm	NS_OK,8,8
	.comm	IID_nsIDOMElement,4,4
	.comm	E_UNEXPECTED,4,4
	.comm	E_FAIL,4,4
	.comm	DOCUMENT_POSITION_PRECEDING,4,4
	.comm	DOCUMENT_POSITION_CONTAINS,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_htmldoc.c_get_doc_elem_by_id.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NULL nsdoc\012\000"
	.align	2
.LC1:
	.ascii	"GetElementById failed: %08x\012\000"
	.align	2
.LC2:
	.ascii	"getElementsByName failed: %08x\012\000"
	.align	2
.LC3:
	.ascii	"CompareDocumentPosition failed: 0x%08x\012\000"
	.align	2
.LC4:
	.ascii	"CompareDocumentPosition gave: 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_doc_elem_by_id
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_doc_elem_by_id, %function
get_doc_elem_by_id:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	sub	sp, sp, #28
	cmp	r3, #0
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L26
	mov	r4, r0
	add	r0, sp, #12
	mov	r6, r2
	bl	nsAString_InitDepend
	add	r1, sp, #12
	add	r2, sp, #4
	ldr	r0, [r4]
	bl	nsIDOMHTMLDocument_GetElementById
	mov	r5, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L27
	add	r1, sp, #12
	mov	r2, sp
	ldr	r0, [r4]
	bl	nsIDOMHTMLDocument_GetElementsByName
	mov	r5, r0
	add	r0, sp, #12
	bl	nsAString_Finish
	mov	r0, r5
	bl	FAILED
	subs	r1, r0, #0
	bne	.L28
	add	r2, sp, #8
	ldr	r0, [sp]
	bl	nsIDOMNodeList_Item
	mov	r5, r0
	ldr	r7, .L31+4
	ldr	r0, [sp]
	bl	nsIDOMNodeList_Release
	ldr	r0, [r7]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldmib	sp, {r1, r3}
	cmp	r3, #0
	beq	.L8
	cmp	r1, #0
	beq	.L9
	mov	r0, r3
	add	r2, sp, #16
	bl	nsIDOMNode_CompareDocumentPosition
	mov	r5, r0
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L29
	ldr	r1, [sp, #16]
	ldr	r0, .L31+8
	bl	TRACE
	ldr	r3, .L31+12
	ldr	r2, .L31+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r5, [sp, #16]
	orr	r3, r3, r2
	ands	r5, r3, r5
	beq	.L11
	ldr	r0, [sp, #8]
	ldr	r1, [sp, #4]
	cmp	r0, #0
	mov	r3, r0
	beq	.L8
	cmp	r1, #0
	beq	.L9
.L15:
	bl	nsIDOMNode_Release
	ldr	r1, [sp, #4]
.L8:
	cmp	r1, #0
	beq	.L14
	mov	r2, r6
	mov	r0, r4
	bl	get_elem
	mov	r4, r0
	ldr	r0, [sp, #4]
	bl	nsIDOMElement_Release
	b	.L1
.L27:
	mov	r1, r5
	ldr	r0, .L31+20
	bl	ERR
	add	r0, sp, #12
	bl	nsAString_Finish
	ldr	r3, .L31+24
	ldr	r4, [r3]
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L26:
	ldr	r0, .L31+28
	bl	WARN
	ldr	r3, .L31+32
	ldr	r4, [r3]
	b	.L1
.L11:
	ldr	r0, [sp, #4]
	bl	nsIDOMElement_Release
	ldr	r3, [sp, #8]
	str	r5, [sp, #4]
	cmp	r3, #0
	bne	.L9
.L14:
	mov	r2, #0
	ldr	r3, .L31+36
	str	r2, [r6]
	ldr	r4, [r3]
	b	.L1
.L28:
	mov	r1, r5
	ldr	r0, .L31+40
	bl	ERR
	ldr	r0, [sp, #4]
	cmp	r0, #0
	beq	.L6
	bl	nsIDOMElement_Release
.L6:
	ldr	r3, .L31+24
	ldr	r4, [r3]
	b	.L1
.L9:
	mov	r0, r3
	ldr	r1, .L31+44
	add	r2, sp, #4
	bl	nsIDOMNode_QueryInterface
	ldr	r3, [r7]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [sp, #8]
	b	.L15
.L29:
	mov	r1, r5
	ldr	r0, .L31+48
	bl	FIXME
	ldr	r0, [sp, #8]
	bl	nsIDOMNode_Release
	ldr	r0, [sp, #4]
	bl	nsIDOMElement_Release
	ldr	r3, .L31+24
	ldr	r4, [r3]
	b	.L1
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC5
	.word	NS_OK
	.word	.LC4
	.word	DOCUMENT_POSITION_PRECEDING
	.word	DOCUMENT_POSITION_CONTAINS
	.word	.LC1
	.word	E_FAIL
	.word	.LC0
	.word	E_UNEXPECTED
	.word	S_OK
	.word	.LC2
	.word	IID_nsIDOMElement
	.word	.LC3
	.size	get_doc_elem_by_id, .-get_doc_elem_by_id
	.comm	S_OK,4,4
	.comm	NS_OK,4,4
	.comm	IID_nsIDOMElement,4,4
	.comm	E_UNEXPECTED,4,4
	.comm	E_FAIL,4,4
	.comm	DOCUMENT_POSITION_PRECEDING,4,4
	.comm	DOCUMENT_POSITION_CONTAINS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
