	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rip6_attach
_rip6_attach:                           ## @rip6_attach
	.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	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_sotoinpcb
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_PRIV_NETINET_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_priv_check
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_rip_sendspace@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rip_recvspace@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_soreserve
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_M_PCB@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	_V_ripcbinfo@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_INP_INFO_WLOCK
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_in_pcballoc
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	_V_ripcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WUNLOCK
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	movq	(%r12), %rbx
	movq	_V_ripcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WUNLOCK
	movq	_INP_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
	movslq	%r14d, %rax
	movq	%rax, (%rbx)
	movq	$-1, 8(%rbx)
	movq	%r15, 16(%rbx)
	movq	%r15, %rdi
	callq	_ICMP6_FILTER_SETPASSALL
	movq	%rbx, %rdi
	callq	_INP_WUNLOCK
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rip6_attach: inp != NULL"

	.comm	_PRIV_NETINET_RAW,4,2           ## @PRIV_NETINET_RAW
	.comm	_rip_sendspace,4,2              ## @rip_sendspace
	.comm	_rip_recvspace,4,2              ## @rip_recvspace
	.comm	_M_PCB,4,2                      ## @M_PCB
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_V_ripcbinfo,4,2                ## @V_ripcbinfo
	.comm	_INP_IPV6,4,2                   ## @INP_IPV6
	.no_dead_strip	_rip6_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rip6_attach
_rip6_attach:                           ; @rip6_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_sotoinpcb
	cmp	x0, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh2:
	adrp	x8, _PRIV_NETINET_RAW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PRIV_NETINET_RAW@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_priv_check
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _rip_sendspace@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rip_sendspace@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _rip_recvspace@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rip_recvspace@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_soreserve
	mov	x22, x0
	cbz	w0, LBB0_3
LBB0_2:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh11:
	adrp	x23, _M_PCB@GOTPAGE
Lloh12:
	ldr	x23, [x23, _M_PCB@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh13:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh16:
	adrp	x22, _V_ripcbinfo@GOTPAGE
Lloh17:
	ldr	x22, [x22, _V_ripcbinfo@GOTPAGEOFF]
	mov	x0, x22
	bl	_INP_INFO_WLOCK
	mov	x0, x20
	mov	x1, x22
	bl	_in_pcballoc
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh18:
	adrp	x0, _V_ripcbinfo@GOTPAGE
Lloh19:
	ldr	x0, [x0, _V_ripcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_WUNLOCK
	ldr	w1, [x23]
	mov	x0, x21
	bl	_free
	b	LBB0_2
LBB0_6:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x8]
	b	LBB0_2
LBB0_7:
	ldr	x20, [x20]
Lloh23:
	adrp	x0, _V_ripcbinfo@GOTPAGE
Lloh24:
	ldr	x0, [x0, _V_ripcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_WUNLOCK
Lloh25:
	adrp	x8, _INP_IPV6@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INP_IPV6@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
	sxtw	x8, w19
	str	x8, [x20]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x20, #8]
	str	x21, [x20, #16]
	mov	x0, x21
	bl	_ICMP6_FILTER_SETPASSALL
	mov	x0, x20
	bl	_INP_WUNLOCK
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rip6_attach: inp != NULL"

	.comm	_PRIV_NETINET_RAW,4,2           ; @PRIV_NETINET_RAW
	.comm	_rip_sendspace,4,2              ; @rip_sendspace
	.comm	_rip_recvspace,4,2              ; @rip_recvspace
	.comm	_M_PCB,4,2                      ; @M_PCB
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_V_ripcbinfo,4,2                ; @V_ripcbinfo
	.comm	_INP_IPV6,4,2                   ; @INP_IPV6
	.no_dead_strip	_rip6_attach
.subsections_via_symbols
