	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rip6_connect
_rip6_connect:                          ## @rip6_connect
	.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	%rsi, %r12
	movq	%rdi, %r14
	callq	_sotoinpcb
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	cmpl	$24, (%r12)
	jne	LBB0_3
## %bb.1:
	movq	_V_ifnet@GOTPCREL(%rip), %rdi
	callq	_CK_STAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_V_ip6_use_defzone@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_sa6_embedscope
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	testl	%r13d, %r13d
	sete	%al
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %ebx
	movq	_V_ripcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WLOCK
	movq	%r15, %rdi
	callq	_INP_WLOCK
	movl	8(%r15), %esi
	movl	(%r14), %ecx
	movq	$0, (%rsp)
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	%ebx, %r8d
	callq	_in6_selectsrc_socket
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	movq	_V_ripcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WUNLOCK
	jmp	LBB0_5
LBB0_10:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	movl	16(%r12), %eax
	movl	%eax, 4(%r15)
	movl	-48(%rbp), %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_soisconnected
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	movq	_V_ripcbinfo@GOTPCREL(%rip), %rdi
	callq	_INP_INFO_WUNLOCK
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rip6_connect: inp == NULL"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V_ifnet,4,2                    ## @V_ifnet
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_V_ip6_use_defzone,4,2          ## @V_ip6_use_defzone
	.comm	_V_ripcbinfo,4,2                ## @V_ripcbinfo
	.no_dead_strip	_rip6_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rip6_connect
_rip6_connect:                          ; @rip6_connect
	.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	x21, x1
	mov	x20, x0
	bl	_sotoinpcb
	mov	x19, 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]
	cmp	w8, #24
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x0, _V_ifnet@GOTPAGE
Lloh3:
	ldr	x0, [x0, _V_ifnet@GOTPAGEOFF]
	bl	_CK_STAILQ_EMPTY
	cbz	x0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w22, [x8]
LBB0_5:
	mov	x0, x22
	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_6:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	x24, [x21, #8]
Lloh11:
	adrp	x8, _V_ip6_use_defzone@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V_ip6_use_defzone@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	mov	x0, x21
	mov	x1, x23
	bl	_sa6_embedscope
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.8:
	cmp	x24, #0
	ccmp	w23, #0, #0, eq
	cset	w22, eq
Lloh14:
	adrp	x0, _V_ripcbinfo@GOTPAGE
Lloh15:
	ldr	x0, [x0, _V_ripcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_WLOCK
	mov	x0, x19
	bl	_INP_WLOCK
	ldr	w1, [x19, #8]
	ldr	w3, [x20]
	add	x5, sp, #8
	mov	x0, x21
	mov	x2, x19
	mov	x4, x22
	mov	x6, #0
	bl	_in6_selectsrc_socket
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w8, [x21, #16]
	ldr	w9, [sp, #8]
	stp	w9, w8, [x19]
	mov	x0, x20
	bl	_soisconnected
LBB0_10:
	mov	x0, x19
	bl	_INP_WUNLOCK
Lloh16:
	adrp	x0, _V_ripcbinfo@GOTPAGE
Lloh17:
	ldr	x0, [x0, _V_ripcbinfo@GOTPAGEOFF]
	bl	_INP_INFO_WUNLOCK
	b	LBB0_5
LBB0_11:
Lloh18:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rip6_connect: inp == NULL"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V_ifnet,4,2                    ; @V_ifnet
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_V_ip6_use_defzone,4,2          ; @V_ip6_use_defzone
	.comm	_V_ripcbinfo,4,2                ; @V_ripcbinfo
	.no_dead_strip	_rip6_connect
.subsections_via_symbols
