	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_and_add_remote_sys
_find_and_add_remote_sys:               ## @find_and_add_remote_sys
	.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
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	(%rdi), %edi
	callq	_osm_node_get_physp_ptr
	movq	(%rax), %rdi
	movq	(%rdi), %rbx
	callq	_osm_physp_get_port_num
	movl	(%r14), %esi
	movq	8(%r14), %rcx
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	leaq	16(%rcx), %rdi
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	addq	$24, %rdi
	cmpq	%rdx, %rsi
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdi)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, -16(%rdi)
	jne	LBB0_6
	jmp	LBB0_9
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_7:
	movq	%rsi, %rdx
LBB0_8:
	leaq	(%rdx,%rdx,2), %rdi
	movq	%rbx, 16(%rcx,%rdi,8)
	movq	$0, 8(%rcx,%rdi,8)
	movq	%rax, (%rcx,%rdi,8)
	incl	%esi
	movl	%esi, (%r14)
LBB0_9:
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%rcx,%rax,8), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_and_add_remote_sys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_and_add_remote_sys
_find_and_add_remote_sys:               ; @find_and_add_remote_sys
	.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
	mov	x19, x3
	mov	x20, x2
	ldr	w0, [x0]
	bl	_osm_node_get_physp_ptr
	ldr	x0, [x0]
	ldr	x21, [x0]
	bl	_osm_physp_get_port_num
	ldr	w10, [x19]
	ldr	x8, [x19, #8]
	mov	x9, #0
	cbz	w10, LBB0_7
; %bb.1:
	add	x11, x8, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x11, x11, #24
	cmp	x10, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cmp	x12, x21
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x12, [x11, #-16]
	cmp	x12, x0
	b.ne	LBB0_2
	b	LBB0_8
LBB0_6:
	mov	x9, x10
LBB0_7:
	mov	w11, #24
	madd	x11, x9, x11, x8
	stp	xzr, x21, [x11, #8]
	str	x0, [x11]
	add	w10, w10, #1
	str	w10, [x19]
LBB0_8:
	mov	w10, #24
	madd	x0, x9, x10, x8
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_and_add_remote_sys
.subsections_via_symbols
