	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsync_multicast_setup
_pfsync_multicast_setup:                ## @pfsync_multicast_setup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$-1, 8(%rdi)
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_in_joingroup
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	40(%rbx), %r12
	movq	%r12, %rdi
	callq	_ip_mfilter_init
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ip_mfilter_insert
	movq	%r14, 32(%rbx)
	movq	_PFSYNC_DFLTTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_PFSYNC_DFLTTL,4,2              ## @PFSYNC_DFLTTL
	.no_dead_strip	_pfsync_multicast_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsync_multicast_setup
_pfsync_multicast_setup:                ; @pfsync_multicast_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #-1
	str	w8, [x0, #8]
	mov	x0, x1
	mov	x1, x19
	mov	x2, #0
	mov	x3, x21
	bl	_in_joingroup
	cbnz	w0, LBB0_4
; %bb.2:
	add	x22, x19, #40
	mov	x0, x22
	bl	_ip_mfilter_init
	mov	x0, x22
	mov	x1, x21
	bl	_ip_mfilter_insert
	mov	w0, #0
	str	x20, [x19, #32]
Lloh3:
	adrp	x8, _PFSYNC_DFLTTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PFSYNC_DFLTTL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_PFSYNC_DFLTTL,4,2              ; @PFSYNC_DFLTTL
	.no_dead_strip	_pfsync_multicast_setup
.subsections_via_symbols
