	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_find_wfadevice
_wps_er_find_wfadevice:                 ## @wps_er_find_wfadevice
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	-80(%rbp), %r14
	leaq	-56(%rbp), %r15
	leaq	-72(%rbp), %rbx
	leaq	L_.str(%rip), %r12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_xml_next_tag
	testq	%rax, %rax
	je	LBB0_3
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_xml_next_tag
	testq	%rax, %rax
	jne	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %r13
	movq	-56(%rbp), %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_os_strncasecmp
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-80(%rbp), %rax
	cmpb	$47, (%rax)
	je	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-56(%rbp), %rax
	movzbl	6(%rax), %eax
	cmpb	$62, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movsbl	%al, %edi
	callq	_isgraph
	testl	%eax, %eax
	jne	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_xml_get_first_item
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rcx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdx
	callq	_wpa_printf
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	callq	_os_strcasecmp
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_free
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_1
	jmp	LBB0_10
LBB0_9:
	xorl	%r13d, %r13d
LBB0_10:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device"

L_.str.1:                               ## @.str.1
	.asciz	"deviceType"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"WPS ER: Found deviceType '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"urn:schemas-wifialliance-org:device:WFADevice:1"

	.no_dead_strip	_wps_er_find_wfadevice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_find_wfadevice
_wps_er_find_wfadevice:                 ; @wps_er_find_wfadevice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh4:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh8:
	adrp	x23, l_.str.3@PAGE
Lloh9:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	bl	_xml_next_tag
	cbz	x0, LBB0_3
	b	LBB0_9
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=2
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	bl	_xml_next_tag
	cbnz	x0, LBB0_9
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x19, x0, [sp, #8]
	mov	x1, x20
	mov	w2, #6
	bl	_os_strncasecmp
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cmp	w8, #47
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [sp, #16]
	ldrb	w8, [x8, #6]
	cmp	w8, #62
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=2
	sxtb	w0, w8
	bl	_isgraph
	cbnz	w0, LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_xml_get_first_item
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x0
	ldr	w0, [x26]
	mov	x1, x22
	mov	x2, x24
	bl	_wpa_printf
	mov	x0, x24
	mov	x1, x23
	bl	_os_strcasecmp
	mov	x25, x0
	mov	x0, x24
	bl	_os_free
	cbnz	x25, LBB0_1
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device"

l_.str.1:                               ; @.str.1
	.asciz	"deviceType"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"WPS ER: Found deviceType '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"urn:schemas-wifialliance-org:device:WFADevice:1"

	.no_dead_strip	_wps_er_find_wfadevice
.subsections_via_symbols
