	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_port
_get_port:                              ## @get_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rcx
	leaq	1(%rcx), %rax
	cmpb	$58, (%rcx)
	jne	LBB0_4
## %bb.1:
	cmpb	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movq	%rsi, %rbx
	movq	%rcx, %rdi
	callq	_strlen
	cltq
	addq	(%rbx), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
	callq	_seterr
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"empty port name"

	.no_dead_strip	_get_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_port
_get_port:                              ; @get_port
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	ldr	x9, [x1]
	mov	x0, x9
	ldrb	w10, [x0], #1
	cmp	w10, #58
	b.ne	LBB0_4
; %bb.1:
	ldrb	w10, [x0]
	cbz	w10, LBB0_3
; %bb.2:
	mov	x19, x1
	mov	x0, x9
	bl	_strlen
	ldr	x8, [x19]
	add	x0, x8, w0, sxtw
	str	x0, [x19]
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_seterr
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"empty port name"

	.no_dead_strip	_get_port
.subsections_via_symbols
