	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_raw_to_bind_addrs         ## -- Begin function sctp_raw_to_bind_addrs
	.p2align	4, 0x90
_sctp_raw_to_bind_addrs:                ## @sctp_raw_to_bind_addrs
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	je	LBB0_8
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	callq	_param_type2af
	movl	%eax, %edi
	callq	_sctp_get_af_specific
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rbx
	movl	%r12d, %edi
	callq	_htons
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	*%rbx
	movq	_SCTP_ADDR_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_sctp_add_bind_addr
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	callq	_ntohs
	movslq	%eax, %rcx
	leaq	(%r15,%rcx,4), %r15
	subl	%eax, %r13d
	jne	LBB0_2
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_6:
	movl	%eax, %r14d
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sctp_bind_addr_clean
LBB0_9:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCTP_ADDR_SRC,4,2              ## @SCTP_ADDR_SRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_raw_to_bind_addrs         ; -- Begin function sctp_raw_to_bind_addrs
	.p2align	2
_sctp_raw_to_bind_addrs:                ; @sctp_raw_to_bind_addrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	w2, LBB0_5
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _SCTP_ADDR_SRC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SCTP_ADDR_SRC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #4]
	bl	_param_type2af
	bl	_sctp_get_af_specific
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x24, [x24]
	mov	x0, x21
	bl	_htons
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x23
	mov	w3, #0
	blr	x24
	ldr	w2, [x25]
	add	x1, sp, #8
	mov	x0, x19
	mov	x3, x20
	bl	_sctp_add_bind_addr
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23]
	bl	_ntohs
	add	x23, x23, w0, sxtw #2
	subs	w22, w22, w0
	b.ne	LBB0_2
LBB0_5:
	mov	w24, #0
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_7:
	mov	x24, x0
LBB0_8:
	mov	x0, x19
	bl	_sctp_bind_addr_clean
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCTP_ADDR_SRC,4,2              ; @SCTP_ADDR_SRC
.subsections_via_symbols
