	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rip6_send
_rip6_send:                             ## @rip6_send
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rdi, %r12
	callq	_sotoinpcb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_SS_ISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.1:
	testq	%r13, %r13
	je	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	callq	_m_freem
	movq	_EISCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	testq	%r13, %r13
	je	LBB0_9
## %bb.4:
	cmpl	$16, (%r13)
	jne	LBB0_10
## %bb.5:
	movups	(%r13), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.6:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_log
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	jmp	LBB0_8
LBB0_7:
	leaq	-64(%rbp), %rdi
	movl	$16, %esi
	callq	_bzero
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	$16, -56(%rbp)
	movq	%rbx, %rdi
	callq	_INP_RLOCK
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)
	movq	%rbx, %rdi
	callq	_INP_RUNLOCK
LBB0_8:
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	_rip6_output
	jmp	LBB0_12
LBB0_9:
	movq	%r15, %rdi
	callq	_m_freem
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	callq	_m_freem
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.14:
	movq	%r15, %rdi
	callq	_m_freem
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rip6_send: inp == NULL"

	.comm	_SS_ISCONNECTED,4,2             ## @SS_ISCONNECTED
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"rip6 SEND: address family is unspec. Assume AF_INET6\n"

	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.no_dead_strip	_rip6_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rip6_send
_rip6_send:                             ; @rip6_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x23, x3
	mov	x19, x2
	mov	x21, x0
	bl	_sotoinpcb
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _SS_ISCONNECTED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SS_ISCONNECTED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	cbz	x23, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_m_freem
Lloh5:
	adrp	x8, _EISCONN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	cbz	x23, LBB0_9
; %bb.4:
	ldr	w8, [x23]
	cmp	w8, #16
	b.ne	LBB0_10
; %bb.5:
	ldr	q0, [x23]
	str	q0, [sp]
	ldr	x8, [sp]
Lloh7:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
Lloh10:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log
Lloh15:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [sp]
	b	LBB0_8
LBB0_7:
	mov	w23, #16
	mov	x0, sp
	mov	w1, #16
	bl	_bzero
Lloh18:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [sp]
	str	w23, [sp, #8]
	mov	x0, x22
	bl	_INP_RLOCK
	ldr	w8, [x22]
	str	w8, [sp, #12]
	mov	x0, x22
	bl	_INP_RUNLOCK
LBB0_8:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_rip6_output
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_m_freem
Lloh21:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_m_freem
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
Lloh25:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.14:
	mov	x0, x19
	bl	_m_freem
Lloh28:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rip6_send: inp == NULL"

	.comm	_SS_ISCONNECTED,4,2             ; @SS_ISCONNECTED
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"rip6 SEND: address family is unspec. Assume AF_INET6\n"

	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.no_dead_strip	_rip6_send
.subsections_via_symbols
