	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_add_mcast_sta          ## -- Begin function iwl_mvm_add_mcast_sta
	.p2align	4, 0x90
_iwl_mvm_add_mcast_sta:                 ## @iwl_mvm_add_mcast_sta
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movl	$0, -64(%rbp)
	movq	_IWL_FRAME_LIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movl	$0, -56(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movq	(%rbx), %rcx
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_IWL_MVM_TX_FIFO_MCAST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IWL_MVM_TX_FIFO_BE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_get_wd_timeout
	movl	%eax, %r14d
	leaq	8(%r12), %rdi
	callq	_lockdep_assert_held
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	setne	%cl
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r13
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:
	movq	_IWL_MVM_DQA_GCAST_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_7:
	addq	$12, %r14
	movq	%r12, %rdi
	callq	_iwl_mvm_has_new_tx_api
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	(%r12), %rdi
	movq	_IWL_UCODE_TLV_API_STA_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%r13), %edx
	leaq	-64(%rbp), %r8
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_iwl_mvm_enable_txq
	movl	(%r13), %edi
	callq	_BIT
	orl	%eax, 16(%r13)
LBB0_10:
	movl	4(%r13), %r8d
	movl	8(%r13), %ecx
	leaq	_iwl_mvm_add_mcast_sta._maddr(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_add_int_sta_common
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_16:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_dealloc_int_sta
	movl	%ebx, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r13, %r15
	movq	%r12, %rdi
	callq	_iwl_mvm_has_new_tx_api
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	(%r14), %esi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_iwl_mvm_tvqm_enable_txq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.13:
	movl	%ebx, (%r15)
	jmp	LBB0_17
LBB0_14:
	movq	(%r12), %rdi
	movq	_IWL_UCODE_TLV_API_STA_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	xorl	%r13d, %r13d
	testq	%rax, %rax
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	jne	LBB0_17
## %bb.15:
	movl	(%r15), %edx
	xorl	%r13d, %r13d
	leaq	-64(%rbp), %r8
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iwl_mvm_enable_txq
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @iwl_mvm_add_mcast_sta._maddr
_iwl_mvm_add_mcast_sta._maddr:
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_IWL_FRAME_LIMIT,4,2            ## @IWL_FRAME_LIMIT
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_IWL_MVM_TX_FIFO_MCAST,4,2      ## @IWL_MVM_TX_FIFO_MCAST
	.comm	_IWL_MVM_TX_FIFO_BE,4,2         ## @IWL_MVM_TX_FIFO_BE
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_IWL_MVM_DQA_GCAST_QUEUE,4,2    ## @IWL_MVM_DQA_GCAST_QUEUE
	.comm	_IWL_UCODE_TLV_API_STA_TYPE,4,2 ## @IWL_UCODE_TLV_API_STA_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_add_mcast_sta          ; -- Begin function iwl_mvm_add_mcast_sta
	.p2align	2
_iwl_mvm_add_mcast_sta:                 ; @iwl_mvm_add_mcast_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x20, x0
	mov	x21, x0
	ldr	w8, [x21, #12]!
Lloh0:
	adrp	x9, _IWL_FRAME_LIMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_FRAME_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	wzr, w9, [sp, #8]
	stp	wzr, w8, [sp, #16]
	ldr	x8, [x23]
Lloh3:
	adrp	x24, _NL80211_IFTYPE_AP@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NL80211_IFTYPE_AP@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh5:
	adrp	x10, _IWL_MVM_TX_FIFO_MCAST@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IWL_MVM_TX_FIFO_MCAST@GOTPAGEOFF]
Lloh7:
	adrp	x11, _IWL_MVM_TX_FIFO_BE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _IWL_MVM_TX_FIFO_BE@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	mov	w3, #0
	bl	_iwl_mvm_get_wd_timeout
	mov	x22, x0
	add	x0, x19, #8
	bl	_lockdep_assert_held
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
Lloh9:
	adrp	x24, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh10:
	ldr	x24, [x24, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	ldr	x9, [x24]
	ccmp	x8, x9, #4, ne
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_2:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _IWL_MVM_DQA_GCAST_QUEUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IWL_MVM_DQA_GCAST_QUEUE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
	bl	_iwl_mvm_has_new_tx_api
	cbnz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x19]
Lloh17:
	adrp	x8, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w2, [x20]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	mov	x5, x22
	bl	_iwl_mvm_enable_txq
	ldr	w0, [x20]
	bl	_BIT
	ldr	w8, [x20, #16]
	orr	w8, w8, w0
	str	w8, [x20, #16]
LBB0_7:
	ldp	w4, w3, [x20, #4]
Lloh20:
	adrp	x2, _iwl_mvm_add_mcast_sta._maddr@PAGE
Lloh21:
	add	x2, x2, _iwl_mvm_add_mcast_sta._maddr@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_mvm_add_int_sta_common
	mov	x23, x0
	cbz	w0, LBB0_10
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_mvm_dealloc_int_sta
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	mov	x0, x19
	bl	_iwl_mvm_has_new_tx_api
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x22
	bl	_iwl_mvm_tvqm_enable_txq
	mov	x23, x0
	tbnz	w0, #31, LBB0_8
; %bb.12:
	str	w23, [x20]
	mov	w23, #0
	b	LBB0_9
LBB0_13:
	ldr	x0, [x19]
Lloh22:
	adrp	x8, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbz	x0, LBB0_15
; %bb.14:
	mov	w23, #0
	b	LBB0_9
LBB0_15:
	ldr	w2, [x20]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	mov	x5, x22
	bl	_iwl_mvm_enable_txq
	mov	w23, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @iwl_mvm_add_mcast_sta._maddr
_iwl_mvm_add_mcast_sta._maddr:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_IWL_FRAME_LIMIT,4,2            ; @IWL_FRAME_LIMIT
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_IWL_MVM_TX_FIFO_MCAST,4,2      ; @IWL_MVM_TX_FIFO_MCAST
	.comm	_IWL_MVM_TX_FIFO_BE,4,2         ; @IWL_MVM_TX_FIFO_BE
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_IWL_MVM_DQA_GCAST_QUEUE,4,2    ; @IWL_MVM_DQA_GCAST_QUEUE
	.comm	_IWL_UCODE_TLV_API_STA_TYPE,4,2 ; @IWL_UCODE_TLV_API_STA_TYPE
.subsections_via_symbols
