	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgp_attr_get_as_size
_bgp_attr_get_as_size:                  ## @bgp_attr_get_as_size
	.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
	movq	_BGPTYPE_AS4_PATH@GOTPCREL(%rip), %rax
	movl	$4, %r14d
	cmpq	%rsi, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rdx, %rbx
	movslq	%ecx, %rax
	leaq	(%rdx,%rax,4), %r15
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movq	_BGP_AS_SEG_TYPE_MIN@GOTPCREL(%rip), %r12
	movq	_BGP_AS_SEG_TYPE_MAX@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_ND_TCHECK
	movl	(%rbx), %eax
	cmpl	(%r12), %eax
	jl	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r13), %eax
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx), %edi
	callq	_ND_TCHECK
	movslq	4(%rbx), %rax
	leaq	(%rbx,%rax,8), %rbx
	addq	$8, %rbx
	cmpq	%r15, %rbx
	jb	LBB0_3
LBB0_6:
	cmpq	%r15, %rbx
	jne	LBB0_8
## %bb.7:
	movl	$2, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGPTYPE_AS4_PATH,8,3           ## @BGPTYPE_AS4_PATH
	.comm	_BGP_AS_SEG_TYPE_MIN,4,2        ## @BGP_AS_SEG_TYPE_MIN
	.comm	_BGP_AS_SEG_TYPE_MAX,4,2        ## @BGP_AS_SEG_TYPE_MAX
	.no_dead_strip	_bgp_attr_get_as_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgp_attr_get_as_size
_bgp_attr_get_as_size:                  ; @bgp_attr_get_as_size
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, _BGPTYPE_AS4_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BGPTYPE_AS4_PATH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x2
	add	x20, x2, w3, sxtw #2
	cmp	w3, #1
	b.lt	LBB0_5
; %bb.2:
Lloh3:
	adrp	x21, _BGP_AS_SEG_TYPE_MIN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BGP_AS_SEG_TYPE_MIN@GOTPAGEOFF]
Lloh5:
	adrp	x22, _BGP_AS_SEG_TYPE_MAX@GOTPAGE
Lloh6:
	ldr	x22, [x22, _BGP_AS_SEG_TYPE_MAX@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_ND_TCHECK
	ldr	w8, [x19]
	ldr	w9, [x21]
	ldr	w10, [x22]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #4]
	bl	_ND_TCHECK
	ldrsw	x8, [x19, #4]
	add	x8, x19, x8, lsl #3
	add	x19, x8, #8
	cmp	x19, x20
	b.lo	LBB0_3
LBB0_5:
	cmp	x19, x20
	b.eq	LBB0_8
LBB0_6:
	mov	w0, #4
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #2
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BGPTYPE_AS4_PATH,8,3           ; @BGPTYPE_AS4_PATH
	.comm	_BGP_AS_SEG_TYPE_MIN,4,2        ; @BGP_AS_SEG_TYPE_MIN
	.comm	_BGP_AS_SEG_TYPE_MAX,4,2        ; @BGP_AS_SEG_TYPE_MAX
	.no_dead_strip	_bgp_attr_get_as_size
.subsections_via_symbols
