	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_sta_add                 ## -- Begin function cw1200_sta_add
	.p2align	4, 0x90
_cw1200_sta_add:                        ## @cw1200_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	movq	(%r13), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%rdx, %r12
	movl	4(%rdx), %esi
	movq	%r13, %rdi
	callq	_cw1200_find_link_id
	movl	%eax, 8(%r12)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_info
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_3:
	movq	32(%r13), %rbx
	movslq	8(%r12), %r15
	leaq	-1(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movl	(%r12), %eax
	movq	_IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.4:
	movl	8(%r12), %edi
	callq	_BIT
	orl	%eax, 24(%r13)
LBB0_5:
	movq	_CW1200_LINK_HARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbx,%r15,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,8), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rdi
	movq	%rax, %rsi
	callq	_ieee80211_rx_irqsafe
	jmp	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[AP] No more link IDs available.\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK,4,2 ## @IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK
	.comm	_CW1200_LINK_HARD,4,2           ## @CW1200_LINK_HARD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_sta_add                 ; -- Begin function cw1200_sta_add
	.p2align	2
_cw1200_sta_add:                        ; @cw1200_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
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x21, x2
	ldr	w1, [x2, #4]
	mov	x0, x19
	bl	_cw1200_find_link_id
	str	w0, [x21, #8]
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_info
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_3:
	ldr	x22, [x19, #32]
	ldrsw	x8, [x21, #8]
	sub	x23, x8, #1
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x21, #8]
	bl	_BIT
	ldr	w8, [x19, #24]
	orr	w8, w8, w0
	str	w8, [x19, #24]
LBB0_5:
Lloh11:
	adrp	x8, _CW1200_LINK_HARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CW1200_LINK_HARD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	x21, x22, x23, lsl #3
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_skb_dequeue
	cbz	x0, LBB0_8
; %bb.6:
	mov	x1, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	bl	_ieee80211_rx_irqsafe
	mov	x0, x21
	bl	_skb_dequeue
	mov	x1, x0
	cbnz	x0, LBB0_7
LBB0_8:
	mov	x0, x20
	bl	_spin_unlock_bh
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[AP] No more link IDs available.\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK,4,2 ; @IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK
	.comm	_CW1200_LINK_HARD,4,2           ; @CW1200_LINK_HARD
.subsections_via_symbols
