	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_validate_upnp_set_selected_registrar ## -- Begin function wps_validate_upnp_set_selected_registrar
	.p2align	4, 0x90
_wps_validate_upnp_set_selected_registrar: ## @wps_validate_upnp_set_selected_registrar
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	-72(%rbp), %rsi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	cmpq	$0, -48(%rbp)
	setne	%r15b
	movq	-72(%rbp), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpq	$0, (%rax)
	setne	%bl
LBB0_6:
	movl	-32(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_version
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:
	movl	-36(%rbp), %edi
	movl	%ebx, %esi
	callq	_wps_validate_dev_password_id
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movb	%r15b, %r14b
	movl	-40(%rbp), %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_wps_validate_sel_reg_config_methods
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movq	-48(%rbp), %rdi
	movl	%r14d, %esi
	callq	_wps_validate_version2
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edi
	movl	%r14d, %edx
	callq	_wps_validate_authorized_macs
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movl	-64(%rbp), %edi
	movl	%r14d, %esi
	callq	_wps_validate_uuid_r
	testq	%rax, %rax
	je	LBB0_12
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_14:
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS-STRICT: No TLVs in SetSelectedRegistrar"

L_.str.1:                               ## @.str.1
	.asciz	"WPS-STRICT: Failed to parse attributes in SetSelectedRegistrar"

L_.str.2:                               ## @.str.2
	.asciz	"WPS-STRICT: Invalid SetSelectedRegistrar"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_validate_upnp_set_selected_registrar ; -- Begin function wps_validate_upnp_set_selected_registrar
	.p2align	2
_wps_validate_upnp_set_selected_registrar: ; @wps_validate_upnp_set_selected_registrar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, sp
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_5
; %bb.2:
	ldr	x9, [sp, #24]
	ldr	x8, [sp]
	cmp	x9, #0
	cset	w19, ne
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w20, ne
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_5:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_6:
	mov	w20, #0
LBB0_7:
	ldr	w0, [sp, #40]
	mov	w1, #1
	bl	_wps_validate_version
	cbnz	x0, LBB0_13
; %bb.8:
	ldr	w0, [sp, #36]
	mov	x1, x20
	bl	_wps_validate_dev_password_id
	cbnz	x0, LBB0_13
; %bb.9:
	ldr	w0, [sp, #32]
	mov	x1, x19
	mov	x2, x20
	bl	_wps_validate_sel_reg_config_methods
	cbnz	x0, LBB0_13
; %bb.10:
	ldr	x0, [sp, #24]
	mov	x1, x19
	bl	_wps_validate_version2
	cbnz	x0, LBB0_13
; %bb.11:
	ldp	w1, w0, [sp, #12]
	mov	x2, x19
	bl	_wps_validate_authorized_macs
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w0, [sp, #8]
	mov	x1, x19
	bl	_wps_validate_uuid_r
	cbz	x0, LBB0_15
LBB0_13:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 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
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS-STRICT: No TLVs in SetSelectedRegistrar"

l_.str.1:                               ; @.str.1
	.asciz	"WPS-STRICT: Failed to parse attributes in SetSelectedRegistrar"

l_.str.2:                               ; @.str.2
	.asciz	"WPS-STRICT: Invalid SetSelectedRegistrar"

.subsections_via_symbols
