	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_wps_device_xml
_format_wps_device_xml:                 ## @format_wps_device_xml
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_wps_device_xml_prefix@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rdx, %rdi
	callq	_wpabuf_put_str
	movq	(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpb	$0, (%rax)
	leaq	L_.str(%rip), %rdx
	cmovneq	%rax, %rdx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdx
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
	movq	(%r14), %rax
	movq	48(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpb	$0, (%rax)
	leaq	L_.str.2(%rip), %rdx
	cmovneq	%rax, %rdx
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
	movq	(%r14), %rax
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
	movq	(%r14), %rax
LBB0_8:
	movq	16(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
	movq	(%r14), %rax
LBB0_10:
	movq	56(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	cmpb	$0, (%rax)
	leaq	L_.str.2(%rip), %rdx
	cmovneq	%rax, %rdx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rdx
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
	movq	(%r14), %rax
	movq	64(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
	movq	(%r14), %rax
LBB0_15:
	movq	24(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.16:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
	movq	(%r14), %rax
LBB0_17:
	movq	72(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.18:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
	movq	(%r14), %rax
LBB0_19:
	movl	40(%rax), %edi
	leaq	-112(%rbp), %r15
	movq	%r15, %rsi
	movl	$80, %edx
	callq	_uuid_bin2str
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	%r15, %rdi
	callq	_os_strlen
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_xml_data_encode
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	(%r14), %rax
	movq	32(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
## %bb.20:
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	callq	_xml_add_tagged_data
LBB0_21:
	movq	_wps_device_xml_postfix@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_wps_device_xml_prefix,8,3      ## @wps_device_xml_prefix
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS Access Point"

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

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"manufacturer"

L_.str.4:                               ## @.str.4
	.asciz	"manufacturerURL"

L_.str.5:                               ## @.str.5
	.asciz	"modelDescription"

L_.str.6:                               ## @.str.6
	.asciz	"modelName"

L_.str.7:                               ## @.str.7
	.asciz	"modelNumber"

L_.str.8:                               ## @.str.8
	.asciz	"modelURL"

L_.str.9:                               ## @.str.9
	.asciz	"serialNumber"

L_.str.10:                              ## @.str.10
	.asciz	"<UDN>uuid:"

L_.str.11:                              ## @.str.11
	.asciz	"</UDN>\n"

L_.str.12:                              ## @.str.12
	.asciz	"UPC"

	.comm	_wps_device_xml_postfix,8,3     ## @wps_device_xml_postfix
	.no_dead_strip	_format_wps_device_xml
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_wps_device_xml
_format_wps_device_xml:                 ; @format_wps_device_xml
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _wps_device_xml_prefix@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wps_device_xml_prefix@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x2
	bl	_wpabuf_put_str
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	cbz	x8, LBB0_2
; %bb.1:
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x2, x2, x8, eq
LBB0_2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
	ldr	x8, [x20]
	ldr	x8, [x8, #48]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	cbz	x8, LBB0_4
; %bb.3:
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x2, x2, x8, eq
LBB0_4:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
	ldr	x8, [x20]
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
	ldr	x8, [x20]
LBB0_6:
	ldr	x2, [x8, #16]
	cbz	x2, LBB0_8
; %bb.7:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
	ldr	x8, [x20]
LBB0_8:
	ldr	x8, [x8, #56]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	cbz	x8, LBB0_10
; %bb.9:
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x2, x2, x8, eq
LBB0_10:
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
	ldr	x8, [x20]
	ldr	x2, [x8, #64]
	cbz	x2, LBB0_12
; %bb.11:
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
	ldr	x8, [x20]
LBB0_12:
	ldr	x2, [x8, #24]
	cbz	x2, LBB0_14
; %bb.13:
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
	ldr	x8, [x20]
LBB0_14:
	ldr	x2, [x8, #72]
	cbz	x2, LBB0_16
; %bb.15:
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
	ldr	x8, [x20]
LBB0_16:
	ldr	w0, [x8, #40]
	add	x1, sp, #8
	mov	w2, #80
	bl	_uuid_bin2str
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_wpabuf_put_str
	add	x0, sp, #8
	bl	_os_strlen
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_xml_data_encode
Lloh30:
	adrp	x1, l_.str.11@PAGE
Lloh31:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_wpabuf_put_str
	ldr	x8, [x20]
	ldr	x2, [x8, #32]
	cbz	x2, LBB0_18
; %bb.17:
Lloh32:
	adrp	x1, l_.str.12@PAGE
Lloh33:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_xml_add_tagged_data
LBB0_18:
Lloh34:
	adrp	x8, _wps_device_xml_postfix@GOTPAGE
Lloh35:
	ldr	x8, [x8, _wps_device_xml_postfix@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_str
	ldur	x8, [x29, #-24]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_wps_device_xml_prefix,8,3      ; @wps_device_xml_prefix
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS Access Point"

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

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"manufacturer"

l_.str.4:                               ; @.str.4
	.asciz	"manufacturerURL"

l_.str.5:                               ; @.str.5
	.asciz	"modelDescription"

l_.str.6:                               ; @.str.6
	.asciz	"modelName"

l_.str.7:                               ; @.str.7
	.asciz	"modelNumber"

l_.str.8:                               ; @.str.8
	.asciz	"modelURL"

l_.str.9:                               ; @.str.9
	.asciz	"serialNumber"

l_.str.10:                              ; @.str.10
	.asciz	"<UDN>uuid:"

l_.str.11:                              ; @.str.11
	.asciz	"</UDN>\n"

l_.str.12:                              ; @.str.12
	.asciz	"UPC"

	.comm	_wps_device_xml_postfix,8,3     ; @wps_device_xml_postfix
	.no_dead_strip	_format_wps_device_xml
.subsections_via_symbols
