	.file	"extr_wps_er.c_wps_er_find_wfadevice.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"device"
.LC1:
	.string	"deviceType"
.LC2:
	.string	"WPS ER: Found deviceType '%s'"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"urn:schemas-wifialliance-org:device:WFADevice:1"
	.text
	.p2align 4
	.type	wps_er_find_wfadevice, @function
wps_er_find_wfadevice:
.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
	lea	r14, .LC0[rip]
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r13, 32[rsp]
	lea	r12, 24[rsp]
	lea	rbx, 16[rsp]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rcx, r13
	mov	rdx, r12
	mov	rsi, rbx
	mov	rdi, rbp
	call	xml_next_tag@PLT
	test	rax, rax
	jne	.L7
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, 6
	mov	rsi, r14
	mov	rbp, QWORD PTR 32[rsp]
	call	os_strncasecmp@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR 16[rsp]
	cmp	BYTE PTR [rax], 47
	je	.L2
	mov	rax, QWORD PTR 24[rsp]
	movsx	edi, BYTE PTR 6[rax]
	cmp	dil, 62
	je	.L9
	call	isgraph@PLT
	test	eax, eax
	jne	.L2
.L9:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	xml_get_first_item@PLT
	mov	r15, rax
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	call	wpa_printf@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r15
	call	os_strcasecmp@PLT
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rax
	call	os_free@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	rdx, rdx
	jne	.L2
	mov	rax, rbp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 56
	.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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wps_er_find_wfadevice, .-wps_er_find_wfadevice
	.comm	MSG_DEBUG,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_wps_er.c_wps_er_find_wfadevice.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"device\000"
	.align	2
.LC1:
	.ascii	"deviceType\000"
	.align	2
.LC2:
	.ascii	"WPS ER: Found deviceType '%s'\000"
	.align	2
.LC3:
	.ascii	"urn:schemas-wifialliance-org:device:WFADevice:1\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wps_er_find_wfadevice, %function
wps_er_find_wfadevice:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L24
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	ldr	r5, .L24+4
	ldr	r9, .L24+8
	ldr	r8, .L24+12
	ldr	r7, .L24+16
	ldr	r6, .L24+20
.L2:
	mov	r0, r4
	mov	r1, sp
	add	r3, sp, #8
	add	r2, sp, #4
	bl	xml_next_tag
	cmp	r0, #0
	bne	.L7
	ldmib	sp, {r0, r4}
	mov	r2, #6
	mov	r1, r5
	bl	os_strncasecmp
	cmp	r0, #0
	bne	.L2
	ldr	r3, [sp]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L2
	ldr	r3, [sp, #4]
	ldrb	r0, [r3, #6]	@ zero_extendqisi2
	cmp	r0, #62
	beq	.L9
	bl	isgraph
	cmp	r0, #0
	bne	.L2
.L9:
	mov	r1, r9
	mov	r0, r4
	bl	xml_get_first_item
	subs	r10, r0, #0
	beq	.L7
	mov	r2, r10
	mov	r1, r7
	ldr	r0, [r8]
	bl	wpa_printf
	mov	r1, r6
	mov	r0, r10
	bl	os_strcasecmp
	mov	fp, r0
	mov	r0, r10
	bl	os_free
	cmp	fp, #0
	bne	.L2
	mov	r0, r4
	b	.L1
.L7:
	mov	r0, #0
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	MSG_DEBUG
	.word	.LC2
	.word	.LC3
	.size	wps_er_find_wfadevice, .-wps_er_find_wfadevice
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
