	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getNumRoutes                   ## -- Begin function getNumRoutes
	.p2align	4, 0x90
_getNumRoutes:                          ## @getNumRoutes
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TRACE
	movq	_FILE_READ_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_openTcpFile
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-44(%rbp), %edi
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_tdiGetEntityIDSet
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$0, -48(%rbp)
	jle	LBB0_4
## %bb.6:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r15
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	-48(%rbp), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	movq	-64(%rbp), %rsi
	addq	%rbx, %rsi
	callq	_isIpEntity
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	-44(%rbp), %edi
	movq	-64(%rbp), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_tdiGetMibForIpEntity
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	-56(%rbp), %r14d
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_12
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r12d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_ERR
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-64(%rbp), %rdi
	callq	_tdiFreeThingSet
LBB0_12:
	movl	-44(%rbp), %edi
	callq	_closeTcpFile
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"called.\n"

	.comm	_FILE_READ_DATA,4,2             ## @FILE_READ_DATA
L_.str.1:                               ## @.str.1
	.asciz	"openTcpFile returned 0x%08lx\n"

L_.str.2:                               ## @.str.2
	.asciz	"tdiGetEntityIDSet returned 0x%08lx\n"

L_.str.3:                               ## @.str.3
	.asciz	"tdiGetMibForIpEntity returned 0x%08lx, for i = %d"

L_.str.4:                               ## @.str.4
	.asciz	"numRoutes = %lu\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getNumRoutes                   ; -- Begin function getNumRoutes
	.p2align	2
_getNumRoutes:                          ; @getNumRoutes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x8, _FILE_READ_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FILE_READ_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_openTcpFile
	mov	x19, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_8
; %bb.1:
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	add	x2, sp, #28
	bl	_tdiGetEntityIDSet
	mov	x19, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_9
; %bb.2:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x22, #0
	mov	x21, #0
	mov	w19, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [sp, #28]
	add	x22, x22, #4
	cmp	x21, x8
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #12]
	ldr	x8, [sp, #16]
	add	x1, x8, x22
	bl	_isIpEntity
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [sp, #12]
	ldr	x8, [sp, #16]
	add	x1, x8, x22
	add	x2, sp, #8
	bl	_tdiGetMibForIpEntity
	mov	x20, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	add	w19, w8, w19
	b	LBB0_4
LBB0_8:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_ERR
	mov	w19, #0
	b	LBB0_13
LBB0_9:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_ERR
	ldr	w0, [sp, #12]
	bl	_closeTcpFile
	mov	w19, #0
	b	LBB0_13
LBB0_10:
	str	x21, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_ERR
LBB0_11:
	mov	w19, #0
LBB0_12:
	str	x19, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldr	x0, [sp, #16]
	bl	_tdiFreeThingSet
	ldr	w0, [sp, #12]
	bl	_closeTcpFile
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"called.\n"

	.comm	_FILE_READ_DATA,4,2             ; @FILE_READ_DATA
l_.str.1:                               ; @.str.1
	.asciz	"openTcpFile returned 0x%08lx\n"

l_.str.2:                               ; @.str.2
	.asciz	"tdiGetEntityIDSet returned 0x%08lx\n"

l_.str.3:                               ; @.str.3
	.asciz	"tdiGetMibForIpEntity returned 0x%08lx, for i = %d"

l_.str.4:                               ; @.str.4
	.asciz	"numRoutes = %lu\n"

.subsections_via_symbols
