	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bgp_print                      ## -- Begin function bgp_print
	.p2align	4, 0x90
_bgp_print:                             ## @bgp_print
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.bgp_print.marker+48(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.bgp_print.marker+32(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.bgp_print.marker+16(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	l___const.bgp_print.marker(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movslq	%edx, %rax
	leaq	(%rsi,%rax,4), %r12
	movq	(%rdi), %rax
	cmpq	%r12, %rax
	cmovbq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	callq	_ND_PRINT
	cmpl	$0, 8(%r14)
	jle	LBB0_16
## %bb.1:
	cmpq	%rbx, %r12
	jbe	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	leaq	(%rbx,%r15), %rax
	addq	$4, %rax
	addq	$4, %r15
	cmpq	%r12, %rax
	jae	LBB0_16
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%r15), %edi
	movl	$1, %esi
	callq	_ND_TTEST2
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	(%rbx,%r15), %r13
	cmpl	$255, (%r13)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$255, %edi
	movl	$64, %esi
	callq	_ND_TTEST2
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r13, %rdi
	leaq	-112(%rbp), %rsi
	movl	$64, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx,%r15), %edi
	movq	_BGP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ND_TCHECK2
	movq	_BGP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-128(%rbp), %rdi
	movq	%r13, %rsi
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_ND_PRINT
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-124(%rbp), %edi
	callq	_ntohs
	movl	%eax, %ecx
	movq	_BGP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jl	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movl	%ecx, -116(%rbp)                ## 4-byte Spill
	movl	%ecx, %esi
	callq	_ND_TTEST2
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	-116(%rbp), %edx                ## 4-byte Reload
	callq	_bgp_header_print
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	-116(%rbp), %rax                ## 4-byte Folded Reload
	leaq	(%rbx,%rax,4), %rbx
	addq	%r15, %rbx
	cmpq	%r12, %rbx
	jb	LBB0_2
	jmp	LBB0_16
LBB0_14:
	movq	_bgp_msg_values@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-128(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_tok2str
LBB0_15:
	movslq	%eax, %rdi
	callq	_ND_PRINT
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.bgp_print.marker
l___const.bgp_print.marker:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": BGP"

	.comm	_BGP_SIZE,4,2                   ## @BGP_SIZE
L_.str.1:                               ## @.str.1
	.asciz	" [|BGP]"

	.comm	_bgp_msg_values,4,2             ## @bgp_msg_values
L_.str.4:                               ## @.str.4
	.asciz	"Unknown Message Type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bgp_print                      ; -- Begin function bgp_print
	.p2align	2
_bgp_print:                             ; @bgp_print
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, l___const.bgp_print.marker@PAGE
Lloh4:
	add	x8, x8, l___const.bgp_print.marker@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
	ldp	q0, q1, [x8, #32]
	stp	q0, q1, [sp, #48]
	add	x8, x1, w2, sxtw #2
	ldr	x9, [x0]
	cmp	x9, x8
	csel	x24, x9, x8, lo
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ND_PRINT
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	cmp	x24, x20
	b.ls	LBB0_17
; %bb.2:
Lloh7:
	adrp	x25, _BGP_SIZE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _BGP_SIZE@GOTPAGEOFF]
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x26, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x26, x26, #4
	add	x8, x20, x26
	cmp	x8, x24
	b.hs	LBB0_17
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x22, x20, x26
	ldr	w0, [x22]
	mov	w1, #1
	bl	_ND_TTEST2
	cbz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x22]
	cmp	w8, #255
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w0, #255
	mov	w1, #64
	bl	_ND_TTEST2
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x1, sp, #16
	mov	x0, x22
	mov	w2, #64
	bl	_memcmp
	cbnz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x20, x26
	ldr	w0, [x22]
	ldr	w1, [x25]
	bl	_ND_TCHECK2
	ldr	w2, [x25]
	add	x0, sp, #8
	mov	x1, x22
	bl	_memcpy
	cbz	x26, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_ND_PRINT
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_ntohs
	mov	x23, x0
	ldr	w0, [x25]
	cmp	w23, w0
	b.lt	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	mov	x1, x23
	bl	_ND_TTEST2
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_bgp_header_print
	cbz	w0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x20, w23, sxtw #2
	add	x20, x8, x26
	cmp	x20, x24
	b.lo	LBB0_3
	b	LBB0_17
LBB0_15:
Lloh11:
	adrp	x8, _bgp_msg_values@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bgp_msg_values@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w2, [sp, #8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_tok2str
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_16:
	sxtw	x0, w0
	bl	_ND_PRINT
LBB0_17:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.bgp_print.marker
l___const.bgp_print.marker:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": BGP"

	.comm	_BGP_SIZE,4,2                   ; @BGP_SIZE
l_.str.1:                               ; @.str.1
	.asciz	" [|BGP]"

	.comm	_bgp_msg_values,4,2             ; @bgp_msg_values
l_.str.4:                               ; @.str.4
	.asciz	"Unknown Message Type"

.subsections_via_symbols
