	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rose_connect
_rose_connect:                          ## @rose_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_rose_sk
	movl	%r14d, %ecx
	andl	$-17, %ecx
	cmpl	$8, %ecx
	jne	LBB0_6
## %bb.1:
	movq	(%r13), %rdx
	movq	_AF_ROSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_6
## %bb.2:
	movl	8(%r13), %edx
	cmpl	$24, %r14d
	jne	LBB0_4
## %bb.3:
	cmpl	$2, %edx
	jge	LBB0_6
LBB0_4:
	movq	_ROSE_MAX_DIGIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %edx
	jg	LBB0_6
## %bb.5:
	addl	(%rax), %edx
	cmpl	%ecx, %edx
	jle	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_lock_sock
	movq	(%r12), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.9:
	movq	(%rbx), %rdx
	movq	_SS_CONNECTING@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_11
## %bb.10:
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_11:
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
## %bb.12:
	movq	(%rbx), %rsi
	movq	_SS_CONNECTING@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_14
## %bb.13:
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	cmpq	%rcx, %rax
	jne	LBB0_19
## %bb.15:
	movq	_EISCONN@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	subl	(%rax), %r15d
LBB0_18:
	movq	%r12, %rdi
	callq	_release_sock
	jmp	LBB0_7
LBB0_19:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	%rdx, (%r12)
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	leaq	12(%r13), %rdi
	leaq	-42(%rbp), %rsi
	leaq	-41(%rbp), %rdx
	xorl	%r15d, %r15d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	callq	_rose_get_neigh
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_43
## %bb.20:
	movq	%rax, %rdi
	callq	_rose_new_lci
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 32(%rcx)
	testq	%rax, %rax
	je	LBB0_44
## %bb.21:
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_sock_reset_flag
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rose_dev_first
	testq	%rax, %rax
	je	LBB0_43
## %bb.23:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_current_euid
	movl	%eax, %edi
	callq	_ax25_findbyuid
	testq	%rax, %rax
	je	LBB0_46
## %bb.24:
	movq	%rbx, %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	addq	$68, %rdi
	movl	(%rcx), %esi
	movq	%rax, %r15
	movq	_ROSE_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%r15), %eax
	movl	%eax, 64(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%rbx)
	movq	%r15, %rdi
	callq	_ax25_uid_put
	movq	%r12, %rdi
	callq	_rose_insert_socket
