	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_meshconf         ## -- Begin function ieee80211_add_meshconf
	.p2align	4, 0x90
_ieee80211_add_meshconf:                ## @ieee80211_add_meshconf
	.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
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	8(%rsi), %r14
	movq	_IEEE80211_M_MBSS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_IEEE80211_ELEMID_MESHCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_IEEE80211_MESH_CONF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_IEEE80211_MESHCONF_CC_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_IEEE80211_MESHCONF_SYNC_NEIGHOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_IEEE80211_MESHCONF_AUTH_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	(%r14), %eax
	movq	_IEEE80211_MESH_MAX_NEIGHBORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	addl	%ecx, %ecx
	movl	%ecx, 28(%rbx)
	movl	4(%r14), %eax
	movq	_IEEE80211_MESHFLAGS_GATE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_MESHCONF_FORM_GATE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movl	4(%r14), %eax
LBB0_2:
	movq	_IEEE80211_MESHFLAGS_AP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	_IEEE80211_MESHCONF_CAP_AP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	movq	_IEEE80211_MESHFLAGS_FWD@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_6
## %bb.5:
	movq	_IEEE80211_MESHCONF_CAP_FWRD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%ecx, %eax
	movl	%eax, 32(%rbx)
	addq	$36, %rbx
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_M_MBSS,8,3           ## @IEEE80211_M_MBSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not a MBSS vap"

	.comm	_IEEE80211_ELEMID_MESHCONF,4,2  ## @IEEE80211_ELEMID_MESHCONF
	.comm	_IEEE80211_MESH_CONF_SZ,4,2     ## @IEEE80211_MESH_CONF_SZ
	.comm	_IEEE80211_MESHCONF_CC_DISABLED,4,2 ## @IEEE80211_MESHCONF_CC_DISABLED
	.comm	_IEEE80211_MESHCONF_SYNC_NEIGHOFF,4,2 ## @IEEE80211_MESHCONF_SYNC_NEIGHOFF
	.comm	_IEEE80211_MESHCONF_AUTH_DISABLED,4,2 ## @IEEE80211_MESHCONF_AUTH_DISABLED
	.comm	_IEEE80211_MESH_MAX_NEIGHBORS,4,2 ## @IEEE80211_MESH_MAX_NEIGHBORS
	.comm	_IEEE80211_MESHFLAGS_GATE,4,2   ## @IEEE80211_MESHFLAGS_GATE
	.comm	_IEEE80211_MESHCONF_FORM_GATE,4,2 ## @IEEE80211_MESHCONF_FORM_GATE
	.comm	_IEEE80211_MESHFLAGS_AP,4,2     ## @IEEE80211_MESHFLAGS_AP
	.comm	_IEEE80211_MESHCONF_CAP_AP,4,2  ## @IEEE80211_MESHCONF_CAP_AP
	.comm	_IEEE80211_MESHFLAGS_FWD,4,2    ## @IEEE80211_MESHFLAGS_FWD
	.comm	_IEEE80211_MESHCONF_CAP_FWRD,4,2 ## @IEEE80211_MESHCONF_CAP_FWRD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_meshconf         ; -- Begin function ieee80211_add_meshconf
	.p2align	2
_ieee80211_add_meshconf:                ; @ieee80211_add_meshconf
	.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
	mov	x19, x0
	ldp	x8, x20, [x1]
Lloh0:
	adrp	x9, _IEEE80211_M_MBSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_M_MBSS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh5:
	adrp	x8, _IEEE80211_ELEMID_MESHCONF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_ELEMID_MESHCONF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh8:
	adrp	x8, _IEEE80211_MESH_CONF_SZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_MESH_CONF_SZ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x9, x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _IEEE80211_MESHCONF_CC_DISABLED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_MESHCONF_CC_DISABLED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #12]
Lloh14:
	adrp	x8, _IEEE80211_MESHCONF_SYNC_NEIGHOFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_MESHCONF_SYNC_NEIGHOFF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _IEEE80211_MESHCONF_AUTH_DISABLED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_MESHCONF_AUTH_DISABLED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #20]
	ldr	w8, [x20]
Lloh20:
	adrp	x9, _IEEE80211_MESH_MAX_NEIGHBORS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IEEE80211_MESH_MAX_NEIGHBORS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	lsl	w9, w8, #1
	str	w9, [x19, #28]
	ldr	w8, [x20, #4]
Lloh23:
	adrp	x10, _IEEE80211_MESHFLAGS_GATE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IEEE80211_MESHFLAGS_GATE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
Lloh26:
	adrp	x8, _IEEE80211_MESHCONF_FORM_GATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IEEE80211_MESHCONF_FORM_GATE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19, #28]
	ldr	w8, [x20, #4]
LBB0_2:
Lloh29:
	adrp	x9, _IEEE80211_MESHFLAGS_AP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IEEE80211_MESHFLAGS_AP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _IEEE80211_MESHCONF_CAP_AP@GOTPAGE
Lloh33:
	ldr	x10, [x10, _IEEE80211_MESHCONF_CAP_AP@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh35:
	adrp	x10, _IEEE80211_MESHFLAGS_FWD@GOTPAGE
Lloh36:
	ldr	x10, [x10, _IEEE80211_MESHFLAGS_FWD@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
Lloh38:
	adrp	x11, _IEEE80211_MESHCONF_CAP_FWRD@GOTPAGE
Lloh39:
	ldr	x11, [x11, _IEEE80211_MESHCONF_CAP_FWRD@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w8, w8, w9
	add	x0, x19, #36
	str	w8, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_M_MBSS,8,3           ; @IEEE80211_M_MBSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not a MBSS vap"

	.comm	_IEEE80211_ELEMID_MESHCONF,4,2  ; @IEEE80211_ELEMID_MESHCONF
	.comm	_IEEE80211_MESH_CONF_SZ,4,2     ; @IEEE80211_MESH_CONF_SZ
	.comm	_IEEE80211_MESHCONF_CC_DISABLED,4,2 ; @IEEE80211_MESHCONF_CC_DISABLED
	.comm	_IEEE80211_MESHCONF_SYNC_NEIGHOFF,4,2 ; @IEEE80211_MESHCONF_SYNC_NEIGHOFF
	.comm	_IEEE80211_MESHCONF_AUTH_DISABLED,4,2 ; @IEEE80211_MESHCONF_AUTH_DISABLED
	.comm	_IEEE80211_MESH_MAX_NEIGHBORS,4,2 ; @IEEE80211_MESH_MAX_NEIGHBORS
	.comm	_IEEE80211_MESHFLAGS_GATE,4,2   ; @IEEE80211_MESHFLAGS_GATE
	.comm	_IEEE80211_MESHCONF_FORM_GATE,4,2 ; @IEEE80211_MESHCONF_FORM_GATE
	.comm	_IEEE80211_MESHFLAGS_AP,4,2     ; @IEEE80211_MESHFLAGS_AP
	.comm	_IEEE80211_MESHCONF_CAP_AP,4,2  ; @IEEE80211_MESHCONF_CAP_AP
	.comm	_IEEE80211_MESHFLAGS_FWD,4,2    ; @IEEE80211_MESHFLAGS_FWD
	.comm	_IEEE80211_MESHCONF_CAP_FWRD,4,2 ; @IEEE80211_MESHCONF_CAP_FWRD
.subsections_via_symbols
