	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6_sock_mc_join              ## -- Begin function ipv6_sock_mc_join
	.p2align	4, 0x90
_ipv6_sock_mc_join:                     ## @ipv6_sock_mc_join
	.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	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_inet6_sk
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_sock_net
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ipv6_addr_is_multicast
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_ipv6_sk_mc_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock_bh
	movq	(%r12), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	32(%rbx), %rdi
	movq	%r13, %rsi
	callq	_ipv6_addr_equal
	testq	%rax, %rax
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rbx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r14d, (%rbx)
	je	LBB0_7
	jmp	LBB0_9
LBB0_10:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_ipv6_sk_mc_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_sock_kmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r12
	movq	$0, 8(%rax)
	leaq	32(%rax), %rdi
	movq	%r13, %rsi
	callq	_ipv6_addr_copy
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_dev_get_by_index
	movq	%rax, %r14
	testq	%r14, %r14
	jne	LBB0_18
	jmp	LBB0_17
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_ipv6_sk_mc_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rt6_lookup
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_dev_hold
	movq	%rbx, %rdi
	callq	_dst_release
	testq	%r14, %r14
	je	LBB0_17
LBB0_18:
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movq	_MCAST_EXCLUDE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_rwlock_init
	movq	$0, 16(%r12)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ipv6_dev_mc_inc
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$40, %edx
	callq	_sock_kfree_s
	movq	%r14, %rdi
	callq	_dev_put
	jmp	LBB0_21
LBB0_17:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$40, %edx
	callq	_sock_kfree_s
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_ipv6_sk_mc_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_write_lock_bh
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, 8(%r12)
	movq	%r12, (%rcx)
	movq	%rbx, %rdi
	callq	_write_unlock_bh
	movq	%r14, %rdi
	callq	_dev_put
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ipv6_sk_mc_lock,4,2            ## @ipv6_sk_mc_lock
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_MCAST_EXCLUDE,4,2              ## @MCAST_EXCLUDE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6_sock_mc_join              ; -- Begin function ipv6_sock_mc_join
	.p2align	2
_ipv6_sock_mc_join:                     ; @ipv6_sock_mc_join
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_inet6_sk
	mov	x20, x0
	mov	x0, x19
	bl	_sock_net
	mov	x24, x0
	mov	x0, x21
	bl	_ipv6_addr_is_multicast
	cbz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x0, _ipv6_sk_mc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ipv6_sk_mc_lock@GOTPAGEOFF]
	bl	_read_lock_bh
	ldr	x22, [x20]
	cbnz	x22, LBB0_7
LBB0_2:
Lloh2:
	adrp	x0, _ipv6_sk_mc_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ipv6_sk_mc_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_sock_kmalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x22, x0
	str	xzr, [x0, #8]
	add	x0, x0, #32
	mov	x1, x21
	bl	_ipv6_addr_copy
	mov	x0, x24
	cbz	w23, LBB0_12
; %bb.4:
	mov	x1, x23
	bl	_dev_get_by_index
	mov	x23, x0
	cbnz	x23, LBB0_14
	b	LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x22, #32
	mov	x1, x21
	bl	_ipv6_addr_equal
	cbnz	x0, LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w23, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22]
	cmp	w8, w23
	b.eq	LBB0_5
	b	LBB0_6
LBB0_9:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
Lloh11:
	adrp	x0, _ipv6_sk_mc_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ipv6_sk_mc_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
Lloh13:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	mov	x1, x21
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_rt6_lookup
	cbz	x0, LBB0_16
; %bb.13:
	mov	x24, x0
	ldr	x23, [x0, #8]
	mov	x0, x23
	bl	_dev_hold
	mov	x0, x24
	bl	_dst_release
	cbz	x23, LBB0_16
LBB0_14:
	ldr	w8, [x23]
	str	w8, [x22]
Lloh15:
	adrp	x8, _MCAST_EXCLUDE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MCAST_EXCLUDE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22, #28]
	add	x0, x22, #24
	bl	_rwlock_init
	str	xzr, [x22, #16]
	mov	x0, x23
	mov	x1, x21
	bl	_ipv6_dev_mc_inc
	mov	x21, x0
	cbz	w0, LBB0_19
; %bb.15:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #40
	bl	_sock_kfree_s
	b	LBB0_20
LBB0_16:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #40
	bl	_sock_kfree_s
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh20:
	adrp	x19, _ipv6_sk_mc_lock@GOTPAGE
Lloh21:
	ldr	x19, [x19, _ipv6_sk_mc_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_write_lock_bh
	ldr	x8, [x20]
	str	x8, [x22, #8]
	str	x22, [x20]
	mov	x0, x19
	bl	_write_unlock_bh
LBB0_20:
	mov	x0, x23
	bl	_dev_put
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ipv6_sk_mc_lock,4,2            ; @ipv6_sk_mc_lock
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_MCAST_EXCLUDE,4,2              ; @MCAST_EXCLUDE
.subsections_via_symbols
