	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_validate_network
_wpa_config_validate_network:           ## @wpa_config_validate_network
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpq	$0, 56(%rdi)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 48(%rbx)
	je	LBB0_3
## %bb.4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_wpa_printf
	movl	$1, %r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	cmpl	$2, (%rbx)
	je	LBB0_7
	jmp	LBB0_8
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	%rbx, %rdi
	callq	_wpa_config_update_psk
	cmpl	$2, (%rbx)
	jne	LBB0_8
LBB0_7:
	movl	$1, 4(%rbx)
LBB0_8:
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_11
## %bb.9:
	movq	_WPA_CIPHER_CCMP_256@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_WPA_CIPHER_GCMP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_WPA_CIPHER_GCMP_256@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_WPA_CIPHER_NONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, 12(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_wpa_printf
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
LBB0_11:
	movq	16(%rbx), %rax
	movq	_WPAS_MODE_MESH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.12:
	movq	24(%rbx), %rax
	movq	_WPA_KEY_MGMT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.13:
	movq	_WPA_KEY_MGMT_SAE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_wpa_printf
	incl	%r15d
LBB0_15:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Line %d: both PSK and passphrase configured."

	.comm	_WPA_CIPHER_CCMP,4,2            ## @WPA_CIPHER_CCMP
	.comm	_WPA_CIPHER_CCMP_256,4,2        ## @WPA_CIPHER_CCMP_256
	.comm	_WPA_CIPHER_GCMP,4,2            ## @WPA_CIPHER_GCMP
	.comm	_WPA_CIPHER_GCMP_256,4,2        ## @WPA_CIPHER_GCMP_256
	.comm	_WPA_CIPHER_NONE,4,2            ## @WPA_CIPHER_NONE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Line %d: removed CCMP from group cipher list since it was not allowed for pairwise cipher"

	.comm	_WPAS_MODE_MESH,8,3             ## @WPAS_MODE_MESH
	.comm	_WPA_KEY_MGMT_NONE,8,3          ## @WPA_KEY_MGMT_NONE
	.comm	_WPA_KEY_MGMT_SAE,8,3           ## @WPA_KEY_MGMT_SAE
L_.str.2:                               ## @.str.2
	.asciz	"Line %d: key_mgmt for mesh network should be open or SAE"

	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ## @NO_MGMT_FRAME_PROTECTION
	.no_dead_strip	_wpa_config_validate_network
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_config_validate_network
_wpa_config_validate_network:           ; @wpa_config_validate_network
	.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, x1
	mov	x21, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	mov	w20, #1
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	b	LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x21
	bl	_wpa_config_update_psk
LBB0_6:
	ldr	w8, [x21]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x21, #4]
LBB0_8:
	ldr	w9, [x21, #8]
Lloh5:
	adrp	x22, _WPA_CIPHER_CCMP@GOTPAGE
Lloh6:
	ldr	x22, [x22, _WPA_CIPHER_CCMP@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.9:
	ldr	w9, [x21, #12]
Lloh7:
	adrp	x10, _WPA_CIPHER_CCMP_256@GOTPAGE
Lloh8:
	ldr	x10, [x10, _WPA_CIPHER_CCMP_256@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	adrp	x11, _WPA_CIPHER_GCMP@GOTPAGE
Lloh11:
	ldr	x11, [x11, _WPA_CIPHER_GCMP@GOTPAGEOFF]
	orr	w8, w10, w8
Lloh12:
	ldr	w10, [x11]
	orr	w8, w8, w10
Lloh13:
	adrp	x10, _WPA_CIPHER_GCMP_256@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WPA_CIPHER_GCMP_256@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh16:
	adrp	x10, _WPA_CIPHER_NONE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _WPA_CIPHER_NONE@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w8, w8, w10
	tst	w8, w9
	b.ne	LBB0_11
; %bb.10:
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	ldr	w8, [x22]
	ldr	w9, [x21, #8]
	bic	w8, w9, w8
	str	w8, [x21, #8]
LBB0_11:
	ldr	x8, [x21, #16]
Lloh24:
	adrp	x9, _WPAS_MODE_MESH@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WPAS_MODE_MESH@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x21, #24]
Lloh27:
	adrp	x9, _WPA_KEY_MGMT_NONE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _WPA_KEY_MGMT_NONE@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
Lloh30:
	adrp	x10, _WPA_KEY_MGMT_SAE@GOTPAGE
Lloh31:
	ldr	x10, [x10, _WPA_KEY_MGMT_SAE@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_14
; %bb.13:
Lloh33:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	add	w20, w20, #1
LBB0_14:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Line %d: both PSK and passphrase configured."

	.comm	_WPA_CIPHER_CCMP,4,2            ; @WPA_CIPHER_CCMP
	.comm	_WPA_CIPHER_CCMP_256,4,2        ; @WPA_CIPHER_CCMP_256
	.comm	_WPA_CIPHER_GCMP,4,2            ; @WPA_CIPHER_GCMP
	.comm	_WPA_CIPHER_GCMP_256,4,2        ; @WPA_CIPHER_GCMP_256
	.comm	_WPA_CIPHER_NONE,4,2            ; @WPA_CIPHER_NONE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Line %d: removed CCMP from group cipher list since it was not allowed for pairwise cipher"

	.comm	_WPAS_MODE_MESH,8,3             ; @WPAS_MODE_MESH
	.comm	_WPA_KEY_MGMT_NONE,8,3          ; @WPA_KEY_MGMT_NONE
	.comm	_WPA_KEY_MGMT_SAE,8,3           ; @WPA_KEY_MGMT_SAE
l_.str.2:                               ; @.str.2
	.asciz	"Line %d: key_mgmt for mesh network should be open or SAE"

	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ; @NO_MGMT_FRAME_PROTECTION
	.no_dead_strip	_wpa_config_validate_network
.subsections_via_symbols
