	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip6_mc_add_src
_ip6_mc_add_src:                        ## @ip6_mc_add_src
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%r8, %r12
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	callq	_read_lock_bh
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	36(%rbx), %rsi
	movq	%r15, %rdi
	callq	_ipv6_addr_equal
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	callq	_read_unlock_bh
	movq	_ESRCH@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_29:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	callq	_sf_markstate
	movq	(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_MCAST_EXCLUDE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	movq	8(%rbx), %rax
	movslq	%r13d, %rcx
	incq	(%rax,%rcx,8)
LBB0_10:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:
	movl	%eax, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_ip6_mc_add1_src
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	addq	$4, %r12
	cmpq	%r14, %r13
	jne	LBB0_12
LBB0_14:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	setne	%cl
	movq	8(%rbx), %rsi
	movq	_MCAST_EXCLUDE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rsi,%rdi,8), %rdx
	testq	%rdx, %rdx
	setne	%al
	xorb	%cl, %al
	je	LBB0_15
## %bb.25:
	movq	%rbx, %rdi
	callq	_sf_setstate
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_26
	jmp	LBB0_27
LBB0_15:
	testq	%rdx, %rdx
	jne	LBB0_17
## %bb.16:
	movq	_MCAST_INCLUDE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	$0, (%rsi,%rdi,8)
	je	LBB0_18
LBB0_17:
	movq	%rdi, (%rbx)
LBB0_18:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	%eax, 4(%r14)
	movq	24(%rbx), %rax
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_26
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax)
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_19
LBB0_26:
	movq	%r14, %rdi
	callq	_mld_ifc_event
LBB0_27:
	xorl	%r15d, %r15d
	jmp	LBB0_28
LBB0_20:
	movl	%eax, %r15d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_22
## %bb.21:
	movq	8(%rbx), %rax
	movslq	%r13d, %rcx
	decq	(%rax,%rcx,8)
LBB0_22:
	testl	%r14d, %r14d
	je	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_ip6_mc_del1_src
	decl	%r14d
	jne	LBB0_24
LBB0_23:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_28:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%r14, %rdi
	callq	_read_unlock_bh
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_MCAST_EXCLUDE,8,3              ## @MCAST_EXCLUDE
	.comm	_MCAST_INCLUDE,8,3              ## @MCAST_INCLUDE
	.no_dead_strip	_ip6_mc_add_src
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip6_mc_add_src
_ip6_mc_add_src:                        ; @ip6_mc_add_src
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_5
; %bb.1:
	mov	x24, x5
	mov	x22, x4
	mov	x25, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	bl	_read_lock_bh
	ldr	x21, [x19, #16]
	cbz	x21, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x21, #36
	mov	x0, x20
	bl	_ipv6_addr_equal
	cbnz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [x21, #40]
	cbnz	x21, LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_read_unlock_bh
Lloh0:
	adrp	x8, _ESRCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_7:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	add	x0, x21, #16
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_spin_lock_bh
	mov	x0, x21
	bl	_sf_markstate
	ldr	x28, [x21]
Lloh4:
	adrp	x8, _MCAST_EXCLUDE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MCAST_EXCLUDE@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
	cbz	w24, LBB0_10
; %bb.9:
	cmp	w25, #1
	b.ge	LBB0_11
	b	LBB0_14
LBB0_10:
	ldr	x8, [x21, #8]
	sbfiz	x9, x23, #3, #32
	ldr	x10, [x8, x9]
	add	x10, x10, #1
	str	x10, [x8, x9]
	cmp	w25, #1
	b.lt	LBB0_14
LBB0_11:
	mov	x26, #0
	mov	w27, w25
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	bl	_ip6_mc_add1_src
	cbnz	w0, LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x26, x26, #1
	add	x22, x22, #4
	cmp	x27, x26
	b.ne	LBB0_12
LBB0_14:
	cmp	x28, x20
	cset	w11, ne
	ldr	x9, [x21, #8]
Lloh7:
	adrp	x8, _MCAST_EXCLUDE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCAST_EXCLUDE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x10, [x9, x8, lsl #3]
	cmp	x10, #0
	cset	w12, ne
	eor	w11, w11, w12
	tbz	w11, #0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_sf_setstate
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbnz	x0, LBB0_21
	b	LBB0_22
LBB0_16:
	cbnz	x10, LBB0_18
; %bb.17:
Lloh10:
	adrp	x8, _MCAST_INCLUDE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MCAST_INCLUDE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x9, [x9, x8, lsl #3]
	cbz	x9, LBB0_19
LBB0_18:
	str	x8, [x21]
LBB0_19:
	ldr	w8, [x19, #8]
	str	w8, [x21, #32]
	str	w8, [x19, #4]
	ldr	x8, [x21, #24]
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_21
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_20
LBB0_21:
	mov	x0, x19
	bl	_mld_ifc_event
LBB0_22:
	mov	w25, #0
	b	LBB0_27
LBB0_23:
	mov	x25, x0
	cbnz	w24, LBB0_25
; %bb.24:
	ldr	x8, [x21, #8]
	mov	x9, x23
	sbfiz	x9, x9, #3, #32
	ldr	x10, [x8, x9]
	sub	x10, x10, #1
	str	x10, [x8, x9]
LBB0_25:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w26, LBB0_27
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_ip6_mc_del1_src
	subs	w26, w26, #1
	b.ne	LBB0_26
LBB0_27:
	mov	x0, x20
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_read_unlock_bh
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_MCAST_EXCLUDE,8,3              ; @MCAST_EXCLUDE
	.comm	_MCAST_INCLUDE,8,3              ; @MCAST_INCLUDE
	.no_dead_strip	_ip6_mc_add_src
.subsections_via_symbols
