	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_check_mc                    ## -- Begin function ip_check_mc
	.p2align	4, 0x90
_ip_check_mc:                           ## @ip_check_mc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_read_lock
	movq	8(%r15), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
LBB0_14:
	movq	%r15, %rdi
	callq	_read_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %r14d
	testq	%r13, %r13
	je	LBB0_14
## %bb.5:
	movq	_IPPROTO_IGMP@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	je	LBB0_14
## %bb.6:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, (%rcx)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_8
LBB0_10:
	movq	_MCAST_EXCLUDE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$3, %rcx
	addq	8(%rax), %rcx
	xorl	%eax, %eax
LBB0_13:
	xorl	%r14d, %r14d
	cmpq	%rax, (%rcx)
	setne	%r14b
	jmp	LBB0_14
LBB0_11:
	movq	8(%rcx), %rcx
	movq	_MCAST_INCLUDE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	jne	LBB0_14
## %bb.12:
	movq	_MCAST_EXCLUDE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rcx,%rdx,8), %rcx
	movq	8(%rax), %rax
	movq	(%rax,%rdx,8), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_IGMP,8,3               ## @IPPROTO_IGMP
	.comm	_MCAST_INCLUDE,8,3              ## @MCAST_INCLUDE
	.comm	_MCAST_EXCLUDE,8,3              ## @MCAST_EXCLUDE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_check_mc                    ; -- Begin function ip_check_mc
	.p2align	2
_ip_check_mc:                           ; @ip_check_mc
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_read_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cmp	x9, x22
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_1
LBB0_3:
	mov	w22, #0
LBB0_4:
	mov	x0, x19
	bl	_read_unlock
	mov	x0, x22
	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
LBB0_5:
	mov	w22, #1
	cbz	x20, LBB0_4
; %bb.6:
Lloh0:
	adrp	x9, _IPPROTO_IGMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPPROTO_IGMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x21
	b.eq	LBB0_4
; %bb.7:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x20
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_8
LBB0_10:
	mov	x9, #0
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x10, _MCAST_EXCLUDE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MCAST_EXCLUDE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x8, x10, lsl #3
LBB0_11:
	ldr	x8, [x10]
	cmp	x8, x9
	cset	w22, ne
	b	LBB0_4
LBB0_12:
	ldr	x9, [x9, #8]
Lloh6:
	adrp	x10, _MCAST_INCLUDE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MCAST_INCLUDE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x10, [x9, x10, lsl #3]
	cbz	x10, LBB0_14
; %bb.13:
	mov	w22, #1
	b	LBB0_4
LBB0_14:
Lloh9:
	adrp	x10, _MCAST_EXCLUDE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MCAST_EXCLUDE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	lsl	x11, x10, #3
	add	x10, x9, x11
	ldr	x8, [x8, #8]
	ldr	x9, [x8, x11]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_IGMP,8,3               ; @IPPROTO_IGMP
	.comm	_MCAST_INCLUDE,8,3              ; @MCAST_INCLUDE
	.comm	_MCAST_EXCLUDE,8,3              ; @MCAST_EXCLUDE
.subsections_via_symbols
