	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sroute_getnext
_sroute_getnext:                        ## @sroute_getnext
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdi), %rax
	cmpl	%esi, %eax
	jne	LBB0_1
LBB0_7:
	movq	_sroutes@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RB_MIN                         ## TAILCALL
LBB0_1:
	movl	%esi, %r12d
	leal	13(%r12), %r15d
	cmpl	%r15d, %eax
	jge	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movl	%r12d, %ecx
	cmpl	%r12d, %eax
	jle	LBB0_9
## %bb.4:
	movslq	%r12d, %rcx
	leaq	(,%rcx,8), %rdx
	addq	8(%r14), %rdx
	movq	%rax, %rsi
	subq	%rcx, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rcx,8)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_5
	jmp	LBB0_7
LBB0_2:
	movslq	%r12d, %rax
	jmp	LBB0_15
LBB0_8:
	addl	%r12d, %ecx
LBB0_9:
	cmpl	%eax, %ecx
	je	LBB0_7
## %bb.10:
	movq	8(%r14), %rbx
	leaq	(%rbx,%rax,8), %rdi
	leal	12(%r12), %r13d
	movl	%r13d, %ecx
	subl	%eax, %ecx
	leaq	8(,%rcx,8), %rsi
	callq	___bzero
	movslq	%r13d, %rcx
	movslq	%r12d, %rax
	incq	%rcx
	movq	_ASN_MAXID@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rbx,%rcx,8), %rsi
	testq	%rsi, %rsi
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, -8(%rbx,%rcx,8)
	decq	%rcx
	cmpq	%rax, %rcx
	jg	LBB0_11
	jmp	LBB0_14
LBB0_12:
	decq	%rsi
	movq	%rsi, -8(%rbx,%rcx,8)
LBB0_14:
	movl	%r15d, (%r14)
LBB0_15:
	incq	%rax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	incq	%rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_sroutes,4,2                    ## @sroutes
	.comm	_ASN_MAXID,8,3                  ## @ASN_MAXID
	.comm	_link,4,2                       ## @link
	.no_dead_strip	_sroute_getnext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sroute_getnext
_sroute_getnext:                        ; @sroute_getnext
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldrsw	x8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
LBB0_1:
Lloh0:
	adrp	x1, _sroutes@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sroutes@GOTPAGEOFF]
	ldr	w0, [x1]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RB_MIN
LBB0_2:
	mov	x20, x1
	add	w21, w1, #13
	cmp	w8, w21
	b.ge	LBB0_7
; %bb.3:
	mov	x19, x0
	mov	x9, x20
	cmp	w8, w20
	b.le	LBB0_8
; %bb.4:
	ldr	x9, [x19, #8]
	add	x10, x9, w20, sxtw #3
	sub	x11, x8, w20, sxtw
	mov	x9, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cbnz	x12, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w9, #1
	add	x10, x10, #8
	subs	x11, x11, #1
	b.ne	LBB0_5
	b	LBB0_1
LBB0_7:
	sxtw	x8, w20
	b	LBB0_14
LBB0_8:
	cmp	w9, w8
	b.eq	LBB0_1
; %bb.9:
	ldr	x22, [x19, #8]
	add	x0, x22, x8, lsl #3
	add	w23, w20, #12
	sub	w8, w23, w8
	lsl	x8, x8, #3
	add	x1, x8, #8
	bl	_bzero
	sxtw	x9, w23
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x8, w20
Lloh2:
	adrp	x10, _ASN_MAXID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ASN_MAXID@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x22, x9, lsl #3]
	cbnz	x11, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x10]
	str	x11, [x22, x9, lsl #3]
	sub	x11, x9, #1
	cmp	x9, x8
	mov	x9, x11
	b.gt	LBB0_10
	b	LBB0_13
LBB0_12:
	sub	x10, x11, #1
	str	x10, [x22, x9, lsl #3]
LBB0_13:
	str	w21, [x19]
LBB0_14:
	add	x8, x8, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, #1
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_sroutes,4,2                    ; @sroutes
	.comm	_ASN_MAXID,8,3                  ; @ASN_MAXID
	.comm	_link,4,2                       ; @link
	.no_dead_strip	_sroute_getnext
.subsections_via_symbols
