	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_config_create
_mesh_config_create:                    ## @mesh_config_create
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$80, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %rbx
	movl	76(%rax), %edi
	movl	44(%r14), %edx
	movl	48(%r14), %esi
	callq	_os_memcpy
	movl	44(%r14), %eax
	movl	%eax, 72(%rbx)
	movq	_WPA_KEY_MGMT_SAE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.2:
	movq	_MESH_CONF_SEC_AUTH@GOTPCREL(%rip), %rcx
	movq	_MESH_CONF_SEC_AMPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	%rbx, %rcx
	jmp	LBB0_5
LBB0_4:
	movl	(%rbx), %eax
	movq	_MESH_CONF_SEC_NONE@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	36(%r14), %edi
	xorl	%esi, %esi
	callq	_wpa_pick_pairwise_cipher
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	_WPA_CIPHER_TKIP@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_13
## %bb.7:
	movl	%eax, 16(%rbx)
	movl	32(%r14), %edi
	callq	_wpa_pick_group_cipher
	testl	%eax, %eax
	js	LBB0_14
## %bb.8:
	cmpl	(%r12), %eax
	je	LBB0_14
## %bb.9:
	movq	_WPA_CIPHER_GTK_NOT_USED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.10:
	movl	%eax, 20(%rbx)
	movq	8(%rbx), %rax
	movq	_NO_MGMT_FRAME_PROTECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	_WPA_CIPHER_AES_128_CMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
LBB0_12:
	movq	_MESH_PATH_PROTOCOL_HWMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_MESH_PATH_METRIC_AIRTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	$0, 48(%rbx)
	movq	_MESH_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_MESH_CONF_SEC_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%rbx), %eax
	setne	%cl
	movl	%ecx, 24(%rbx)
	movups	16(%r14), %xmm0
	movups	%xmm0, 28(%rbx)
	jmp	LBB0_17
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_15
LBB0_14:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_15:
	movq	%r15, %rdi
	callq	_wpa_msg
	movq	%rbx, %rdi
	callq	_os_free
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_KEY_MGMT_SAE,4,2           ## @WPA_KEY_MGMT_SAE
	.comm	_MESH_CONF_SEC_AUTH,4,2         ## @MESH_CONF_SEC_AUTH
	.comm	_MESH_CONF_SEC_AMPE,4,2         ## @MESH_CONF_SEC_AMPE
	.comm	_MESH_CONF_SEC_NONE,4,2         ## @MESH_CONF_SEC_NONE
	.comm	_WPA_CIPHER_TKIP,4,2            ## @WPA_CIPHER_TKIP
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mesh: Invalid pairwise cipher"

	.comm	_WPA_CIPHER_GTK_NOT_USED,4,2    ## @WPA_CIPHER_GTK_NOT_USED
L_.str.1:                               ## @.str.1
	.asciz	"mesh: Invalid group cipher"

	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ## @NO_MGMT_FRAME_PROTECTION
	.comm	_WPA_CIPHER_AES_128_CMAC,4,2    ## @WPA_CIPHER_AES_128_CMAC
	.comm	_MESH_PATH_PROTOCOL_HWMP,4,2    ## @MESH_PATH_PROTOCOL_HWMP
	.comm	_MESH_PATH_METRIC_AIRTIME,4,2   ## @MESH_PATH_METRIC_AIRTIME
	.comm	_MESH_SYNC_METHOD_NEIGHBOR_OFFSET,4,2 ## @MESH_SYNC_METHOD_NEIGHBOR_OFFSET
	.comm	_MGMT_FRAME_PROTECTION_DEFAULT,8,3 ## @MGMT_FRAME_PROTECTION_DEFAULT
	.comm	_WPA_DRIVER_CAPA_ENC_BIP,4,2    ## @WPA_DRIVER_CAPA_ENC_BIP
	.no_dead_strip	_mesh_config_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_config_create
