	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function in6p_set_multicast_if
_in6p_set_multicast_if:                 ## @in6p_set_multicast_if
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$8, (%rsi)
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	-32(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_sooptcopyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	_V_if_index@GOTPCREL(%rip), %rax
	movq	-32(%rbp), %rdi
	cmpq	%rdi, (%rax)
	jge	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.7:
	callq	_ifnet_byindex
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rax, %r15
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_6
## %bb.9:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r14, %rdi
	callq	_in6p_findmoptions
	movq	%r15, (%rax)
	movq	%r14, %rdi
	callq	_INP_WUNLOCK
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V_if_index,8,3                 ## @V_if_index
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.no_dead_strip	_in6p_set_multicast_if
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function in6p_set_multicast_if
_in6p_set_multicast_if:                 ; @in6p_set_multicast_if
	.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
	ldr	w9, [x1]
	cmp	w9, #8
	b.ne	LBB0_3
; %bb.1:
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #8
	mov	w3, #8
	bl	_sooptcopyin
	cbnz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _V_if_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_if_index@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [sp, #8]
	cmp	x8, x0
	b.ge	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	cbz	x0, LBB0_10
; %bb.7:
	bl	_ifnet_byindex
	cbz	x0, LBB0_3
; %bb.8:
	mov	x20, x0
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.9:
Lloh8:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	x0, x19
	bl	_in6p_findmoptions
	str	x20, [x0]
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V_if_index,8,3                 ; @V_if_index
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.no_dead_strip	_in6p_set_multicast_if
.subsections_via_symbols
