	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_send_set_sel_reg
_wps_er_send_set_sel_reg:               ## @wps_er_send_set_sel_reg
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_7:
	movq	%rsi, %r14
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_http_client_url_parse
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movq	-40(%rbp), %rcx
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	leaq	-32(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r14, %rdi
	callq	_wps_er_soap_hdr
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_os_free
	testq	%r14, %r14
	je	LBB0_12
## %bb.10:
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rcx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_wps_er_soap_end
	movq	_wps_er_http_set_sel_reg_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	movl	$1000, %edx                     ## imm = 0x3E8
	movq	%rbx, %r8
	callq	_http_client_addr
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_wpabuf_free
	jmp	LBB0_12
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: No controlURL for AP"

L_.str.1:                               ## @.str.1
	.asciz	"WPS ER: Pending HTTP request for AP - ignore new request"

L_.str.2:                               ## @.str.2
	.asciz	"WPS ER: Pending WPS operation for AP - skip SetSelectedRegistrar"

L_.str.3:                               ## @.str.3
	.asciz	"WPS ER: Failed to parse controlURL"

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

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

	.comm	_wps_er_http_set_sel_reg_cb,4,2 ## @wps_er_http_set_sel_reg_cb
	.no_dead_strip	_wps_er_send_set_sel_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_send_set_sel_reg
_wps_er_send_set_sel_reg:               ; @wps_er_send_set_sel_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_wpa_printf
LBB0_7:
	mov	x20, x1
	add	x1, sp, #8
	mov	x2, sp
	bl	_http_client_url_parse
	cbz	x0, LBB0_11
; %bb.8:
	mov	x21, x0
	ldr	x3, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x4, sp, #8
	add	x5, sp, #24
	add	x6, sp, #16
	mov	x0, x20
	bl	_wps_er_soap_hdr
	mov	x20, x0
	mov	x0, x21
	bl	_os_free
	cbz	x20, LBB0_12
; %bb.9:
	ldp	x3, x2, [sp, #16]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_wps_er_soap_end
Lloh21:
	adrp	x8, _wps_er_http_set_sel_reg_cb@GOTPAGE
Lloh22:
	ldr	x8, [x8, _wps_er_http_set_sel_reg_cb@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #1000
	mov	x4, x19
	bl	_http_client_addr
	str	x0, [x19]
	cbnz	x0, LBB0_12
; %bb.10:
	mov	x0, x20
	bl	_wpabuf_free
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: No controlURL for AP"

l_.str.1:                               ; @.str.1
	.asciz	"WPS ER: Pending HTTP request for AP - ignore new request"

l_.str.2:                               ; @.str.2
	.asciz	"WPS ER: Pending WPS operation for AP - skip SetSelectedRegistrar"

l_.str.3:                               ; @.str.3
	.asciz	"WPS ER: Failed to parse controlURL"

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

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

	.comm	_wps_er_http_set_sel_reg_cb,4,2 ; @wps_er_http_set_sel_reg_cb
	.no_dead_strip	_wps_er_send_set_sel_reg
.subsections_via_symbols
