	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mesh_sta_info_alloc
___mesh_sta_info_alloc:                 ## @__mesh_sta_info_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_MESH_MAX_PLINKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_sta_info_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	_NL80211_PLINK_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_IEEE80211_STA_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sta_info_pre_move_state
	movq	_IEEE80211_STA_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sta_info_pre_move_state
	movq	_IEEE80211_STA_AUTHORIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sta_info_pre_move_state
	movq	_WLAN_STA_WME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_sta_flag
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MESH_MAX_PLINKS,8,3            ## @MESH_MAX_PLINKS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NL80211_PLINK_LISTEN,4,2       ## @NL80211_PLINK_LISTEN
	.comm	_IEEE80211_STA_AUTH,4,2         ## @IEEE80211_STA_AUTH
	.comm	_IEEE80211_STA_ASSOC,4,2        ## @IEEE80211_STA_ASSOC
	.comm	_IEEE80211_STA_AUTHORIZED,4,2   ## @IEEE80211_STA_AUTHORIZED
	.comm	_WLAN_STA_WME,4,2               ## @WLAN_STA_WME
	.no_dead_strip	___mesh_sta_info_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mesh_sta_info_alloc
___mesh_sta_info_alloc:                 ; @__mesh_sta_info_alloc
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MESH_MAX_PLINKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MESH_MAX_PLINKS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_sta_info_alloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _NL80211_PLINK_LISTEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_PLINK_LISTEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh9:
	adrp	x8, _IEEE80211_STA_AUTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_STA_AUTH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sta_info_pre_move_state
Lloh12:
	adrp	x8, _IEEE80211_STA_ASSOC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_STA_ASSOC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sta_info_pre_move_state
Lloh15:
	adrp	x8, _IEEE80211_STA_AUTHORIZED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_STA_AUTHORIZED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sta_info_pre_move_state
Lloh18:
	adrp	x8, _WLAN_STA_WME@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WLAN_STA_WME@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_sta_flag
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MESH_MAX_PLINKS,8,3            ; @MESH_MAX_PLINKS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NL80211_PLINK_LISTEN,4,2       ; @NL80211_PLINK_LISTEN
	.comm	_IEEE80211_STA_AUTH,4,2         ; @IEEE80211_STA_AUTH
	.comm	_IEEE80211_STA_ASSOC,4,2        ; @IEEE80211_STA_ASSOC
	.comm	_IEEE80211_STA_AUTHORIZED,4,2   ; @IEEE80211_STA_AUTHORIZED
	.comm	_WLAN_STA_WME,4,2               ; @WLAN_STA_WME
	.no_dead_strip	___mesh_sta_info_alloc
.subsections_via_symbols
