	.file	"extr_htmlform.c_HTMLFormElement_get_dispid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(%p)->(%s %x %p)\n"
.LC1:
	.string	"GetElements failed: 0x%08x\n"
.LC2:
	.string	"GetLength failed: 0x%08x\n"
.LC3:
	.string	"Item failed: 0x%08x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Failed to get nsIDOMHTMLNode interface: 0x%08x\n"
	.section	.rodata.str1.1
.LC5:
	.string	"GetId failed: 0x%08x\n"
	.text
	.p2align 4
	.type	HTMLFormElement_get_dispid, @function
HTMLFormElement_get_dispid:
.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
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 24[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	impl_from_HTMLDOMNode@PLT
	mov	rdi, r12
	mov	rbx, rax
	mov	eax, DWORD PTR DISP_E_UNKNOWNNAME[rip]
	mov	DWORD PTR 20[rsp], eax
	call	wine_dbgstr_w@PLT
	mov	r8, r14
	mov	ecx, r13d
	mov	rsi, rbx
	mov	edx, eax
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	edi, DWORD PTR [rbx]
	lea	rsi, 48[rsp]
	call	nsIDOMHTMLFormElement_GetElements@PLT
	mov	edi, eax
	mov	ebp, eax
	call	NS_FAILED@PLT
	test	rax, rax
	jne	.L25
	mov	rdi, QWORD PTR 48[rsp]
	lea	rsi, 56[rsp]
	call	nsIDOMHTMLCollection_GetLength@PLT
	mov	edi, eax
	mov	ebp, eax
	call	NS_FAILED@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L26
	mov	rax, QWORD PTR MSHTML_CUSTOM_DISPID_CNT[rip]
	cmp	QWORD PTR 56[rsp], rax
	jle	.L5
	mov	QWORD PTR 56[rsp], rax
.L5:
	movzx	eax, BYTE PTR [r12]
	sub	eax, 48
	cmp	al, 9
	jbe	.L27
.L6:
	lea	r13, 40[rsp]
	xor	esi, esi
	mov	rdi, r13
	call	nsAString_Init@PLT
	cmp	QWORD PTR 56[rsp], 0
	jle	.L8
	lea	rax, 72[rsp]
	lea	r14, 64[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	add	rbx, 1
	cmp	QWORD PTR 56[rsp], rbx
	jle	.L8
.L16:
	mov	rdi, QWORD PTR 48[rsp]
	mov	rdx, r14
	mov	rsi, rbx
	call	nsIDOMHTMLCollection_Item@PLT
	mov	edi, eax
	mov	ebp, eax
	call	NS_FAILED@PLT
	test	rax, rax
	jne	.L28
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 64[rsp]
	lea	rsi, IID_nsIDOMHTMLElement[rip]
	call	nsIDOMNode_QueryInterface@PLT
	mov	rdi, QWORD PTR 64[rsp]
	mov	ebp, eax
	call	nsIDOMNode_Release@PLT
	mov	edi, ebp
	call	NS_FAILED@PLT
	test	rax, rax
	jne	.L29
	mov	rdi, QWORD PTR 72[rsp]
	mov	rsi, r13
	call	nsIDOMHTMLElement_GetId@PLT
	mov	edi, eax
	mov	ebp, eax
	call	NS_FAILED@PLT
	test	rax, rax
	jne	.L30
	lea	rbp, 80[rsp]
	mov	rdi, r13
	mov	rsi, rbp
	call	nsAString_GetData@PLT
	mov	rdi, QWORD PTR 80[rsp]
	mov	rsi, r12
	call	strcmpiW@PLT
	test	eax, eax
	je	.L31
	mov	rdi, QWORD PTR 72[rsp]
	lea	r15, 44[rsp]
	mov	rcx, rbp
	lea	rsi, nameW.2012[rip]
	mov	rdx, r15
	call	get_elem_attr_value@PLT
	mov	rdi, QWORD PTR 72[rsp]
	mov	ebp, eax
	call	nsIDOMHTMLElement_Release@PLT
	mov	edi, ebp
	call	NS_SUCCEEDED@PLT
	test	rax, rax
	je	.L14
	mov	rdi, QWORD PTR 80[rsp]
	mov	rsi, r12
	call	strcmpiW@PLT
	mov	rdi, r15
	test	eax, eax
	je	.L32
	call	nsAString_Finish@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, 10
	lea	rsi, 80[rsp]
	mov	rdi, r12
	call	strtoulW@PLT
	mov	rdx, QWORD PTR 80[rsp]
	mov	edx, DWORD PTR [rdx]
	test	edx, edx
	jne	.L6
	cmp	QWORD PTR 56[rsp], rax
	jle	.L6
	mov	rcx, QWORD PTR 24[rsp]
	add	rax, QWORD PTR MSHTML_DISPID_CUSTOM_MIN[rip]
	mov	QWORD PTR [rcx], rax
	mov	eax, DWORD PTR S_OK[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, QWORD PTR 72[rsp]
	call	nsIDOMHTMLElement_Release@PLT
.L23:
	mov	rax, QWORD PTR 24[rsp]
	add	rbx, QWORD PTR MSHTML_DISPID_CUSTOM_MIN[rip]
	mov	QWORD PTR [rax], rbx
	mov	eax, DWORD PTR S_OK[rip]
	mov	DWORD PTR 20[rsp], eax
.L8:
	mov	rdi, r13
	call	nsAString_Finish@PLT
	mov	rdi, QWORD PTR 48[rsp]
	call	nsIDOMHTMLCollection_Release@PLT
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	mov	eax, DWORD PTR 20[rsp]
	add	rsp, 104
	.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
.L25:
	.cfi_restore_state
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	call	FIXME@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, ebp
	lea	rdi, .LC2[rip]
	call	FIXME@PLT
	mov	rdi, QWORD PTR 48[rsp]
	call	nsIDOMHTMLCollection_Release@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, ebp
	lea	rdi, .LC3[rip]
	call	FIXME@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, ebp
	lea	rdi, .LC4[rip]
	call	FIXME@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, ebp
	lea	rdi, .LC5[rip]
	call	FIXME@PLT
	mov	rdi, QWORD PTR 72[rsp]
	call	nsIDOMHTMLElement_Release@PLT
	mov	eax, DWORD PTR E_FAIL[rip]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L8
.L32:
	call	nsAString_Finish@PLT
	jmp	.L23
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	HTMLFormElement_get_dispid, .-HTMLFormElement_get_dispid
	.section	.rodata
	.type	nameW.2012, @object
	.size	nameW.2012, 5
nameW.2012:
	.string	"name"
	.comm	S_OK,4,4
	.comm	MSHTML_DISPID_CUSTOM_MIN,8,8
	.comm	MSHTML_CUSTOM_DISPID_CNT,8,8
	.comm	IID_nsIDOMHTMLElement,4,4
	.comm	E_FAIL,4,4
	.comm	DISP_E_UNKNOWNNAME,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_htmlform.c_HTMLFormElement_get_dispid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%p)->(%s %x %p)\012\000"
	.align	2
.LC1:
	.ascii	"GetElements failed: 0x%08x\012\000"
	.align	2
.LC2:
	.ascii	"GetLength failed: 0x%08x\012\000"
	.align	2
.LC3:
	.ascii	"Item failed: 0x%08x\012\000"
	.align	2
.LC4:
	.ascii	"Failed to get nsIDOMHTMLNode interface: 0x%08x\012\000"
	.align	2
.LC5:
	.ascii	"GetId failed: 0x%08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HTMLFormElement_get_dispid, %function
HTMLFormElement_get_dispid:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r3
	ldr	r3, .L34
	sub	sp, sp, #40
	mov	r6, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	impl_from_HTMLDOMNode
	ldr	r3, .L34+4
	mov	r4, r0
	mov	r0, r6
	ldr	r10, [r3]
	bl	wine_dbgstr_w
	mov	r3, r5
	mov	r2, r0
	mov	r1, r4
	ldr	r0, .L34+8
	str	r9, [sp]
	bl	TRACE
	ldr	r0, [r4]
	add	r1, sp, #8
	bl	nsIDOMHTMLFormElement_GetElements
	mov	r4, r0
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L25
	add	r1, sp, #20
	ldr	r0, [sp, #8]
	bl	nsIDOMHTMLCollection_GetLength
	mov	r5, r0
	bl	NS_FAILED
	subs	r4, r0, #0
	bne	.L26
	ldr	r3, .L34+12
	ldr	r2, [sp, #20]
	ldr	r3, [r3]
	cmp	r2, r3
	strgt	r3, [sp, #20]
	ldrb	r3, [r6]	@ zero_extendqisi2
	sub	r3, r3, #48
	cmp	r3, #9
	bls	.L27
.L6:
	mov	r1, #0
	add	r0, sp, #12
	bl	nsAString_Init
	ldr	r3, [sp, #20]
	cmp	r3, #0
	ble	.L8
	ldr	r7, .L34+16
	ldr	r8, .L34+20
	b	.L16
.L14:
	ldr	r3, [sp, #20]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L8
.L16:
	mov	r1, r4
	add	r2, sp, #24
	ldr	r0, [sp, #8]
	bl	nsIDOMHTMLCollection_Item
	mov	r5, r0
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L28
	mov	r1, r7
	add	r2, sp, #28
	ldr	r0, [sp, #24]
	bl	nsIDOMNode_QueryInterface
	mov	r5, r0
	ldr	r0, [sp, #24]
	bl	nsIDOMNode_Release
	mov	r0, r5
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L29
	add	r1, sp, #12
	ldr	r0, [sp, #28]
	bl	nsIDOMHTMLElement_GetId
	mov	r5, r0
	bl	NS_FAILED
	cmp	r0, #0
	bne	.L30
	add	r1, sp, #32
	add	r0, sp, #12
	bl	nsAString_GetData
	mov	r1, r6
	ldr	r0, [sp, #32]
	bl	strcmpiW
	cmp	r0, #0
	beq	.L31
	mov	r1, r8
	add	r3, sp, #32
	add	r2, sp, #16
	ldr	r0, [sp, #28]
	bl	get_elem_attr_value
	mov	r5, r0
	ldr	r0, [sp, #28]
	bl	nsIDOMHTMLElement_Release
	mov	r0, r5
	bl	NS_SUCCEEDED
	cmp	r0, #0
	beq	.L14
	mov	r1, r6
	ldr	r0, [sp, #32]
	bl	strcmpiW
	cmp	r0, #0
	add	r0, sp, #16
	beq	.L32
	bl	nsAString_Finish
	b	.L14
.L27:
	mov	r2, #10
	mov	r0, r6
	add	r1, sp, #32
	bl	strtoulW
	ldr	r3, [sp, #32]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [sp, #20]
	cmp	r3, r0
	ble	.L6
	ldr	r3, .L34+24
	ldr	r2, .L34+28
	ldr	r3, [r3]
	ldr	r10, [r2]
	add	r0, r3, r0
	str	r0, [r9]
	b	.L1
.L31:
	ldr	r0, [sp, #28]
	bl	nsIDOMHTMLElement_Release
.L23:
	ldr	r3, .L34+24
	ldr	r2, .L34+28
	ldr	r3, [r3]
	ldr	r10, [r2]
	add	r4, r3, r4
	str	r4, [r9]
.L8:
	add	r0, sp, #12
	bl	nsAString_Finish
	ldr	r0, [sp, #8]
	bl	nsIDOMHTMLCollection_Release
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r10
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	mov	r1, r4
	ldr	r0, .L34+32
	bl	FIXME
	ldr	r3, .L34+36
	ldr	r10, [r3]
	b	.L1
.L26:
	mov	r1, r5
	ldr	r0, .L34+40
	bl	FIXME
	ldr	r0, [sp, #8]
	bl	nsIDOMHTMLCollection_Release
	ldr	r3, .L34+36
	ldr	r10, [r3]
	b	.L1
.L28:
	mov	r1, r5
	ldr	r0, .L34+44
	bl	FIXME
	ldr	r3, .L34+36
	ldr	r10, [r3]
	b	.L8
.L29:
	mov	r1, r5
	ldr	r0, .L34+48
	bl	FIXME
	ldr	r3, .L34+36
	ldr	r10, [r3]
	b	.L8
.L30:
	mov	r1, r5
	ldr	r0, .L34+52
	bl	FIXME
	ldr	r0, [sp, #28]
	bl	nsIDOMHTMLElement_Release
	ldr	r3, .L34+36
	ldr	r10, [r3]
	b	.L8
.L32:
	bl	nsAString_Finish
	b	.L23
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC6
	.word	DISP_E_UNKNOWNNAME
	.word	.LC0
	.word	MSHTML_CUSTOM_DISPID_CNT
	.word	IID_nsIDOMHTMLElement
	.word	.LANCHOR0
	.word	MSHTML_DISPID_CUSTOM_MIN
	.word	S_OK
	.word	.LC1
	.word	E_FAIL
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	HTMLFormElement_get_dispid, .-HTMLFormElement_get_dispid
	.comm	S_OK,4,4
	.comm	MSHTML_DISPID_CUSTOM_MIN,4,4
	.comm	MSHTML_CUSTOM_DISPID_CNT,4,4
	.comm	IID_nsIDOMHTMLElement,4,4
	.comm	E_FAIL,4,4
	.comm	DISP_E_UNKNOWNNAME,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	nameW.4296, %object
	.size	nameW.4296, 5
nameW.4296:
	.ascii	"name\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
