	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip6_mc_msfilter                ## -- Begin function ip6_mc_msfilter
	.p2align	4, 0x90
_ip6_mc_msfilter:                       ## @ip6_mc_msfilter
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_inet6_sk
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_sock_net
	movq	%rax, %r15
	leaq	24(%r14), %rdi
	movq	%rdi, %r13
	callq	_ipv6_addr_is_multicast
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r14), %eax
	movq	_MCAST_INCLUDE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	_MCAST_EXCLUDE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_33:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	8(%r14), %edx
	movq	%r15, %rdi
	movq	%r13, %r15
	movq	%r13, %rsi
	callq	_ip6_mc_find_dev
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	8(%rax), %r13
	movq	_ipv6_sk_mc_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock_bh
	movl	12(%r14), %eax
	movq	_MCAST_INCLUDE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_10
## %bb.8:
	cmpq	$0, (%r14)
	je	LBB0_9
LBB0_10:
	movq	(%r12), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	24(%r13), %r13
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	20(%r13), %eax
	cmpl	8(%r14), %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	16(%r13), %rdi
	movq	%r15, %rsi
	callq	_ipv6_addr_equal
	testq	%rax, %rax
	je	LBB0_14
## %bb.17:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.18:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_IP6_SFLSIZE
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_sock_kmalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%rax, %rbx
	movl	(%r14), %ecx
	movl	%ecx, 4(%rax)
	movl	%ecx, (%rax)
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.22:
	movq	16(%r14), %rax
	movq	8(%rbx), %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %ecx
	movl	%ecx, (%r8,%rdx,4)
	incq	%rdx
	movslq	4(%rbx), %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_23
	jmp	LBB0_24
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_31:
	movb	$1, %bl
LBB0_32:
	movq	_ipv6_sk_mc_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_read_unlock_bh
	movq	%r13, %rdi
	callq	_in6_dev_put
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_put
	testb	%bl, %bl
	jne	LBB0_33
## %bb.34:
	movl	8(%r14), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipv6_sock_mc_drop              ## TAILCALL
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_32
LBB0_26:
	movl	12(%r14), %edx
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ip6_mc_add_src
	jmp	LBB0_27
LBB0_19:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_21:
	movq	8(%rbx), %r8
