	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_v6_addr_valid
_sctp_v6_addr_valid:                    ## @sctp_v6_addr_valid
	.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, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_ipv6_addr_type
	movq	_IPV6_ADDR_MAPPED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_sctp_opt2sk
	movl	%eax, %edi
	callq	_ipv6_only_sock
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	callq	_sctp_v6_map_v4
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sctp_get_af_specific
	movq	(%rax), %rax
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	movq	_IPV6_ADDR_UNICAST@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	setne	%bl
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPV6_ADDR_MAPPED,4,2           ## @IPV6_ADDR_MAPPED
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_IPV6_ADDR_UNICAST,4,2          ## @IPV6_ADDR_UNICAST
	.no_dead_strip	_sctp_v6_addr_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_v6_addr_valid
_sctp_v6_addr_valid:                    ; @sctp_v6_addr_valid
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ipv6_addr_type
Lloh0:
	adrp	x8, _IPV6_ADDR_MAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPV6_ADDR_MAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_sctp_opt2sk
	bl	_ipv6_only_sock
	cbz	x0, LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _IPV6_ADDR_UNICAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPV6_ADDR_UNICAST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
LBB0_6:
	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
LBB0_7:
	mov	x0, x21
	bl	_sctp_v6_map_v4
Lloh6:
	adrp	x8, _AF_INET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_sctp_get_af_specific
	ldr	x3, [x0]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	br	x3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPV6_ADDR_MAPPED,4,2           ; @IPV6_ADDR_MAPPED
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_IPV6_ADDR_UNICAST,4,2          ; @IPV6_ADDR_UNICAST
	.no_dead_strip	_sctp_v6_addr_valid
.subsections_via_symbols
