	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_multicast_toggle            ## -- Begin function br_multicast_toggle
	.p2align	4, 0x90
_br_multicast_toggle:                   ## @br_multicast_toggle
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	24(%rbx), %edi
	callq	_netif_running
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	testq	%r12, %r12
	sete	%al
	cmpl	%eax, (%rbx)
	je	LBB0_9
## %bb.2:
	movl	%eax, (%rbx)
	testq	%r12, %r12
	je	LBB0_9
## %bb.3:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.5:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_7:
	leaq	16(%rbx), %rdi
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	callq	_br_mdb_rehash
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movl	$1, (%rbx)
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_br_multicast_start_querier
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_multicast_toggle            ; -- Begin function br_multicast_toggle
	.p2align	2
_br_multicast_toggle:                   ; @br_multicast_toggle
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
	ldr	w0, [x20, #24]
	bl	_netif_running
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w9, [x20]
	cmp	x21, #0
	cset	w8, eq
	cmp	w9, w8
	b.eq	LBB0_9
; %bb.2:
	str	w8, [x20]
	cbz	x21, LBB0_10
; %bb.3:
	mov	x0, x20
	ldr	x8, [x0, #16]!
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	bl	_br_mdb_rehash
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_br_multicast_start_querier
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
.subsections_via_symbols
