	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rip6_bind
_rip6_bind:                             ## @rip6_bind
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	callq	_sotoinpcb
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	cmpl	$16, (%r12)
	jne	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	leaq	8(%r12), %r14
	movq	%r14, %rsi
	callq	_prison_check_ip6
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movq	_V_ifnet@GOTPCREL(%rip), %rdi
	callq	_CK_STAILQ_EMPTY
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	movq	(%r12), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movq	_V_ip6_use_defzone@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sa6_embedscope
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	callq	_NET_EPOCH_ENTER
	movq	%r14, %rdi
	callq	_IN6_IS_ADDR_UNSPECIFIED
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	callq	_NET_EPOCH_EXIT
	movq	_V_ripcbinfo@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_INP_INFO_WLOCK
	movq	%r15, %rdi
	callq	_INP_WLOCK
	movl	(%r14), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	movq	%rbx, %rdi
	callq	_INP_INFO_WUNLOCK
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	%r12, %rdi
	callq	_ifa_ifwithaddr
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_IN6_IFF_ANYCAST@GOTPCREL(%rip), %rcx
	movq	_IN6_IFF_NOTREADY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_IN6_IFF_DETACHED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_IN6_IFF_DEPRECATED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%edx, (%rax)
	je	LBB0_6
LBB0_10:
	callq	_NET_EPOCH_EXIT
LBB0_11:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rip6_bind: inp == NULL"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V_ifnet,4,2                    ## @V_ifnet
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_V_ip6_use_defzone,4,2          ## @V_ip6_use_defzone
	.comm	_IN6_IFF_ANYCAST,4,2            ## @IN6_IFF_ANYCAST
	.comm	_IN6_IFF_NOTREADY,4,2           ## @IN6_IFF_NOTREADY
	.comm	_IN6_IFF_DETACHED,4,2           ## @IN6_IFF_DETACHED
	.comm	_IN6_IFF_DEPRECATED,4,2         ## @IN6_IFF_DEPRECATED
	.comm	_V_ripcbinfo,4,2                ## @V_ripcbinfo
	.no_dead_strip	_rip6_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rip6_bind
_rip6_bind:                             ; @rip6_bind
	.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	x20, x2
	mov	x21, x1
	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, #16
	b.ne	LBB0_7
; %bb.1:
	ldr	w0, [x20]
	add	x20, x21, #8
	mov	x1, x20
	bl	_prison_check_ip6
	cbnz	w0, LBB0_14
; %bb.2:
Lloh2:
	adrp	x0, _V_ifnet@GOTPAGE
Lloh3:
	ldr	x0, [x0, _V_ifnet@GOTPAGEOFF]
	bl	_CK_STAILQ_EMPTY
	cbnz	x0, LBB0_12
; %bb.3:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
Lloh7:
	adrp	x8, _V_ip6_use_defzone@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V_ip6_use_defzone@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sa6_embedscope
	cbnz	w0, LBB0_14
; %bb.5:
	mov	x0, #0
	bl	_NET_EPOCH_ENTER
	mov	x0, x20
	bl	_IN6_IS_ADDR_UNSPECIFIED
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, #0
	bl	_NET_EPOCH_EXIT
Lloh10:
	adrp	x21, _V_ripcbinfo@GOTPAGE
Lloh11:
	ldr	x21, [x21, _V_ripcbinfo@GOTPAGEOFF]
	mov	x0, x21
	bl	_INP_INFO_WLOCK
	mov	x0, x19
	bl	_INP_WLOCK
	ldr	w8, [x20]
	str	w8, [x19]
	mov	x0, x19
	bl	_INP_WUNLOCK
	mov	x0, x21
	bl	_INP_INFO_WUNLOCK
	mov	w0, #0
	b	LBB0_14
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
	mov	x0, x21
	bl	_ifa_ifwithaddr
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w8, [x0]
Lloh14:
	adrp	x9, _IN6_IFF_ANYCAST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IN6_IFF_ANYCAST@GOTPAGEOFF]
Lloh16:
	adrp	x10, _IN6_IFF_NOTREADY@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IN6_IFF_NOTREADY@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh20:
	adrp	x10, _IN6_IFF_DETACHED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _IN6_IFF_DETACHED@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh23:
	adrp	x10, _IN6_IFF_DEPRECATED@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IN6_IFF_DEPRECATED@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_6
; %bb.10:
	mov	x0, #0
LBB0_11:
	bl	_NET_EPOCH_EXIT
LBB0_12:
Lloh26:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rip6_bind: inp == NULL"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V_ifnet,4,2                    ; @V_ifnet
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_V_ip6_use_defzone,4,2          ; @V_ip6_use_defzone
	.comm	_IN6_IFF_ANYCAST,4,2            ; @IN6_IFF_ANYCAST
	.comm	_IN6_IFF_NOTREADY,4,2           ; @IN6_IFF_NOTREADY
	.comm	_IN6_IFF_DETACHED,4,2           ; @IN6_IFF_DETACHED
	.comm	_IN6_IFF_DEPRECATED,4,2         ; @IN6_IFF_DEPRECATED
	.comm	_V_ripcbinfo,4,2                ; @V_ripcbinfo
	.no_dead_strip	_rip6_bind
.subsections_via_symbols
