	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_meshid           ## -- Begin function ieee80211_add_meshid
	.p2align	4, 0x90
_ieee80211_add_meshid:                  ## @ieee80211_add_meshid
	.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, %r14
	movq	(%rsi), %rax
	movq	8(%rsi), %rbx
	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_MESHID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %eax
	leaq	8(%r14), %rdi
	movl	%eax, 4(%r14)
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_memcpy
	movslq	(%rbx), %rax
	leaq	(%r14,%rax,4), %rax
	addq	$8, %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_MESHID,4,2    ## @IEEE80211_ELEMID_MESHID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_meshid           ; -- Begin function ieee80211_add_meshid
	.p2align	2
_ieee80211_add_meshid:                  ; @ieee80211_add_meshid
	.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
	ldp	x8, x21, [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_MESHID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IEEE80211_ELEMID_MESHID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w8, [x21]
	add	x20, x19, #8
	str	w8, [x19, #4]
	ldp	w2, w1, [x21]
	mov	x0, x20
	bl	_memcpy
	ldrsw	x8, [x21]
	add	x0, x20, x8, lsl #2
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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_MESHID,4,2    ; @IEEE80211_ELEMID_MESHID
.subsections_via_symbols
