	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_add_meshconf_ie           ## -- Begin function mesh_add_meshconf_ie
	.p2align	4, 0x90
_mesh_add_meshconf_ie:                  ## @mesh_add_meshconf_ie
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_skb_tailroom
	cmpq	$5, %rax
	jg	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	$6, %esi
	movq	%rbx, %rdi
	callq	_skb_put
	movq	%rax, %rbx
	movq	_WLAN_EID_MESH_CONFIG@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	$4, 8(%rbx)
	movslq	44(%r14), %rax
	movq	%rax, 16(%rbx)
	movslq	40(%r14), %rax
	movq	%rax, 24(%rbx)
	movslq	36(%r14), %rax
	movq	%rax, 32(%rbx)
	movslq	32(%r14), %rax
	movq	%rax, 40(%rbx)
	movslq	28(%r14), %rax
	movq	%rax, 48(%rbx)
	leaq	24(%r14), %rdi
	callq	_atomic_read
	cmpq	$15, %rax
	movl	$15, %ecx
	cmovlq	%rax, %rcx
	addq	%rcx, %rcx
	movq	%rcx, 56(%rbx)
	movq	_IEEE80211_MESHCONF_CAPAB_FORWARDING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%rbx)
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	movq	_IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmoveq	%rcx, %rdx
	orq	%rax, %rdx
	movq	%rdx, 64(%rbx)
	movq	8(%r14), %rax
	testq	%rax, %rax
	movq	_IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmoveq	%rax, %rcx
	orq	%rdx, %rcx
	movq	%rcx, 64(%rbx)
	movq	(%r14), %rax
	testq	%rax, %rax
	movq	_IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmoveq	%rax, %rdx
	orq	%rcx, %rdx
	movq	%rdx, 64(%rbx)
	movq	$0, 72(%rbx)
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WLAN_EID_MESH_CONFIG,4,2       ## @WLAN_EID_MESH_CONFIG
	.comm	_IEEE80211_MESHCONF_CAPAB_FORWARDING,8,3 ## @IEEE80211_MESHCONF_CAPAB_FORWARDING
	.comm	_IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS,4,2 ## @IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS
	.comm	_IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL,4,2 ## @IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL
	.comm	_IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING,4,2 ## @IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_add_meshconf_ie           ; -- Begin function mesh_add_meshconf_ie
	.p2align	2
_mesh_add_meshconf_ie:                  ; @mesh_add_meshconf_ie
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_skb_tailroom
	cmp	x0, #5
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	w1, #6
	bl	_skb_put
	mov	x20, x0
Lloh3:
	adrp	x8, _WLAN_EID_MESH_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_MESH_CONFIG@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	mov	w9, #4
	stp	x8, x9, [x0]
	ldpsw	x9, x8, [x19, #40]
	ldrsw	x10, [x19, #36]
	stp	x8, x9, [x0, #16]
	ldpsw	x9, x8, [x19, #28]
	stp	x10, x8, [x0, #32]
	str	x9, [x0, #48]
	add	x0, x19, #24
	bl	_atomic_read
	mov	x8, x0
	mov	w0, #0
	mov	w9, #15
	cmp	x8, #15
	csel	x8, x8, x9, lt
	lsl	x8, x8, #1
Lloh6:
	adrp	x9, _IEEE80211_MESHCONF_CAPAB_FORWARDING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_MESHCONF_CAPAB_FORWARDING@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x8, x9, [x20, #56]
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x10, _IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS@GOTPAGEOFF]
Lloh11:
	ldrsw	x10, [x10]
	cmp	x8, #0
	csel	x8, xzr, x10, eq
	orr	x8, x8, x9
	str	x8, [x20, #64]
	ldr	x9, [x19, #8]
Lloh12:
	adrp	x10, _IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL@GOTPAGEOFF]
Lloh14:
	ldrsw	x10, [x10]
	cmp	x9, #0
	csel	x9, xzr, x10, eq
	orr	x8, x9, x8
	str	x8, [x20, #64]
	ldr	x9, [x19]
Lloh15:
	adrp	x10, _IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING@GOTPAGEOFF]
Lloh17:
	ldrsw	x10, [x10]
	cmp	x9, #0
	csel	x9, xzr, x10, eq
	orr	x8, x9, x8
	stp	x8, xzr, [x20, #64]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WLAN_EID_MESH_CONFIG,4,2       ; @WLAN_EID_MESH_CONFIG
	.comm	_IEEE80211_MESHCONF_CAPAB_FORWARDING,8,3 ; @IEEE80211_MESHCONF_CAPAB_FORWARDING
	.comm	_IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS,4,2 ; @IEEE80211_MESHCONF_CAPAB_ACCEPT_PLINKS
	.comm	_IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL,4,2 ; @IEEE80211_MESHCONF_CAPAB_POWER_SAVE_LEVEL
	.comm	_IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING,4,2 ; @IEEE80211_MESHCONF_CAPAB_TBTT_ADJUSTING
.subsections_via_symbols
