	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_validate_cred
_wps_validate_cred:                     ## @wps_validate_cred
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_wpabuf_set
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wps_parse_msg
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movl	-20(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_network_idx
	leaq	L_.str.1(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movl	-28(%rbp), %esi
	movl	-24(%rbp), %edi
	movl	$1, %edx
	callq	_wps_validate_ssid
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:
	movl	-32(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_auth_type
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movl	-48(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_encr_type
	testq	%rax, %rax
	jne	LBB0_11
## %bb.7:
	movl	-36(%rbp), %edi
	xorl	%esi, %esi
	callq	_wps_validate_network_key_index
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movl	-40(%rbp), %edi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	movl	$1, %ecx
	callq	_wps_validate_network_key
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movl	-52(%rbp), %edi
	movl	$1, %esi
	callq	_wps_validate_mac_addr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	-56(%rbp), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_wps_validate_network_key_shareable
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %r14
LBB0_11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS-STRICT: Failed to parse Credential"

L_.str.1:                               ## @.str.1
	.asciz	"WPS-STRICT: Invalid Credential"

	.no_dead_strip	_wps_validate_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_validate_cred
_wps_validate_cred:                     ; @wps_validate_cred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_13
; %bb.1:
	mov	x2, x1
	mov	x1, x0
	mov	x0, sp
	bl	_wpabuf_set
	mov	x0, sp
	add	x1, sp, #8
	bl	_wps_parse_msg
	tbnz	x0, #63, LBB0_11
; %bb.2:
	ldr	w0, [sp, #44]
	mov	w1, #1
	bl	_wps_validate_network_idx
	cbnz	x0, LBB0_10
; %bb.3:
	ldp	w1, w0, [sp, #36]
	mov	w2, #1
	bl	_wps_validate_ssid
	cbnz	x0, LBB0_10
; %bb.4:
	ldr	w0, [sp, #32]
	mov	w1, #1
	bl	_wps_validate_auth_type
	cbnz	x0, LBB0_10
; %bb.5:
	ldr	w0, [sp, #16]
	mov	w1, #1
	bl	_wps_validate_encr_type
	cbnz	x0, LBB0_10
; %bb.6:
	ldr	w0, [sp, #28]
	mov	w1, #0
	bl	_wps_validate_network_key_index
	cbnz	x0, LBB0_10
; %bb.7:
	ldp	w1, w0, [sp, #20]
	ldr	w2, [sp, #16]
	mov	w3, #1
	bl	_wps_validate_network_key
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	w0, [sp, #12]
	mov	w1, #1
	bl	_wps_validate_mac_addr
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [sp, #8]
	mov	w1, #0
	bl	_wps_validate_network_key_shareable
	cbz	x0, LBB0_14
LBB0_10:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_12:
Lloh4:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_wpa_printf
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS-STRICT: Failed to parse Credential"

l_.str.1:                               ; @.str.1
	.asciz	"WPS-STRICT: Invalid Credential"

	.no_dead_strip	_wps_validate_cred
.subsections_via_symbols
