	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_set_multicast_list
_ieee80211_set_multicast_list:          ## @ieee80211_set_multicast_list
	.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, %r12
	callq	_IEEE80211_DEV_TO_SUB_IF
	movq	16(%rax), %r14
	movl	(%r12), %r13d
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r13d, %ecx
	setne	%r8b
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	movl	(%rax), %r15d
	movq	_IEEE80211_SDATA_ALLMULTI@GOTPCREL(%rip), %rdx
	testl	%r15d, (%rdx)
	sete	%dl
	movq	_IEEE80211_SDATA_PROMISC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	xorb	%r8b, %dl
	jne	LBB0_5
## %bb.1:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	leaq	24(%r14), %rdi
	testl	%r13d, %ecx
	je	LBB0_3
## %bb.2:
	callq	_atomic_inc
	jmp	LBB0_4
LBB0_3:
	callq	_atomic_dec
LBB0_4:
	movq	_IEEE80211_SDATA_ALLMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	xorl	%ecx, (%rax)
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_5:
	testl	%r15d, %esi
	setne	%dl
	testl	%r13d, %ebx
	sete	%cl
	xorb	%dl, %cl
	jne	LBB0_10
## %bb.6:
	movq	%rax, %rbx
	movl	(%rdi), %eax
	leaq	20(%r14), %rdi
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.7:
	callq	_atomic_inc
	jmp	LBB0_9
LBB0_8:
	callq	_atomic_dec
LBB0_9:
	movq	_IEEE80211_SDATA_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rax
	xorl	%ecx, (%rbx)
LBB0_10:
	movq	8(%rax), %rdx
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_14
## %bb.11:
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_14
## %bb.12:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_14
## %bb.13:
	movl	4(%r12), %edx
	movl	8(%r12), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_drv_set_multicast_list
LBB0_14:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	leaq	16(%r14), %rdi
	leaq	12(%r14), %rsi
	leaq	8(%r12), %rdx
	addq	$4, %r12
	movq	%r12, %rcx
	callq	___dev_addr_sync
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	leaq	4(%r14), %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_queue_work           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IEEE80211_SDATA_ALLMULTI,4,2   ## @IEEE80211_SDATA_ALLMULTI
	.comm	_IEEE80211_SDATA_PROMISC,4,2    ## @IEEE80211_SDATA_PROMISC
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ## @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.no_dead_strip	_ieee80211_set_multicast_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_set_multicast_list
_ieee80211_set_multicast_list:          ; @ieee80211_set_multicast_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_IEEE80211_DEV_TO_SUB_IF
	mov	x21, x0
	ldr	x19, [x0, #16]
	ldr	w9, [x20]
Lloh0:
	adrp	x8, _IFF_ALLMULTI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w8, w8, w9
	cset	w10, ne
Lloh3:
	adrp	x23, _IFF_PROMISC@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IFF_PROMISC@GOTPAGEOFF]
	ldr	w11, [x23]
	and	w24, w11, w9
	ldr	w9, [x0]
Lloh5:
	adrp	x25, _IEEE80211_SDATA_ALLMULTI@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IEEE80211_SDATA_ALLMULTI@GOTPAGEOFF]
	ldr	w11, [x25]
	tst	w11, w9
	cset	w11, eq
Lloh7:
	adrp	x22, _IEEE80211_SDATA_PROMISC@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IEEE80211_SDATA_PROMISC@GOTPAGEOFF]
	ldr	w12, [x22]
	and	w26, w12, w9
	eor	w9, w10, w11
	tbnz	w9, #0, LBB0_5
; %bb.1:
	add	x0, x19, #24
	cbz	w8, LBB0_3
; %bb.2:
	bl	_atomic_inc
	b	LBB0_4
LBB0_3:
	bl	_atomic_dec
LBB0_4:
	ldr	w8, [x25]
	ldr	w9, [x21]
	eor	w8, w9, w8
	str	w8, [x21]
LBB0_5:
	cmp	w26, #0
	cset	w8, ne
	cmp	w24, #0
	cset	w9, eq
	eor	w8, w9, w8
	tbnz	w8, #0, LBB0_10
; %bb.6:
	ldr	w8, [x20]
	ldr	w9, [x23]
	add	x0, x19, #20
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	bl	_atomic_inc
	b	LBB0_9
LBB0_8:
	bl	_atomic_dec
LBB0_9:
	ldr	w8, [x22]
	ldr	w9, [x21]
	eor	w8, w9, w8
	str	w8, [x21]
LBB0_10:
	ldr	x8, [x21, #8]
Lloh9:
	adrp	x9, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _NL80211_IFTYPE_AP@GOTPAGE
Lloh16:
	ldr	x11, [x11, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_12
; %bb.11:
	ldp	w2, w8, [x20, #4]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_drv_set_multicast_list
LBB0_12:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_bh
	add	x0, x19, #16
	add	x1, x19, #12
	add	x2, x20, #8
	add	x3, x20, #4
	bl	___dev_addr_sync
	mov	x0, x21
	bl	_spin_unlock_bh
	add	x0, x19, #4
	mov	x1, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ieee80211_queue_work
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IEEE80211_SDATA_ALLMULTI,4,2   ; @IEEE80211_SDATA_ALLMULTI
	.comm	_IEEE80211_SDATA_PROMISC,4,2    ; @IEEE80211_SDATA_PROMISC
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ; @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.no_dead_strip	_ieee80211_set_multicast_list
.subsections_via_symbols
