	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcn36xx_sta_add
_wcn36xx_sta_add:                       ## @wcn36xx_sta_add
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movq	%rsi, %rdi
	callq	_wcn36xx_vif_to_priv
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_wcn36xx_sta_to_priv
	movq	%rax, %rbx
	movq	_WCN36XX_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_wcn36xx_dbg
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	16(%rbx), %rdi
	callq	_spin_lock_init
	movq	%r13, 8(%rbx)
	leaq	4(%rbx), %rdi
	movq	%r13, %rsi
	callq	_list_add
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_WCN36XX_BAND
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wcn36xx_update_allowed_rates
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_wcn36xx_smd_config_sta
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_DBG_MAC,4,2            ## @WCN36XX_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac sta add vif %p sta %pM\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.no_dead_strip	_wcn36xx_sta_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wcn36xx_sta_add
_wcn36xx_sta_add:                       ; @wcn36xx_sta_add
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x1
	bl	_wcn36xx_vif_to_priv
	mov	x23, x0
	mov	x0, x20
	bl	_wcn36xx_sta_to_priv
	mov	x22, x0
Lloh0:
	adrp	x8, _WCN36XX_DBG_MAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_DBG_MAC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x20, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_wcn36xx_dbg
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x22, #16
	bl	_spin_lock_init
	str	x23, [x22, #8]
	add	x0, x22, #4
	mov	x1, x23
	bl	_list_add
Lloh5:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_WCN36XX_BAND
	mov	x1, x0
	mov	x0, x20
	bl	_wcn36xx_update_allowed_rates
	ldr	w8, [x20]
	str	w8, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_wcn36xx_smd_config_sta
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_DBG_MAC,4,2            ; @WCN36XX_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac sta add vif %p sta %pM\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.no_dead_strip	_wcn36xx_sta_add
.subsections_via_symbols
