	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_portid2portnum                 ## -- Begin function portid2portnum
	.p2align	4, 0x90
_portid2portnum:                        ## @portid2portnum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	cmpq	$0, (%rdi)
	jle	LBB0_1
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	movslq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	16(%rdi), %rcx
	movl	-4(%rcx,%rax,4), %eax
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_portid2portnum                 ; -- Begin function portid2portnum
	.p2align	2
_portid2portnum:                        ; @portid2portnum
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, #0
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	ret
LBB0_2:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	x9, [x0, #16]
	sub	w8, w8, #1
	ldr	w0, [x9, w8, sxtw #2]
	ret
LBB0_4:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
