	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rip_mcast_on
_rip_mcast_on:                          ## @rip_mcast_on
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_IS_RIP_IN_OFF
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_5
## %bb.2:
	movq	_IS_ALIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.3:
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	_INADDR_RIP_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, -12(%rbp)
	movq	_rip_sock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCAST_JOIN_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	movl	$8, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_LOGERR
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_IS_ALIAS,4,2                   ## @IS_ALIAS
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_INADDR_RIP_GROUP,4,2           ## @INADDR_RIP_GROUP
	.comm	_rip_sock,4,2                   ## @rip_sock
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_MCAST_JOIN_GROUP,4,2           ## @MCAST_JOIN_GROUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setsockopt(MCAST_JOIN_GROUP RIP)"

	.no_dead_strip	_rip_mcast_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rip_mcast_on
_rip_mcast_on:                          ; @rip_mcast_on
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_IS_RIP_IN_OFF
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _IFF_MULTICAST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_MULTICAST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _IS_ALIAS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IS_ALIAS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh6:
	adrp	x8, _AF_INET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh9:
	adrp	x8, _INADDR_RIP_GROUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INADDR_RIP_GROUP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [sp, #12]
Lloh12:
	adrp	x8, _rip_sock@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rip_sock@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _IPPROTO_IP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPPROTO_IP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _MCAST_JOIN_GROUP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MCAST_JOIN_GROUP@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w4, #8
	bl	_setsockopt
	tbz	x0, #63, LBB0_1
; %bb.5:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOGERR
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_IS_ALIAS,4,2                   ; @IS_ALIAS
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_INADDR_RIP_GROUP,4,2           ; @INADDR_RIP_GROUP
	.comm	_rip_sock,4,2                   ; @rip_sock
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_MCAST_JOIN_GROUP,4,2           ; @MCAST_JOIN_GROUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setsockopt(MCAST_JOIN_GROUP RIP)"

	.no_dead_strip	_rip_mcast_on
.subsections_via_symbols
