	.file	"extr_bridgestp.c_bstp_set_port_proto.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unsupported STP version %d\n"
	.text
	.p2align 4
	.type	bstp_set_port_proto, @function
bstp_set_port_proto:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	esi, 128
	je	.L2
	cmp	esi, 129
	je	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	DPRINTF@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, 12[rdi]
	call	bstp_timer_stop@PLT
	cmp	DWORD PTR [rbx], 65535
	mov	DWORD PTR 16[rbx], 0
	jle	.L5
	mov	DWORD PTR [rbx], 65535
.L5:
	mov	eax, DWORD PTR BSTP_PORT_CANMIGRATE[rip]
	mov	DWORD PTR 4[rbx], ebp
	not	eax
	and	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rdi]
	lea	rdi, 12[rdi]
	mov	esi, DWORD PTR [rax]
	call	bstp_timer_start@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	bstp_set_port_proto, .-bstp_set_port_proto
	.comm	BSTP_PORT_CANMIGRATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bridgestp.c_bstp_set_port_proto.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unsupported STP version %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bstp_set_port_proto, %function
bstp_set_port_proto:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #128
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	beq	.L2
	cmp	r1, #129
	beq	.L3
	pop	{r4, r5, r6, lr}
	ldr	r0, .L9
	b	DPRINTF
.L2:
	add	r0, r0, #12
	bl	bstp_timer_stop
	mov	r2, #0
	ldr	r3, [r4]
	str	r2, [r4, #16]
	cmp	r3, #65536
	ldrge	r3, .L9+4
	strge	r3, [r4]
.L5:
	ldr	r2, .L9+8
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	str	r5, [r4, #4]
	bic	r3, r3, r2
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, [r0, #20]
	add	r0, r0, #12
	ldr	r1, [r3]
	bl	bstp_timer_start
	b	.L5
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	65535
	.word	BSTP_PORT_CANMIGRATE
	.size	bstp_set_port_proto, .-bstp_set_port_proto
	.comm	BSTP_PORT_CANMIGRATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
