	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6_sock_ac_join              ## -- Begin function ipv6_sock_ac_join
	.p2align	4, 0x90
_ipv6_sock_ac_join:                     ## @ipv6_sock_ac_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, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_inet6_sk
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_sock_net
	movq	%rax, %r12
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ipv6_addr_is_multicast
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ipv6_chk_addr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_sock_kmalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %rbx
	movq	$0, (%rax)
	movq	%rax, %rdi
	addq	$12, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ipv6_addr_copy
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_13
## %bb.11:
	movq	%rbx, %r13
	movq	%r12, %rdi
	callq	_dev_get_by_index
	movq	%rax, %rbx
	testq	%rbx, %rbx
	je	LBB0_23
LBB0_19:
	movq	%rbx, %rdi
	callq	_in6_dev_get
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movl	(%rax), %r12d
	movq	%rax, %rdi
	callq	_in6_dev_put
	movl	(%rbx), %eax
	movl	%eax, 8(%r13)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ipv6_chk_prefix
	testl	%eax, %eax
	movq	%r14, %rsi
	je	LBB0_26
LBB0_21:
	movq	%rbx, %rdi
	callq	_ipv6_dev_ac_inc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.22:
	movq	_ipv6_sk_ac_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_bh
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, (%r13)
	movq	%r13, (%rcx)
	movq	%r14, %rdi
	callq	_write_unlock_bh
	movq	%rbx, %rdi
	callq	_dev_put
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rt6_lookup
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, %r14
	movq	%rbx, %r13
	movq	8(%rax), %rbx
	movq	%rbx, %rdi
	callq	_dev_hold
	movq	%r14, %rdi
	callq	_dst_release
	jmp	LBB0_17
LBB0_24:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
## %bb.25:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_26:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r12d, %r12d
	cmovnel	%ecx, %r14d
	testl	%r14d, %r14d
	jne	LBB0_29
	jmp	LBB0_21
LBB0_15:
	testl	%r13d, %r13d
	je	LBB0_32
## %bb.16:
	movq	%rbx, %r13
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%esi, %edx
	movq	%r12, %rdi
	callq	_dev_get_by_flags
	movq	%rax, %rbx
LBB0_17:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_19
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_30
LBB0_27:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_28:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_29:
	movq	%rbx, %rdi
	callq	_dev_put
LBB0_30:
	movq	%r13, %rbx
LBB0_31:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_sock_kfree_s
	jmp	LBB0_6
LBB0_32:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ipv6_sk_ac_lock,4,2            ## @ipv6_sk_ac_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipv6_sock_ac_join              ; -- Begin function ipv6_sock_ac_join
	.p2align	2
_ipv6_sock_ac_join:                     ; @ipv6_sock_ac_join
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_inet6_sk
	mov	x20, x0
	mov	x0, x19
	bl	_sock_net
	mov	x24, x0
	ldr	x8, [x0]
	ldr	w26, [x8]
Lloh0:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_ipv6_addr_is_multicast
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x24
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	bl	_ipv6_chk_addr
	cbz	x0, LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	mov	x0, x23
	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_7:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_sock_kmalloc
	cbz	x0, LBB0_15
; %bb.8:
	mov	x21, x0
	str	xzr, [x0], #12
	mov	x1, x22
	bl	_ipv6_addr_copy
	cbz	w23, LBB0_16
; %bb.9:
	mov	x0, x24
	mov	x1, x23
	bl	_dev_get_by_index
LBB0_10:
	mov	x24, x0
	cbz	x24, LBB0_18
LBB0_11:
	mov	x0, x24
	bl	_in6_dev_get
	cbz	x0, LBB0_20
; %bb.12:
	ldr	w23, [x0]
	bl	_in6_dev_put
	ldr	w8, [x24]
	str	w8, [x21, #8]
	mov	x0, x22
	mov	x1, x24
	bl	_ipv6_chk_prefix
	cbz	w0, LBB0_22
LBB0_13:
	mov	x0, x24
	mov	x1, x22
	bl	_ipv6_dev_ac_inc
	mov	x23, x0
	cbnz	w0, LBB0_27
; %bb.14:
Lloh10:
	adrp	x19, _ipv6_sk_ac_lock@GOTPAGE
Lloh11:
	ldr	x19, [x19, _ipv6_sk_ac_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_write_lock_bh
	ldr	x8, [x20]
	str	x8, [x21]
	str	x21, [x20]
	mov	x0, x19
	bl	_write_unlock_bh
	mov	x0, x24
	bl	_dev_put
	b	LBB0_6
LBB0_15:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_16:
	mov	x0, x24
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_rt6_lookup
	cbz	x0, LBB0_23
; %bb.17:
	mov	x25, x0
	ldr	x24, [x0, #8]
	mov	x0, x24
	bl	_dev_hold
	mov	x0, x25
	bl	_dst_release
	cbnz	x24, LBB0_11
LBB0_18:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_28
LBB0_20:
	cbz	w23, LBB0_25
; %bb.21:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_26
LBB0_22:
Lloh18:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w23, #0
	csneg	w23, wzr, w8, ne
	cbnz	w23, LBB0_27
	b	LBB0_13
LBB0_23:
	cbz	w26, LBB0_29
; %bb.24:
Lloh21:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _IFF_LOOPBACK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w2, w8, w1
	mov	x0, x24
	bl	_dev_get_by_flags
	b	LBB0_10
LBB0_25:
Lloh27:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_27:
	mov	x0, x24
	bl	_dev_put
LBB0_28:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #16
	bl	_sock_kfree_s
	b	LBB0_6
LBB0_29:
Lloh29:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ipv6_sk_ac_lock,4,2            ; @ipv6_sk_ac_lock
.subsections_via_symbols
