	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bstp_update_roles
_bstp_update_roles:                     ## @bstp_update_roles
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_84
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.7:
	cmpl	$0, 8(%rbx)
	je	LBB0_10
LBB0_8:
	cmpl	$0, 84(%rbx)
	je	LBB0_13
## %bb.9:
	cmpl	$0, 8(%rbx)
	je	LBB0_11
LBB0_10:
	movl	$0, 84(%rbx)
	movl	$1, 8(%rbx)
	movq	_BSTP_PORT_NEWINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTF
	cmpl	$0, 84(%rbx)
	je	LBB0_13
LBB0_11:
	cmpl	$0, 8(%rbx)
	je	LBB0_12
LBB0_13:
	cmpl	$0, 60(%rbx)
	je	LBB0_14
LBB0_16:
	movl	$1, 4(%rbx)
	movq	$0, 56(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_83:
	callq	_DPRINTF
	jmp	LBB0_84
LBB0_17:
	movl	16(%rbx), %eax
	movq	_BSTP_IFSTATE_FORWARDING@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_20
## %bb.18:
	cmpl	$0, 56(%rbx)
	jne	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_bstp_set_all_reroot
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_DPRINTF
LBB0_20:
	cmpl	$0, (%r14)
	je	LBB0_22
## %bb.21:
	cmpl	$0, 8(%rbx)
	je	LBB0_24
LBB0_22:
	cmpl	$0, 84(%rbx)
	je	LBB0_27
## %bb.23:
	cmpl	$0, 8(%rbx)
	je	LBB0_25
LBB0_24:
	movl	$0, 84(%rbx)
	movl	$0, 60(%rbx)
	movl	$1, 8(%rbx)
	movq	_BSTP_PORT_NEWINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_DPRINTF
	cmpl	$0, 84(%rbx)
	je	LBB0_27
LBB0_25:
	cmpl	$0, 8(%rbx)
	jne	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	_bstp_set_all_sync
	movl	$0, 84(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_DPRINTF
LBB0_27:
	movl	16(%rbx), %eax
	cmpl	(%r15), %eax
	je	LBB0_38
## %bb.28:
	cmpl	$0, 44(%rbx)
	je	LBB0_33
## %bb.29:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bstp_rerooted
	testl	%eax, %eax
	je	LBB0_38
## %bb.30:
	cmpl	$0, 80(%rbx)
	jne	LBB0_38
## %bb.31:
	movl	40(%rbx), %eax
	movq	_BSTP_PROTO_RSTP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_38
## %bb.32:
	movl	16(%rbx), %eax
LBB0_33:
	cmpl	$134, %eax
	je	LBB0_34
## %bb.35:
	cmpl	$133, %eax
	jne	LBB0_38
## %bb.36:
	movl	(%r15), %esi
	jmp	LBB0_37
LBB0_2:
	cmpl	$0, 60(%rbx)
	je	LBB0_3
LBB0_5:
	movl	$1, 4(%rbx)
	movq	$0, 56(%rbx)
	jmp	LBB0_84
LBB0_41:
	cmpl	$0, 52(%rbx)
	jne	LBB0_44
## %bb.42:
	cmpl	$0, 56(%rbx)
	je	LBB0_44
## %bb.43:
	movl	$0, 56(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_DPRINTF
LBB0_44:
	leaq	52(%rbx), %r15
	movl	16(%rbx), %eax
	cmpl	$134, %eax
	jne	LBB0_46
## %bb.45:
	cmpl	$0, 4(%rbx)
	je	LBB0_52
LBB0_46:
	cmpl	$0, 64(%rbx)
	je	LBB0_48
## %bb.47:
	cmpl	$0, 4(%rbx)
	je	LBB0_52
LBB0_48:
	cmpl	$0, 48(%rbx)
	je	LBB0_50
## %bb.49:
	cmpl	$0, 4(%rbx)
	je	LBB0_52
LBB0_50:
	cmpl	$0, 60(%rbx)
	je	LBB0_53
## %bb.51:
	cmpl	$0, 4(%rbx)
	je	LBB0_53
LBB0_52:
	movq	%r15, %rdi
	callq	_bstp_timer_stop
	movl	$1, 4(%rbx)
	movl	$0, 60(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_DPRINTF
	movl	16(%rbx), %eax
LBB0_53:
	movq	_BSTP_IFSTATE_FORWARDING@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	je	LBB0_75
## %bb.54:
	cmpl	$0, 64(%rbx)
	jne	LBB0_61
## %bb.55:
	cmpl	$0, 20(%rbx)
	jne	LBB0_61
## %bb.56:
	cmpl	$0, 48(%rbx)
	jne	LBB0_61
## %bb.57:
	movl	$1, 20(%rbx)
	movq	_BSTP_PORT_NEWINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	leaq	76(%rbx), %rdi
	cmpl	$0, 72(%rbx)
	je	LBB0_58
## %bb.59:
	movq	_BSTP_DEFAULT_MIGRATE_DELAY@GOTPCREL(%rip), %rax
	jmp	LBB0_60
LBB0_12:
	movq	%r14, %rdi
	callq	_bstp_set_all_sync
	movl	$0, 84(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINTF
	cmpl	$0, 60(%rbx)
	jne	LBB0_16
LBB0_14:
	cmpl	$0, 4(%rbx)
	je	LBB0_16
## %bb.15:
	cmpl	$0, 56(%rbx)
	jne	LBB0_16
	jmp	LBB0_84
LBB0_3:
	cmpl	$0, 4(%rbx)
	je	LBB0_5
## %bb.4:
	cmpl	$0, 56(%rbx)
	jne	LBB0_5
	jmp	LBB0_84
LBB0_34:
	movl	$133, %esi
LBB0_37:
	movq	%rbx, %rdi
	callq	_bstp_set_port_state
LBB0_38:
	movl	16(%rbx), %eax
	cmpl	(%r15), %eax
	jne	LBB0_84
## %bb.39:
	cmpl	$0, 56(%rbx)
	je	LBB0_84
## %bb.40:
	movl	$0, 56(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_83
LBB0_58:
	leaq	68(%rbx), %rax
LBB0_60:
	movl	(%rax), %esi
	callq	_bstp_timer_start
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdi
	callq	_DPRINTF
	movl	16(%rbx), %eax
	movl	(%r12), %ecx
LBB0_61:
	cmpl	%ecx, %eax
	je	LBB0_75
## %bb.62:
	cmpl	$0, 44(%rbx)
	je	LBB0_65
## %bb.63:
	cmpl	$0, 64(%rbx)
	jne	LBB0_65
## %bb.64:
	cmpl	$0, 48(%rbx)
	je	LBB0_75
LBB0_65:
	cmpl	$0, (%r15)
	je	LBB0_67
## %bb.66:
	cmpl	$0, 56(%rbx)
	jne	LBB0_75
LBB0_67:
	cmpl	$0, 60(%rbx)
	jne	LBB0_75
## %bb.68:
	cmpl	$0, 64(%rbx)
	je	LBB0_70
## %bb.69:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdi
	callq	_DPRINTF
	cmpl	$0, 64(%rbx)
	jne	LBB0_73
LBB0_70:
	cmpl	$0, 48(%rbx)
	je	LBB0_71
LBB0_73:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_bstp_set_port_state
	movl	40(%rbx), %eax
	movl	%eax, 64(%rbx)
LBB0_75:
	cmpl	$0, 60(%rbx)
	je	LBB0_77
## %bb.76:
	cmpl	$0, 4(%rbx)
	je	LBB0_80
LBB0_77:
	cmpl	$0, 56(%rbx)
	je	LBB0_79
## %bb.78:
	cmpl	$0, (%r15)
	jne	LBB0_80
LBB0_79:
	movq	_BSTP_PORT_DISPUTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_84
LBB0_80:
	cmpl	$0, 48(%rbx)
	jne	LBB0_84
## %bb.81:
	cmpl	$134, 16(%rbx)
	jne	LBB0_82
LBB0_84:
	movq	_BSTP_PORT_NEWINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_85
## %bb.86:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bstp_transmit                  ## TAILCALL
LBB0_85:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_82:
	movq	%rbx, %rdi
	movl	$134, %esi
	callq	_bstp_set_port_state
	movq	_BSTP_PORT_DISPUTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rbx)
	leaq	44(%rbx), %rdi
	movl	40(%rbx), %eax
	movq	_BSTP_PROTO_RSTP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movl	32(%rbx,%rdx,4), %esi
	callq	_bstp_timer_start
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdi
	jmp	LBB0_83
LBB0_71:
	movl	16(%rbx), %eax
	cmpl	$134, %eax
	je	LBB0_74
## %bb.72:
	cmpl	$133, %eax
	je	LBB0_73
	jmp	LBB0_75
LBB0_74:
	movq	%rbx, %rdi
	movl	$133, %esi
	callq	_bstp_set_port_state
	jmp	LBB0_75
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_2
	.long	L0_0_set_41
	.long	L0_0_set_6
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_BSTP_PORT_NEWINFO,4,2          ## @BSTP_PORT_NEWINFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s -> ALTERNATE_AGREED\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s -> ALTERNATE_PROPOSED\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s -> ALTERNATE_PORT\n"

	.comm	_BSTP_IFSTATE_FORWARDING,4,2    ## @BSTP_IFSTATE_FORWARDING
L_.str.3:                               ## @.str.3
	.asciz	"%s -> ROOT_REROOT\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s -> ROOT_AGREED\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s -> ROOT_PROPOSED\n"

	.comm	_BSTP_PROTO_RSTP,4,2            ## @BSTP_PROTO_RSTP
L_.str.6:                               ## @.str.6
	.asciz	"%s -> ROOT_REROOTED\n"

L_.str.7:                               ## @.str.7
	.asciz	"%s -> DESIGNATED_RETIRED\n"

L_.str.8:                               ## @.str.8
	.asciz	"%s -> DESIGNATED_SYNCED\n"

	.comm	_BSTP_DEFAULT_MIGRATE_DELAY,4,2 ## @BSTP_DEFAULT_MIGRATE_DELAY
L_.str.9:                               ## @.str.9
	.asciz	"%s -> DESIGNATED_PROPOSE\n"

L_.str.10:                              ## @.str.10
	.asciz	"%s -> AGREED\n"

	.comm	_BSTP_PORT_DISPUTED,4,2         ## @BSTP_PORT_DISPUTED
L_.str.11:                              ## @.str.11
	.asciz	"%s -> DESIGNATED_DISCARD\n"

	.no_dead_strip	_bstp_update_roles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bstp_update_roles
_bstp_update_roles:                     ; @bstp_update_roles
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	sub	w8, w8, #128
Lloh0:
	adrp	x22, _BSTP_PORT_NEWINFO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BSTP_PORT_NEWINFO@GOTPAGEOFF]
	cmp	w8, #4
	b.hi	LBB0_78
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
LBB0_4:
	ldr	w8, [x19, #84]
	cbz	w8, LBB0_8
; %bb.5:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_7
LBB0_6:
	str	wzr, [x19, #84]
	mov	w8, #1
	ldr	w9, [x22]
	ldr	w10, [x19, #12]
	orr	w9, w10, w9
	stp	w8, w9, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	ldr	w8, [x19, #84]
	cbz	w8, LBB0_8
LBB0_7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_68
LBB0_8:
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_69
LBB0_9:
	mov	w8, #1
	str	w8, [x19, #4]
	str	xzr, [x19, #56]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_DPRINTF
	b	LBB0_78
LBB0_11:
	ldr	w8, [x19, #16]
Lloh8:
	adrp	x21, _BSTP_IFSTATE_FORWARDING@GOTPAGE
Lloh9:
	ldr	x21, [x21, _BSTP_IFSTATE_FORWARDING@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.12:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_bstp_set_all_reroot
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINTF
LBB0_14:
	ldr	w8, [x20]
	cbz	w8, LBB0_16
; %bb.15:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_18
LBB0_16:
	ldr	w8, [x19, #84]
	cbz	w8, LBB0_21
; %bb.17:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_19
LBB0_18:
	str	wzr, [x19, #84]
	str	wzr, [x19, #60]
	mov	w8, #1
	ldr	w9, [x22]
	ldr	w10, [x19, #12]
	orr	w9, w10, w9
	stp	w8, w9, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINTF
	ldr	w8, [x19, #84]
	cbz	w8, LBB0_21
LBB0_19:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_bstp_set_all_sync
	str	wzr, [x19, #84]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DPRINTF
LBB0_21:
	ldr	w8, [x19, #16]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_75
; %bb.22:
	ldr	w9, [x19, #44]
	cbz	w9, LBB0_27
; %bb.23:
	mov	x0, x20
	mov	x1, x19
	bl	_bstp_rerooted
	cbz	w0, LBB0_75
; %bb.24:
	ldr	w8, [x19, #80]
	cbnz	w8, LBB0_75
; %bb.25:
	ldr	w8, [x19, #40]
Lloh16:
	adrp	x9, _BSTP_PROTO_RSTP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BSTP_PROTO_RSTP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_75
; %bb.26:
	ldr	w8, [x19, #16]
LBB0_27:
	cmp	w8, #134
	b.eq	LBB0_73
; %bb.28:
	cmp	w8, #133
	b.ne	LBB0_75
; %bb.29:
	ldr	w1, [x21]
	b	LBB0_74
LBB0_30:
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_71
LBB0_31:
	mov	w8, #1
	str	w8, [x19, #4]
	str	xzr, [x19, #56]
	b	LBB0_78
LBB0_32:
	mov	x21, x19
	ldr	w8, [x21, #52]!
	cbnz	w8, LBB0_35
; %bb.33:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_35
; %bb.34:
	str	wzr, [x19, #56]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh19:
	adrp	x0, l_.str.7@PAGE
Lloh20:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DPRINTF
LBB0_35:
	ldr	w8, [x19, #16]
	cmp	w8, #134
	b.ne	LBB0_37
; %bb.36:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_43
LBB0_37:
	ldr	w9, [x19, #64]
	cbz	w9, LBB0_39
; %bb.38:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_43
LBB0_39:
	ldr	w9, [x19, #48]
	cbz	w9, LBB0_41
; %bb.40:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_43
LBB0_41:
	ldr	w9, [x19, #60]
	cbz	w9, LBB0_44
; %bb.42:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_44
LBB0_43:
	mov	x0, x21
	bl	_bstp_timer_stop
	mov	w8, #1
	str	w8, [x19, #4]
	str	wzr, [x19, #60]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh21:
	adrp	x0, l_.str.8@PAGE
Lloh22:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DPRINTF
	ldr	w8, [x19, #16]
LBB0_44:
Lloh23:
	adrp	x23, _BSTP_IFSTATE_FORWARDING@GOTPAGE
Lloh24:
	ldr	x23, [x23, _BSTP_IFSTATE_FORWARDING@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_60
; %bb.45:
	ldr	w10, [x19, #64]
	cbnz	w10, LBB0_49
; %bb.46:
	ldr	w10, [x19, #20]
	cbnz	w10, LBB0_49
; %bb.47:
	ldr	w10, [x19, #48]
	cbnz	w10, LBB0_49
; %bb.48:
	mov	w8, #1
	str	w8, [x19, #20]
	ldr	w8, [x22]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
	add	x0, x19, #76
	ldr	w8, [x19, #72]
	add	x9, x19, #68
Lloh25:
	adrp	x10, _BSTP_DEFAULT_MIGRATE_DELAY@GOTPAGE
Lloh26:
	ldr	x10, [x10, _BSTP_DEFAULT_MIGRATE_DELAY@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	bl	_bstp_timer_start
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh27:
	adrp	x0, l_.str.9@PAGE
Lloh28:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DPRINTF
	ldr	w8, [x19, #16]
	ldr	w9, [x23]
LBB0_49:
	cmp	w8, w9
	b.eq	LBB0_60
; %bb.50:
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_53
; %bb.51:
	ldr	w8, [x19, #64]
	cbnz	w8, LBB0_53
; %bb.52:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_60
LBB0_53:
	ldr	w8, [x21]
	cbz	w8, LBB0_55
; %bb.54:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_60
LBB0_55:
	ldr	w8, [x19, #60]
	cbnz	w8, LBB0_60
; %bb.56:
	ldr	w8, [x19, #64]
	cbz	w8, LBB0_58
; %bb.57:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh29:
	adrp	x0, l_.str.10@PAGE
Lloh30:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DPRINTF
	ldr	w8, [x19, #64]
	cbnz	w8, LBB0_59
LBB0_58:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_81
LBB0_59:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_bstp_set_port_state
	ldr	w8, [x19, #40]
	str	w8, [x19, #64]
LBB0_60:
	ldr	w8, [x19, #60]
	cbz	w8, LBB0_62
; %bb.61:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_65
LBB0_62:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_64
; %bb.63:
	ldr	w8, [x21]
	cbnz	w8, LBB0_65
LBB0_64:
	ldr	w8, [x19, #12]
Lloh31:
	adrp	x9, _BSTP_PORT_DISPUTED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BSTP_PORT_DISPUTED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_78
LBB0_65:
	ldr	w8, [x19, #48]
	cbnz	w8, LBB0_78
; %bb.66:
	ldr	w8, [x19, #16]
	cmp	w8, #134
	b.eq	LBB0_78
; %bb.67:
	mov	x0, x19
	mov	w1, #134
	bl	_bstp_set_port_state
Lloh34:
	adrp	x8, _BSTP_PORT_DISPUTED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BSTP_PORT_DISPUTED@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
	str	w8, [x19, #12]
	add	x0, x19, #44
	ldr	w8, [x19, #40]
Lloh37:
	adrp	x9, _BSTP_PROTO_RSTP@GOTPAGE
Lloh38:
	ldr	x9, [x9, _BSTP_PROTO_RSTP@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #32
	mov	w9, #36
	csel	x8, x9, x8, eq
	ldr	w1, [x19, x8]
	bl	_bstp_timer_start
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh40:
	adrp	x0, l_.str.11@PAGE
Lloh41:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_10
LBB0_68:
	mov	x0, x20
	bl	_bstp_set_all_sync
	str	wzr, [x19, #84]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	ldr	w8, [x19, #60]
	cbnz	w8, LBB0_9
LBB0_69:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.70:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_9
	b	LBB0_78
LBB0_71:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_31
; %bb.72:
	ldr	w8, [x19, #56]
	cbnz	w8, LBB0_31
	b	LBB0_78
LBB0_73:
	mov	w1, #133
LBB0_74:
	mov	x0, x19
	bl	_bstp_set_port_state
LBB0_75:
	ldr	w8, [x19, #16]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_78
; %bb.76:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_78
; %bb.77:
	str	wzr, [x19, #56]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh44:
	adrp	x0, l_.str.6@PAGE
Lloh45:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_78:
	ldr	w8, [x19, #12]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_80
; %bb.79:
	mov	x0, x20
	mov	x1, x19
	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	_bstp_transmit
LBB0_80:
	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
	ret
LBB0_81:
	ldr	w8, [x19, #16]
	cmp	w8, #134
	b.eq	LBB0_83
; %bb.82:
	cmp	w8, #133
	b.eq	LBB0_59
	b	LBB0_60
LBB0_83:
	mov	x0, x19
	mov	w1, #133
	bl	_bstp_set_port_state
	b	LBB0_60
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
	.byte	(LBB0_32-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_BSTP_PORT_NEWINFO,4,2          ; @BSTP_PORT_NEWINFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s -> ALTERNATE_AGREED\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s -> ALTERNATE_PROPOSED\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s -> ALTERNATE_PORT\n"

	.comm	_BSTP_IFSTATE_FORWARDING,4,2    ; @BSTP_IFSTATE_FORWARDING
l_.str.3:                               ; @.str.3
	.asciz	"%s -> ROOT_REROOT\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s -> ROOT_AGREED\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s -> ROOT_PROPOSED\n"

	.comm	_BSTP_PROTO_RSTP,4,2            ; @BSTP_PROTO_RSTP
l_.str.6:                               ; @.str.6
	.asciz	"%s -> ROOT_REROOTED\n"

l_.str.7:                               ; @.str.7
	.asciz	"%s -> DESIGNATED_RETIRED\n"

l_.str.8:                               ; @.str.8
	.asciz	"%s -> DESIGNATED_SYNCED\n"

	.comm	_BSTP_DEFAULT_MIGRATE_DELAY,4,2 ; @BSTP_DEFAULT_MIGRATE_DELAY
l_.str.9:                               ; @.str.9
	.asciz	"%s -> DESIGNATED_PROPOSE\n"

l_.str.10:                              ; @.str.10
	.asciz	"%s -> AGREED\n"

	.comm	_BSTP_PORT_DISPUTED,4,2         ; @BSTP_PORT_DISPUTED
l_.str.11:                              ; @.str.11
	.asciz	"%s -> DESIGNATED_DISCARD\n"

	.no_dead_strip	_bstp_update_roles
.subsections_via_symbols
