	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bstp_set_port_tc
_bstp_set_port_tc:                      ## @bstp_set_port_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	56(%rdi), %r14
	movl	%esi, (%rdi)
	addl	$-128, %esi
	cmpl	$7, %esi
	ja	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	%rbx, %rdi
	callq	_bstp_set_timer_tc
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_DPRINTF
LBB0_8:
	movq	$0, 44(%rbx)
	movl	40(%rbx), %eax
	movq	_BSTP_ROLE_DESIGNATED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	$1, 8(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	callq	_bstp_set_other_tcprop
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_13
LBB0_11:
	movl	$1, 4(%rbx)
	movq	_taskqueue_swi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%rbx), %rsi
	callq	_taskqueue_enqueue
	movl	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_bstp_set_timer_tc
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_13
LBB0_5:
	movq	$0, 44(%rbx)
	movl	$0, 24(%rbx)
	movl	$0, 32(%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_4:
	leaq	28(%rbx), %rdi
	callq	_bstp_timer_stop
	movl	$1, 4(%rbx)
	movq	_taskqueue_swi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%rbx), %rsi
	callq	_taskqueue_enqueue
	movl	$0, 8(%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	movq	%rbx, %rdi
	callq	_bstp_set_timer_tc
	movq	%rbx, %rdi
	callq	_bstp_set_other_tcprop
	movq	_BSTP_PORT_NEWINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 52(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bstp_transmit
	movq	%r14, %rdi
	callq	_getmicrotime
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_13
LBB0_2:
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
LBB0_12:
	leaq	28(%rbx), %rdi
	callq	_bstp_timer_stop
	movl	$0, 24(%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
LBB0_13:
	callq	_DPRINTF
	movl	$134, (%rbx)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s -> TC_ACTIVE\n"

	.comm	_taskqueue_swi,4,2              ## @taskqueue_swi
L_.str.1:                               ## @.str.1
	.asciz	"%s -> TC_INACTIVE\n"

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

	.comm	_BSTP_PORT_NEWINFO,4,2          ## @BSTP_PORT_NEWINFO
L_.str.3:                               ## @.str.3
	.asciz	"%s -> TC_DETECTED\n"

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

	.comm	_BSTP_ROLE_DESIGNATED,4,2       ## @BSTP_ROLE_DESIGNATED
L_.str.5:                               ## @.str.5
	.asciz	"%s -> TC_TC\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s -> TC_PROPAG\n"

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

	.no_dead_strip	_bstp_set_port_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bstp_set_port_tc
_bstp_set_port_tc:                      ; @bstp_set_port_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	x20, [x0, #56]
	str	w1, [x0]
	sub	w8, w1, #128
	cmp	w8, #7
	b.hi	LBB0_14
; %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:
	mov	x0, x19
	bl	_bstp_set_timer_tc
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINTF
LBB0_3:
	stp	wzr, wzr, [x19, #44]
	ldr	w8, [x19, #40]
Lloh4:
	adrp	x9, _BSTP_ROLE_DESIGNATED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BSTP_ROLE_DESIGNATED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_5:
	mov	x0, x19
	bl	_bstp_set_other_tcprop
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_6:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh9:
	adrp	x8, _taskqueue_swi@GOTPAGE
Lloh10:
	ldr	x8, [x8, _taskqueue_swi@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #36
	bl	_taskqueue_enqueue
	str	wzr, [x19, #32]
	mov	x0, x19
	bl	_bstp_set_timer_tc
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_7:
	stp	wzr, wzr, [x19, #44]
	str	wzr, [x19, #24]
	str	wzr, [x19, #32]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:
	add	x0, x19, #28
	bl	_bstp_timer_stop
	mov	w8, #1
	str	w8, [x19, #4]
Lloh16:
	adrp	x8, _taskqueue_swi@GOTPAGE
Lloh17:
	ldr	x8, [x8, _taskqueue_swi@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, x19, #36
	bl	_taskqueue_enqueue
	str	wzr, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_bstp_set_timer_tc
	mov	x0, x19
	bl	_bstp_set_other_tcprop
Lloh21:
	adrp	x8, _BSTP_PORT_NEWINFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BSTP_PORT_NEWINFO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #52]
	orr	w8, w9, w8
	str	w8, [x19, #52]
	mov	x0, x20
	mov	x1, x19
	bl	_bstp_transmit
	mov	x0, x20
	bl	_getmicrotime
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DPRINTF
LBB0_12:
	add	x0, x19, #28
	bl	_bstp_timer_stop
	str	wzr, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_13:
	bl	_DPRINTF
	mov	w8, #134
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s -> TC_ACTIVE\n"

	.comm	_taskqueue_swi,4,2              ; @taskqueue_swi
l_.str.1:                               ; @.str.1
	.asciz	"%s -> TC_INACTIVE\n"

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

	.comm	_BSTP_PORT_NEWINFO,4,2          ; @BSTP_PORT_NEWINFO
l_.str.3:                               ; @.str.3
	.asciz	"%s -> TC_DETECTED\n"

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

	.comm	_BSTP_ROLE_DESIGNATED,4,2       ; @BSTP_ROLE_DESIGNATED
l_.str.5:                               ; @.str.5
	.asciz	"%s -> TC_TC\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s -> TC_PROPAG\n"

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

	.no_dead_strip	_bstp_set_port_tc
.subsections_via_symbols