LBB0_25:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movzwl	%bx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
LBB0_26:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
	movq	32(%rbx), %rax
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movl	12(%r13), %ecx
	movl	%ecx, 52(%rbx)
	movl	20(%r13), %ecx
	movl	%ecx, 48(%rbx)
	movq	%rax, 40(%rbx)
	movl	8(%r13), %eax
	movl	%eax, 4(%rbx)
	cmpl	$8, %r14d
	jne	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	testl	%eax, %eax
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	jle	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	(%r13), %rax
	movq	24(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	8(%r13), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_29
	jmp	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$1, %eax
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	16(%r13), %eax
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
LBB0_32:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	_SS_CONNECTING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movq	_TCP_SYN_SENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_ROSE_STATE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rax
	incl	(%rax)
	movq	_ROSE_CALL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rose_write_internal
	movq	%r12, %rdi
	callq	_rose_start_heartbeat
	movq	%r12, %rdi
	callq	_rose_start_t1timer
	movq	(%r12), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	jne	LBB0_47
LBB0_34:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	_TCP_SYN_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.35:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	_wait@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_DEFINE_WAIT
	movl	8(%r12), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_prepare_to_wait
	movq	(%r12), %rax
	movq	_TCP_SYN_SENT@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_38
LBB0_36:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testl	%eax, %eax
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=2
	movq	%r12, %rdi
	callq	_release_sock
	xorl	%eax, %eax
	callq	_schedule
	movq	%r12, %rdi
	callq	_lock_sock
	movl	8(%r12), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_prepare_to_wait
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	je	LBB0_36
LBB0_38:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	8(%r12), %edi
	movq	%r15, %rsi
	callq	_finish_wait
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rbx
	jmp	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	%r15, %rsi
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_finish_wait
	testl	%r15d, %r15d
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rbx
	jne	LBB0_48
LBB0_40:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	je	LBB0_45
## %bb.41:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-42(%rbp), %rsi
	leaq	-41(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_rose_get_neigh
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_26
## %bb.42:
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movq	%r12, %rdi
	callq	_sock_error
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_43:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_44:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_45:
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_46:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_47:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_48:
	negl	%r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_ROSE,8,3                    ## @AF_ROSE
	.comm	_ROSE_MAX_DIGIS,4,2             ## @ROSE_MAX_DIGIS
	.comm	_TCP_ESTABLISHED,8,3            ## @TCP_ESTABLISHED
	.comm	_SS_CONNECTING,8,3              ## @SS_CONNECTING
	.comm	_SS_CONNECTED,8,3               ## @SS_CONNECTED
	.comm	_TCP_CLOSE,8,3                  ## @TCP_CLOSE
	.comm	_SS_UNCONNECTED,8,3             ## @SS_UNCONNECTED
	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_ROSE_ADDR_LEN,4,2              ## @ROSE_ADDR_LEN
	.comm	_TCP_SYN_SENT,8,3               ## @TCP_SYN_SENT
	.comm	_ROSE_STATE_1,4,2               ## @ROSE_STATE_1
	.comm	_ROSE_CALL_REQUEST,4,2          ## @ROSE_CALL_REQUEST
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_wait,4,2                       ## @wait
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_current,4,2                    ## @current
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_rose_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rose_connect
_rose_connect:                          ; @rose_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_rose_sk
	and	w8, w22, #0xffffffef
	cmp	w8, #8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _AF_ROSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_ROSE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x24, x0
	ldr	w8, [x23, #8]
	cmp	w22, #24
	b.ne	LBB0_4
; %bb.3:
	cmp	w8, #2
	b.ge	LBB0_6
LBB0_4:
Lloh3:
	adrp	x9, _ROSE_MAX_DIGIS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ROSE_MAX_DIGIS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_6
; %bb.5:
	ldr	w10, [x24]
	add	w8, w10, w8
	cmp	w8, w9
	b.le	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	mov	x0, x19
	bl	_lock_sock
	ldr	x8, [x19]
Lloh9:
	adrp	x28, _TCP_ESTABLISHED@GOTPAGE
Lloh10:
	ldr	x28, [x28, _TCP_ESTABLISHED@GOTPAGEOFF]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	x10, [x20]
Lloh11:
	adrp	x11, _SS_CONNECTING@GOTPAGE
Lloh12:
	ldr	x11, [x11, _SS_CONNECTING@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_11
LBB0_10:
	mov	w21, #0
Lloh14:
	adrp	x8, _SS_CONNECTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SS_CONNECTED@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_43
LBB0_11:
Lloh17:
	adrp	x10, _TCP_CLOSE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _TCP_CLOSE@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_14
; %bb.12:
	ldr	x11, [x20]
Lloh20:
	adrp	x12, _SS_CONNECTING@GOTPAGE
Lloh21:
	ldr	x12, [x12, _SS_CONNECTING@GOTPAGEOFF]
Lloh22:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_14
; %bb.13:
Lloh23:
	adrp	x8, _SS_UNCONNECTED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh26:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
	b	LBB0_42
LBB0_14:
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh28:
	adrp	x8, _EISCONN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_42
LBB0_16:
	str	x10, [x19]
Lloh30:
	adrp	x8, _SS_UNCONNECTED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	str	x8, [x20]
	add	x0, x23, #12
	add	x1, sp, #31
	add	x2, sp, #30
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	w3, #0
	bl	_rose_get_neigh
	str	x0, [x24, #8]
	cbz	x0, LBB0_41
; %bb.17:
	bl	_rose_new_lci
	str	x0, [x24, #32]
	cbz	x0, LBB0_41
; %bb.18:
Lloh33:
	adrp	x25, _SOCK_ZAPPED@GOTPAGE
Lloh34:
	ldr	x25, [x25, _SOCK_ZAPPED@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_sock_flag
	cbz	x0, LBB0_22
; %bb.19:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_sock_reset_flag
	bl	_rose_dev_first
	cbz	x0, LBB0_41
; %bb.20:
	mov	x26, x0
	bl	_current_euid
	bl	_ax25_findbyuid
	cbz	x0, LBB0_44
; %bb.21:
	mov	x27, x0
	add	x0, x24, #68
	ldr	w1, [x26]
Lloh35:
	adrp	x8, _ROSE_ADDR_LEN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ROSE_ADDR_LEN@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [x27]
	str	w8, [x24, #64]
	str	x26, [x24, #56]
	mov	x0, x27
	bl	_ax25_uid_put
	mov	x0, x19
	bl	_rose_insert_socket
LBB0_22:
	and	x8, x24, #0xffff
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh38:
	adrp	x27, _TCP_SYN_SENT@GOTPAGE
Lloh39:
	ldr	x27, [x27, _TCP_SYN_SENT@GOTPAGEOFF]
Lloh40:
	adrp	x26, _wait@GOTPAGE
Lloh41:
	ldr	x26, [x26, _wait@GOTPAGEOFF]
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
	ldr	w9, [x23, #20]
	ldp	w8, w10, [x23, #8]
	stp	w9, w10, [x24, #48]
	ldr	x9, [x24, #32]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x9, x9, x10
	str	x9, [x24, #40]
	str	w8, [x24, #4]
	cmp	w22, #8
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x8, #0
	ldr	x9, [x23]
	ldr	x10, [x24, #24]
LBB0_26:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x23, #8]
	cmp	x8, x11
	b.lt	LBB0_26
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, #1
	b.ne	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x23, #16]
	ldr	x9, [x24, #24]
	str	w8, [x9]
LBB0_29:                                ;   in Loop: Header=BB0_23 Depth=1
Lloh42:
	adrp	x8, _SS_CONNECTING@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SS_CONNECTING@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x8, [x27]
	str	x8, [x19]
Lloh45:
	adrp	x8, _ROSE_STATE_1@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ROSE_STATE_1@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	str	w8, [x24, #16]
	ldr	x8, [x24, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh48:
	adrp	x8, _ROSE_CALL_REQUEST@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ROSE_CALL_REQUEST@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rose_write_internal
	mov	x0, x19
	bl	_rose_start_heartbeat
	mov	x0, x19
	bl	_rose_start_t1timer
	ldr	x8, [x19]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=1
Lloh51:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	tst	w9, w21
	b.ne	LBB0_45
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.32:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x26]
	bl	_DEFINE_WAIT
	ldr	w0, [x19, #8]
Lloh54:
	adrp	x25, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh55:
	ldr	x25, [x25, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
LBB0_33:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x25]
	mov	x1, x26
	bl	_prepare_to_wait
	ldr	x8, [x19]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
Lloh56:
	adrp	x8, _current@GOTPAGE
Lloh57:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	bl	_signal_pending
	cbnz	w0, LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=2
	mov	x0, x19
	bl	_release_sock
	bl	_schedule
	mov	x0, x19
	bl	_lock_sock
	ldr	w0, [x19, #8]
	b	LBB0_33
LBB0_36:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x26
	bl	_finish_wait
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_23 Depth=1
Lloh59:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh61:
	ldr	w25, [x8]
	ldr	w0, [x19, #8]
	mov	x1, x26
	bl	_finish_wait
	cbnz	w25, LBB0_46
LBB0_38:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.39:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x1, sp, #31
	add	x2, sp, #30
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	w3, #0
	bl	_rose_get_neigh
	str	x0, [x24, #8]
	cbnz	x0, LBB0_23
; %bb.40:
Lloh62:
	adrp	x8, _SS_UNCONNECTED@GOTPAGE
Lloh63:
	ldr	x8, [x8, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	x0, x19
	bl	_sock_error
	mov	x21, x0
	b	LBB0_43
LBB0_41:
Lloh65:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
LBB0_42:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_43:
	mov	x0, x19
	bl	_release_sock
	b	LBB0_7
LBB0_44:
Lloh67:
	adrp	x8, _EINVAL@GOTPAGE
Lloh68:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_42
LBB0_45:
Lloh69:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
	b	LBB0_42
LBB0_46:
	neg	w21, w25
	b	LBB0_43
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_ROSE,8,3                    ; @AF_ROSE
	.comm	_ROSE_MAX_DIGIS,4,2             ; @ROSE_MAX_DIGIS
	.comm	_TCP_ESTABLISHED,8,3            ; @TCP_ESTABLISHED
	.comm	_SS_CONNECTING,8,3              ; @SS_CONNECTING
	.comm	_SS_CONNECTED,8,3               ; @SS_CONNECTED
	.comm	_TCP_CLOSE,8,3                  ; @TCP_CLOSE
	.comm	_SS_UNCONNECTED,8,3             ; @SS_UNCONNECTED
	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_ROSE_ADDR_LEN,4,2              ; @ROSE_ADDR_LEN
	.comm	_TCP_SYN_SENT,8,3               ; @TCP_SYN_SENT
	.comm	_ROSE_STATE_1,4,2               ; @ROSE_STATE_1
	.comm	_ROSE_CALL_REQUEST,4,2          ; @ROSE_CALL_REQUEST
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_wait,4,2                       ; @wait
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_current,4,2                    ; @current
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_rose_connect
.subsections_via_symbols
