	.file	"968477.c"
	.intel_syntax noprefix
	.text
	.globl	BSTP_DEFAULT_MIGRATE_DELAY
	.bss
	.align 4
	.type	BSTP_DEFAULT_MIGRATE_DELAY, @object
	.size	BSTP_DEFAULT_MIGRATE_DELAY, 4
BSTP_DEFAULT_MIGRATE_DELAY:
	.zero	4
	.globl	BSTP_IFSTATE_FORWARDING
	.section	.rodata
	.align 4
	.type	BSTP_IFSTATE_FORWARDING, @object
	.size	BSTP_IFSTATE_FORWARDING, 4
BSTP_IFSTATE_FORWARDING:
	.zero	4
	.globl	BSTP_PORT_DISPUTED
	.bss
	.align 4
	.type	BSTP_PORT_DISPUTED, @object
	.size	BSTP_PORT_DISPUTED, 4
BSTP_PORT_DISPUTED:
	.zero	4
	.globl	BSTP_PORT_NEWINFO
	.align 4
	.type	BSTP_PORT_NEWINFO, @object
	.size	BSTP_PORT_NEWINFO, 4
BSTP_PORT_NEWINFO:
	.zero	4
	.globl	BSTP_PROTO_RSTP
	.align 4
	.type	BSTP_PROTO_RSTP, @object
	.size	BSTP_PROTO_RSTP, 4
BSTP_PROTO_RSTP:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%s -> ALTERNATE_AGREED\n"
.LC1:
	.string	"%s -> ALTERNATE_PROPOSED\n"
.LC2:
	.string	"%s -> ALTERNATE_PORT\n"
.LC3:
	.string	"%s -> ROOT_REROOT\n"
.LC4:
	.string	"%s -> ROOT_AGREED\n"
.LC5:
	.string	"%s -> ROOT_PROPOSED\n"
.LC6:
	.string	"%s -> ROOT_REROOTED\n"
.LC7:
	.string	"%s -> DESIGNATED_RETIRED\n"
.LC8:
	.string	"%s -> DESIGNATED_SYNCED\n"
.LC9:
	.string	"%s -> DESIGNATED_PROPOSE\n"
.LC10:
	.string	"%s -> AGREED\n"
.LC11:
	.string	"%s -> DESIGNATED_DISCARD\n"
	.text
	.type	bstp_update_roles, @function
