	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_soap_hdr
_wps_er_soap_hdr:                       ## @wps_er_soap_hdr
	.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	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r12
	testq	%rdi, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	callq	_wpabuf_head
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_wpabuf_len
	leaq	-48(%rbp), %rdx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_base64_encode
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movl	$1000, %edi                     ## imm = 0x3E8
	addl	-48(%rbp), %edi
	jmp	LBB0_4
LBB0_3:
	movq	$0, -48(%rbp)
	movl	$1000, %edi                     ## imm = 0x3E8
	xorl	%r15d, %r15d
LBB0_4:
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	callq	_inet_ntoa
	movq	%rax, %r12
	movl	(%r13), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_wpabuf_printf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_urn_wfawlanconfig@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_wpabuf_printf
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	16(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	_soap_prefix@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpabuf_printf
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpabuf_put_str
	testq	%r15, %r15
	je	LBB0_9
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%rdx, %r8
	xorl	%eax, %eax
	callq	_wpabuf_printf
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	callq	_os_free
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %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	"POST %s HTTP/1.1\r\nHost: %s:%d\r\nContent-Type: text/xml; charset=\"utf-8\"\r\nContent-Length: "

L_.str.1:                               ## @.str.1
	.asciz	"        \r\nSOAPACTION: \"%s#%s\"\r\n\r\n"

	.comm	_urn_wfawlanconfig,8,3          ## @urn_wfawlanconfig
	.comm	_soap_prefix,8,3                ## @soap_prefix
L_.str.2:                               ## @.str.2
	.asciz	"<u:%s xmlns:u=\""

L_.str.3:                               ## @.str.3
	.asciz	"\">\n"

L_.str.4:                               ## @.str.4
	.asciz	"<%s>%s</%s>\n"

	.no_dead_strip	_wps_er_soap_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_soap_hdr
_wps_er_soap_hdr:                       ; @wps_er_soap_hdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x6
	mov	x24, x5
	mov	x26, x4
	mov	x25, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x1, x0
	add	x2, sp, #24
	mov	x0, x22
	bl	_base64_encode
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	w8, [sp, #24]
	add	w0, w8, #1000
	b	LBB0_4
LBB0_3:
	str	xzr, [sp, #24]
	mov	w0, #1000
LBB0_4:
	bl	_wpabuf_alloc
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x26, #4]
	bl	_inet_ntoa
	mov	x27, x0
	ldr	w0, [x26]
	bl	_ntohs
	stp	x27, x0, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x25
	bl	_wpabuf_printf
	mov	x0, x22
	mov	w1, #0
	bl	_wpabuf_put
	str	x0, [x24]
Lloh2:
	adrp	x24, _urn_wfawlanconfig@GOTPAGE
Lloh3:
	ldr	x24, [x24, _urn_wfawlanconfig@GOTPAGEOFF]
	ldr	x2, [x24]
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_wpabuf_printf
	mov	x0, x22
	mov	w1, #0
	bl	_wpabuf_put
	str	x0, [x23]
Lloh6:
	adrp	x8, _soap_prefix@GOTPAGE
Lloh7:
	ldr	x8, [x8, _soap_prefix@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x22
	bl	_wpabuf_put_str
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_wpabuf_printf
	ldr	x1, [x24]
	mov	x0, x22
	bl	_wpabuf_put_str
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_wpabuf_put_str
	cbz	x20, LBB0_9
; %bb.6:
	stp	x20, x19, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_wpabuf_printf
LBB0_7:
	mov	x0, x20
	bl	_os_free
	b	LBB0_9
LBB0_8:
	mov	x22, #0
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"POST %s HTTP/1.1\r\nHost: %s:%d\r\nContent-Type: text/xml; charset=\"utf-8\"\r\nContent-Length: "

l_.str.1:                               ; @.str.1
	.asciz	"        \r\nSOAPACTION: \"%s#%s\"\r\n\r\n"

	.comm	_urn_wfawlanconfig,8,3          ; @urn_wfawlanconfig
	.comm	_soap_prefix,8,3                ; @soap_prefix
l_.str.2:                               ; @.str.2
	.asciz	"<u:%s xmlns:u=\""

l_.str.3:                               ; @.str.3
	.asciz	"\">\n"

l_.str.4:                               ; @.str.4
	.asciz	"<%s>%s</%s>\n"

	.no_dead_strip	_wps_er_soap_hdr
.subsections_via_symbols
