#NEWLINE# def fn( self , pkt , r ) : #NEWLINE# #INDENT# i = r #NEWLINE# assert isinstance ( i , IdleTaskRec ) #NEWLINE# i . count -= 1 #NEWLINE# if ( i . count == 0 ) : #NEWLINE# #INDENT# return self . hold ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( i . control & 1 ) == 0 ) : #NEWLINE# #INDENT# i . control //= 2 #NEWLINE# return self . release ( I_DEVA ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# i . control = ( ( i . control // 2 ) ^ 53256 ) #NEWLINE# return self . release ( I_DEVB )