	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bstp_update_tc
_bstp_update_tc:                        ## @bstp_update_tc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_34
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_33:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
LBB0_20:
	movl	$131, %esi
	cmpl	$0, 40(%rbx)
	jne	LBB0_27
## %bb.21:
	cmpl	$0, 36(%rbx)
	jne	LBB0_27
## %bb.22:
	cmpl	$0, 32(%rbx)
	jne	LBB0_27
## %bb.23:
	cmpl	$0, 28(%rbx)
	je	LBB0_24
LBB0_27:
	movq	%rbx, %rdi
	callq	_bstp_set_port_tc
LBB0_28:
	movl	24(%rbx), %eax
	movq	_BSTP_ROLE_DESIGNATED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_30
## %bb.29:
	movq	_BSTP_ROLE_ROOT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
LBB0_30:
	movl	20(%rbx), %eax
	movq	_BSTP_IFSTATE_FORWARDING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
## %bb.31:
	cmpl	$0, 16(%rbx)
	jne	LBB0_34
## %bb.32:
	movq	%rbx, %rdi
	movl	$133, %esi
	jmp	LBB0_15
LBB0_16:
	movl	20(%rbx), %eax
	movq	_BSTP_IFSTATE_LEARNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.17:
	movq	_BSTP_IFSTATE_FORWARDING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
LBB0_18:
	cmpl	$0, 44(%rbx)
	jne	LBB0_34
## %bb.19:
	movq	%rbx, %rdi
	movl	$131, %esi
	jmp	LBB0_15
LBB0_2:
	movl	24(%rbx), %eax
	movq	_BSTP_ROLE_DESIGNATED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_BSTP_ROLE_ROOT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_4:
	cmpl	$0, 16(%rbx)
	je	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movl	$131, %esi
	callq	_bstp_set_port_tc
LBB0_6:
	cmpl	$0, 36(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$128, %esi
	callq	_bstp_set_port_tc
LBB0_8:
	cmpl	$0, 40(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_bstp_set_port_tc
LBB0_10:
	cmpl	$0, 28(%rbx)
	je	LBB0_13
## %bb.11:
	cmpl	$0, 16(%rbx)
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_bstp_set_port_tc
LBB0_13:
	cmpl	$0, 32(%rbx)
	je	LBB0_34
## %bb.14:
	movq	%rbx, %rdi
	movl	$135, %esi
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bstp_set_port_tc               ## TAILCALL
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_24:
	movl	24(%rbx), %eax
	movq	_BSTP_ROLE_DESIGNATED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_28
## %bb.25:
	movq	_BSTP_ROLE_ROOT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_28
## %bb.26:
	movl	20(%rbx), %eax
	movq	_BSTP_IFSTATE_DISCARDING@GOTPCREL(%rip), %rcx
	movl	$132, %esi
	cmpl	(%rcx), %eax
	je	LBB0_27
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_33
	.long	L0_0_set_33
	.long	L0_0_set_33
	.long	L0_0_set_20
	.long	L0_0_set_16
	.long	L0_0_set_33
	.long	L0_0_set_2
	.long	L0_0_set_33
	.end_data_region
                                        ## -- End function
	.comm	_BSTP_ROLE_DESIGNATED,4,2       ## @BSTP_ROLE_DESIGNATED
	.comm	_BSTP_ROLE_ROOT,4,2             ## @BSTP_ROLE_ROOT
	.comm	_BSTP_IFSTATE_LEARNING,4,2      ## @BSTP_IFSTATE_LEARNING
	.comm	_BSTP_IFSTATE_FORWARDING,4,2    ## @BSTP_IFSTATE_FORWARDING
	.comm	_BSTP_IFSTATE_DISCARDING,4,2    ## @BSTP_IFSTATE_DISCARDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid TC state for %s\n"

	.no_dead_strip	_bstp_update_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bstp_update_tc
_bstp_update_tc:                        ; @bstp_update_tc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_29
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	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	x8, [x19, #8]
	ldr	w1, [x8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DPRINTF
LBB0_3:
	ldr	w8, [x19, #40]
	cbnz	w8, LBB0_7
; %bb.4:
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_30
LBB0_7:
	mov	w1, #131
LBB0_8:
	mov	x0, x19
	bl	_bstp_set_port_tc
LBB0_9:
	ldr	w8, [x19, #24]
Lloh4:
	adrp	x9, _BSTP_ROLE_DESIGNATED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BSTP_ROLE_DESIGNATED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _BSTP_ROLE_ROOT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _BSTP_ROLE_ROOT@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_29
; %bb.10:
	ldr	w8, [x19, #20]
Lloh10:
	adrp	x9, _BSTP_IFSTATE_FORWARDING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BSTP_IFSTATE_FORWARDING@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.11:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_29
; %bb.12:
	mov	x0, x19
	mov	w1, #133
	b	LBB0_28
LBB0_13:
	ldr	w8, [x19, #20]
Lloh13:
	adrp	x9, _BSTP_IFSTATE_LEARNING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BSTP_IFSTATE_LEARNING@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _BSTP_IFSTATE_FORWARDING@GOTPAGE
Lloh17:
	ldr	x10, [x10, _BSTP_IFSTATE_FORWARDING@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_29
; %bb.14:
	ldr	w8, [x19, #44]
	cbnz	w8, LBB0_29
; %bb.15:
	mov	x0, x19
	mov	w1, #131
	b	LBB0_28
LBB0_16:
	ldr	w8, [x19, #24]
Lloh19:
	adrp	x9, _BSTP_ROLE_DESIGNATED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BSTP_ROLE_DESIGNATED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _BSTP_ROLE_ROOT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _BSTP_ROLE_ROOT@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_19
LBB0_18:
	mov	x0, x19
	mov	w1, #131
	bl	_bstp_set_port_tc
LBB0_19:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #128
	bl	_bstp_set_port_tc
LBB0_21:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_23
; %bb.22:
	mov	x0, x19
	mov	w1, #129
	bl	_bstp_set_port_tc
LBB0_23:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_26
; %bb.24:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_26
; %bb.25:
	mov	x0, x19
	mov	w1, #130
	bl	_bstp_set_port_tc
LBB0_26:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_29
; %bb.27:
	mov	x0, x19
	mov	w1, #135
LBB0_28:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bstp_set_port_tc
LBB0_29:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_30:
	ldr	w8, [x19, #24]
Lloh25:
	adrp	x9, _BSTP_ROLE_DESIGNATED@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BSTP_ROLE_DESIGNATED@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _BSTP_ROLE_ROOT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _BSTP_ROLE_ROOT@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_9
; %bb.31:
	ldr	w8, [x19, #20]
Lloh31:
	adrp	x9, _BSTP_IFSTATE_DISCARDING@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BSTP_IFSTATE_DISCARDING@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.32:
	mov	w1, #132
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_BSTP_ROLE_DESIGNATED,4,2       ; @BSTP_ROLE_DESIGNATED
	.comm	_BSTP_ROLE_ROOT,4,2             ; @BSTP_ROLE_ROOT
	.comm	_BSTP_IFSTATE_LEARNING,4,2      ; @BSTP_IFSTATE_LEARNING
	.comm	_BSTP_IFSTATE_FORWARDING,4,2    ; @BSTP_IFSTATE_FORWARDING
	.comm	_BSTP_IFSTATE_DISCARDING,4,2    ; @BSTP_IFSTATE_DISCARDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid TC state for %s\n"

	.no_dead_strip	_bstp_update_tc
.subsections_via_symbols
