	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_SetMulticast6              ## -- Begin function NET_SetMulticast6
	.p2align	4, 0x90
_NET_SetMulticast6:                     ## @NET_SetMulticast6
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_net_mcast6addr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16(%rbp), %rsi
	movl	$4, %edx
	callq	_Sys_StringToSockaddr
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	_curgroup@GOTPCREL(%rip), %rbx
	leaq	8(%rbx), %rdi
	leaq	-16(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_net_mcast6iface@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.6:
	callq	_if_nametoindex
	jmp	LBB0_7
LBB0_2:
	movq	(%rbx), %rax
LBB0_3:
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	movq	_net_enabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	movq	_NET_DISABLEMCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_Cvar_SetValue
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_net_mcast6addr,8,3             ## @net_mcast6addr
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: NET_JoinMulticast6: Incorrect multicast address given, please set cvar %s to a sane value.\n"

	.comm	_net_enabled,8,3                ## @net_enabled
	.comm	_NET_DISABLEMCAST,4,2           ## @NET_DISABLEMCAST
	.comm	_curgroup,16,3                  ## @curgroup
	.comm	_net_mcast6iface,8,3            ## @net_mcast6iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NET_SetMulticast6              ; -- Begin function NET_SetMulticast6
	.p2align	2
_NET_SetMulticast6:                     ; @NET_SetMulticast6
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _net_mcast6addr@GOTPAGE
Lloh1:
	ldr	x19, [x19, _net_mcast6addr@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	ldr	w9, [x0]
	cbz	w9, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	w2, #4
	bl	_Sys_StringToSockaddr
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x19, _curgroup@GOTPAGE
Lloh6:
	ldr	x19, [x19, _curgroup@GOTPAGEOFF]
	add	x0, x19, #8
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
Lloh7:
	adrp	x8, _net_mcast6iface@GOTPAGE
Lloh8:
	ldr	x8, [x8, _net_mcast6iface@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
	bl	_if_nametoindex
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19]
LBB0_5:
	ldr	w1, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
Lloh12:
	adrp	x8, _net_enabled@GOTPAGE
Lloh13:
	ldr	x8, [x8, _net_enabled@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldp	w8, w0, [x8]
Lloh15:
	adrp	x9, _NET_DISABLEMCAST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NET_DISABLEMCAST@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_Cvar_SetValue
	b	LBB0_8
LBB0_6:
	mov	x0, #0
LBB0_7:
	str	x0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_net_mcast6addr,8,3             ; @net_mcast6addr
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: NET_JoinMulticast6: Incorrect multicast address given, please set cvar %s to a sane value.\n"

	.comm	_net_enabled,8,3                ; @net_enabled
	.comm	_NET_DISABLEMCAST,4,2           ; @NET_DISABLEMCAST
	.comm	_curgroup,16,3                  ; @curgroup
	.comm	_net_mcast6iface,8,3            ; @net_mcast6iface
.subsections_via_symbols