LBB0_24:
	movl	12(%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r9d, %r9d
	callq	_ip6_mc_add_src
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_IP6_SFLSIZE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_sock_kfree_s
	jmp	LBB0_31
LBB0_27:
	movq	%r13, %rdi
	callq	_write_lock_bh
	movq	8(%r13), %r12
	movl	4(%r13), %edx
	testq	%r12, %r12
	je	LBB0_29
## %bb.28:
	movl	4(%r12), %ecx
	movq	8(%r12), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%r9d, %r9d
	callq	_ip6_mc_del_src
	movl	(%r12), %edi
	callq	_IP6_SFLSIZE
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_sock_kfree_s
	jmp	LBB0_30
LBB0_29:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ip6_mc_del_src
LBB0_30:
	movq	%rbx, 8(%r13)
	movl	12(%r14), %eax
	movl	%eax, 4(%r13)
	movq	%r13, %rdi
	callq	_write_unlock_bh
	xorl	%r12d, %r12d
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MCAST_INCLUDE,4,2              ## @MCAST_INCLUDE
	.comm	_MCAST_EXCLUDE,4,2              ## @MCAST_EXCLUDE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ipv6_sk_mc_lock,4,2            ## @ipv6_sk_mc_lock
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip6_mc_msfilter                ; -- Begin function ip6_mc_msfilter
	.p2align	2
_ip6_mc_msfilter:                       ; @ip6_mc_msfilter
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	bl	_inet6_sk
	mov	x24, x0
	mov	x0, x19
	bl	_sock_net
	mov	x22, x0
	add	x21, x20, #24
	mov	x0, x21
	bl	_ipv6_addr_is_multicast
	cbz	w0, LBB0_19
; %bb.1:
	ldr	w8, [x20, #12]
Lloh0:
	adrp	x25, _MCAST_INCLUDE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MCAST_INCLUDE@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh2:
	adrp	x10, _MCAST_EXCLUDE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MCAST_EXCLUDE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_19
; %bb.2:
	ldr	w2, [x20, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_ip6_mc_find_dev
	cbz	x0, LBB0_22
; %bb.3:
	mov	x22, x0
	ldr	x23, [x0, #8]
Lloh5:
	adrp	x0, _ipv6_sk_mc_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _ipv6_sk_mc_lock@GOTPAGEOFF]
	bl	_read_lock_bh
	ldr	w8, [x20, #12]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_23
LBB0_5:
	ldr	x24, [x24]
	cbnz	x24, LBB0_12
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_8:
	mov	w24, #1
LBB0_9:
Lloh9:
	adrp	x0, _ipv6_sk_mc_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _ipv6_sk_mc_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
	mov	x0, x22
	bl	_read_unlock_bh
	mov	x0, x22
	bl	_in6_dev_put
	mov	x0, x23
	bl	_dev_put
	tbnz	w24, #0, LBB0_21
; %bb.10:
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ipv6_sock_mc_drop
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x24, [x24, #24]
	cbz	x24, LBB0_6
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, #20]
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x24, #16
	mov	x1, x21
	bl	_ipv6_addr_equal
	cbz	x0, LBB0_11
; %bb.14:
	ldr	x0, [x20]
	cbz	x0, LBB0_24
; %bb.15:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_IP6_SFLSIZE
	mov	x1, x0
Lloh11:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sock_kmalloc
	cbz	x0, LBB0_25
; %bb.16:
	mov	x25, x0
	ldr	w3, [x20]
	stp	w3, w3, [x0]
	cmp	w3, #0
	b.le	LBB0_26
; %bb.17:
	mov	x8, #0
	ldr	x9, [x20, #16]
	ldr	x4, [x25, #8]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	str	w11, [x4, x10]
	add	x8, x8, #1
	ldrsw	x3, [x25, #4]
	cmp	x8, x3
	b.lt	LBB0_18
	b	LBB0_27
LBB0_19:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_21:
	mov	x0, x26
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_20
LBB0_23:
	mov	w24, #0
	mov	w26, #0
	b	LBB0_9
LBB0_24:
	ldr	w2, [x20, #12]
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_ip6_mc_add_src
	mov	x25, #0
	b	LBB0_29
LBB0_25:
Lloh18:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_7
LBB0_26:
	ldr	x4, [x25, #8]
LBB0_27:
	ldr	w2, [x20, #12]
	mov	x0, x22
	mov	x1, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w5, #0
	bl	_ip6_mc_add_src
	cbz	w0, LBB0_29
; %bb.28:
	mov	x26, x0
	ldr	w0, [x25]
	bl	_IP6_SFLSIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_sock_kfree_s
	b	LBB0_8
LBB0_29:
	mov	x0, x24
	bl	_write_lock_bh
	ldr	x26, [x24, #8]
	ldr	w2, [x24, #4]
	cbz	x26, LBB0_31
; %bb.30:
	ldr	w3, [x26, #4]
	ldr	x4, [x26, #8]
	mov	x0, x22
	mov	x1, x21
	mov	w5, #0
	bl	_ip6_mc_del_src
	ldr	w0, [x26]
	bl	_IP6_SFLSIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x26
	bl	_sock_kfree_s
	b	LBB0_32
LBB0_31:
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_ip6_mc_del_src
LBB0_32:
	str	x25, [x24, #8]
	ldr	w8, [x20, #12]
	str	w8, [x24, #4]
	mov	x0, x24
	bl	_write_unlock_bh
	mov	w26, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MCAST_INCLUDE,4,2              ; @MCAST_INCLUDE
	.comm	_MCAST_EXCLUDE,4,2              ; @MCAST_EXCLUDE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ipv6_sk_mc_lock,4,2            ; @ipv6_sk_mc_lock
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
.subsections_via_symbols
