	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sctp_connect
___sctp_connect:                        ## @__sctp_connect
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_sctp_sk
	movq	(%rax), %rbx
	movq	_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_sstate
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_SCTP_DEBUG_PRINTK
LBB0_3:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_style
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_LISTENING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_sstate
	testq	%rax, %rax
	jne	LBB0_1
LBB0_6:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_29
## %bb.7:
	movl	%r13d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, -92(%rbp)                ## 4-byte Spill
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	movslq	%ebx, %rax
	addq	$4, %rax
	cmpq	-104(%rbp), %rax                ## 8-byte Folded Reload
	ja	LBB0_38
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %edi
	callq	_sctp_get_af_specific
	testq	%rax, %rax
	je	LBB0_38
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r12
	movl	(%rax), %eax
	addl	%ebx, %eax
	cmpl	%r13d, %eax
	jg	LBB0_38
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_ntohs
	movl	%eax, %r13d
	movl	(%r12), %edx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sctp_verify_addr
	testl	%eax, %eax
	jne	LBB0_43
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movzwl	12(%rbx), %eax
	testw	%ax, %ax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpw	%r13w, %ax
	jne	LBB0_51
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	leaq	-128(%rbp), %rdx
	callq	_sctp_endpoint_lookup_assoc
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rbx, %rax
	jne	LBB0_44
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	callq	_sctp_endpoint_is_peeled_off
	testq	%rax, %rax
	jne	LBB0_46
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rax
	testq	%rax, %rax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_PROT_SOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_CAP_NET_BIND_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	jne	LBB0_23
	jmp	LBB0_60
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_sctp_autobind
	testq	%rax, %rax
	jne	LBB0_59
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	-64(%rbp), %rdi
	callq	_sctp_scope
	movq	%rbx, %rsi
	movl	%eax, %ebx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_sctp_association_new
	testq	%rax, %rax
	je	LBB0_55
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %edx
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_sctp_assoc_set_bind_addr_from_ep
	testl	%eax, %eax
	js	LBB0_56
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rbx
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCTP_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_sctp_assoc_add_peer
	movq	%rax, -128(%rbp)
	testq	%rax, %rax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	-92(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_50
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	(%r12), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addl	%eax, %ebx
	addq	%r15, %rax
	cmpl	%r13d, %ebx
	jl	LBB0_8
## %bb.28:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_29:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_30:
	testq	%r15, %r15
	je	LBB0_32
## %bb.31:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sctp_assoc_set_id
	testl	%eax, %eax
	js	LBB0_40
LBB0_32:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_sctp_primitive_ASSOCIATE
	testl	%eax, %eax
	js	LBB0_40
## %bb.33:
	movzwl	12(%r13), %edi
	callq	_htons
	movl	%eax, %r14d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_inet_sk
	movl	%r14d, (%rax)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	callq	_sctp_get_af_specific
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
	movq	$0, 8(%rbx)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movl	(%rax), %r15d
LBB0_35:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_sock_sndtimeo
	movq	%rax, -120(%rbp)
	leaq	-120(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sctp_wait_for_connect
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_41
## %bb.36:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.37:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %r14d
	je	LBB0_42
	jmp	LBB0_2
LBB0_40:
	movl	%eax, %r14d
	jmp	LBB0_49
LBB0_38:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_41:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_54
LBB0_42:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_2
LBB0_43:
	movl	%eax, %r14d
	jmp	LBB0_48
LBB0_44:
	movq	(%rax), %rax
	movq	_SCTP_STATE_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_52
## %bb.45:
	movq	_EALREADY@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_46:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_47:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_48:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_49:
	leaq	L_.str(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%rsi, %rbx
	movl	%r14d, %ecx
	callq	_SCTP_DEBUG_PRINTK
	testq	%rbx, %rbx
	jne	LBB0_58
	jmp	LBB0_3
LBB0_50:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_57
LBB0_51:
	xorl	%r14d, %r14d
	jmp	LBB0_57
LBB0_52:
	movq	_EISCONN@GOTPCREL(%rip), %rax
LBB0_53:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_49
LBB0_54:
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_55:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_61
LBB0_56:
	movl	%eax, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
LBB0_57:
	leaq	L_.str(%rip), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_SCTP_DEBUG_PRINTK
LBB0_58:
	movq	%rbx, %rdi
	callq	_sctp_unhash_established
	movq	%rbx, %rdi
	callq	_sctp_association_free
	jmp	LBB0_3
LBB0_59:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_61
LBB0_60:
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_61:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ESTABLISHED,4,2                ## @ESTABLISHED
	.comm	_TCP,4,2                        ## @TCP
	.comm	_LISTENING,4,2                  ## @LISTENING
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCTP_STATE_ESTABLISHED,8,3     ## @SCTP_STATE_ESTABLISHED
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_PROT_SOCK,8,3                  ## @PROT_SOCK
	.comm	_CAP_NET_BIND_SERVICE,4,2       ## @CAP_NET_BIND_SERVICE
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SCTP_UNKNOWN,4,2               ## @SCTP_UNKNOWN
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"About to exit __sctp_connect() free asoc: %p kaddrs: %p err: %d\n"

	.no_dead_strip	___sctp_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sctp_connect
___sctp_connect:                        ; @__sctp_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x22, x0
	bl	_sctp_sk
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _ESTABLISHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESTABLISHED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sctp_sstate
	cbz	x0, LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _EISCONN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	mov	x2, x19
	mov	x3, x26
	bl	_SCTP_DEBUG_PRINTK
LBB0_3:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
Lloh8:
	adrp	x8, _TCP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TCP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sctp_style
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _LISTENING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LISTENING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sctp_sstate
	cbnz	x0, LBB0_1
LBB0_6:
	cmp	w23, #1
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_28
; %bb.7:
	str	x21, [sp]                       ; 8-byte Folded Spill
	mov	x20, #0
	mov	w21, #0
Lloh14:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	mov	w9, w23
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w21
	add	x8, x8, #4
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.hi	LBB0_38
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x19
	ldr	w0, [x19]
	bl	_sctp_get_af_specific
	cbz	x0, LBB0_38
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, x0
	ldr	w8, [x0]
	add	w8, w8, w21
	cmp	w8, w23
	b.gt	LBB0_38
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x19, x28
	ldr	w0, [x25]
	bl	_ntohs
	mov	x28, x0
	ldr	w2, [x27]
	add	x0, sp, #32
	mov	x1, x25
	bl	_memcpy
	ldr	w2, [x27]
	add	x1, sp, #32
	mov	x0, x22
	bl	_sctp_verify_addr
	cbnz	w0, LBB0_37
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	x20, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrh	w8, [x20, #12]
	cbz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, w28
	b.ne	LBB0_48
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #32
	add	x2, sp, #40
	mov	x0, x24
	bl	_sctp_endpoint_lookup_assoc
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x0, x20
	b.ne	LBB0_41
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, sp, #32
	mov	x0, x24
	bl	_sctp_endpoint_is_peeled_off
	cbnz	x0, LBB0_43
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, x19
	cbnz	x20, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh16:
	adrp	x9, _PROT_SOCK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PROT_SOCK@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh19:
	adrp	x8, _CAP_NET_BIND_SERVICE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CAP_NET_BIND_SERVICE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_capable
	cbnz	w0, LBB0_23
	b	LBB0_57
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_sctp_autobind
	cbnz	x0, LBB0_56
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #32
	bl	_sctp_scope
	mov	x26, x0
	ldr	w3, [x28]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x26
	bl	_sctp_association_new
	cbz	x0, LBB0_52
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, x0
	ldr	w2, [x28]
	mov	x1, x26
	bl	_sctp_assoc_set_bind_addr_from_ep
	tbnz	w0, #31, LBB0_53
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x28]
Lloh22:
	adrp	x8, _SCTP_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SCTP_UNKNOWN@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	add	x1, sp, #32
	mov	x0, x20
	bl	_sctp_assoc_add_peer
	str	x0, [sp, #40]
	cbz	x0, LBB0_47
; %bb.26:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x9, [x27]
	add	x19, x25, x9
	add	w21, w9, w21
	cmp	w21, w23
	b.lt	LBB0_8
; %bb.27:
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	b	LBB0_29
LBB0_28:
	mov	x25, #0
	mov	x20, #0
LBB0_29:
	cbz	x21, LBB0_31
; %bb.30:
Lloh25:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sctp_assoc_set_id
	tbnz	w0, #31, LBB0_37
LBB0_31:
	mov	x0, x20
	mov	x1, #0
	bl	_sctp_primitive_ASSOCIATE
	tbnz	w0, #31, LBB0_37
; %bb.32:
	ldrh	w0, [x20, #12]
	bl	_htons
	mov	x23, x0
	mov	x0, x22
	bl	_inet_sk
	str	w23, [x0]
	ldr	w0, [x25]
	bl	_sctp_get_af_specific
	ldr	x8, [x0, #8]
	mov	x0, x25
	mov	x1, x22
	blr	x8
	str	xzr, [x22, #8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_34
; %bb.33:
	ldr	w8, [x8]
LBB0_34:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
Lloh28:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x22
	bl	_sock_sndtimeo
	str	x0, [sp, #24]
	add	x1, sp, #24
	mov	x0, x20
	bl	_sctp_wait_for_connect
	mov	x26, x0
	cbz	w0, LBB0_39
; %bb.35:
	cbz	x21, LBB0_2
; %bb.36:
Lloh31:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w26, w8
	b.eq	LBB0_40
	b	LBB0_2
LBB0_37:
	mov	x26, x0
	b	LBB0_45
LBB0_38:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_44
LBB0_39:
	cbz	x21, LBB0_51
LBB0_40:
	ldr	w8, [x20, #8]
	str	w8, [x21]
	b	LBB0_2
LBB0_41:
	ldr	x8, [x0]
Lloh36:
	adrp	x9, _SCTP_STATE_ESTABLISHED@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SCTP_STATE_ESTABLISHED@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	b.ge	LBB0_49
; %bb.42:
Lloh39:
	adrp	x8, _EALREADY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_50
LBB0_43:
Lloh41:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_44:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_45:
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
LBB0_46:
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x3, x26
	bl	_SCTP_DEBUG_PRINTK
	cbnz	x20, LBB0_55
	b	LBB0_3
LBB0_47:
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_54
LBB0_48:
	mov	w26, #0
	b	LBB0_54
LBB0_49:
Lloh48:
	adrp	x8, _EISCONN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
LBB0_50:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_46
LBB0_51:
	mov	w26, #0
	b	LBB0_2
LBB0_52:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_58
LBB0_53:
	mov	x26, x0
LBB0_54:
Lloh52:
	adrp	x0, l_.str@PAGE
Lloh53:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x26
	bl	_SCTP_DEBUG_PRINTK
LBB0_55:
	mov	x0, x20
	bl	_sctp_unhash_established
	mov	x0, x20
	bl	_sctp_association_free
	b	LBB0_3
LBB0_56:
Lloh54:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_58
LBB0_57:
Lloh56:
	adrp	x8, _EACCES@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_58:
	ldr	w8, [x8]
	neg	w26, w8
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_ESTABLISHED,4,2                ; @ESTABLISHED
	.comm	_TCP,4,2                        ; @TCP
	.comm	_LISTENING,4,2                  ; @LISTENING
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCTP_STATE_ESTABLISHED,8,3     ; @SCTP_STATE_ESTABLISHED
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_PROT_SOCK,8,3                  ; @PROT_SOCK
	.comm	_CAP_NET_BIND_SERVICE,4,2       ; @CAP_NET_BIND_SERVICE
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SCTP_UNKNOWN,4,2               ; @SCTP_UNKNOWN
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"About to exit __sctp_connect() free asoc: %p kaddrs: %p err: %d\n"

	.no_dead_strip	___sctp_connect
.subsections_via_symbols
