	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_get_cookie_params    ## -- Begin function sctp_auth_get_cookie_params
	.p2align	4, 0x90
_sctp_auth_get_cookie_params:           ## @sctp_auth_get_cookie_params
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SCTP_PARAM_BUFFER_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -168(%rbp)                ## 8-byte Spill
	movl	(%r12), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -160(%rbp)                ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -144(%rbp)                ## 8-byte Spill
	leaq	-184(%rbp), %rcx
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_sctp_m_getptr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	addq	%r13, %r14
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movl	4(%r12), %edi
	callq	_ntohs
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_ntohs
	testq	%rax, %rax
	je	LBB0_34
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rcx
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	addq	%rsi, %rax
	cmpq	-136(%rbp), %rax                ## 8-byte Folded Reload
	jg	LBB0_34
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SCTP_RANDOM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-176(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	ja	LBB0_34
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r12
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	movq	%rcx, %rbx
	callq	_sctp_get_next_param
	testq	%rax, %rax
	je	LBB0_45
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movq	%rbx, %rax
	addq	$-16, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_SCTP_HMAC_LIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	ja	LBB0_34
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	movq	%rcx, %r12
	callq	_sctp_get_next_param
	testq	%rax, %rax
	je	LBB0_45
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	addq	$-16, %r12
	movq	%r12, %r13
	shrq	$2, %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	40(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	callq	_sctp_free_hmaclist
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_sctp_alloc_hmaclist
	movq	%rax, %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 40(%rax)
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$4, %r12
	jb	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$2, %r13
	movl	$1, %eax
	cmovbq	%rax, %r13
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_sctp_auth_add_hmacid
	cmpq	$8, %r12
	jb	LBB0_31
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r15), %rbx
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %edi
	callq	_ntohs
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_sctp_auth_add_hmacid
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r12
	movq	_SCTP_CHUNK_LIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	ja	LBB0_34
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	%rcx, %r13
	callq	_sctp_get_next_param
	movq	%rax, %rcx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_45
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addq	$-16, %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_3 Depth=1
	callq	_sctp_clear_chunklist
	jmp	LBB0_27
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_32
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_sctp_alloc_chunklist
	movq	%rax, 56(%rbx)
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	jle	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	56(%r14), %rsi
	callq	_sctp_auth_add_chunk
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	movq	%rcx, %rdi
	callq	_SCTP_SIZE32
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rax,%rsi), %rcx
	addq	$8, %rcx
	cmpq	-136(%rbp), %rcx                ## 8-byte Folded Reload
	ja	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	movl	$8, %edx
	leaq	-184(%rbp), %rcx
	callq	_sctp_m_getptr
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_34
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
LBB0_34:
	movq	%r15, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	addq	$16, %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	movq	%rcx, %r12
	cmoveq	%rdx, %rcx
	leaq	(%rcx,%rax), %rdi
	addq	$32, %rdi
	callq	_sctp_alloc_key
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_42
## %bb.35:
	testq	%rbx, %rbx
	je	LBB0_36
## %bb.37:
	movq	%rbx, %rsi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rbx
	movq	(%r15), %rdi
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_38
LBB0_36:
	xorl	%ebx, %ebx
LBB0_38:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_40
## %bb.39:
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	addq	%r12, %rbx
LBB0_40:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_42
## %bb.41:
	addq	(%r15), %rbx
	addl	$16, %r13d
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
LBB0_42:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_44
## %bb.43:
	callq	_sctp_free_key