_mesh_config_create:                    ; @mesh_config_create
	.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	x20, x1
	mov	x21, x0
	mov	w0, #80
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.1:
	ldr	w0, [x19, #76]
	ldp	w2, w1, [x20, #44]
	bl	_os_memcpy
	ldr	w8, [x20, #44]
	str	w8, [x19, #72]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _WPA_KEY_MGMT_SAE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_KEY_MGMT_SAE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MESH_CONF_SEC_AUTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MESH_CONF_SEC_AUTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MESH_CONF_SEC_AMPE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MESH_CONF_SEC_AMPE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x9, x19
	b	LBB0_4
LBB0_3:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _MESH_CONF_SEC_NONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MESH_CONF_SEC_NONE@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w0, [x20, #36]
	mov	w1, #0
	bl	_wpa_pick_pairwise_cipher
	tbnz	w0, #31, LBB0_12
; %bb.5:
Lloh11:
	adrp	x22, _WPA_CIPHER_TKIP@GOTPAGE
Lloh12:
	ldr	x22, [x22, _WPA_CIPHER_TKIP@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.6:
	str	w0, [x19, #16]
	ldr	w0, [x20, #32]
	bl	_wpa_pick_group_cipher
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.8:
Lloh13:
	adrp	x8, _WPA_CIPHER_GTK_NOT_USED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WPA_CIPHER_GTK_NOT_USED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.9:
	str	w0, [x19, #20]
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _NO_MGMT_FRAME_PROTECTION@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NO_MGMT_FRAME_PROTECTION@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:
Lloh19:
	adrp	x8, _WPA_CIPHER_AES_128_CMAC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WPA_CIPHER_AES_128_CMAC@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #64]
LBB0_11:
Lloh22:
	adrp	x8, _MESH_PATH_PROTOCOL_HWMP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MESH_PATH_PROTOCOL_HWMP@GOTPAGEOFF]
Lloh24:
	adrp	x9, _MESH_PATH_METRIC_AIRTIME@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MESH_PATH_METRIC_AIRTIME@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
Lloh28:
	adrp	x8, _MESH_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MESH_SYNC_METHOD_NEIGHBOR_OFFSET@GOTPAGEOFF]
	str	xzr, [x19, #48]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	w8, [x19]
Lloh31:
	adrp	x9, _MESH_CONF_SEC_AUTH@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MESH_CONF_SEC_AUTH@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19, #24]
	ldr	q0, [x20, #16]
	stur	q0, [x19, #28]
	b	LBB0_15
LBB0_12:
Lloh34:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str@PAGE
Lloh38:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh39:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x2, l_.str.1@PAGE
Lloh43:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_14:
	mov	x0, x21
	bl	_wpa_msg
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_15:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_KEY_MGMT_SAE,4,2           ; @WPA_KEY_MGMT_SAE
	.comm	_MESH_CONF_SEC_AUTH,4,2         ; @MESH_CONF_SEC_AUTH
	.comm	_MESH_CONF_SEC_AMPE,4,2         ; @MESH_CONF_SEC_AMPE
	.comm	_MESH_CONF_SEC_NONE,4,2         ; @MESH_CONF_SEC_NONE
	.comm	_WPA_CIPHER_TKIP,4,2            ; @WPA_CIPHER_TKIP
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mesh: Invalid pairwise cipher"

	.comm	_WPA_CIPHER_GTK_NOT_USED,4,2    ; @WPA_CIPHER_GTK_NOT_USED
l_.str.1:                               ; @.str.1
	.asciz	"mesh: Invalid group cipher"

	.comm	_NO_MGMT_FRAME_PROTECTION,8,3   ; @NO_MGMT_FRAME_PROTECTION
	.comm	_WPA_CIPHER_AES_128_CMAC,4,2    ; @WPA_CIPHER_AES_128_CMAC
	.comm	_MESH_PATH_PROTOCOL_HWMP,4,2    ; @MESH_PATH_PROTOCOL_HWMP
	.comm	_MESH_PATH_METRIC_AIRTIME,4,2   ; @MESH_PATH_METRIC_AIRTIME
	.comm	_MESH_SYNC_METHOD_NEIGHBOR_OFFSET,4,2 ; @MESH_SYNC_METHOD_NEIGHBOR_OFFSET
	.comm	_MGMT_FRAME_PROTECTION_DEFAULT,8,3 ; @MGMT_FRAME_PROTECTION_DEFAULT
	.comm	_WPA_DRIVER_CAPA_ENC_BIP,4,2    ; @WPA_DRIVER_CAPA_ENC_BIP
	.no_dead_strip	_mesh_config_create
.subsections_via_symbols
