	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_sockaddr_af
_sctp_sockaddr_af:                      ## @sctp_sockaddr_af
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$4, %edx
	jb	LBB0_5
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	callq	_ipv6_addr_v4mapped
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	jmp	LBB0_4
LBB0_6:
	movq	(%r15), %rdi
LBB0_7:
	movq	(%rbx), %rax
LBB0_4:
	movq	%rbx, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:
	movq	(%r15), %rdi
	callq	_sctp_get_af_specific
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpl	%r14d, (%rcx)
	cmovleq	%rcx, %rax
	jmp	LBB0_9
LBB0_5:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_AF_INET,8,3                    ## @AF_INET
	.no_dead_strip	_sctp_sockaddr_af
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_sockaddr_af
_sctp_sockaddr_af:                      ; @sctp_sockaddr_af
	.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
	cmp	w2, #4
	b.lo	LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_ipv6_addr_v4mapped
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AF_INET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x9]
	b	LBB0_6
LBB0_4:
	ldr	x0, [x20]
LBB0_5:
	ldr	x8, [x21]
	ldr	x8, [x8]
LBB0_6:
	mov	x1, x21
	blr	x8
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x20]
	bl	_sctp_get_af_specific
	ldr	w8, [x0]
	cmp	w8, w19
	csel	x0, xzr, x0, gt
	b	LBB0_9
LBB0_8:
	mov	x0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_AF_INET,8,3                    ; @AF_INET
	.no_dead_strip	_sctp_sockaddr_af
.subsections_via_symbols
