	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function krtread
_krtread:                               ## @krtread
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CTL_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_PF_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -72(%rbp)
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_NET_RT_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$0, -60(%rbp)
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	xorl	%r15d, %r15d
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	movb	$1, %r12b
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-96(%rbp), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	leaq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	movq	%rax, %rcx
	movq	%rax, %r12
	shrq	$63, %r12
	sarq	$63, %rcx
	leaq	L_.str.2(%rip), %rax
	andq	%rcx, %rax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rax
	xorl	%r15d, %r15d
LBB0_5:
	movq	_RT_DUMP_MAXRETRY@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	setge	%cl
	andb	%r12b, %cl
	cmpb	$1, %cl
	jne	LBB0_19
## %bb.6:
	movb	%cl, -81(%rbp)                  ## 1-byte Spill
	movl	%r13d, -100(%rbp)               ## 4-byte Spill
	movl	$1, %ebx
	leaq	-80(%rbp), %r12
	leaq	-96(%rbp), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_sleep
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_free
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_nitems
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	movb	$1, %r14b
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-96(%rbp), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_nitems
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	movq	%rax, %r14
	shrq	$63, %r14
	sarq	$63, %rax
	leaq	L_.str.2(%rip), %rcx
	andq	%rcx, %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r15d, %r15d
	leaq	L_.str(%rip), %rax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rax
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%ebx
	testb	%r14b, %r14b
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_RT_DUMP_MAXRETRY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jl	LBB0_7
LBB0_16:
	testb	%r14b, %r14b
	movl	-100(%rbp), %r13d               ## 4-byte Reload
	jne	LBB0_20
## %bb.17:
	cmpb	$0, -81(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_21
## %bb.18:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	callq	_syslog
	jmp	LBB0_21
LBB0_19:
	movl	$1, %ebx
	testb	%r12b, %r12b
	je	LBB0_21
LBB0_20:
	movl	-96(%rbp), %ecx
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_fatal
LBB0_21:
	movq	-96(%rbp), %r14
	testq	%r14, %r14
	jle	LBB0_24
## %bb.22:
	addq	%r15, %r14
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_rt_entry
	movslq	(%rbx), %rax
	addq	%rax, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_23
LBB0_24:
	movq	%r15, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_NET,4,2                    ## @CTL_NET
	.comm	_PF_ROUTE,4,2                   ## @PF_ROUTE
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_NET_RT_DUMP,4,2                ## @NET_RT_DUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctl estimate"

L_.str.1:                               ## @.str.1
	.asciz	"malloc"

L_.str.2:                               ## @.str.2
	.asciz	"sysctl NET_RT_DUMP"

	.comm	_RT_DUMP_MAXRETRY,4,2           ## @RT_DUMP_MAXRETRY
L_.str.3:                               ## @.str.3
	.asciz	"%s (with %d retries, msize=%lu)"

	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"NET_RT_DUMP %d retires"

	.no_dead_strip	_krtread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function krtread
_krtread:                               ; @krtread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _CTL_NET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_NET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PF_ROUTE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PF_ROUTE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh9:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #24]
Lloh12:
	adrp	x8, _NET_RT_DUMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NET_RT_DUMP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, wzr, [sp, #32]
	add	x0, sp, #16
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #16
	add	x3, sp, #8
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
	add	x0, sp, #16
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #16
	add	x3, sp, #8
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	lsr	x8, x0, #63
Lloh15:
	adrp	x9, l_.str.2@PAGE
Lloh16:
	add	x9, x9, l_.str.2@PAGEOFF
	and	x1, x9, x0, asr #63
	b	LBB0_6
LBB0_3:
	mov	x20, #0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	w8, #1
LBB0_6:
Lloh21:
	adrp	x21, _RT_DUMP_MAXRETRY@GOTPAGE
Lloh22:
	ldr	x21, [x21, _RT_DUMP_MAXRETRY@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #1
	cset	w9, gt
	and	w22, w8, w9
	cmp	w22, #1
	b.ne	LBB0_19
; %bb.7:
	mov	w24, #1
Lloh23:
	adrp	x23, l_.str@PAGE
Lloh24:
	add	x23, x23, l_.str@PAGEOFF
Lloh25:
	adrp	x25, l_.str.1@PAGE
Lloh26:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh27:
	adrp	x26, l_.str.2@PAGE
Lloh28:
	add	x26, x26, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, #0
	mov	w8, #1
	mov	x1, x23
	add	w2, w24, #1
	cbz	w8, LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w9, w24, #1
	ldr	w10, [x21]
	mov	x24, x2
	cmp	w9, w10
	b.ge	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_sleep
	cbz	x20, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	bl	_free
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #16
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #16
	add	x3, sp, #8
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	tbnz	x0, #63, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #8]
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #16
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #16
	add	x3, sp, #8
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	lsr	x8, x0, #63
	and	x1, x26, x0, asr #63
	add	w2, w24, #1
	cbnz	w8, LBB0_9
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w8, #1
	mov	x1, x25
	add	w2, w24, #1
	cbnz	w8, LBB0_9
LBB0_16:
	tbnz	w8, #0, LBB0_21
; %bb.17:
	cbz	w22, LBB0_22
; %bb.18:
Lloh29:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_syslog
	b	LBB0_22
LBB0_19:
	cbz	w8, LBB0_22
; %bb.20:
	mov	w2, #1
LBB0_21:
	ldr	w3, [sp, #8]
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
LBB0_22:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_25
; %bb.23:
	add	x22, x20, x8
	mov	x21, x20
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_rt_entry
	ldrsw	x8, [x21]
	add	x21, x21, x8
	cmp	x21, x22
	b.lo	LBB0_24
LBB0_25:
	mov	x0, x20
	bl	_free
	ldr	x8, [sp, #40]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	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
	add	sp, sp, #128
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_NET,4,2                    ; @CTL_NET
	.comm	_PF_ROUTE,4,2                   ; @PF_ROUTE
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_NET_RT_DUMP,4,2                ; @NET_RT_DUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctl estimate"

l_.str.1:                               ; @.str.1
	.asciz	"malloc"

l_.str.2:                               ; @.str.2
	.asciz	"sysctl NET_RT_DUMP"

	.comm	_RT_DUMP_MAXRETRY,4,2           ; @RT_DUMP_MAXRETRY
l_.str.3:                               ; @.str.3
	.asciz	"%s (with %d retries, msize=%lu)"

	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"NET_RT_DUMP %d retires"

	.no_dead_strip	_krtread
.subsections_via_symbols