LBB0_44:
	movq	%r15, 32(%rbx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_sctp_clear_cachedkeys
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_sctp_clear_cachedkeys
	movl	48(%rbx), %edi
	movq	40(%rbx), %rsi
	callq	_sctp_negotiate_hmacid
	movl	%eax, 52(%rbx)
	movq	64(%rbx), %rdi
	movl	4(%rdi), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rsi
	callq	_sctp_copy_skeylist
LBB0_45:
	movq	-152(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_47
## %bb.46:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_PARAM_BUFFER_SIZE,4,2     ## @SCTP_PARAM_BUFFER_SIZE
	.comm	_SCTP_RANDOM,8,3                ## @SCTP_RANDOM
	.comm	_SCTP_HMAC_LIST,8,3             ## @SCTP_HMAC_LIST
	.comm	_SCTP_CHUNK_LIST,8,3            ## @SCTP_CHUNK_LIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_get_cookie_params    ; -- Begin function sctp_auth_get_cookie_params
	.p2align	2
_sctp_auth_get_cookie_params:           ; @sctp_auth_get_cookie_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	mov	x26, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SCTP_PARAM_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_PARAM_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w9, [x8]
	lsl	x12, x9, #2
	mov	x9, x12
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x9, x9, x10
	stp	x9, x12, [x29, #-136]           ; 16-byte Folded Spill
	mov	sp, x9
	ldr	w8, [x8]
	lsl	x13, x8, #2
	mov	x9, x13
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x13, #15
	and	x12, x9, #0x7fffffff0
	sub	x8, x8, x12
	stp	x8, x13, [x29, #-152]           ; 16-byte Folded Spill
	mov	sp, x8
	mov	x9, x13
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x12
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
	mov	sp, x8
	sub	x3, x29, #96
	mov	x0, x1
	mov	x1, x2
	mov	w2, #8
	bl	_sctp_m_getptr
	cbz	x0, LBB0_31
; %bb.1:
	mov	x28, x0
	mov	x27, #0
	mov	x21, #0
	mov	x25, #0
	mov	x20, #0
	stp	xzr, xzr, [x29, #-120]          ; 16-byte Folded Spill
	add	x8, x26, x23
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	stur	x24, [x29, #-160]               ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	ldr	w0, [x28, #4]
	bl	_ntohs
	mov	x26, x0
	ldr	w0, [x28]
	bl	_ntohs
	add	x8, x0, x23
	cmp	x0, #0
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	ccmp	x8, x9, #0, ne
	b.gt	LBB0_32
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x0
Lloh11:
	adrp	x8, _SCTP_RANDOM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCTP_RANDOM@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	cmp	x28, x8
	b.hi	LBB0_32
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x23
	ldur	x2, [x29, #-136]                ; 8-byte Folded Reload
	mov	x3, x28
	bl	_sctp_get_next_param
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
	cbz	x0, LBB0_41
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x28, #16
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	b	LBB0_29
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x8, _SCTP_HMAC_LIST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SCTP_HMAC_LIST@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	cmp	x28, x8
	b.hi	LBB0_32
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x23
	ldur	x2, [x29, #-152]                ; 8-byte Folded Reload
	mov	x3, x28
	bl	_sctp_get_next_param
	cbz	x0, LBB0_41
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	sub	x24, x28, #16
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_sctp_free_hmaclist
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	x25, x24, #2
	mov	x0, x25
	bl	_sctp_alloc_hmaclist
	str	x0, [x19, #40]
	cbz	x0, LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x24, #4
	b.lo	LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	stur	x22, [x29, #-176]               ; 8-byte Folded Spill
	cmp	x25, #1
	csinc	x22, x25, xzr, hi
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_ntohs
	mov	x1, x0
	mov	x0, x26
	bl	_sctp_auth_add_hmacid
	cmp	x24, #8
	mov	x25, x24
	b.hs	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldur	x22, [x29, #-176]               ; 8-byte Folded Reload
	ldur	x24, [x29, #-160]               ; 8-byte Folded Reload
	b	LBB0_29
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh17:
	adrp	x8, _SCTP_CHUNK_LIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SCTP_CHUNK_LIST@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	cmp	x28, x8
	b.hi	LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x23
	ldur	x2, [x29, #-168]                ; 8-byte Folded Reload
	mov	x3, x28
	bl	_sctp_get_next_param
	cbz	x0, LBB0_41
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	sub	x27, x28, #16
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_sctp_clear_chunklist
	cmp	x27, #1
	b.ge	LBB0_26
	b	LBB0_29
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x25
	mov	w26, #1
LBB0_22:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x25, [x19, #40]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x26, lsl #2]
	bl	_ntohs
	mov	x1, x0
	mov	x0, x25
	bl	_sctp_auth_add_hmacid
	add	x26, x26, #1
	cmp	x22, x26
	b.ne	LBB0_22
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	ldur	x22, [x29, #-176]               ; 8-byte Folded Reload
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x24
	ldur	x24, [x29, #-160]               ; 8-byte Folded Reload
	b	LBB0_29
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_sctp_alloc_chunklist
	str	x0, [x19, #56]
	cmp	x27, #1
	b.lt	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x24
	mov	x24, x25
	mov	x25, x22
	mov	x22, #0
LBB0_27:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21]
	ldr	w0, [x8, x22, lsl #2]
	ldr	x1, [x19, #56]
	bl	_sctp_auth_add_chunk
	add	x22, x22, #1
	cmp	x27, x22
	b.ne	LBB0_27
; %bb.28:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x25
	mov	x25, x24
	mov	x24, x26
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x28
	bl	_SCTP_SIZE32
	add	x23, x0, x23
	add	x8, x23, #8
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	cmp	x8, x9
	b.hi	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x3, x29, #96
	mov	x0, x24
	mov	x1, x23
	mov	w2, #8
	bl	_sctp_m_getptr
	mov	x28, x0
	cbnz	x0, LBB0_2
	b	LBB0_32
LBB0_31:
	stp	xzr, xzr, [x29, #-120]          ; 16-byte Folded Spill
	mov	x20, #0
	mov	x25, #0
	mov	x21, #0
	mov	x27, #0
LBB0_32:
	add	x24, x27, #16
	cmp	x21, #0
	csel	x8, xzr, x24, eq
	ldur	x26, [x29, #-112]               ; 8-byte Folded Reload
	mov	x27, x25
	add	x9, x26, x25
	add	x8, x9, x8
	add	x0, x8, #32
	bl	_sctp_alloc_key
	mov	x23, x0
	cbz	x0, LBB0_38
; %bb.33:
	ldur	x1, [x29, #-120]                ; 8-byte Folded Reload
	cbz	x1, LBB0_43
; %bb.34:
	add	x25, x26, #16
	ldr	x0, [x23]
	mov	x2, x25
	bl	_memcpy
	cbz	x21, LBB0_36
LBB0_35:
	ldr	x8, [x23]
	add	x0, x8, x25
	mov	x1, x21
	mov	x2, x24
	bl	_memcpy
	add	x25, x25, x24
LBB0_36:
	cbz	x20, LBB0_38
; %bb.37:
	ldr	x8, [x23]
	add	x0, x8, x25
	add	w2, w27, #16
	mov	x1, x20
	bl	_memcpy
LBB0_38:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_40
; %bb.39:
	bl	_sctp_free_key
LBB0_40:
	stp	x26, x23, [x19, #24]
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_sctp_clear_cachedkeys
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_sctp_clear_cachedkeys
	ldr	w0, [x19, #48]
	ldr	x1, [x19, #40]
	bl	_sctp_negotiate_hmacid
	str	w0, [x19, #52]
	ldr	x0, [x19, #64]
	ldr	w8, [x0, #4]
	str	w8, [x19, #8]
	mov	x1, x19
	bl	_sctp_copy_skeylist
LBB0_41:
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.42:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_43:
	mov	x25, #0
	cbnz	x21, LBB0_35
	b	LBB0_36
LBB0_44:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_PARAM_BUFFER_SIZE,4,2     ; @SCTP_PARAM_BUFFER_SIZE
	.comm	_SCTP_RANDOM,8,3                ; @SCTP_RANDOM
	.comm	_SCTP_HMAC_LIST,8,3             ; @SCTP_HMAC_LIST
	.comm	_SCTP_CHUNK_LIST,8,3            ; @SCTP_CHUNK_LIST
.subsections_via_symbols
