	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_cred_network_key
_wps_process_cred_network_key:          ## @wps_process_cred_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.4:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_wpa_hexdump_key
	xorl	%r15d, %r15d
	cmpq	$4, %r12
	ja	LBB0_6
## %bb.5:
	movl	24(%r14), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_os_memcpy
	movq	%r12, 16(%r14)
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	(%r14), %rax
	movq	_WPS_AUTH_OPEN@GOTPCREL(%rip), %rcx
	movl	$-1, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	8(%r14), %rax
	movq	_WPS_ENCR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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: Credential did not include Network Key"

	.comm	_WPS_AUTH_OPEN,8,3              ## @WPS_AUTH_OPEN
	.comm	_WPS_ENCR_NONE,8,3              ## @WPS_ENCR_NONE
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Workaround - Allow missing mandatory Network Key attribute for open network"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: Network Key"

	.no_dead_strip	_wps_process_cred_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_process_cred_network_key
_wps_process_cred_network_key:          ; @wps_process_cred_network_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_hexdump_key
	cmp	x20, #4
	b.hi	LBB0_6
; %bb.2:
	ldr	w0, [x19, #24]
	mov	x1, x21
	mov	x2, x20
	bl	_os_memcpy
	mov	w0, #0
	str	x20, [x19, #16]
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _WPS_AUTH_OPEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WPS_AUTH_OPEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _WPS_ENCR_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WPS_ENCR_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x22]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Credential did not include Network Key"

	.comm	_WPS_AUTH_OPEN,8,3              ; @WPS_AUTH_OPEN
	.comm	_WPS_ENCR_NONE,8,3              ; @WPS_ENCR_NONE
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Workaround - Allow missing mandatory Network Key attribute for open network"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: Network Key"

	.no_dead_strip	_wps_process_cred_network_key
.subsections_via_symbols