bstp_update_roles:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 132
	jg	.L2
	cmp	eax, 131
	jge	.L3
	cmp	eax, 130
	je	.L4
	cmp	eax, 130
	jg	.L2
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L2
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 60[rax]
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	je	.L45
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 60[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 56[rax], 0
	jmp	.L45
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L9
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 84[rax]
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L10
.L9:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 84[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR BSTP_PORT_NEWINFO[rip]
	or	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	DPRINTF@PLT
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 84[rax]
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	bstp_set_all_sync@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 84[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	DPRINTF@PLT
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 60[rax]
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	je	.L46
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 60[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	call	DPRINTF@PLT
	jmp	.L46
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, 0
	cmp	eax, edx
	je	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	bstp_set_all_reroot@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	call	DPRINTF@PLT
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L16
.L15:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 84[rax]
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	je	.L17
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 84[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 60[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR BSTP_PORT_NEWINFO[rip]
	or	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	call	DPRINTF@PLT
.L17:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 84[rax]
	test	eax, eax
	je	.L18
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	bstp_set_all_sync@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 84[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	call	DPRINTF@PLT
.L18:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, 0
	cmp	eax, edx
	je	.L47
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 44[rax]
	test	eax, eax
	je	.L20
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	bstp_rerooted@PLT
	test	eax, eax
	je	.L47
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 80[rax]
	test	eax, eax
	jne	.L47
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 40[rax]
	mov	eax, DWORD PTR BSTP_PROTO_RSTP[rip]
	cmp	edx, eax
	jne	.L47
.L20:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 133
	je	.L21
	cmp	eax, 134
	jne	.L19
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 133
	mov	rdi, rax
	call	bstp_set_port_state@PLT
	jmp	.L19
.L21:
	mov	edx, 0
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	bstp_set_port_state@PLT
	jmp	.L19
.L47:
	nop
.L19:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, 0
	cmp	eax, edx
	jne	.L48
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	je	.L48
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	call	DPRINTF@PLT
	jmp	.L48
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 52[rax]
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 56[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	call	DPRINTF@PLT
.L23:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 134
	jne	.L24
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L25
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L25
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	je	.L27
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L25
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 60[rax]
	test	eax, eax
	je	.L28
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L28
.L25:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 52
	mov	rdi, rax
	call	bstp_timer_stop@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 60[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	call	DPRINTF@PLT
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, 0
	cmp	eax, edx
	je	.L29
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 20[rax]
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 20[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR BSTP_PORT_NEWINFO[rip]
	or	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 72[rax]
	test	eax, eax
	jne	.L30
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 68[rax]
	jmp	.L31
.L30:
	mov	eax, DWORD PTR BSTP_DEFAULT_MIGRATE_DELAY[rip]
.L31:
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 76
	mov	esi, eax
	mov	rdi, rdx
	call	bstp_timer_start@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	call	DPRINTF@PLT
.L29:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, 0
	cmp	eax, edx
	je	.L32
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 44[rax]
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	je	.L32
.L33:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 52[rax]
	test	eax, eax
	je	.L34
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	jne	.L32
.L34:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 60[rax]
	test	eax, eax
	jne	.L32
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	je	.L35
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	call	DPRINTF@PLT
.L35:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 133
	jne	.L37
.L36:
	mov	edx, 0
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	bstp_set_port_state@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 40[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 64[rax], edx
	jmp	.L32
.L37:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 134
	jne	.L32
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 133
	mov	rdi, rax
	call	bstp_set_port_state@PLT
.L32:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 60[rax]
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L39
.L38:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	je	.L40
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 52[rax]
	test	eax, eax
	jne	.L39
.L40:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR BSTP_PORT_DISPUTED[rip]
	and	eax, edx
	test	eax, eax
	je	.L49
.L39:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 48[rax]
	test	eax, eax
	jne	.L49
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 134
	je	.L49
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 134
	mov	rdi, rax
	call	bstp_set_port_state@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR BSTP_PORT_DISPUTED[rip]
	not	eax
	and	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 40[rax]
	mov	eax, DWORD PTR BSTP_PROTO_RSTP[rip]
	cmp	edx, eax
	jne	.L42
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 36[rax]
	jmp	.L43
.L42:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 32[rax]
.L43:
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 44
	mov	esi, eax
	mov	rdi, rdx
	call	bstp_timer_start@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	call	DPRINTF@PLT
	jmp	.L49
.L45:
	nop
	jmp	.L2
.L46:
	nop
	jmp	.L2
.L48:
	nop
	jmp	.L2
.L49:
	nop
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	eax, DWORD PTR BSTP_PORT_NEWINFO[rip]
	and	eax, edx
	test	eax, eax
	je	.L50
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	bstp_transmit@PLT
.L50:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bstp_update_roles, .-bstp_update_roles
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"968477.c"
	.text
	.comm	BSTP_DEFAULT_MIGRATE_DELAY,4,4
	.comm	BSTP_IFSTATE_FORWARDING,4,4
	.comm	BSTP_PORT_DISPUTED,4,4
	.comm	BSTP_PORT_NEWINFO,4,4
	.comm	BSTP_PROTO_RSTP,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s -> ALTERNATE_AGREED\012\000"
	.align	2
.LC1:
	.ascii	"%s -> ALTERNATE_PROPOSED\012\000"
	.align	2
.LC2:
	.ascii	"%s -> ALTERNATE_PORT\012\000"
	.align	2
.LC3:
	.ascii	"%s -> ROOT_REROOT\012\000"
	.align	2
.LC4:
	.ascii	"%s -> ROOT_AGREED\012\000"
	.align	2
.LC5:
	.ascii	"%s -> ROOT_PROPOSED\012\000"
	.align	2
.LC6:
	.ascii	"%s -> ROOT_REROOTED\012\000"
	.align	2
.LC7:
	.ascii	"%s -> DESIGNATED_RETIRED\012\000"
	.align	2
.LC8:
	.ascii	"%s -> DESIGNATED_SYNCED\012\000"
	.align	2
.LC9:
	.ascii	"%s -> DESIGNATED_PROPOSE\012\000"
	.align	2
.LC10:
	.ascii	"%s -> AGREED\012\000"
	.align	2
.LC11:
	.ascii	"%s -> DESIGNATED_DISCARD\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bstp_update_roles, %function
bstp_update_roles:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L3
.L6:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	beq	.L47
.L8:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #56]
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #52]
	b	.L47
.L3:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L11
.L10:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L12
.L11:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, .L53
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+4
	bl	DPRINTF
.L12:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L13
	ldr	r0, [fp, #-8]
	bl	bstp_set_all_sync
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+8
	bl	DPRINTF
.L13:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	beq	.L48
.L14:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #56]
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #52]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+12
	bl	DPRINTF
	b	.L48
.L7:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #16]
	ldr	r3, .L53+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	bne	.L16
	ldr	r0, [fp, #-8]
	bl	bstp_set_all_reroot
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+20
	bl	DPRINTF
.L16:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L18
.L17:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L19
.L18:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #56]
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, .L53
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+24
	bl	DPRINTF
.L19:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L20
	ldr	r0, [fp, #-8]
	bl	bstp_set_all_sync
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+28
	bl	DPRINTF
.L20:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #16]
	ldr	r3, .L53+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L49
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L22
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	bstp_rerooted
	mov	r3, r0
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #76]
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #36]
	ldr	r3, .L53+32
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L49
.L22:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #133
	beq	.L23
	cmp	r3, #134
	bne	.L21
	mov	r1, #133
	ldr	r0, [fp, #-12]
	bl	bstp_set_port_state
	b	.L21
.L23:
	ldr	r3, .L53+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	bstp_set_port_state
	b	.L21
.L49:
	nop
.L21:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #16]
	ldr	r3, .L53+16
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L50
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #52]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+36
	bl	DPRINTF
	b	.L50
.L5:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #52]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+40
	bl	DPRINTF
.L25:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #134
	bne	.L26
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L27
.L26:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L27
.L28:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L27
.L29:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L30
.L27:
	ldr	r3, [fp, #-12]
	add	r3, r3, #48
	mov	r0, r3
	bl	bstp_timer_stop
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #56]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+44
	bl	DPRINTF
.L30:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #16]
	ldr	r3, .L53+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L31
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #20]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, .L53
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	add	r2, r3, #72
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #68]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #64]
	b	.L33
.L32:
	ldr	r3, .L53+48
	ldr	r3, [r3]
.L33:
	mov	r1, r3
	mov	r0, r2
	bl	bstp_timer_start
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+52
	bl	DPRINTF
.L31:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #16]
	ldr	r3, .L53+16
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L34
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	beq	.L34
.L35:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	bne	.L34
.L36:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+56
	bl	DPRINTF
.L37:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #133
	bne	.L39
.L38:
	ldr	r3, .L53+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	bstp_set_port_state
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #60]
	b	.L34
.L39:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #134
	bne	.L34
	mov	r1, #133
	ldr	r0, [fp, #-12]
	bl	bstp_set_port_state
.L34:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L41
.L40:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	bne	.L41
.L42:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, .L53+60
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L51
.L41:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L51
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	cmp	r3, #134
	beq	.L51
	mov	r1, #134
	ldr	r0, [fp, #-12]
	bl	bstp_set_port_state
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, .L53+60
	ldr	r3, [r3]
	mvn	r3, r3
	and	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	add	r0, r3, #40
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #36]
	ldr	r3, .L53+32
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L44
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #32]
	b	.L45
.L44:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #28]
.L45:
	mov	r1, r3
	bl	bstp_timer_start
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L53+64
	bl	DPRINTF
	b	.L51
.L47:
	nop
	b	.L2
.L48:
	nop
	b	.L2
.L50:
	nop
	b	.L2
.L51:
	nop
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #12]
	ldr	r3, .L53
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L52
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	bstp_transmit
.L52:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	BSTP_PORT_NEWINFO
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	BSTP_IFSTATE_FORWARDING
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	BSTP_PROTO_RSTP
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	BSTP_DEFAULT_MIGRATE_DELAY
	.word	.LC9
	.word	.LC10
	.word	BSTP_PORT_DISPUTED
	.word	.LC11
	.size	bstp_update_roles, .-bstp_update_roles
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
