	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_validate_network_key
_wps_validate_network_key:              ## @wps_validate_network_key
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:
	movq	%rdx, %rdi
	callq	_WPA_GET_BE16
	leaq	-9(%r14), %rcx
	cmpq	$54, %rcx
	ja	LBB0_7
## %bb.6:
	movq	_WPS_ENCR_WEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	cmpq	$0, -8(%rbx,%r14,8)
	jne	LBB0_12
	jmp	LBB0_10
LBB0_1:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_8:
	leaq	-9(%r14), %rax
	cmpq	$54, %rax
	jbe	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	cmpq	$65, %r14
	jb	LBB0_12
LBB0_10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_wpa_hexdump_ascii_key
LBB0_11:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_2:
	xorl	%eax, %eax
LBB0_12:
	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: Network Key attribute missing"

	.comm	_WPS_ENCR_WEP,8,3               ## @WPS_ENCR_WEP
L_.str.1:                               ## @.str.1
	.asciz	"WPS-STRICT: Invalid Network Key attribute value"

	.no_dead_strip	_wps_validate_network_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_validate_network_key
_wps_validate_network_key:              ; @wps_validate_network_key
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	cbz	x2, LBB0_7
; %bb.2:
	mov	x0, x2
	bl	_WPA_GET_BE16
	sub	x8, x19, #9
	cmp	x8, #54
	b.hi	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _WPS_ENCR_WEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPS_ENCR_WEP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
LBB0_4:
	add	x8, x20, x19, lsl #3
	ldur	x8, [x8, #-8]
	cbnz	x8, LBB0_11
	b	LBB0_9
LBB0_5:
	cbz	w3, LBB0_11
; %bb.6:
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_10
LBB0_7:
	sub	x8, x19, #9
	cmp	x8, #54
	b.ls	LBB0_4
LBB0_8:
	cmp	x19, #65
	b.lo	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_wpa_hexdump_ascii_key
LBB0_10:
	mov	w0, #-1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS-STRICT: Network Key attribute missing"

	.comm	_WPS_ENCR_WEP,8,3               ; @WPS_ENCR_WEP
l_.str.1:                               ; @.str.1
	.asciz	"WPS-STRICT: Invalid Network Key attribute value"

	.no_dead_strip	_wps_validate_network_key
.subsections_via_symbols
