	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mib_fetch_route                ## -- Begin function mib_fetch_route
	.p2align	4, 0x90
_mib_fetch_route:                       ## @mib_fetch_route
	.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
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RTAX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_route_tick@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ROUTE_UPDATE_INTERVAL@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_this_tick@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jg	LBB0_14
LBB0_2:
	movq	_sroutes@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r15, %rsi
	callq	_RB_MIN
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_RB_NEXT
	movq	%rax, %r12
	movl	(%r15), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_RB_REMOVE
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rbx
	testq	%r12, %r12
	jne	LBB0_4
LBB0_5:
	movq	_route_total@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NET_RT_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	callq	_mib_fetch_rtab
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_13
## %bb.8:
	movq	_RTM_GET@GOTPCREL(%rip), %r12
	movq	_RTF_UP@GOTPCREL(%rip), %r13
	movq	%r15, %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	16(%rbx), %rcx
	leaq	(%rbx,%rcx,4), %rbx
	leaq	(%r15,%rax,4), %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %ecx
	testl	%ecx, 8(%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	12(%rbx), %edi
	leaq	24(%rbx), %rsi
	movq	%r14, %rdx
	callq	_mib_extract_addrs
	movq	_RTAX_GATEWAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rsi
	movq	_RTAX_DST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rdx
	movq	_RTAX_NETMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%rax,8), %rcx
	movq	%rbx, %rdi
	callq	_mib_sroute_process
	movq	-56(%rbp), %rax
	jmp	LBB0_12
LBB0_13:
	movq	%r15, %rdi
	callq	_free
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_ticks
	movq	_route_tick@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_6:
	movl	$-1, %ebx
LBB0_14:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTAX_MAX,4,2                   ## @RTAX_MAX
	.comm	_route_tick,8,3                 ## @route_tick
	.comm	_ROUTE_UPDATE_INTERVAL,8,3      ## @ROUTE_UPDATE_INTERVAL
	.comm	_this_tick,8,3                  ## @this_tick
	.comm	_sroutes,4,2                    ## @sroutes
	.comm	_route_total,8,3                ## @route_total
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_NET_RT_DUMP,4,2                ## @NET_RT_DUMP
	.comm	_RTM_GET,8,3                    ## @RTM_GET
	.comm	_RTF_UP,4,2                     ## @RTF_UP
	.comm	_RTAX_GATEWAY,8,3               ## @RTAX_GATEWAY
	.comm	_RTAX_DST,8,3                   ## @RTAX_DST
	.comm	_RTAX_NETMASK,8,3               ## @RTAX_NETMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mib_fetch_route                ; -- Begin function mib_fetch_route
	.p2align	2
_mib_fetch_route:                       ; @mib_fetch_route
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _RTAX_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTAX_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x24, _route_tick@GOTPAGE
Lloh9:
	ldr	x24, [x24, _route_tick@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.1:
Lloh10:
	adrp	x9, _ROUTE_UPDATE_INTERVAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ROUTE_UPDATE_INTERVAL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _this_tick@GOTPAGE
Lloh14:
	ldr	x10, [x10, _this_tick@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x8, x9, x8
	cmp	x8, x10
	b.le	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_15
LBB0_3:
Lloh16:
	adrp	x20, _sroutes@GOTPAGE
Lloh17:
	ldr	x20, [x20, _sroutes@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x20
	bl	_RB_MIN
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x20
	mov	x2, x21
	bl	_RB_NEXT
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x20
	mov	x2, x21
	bl	_RB_REMOVE
	mov	x0, x21
	bl	_free
	mov	x21, x22
	cbnz	x22, LBB0_5
LBB0_6:
Lloh18:
	adrp	x8, _route_total@GOTPAGE
Lloh19:
	ldr	x8, [x8, _route_total@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
Lloh21:
	adrp	x8, _AF_INET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _NET_RT_DUMP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NET_RT_DUMP@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	sub	x3, x29, #96
	mov	w2, #0
	bl	_mib_fetch_rtab
	cbz	x0, LBB0_14
; %bb.7:
	mov	x20, x0
	ldur	x8, [x29, #-96]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.8:
Lloh27:
	adrp	x22, _RTM_GET@GOTPAGE
Lloh28:
	ldr	x22, [x22, _RTM_GET@GOTPAGEOFF]
Lloh29:
	adrp	x25, _RTF_UP@GOTPAGE
Lloh30:
	ldr	x25, [x25, _RTF_UP@GOTPAGEOFF]
Lloh31:
	adrp	x26, _RTAX_GATEWAY@GOTPAGE
Lloh32:
	ldr	x26, [x26, _RTAX_GATEWAY@GOTPAGEOFF]
Lloh33:
	adrp	x27, _RTAX_DST@GOTPAGE
Lloh34:
	ldr	x27, [x27, _RTAX_DST@GOTPAGEOFF]
	mov	x21, x20
Lloh35:
	adrp	x28, _RTAX_NETMASK@GOTPAGE
Lloh36:
	ldr	x28, [x28, _RTAX_NETMASK@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldrsw	x9, [x21, #16]
	add	x21, x21, x9, lsl #2
	add	x9, x20, x8, lsl #2
	cmp	x21, x9
	b.hs	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x21, #8]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x21, #12]
	add	x1, x21, #24
	mov	x2, x19
	bl	_mib_extract_addrs
	ldr	x8, [x26]
	ldr	x1, [x19, x8, lsl #3]
	ldr	x8, [x27]
	ldr	x2, [x19, x8, lsl #3]
	ldr	x8, [x28]
	ldr	x3, [x19, x8, lsl #3]
	mov	x0, x21
	bl	_mib_sroute_process
	ldur	x8, [x29, #-96]
	b	LBB0_9
LBB0_13:
	mov	x0, x20
	bl	_free
	bl	_get_ticks
	mov	x8, x0
	mov	w0, #0
	str	x8, [x24]
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	mov	sp, x23
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_RTAX_MAX,4,2                   ; @RTAX_MAX
	.comm	_route_tick,8,3                 ; @route_tick
	.comm	_ROUTE_UPDATE_INTERVAL,8,3      ; @ROUTE_UPDATE_INTERVAL
	.comm	_this_tick,8,3                  ; @this_tick
	.comm	_sroutes,4,2                    ; @sroutes
	.comm	_route_total,8,3                ; @route_total
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_NET_RT_DUMP,4,2                ; @NET_RT_DUMP
	.comm	_RTM_GET,8,3                    ; @RTM_GET
	.comm	_RTF_UP,4,2                     ; @RTF_UP
	.comm	_RTAX_GATEWAY,8,3               ; @RTAX_GATEWAY
	.comm	_RTAX_DST,8,3                   ; @RTAX_DST
	.comm	_RTAX_NETMASK,8,3               ; @RTAX_NETMASK
.subsections_via_symbols
